| 1 | #!/bin/sh | 
|---|
| 2 |  | 
|---|
| 3 | #SETUP_GETTEXT=./setup-gettext | 
|---|
| 4 |  | 
|---|
| 5 | #($SETUP_GETTEXT --gettext-tool) < /dev/null > /dev/null 2>&1 || { | 
|---|
| 6 | #       echo; | 
|---|
| 7 | #       echo "You must have gettext installed to compile orxonox"; | 
|---|
| 8 | #       echo; | 
|---|
| 9 | #       exit; | 
|---|
| 10 | #} | 
|---|
| 11 |  | 
|---|
| 12 | #(libtoolize --version) < /dev/null > /dev/null 2>&1 || { | 
|---|
| 13 | #       echo; | 
|---|
| 14 | #       echo "You must have libtool installed to compile orxonox"; | 
|---|
| 15 | #       echo; | 
|---|
| 16 | #       exit; | 
|---|
| 17 | #} | 
|---|
| 18 |  | 
|---|
| 19 | (automake --version) < /dev/null > /dev/null 2>&1 || { | 
|---|
| 20 | echo; | 
|---|
| 21 | echo "You must have automake installed to compile orxonox"; | 
|---|
| 22 | echo; | 
|---|
| 23 | exit; | 
|---|
| 24 | } | 
|---|
| 25 |  | 
|---|
| 26 | (autoconf --version) < /dev/null > /dev/null 2>&1 || { | 
|---|
| 27 | echo; | 
|---|
| 28 | echo "You must have autoconf installed to compile orxonox"; | 
|---|
| 29 | echo; | 
|---|
| 30 | exit; | 
|---|
| 31 | } | 
|---|
| 32 |  | 
|---|
| 33 | echo "Generating configuration files for orxonox, please wait...." | 
|---|
| 34 | echo; | 
|---|
| 35 |  | 
|---|
| 36 | # Backup the po/ChangeLog. This should prevent the annoying | 
|---|
| 37 | # gettext ChangeLog modifications. | 
|---|
| 38 |  | 
|---|
| 39 | #cp -p po/ChangeLog po/ChangeLog.save | 
|---|
| 40 | #echo "Running gettextize, please ignore non-fatal messages...." | 
|---|
| 41 | #$SETUP_GETTEXT | 
|---|
| 42 | #echo "Running libtoolize, please ignore non-fatal messages...." | 
|---|
| 43 | #echo n | libtoolize --copy --force || exit; | 
|---|
| 44 |  | 
|---|
| 45 | # Add other directories to this list if people continue to experience | 
|---|
| 46 | # brokennesses ...  Obviously the real answer is for them to fix it | 
|---|
| 47 | # themselves, but for Luke's sake we have this. | 
|---|
| 48 | #for dir in "/usr/local/share/aclocal" \ | 
|---|
| 49 | #           "/opt/gnome-1.4/share/aclocal" | 
|---|
| 50 | #do | 
|---|
| 51 | #       if test -d $dir ; then | 
|---|
| 52 | #               ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $dir" | 
|---|
| 53 | #       fi | 
|---|
| 54 | #done | 
|---|
| 55 |  | 
|---|
| 56 | #aclocal $ACLOCAL_FLAGS -I ./m4 || exit; | 
|---|
| 57 | aclocal-1.9 || aclocal || exit; | 
|---|
| 58 | autoheader || exit; | 
|---|
| 59 | automake-1.9 --add-missing --copy || automake --add-missing --copy; | 
|---|
| 60 | autoconf || exit; | 
|---|
| 61 | automake-1.9 || automake || exit; | 
|---|
| 62 | #./configure $@ | 
|---|