X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=configure;h=8474f966adcfe43f87cc61823dc97296005f74dd;hb=546cefdbf177b7da323f71e41197983b7174d7d1;hp=47a2eb6eb8e3445a2d1e9be04ece04b1ebe1af81;hpb=d6048913c2c793a6298a3e16a1a25c76711463b1;p=lilypond.git diff --git a/configure b/configure index 47a2eb6eb8..8474f966ad 100755 --- a/configure +++ b/configure @@ -1,62 +1,5 @@ #! /bin/sh -ac_help="$ac_help - --with-gtkmm-prefix=PREFIX - Prefix where GTK-- is installed (optional)" -# Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given. -if test "${with_gtkmm_prefix+set}" = set; then - withval="$with_gtkmm_prefix" - gtkmm_config_prefix="$withval" -else - gtkmm_config_prefix="" -fi - -ac_help="$ac_help - --with-gtkmm-exec-prefix=PREFIX - Exec prefix where GTK-- is installed (optional)" -# Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given. -if test "${with_gtkmm_exec_prefix+set}" = set; then - withval="$with_gtkmm_exec_prefix" - gtkmm_config_exec_prefix="$withval" -else - gtkmm_config_exec_prefix="" -fi - -ac_help="$ac_help - --disable-gtkmmtest Do not try to compile and run a test GTK-- program" -# Check whether --enable-gtkmmtest or --disable-gtkmmtest was given. -if test "${enable_gtkmmtest+set}" = set; then - enableval="$enable_gtkmmtest" - : -else - enable_gtkmmtest=yes -fi - - - if test x$gtkmm_config_exec_prefix != x ; then - gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix" - if test x${GTKMM_CONFIG+set} != xset ; then - GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config - fi - fi - if test x$gtkmm_config_prefix != x ; then - gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix" - if test x${GTKMM_CONFIG+set} != xset ; then - GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config - fi - fi - - - - -# Configure paths for GTK--DRAW -# Derek Quinn Wyatt 98-08-21 (adapted from Jan Nieuwenhuizen's code) - - - - - - # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. @@ -69,23 +12,26 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help - enable-config=FILE put configure settings in config-FILE.make" + --enable-config=CONF put settings in config-CONF.make and config-CONF.h; + do \`make conf=CONF' to get output in ./out-CONF" ac_help="$ac_help - enable-checking set runtime checks (assert calls). Default: on" + --enable-checking set runtime checks (assert calls). Default: on" ac_help="$ac_help - enable-optimise use maximal speed optimisations. Default: off" + --enable-debugging compile with debugging info. Default: on" ac_help="$ac_help - enable-profiling compile with gprof support. Default: off" + --enable-optimising compile with optimising. Default: on" ac_help="$ac_help - enable-debugging set debug info. Default: on" + --enable-profiling compile with gprof support. Default: off" ac_help="$ac_help - enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)" + --with-localedir=LOCALE use LOCALE as locale dir. Default: + PREFIX/share/locale " ac_help="$ac_help - enable-printing turn on debug printing. Default: off" + --with-lang=LANG use LANG as language to emit messages" ac_help="$ac_help - with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale " + --enable-tfm-path=PATH set path of tex directories where tfm files live, + esp.: cmr10.tfm. Default: use kpsewhich" ac_help="$ac_help - with-lang=LANG use LANG as language to emit messages" + --with-kpathsea use kpathsea lib. Default: on" # Initialize some variables set by options. # The variables have the same names as the options, with @@ -620,10 +566,33 @@ fi fi stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"` + # urg, how is this supposed to work? + if test "$program_prefix" = "NONE"; then + program_prefix= + fi + if test "$program_suffix" = "NONE"; then + program_suffix= + fi + + echo $ac_n "checking Package""... $ac_c" 1>&6 +echo "configure:579: checking Package" >&5 if test "x$PACKAGE" = "xSTEPMAKE"; then - echo Stepmake package! - (cd stepmake; rm -f stepmake; ln -s ../stepmake .) - (cd stepmake; rm -f bin; ln -s ../bin .) + echo "$ac_t""Stepmake package!" 1>&6 + + echo $ac_n "checking builddir""... $ac_c" 1>&6 +echo "configure:584: checking builddir" >&5 + if test "$srcdir" = "."; then + builddir=. + else + absolute_builddir="`pwd`" + package_absolute_builddir="`dirname $absolute_builddir`" + package_srcdir="`dirname $srcdir`" + builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`" + fi + echo "$ac_t""$builddir" 1>&6 + + (cd stepmake 2>/dev/null || mkdir stepmake) + (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .) ac_aux_dir= for ac_dir in bin $srcdir/bin; do if test -f $ac_dir/install-sh; then @@ -645,14 +614,42 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. stepmake=stepmake else - echo Package: $PACKAGE + echo "$ac_t""$PACKAGE" 1>&6 + + echo $ac_n "checking builddir""... $ac_c" 1>&6 +echo "configure:621: checking builddir" >&5 + if test "$srcdir" = "."; then + builddir=. + srcdir_build=no + else + absolute_builddir="`pwd`" +# builddir="`dirname $srcdir`/`basename $absolute_builddir`" + builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`" + srcdir_build=yes + fi + echo "$ac_t""$builddir" 1>&6 + if expr "$srcdir" : '/' > /dev/null 2>&1; then + absolute_srcdir=yes + + echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2 + warn_b=yes + + fi + + echo $ac_n "checking for stepmake""... $ac_c" 1>&6 +echo "configure:641: checking for stepmake" >&5 # Check for installed stepmake if test -d $stepmake; then - echo Using installed stepmake: $stepmake + echo "$ac_t""$stepmake" 1>&6 else - stepmake='$(depth)'/stepmake - echo Using local stepmake: $datadir/stepmake not found + if test "$absolute_srcdir" != "yes"; then + stepmake='$(depth)'/$srcdir/stepmake + else + stepmake=$srcdir/stepmake + fi + echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6 fi + ac_aux_dir= for ac_dir in \ $HOME/usr/local/share/stepmake/bin\ @@ -664,6 +661,7 @@ for ac_dir in \ /usr/share/stepmake/bin\ /usr/lib/stepmake/bin\ stepmake/bin\ + $srcdir/stepmake/bin\ $srcdir/\ $HOME/usr/local/share/stepmake/bin\ $HOME/usr/local/lib/stepmake/bin\ @@ -674,6 +672,7 @@ for ac_dir in \ /usr/share/stepmake/bin\ /usr/lib/stepmake/bin\ stepmake/bin\ + $srcdir/stepmake/bin\ ; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir @@ -696,6 +695,7 @@ if test -z "$ac_aux_dir"; then /usr/share/stepmake/bin\ /usr/lib/stepmake/bin\ stepmake/bin\ + $srcdir/stepmake/bin\ $srcdir/\ $HOME/usr/local/share/stepmake/bin\ $HOME/usr/local/lib/stepmake/bin\ @@ -706,6 +706,7 @@ if test -z "$ac_aux_dir"; then /usr/share/stepmake/bin\ /usr/lib/stepmake/bin\ stepmake/bin\ + $srcdir/stepmake/bin\ " 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess @@ -718,6 +719,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + cat >> confdefs.h </dev/null` - if test "x$STATE_VECTOR" != "x"; then - STATE_VECTOR="\$(depth)/$STATE_VECTOR" - fi - CONFIGSUFFIX= # Check whether --enable-config or --disable-config was given. if test "${enable_config+set}" = set; then enableval="$enable_config" - CONFIGSUFFIX=$enableval + CONFIGURATION=$enableval fi - if test "$CONFIGSUFFIX" != "" ; then - CONFIGFILE=config-$CONFIGSUFFIX - else - CONFIGFILE=config - fi + ##' + + test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION" + CONFIGFILE=config$CONFIGSUFFIX @@ -768,7 +761,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:772: checking host system type" >&5 +echo "configure:765: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -788,12 +781,13 @@ host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 + for ac_prog in gmake make do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:797: checking for $ac_word" >&5 +echo "configure:791: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -821,14 +815,77 @@ fi test -n "$MAKE" && break done -test -n "$MAKE" || MAKE="error" +test -n "$MAKE" || MAKE="no" + + + + r="`eval echo '$'"MAKE"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: gmake make not found" + # abort configure process here? + else + command="- echo gmake make not found" + fi + eval "MAKE"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"MAKE"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:851: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + fi + + for ac_prog in find do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:832: checking for $ac_word" >&5 +echo "configure:889: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -856,16 +913,78 @@ fi test -n "$FIND" && break done -test -n "$FIND" || FIND="error" +test -n "$FIND" || FIND="no" + + + + r="`eval echo '$'"FIND"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: find not found" + # abort configure process here? + else + command="- echo find not found" + fi + eval "FIND"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"FIND"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:949: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + fi + for ac_prog in tar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:869: checking for $ac_word" >&5 +echo "configure:988: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -893,94 +1012,256 @@ fi test -n "$TAR" && break done -test -n "$TAR" || TAR="error" +test -n "$TAR" || TAR="no" + + + + r="`eval echo '$'"TAR"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: tar not found" + # abort configure process here? + else + command="- echo tar not found" + fi + eval "TAR"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"TAR"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:1048: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + + fi if test "x`uname`" = "xHP-UX"; then + # Extract the first word of "bash", so it can be a program name with args. +set dummy bash; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1085: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$BASH" in + /*) + ac_cv_path_BASH="$BASH" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_BASH="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh" + ;; +esac +fi +BASH="$ac_cv_path_BASH" +if test -n "$BASH"; then + echo "$ac_t""$BASH" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + echo "configure: warning: avoiding buggy /bin/sh" 1>&2 warn_b=yes - for ac_prog in bash -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 + # Extract the first word of "bash", so it can be a program name with args. +set dummy bash; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:910: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_SHELL'+set}'`\" = set"; then +echo "configure:1125: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$SHELL"; then - ac_cv_prog_SHELL="$SHELL" # Let the user override the test. -else + case "$SHELL" in + /*) + ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_SHELL="$SHELL" # Let the user override the test with a dos path. + ;; + *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" - for ac_dir in $ac_dummy; do + for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_SHELL="$ac_prog" + ac_cv_path_SHELL="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" + test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh" + ;; +esac fi -fi -SHELL="$ac_cv_prog_SHELL" +SHELL="$ac_cv_path_SHELL" if test -n "$SHELL"; then echo "$ac_t""$SHELL" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$SHELL" && break -done -test -n "$SHELL" || SHELL="/bin/ksh" - else + # Extract the first word of "bash", so it can be a program name with args. +set dummy bash; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1162: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$BASH" in + /*) + ac_cv_path_BASH="$BASH" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_BASH="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh" + ;; +esac +fi +BASH="$ac_cv_path_BASH" +if test -n "$BASH"; then + echo "$ac_t""$BASH" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + SHELL=/bin/sh fi - for ac_prog in bash + + for ac_prog in python do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:950: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then +echo "configure:1205: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$BASH"; then - ac_cv_prog_BASH="$BASH" # Let the user override the test. + if test -n "$PYTHON"; then + ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_BASH="$ac_prog" + ac_cv_prog_PYTHON="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -BASH="$ac_cv_prog_BASH" -if test -n "$BASH"; then - echo "$ac_t""$BASH" 1>&6 +PYTHON="$ac_cv_prog_PYTHON" +if test -n "$PYTHON"; then + echo "$ac_t""$PYTHON" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$BASH" && break +test -n "$PYTHON" && break done -test -n "$BASH" || BASH="/bin/sh" +test -n "$PYTHON" || PYTHON="no" + + + + r="`eval echo '$'"PYTHON"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PYTHON"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"python\"`\" + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: python not found" + # abort configure process here? + else + command="- echo python not found" + fi + eval "PYTHON"='$command' + false + else + true + fi - # Extract the first word of "${PYTHON:-python}", so it can be a program name with args. -set dummy ${PYTHON:-python}; ac_word=$2 + if test $? -eq 0; then + # Extract the first word of "python", so it can be a program name with args. +set dummy python; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:984: checking for $ac_word" >&5 +echo "configure:1265: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1002,7 +1283,6 @@ else fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python" ;; esac fi @@ -1013,61 +1293,69 @@ else echo "$ac_t""no" 1>&6 fi - + if test -n ""; then + + r="`eval echo '$'"PYTHON"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:1301: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi - if test $MAKE != "error" ; then - $MAKE -v 2> /dev/null | grep GNU > /dev/null - if test "$?" = 1 - then - - echo "configure: warning: Please install *GNU* make" 1>&2 - warn_b=yes - fi - fi + fi - - result="`echo \"$PYTHON\" | grep echo`" - if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then - - echo "configure: warning: can\'t find python. You should install Python" 1>&2 + + if expr "$MAKE" : '.*\(echo\)' >/dev/null; then + $MAKE -v 2> /dev/null | grep GNU > /dev/null + if test "$?" = 1; then + warn='make (Please install *GNU* make)' + + echo "configure: warning: $warn" 1>&2 warn_b=yes - fi + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\" + fi + fi - if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then + if test "$OSTYPE" = "cygwin" -o "$OSTYPE" = "cygwin32" -o "$OSTYPE" = "Windows_NT"; then LN=cp # hard link does not work under cygnus-nt LN_S='cp -r' # symbolic link does not work for native nt ZIP="zip -r -9" # - DOTEXE=.exe - # urg - # DIRSEP='\\' - # PATHSEP=';' - # - # cygwin fixes all these things. - # it seems these were used because of dos-style TEXINPUTS and - # MFINPUTS needed for miktex. - # but this breaks parsing of all other cygwin/unix style paths. - # - # if your (mik)tex breaks, make a: - # /usr/local/bin/tex: - # #!/bin/sh - # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex - # - # and - # - # /usr/local/bin/mf: - # #!/bin/sh - # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf - # - # this way, you may have buildscripts/out/lilypond-profile - # 'automatically' sourced from /usr/etc/profile.d/ too. - # + program_suffix=.exe + ROOTSEP=':' DIRSEP='/' PATHSEP=':' INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c" else + ROOTSEP=':' DIRSEP='/' PATHSEP=':' LN=ln @@ -1080,6 +1368,7 @@ fi + cat >> confdefs.h <> confdefs.h <> confdefs.h <<\EOF -#define NPRINT 1 -EOF - DEFINES="$DEFINES -DNPRINT" - fi - if test "$checking_b" = no; then # ugh cat >> confdefs.h <<\EOF @@ -1191,9 +1459,6 @@ EOF OPTIMIZE="-O2 -finline-functions" fi - if test "$optimise_b" = no; then - OPTIMIZE="" - fi if test $profile_b = yes; then EXTRA_LIBES="-pg" @@ -1204,16 +1469,11 @@ EOF OPTIMIZE="$OPTIMIZE -g" fi - # however, C++ support in mingw32 v 0.1.4 is still flaky - if test x$MINGWPREFIX != xno; then - ICFLAGS="-I$MINGWPREFIX/include" - ILDFLAGS="-$MINGWPREFIX/lib" - fi # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1217: checking for $ac_word" >&5 +echo "configure:1477: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1243,7 +1503,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1247: checking for $ac_word" >&5 +echo "configure:1507: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1294,7 +1554,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1298: checking for $ac_word" >&5 +echo "configure:1558: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1326,7 +1586,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1330: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1590: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1337,12 +1597,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 1341 "configure" +#line 1601 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1368,12 +1628,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1372: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1632: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1377: checking whether we are using GNU C" >&5 +echo "configure:1637: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1382,7 +1642,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1401,7 +1661,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1405: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1665: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1432,11 +1692,51 @@ else fi fi + + + r="`eval echo '$'"CC"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval ""=\"`eval echo \"'$'\" \"cc\"`\" + + if test "" = "REQUIRED"; then + command="echo ERROR: cc not found" + # abort configure process here? + else + command="- echo cc not found" + fi + eval "CC"='$command' + false + else + true + fi + LD='$(CC)' CFLAGS="$CFLAGS $OPTIMIZE" - CPPFLAGS=${CPPFLAGS:-""} + CPPFLAGS=${CPPFLAGS-""} + + echo $ac_n "checking for IEEE-conformance compiler flags""... $ac_c" 1>&6 +echo "configure:1729: checking for IEEE-conformance compiler flags" >&5 + save_cflags="$CFLAGS" + case "$host" in + alpha*-*-*) + echo "$ac_t""-mieee" 1>&6 + CFLAGS="-mieee $CFLAGS" + ;; + *) + echo "$ac_t""none" 1>&6 + ;; + esac + @@ -1446,25 +1746,185 @@ fi # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h) - -printing_b=no -# Check whether --enable-printing or --disable-printing was given. -if test "${enable_printing+set}" = set; then - enableval="$enable_printing" - printing_b=$enableval -fi - - -if test "$optimise_b" = yes; then - DEFINES="$DEFINES -DSTRING_UTILS_INLINED" - cat >> confdefs.h <<\EOF -#define STRINGS_UTILS_INLINED 1 +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +echo "configure:1751: checking how to run the C preprocessor" >&5 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP=/lib/cpp +fi +rm -f conftest* +fi +rm -f conftest* +fi +rm -f conftest* + ac_cv_prog_CPP="$CPP" +fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" +fi +echo "$ac_t""$CPP" 1>&6 + +for ac_hdr in assert.h sys/stat.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:1834: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 +echo "configure:1871: checking whether stat file-mode macros are broken" >&5 +if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include + +#if defined(S_ISBLK) && defined(S_IFDIR) +# if S_ISBLK (S_IFDIR) +You lose. +# endif +#endif + +#if defined(S_ISBLK) && defined(S_IFCHR) +# if S_ISBLK (S_IFCHR) +You lose. +# endif +#endif + +#if defined(S_ISLNK) && defined(S_IFREG) +# if S_ISLNK (S_IFREG) +You lose. +# endif +#endif + +#if defined(S_ISSOCK) && defined(S_IFREG) +# if S_ISSOCK (S_IFREG) +You lose. +# endif +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "You lose" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_header_stat_broken=yes +else + rm -rf conftest* + ac_cv_header_stat_broken=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 +if test $ac_cv_header_stat_broken = yes; then + cat >> confdefs.h <<\EOF +#define STAT_MACROS_BROKEN 1 EOF fi + echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 -echo "configure:1468: checking how to run the C++ preprocessor" >&5 +echo "configure:1928: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1477,12 +1937,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1519,7 +1979,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1523: checking for $ac_word" >&5 +echo "configure:1983: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1551,7 +2011,7 @@ test -n "$CXX" || CXX="gcc" echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1555: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 +echo "configure:2015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1562,12 +2022,12 @@ cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF -#line 1566 "configure" +#line 2026 "configure" #include "confdefs.h" int main(){return(0);} EOF -if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1593,12 +2053,12 @@ if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1597: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:2057: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:1602: checking whether we are using GNU C++" >&5 +echo "configure:2062: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1607,7 +2067,7 @@ else yes; #endif EOF -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no @@ -1626,7 +2086,7 @@ ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS= echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:1630: checking whether ${CXX-g++} accepts -g" >&5 +echo "configure:2090: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1657,20 +2117,97 @@ else fi fi +for ac_declaration in \ + ''\ + '#include ' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat > conftest.$ac_ext < +$ac_declaration +int main() { +exit (42); +; return 0; } +EOF +if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + continue +fi +rm -f conftest* + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +done +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + + + + + r="`eval echo '$'"CXX"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: c++ not found" + # abort configure process here? + else + command="- echo c++ not found" + fi + eval "CXX"='$command' + false + else + true + fi + ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6 -echo "configure:1664: checking for FlexLexer.h" >&5 +echo "configure:2201: checking for FlexLexer.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1690,7 +2227,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then else echo "$ac_t""no" 1>&6 - echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2 + echo "configure: warning: cannot find flex header. Please install Flex headers correctly" 1>&2 warn_b=yes fi @@ -1698,7 +2235,7 @@ fi CPPFLAGS="$CPPFLAGS $DEFINES" CXXFLAGS="$CXXFLAGS $OPTIMIZE" - LDFLAGS=$EXTRA_LIBES + LDFLAGS="$LDFLAGS $EXTRA_LIBES" @@ -1706,27 +2243,34 @@ fi - # ugh autoconf - # urg, egcs: how to check for egcs >= 1.1? - if $CXX --version | grep '2\.8' > /dev/null || - $CXX --version | grep 'egcs' > /dev/null + echo $ac_n "checking "g++ version"""... $ac_c" 1>&6 +echo "configure:2248: checking "g++ version"" >&5 + cxx_version=`$CXX --version` + echo "$ac_t"""$cxx_version"" 1>&6 + # urg, egcs: how to check for egcs >= 1.1? + if expr "$cxx_version" : '.*2\.[89]' > /dev/null || + expr "$cxx_version" : '.*egcs' > /dev/null || + expr "$cxx_version" : '3\.[0-9]' > /dev/null then true else - - echo "configure: warning: can\'t find g++ 2.8 or egcs 1.1" 1>&2 + + echo "configure: warning: cannot find g++ 2.8" 1>&2 warn_b=yes + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'g++ >= 2.95 (gcc package)'\"`\" + fi echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6 -echo "configure:1725: checking whether explicit instantiation is needed" >&5 +echo "configure:2269: checking whether explicit instantiation is needed" >&5 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < struct foo { static int baz; }; @@ -1736,7 +2280,7 @@ int main() { return foo::baz; ; return 0; } EOF -if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lily_cv_need_explicit_instantiation=no else @@ -1763,7 +2307,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1767: checking for $ac_word" >&5 +echo "configure:2311: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1793,20 +2337,14 @@ test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" - # ugh, automake: we want (and check for) flex - # AC_PROG_LEX - # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack... - - # AC_DECL_YYTEXT - # ugh, ugh - ac_cv_prog_lex_root=lex.yy - + + for ac_prog in bison do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1810: checking for $ac_word" >&5 +echo "configure:2348: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1834,14 +2372,123 @@ fi test -n "$BISON" && break done -test -n "$BISON" || BISON="error" +test -n "$BISON" || BISON="no" + + + + r="`eval echo '$'"BISON"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: bison not found" + # abort configure process here? + else + command="- echo bison not found" + fi + eval "BISON"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"BISON"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2408: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + + fi + + + # urg. should test functionality rather than version. + if test "$BISON" = "bison" -a -n "1.25"; then + + r="`eval echo '$'"BISON"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2446: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "1.25" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.25 (installed: $ver)"\"`\" + + fi + + fi + + # ugh, automake: we want (and check for) flex + # AC_PROG_LEX + # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack... + + # AC_DECL_YYTEXT + # ugh, ugh + ac_cv_prog_lex_root=lex.yy + for ac_prog in flex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1845: checking for $ac_word" >&5 +echo "configure:2492: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1869,47 +2516,79 @@ fi test -n "$FLEX" && break done -test -n "$FLEX" || FLEX="error" +test -n "$FLEX" || FLEX="no" - result="`echo \"$BISON\" | grep echo`" - if test "x$BISON" = "xerror" -o "x$result" != "x"; then - - echo "configure: warning: can\'t find bison. Please install Bison" 1>&2 - warn_b=yes - - fi - - result="`echo \"$FLEX\" | grep echo`" - if test "x$FLEX" = "xerror" -o "x$result" != "x"; then - - echo "configure: warning: can\'t find flex. Please install Flex" 1>&2 - warn_b=yes + r="`eval echo '$'"FLEX"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\" + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: flex not found" + # abort configure process here? + else + command="- echo flex not found" fi + eval "FLEX"='$command' + false + else + true + fi + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"FLEX"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2552: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" - if test $BISON != "error"; then - bison_version=`$BISON --version | sed 's/^.*version 1.//g'` - if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then - - echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2 - warn_b=yes + fi - fi fi - - + for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1913: checking for $ac_word" >&5 +echo "configure:2592: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1937,12 +2616,74 @@ fi test -n "$AR" && break done -test -n "$AR" || AR="error" +test -n "$AR" || AR="no" + + + + r="`eval echo '$'"AR"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: ar not found" + # abort configure process here? + else + command="- echo ar not found" + fi + eval "AR"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"AR"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2652: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + + fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1946: checking for $ac_word" >&5 +echo "configure:2687: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1969,11 +2710,33 @@ else echo "$ac_t""no" 1>&6 fi - + r="`eval echo '$'"RANLIB"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: ranlib not found" + # abort configure process here? + else + command="- echo ranlib not found" + fi + eval "RANLIB"='$command' + false + else + true + fi + -# AC_STEPMAKE_LIBTOOL lang=English ALL_LINGUAS="en nl" @@ -1998,7 +2761,7 @@ fi echo $ac_n "checking language""... $ac_c" 1>&6 -echo "configure:2002: checking language" >&5 +echo "configure:2765: checking language" >&5 case "$language" in En* | en* | Am* | am* | US* | us*) lang=English;; @@ -2034,7 +2797,7 @@ EOF echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 -echo "configure:2038: checking for gettext in -lintl" >&5 +echo "configure:2801: checking for gettext in -lintl" >&5 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2042,7 +2805,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2086,12 +2849,12 @@ fi for ac_func in gettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2090: checking for $ac_func" >&5 +echo "configure:2853: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2143,13 +2906,13 @@ done - # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt) + for ac_prog in msgfmt do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2153: checking for $ac_word" >&5 +echo "configure:2916: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2177,38 +2940,81 @@ fi test -n "$MSGFMT" && break done -test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh " +test -n "$MSGFMT" || MSGFMT="no" - echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6 -echo "configure:2184: checking whether msgfmt accepts -o" >&5 - msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`" - if test "$msgfmt_output" = ""; then - echo "$ac_t""yes" 1>&6 + + + r="`eval echo '$'"MSGFMT"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false else - # urg - MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh" - echo "$ac_t""no" 1>&6 + true + fi + + if test $? -ne 0; then - echo "configure: warning: please install msgfmt from GNU gettext" 1>&2 - warn_b=yes + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\" + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: msgfmt not found" + # abort configure process here? + else + command="- echo msgfmt not found" + fi + eval "MSGFMT"='$command' + false + else + true fi - if test ! -n "$MSGFMT"; then + + if test $? -eq 0 -a -n ""; then - echo "configure: warning: please install msgfmt from GNU gettext" 1>&2 - warn_b=yes + r="`eval echo '$'"MSGFMT"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2976: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" fi + fi + + # urg, never know what names these teTeX guys will think up - for ac_prog in mf + + for ac_prog in mf mfont do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2212: checking for $ac_word" >&5 +echo "configure:3018: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2238,654 +3044,1286 @@ test -n "$METAFONT" && break done test -n "$METAFONT" || METAFONT="no" - if test "x$METAFONT" = "xno"; then - for ac_prog in mfont + + + r="`eval echo '$'"METAFONT"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval ""=\"`eval echo \"'$'\" \"mf mfont\"`\" + + if test "" = "REQUIRED"; then + command="echo ERROR: mf mfont not found" + # abort configure process here? + else + command="- echo mf mfont not found" + fi + eval "METAFONT"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"METAFONT"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3078: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval ""=\"`eval echo \"'$'\" \""$r (installed: $ver)"\"`\" + + fi + + fi + + + for ac_prog in inimf inimfont do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2248: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then +echo "configure:3116: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$MFONT"; then - ac_cv_prog_MFONT="$MFONT" # Let the user override the test. + if test -n "$INIMETAFONT"; then + ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_MFONT="$ac_prog" + ac_cv_prog_INIMETAFONT="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -MFONT="$ac_cv_prog_MFONT" -if test -n "$MFONT"; then - echo "$ac_t""$MFONT" 1>&6 +INIMETAFONT="$ac_cv_prog_INIMETAFONT" +if test -n "$INIMETAFONT"; then + echo "$ac_t""$INIMETAFONT" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$MFONT" && break +test -n "$INIMETAFONT" && break done -test -n "$MFONT" || MFONT="-echo no mf or mfont" +test -n "$INIMETAFONT" || INIMETAFONT="no" - METAFONT=$MFONT + + + r="`eval echo '$'"INIMETAFONT"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"INIMETAFONT"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true fi - for ac_prog in mp -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2286: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$METAPOST"; then - ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_METAPOST="$ac_prog" - break + if test $? -ne 0; then + + eval ""=\"`eval echo \"'$'\" \"inimf inimfont\"`\" + + if test "" = "REQUIRED"; then + command="echo ERROR: inimf inimfont not found" + # abort configure process here? + else + command="- echo inimf inimfont not found" + fi + eval "INIMETAFONT"='$command' + false + else + true fi - done - IFS="$ac_save_ifs" -fi -fi -METAPOST="$ac_cv_prog_METAPOST" -if test -n "$METAPOST"; then - echo "$ac_t""$METAPOST" 1>&6 + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"INIMETAFONT"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3176: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval ""=\"`eval echo \"'$'\" \""$r (installed: $ver)"\"`\" + + fi + + fi + + + echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6 +echo "configure:3210: checking for working metafont mode" >&5 + modelist='ljfour lj4 lj3 lj2 ljet laserjet' + for MFMODE in $modelist; do + $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1 + if test -f mfput.tfm; then + break; + fi + done + echo "$ac_t""$MFMODE" 1>&6 + + rm -f mfput.* + + + + + # Check whether --enable-tfm-path or --disable-tfm-path was given. +if test "${enable_tfm_path+set}" = set; then + enableval="$enable_tfm_path" + tfm_path=$enableval else - echo "$ac_t""no" 1>&6 + tfm_path=auto fi -test -n "$METAPOST" && break -done -test -n "$METAPOST" || METAPOST="no" - if test "x$METAPOST" = "xno"; then - for ac_prog in mpost + # ugh + + for ac_prog in kpsewhich do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2322: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then +echo "configure:3241: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$MPOST"; then - ac_cv_prog_MPOST="$MPOST" # Let the user override the test. + if test -n "$KPSEWHICH"; then + ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_MPOST="$ac_prog" + ac_cv_prog_KPSEWHICH="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -MPOST="$ac_cv_prog_MPOST" -if test -n "$MPOST"; then - echo "$ac_t""$MPOST" 1>&6 +KPSEWHICH="$ac_cv_prog_KPSEWHICH" +if test -n "$KPSEWHICH"; then + echo "$ac_t""$KPSEWHICH" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$MPOST" && break +test -n "$KPSEWHICH" && break done -test -n "$MPOST" || MPOST="-echo no mp or mpost" +test -n "$KPSEWHICH" || KPSEWHICH="no" + + + + r="`eval echo '$'"KPSEWHICH"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi - METAPOST=$MPOST + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\" + + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: kpsewhich not found" + # abort configure process here? + else + command="- echo kpsewhich not found" + fi + eval "KPSEWHICH"='$command' + false + else + true fi - for ac_prog in inimf + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"KPSEWHICH"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3301: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\" + + fi + + fi + + echo $ac_n "checking for tfm path""... $ac_c" 1>&6 +echo "configure:3334: checking for tfm path" >&5 + + TFM_FONTS="cmr msam" + + if test "x$tfm_path" = xauto ; then + if test "x$KPSEWHICH" != "xno" ; then + for i in $TFM_FONTS; do + dir=`$KPSEWHICH tfm ${i}10.tfm` + TFM_PATH="$TFM_PATH `dirname $dir`" + done + else + + echo "configure: warning: Please specify where cmr10.tfm lives: + ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2 + warn_b=yes + + fi + else + TFM_PATH=$tfm_path + fi + + TFM_PATH=`echo $TFM_PATH | tr ':' ' '` + echo "$ac_t""$TFM_PATH" 1>&6 + + + + ## First, let's just see if we can find Guile at all. + echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6 +echo "configure:3362: checking "for guile-config"" >&5 + for guile_config in guile-config $target-guile-config $build-guile-config; do + echo "$ac_t"""$guile_config"" 1>&6 + if ! $guile_config --version > /dev/null 2>&1 ; then + echo "configure: warning: "cannot execute $guile_config"" 1>&2 + echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6 +echo "configure:3368: checking "if we are cross compiling"" >&5 + GUILE_CONFIG='echo no guile-config' + else + GUILE_CONFIG=$guile_config + break + fi + done + + + r="`eval echo '$'"GUILE_CONFIG"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: $guile_config not found" + # abort configure process here? + else + command="- echo $guile_config not found" + fi + eval "GUILE_CONFIG"='$command' + false + else + true + fi + + #if expr "$GUILE_CONFIG" : '.*\(echo\)' >/dev/null; then + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package)'\"`\" + + fi + + + r="`eval echo '$'"GUILE_CONFIG"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + # urg. should test functionality rather than version. + if test $? -eq 0 -a -n "1.3.4"; then + + r="`eval echo '$'"GUILE_CONFIG"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3422: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "1.3.4" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.3.4 (installed: $ver)"\"`\" + + fi + + fi + + + + guile_version="$ver" + GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'` + GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'` + + exe=` + type -p "$guile_config" 2>&1 | awk '{print $NF}' +` + if test -x $exe; then + echo $ac_n "checking "guile compile flags"""... $ac_c" 1>&6 +echo "configure:3465: checking "guile compile flags"" >&5 + GUILE_CFLAGS="`$guile_config compile`" + echo "$ac_t""$GUILE_CFLAGS" 1>&6 + echo $ac_n "checking "guile link flags"""... $ac_c" 1>&6 +echo "configure:3469: checking "guile link flags"" >&5 + GUILE_LDFLAGS="`$guile_config link`" + echo "$ac_t""$GUILE_LDFLAGS" 1>&6 + fi + + + + cat >> confdefs.h <> confdefs.h <&6 -echo "configure:2360: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3503: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$INIMETAFONT"; then - ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test. + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_INIMETAFONT="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" fi +rm -f conftest* fi -INIMETAFONT="$ac_cv_prog_INIMETAFONT" -if test -n "$INIMETAFONT"; then - echo "$ac_t""$INIMETAFONT" 1>&6 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 fi - -test -n "$INIMETAFONT" && break done -test -n "$INIMETAFONT" || INIMETAFONT="no" - if test "x$INIMETAFONT" = "xno"; then - for ac_prog in inimfont -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2396: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then + echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6 +echo "configure:3540: checking for kpse_find_file in -lkpathsea" >&5 +ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$INIMFONT"; then - ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test. + ac_save_LIBS="$LIBS" +LIBS="-lkpathsea $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_INIMFONT="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" fi +rm -f conftest* +LIBS="$ac_save_LIBS" + fi -INIMFONT="$ac_cv_prog_INIMFONT" -if test -n "$INIMFONT"; then - echo "$ac_t""$INIMFONT" 1>&6 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 fi -test -n "$INIMFONT" && break -done -test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont" - - INIMETAFONT=$INIMFONT - fi - - for ac_prog in inimp + for ac_func in kpse_find_file do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2434: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:3592: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$INIMETAPOST"; then - ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test. + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_INIMETAPOST="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" fi +rm -f conftest* fi -INIMETAPOST="$ac_cv_prog_INIMETAPOST" -if test -n "$INIMETAPOST"; then - echo "$ac_t""$INIMETAPOST" 1>&6 + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +{ echo "configure: error: Cannot find kpathsea functions. You should install kpathsea; see INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform." 1>&2; exit 1; } fi - -test -n "$INIMETAPOST" && break done -test -n "$INIMETAPOST" || INIMETAPOST="no" - if test "x$INIMETAPOST" = "xno"; then - for ac_prog in inimpost + fi + echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6 +echo "configure:3650: checking whether to use kpathsea" >&5 + if test "$kpathsea_b" != no; then + echo "$ac_t""yes" 1>&6 + KPATHSEA=1 + else + echo "$ac_t""no" 1>&6 + KPATHSEA=0 + fi + + + cat >> confdefs.h <&6 -echo "configure:2470: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then +echo "configure:3672: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$INIMPOST"; then - ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test. + if test -n "$MAKEINFO"; then + ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_INIMPOST="$ac_prog" + ac_cv_prog_MAKEINFO="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -INIMPOST="$ac_cv_prog_INIMPOST" -if test -n "$INIMPOST"; then - echo "$ac_t""$INIMPOST" 1>&6 +MAKEINFO="$ac_cv_prog_MAKEINFO" +if test -n "$MAKEINFO"; then + echo "$ac_t""$MAKEINFO" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$INIMPOST" && break +test -n "$MAKEINFO" && break done -test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost" +test -n "$MAKEINFO" || MAKEINFO="no" - INIMETAPOST=$INIMPOST - fi - - + r="`eval echo '$'"MAKEINFO"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: makeinfo not found" + # abort configure process here? + else + command="- echo makeinfo not found" + fi + eval "MAKEINFO"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"MAKEINFO"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3732: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + + fi + + if test "$MAKEINFO" = "makeinfo"; then + echo $ac_n "checking whether makeinfo can split html by @node""... $ac_c" 1>&6 +echo "configure:3766: checking whether makeinfo can split html by @node" >&5 + mkdir -p out + makeinfo --html --output=out/split <&6 + rm -rf out/split + else + echo "$ac_t""no" 1>&6 + + echo "configure: warning: your html documentation will be one large file" 1>&2 + warn_b=yes + + rm -rf out/split + fi + fi -# AC_STEPMAKE_TEXMF_DIRS - if test "x$YODL" = "x"; then - for ac_prog in striproff + for ac_hdr in python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2516: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3795: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$STRIPROFF"; then - ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test. + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_STRIPROFF="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" fi +rm -f conftest* fi -STRIPROFF="$ac_cv_prog_STRIPROFF" -if test -n "$STRIPROFF"; then - echo "$ac_t""$STRIPROFF" 1>&6 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 fi - -test -n "$STRIPROFF" && break done -test -n "$STRIPROFF" || STRIPROFF="-echo no striproff" - for ac_prog in yodl -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2551: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$YODL"; then - ac_cv_prog_YODL="$YODL" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_YODL="$ac_prog" - break + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'python.h (python-devel, python-dev or libpython-dev package)'\"`\" + fi - done - IFS="$ac_save_ifs" -fi -fi -YODL="$ac_cv_prog_YODL" -if test -n "$YODL"; then - echo "$ac_t""$YODL" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi -test -n "$YODL" && break -done -test -n "$YODL" || YODL="-echo no yodl" - for ac_prog in yodl2html + +## Optional tools for building documentation, website, extra fonts. + +# guile executable for some scripts + + + for ac_prog in guile do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2586: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then +echo "configure:3849: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_GUILE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$YODL2HTML"; then - ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test. + if test -n "$GUILE"; then + ac_cv_prog_GUILE="$GUILE" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_YODL2HTML="$ac_prog" + ac_cv_prog_GUILE="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -YODL2HTML="$ac_cv_prog_YODL2HTML" -if test -n "$YODL2HTML"; then - echo "$ac_t""$YODL2HTML" 1>&6 +GUILE="$ac_cv_prog_GUILE" +if test -n "$GUILE"; then + echo "$ac_t""$GUILE" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$YODL2HTML" && break +test -n "$GUILE" && break done -test -n "$YODL2HTML" || YODL2HTML="-echo no yodl" +test -n "$GUILE" || GUILE="no" - for ac_prog in yodl2latex -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 + + + r="`eval echo '$'"GUILE"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\" + + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: guile not found" + # abort configure process here? + else + command="- echo guile not found" + fi + eval "GUILE"='$command' + false + else + true + fi + + if test $? -eq 0; then + # Extract the first word of "guile", so it can be a program name with args. +set dummy guile; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2621: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then +echo "configure:3909: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$YODL2LATEX"; then - ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test. -else + case "$GUILE" in + /*) + ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_GUILE="$GUILE" # Let the user override the test with a dos path. + ;; + *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" - for ac_dir in $ac_dummy; do + for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_YODL2LATEX="$ac_prog" + ac_cv_path_GUILE="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" + ;; +esac fi -fi -YODL2LATEX="$ac_cv_prog_YODL2LATEX" -if test -n "$YODL2LATEX"; then - echo "$ac_t""$YODL2LATEX" 1>&6 +GUILE="$ac_cv_path_GUILE" +if test -n "$GUILE"; then + echo "$ac_t""$GUILE" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$YODL2LATEX" && break -done + if test -n ""; then + + r="`eval echo '$'"GUILE"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3945: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\" + + fi + + fi + fi + + +# perl for help2man. - for ac_prog in yodl2man + + for ac_prog in perl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2655: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+set}'`\" = set"; then +echo "configure:3987: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$YODL2MAN"; then - ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test. + if test -n "$PERL"; then + ac_cv_prog_PERL="$PERL" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_YODL2MAN="$ac_prog" + ac_cv_prog_PERL="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -YODL2MAN="$ac_cv_prog_YODL2MAN" -if test -n "$YODL2MAN"; then - echo "$ac_t""$YODL2MAN" 1>&6 +PERL="$ac_cv_prog_PERL" +if test -n "$PERL"; then + echo "$ac_t""$PERL" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$YODL2MAN" && break +test -n "$PERL" && break done -test -n "$YODL2MAN" || YODL2MAN="-echo no yodl" +test -n "$PERL" || PERL="no" - for ac_prog in yodl2msless -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 + + + r="`eval echo '$'"PERL"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\" + + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: perl not found" + # abort configure process here? + else + command="- echo perl not found" + fi + eval "PERL"='$command' + false + else + true + fi + + if test $? -eq 0; then + # Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2690: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then +echo "configure:4047: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$YODL2MSLESS"; then - ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test. -else + case "$PERL" in + /*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. + ;; + *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" - for ac_dir in $ac_dummy; do + for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_YODL2MSLESS="$ac_prog" + ac_cv_path_PERL="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" + ;; +esac fi -fi -YODL2MSLESS="$ac_cv_prog_YODL2MSLESS" -if test -n "$YODL2MSLESS"; then - echo "$ac_t""$YODL2MSLESS" 1>&6 +PERL="$ac_cv_path_PERL" +if test -n "$PERL"; then + echo "$ac_t""$PERL" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$YODL2MSLESS" && break -done -test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl" + if test -n ""; then + + r="`eval echo '$'"PERL"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:4083: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\" + + fi - for ac_prog in yodl2texinfo + fi + fi + + +# pktrace for generating pfa's, pfb's + + for ac_prog in pktrace do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2725: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then +echo "configure:4124: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_PKTRACE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$YODL2TEXINFO"; then - ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test. + if test -n "$PKTRACE"; then + ac_cv_prog_PKTRACE="$PKTRACE" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_YODL2TEXINFO="$ac_prog" + ac_cv_prog_PKTRACE="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO" -if test -n "$YODL2TEXINFO"; then - echo "$ac_t""$YODL2TEXINFO" 1>&6 +PKTRACE="$ac_cv_prog_PKTRACE" +if test -n "$PKTRACE"; then + echo "$ac_t""$PKTRACE" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$YODL2TEXINFO" && break +test -n "$PKTRACE" && break done -test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl" +test -n "$PKTRACE" || PKTRACE="no" + + + + r="`eval echo '$'"PKTRACE"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PKTRACE"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pktrace\"`\" + + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: pktrace not found" + # abort configure process here? + else + command="- echo pktrace not found" + fi + eval "PKTRACE"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n "1.0.3"; then + + r="`eval echo '$'"PKTRACE"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:4184: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "1.0.3" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r 1.0.3 (installed: $ver)"\"`\" + + fi + + fi - for ac_prog in yodl2txt +# new makeinfo for multi-page website docs + + for ac_prog in makeinfo do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2760: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then +echo "configure:4223: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$YODL2TXT"; then - ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test. + if test -n "$MAKEINFO"; then + ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_YODL2TXT="$ac_prog" + ac_cv_prog_MAKEINFO="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -YODL2TXT="$ac_cv_prog_YODL2TXT" -if test -n "$YODL2TXT"; then - echo "$ac_t""$YODL2TXT" 1>&6 +MAKEINFO="$ac_cv_prog_MAKEINFO" +if test -n "$MAKEINFO"; then + echo "$ac_t""$MAKEINFO" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$YODL2TXT" && break +test -n "$MAKEINFO" && break done -test -n "$YODL2TXT" || YODL2TXT="-echo no yodl" +test -n "$MAKEINFO" || MAKEINFO="no" - YODL2LESS_DIR='$(bindir)/' + + + r="`eval echo '$'"MAKEINFO"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false else - - - - - - - - - - export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT + true fi - if test "x$YODL" = "-echo no yodl"; then + + if test $? -ne 0; then - echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2 - warn_b=yes + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"makeinfo\"`\" - fi + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: makeinfo not found" + # abort configure process here? + else + command="- echo makeinfo not found" + fi + eval "MAKEINFO"='$command' + false + else + true + fi + if test $? -eq 0 -a -n "4.1"; then + + r="`eval echo '$'"MAKEINFO"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:4283: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "4.1" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r 4.1 (installed: $ver)"\"`\" - # on some systems, -lguile succeeds for guile-1.3 - # others need readline, dl (or even more) - # urg, must check for different functions in libguile - # to force new check iso reading from cache + fi - # gh_scm2doubles,gh_doubles2scm are new in 1.3 - -## The GUILE_FLAGS macro. - ## First, let's just see if we can find Guile at all. - echo $ac_n "checking for Guile""... $ac_c" 1>&6 -echo "configure:2821: checking for Guile" >&5 - guile-config link > /dev/null || { - echo "configure: cannot find guile-config; is Guile installed?" 1>&2 - exit 1 - } - GUILE_CFLAGS="`guile-config compile`" - GUILE_LDFLAGS="`guile-config link`" - - - echo "$ac_t""yes" 1>&6 + fi - echo $ac_n "checking for gh_scm2doubles in -lguile""... $ac_c" 1>&6 -echo "configure:2833: checking for gh_scm2doubles in -lguile" >&5 -ac_lib_var=`echo guile'_'gh_scm2doubles | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lguile $GUILE_LDFLAGS $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="`echo $GUILE_LDFLAGS | sed -e 's/-L[/-_a-zA-Z0-9]\+ //g'` $LIBS" - cat >> confdefs.h <<\EOF -#define HAVE_LIBGUILE 1 +if test "$optimise_b" = yes; then + DEFINES="$DEFINES -DSTRING_UTILS_INLINED" + cat >> confdefs.h <<\EOF +#define STRINGS_UTILS_INLINED 1 EOF -else - echo "$ac_t""no" 1>&6 fi - if test "$ac_cv_lib_guile_gh_scm2doubles" != yes ; then - - echo "configure: warning: You should install guile 1.3 or newer" 1>&2 - warn_b=yes - - fi - - echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 -echo "configure:2889: checking for 8-bit clean memcmp" >&5 +echo "configure:4327: checking for 8-bit clean memcmp" >&5 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2893,11 +4331,8 @@ else ac_cv_func_memcmp_clean=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_memcmp_clean=yes else @@ -2924,12 +4359,12 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" echo $ac_n "checking for vprintf""... $ac_c" 1>&6 -echo "configure:2928: checking for vprintf" >&5 +echo "configure:4363: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else @@ -2979,12 +4414,12 @@ fi if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 -echo "configure:2983: checking for _doprnt" >&5 +echo "configure:4418: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else @@ -3034,15 +4469,15 @@ fi fi -for ac_func in memmem snprintf vsnprintf gettext +for ac_func in memmem snprintf vsnprintf gettext isinf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3041: checking for $ac_func" >&5 +echo "configure:4476: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3102,60 +4537,11 @@ cat >> confdefs.h <&6 -echo "configure:3111: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$MAKEINFO"; then - ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_MAKEINFO="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -MAKEINFO="$ac_cv_prog_MAKEINFO" -if test -n "$MAKEINFO"; then - echo "$ac_t""$MAKEINFO" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$MAKEINFO" && break -done -test -n "$MAKEINFO" || MAKEINFO="error" - - - result="`echo \"$YODL2TEXINFO\" | grep echo`" - if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then - - echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or newer" 1>&2 - warn_b=yes - - fi - - - -echo $ac_n "checking Checking TFM directory""... $ac_c" 1>&6 -echo "configure:3153: checking Checking TFM directory" >&5 -CMR10=`kpsewhich tfm cmr10.tfm` -TEX_TFMDIR=`dirname $CMR10` -echo "$ac_t""$TEX_TFMDIR" 1>&6 - - +# Gather requirements and generate output. + + + trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure @@ -3288,14 +4674,13 @@ s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g +s%@builddir@%$builddir%g s%@stepmake@%$stepmake%g s%@package@%$package%g s%@PACKAGE@%$PACKAGE%g s%@PACKAGE_NAME@%$PACKAGE_NAME%g s%@package_depth@%$package_depth%g s%@AUTOGENERATE@%$AUTOGENERATE%g -s%@absolute_builddir@%$absolute_builddir%g -s%@STATE_VECTOR@%$STATE_VECTOR%g s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g s%@host@%$host%g s%@host_alias@%$host_alias%g @@ -3307,7 +4692,8 @@ s%@FIND@%$FIND%g s%@TAR@%$TAR%g s%@BASH@%$BASH%g s%@PYTHON@%$PYTHON%g -s%@DOTEXE@%$DOTEXE%g +s%@program_prefix@%$program_prefix%g +s%@program_suffix@%$program_suffix%g s%@ZIP@%$ZIP%g s%@LN@%$LN%g s%@LN_S@%$LN_S%g @@ -3318,10 +4704,12 @@ s%@DIR_DATADIR@%$DIR_DATADIR%g s%@subdirs@%$subdirs%g s%@CC@%$CC%g s%@LD@%$LD%g +s%@cross_compiling@%$cross_compiling%g s%@ICFLAGS@%$ICFLAGS%g s%@ILDFLAGS@%$ILDFLAGS%g s%@DEFINES@%$DEFINES%g s%@EXTRA_LIBES@%$EXTRA_LIBES%g +s%@CPP@%$CPP%g s%@CXX@%$CXX%g s%@CXXCPP@%$CXXCPP%g s%@YACC@%$YACC%g @@ -3333,25 +4721,22 @@ s%@localedir@%$localedir%g s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g s%@MSGFMT@%$MSGFMT%g s%@METAFONT@%$METAFONT%g -s%@MFONT@%$MFONT%g -s%@METAPOST@%$METAPOST%g -s%@MPOST@%$MPOST%g s%@INIMETAFONT@%$INIMETAFONT%g -s%@INIMFONT@%$INIMFONT%g -s%@INIMETAPOST@%$INIMETAPOST%g -s%@INIMPOST@%$INIMPOST%g -s%@STRIPROFF@%$STRIPROFF%g -s%@YODL@%$YODL%g -s%@YODL2HTML@%$YODL2HTML%g -s%@YODL2LATEX@%$YODL2LATEX%g -s%@YODL2MAN@%$YODL2MAN%g -s%@YODL2MSLESS@%$YODL2MSLESS%g -s%@YODL2TEXINFO@%$YODL2TEXINFO%g -s%@YODL2TXT@%$YODL2TXT%g -s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g -s%@LIBOBJS@%$LIBOBJS%g +s%@MFMODE@%$MFMODE%g +s%@KPSEWHICH@%$KPSEWHICH%g +s%@TFM_PATH@%$TFM_PATH%g +s%@GUILE_CONFIG@%$GUILE_CONFIG%g +s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g +s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g +s%@KPATHSEA@%$KPATHSEA%g s%@MAKEINFO@%$MAKEINFO%g -s%@TEX_TFMDIR@%$TEX_TFMDIR%g +s%@SPLITTING_MAKEINFO@%$SPLITTING_MAKEINFO%g +s%@GUILE@%$GUILE%g +s%@PERL@%$PERL%g +s%@PKTRACE@%$PKTRACE%g +s%@LIBOBJS@%$LIBOBJS%g +s%@OPTIONAL@%$OPTIONAL%g +s%@REQUIRED@%$REQUIRED%g CEOF EOF @@ -3660,9 +5045,50 @@ if test "$no_recursion" != yes; then fi - rm -f GNUmakefile - cp make/toplevel.make.in ./GNUmakefile - chmod 444 GNUmakefile + + if test -n "$OPTIONAL"; then + echo + echo "WARNING: Please consider installing optional programs: $OPTIONAL" + fi + + if test -n "$REQUIRED"; then + echo + echo "ERROR: Please install required programs: $REQUIRED" + fi + + if test -n "$OPTIONAL$REQUIRED"; then + echo + echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME" + echo "Remove config.cache before rerunning ./configure" + fi + + if test -n "$REQUIRED"; then + rm -f $srcdir/GNUmakefile + exit 1 + fi + + # regular in-place build + # test for srcdir_build = yes ? + if test "$builddir" = "."; then + rm -f $srcdir/GNUmakefile + cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile + chmod 444 $srcdir/GNUmakefile + else # --srcdir build + rm -f GNUmakefile + cp $srcdir/make/srcdir.make.in GNUmakefile + chmod 444 GNUmakefile + fi + + +test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc="" +cat <