476
728
if test ! -r $srcdir/$ac_unique_file; then
477
729
if test "$ac_srcdir_defaulted" = yes; then
478
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
730
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
{ (exit 1); exit 1; }; }
480
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
733
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
{ (exit 1); exit 1; }; }
483
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
{ (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CPP_set=${CPP+set}
770
ac_env_CPP_value=$CPP
771
ac_cv_env_CPP_set=${CPP+set}
772
ac_cv_env_CPP_value=$CPP
775
# Report the --help message.
777
if test "$ac_init_help" = "long"; then
778
# Omit some internal or obsolete options to make the list less imposing.
779
# This message is too long to be a string in the A/UX 3.1 sh.
781
\`configure' configures this package to adapt to many kinds of systems.
783
Usage: $0 [OPTION]... [VAR=VALUE]...
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
786
VAR=VALUE. See below for descriptions of some of the useful variables.
788
Defaults for the options are specified in brackets.
791
-h, --help display this help and exit
792
--help=short display options specific to this package
793
--help=recursive display the short help of all the included packages
794
-V, --version display version information and exit
795
-q, --quiet, --silent do not print \`checking...' messages
796
--cache-file=FILE cache test results in FILE [disabled]
797
-C, --config-cache alias for \`--cache-file=config.cache'
798
-n, --no-create do not create output files
799
--srcdir=DIR find the sources in DIR [configure dir or \`..']
804
Installation directories:
805
--prefix=PREFIX install architecture-independent files in PREFIX
807
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810
By default, \`make install' will install all the files in
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813
for instance \`--prefix=\$HOME'.
815
For better control, use the options below.
817
Fine tuning of the installation directories:
818
--bindir=DIR user executables [EPREFIX/bin]
819
--sbindir=DIR system admin executables [EPREFIX/sbin]
820
--libexecdir=DIR program executables [EPREFIX/libexec]
821
--datadir=DIR read-only architecture-independent data [PREFIX/share]
822
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
825
--libdir=DIR object code libraries [EPREFIX/lib]
826
--includedir=DIR C header files [PREFIX/include]
827
--oldincludedir=DIR C header files for non-gcc [/usr/include]
828
--infodir=DIR info documentation [PREFIX/info]
829
--mandir=DIR man documentation [PREFIX/man]
836
if test -n "$ac_init_help"; then
841
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843
--with-mysql-dir=MYSQL_DIR specifies an existing MySQL base dir
844
--with-mysql-inc=MYSQL_INC specifies an existing MySQL include dir
845
--with-mysql-lib=MYSQL_LIB specifies an existing MySQL lib dir
847
Some influential environment variables:
848
CC C compiler command
849
CFLAGS C compiler flags
850
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851
nonstandard directory <lib dir>
852
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853
headers in a nonstandard directory <include dir>
856
Use these variables to override the choices made by `configure' or to help
857
it to find libraries and programs with nonstandard names/locations.
862
if test "$ac_init_help" = "recursive"; then
863
# If there are subdirs, report their specific --help.
865
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866
test -d $ac_dir || continue
869
if test "$ac_dir" != .; then
870
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871
# A "../" for each directory in $ac_dir_suffix.
872
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
874
ac_dir_suffix= ac_top_builddir=
878
.) # No --srcdir option. We are building in place.
880
if test -z "$ac_top_builddir"; then
883
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885
[\\/]* | ?:[\\/]* ) # Absolute path.
886
ac_srcdir=$srcdir$ac_dir_suffix;
887
ac_top_srcdir=$srcdir ;;
889
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890
ac_top_srcdir=$ac_top_builddir$srcdir ;;
893
# Do not use `cd foo && pwd` to compute absolute paths, because
894
# the directories may not exist.
896
.) ac_abs_builddir="$ac_dir";;
899
.) ac_abs_builddir=`pwd`;;
900
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
901
*) ac_abs_builddir=`pwd`/"$ac_dir";;
904
case $ac_abs_builddir in
905
.) ac_abs_top_builddir=${ac_top_builddir}.;;
907
case ${ac_top_builddir}. in
908
.) ac_abs_top_builddir=$ac_abs_builddir;;
909
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
910
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
913
case $ac_abs_builddir in
914
.) ac_abs_srcdir=$ac_srcdir;;
917
.) ac_abs_srcdir=$ac_abs_builddir;;
918
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
919
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
922
case $ac_abs_builddir in
923
.) ac_abs_top_srcdir=$ac_top_srcdir;;
925
case $ac_top_srcdir in
926
.) ac_abs_top_srcdir=$ac_abs_builddir;;
927
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
928
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933
# Check for guested configure; otherwise get Cygnus style configure.
934
if test -f $ac_srcdir/configure.gnu; then
936
$SHELL $ac_srcdir/configure.gnu --help=recursive
937
elif test -f $ac_srcdir/configure; then
939
$SHELL $ac_srcdir/configure --help=recursive
940
elif test -f $ac_srcdir/configure.ac ||
941
test -f $ac_srcdir/configure.in; then
945
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951
test -n "$ac_init_help" && exit 0
952
if $ac_init_version; then
955
Copyright (C) 2003 Free Software Foundation, Inc.
956
This configure script is free software; the Free Software Foundation
957
gives unlimited permission to copy, distribute and modify it.
963
This file contains any messages produced by compilers while
964
running configure, to aid debugging if configure makes a mistake.
966
It was created by $as_me, which was
967
generated by GNU Autoconf 2.59. Invocation command line was
978
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979
uname -m = `(uname -m) 2>/dev/null || echo unknown`
980
uname -r = `(uname -r) 2>/dev/null || echo unknown`
981
uname -s = `(uname -s) 2>/dev/null || echo unknown`
982
uname -v = `(uname -v) 2>/dev/null || echo unknown`
984
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001
test -z "$as_dir" && as_dir=.
1002
echo "PATH: $as_dir"
1017
# Keep a trace of the command line.
1018
# Strip out --no-create and --no-recursion so they do not pile up.
1019
# Strip out --silent because we don't want to record it for future runs.
1020
# Also quote any args containing shell meta-characters.
1021
# Make two passes to allow for proper duplicate-argument suppression.
1026
ac_must_keep_next=false
1032
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034
| -silent | --silent | --silen | --sile | --sil)
1036
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043
if test $ac_must_keep_next = true; then
1044
ac_must_keep_next=false # Got value, back to normal.
1047
*=* | --config-cache | -C | -disable-* | --disable-* \
1048
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050
| -with-* | --with-* | -without-* | --without-* | --x)
1051
case "$ac_configure_args0 " in
1052
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055
-* ) ac_must_keep_next=true ;;
1058
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059
# Get rid of the leading space.
1065
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068
# When interrupted or exit'd, cleanup temporary files, and complete
1069
# config.log. We remove comments because anyway the quotes in there
1070
# would cause problems or look ugly.
1071
# WARNING: Be sure not to use single quotes in there, as some shells,
1072
# such as our DU 5.0 friend, will then `close' the trap.
1073
trap 'exit_status=$?
1074
# Save into config.log some information that might help in debugging.
1079
## ---------------- ##
1080
## Cache variables. ##
1081
## ---------------- ##
1084
# The following way of writing the cache mishandles newlines in values,
1087
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102
## ----------------- ##
1103
## Output variables. ##
1104
## ----------------- ##
1107
for ac_var in $ac_subst_vars
1109
eval ac_val=$`echo $ac_var`
1110
echo "$ac_var='"'"'$ac_val'"'"'"
1114
if test -n "$ac_subst_files"; then
1121
for ac_var in $ac_subst_files
1123
eval ac_val=$`echo $ac_var`
1124
echo "$ac_var='"'"'$ac_val'"'"'"
1129
if test -s confdefs.h; then
1136
sed "/^$/d" confdefs.h | sort
1139
test "$ac_signal" != 0 &&
1140
echo "$as_me: caught signal $ac_signal"
1141
echo "$as_me: exit $exit_status"
1143
rm -f core *.core &&
1144
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147
for ac_signal in 1 2 13 15; do
1148
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1153
rm -rf conftest* confdefs.h
1154
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157
# Predefined preprocessor variables.
1159
cat >>confdefs.h <<_ACEOF
1160
#define PACKAGE_NAME "$PACKAGE_NAME"
1164
cat >>confdefs.h <<_ACEOF
1165
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169
cat >>confdefs.h <<_ACEOF
1170
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1174
cat >>confdefs.h <<_ACEOF
1175
#define PACKAGE_STRING "$PACKAGE_STRING"
1179
cat >>confdefs.h <<_ACEOF
1180
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184
# Let the site file select an alternate cache file if it wants to.
485
1185
# Prefer explicitly selected file to automatically selected ones.
486
1186
if test -z "$CONFIG_SITE"; then
487
1187
if test "x$prefix" != xNONE; then
493
1193
for ac_site_file in $CONFIG_SITE; do
494
1194
if test -r "$ac_site_file"; then
495
echo "loading site script $ac_site_file"
1195
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196
echo "$as_me: loading site script $ac_site_file" >&6;}
1197
sed 's/^/| /' "$ac_site_file" >&5
496
1198
. "$ac_site_file"
500
1202
if test -r "$cache_file"; then
501
echo "loading cache $cache_file"
504
echo "creating cache $cache_file"
509
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510
ac_cpp='$CPP $CPPFLAGS'
511
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513
cross_compiling=$ac_cv_prog_cc_cross
517
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526
ac_n= ac_c='\c' ac_t=
531
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
532
echo "configure:533: checking how to run the C preprocessor" >&5
1203
# Some versions of bash will fail to source /dev/null (special
1204
# files actually), so we avoid doing that.
1205
if test -f "$cache_file"; then
1206
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207
echo "$as_me: loading cache $cache_file" >&6;}
1209
[\\/]* | ?:[\\/]* ) . $cache_file;;
1210
*) . ./$cache_file;;
1214
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215
echo "$as_me: creating cache $cache_file" >&6;}
1219
# Check that the precious variables saved in the cache have kept the same
1221
ac_cache_corrupted=false
1222
for ac_var in `(set) 2>&1 |
1223
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225
eval ac_new_set=\$ac_env_${ac_var}_set
1226
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227
eval ac_new_val="\$ac_env_${ac_var}_value"
1228
case $ac_old_set,$ac_new_set in
1230
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232
ac_cache_corrupted=: ;;
1234
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236
ac_cache_corrupted=: ;;
1239
if test "x$ac_old_val" != "x$ac_new_val"; then
1240
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1243
echo "$as_me: former value: $ac_old_val" >&2;}
1244
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1245
echo "$as_me: current value: $ac_new_val" >&2;}
1246
ac_cache_corrupted=:
1249
# Pass precious variables to config.status.
1250
if test "$ac_new_set" = set; then
1252
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254
*) ac_arg=$ac_var=$ac_new_val ;;
1256
case " $ac_configure_args " in
1257
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1258
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262
if $ac_cache_corrupted; then
1263
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267
{ (exit 1); exit 1; }; }
1271
ac_cpp='$CPP $CPPFLAGS'
1272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
ac_cpp='$CPP $CPPFLAGS'
1297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300
if test -n "$ac_tool_prefix"; then
1301
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1302
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1303
echo "$as_me:$LINENO: checking for $ac_word" >&5
1304
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1305
if test "${ac_cv_prog_CC+set}" = set; then
1306
echo $ECHO_N "(cached) $ECHO_C" >&6
1308
if test -n "$CC"; then
1309
ac_cv_prog_CC="$CC" # Let the user override the test.
1311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1315
test -z "$as_dir" && as_dir=.
1316
for ac_exec_ext in '' $ac_executable_extensions; do
1317
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1318
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1319
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1328
if test -n "$CC"; then
1329
echo "$as_me:$LINENO: result: $CC" >&5
1330
echo "${ECHO_T}$CC" >&6
1332
echo "$as_me:$LINENO: result: no" >&5
1333
echo "${ECHO_T}no" >&6
1337
if test -z "$ac_cv_prog_CC"; then
1339
# Extract the first word of "gcc", so it can be a program name with args.
1340
set dummy gcc; ac_word=$2
1341
echo "$as_me:$LINENO: checking for $ac_word" >&5
1342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1343
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1344
echo $ECHO_N "(cached) $ECHO_C" >&6
1346
if test -n "$ac_ct_CC"; then
1347
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1353
test -z "$as_dir" && as_dir=.
1354
for ac_exec_ext in '' $ac_executable_extensions; do
1355
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1356
ac_cv_prog_ac_ct_CC="gcc"
1357
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1365
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1366
if test -n "$ac_ct_CC"; then
1367
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1368
echo "${ECHO_T}$ac_ct_CC" >&6
1370
echo "$as_me:$LINENO: result: no" >&5
1371
echo "${ECHO_T}no" >&6
1379
if test -z "$CC"; then
1380
if test -n "$ac_tool_prefix"; then
1381
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1382
set dummy ${ac_tool_prefix}cc; ac_word=$2
1383
echo "$as_me:$LINENO: checking for $ac_word" >&5
1384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1385
if test "${ac_cv_prog_CC+set}" = set; then
1386
echo $ECHO_N "(cached) $ECHO_C" >&6
1388
if test -n "$CC"; then
1389
ac_cv_prog_CC="$CC" # Let the user override the test.
1391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395
test -z "$as_dir" && as_dir=.
1396
for ac_exec_ext in '' $ac_executable_extensions; do
1397
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1398
ac_cv_prog_CC="${ac_tool_prefix}cc"
1399
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408
if test -n "$CC"; then
1409
echo "$as_me:$LINENO: result: $CC" >&5
1410
echo "${ECHO_T}$CC" >&6
1412
echo "$as_me:$LINENO: result: no" >&5
1413
echo "${ECHO_T}no" >&6
1417
if test -z "$ac_cv_prog_CC"; then
1419
# Extract the first word of "cc", so it can be a program name with args.
1420
set dummy cc; ac_word=$2
1421
echo "$as_me:$LINENO: checking for $ac_word" >&5
1422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1424
echo $ECHO_N "(cached) $ECHO_C" >&6
1426
if test -n "$ac_ct_CC"; then
1427
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433
test -z "$as_dir" && as_dir=.
1434
for ac_exec_ext in '' $ac_executable_extensions; do
1435
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436
ac_cv_prog_ac_ct_CC="cc"
1437
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1446
if test -n "$ac_ct_CC"; then
1447
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1448
echo "${ECHO_T}$ac_ct_CC" >&6
1450
echo "$as_me:$LINENO: result: no" >&5
1451
echo "${ECHO_T}no" >&6
1460
if test -z "$CC"; then
1461
# Extract the first word of "cc", so it can be a program name with args.
1462
set dummy cc; ac_word=$2
1463
echo "$as_me:$LINENO: checking for $ac_word" >&5
1464
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465
if test "${ac_cv_prog_CC+set}" = set; then
1466
echo $ECHO_N "(cached) $ECHO_C" >&6
1468
if test -n "$CC"; then
1469
ac_cv_prog_CC="$CC" # Let the user override the test.
1472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476
test -z "$as_dir" && as_dir=.
1477
for ac_exec_ext in '' $ac_executable_extensions; do
1478
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1480
ac_prog_rejected=yes
1484
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490
if test $ac_prog_rejected = yes; then
1491
# We found a bogon in the path, so make sure we never use it.
1492
set dummy $ac_cv_prog_CC
1494
if test $# != 0; then
1495
# We chose a different compiler from the bogus one.
1496
# However, it has the same basename, so the bogon will be chosen
1497
# first if we set CC to just the basename; use the full file name.
1499
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1505
if test -n "$CC"; then
1506
echo "$as_me:$LINENO: result: $CC" >&5
1507
echo "${ECHO_T}$CC" >&6
1509
echo "$as_me:$LINENO: result: no" >&5
1510
echo "${ECHO_T}no" >&6
1514
if test -z "$CC"; then
1515
if test -n "$ac_tool_prefix"; then
1518
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1519
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1520
echo "$as_me:$LINENO: checking for $ac_word" >&5
1521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522
if test "${ac_cv_prog_CC+set}" = set; then
1523
echo $ECHO_N "(cached) $ECHO_C" >&6
1525
if test -n "$CC"; then
1526
ac_cv_prog_CC="$CC" # Let the user override the test.
1528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532
test -z "$as_dir" && as_dir=.
1533
for ac_exec_ext in '' $ac_executable_extensions; do
1534
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1536
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545
if test -n "$CC"; then
1546
echo "$as_me:$LINENO: result: $CC" >&5
1547
echo "${ECHO_T}$CC" >&6
1549
echo "$as_me:$LINENO: result: no" >&5
1550
echo "${ECHO_T}no" >&6
1553
test -n "$CC" && break
1556
if test -z "$CC"; then
1560
# Extract the first word of "$ac_prog", so it can be a program name with args.
1561
set dummy $ac_prog; ac_word=$2
1562
echo "$as_me:$LINENO: checking for $ac_word" >&5
1563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565
echo $ECHO_N "(cached) $ECHO_C" >&6
1567
if test -n "$ac_ct_CC"; then
1568
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574
test -z "$as_dir" && as_dir=.
1575
for ac_exec_ext in '' $ac_executable_extensions; do
1576
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577
ac_cv_prog_ac_ct_CC="$ac_prog"
1578
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587
if test -n "$ac_ct_CC"; then
1588
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589
echo "${ECHO_T}$ac_ct_CC" >&6
1591
echo "$as_me:$LINENO: result: no" >&5
1592
echo "${ECHO_T}no" >&6
1595
test -n "$ac_ct_CC" && break
1604
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1605
See \`config.log' for more details." >&5
1606
echo "$as_me: error: no acceptable C compiler found in \$PATH
1607
See \`config.log' for more details." >&2;}
1608
{ (exit 1); exit 1; }; }
1610
# Provide some information about the compiler.
1611
echo "$as_me:$LINENO:" \
1612
"checking for C compiler version" >&5
1613
ac_compiler=`set X $ac_compile; echo $2`
1614
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1615
(eval $ac_compiler --version </dev/null >&5) 2>&5
1617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1618
(exit $ac_status); }
1619
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1620
(eval $ac_compiler -v </dev/null >&5) 2>&5
1622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623
(exit $ac_status); }
1624
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1625
(eval $ac_compiler -V </dev/null >&5) 2>&5
1627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628
(exit $ac_status); }
1630
cat >conftest.$ac_ext <<_ACEOF
1633
cat confdefs.h >>conftest.$ac_ext
1634
cat >>conftest.$ac_ext <<_ACEOF
1635
/* end confdefs.h. */
1645
ac_clean_files_save=$ac_clean_files
1646
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1647
# Try to create an executable without -o first, disregard a.out.
1648
# It will help us diagnose broken compilers, and finding out an intuition
1650
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1651
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1652
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1653
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1654
(eval $ac_link_default) 2>&5
1656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657
(exit $ac_status); }; then
1658
# Find the output, starting from the most likely. This scheme is
1659
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1662
# Be careful to initialize this variable, since it used to be cached.
1663
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1665
# b.out is created by i960 compilers.
1666
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1668
test -f "$ac_file" || continue
1670
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1673
# This is the source file.
1676
# We found the default executable, but exeext='' is most
1680
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1681
# FIXME: I believe we export ac_cv_exeext for Libtool,
1682
# but it would be cool to find out if it's true. Does anybody
1683
# maintain Libtool? --akim.
1691
echo "$as_me: failed program was:" >&5
1692
sed 's/^/| /' conftest.$ac_ext >&5
1694
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1695
See \`config.log' for more details." >&5
1696
echo "$as_me: error: C compiler cannot create executables
1697
See \`config.log' for more details." >&2;}
1698
{ (exit 77); exit 77; }; }
1701
ac_exeext=$ac_cv_exeext
1702
echo "$as_me:$LINENO: result: $ac_file" >&5
1703
echo "${ECHO_T}$ac_file" >&6
1705
# Check the compiler produces executables we can run. If not, either
1706
# the compiler is broken, or we cross compile.
1707
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1708
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1709
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1710
# If not cross compiling, check that we can run a simple program.
1711
if test "$cross_compiling" != yes; then
1712
if { ac_try='./$ac_file'
1713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717
(exit $ac_status); }; }; then
1720
if test "$cross_compiling" = maybe; then
1723
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1724
If you meant to cross compile, use \`--host'.
1725
See \`config.log' for more details." >&5
1726
echo "$as_me: error: cannot run C compiled programs.
1727
If you meant to cross compile, use \`--host'.
1728
See \`config.log' for more details." >&2;}
1729
{ (exit 1); exit 1; }; }
1733
echo "$as_me:$LINENO: result: yes" >&5
1734
echo "${ECHO_T}yes" >&6
1736
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1737
ac_clean_files=$ac_clean_files_save
1738
# Check the compiler produces executables we can run. If not, either
1739
# the compiler is broken, or we cross compile.
1740
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1741
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1742
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1743
echo "${ECHO_T}$cross_compiling" >&6
1745
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1746
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1748
(eval $ac_link) 2>&5
1750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751
(exit $ac_status); }; then
1752
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1753
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1754
# work properly (i.e., refer to `conftest.exe'), while it won't with
1756
for ac_file in conftest.exe conftest conftest.*; do
1757
test -f "$ac_file" || continue
1759
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1760
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1767
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1768
See \`config.log' for more details." >&5
1769
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1770
See \`config.log' for more details." >&2;}
1771
{ (exit 1); exit 1; }; }
1774
rm -f conftest$ac_cv_exeext
1775
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1776
echo "${ECHO_T}$ac_cv_exeext" >&6
1778
rm -f conftest.$ac_ext
1779
EXEEXT=$ac_cv_exeext
1781
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1782
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1783
if test "${ac_cv_objext+set}" = set; then
1784
echo $ECHO_N "(cached) $ECHO_C" >&6
1786
cat >conftest.$ac_ext <<_ACEOF
1789
cat confdefs.h >>conftest.$ac_ext
1790
cat >>conftest.$ac_ext <<_ACEOF
1791
/* end confdefs.h. */
1801
rm -f conftest.o conftest.obj
1802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1803
(eval $ac_compile) 2>&5
1805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806
(exit $ac_status); }; then
1807
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1809
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1810
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1815
echo "$as_me: failed program was:" >&5
1816
sed 's/^/| /' conftest.$ac_ext >&5
1818
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1819
See \`config.log' for more details." >&5
1820
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1821
See \`config.log' for more details." >&2;}
1822
{ (exit 1); exit 1; }; }
1825
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1827
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1828
echo "${ECHO_T}$ac_cv_objext" >&6
1829
OBJEXT=$ac_cv_objext
1831
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1832
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1833
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1834
echo $ECHO_N "(cached) $ECHO_C" >&6
1836
cat >conftest.$ac_ext <<_ACEOF
1839
cat confdefs.h >>conftest.$ac_ext
1840
cat >>conftest.$ac_ext <<_ACEOF
1841
/* end confdefs.h. */
1854
rm -f conftest.$ac_objext
1855
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1856
(eval $ac_compile) 2>conftest.er1
1858
grep -v '^ *+' conftest.er1 >conftest.err
1860
cat conftest.err >&5
1861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862
(exit $ac_status); } &&
1863
{ ac_try='test -z "$ac_c_werror_flag"
1864
|| test ! -s conftest.err'
1865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869
(exit $ac_status); }; } &&
1870
{ ac_try='test -s conftest.$ac_objext'
1871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875
(exit $ac_status); }; }; then
1878
echo "$as_me: failed program was:" >&5
1879
sed 's/^/| /' conftest.$ac_ext >&5
1883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1884
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1887
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1888
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1889
GCC=`test $ac_compiler_gnu = yes && echo yes`
1890
ac_test_CFLAGS=${CFLAGS+set}
1891
ac_save_CFLAGS=$CFLAGS
1893
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1894
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1895
if test "${ac_cv_prog_cc_g+set}" = set; then
1896
echo $ECHO_N "(cached) $ECHO_C" >&6
1898
cat >conftest.$ac_ext <<_ACEOF
1901
cat confdefs.h >>conftest.$ac_ext
1902
cat >>conftest.$ac_ext <<_ACEOF
1903
/* end confdefs.h. */
1913
rm -f conftest.$ac_objext
1914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915
(eval $ac_compile) 2>conftest.er1
1917
grep -v '^ *+' conftest.er1 >conftest.err
1919
cat conftest.err >&5
1920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921
(exit $ac_status); } &&
1922
{ ac_try='test -z "$ac_c_werror_flag"
1923
|| test ! -s conftest.err'
1924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928
(exit $ac_status); }; } &&
1929
{ ac_try='test -s conftest.$ac_objext'
1930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934
(exit $ac_status); }; }; then
1937
echo "$as_me: failed program was:" >&5
1938
sed 's/^/| /' conftest.$ac_ext >&5
1942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1944
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1945
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1946
if test "$ac_test_CFLAGS" = set; then
1947
CFLAGS=$ac_save_CFLAGS
1948
elif test $ac_cv_prog_cc_g = yes; then
1949
if test "$GCC" = yes; then
1955
if test "$GCC" = yes; then
1961
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1962
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1963
if test "${ac_cv_prog_cc_stdc+set}" = set; then
1964
echo $ECHO_N "(cached) $ECHO_C" >&6
1966
ac_cv_prog_cc_stdc=no
1968
cat >conftest.$ac_ext <<_ACEOF
1971
cat confdefs.h >>conftest.$ac_ext
1972
cat >>conftest.$ac_ext <<_ACEOF
1973
/* end confdefs.h. */
1976
#include <sys/types.h>
1977
#include <sys/stat.h>
1978
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1979
struct buf { int x; };
1980
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1981
static char *e (p, i)
1987
static char *f (char * (*g) (char **, int), char **p, ...)
1992
s = g (p, va_arg (v,int));
1997
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1998
function prototypes and stuff, but not '\xHH' hex character constants.
1999
These don't provoke an error unfortunately, instead are silently treated
2000
as 'x'. The following induces an error, until -std1 is added to get
2001
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2002
array size at least. It's necessary to write '\x00'==0 to get something
2003
that's true only with -std1. */
2004
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2006
int test (int i, double x);
2007
struct s1 {int (*f) (int a);};
2008
struct s2 {int (*f) (double a);};
2009
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2015
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2020
# Don't try gcc -ansi; that turns off useful extensions and
2021
# breaks some systems' header files.
2022
# AIX -qlanglvl=ansi
2023
# Ultrix and OSF/1 -std1
2024
# HP-UX 10.20 and later -Ae
2025
# HP-UX older versions -Aa -D_HPUX_SOURCE
2026
# SVR4 -Xc -D__EXTENSIONS__
2027
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2029
CC="$ac_save_CC $ac_arg"
2030
rm -f conftest.$ac_objext
2031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032
(eval $ac_compile) 2>conftest.er1
2034
grep -v '^ *+' conftest.er1 >conftest.err
2036
cat conftest.err >&5
2037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038
(exit $ac_status); } &&
2039
{ ac_try='test -z "$ac_c_werror_flag"
2040
|| test ! -s conftest.err'
2041
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045
(exit $ac_status); }; } &&
2046
{ ac_try='test -s conftest.$ac_objext'
2047
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051
(exit $ac_status); }; }; then
2052
ac_cv_prog_cc_stdc=$ac_arg
2055
echo "$as_me: failed program was:" >&5
2056
sed 's/^/| /' conftest.$ac_ext >&5
2059
rm -f conftest.err conftest.$ac_objext
2061
rm -f conftest.$ac_ext conftest.$ac_objext
2066
case "x$ac_cv_prog_cc_stdc" in
2068
echo "$as_me:$LINENO: result: none needed" >&5
2069
echo "${ECHO_T}none needed" >&6 ;;
2071
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2072
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2073
CC="$CC $ac_cv_prog_cc_stdc" ;;
2076
# Some people use a C++ compiler to compile C. Since we use `exit',
2077
# in C++ we need to declare it. In case someone uses the same compiler
2078
# for both compiling C and C++ we need to have the C++ compiler decide
2079
# the declaration of exit, since it's the most demanding environment.
2080
cat >conftest.$ac_ext <<_ACEOF
2085
rm -f conftest.$ac_objext
2086
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087
(eval $ac_compile) 2>conftest.er1
2089
grep -v '^ *+' conftest.er1 >conftest.err
2091
cat conftest.err >&5
2092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093
(exit $ac_status); } &&
2094
{ ac_try='test -z "$ac_c_werror_flag"
2095
|| test ! -s conftest.err'
2096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100
(exit $ac_status); }; } &&
2101
{ ac_try='test -s conftest.$ac_objext'
2102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106
(exit $ac_status); }; }; then
2107
for ac_declaration in \
2109
'extern "C" void std::exit (int) throw (); using std::exit;' \
2110
'extern "C" void std::exit (int); using std::exit;' \
2111
'extern "C" void exit (int) throw ();' \
2112
'extern "C" void exit (int);' \
2115
cat >conftest.$ac_ext <<_ACEOF
2118
cat confdefs.h >>conftest.$ac_ext
2119
cat >>conftest.$ac_ext <<_ACEOF
2120
/* end confdefs.h. */
2131
rm -f conftest.$ac_objext
2132
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133
(eval $ac_compile) 2>conftest.er1
2135
grep -v '^ *+' conftest.er1 >conftest.err
2137
cat conftest.err >&5
2138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139
(exit $ac_status); } &&
2140
{ ac_try='test -z "$ac_c_werror_flag"
2141
|| test ! -s conftest.err'
2142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146
(exit $ac_status); }; } &&
2147
{ ac_try='test -s conftest.$ac_objext'
2148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152
(exit $ac_status); }; }; then
2155
echo "$as_me: failed program was:" >&5
2156
sed 's/^/| /' conftest.$ac_ext >&5
2160
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2161
cat >conftest.$ac_ext <<_ACEOF
2164
cat confdefs.h >>conftest.$ac_ext
2165
cat >>conftest.$ac_ext <<_ACEOF
2166
/* end confdefs.h. */
2176
rm -f conftest.$ac_objext
2177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178
(eval $ac_compile) 2>conftest.er1
2180
grep -v '^ *+' conftest.er1 >conftest.err
2182
cat conftest.err >&5
2183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184
(exit $ac_status); } &&
2185
{ ac_try='test -z "$ac_c_werror_flag"
2186
|| test ! -s conftest.err'
2187
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191
(exit $ac_status); }; } &&
2192
{ ac_try='test -s conftest.$ac_objext'
2193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197
(exit $ac_status); }; }; then
2200
echo "$as_me: failed program was:" >&5
2201
sed 's/^/| /' conftest.$ac_ext >&5
2204
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207
if test -n "$ac_declaration"; then
2208
echo '#ifdef __cplusplus' >>confdefs.h
2209
echo $ac_declaration >>confdefs.h
2210
echo '#endif' >>confdefs.h
2214
echo "$as_me: failed program was:" >&5
2215
sed 's/^/| /' conftest.$ac_ext >&5
2218
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220
ac_cpp='$CPP $CPPFLAGS'
2221
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
ac_cpp='$CPP $CPPFLAGS'
2227
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2231
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
533
2232
# On Suns, sometimes $CPP names a directory.
534
2233
if test -n "$CPP" && test -d "$CPP"; then
537
2236
if test -z "$CPP"; then
538
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
539
echo $ac_n "(cached) $ac_c" 1>&6
541
# This must be in double quotes, not single quotes, because CPP may get
542
# substituted into the Makefile and "${CC-cc}" will confuse make.
544
# On the NeXT, cc -E runs the code through the compiler's parser,
545
# not just through cpp.
546
cat > conftest.$ac_ext <<EOF
547
#line 548 "configure"
548
#include "confdefs.h"
552
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
553
{ (eval echo configure:554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
554
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
555
if test -z "$ac_err"; then
559
echo "configure: failed program was:" >&5
560
cat conftest.$ac_ext >&5
562
CPP="${CC-cc} -E -traditional-cpp"
563
cat > conftest.$ac_ext <<EOF
564
#line 565 "configure"
565
#include "confdefs.h"
569
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
570
{ (eval echo configure:571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
571
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
572
if test -z "$ac_err"; then
576
echo "configure: failed program was:" >&5
577
cat conftest.$ac_ext >&5
579
CPP="${CC-cc} -nologo -E"
580
cat > conftest.$ac_ext <<EOF
581
#line 582 "configure"
582
#include "confdefs.h"
586
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
587
{ (eval echo configure:588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
588
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
589
if test -z "$ac_err"; then
593
echo "configure: failed program was:" >&5
594
cat conftest.$ac_ext >&5
603
ac_cv_prog_CPP="$CPP"
605
CPP="$ac_cv_prog_CPP"
607
ac_cv_prog_CPP="$CPP"
609
echo "$ac_t""$CPP" 1>&6
2237
if test "${ac_cv_prog_CPP+set}" = set; then
2238
echo $ECHO_N "(cached) $ECHO_C" >&6
2240
# Double quotes because CPP needs to be expanded
2241
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2244
for ac_c_preproc_warn_flag in '' yes
2246
# Use a header file that comes with gcc, so configuring glibc
2247
# with a fresh cross-compiler works.
2248
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2249
# <limits.h> exists even on freestanding compilers.
2250
# On the NeXT, cc -E runs the code through the compiler's parser,
2251
# not just through cpp. "Syntax error" is here to catch this case.
2252
cat >conftest.$ac_ext <<_ACEOF
2255
cat confdefs.h >>conftest.$ac_ext
2256
cat >>conftest.$ac_ext <<_ACEOF
2257
/* end confdefs.h. */
2259
# include <limits.h>
2261
# include <assert.h>
2265
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2266
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2268
grep -v '^ *+' conftest.er1 >conftest.err
2270
cat conftest.err >&5
2271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272
(exit $ac_status); } >/dev/null; then
2273
if test -s conftest.err; then
2274
ac_cpp_err=$ac_c_preproc_warn_flag
2275
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2282
if test -z "$ac_cpp_err"; then
2285
echo "$as_me: failed program was:" >&5
2286
sed 's/^/| /' conftest.$ac_ext >&5
2288
# Broken: fails on valid input.
2291
rm -f conftest.err conftest.$ac_ext
2293
# OK, works on sane cases. Now check whether non-existent headers
2294
# can be detected and how.
2295
cat >conftest.$ac_ext <<_ACEOF
2298
cat confdefs.h >>conftest.$ac_ext
2299
cat >>conftest.$ac_ext <<_ACEOF
2300
/* end confdefs.h. */
2301
#include <ac_nonexistent.h>
2303
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2304
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2306
grep -v '^ *+' conftest.er1 >conftest.err
2308
cat conftest.err >&5
2309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310
(exit $ac_status); } >/dev/null; then
2311
if test -s conftest.err; then
2312
ac_cpp_err=$ac_c_preproc_warn_flag
2313
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2320
if test -z "$ac_cpp_err"; then
2321
# Broken: success on invalid input.
2324
echo "$as_me: failed program was:" >&5
2325
sed 's/^/| /' conftest.$ac_ext >&5
2327
# Passes both tests.
2331
rm -f conftest.err conftest.$ac_ext
2334
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2335
rm -f conftest.err conftest.$ac_ext
2336
if $ac_preproc_ok; then
2348
echo "$as_me:$LINENO: result: $CPP" >&5
2349
echo "${ECHO_T}$CPP" >&6
2351
for ac_c_preproc_warn_flag in '' yes
2353
# Use a header file that comes with gcc, so configuring glibc
2354
# with a fresh cross-compiler works.
2355
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2356
# <limits.h> exists even on freestanding compilers.
2357
# On the NeXT, cc -E runs the code through the compiler's parser,
2358
# not just through cpp. "Syntax error" is here to catch this case.
2359
cat >conftest.$ac_ext <<_ACEOF
2362
cat confdefs.h >>conftest.$ac_ext
2363
cat >>conftest.$ac_ext <<_ACEOF
2364
/* end confdefs.h. */
2366
# include <limits.h>
2368
# include <assert.h>
2372
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2373
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2375
grep -v '^ *+' conftest.er1 >conftest.err
2377
cat conftest.err >&5
2378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379
(exit $ac_status); } >/dev/null; then
2380
if test -s conftest.err; then
2381
ac_cpp_err=$ac_c_preproc_warn_flag
2382
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2389
if test -z "$ac_cpp_err"; then
2392
echo "$as_me: failed program was:" >&5
2393
sed 's/^/| /' conftest.$ac_ext >&5
2395
# Broken: fails on valid input.
2398
rm -f conftest.err conftest.$ac_ext
2400
# OK, works on sane cases. Now check whether non-existent headers
2401
# can be detected and how.
2402
cat >conftest.$ac_ext <<_ACEOF
2405
cat confdefs.h >>conftest.$ac_ext
2406
cat >>conftest.$ac_ext <<_ACEOF
2407
/* end confdefs.h. */
2408
#include <ac_nonexistent.h>
2410
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2411
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2413
grep -v '^ *+' conftest.er1 >conftest.err
2415
cat conftest.err >&5
2416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417
(exit $ac_status); } >/dev/null; then
2418
if test -s conftest.err; then
2419
ac_cpp_err=$ac_c_preproc_warn_flag
2420
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2427
if test -z "$ac_cpp_err"; then
2428
# Broken: success on invalid input.
2431
echo "$as_me: failed program was:" >&5
2432
sed 's/^/| /' conftest.$ac_ext >&5
2434
# Passes both tests.
2438
rm -f conftest.err conftest.$ac_ext
2441
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2442
rm -f conftest.err conftest.$ac_ext
2443
if $ac_preproc_ok; then
2446
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2447
See \`config.log' for more details." >&5
2448
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2449
See \`config.log' for more details." >&2;}
2450
{ (exit 1); exit 1; }; }
2454
ac_cpp='$CPP $CPPFLAGS'
2455
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457
ac_compiler_gnu=$ac_cv_c_compiler_gnu
612
2460
# Some people have reported not having libz (which we clearly is needed
613
2461
# in the INSTALL file). Oh well.
615
echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6
616
echo "configure:617: checking for compress in -lz" >&5
617
ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'`
618
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
619
echo $ac_n "(cached) $ac_c" 1>&6
2464
echo "$as_me:$LINENO: checking for compress in -lz" >&5
2465
echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
2466
if test "${ac_cv_lib_z_compress+set}" = set; then
2467
echo $ECHO_N "(cached) $ECHO_C" >&6
2469
ac_check_lib_save_LIBS=$LIBS
622
2470
LIBS="-lz $LIBS"
623
cat > conftest.$ac_ext <<EOF
624
#line 625 "configure"
625
#include "confdefs.h"
2471
cat >conftest.$ac_ext <<_ACEOF
2474
cat confdefs.h >>conftest.$ac_ext
2475
cat >>conftest.$ac_ext <<_ACEOF
2476
/* end confdefs.h. */
626
2478
/* Override any gcc2 internal prototype to avoid an error. */
627
2482
/* We use char because int might match the return type of a gcc2
628
builtin and then its argument prototype would still apply. */
635
if { (eval echo configure:636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
637
eval "ac_cv_lib_$ac_lib_var=yes"
2483
builtin and then its argument prototype would still apply. */
2493
rm -f conftest.$ac_objext conftest$ac_exeext
2494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2495
(eval $ac_link) 2>conftest.er1
2497
grep -v '^ *+' conftest.er1 >conftest.err
2499
cat conftest.err >&5
2500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501
(exit $ac_status); } &&
2502
{ ac_try='test -z "$ac_c_werror_flag"
2503
|| test ! -s conftest.err'
2504
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508
(exit $ac_status); }; } &&
2509
{ ac_try='test -s conftest$ac_exeext'
2510
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
(exit $ac_status); }; }; then
2515
ac_cv_lib_z_compress=yes
639
echo "configure: failed program was:" >&5
640
cat conftest.$ac_ext >&5
642
eval "ac_cv_lib_$ac_lib_var=no"
2517
echo "$as_me: failed program was:" >&5
2518
sed 's/^/| /' conftest.$ac_ext >&5
648
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
649
echo "$ac_t""yes" 1>&6
2520
ac_cv_lib_z_compress=no
2522
rm -f conftest.err conftest.$ac_objext \
2523
conftest$ac_exeext conftest.$ac_ext
2524
LIBS=$ac_check_lib_save_LIBS
2526
echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
2527
echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
2528
if test $ac_cv_lib_z_compress = yes; then
650
2529
HAVE_COMPRESS="yes"
652
echo "$ac_t""no" 1>&6
657
2535
# Do we have access to GNU's getopt_long (problem on some systems, e.g.,
658
2536
# FreeBDS, Mac OS/X, Windows/MinGW)
660
echo $ac_n "checking for getopt_long in -lc""... $ac_c" 1>&6
661
echo "configure:662: checking for getopt_long in -lc" >&5
662
ac_lib_var=`echo c'_'getopt_long | sed 'y%./+-%__p_%'`
663
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
664
echo $ac_n "(cached) $ac_c" 1>&6
2538
echo "$as_me:$LINENO: checking for getopt_long in -lc" >&5
2539
echo $ECHO_N "checking for getopt_long in -lc... $ECHO_C" >&6
2540
if test "${ac_cv_lib_c_getopt_long+set}" = set; then
2541
echo $ECHO_N "(cached) $ECHO_C" >&6
2543
ac_check_lib_save_LIBS=$LIBS
667
2544
LIBS="-lc $LIBS"
668
cat > conftest.$ac_ext <<EOF
669
#line 670 "configure"
670
#include "confdefs.h"
2545
cat >conftest.$ac_ext <<_ACEOF
2548
cat confdefs.h >>conftest.$ac_ext
2549
cat >>conftest.$ac_ext <<_ACEOF
2550
/* end confdefs.h. */
671
2552
/* Override any gcc2 internal prototype to avoid an error. */
672
2556
/* We use char because int might match the return type of a gcc2
673
builtin and then its argument prototype would still apply. */
680
if { (eval echo configure:681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
682
eval "ac_cv_lib_$ac_lib_var=yes"
2557
builtin and then its argument prototype would still apply. */
2558
char getopt_long ();
2567
rm -f conftest.$ac_objext conftest$ac_exeext
2568
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2569
(eval $ac_link) 2>conftest.er1
2571
grep -v '^ *+' conftest.er1 >conftest.err
2573
cat conftest.err >&5
2574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
(exit $ac_status); } &&
2576
{ ac_try='test -z "$ac_c_werror_flag"
2577
|| test ! -s conftest.err'
2578
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582
(exit $ac_status); }; } &&
2583
{ ac_try='test -s conftest$ac_exeext'
2584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588
(exit $ac_status); }; }; then
2589
ac_cv_lib_c_getopt_long=yes
684
echo "configure: failed program was:" >&5
685
cat conftest.$ac_ext >&5
687
eval "ac_cv_lib_$ac_lib_var=no"
2591
echo "$as_me: failed program was:" >&5
2592
sed 's/^/| /' conftest.$ac_ext >&5
693
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
694
echo "$ac_t""yes" 1>&6
2594
ac_cv_lib_c_getopt_long=no
2596
rm -f conftest.err conftest.$ac_objext \
2597
conftest$ac_exeext conftest.$ac_ext
2598
LIBS=$ac_check_lib_save_LIBS
2600
echo "$as_me:$LINENO: result: $ac_cv_lib_c_getopt_long" >&5
2601
echo "${ECHO_T}$ac_cv_lib_c_getopt_long" >&6
2602
if test $ac_cv_lib_c_getopt_long = yes; then
695
2603
HAVE_GETOPT_LONG="yes"
697
echo "$ac_t""no" 1>&6
698
HAVE_GETOPT_LONG="no"
2605
HAVE_GETOPT_LONG="no"
702
2609
# can we find MySQL in the system directories? (users may still want/need
703
2610
# to use another version/installation)
705
echo $ac_n "checking for mysql_init in -lmysqlclient""... $ac_c" 1>&6
706
echo "configure:707: checking for mysql_init in -lmysqlclient" >&5
707
ac_lib_var=`echo mysqlclient'_'mysql_init | sed 'y%./+-%__p_%'`
708
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
709
echo $ac_n "(cached) $ac_c" 1>&6
2612
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
2613
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
2614
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
2615
echo $ECHO_N "(cached) $ECHO_C" >&6
2617
ac_check_lib_save_LIBS=$LIBS
712
2618
LIBS="-lmysqlclient $LIBS"
713
cat > conftest.$ac_ext <<EOF
714
#line 715 "configure"
715
#include "confdefs.h"
2619
cat >conftest.$ac_ext <<_ACEOF
2622
cat confdefs.h >>conftest.$ac_ext
2623
cat >>conftest.$ac_ext <<_ACEOF
2624
/* end confdefs.h. */
716
2626
/* Override any gcc2 internal prototype to avoid an error. */
717
2630
/* We use char because int might match the return type of a gcc2
718
builtin and then its argument prototype would still apply. */
725
if { (eval echo configure:726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
727
eval "ac_cv_lib_$ac_lib_var=yes"
2631
builtin and then its argument prototype would still apply. */
2641
rm -f conftest.$ac_objext conftest$ac_exeext
2642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2643
(eval $ac_link) 2>conftest.er1
2645
grep -v '^ *+' conftest.er1 >conftest.err
2647
cat conftest.err >&5
2648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649
(exit $ac_status); } &&
2650
{ ac_try='test -z "$ac_c_werror_flag"
2651
|| test ! -s conftest.err'
2652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656
(exit $ac_status); }; } &&
2657
{ ac_try='test -s conftest$ac_exeext'
2658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662
(exit $ac_status); }; }; then
2663
ac_cv_lib_mysqlclient_mysql_init=yes
729
echo "configure: failed program was:" >&5
730
cat conftest.$ac_ext >&5
732
eval "ac_cv_lib_$ac_lib_var=no"
2665
echo "$as_me: failed program was:" >&5
2666
sed 's/^/| /' conftest.$ac_ext >&5
738
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
739
echo "$ac_t""yes" 1>&6
2668
ac_cv_lib_mysqlclient_mysql_init=no
2670
rm -f conftest.err conftest.$ac_objext \
2671
conftest$ac_exeext conftest.$ac_ext
2672
LIBS=$ac_check_lib_save_LIBS
2674
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
2675
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
2676
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
740
2677
HAVE_MYSQL_LIB="yes"
742
echo "$ac_t""no" 1>&6
747
for ac_hdr in mysql.h
749
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
750
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
751
echo "configure:752: checking for $ac_hdr" >&5
752
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
753
echo $ac_n "(cached) $ac_c" 1>&6
755
cat > conftest.$ac_ext <<EOF
756
#line 757 "configure"
757
#include "confdefs.h"
760
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
761
{ (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
762
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
763
if test -z "$ac_err"; then
765
eval "ac_cv_header_$ac_safe=yes"
768
echo "configure: failed program was:" >&5
769
cat conftest.$ac_ext >&5
771
eval "ac_cv_header_$ac_safe=no"
775
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
776
echo "$ac_t""yes" 1>&6
777
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
778
cat >> confdefs.h <<EOF
2684
echo "$as_me:$LINENO: checking for egrep" >&5
2685
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2686
if test "${ac_cv_prog_egrep+set}" = set; then
2687
echo $ECHO_N "(cached) $ECHO_C" >&6
2689
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2690
then ac_cv_prog_egrep='grep -E'
2691
else ac_cv_prog_egrep='egrep'
2694
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2695
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2696
EGREP=$ac_cv_prog_egrep
2699
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2700
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2701
if test "${ac_cv_header_stdc+set}" = set; then
2702
echo $ECHO_N "(cached) $ECHO_C" >&6
2704
cat >conftest.$ac_ext <<_ACEOF
2707
cat confdefs.h >>conftest.$ac_ext
2708
cat >>conftest.$ac_ext <<_ACEOF
2709
/* end confdefs.h. */
2723
rm -f conftest.$ac_objext
2724
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725
(eval $ac_compile) 2>conftest.er1
2727
grep -v '^ *+' conftest.er1 >conftest.err
2729
cat conftest.err >&5
2730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
(exit $ac_status); } &&
2732
{ ac_try='test -z "$ac_c_werror_flag"
2733
|| test ! -s conftest.err'
2734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738
(exit $ac_status); }; } &&
2739
{ ac_try='test -s conftest.$ac_objext'
2740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
(exit $ac_status); }; }; then
2745
ac_cv_header_stdc=yes
2747
echo "$as_me: failed program was:" >&5
2748
sed 's/^/| /' conftest.$ac_ext >&5
2750
ac_cv_header_stdc=no
2752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754
if test $ac_cv_header_stdc = yes; then
2755
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2756
cat >conftest.$ac_ext <<_ACEOF
2759
cat confdefs.h >>conftest.$ac_ext
2760
cat >>conftest.$ac_ext <<_ACEOF
2761
/* end confdefs.h. */
2765
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2766
$EGREP "memchr" >/dev/null 2>&1; then
2769
ac_cv_header_stdc=no
2775
if test $ac_cv_header_stdc = yes; then
2776
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2777
cat >conftest.$ac_ext <<_ACEOF
2780
cat confdefs.h >>conftest.$ac_ext
2781
cat >>conftest.$ac_ext <<_ACEOF
2782
/* end confdefs.h. */
2786
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2787
$EGREP "free" >/dev/null 2>&1; then
2790
ac_cv_header_stdc=no
2796
if test $ac_cv_header_stdc = yes; then
2797
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2798
if test "$cross_compiling" = yes; then
2801
cat >conftest.$ac_ext <<_ACEOF
2804
cat confdefs.h >>conftest.$ac_ext
2805
cat >>conftest.$ac_ext <<_ACEOF
2806
/* end confdefs.h. */
2808
#if ((' ' & 0x0FF) == 0x020)
2809
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2810
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2812
# define ISLOWER(c) \
2813
(('a' <= (c) && (c) <= 'i') \
2814
|| ('j' <= (c) && (c) <= 'r') \
2815
|| ('s' <= (c) && (c) <= 'z'))
2816
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2819
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2824
for (i = 0; i < 256; i++)
2825
if (XOR (islower (i), ISLOWER (i))
2826
|| toupper (i) != TOUPPER (i))
2831
rm -f conftest$ac_exeext
2832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833
(eval $ac_link) 2>&5
2835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841
(exit $ac_status); }; }; then
2844
echo "$as_me: program exited with status $ac_status" >&5
2845
echo "$as_me: failed program was:" >&5
2846
sed 's/^/| /' conftest.$ac_ext >&5
2849
ac_cv_header_stdc=no
2851
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2855
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2856
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2857
if test $ac_cv_header_stdc = yes; then
2859
cat >>confdefs.h <<\_ACEOF
2860
#define STDC_HEADERS 1
2865
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2875
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2876
inttypes.h stdint.h unistd.h
2878
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2879
echo "$as_me:$LINENO: checking for $ac_header" >&5
2880
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2881
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2882
echo $ECHO_N "(cached) $ECHO_C" >&6
2884
cat >conftest.$ac_ext <<_ACEOF
2887
cat confdefs.h >>conftest.$ac_ext
2888
cat >>conftest.$ac_ext <<_ACEOF
2889
/* end confdefs.h. */
2890
$ac_includes_default
2892
#include <$ac_header>
2894
rm -f conftest.$ac_objext
2895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896
(eval $ac_compile) 2>conftest.er1
2898
grep -v '^ *+' conftest.er1 >conftest.err
2900
cat conftest.err >&5
2901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902
(exit $ac_status); } &&
2903
{ ac_try='test -z "$ac_c_werror_flag"
2904
|| test ! -s conftest.err'
2905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909
(exit $ac_status); }; } &&
2910
{ ac_try='test -s conftest.$ac_objext'
2911
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915
(exit $ac_status); }; }; then
2916
eval "$as_ac_Header=yes"
2918
echo "$as_me: failed program was:" >&5
2919
sed 's/^/| /' conftest.$ac_ext >&5
2921
eval "$as_ac_Header=no"
2923
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2926
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2927
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2928
cat >>confdefs.h <<_ACEOF
2929
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2938
for ac_header in mysql.h
2940
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2941
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2942
echo "$as_me:$LINENO: checking for $ac_header" >&5
2943
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2944
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2945
echo $ECHO_N "(cached) $ECHO_C" >&6
2947
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2948
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2950
# Is the header compilable?
2951
echo "$as_me:$LINENO: checking $ac_header usability" >&5
2952
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2953
cat >conftest.$ac_ext <<_ACEOF
2956
cat confdefs.h >>conftest.$ac_ext
2957
cat >>conftest.$ac_ext <<_ACEOF
2958
/* end confdefs.h. */
2959
$ac_includes_default
2960
#include <$ac_header>
2962
rm -f conftest.$ac_objext
2963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2964
(eval $ac_compile) 2>conftest.er1
2966
grep -v '^ *+' conftest.er1 >conftest.err
2968
cat conftest.err >&5
2969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970
(exit $ac_status); } &&
2971
{ ac_try='test -z "$ac_c_werror_flag"
2972
|| test ! -s conftest.err'
2973
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977
(exit $ac_status); }; } &&
2978
{ ac_try='test -s conftest.$ac_objext'
2979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983
(exit $ac_status); }; }; then
2984
ac_header_compiler=yes
2986
echo "$as_me: failed program was:" >&5
2987
sed 's/^/| /' conftest.$ac_ext >&5
2989
ac_header_compiler=no
2991
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2992
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2993
echo "${ECHO_T}$ac_header_compiler" >&6
2995
# Is the header present?
2996
echo "$as_me:$LINENO: checking $ac_header presence" >&5
2997
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2998
cat >conftest.$ac_ext <<_ACEOF
3001
cat confdefs.h >>conftest.$ac_ext
3002
cat >>conftest.$ac_ext <<_ACEOF
3003
/* end confdefs.h. */
3004
#include <$ac_header>
3006
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3009
grep -v '^ *+' conftest.er1 >conftest.err
3011
cat conftest.err >&5
3012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013
(exit $ac_status); } >/dev/null; then
3014
if test -s conftest.err; then
3015
ac_cpp_err=$ac_c_preproc_warn_flag
3016
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3023
if test -z "$ac_cpp_err"; then
3024
ac_header_preproc=yes
3026
echo "$as_me: failed program was:" >&5
3027
sed 's/^/| /' conftest.$ac_ext >&5
3029
ac_header_preproc=no
3031
rm -f conftest.err conftest.$ac_ext
3032
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3033
echo "${ECHO_T}$ac_header_preproc" >&6
3035
# So? What about this header?
3036
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3038
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3039
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3040
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3041
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3042
ac_header_preproc=yes
3045
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3046
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3047
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3048
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3049
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3050
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3051
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3052
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3053
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3054
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3055
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3056
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3059
## ------------------------------------------ ##
3060
## Report this to the AC_PACKAGE_NAME lists. ##
3061
## ------------------------------------------ ##
3064
sed "s/^/$as_me: WARNING: /" >&2
3067
echo "$as_me:$LINENO: checking for $ac_header" >&5
3068
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3069
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3070
echo $ECHO_N "(cached) $ECHO_C" >&6
3072
eval "$as_ac_Header=\$ac_header_preproc"
3074
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3075
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3078
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3079
cat >>confdefs.h <<_ACEOF
3080
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
781
3082
HAVE_MYSQL_INC="yes"
783
echo "$ac_t""no" 1>&6
789
3090
# the user may still want a particular MySQL installation/version (possibly
790
# overriding system directories). Note that we don't clobber the shell
3091
# overriding system directories). Note that we don't clobber the shell
791
3092
# variables MYSQL_DIR, MSYQL_INC, MYSQL_LIB, that may be inherited from the
792
3093
# global shell environement.
794
3096
# Check whether --with-mysql-dir or --without-mysql-dir was given.
795
3097
if test "${with_mysql_dir+set}" = set; then
796
3098
withval="$with_mysql_dir"
797
3099
MYSQL_DIR="${with_mysql_dir}"
800
3102
# Check whether --with-mysql-inc or --without-mysql-inc was given.
801
3103
if test "${with_mysql_inc+set}" = set; then
802
3104
withval="$with_mysql_inc"
803
3105
MYSQL_INC="${with_mysql_inc}"
806
3108
# Check whether --with-mysql-lib or --without-mysql-lib was given.
807
3109
if test "${with_mysql_lib+set}" = set; then
808
3110
withval="$with_mysql_lib"
809
3111
MYSQL_LIB="${with_mysql_lib}"
813
# handle the uniformative cases of --with-mysql w.o. argument
814
# and the case of -with-no-mysql
3114
# handle the uniformative cases of --with-mysql w.o. argument
3115
# and the case of -with-no-mysql
815
3116
test "${MYSQL_DIR}" = "yes" -o "${MYSQL_DIR}" = "no" && MYSQL_DIR=""
816
3117
test "${MYSQL_LIB}" = "yes" -o "${MYSQL_LIB}" = "no" && MYSQL_LIB=""
817
3118
test "${MYSQL_INC}" = "yes" -o "${MYSQL_INC}" = "no" && MYSQL_INC=""
819
3120
if test -n "${MYSQL_DIR}" ; then
820
test ! -d "${MYSQL_DIR}" && { echo "configure: error: dir ${MYSQL_DIR} does not exist" 1>&2; exit 1; }
3121
test ! -d "${MYSQL_DIR}" && { { echo "$as_me:$LINENO: error: dir ${MYSQL_DIR} does not exist" >&5
3122
echo "$as_me: error: dir ${MYSQL_DIR} does not exist" >&2;}
3123
{ (exit 1); exit 1; }; }
821
3124
test -z "${MYSQL_INC}" -a -d "${MYSQL_DIR}/include/mysql" && \
822
3125
MYSQL_INC="${MYSQL_DIR}/include/mysql"
823
3126
test -z "${MYSQL_LIB}" -a -d "${MYSQL_DIR}/lib/mysql" && \
824
3127
MYSQL_LIB="${MYSQL_DIR}/lib/mysql"
828
3131
# We now determine whether we found the lib and header files (we still
829
3132
# need to check PKG_*, in case the user only defined one them)
1024
cat > confcache <<\EOF
3467
ac_config_files="$ac_config_files src/Makevars"
3468
cat >confcache <<\_ACEOF
1025
3469
# This file is a shell script that caches the results of configure
1026
3470
# tests run on this system so they can be shared between configure
1027
# scripts and configure runs. It is not useful on other systems.
1028
# If it contains results you don't want to keep, you may remove or edit it.
1030
# By default, configure uses ./config.cache as the cache file,
1031
# creating it if it does not exist already. You can give configure
1032
# the --cache-file=FILE option to use a different cache file; that is
1033
# what configure does when it calls configure scripts in
1034
# subdirectories, so they share the cache.
1035
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1036
# config.status only pays attention to the cache file if you give it the
1037
# --recheck option to rerun configure.
3471
# scripts and configure runs, see configure's option --config-cache.
3472
# It is not useful on other systems. If it contains results you don't
3473
# want to keep, you may remove or edit it.
3475
# config.status only pays attention to the cache file if you give it
3476
# the --recheck option to rerun configure.
3478
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3479
# loading this file, other *unset* `ac_cv_foo' will be assigned the
1040
3484
# The following way of writing the cache mishandles newlines in values,
1041
3485
# but we know of no workaround that is simple, portable, and efficient.
1042
3486
# So, don't put newlines in cache variables' values.
1043
3487
# Ultrix sh set writes to stderr and can't be redirected directly,
1044
3488
# and sets the high bit in the cache file unless we assign to the vars.
1046
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1048
# `set' does not quote correctly, so add quotes (double-quote substitution
1049
# turns \\\\ into \\, and sed turns \\ into \).
1051
-e "s/'/'\\\\''/g" \
1052
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1055
# `set' quotes correctly as required by POSIX, so do not add quotes.
1056
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1059
if cmp -s $cache_file confcache; then
3491
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3493
# `set' does not quote correctly, so add quotes (double-quote
3494
# substitution turns \\\\ into \\, and sed turns \\ into \).
3497
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3500
# `set' quotes correctly as required by POSIX, so do not add quotes.
3502
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3509
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3511
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3513
if diff $cache_file confcache >/dev/null 2>&1; then :; else
1062
3514
if test -w $cache_file; then
1063
echo "updating cache $cache_file"
1064
cat confcache > $cache_file
3515
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3516
cat confcache >$cache_file
1066
3518
echo "not updating unwritable cache $cache_file"
1069
3521
rm -f confcache
1071
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1073
3523
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1074
3524
# Let make expand exec_prefix.
1075
3525
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1077
# Any assignment to VPATH causes Sun make to only execute
1078
# the first set of double-colon rules, so remove it if not needed.
1079
# If there is a colon in the path, we need to keep it.
3527
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3528
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3529
# trailing colons and then remove the whole line if VPATH becomes empty
3530
# (actually we leave an empty line to preserve line numbers).
1080
3531
if test "x$srcdir" = x.; then
1081
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3532
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3533
s/:*\$(srcdir):*/:/;
3534
s/:*\${srcdir}:*/:/;
3536
s/^\([^=]*=[ ]*\):*/\1/;
1084
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1086
3542
# Transform confdefs.h into DEFS.
1087
3543
# Protect against shell expansion while executing Makefile rules.
1088
3544
# Protect against Makefile macro expansion.
1089
cat > conftest.defs <<\EOF
1090
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1091
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1096
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1100
# Without the "./", some shells look in PATH for config.status.
3546
# If the first sed substitution is executed (which looks for macros that
3547
# take arguments), then we branch to the quote section. Otherwise,
3548
# look for a macro that doesn't take arguments.
3549
cat >confdef2opt.sed <<\_ACEOF
3552
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3554
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3558
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3564
# We use echo to avoid assuming a particular line-breaking character.
3565
# The extra dot is to prevent the shell from consuming trailing
3566
# line-breaks from the sub-command output. A line-break within
3567
# single-quotes doesn't work because, if this script is created in a
3568
# platform that uses two characters for line-breaks (e.g., DOS), tr
3570
ac_LF_and_DOT=`echo; echo .`
3571
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3572
rm -f confdef2opt.sed
3577
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3578
# 1. Remove the extension, and $U if already installed.
3579
ac_i=`echo "$ac_i" |
3580
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3582
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3583
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3587
LTLIBOBJS=$ac_ltlibobjs
1101
3591
: ${CONFIG_STATUS=./config.status}
1103
echo creating $CONFIG_STATUS
1104
rm -f $CONFIG_STATUS
1105
cat > $CONFIG_STATUS <<EOF
1107
# Generated automatically by configure.
3592
ac_clean_files_save=$ac_clean_files
3593
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3594
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3595
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3596
cat >$CONFIG_STATUS <<_ACEOF
3598
# Generated by $as_me.
1108
3599
# Run this file to recreate the current configuration.
1109
# This directory was configured as follows,
1110
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1112
# $0 $ac_configure_args
1114
3600
# Compiler output produced by configure, useful for debugging
1115
# configure, is in ./config.log if it exists.
1117
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1120
case "\$ac_option" in
3601
# configure, is in config.log if it exists.
3606
SHELL=\${CONFIG_SHELL-$SHELL}
3609
cat >>$CONFIG_STATUS <<\_ACEOF
3610
## --------------------- ##
3611
## M4sh Initialization. ##
3612
## --------------------- ##
3614
# Be Bourne compatible
3615
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3618
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3619
# is contrary to our usage. Disable this feature.
3620
alias -g '${1+"$@"}'='"$@"'
3621
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3624
DUALCASE=1; export DUALCASE # for MKS sh
3626
# Support unset when possible.
3627
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3634
# Work around bugs in pre-3.0 UWIN ksh.
3635
$as_unset ENV MAIL MAILPATH
3642
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3643
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3644
LC_TELEPHONE LC_TIME
3646
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3647
eval $as_var=C; export $as_var
3653
# Required to use basename.
3654
if expr a : '\(a\)' >/dev/null 2>&1; then
3660
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3661
as_basename=basename
3667
# Name of the executable.
3668
as_me=`$as_basename "$0" ||
3669
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3670
X"$0" : 'X\(//\)$' \| \
3671
X"$0" : 'X\(/\)$' \| \
3672
. : '\(.\)' 2>/dev/null ||
3674
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3675
/^X\/\(\/\/\)$/{ s//\1/; q; }
3676
/^X\/\(\/\).*/{ s//\1/; q; }
3680
# PATH needs CR, and LINENO needs CR and PATH.
3681
# Avoid depending upon Character Ranges.
3682
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3683
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3684
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3685
as_cr_digits='0123456789'
3686
as_cr_alnum=$as_cr_Letters$as_cr_digits
3688
# The user is always right.
3689
if test "${PATH_SEPARATOR+set}" != set; then
3690
echo "#! /bin/sh" >conf$$.sh
3691
echo "exit 0" >>conf$$.sh
3693
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3704
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3705
test "x$as_lineno_1" != "x$as_lineno_2" &&
3706
test "x$as_lineno_3" = "x$as_lineno_2" || {
3707
# Find who we are. Look in the path if we contain no path at all
3710
*[\\/]* ) as_myself=$0 ;;
3711
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715
test -z "$as_dir" && as_dir=.
3716
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3721
# We did not find ourselves, most probably we were run as `sh COMMAND'
3722
# in which case we are not to be found in the path.
3723
if test "x$as_myself" = x; then
3726
if test ! -f "$as_myself"; then
3727
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3728
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3729
{ (exit 1); exit 1; }; }
3731
case $CONFIG_SHELL in
3733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3737
test -z "$as_dir" && as_dir=.
3738
for as_base in sh bash ksh sh5; do
3741
if ("$as_dir/$as_base" -c '
3744
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3745
test "x$as_lineno_1" != "x$as_lineno_2" &&
3746
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3747
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3748
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3749
CONFIG_SHELL=$as_dir/$as_base
3751
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3759
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3760
# uniformly replaced by the line number. The first 'sed' inserts a
3761
# line-number line before each line; the second 'sed' does the real
3762
# work. The second script uses 'N' to pair each line-number line
3763
# with the numbered line, and appends trailing '-' during
3764
# substitution so that $LINENO is not a special case at line end.
3765
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3766
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3767
sed '=' <$as_myself |
3772
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3775
s,^['$as_cr_digits']*\n,,
3777
chmod +x $as_me.lineno ||
3778
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3779
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3780
{ (exit 1); exit 1; }; }
3782
# Don't try to exec as it changes $[0], causing all sort of problems
3783
# (the dirname of $[0] is not the place where we might find the
3784
# original and so on. Autoconf is especially sensible to this).
3786
# Exit status is that of the last command.
3791
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3792
*c*,-n*) ECHO_N= ECHO_C='
3794
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3795
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3798
if expr a : '\(a\)' >/dev/null 2>&1; then
3804
rm -f conf$$ conf$$.exe conf$$.file
3806
if ln -s conf$$.file conf$$ 2>/dev/null; then
3807
# We could just check for DJGPP; but this test a) works b) is more generic
3808
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3809
if test -f conf$$.exe; then
3810
# Don't use ln at all; we don't have any links
3815
elif ln conf$$.file conf$$ 2>/dev/null; then
3820
rm -f conf$$ conf$$.exe conf$$.file
3822
if mkdir -p . 2>/dev/null; then
3825
test -d ./-p && rmdir ./-p
3829
as_executable_p="test -f"
3831
# Sed expression to map a string onto a valid CPP name.
3832
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3834
# Sed expression to map a string onto a valid variable name.
3835
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3839
# We need space, tab and new line, in precisely that order.
3849
# Open the log real soon, to keep \$[0] and so on meaningful, and to
3850
# report actual input values of CONFIG_FILES etc. instead of their
3851
# values after options handling. Logging --version etc. is OK.
3855
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3856
## Running $as_me. ##
3861
This file was extended by $as_me, which was
3862
generated by GNU Autoconf 2.59. Invocation command line was
3864
CONFIG_FILES = $CONFIG_FILES
3865
CONFIG_HEADERS = $CONFIG_HEADERS
3866
CONFIG_LINKS = $CONFIG_LINKS
3867
CONFIG_COMMANDS = $CONFIG_COMMANDS
3871
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3875
# Files that config.status was made for.
3876
if test -n "$ac_config_files"; then
3877
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3880
if test -n "$ac_config_headers"; then
3881
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3884
if test -n "$ac_config_links"; then
3885
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3888
if test -n "$ac_config_commands"; then
3889
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3892
cat >>$CONFIG_STATUS <<\_ACEOF
3895
\`$as_me' instantiates files from templates according to the
3896
current configuration.
3898
Usage: $0 [OPTIONS] [FILE]...
3900
-h, --help print this help, then exit
3901
-V, --version print version number, then exit
3902
-q, --quiet do not print progress messages
3903
-d, --debug don't remove temporary files
3904
--recheck update $as_me by reconfiguring in the same conditions
3905
--file=FILE[:TEMPLATE]
3906
instantiate the configuration file FILE
3908
Configuration files:
3911
Report bugs to <bug-autoconf@gnu.org>."
3914
cat >>$CONFIG_STATUS <<_ACEOF
3917
configured by $0, generated by GNU Autoconf 2.59,
3918
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3920
Copyright (C) 2003 Free Software Foundation, Inc.
3921
This config.status script is free software; the Free Software Foundation
3922
gives unlimited permission to copy, distribute and modify it."
3926
cat >>$CONFIG_STATUS <<\_ACEOF
3927
# If no file are specified by the user, then we need to provide default
3928
# value. By we need to know if files were specified by the user.
3934
ac_option=`expr "x$1" : 'x\([^=]*\)='`
3935
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3943
*) # This is not an option, so the user has probably given explicit
3946
ac_need_defaults=false;;
3950
# Handling of the options.
3952
cat >>$CONFIG_STATUS <<\_ACEOF
1121
3953
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1122
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1123
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1124
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1125
echo "$CONFIG_STATUS generated by autoconf version 2.13"
1127
-help | --help | --hel | --he | --h)
1128
echo "\$ac_cs_usage"; exit 0 ;;
1129
*) echo "\$ac_cs_usage"; exit 1 ;;
1133
ac_given_srcdir=$srcdir
1135
trap 'rm -fr `echo "src/Makevars" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1137
cat >> $CONFIG_STATUS <<EOF
1139
# Protect against being on the right side of a sed subst in config.status.
1140
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1141
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1145
s%@CFLAGS@%$CFLAGS%g
1146
s%@CPPFLAGS@%$CPPFLAGS%g
1147
s%@CXXFLAGS@%$CXXFLAGS%g
1148
s%@FFLAGS@%$FFLAGS%g
1150
s%@LDFLAGS@%$LDFLAGS%g
1152
s%@exec_prefix@%$exec_prefix%g
1153
s%@prefix@%$prefix%g
1154
s%@program_transform_name@%$program_transform_name%g
1155
s%@bindir@%$bindir%g
1156
s%@sbindir@%$sbindir%g
1157
s%@libexecdir@%$libexecdir%g
1158
s%@datadir@%$datadir%g
1159
s%@sysconfdir@%$sysconfdir%g
1160
s%@sharedstatedir@%$sharedstatedir%g
1161
s%@localstatedir@%$localstatedir%g
1162
s%@libdir@%$libdir%g
1163
s%@includedir@%$includedir%g
1164
s%@oldincludedir@%$oldincludedir%g
1165
s%@infodir@%$infodir%g
1166
s%@mandir@%$mandir%g
1168
s%@PKG_CPPFLAGS@%$PKG_CPPFLAGS%g
1169
s%@PKG_LIBS@%$PKG_LIBS%g
3955
--version | --vers* | -V )
3956
echo "$ac_cs_version"; exit 0 ;;
3958
# Conflict between --help and --header
3959
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
3960
Try \`$0 --help' for more information." >&5
3961
echo "$as_me: error: ambiguous option: $1
3962
Try \`$0 --help' for more information." >&2;}
3963
{ (exit 1); exit 1; }; };;
3964
--help | --hel | -h )
3965
echo "$ac_cs_usage"; exit 0 ;;
3966
--debug | --d* | -d )
3968
--file | --fil | --fi | --f )
3970
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3971
ac_need_defaults=false;;
3972
--header | --heade | --head | --hea )
3974
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3975
ac_need_defaults=false;;
3976
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
3977
| -silent | --silent | --silen | --sile | --sil | --si | --s)
3981
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3982
Try \`$0 --help' for more information." >&5
3983
echo "$as_me: error: unrecognized option: $1
3984
Try \`$0 --help' for more information." >&2;}
3985
{ (exit 1); exit 1; }; } ;;
3987
*) ac_config_targets="$ac_config_targets $1" ;;
3993
ac_configure_extra_args=
3995
if $ac_cs_silent; then
3997
ac_configure_extra_args="$ac_configure_extra_args --silent"
4001
cat >>$CONFIG_STATUS <<_ACEOF
4002
if \$ac_cs_recheck; then
4003
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4004
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4013
cat >>$CONFIG_STATUS <<\_ACEOF
4014
for ac_config_target in $ac_config_targets
4016
case "$ac_config_target" in
4017
# Handling of arguments.
4018
"src/Makevars" ) CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
4019
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4020
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4021
{ (exit 1); exit 1; }; };;
4025
# If the user did not use the arguments to specify the items to instantiate,
4026
# then the envvar interface is used. Set only those that are not.
4027
# We use the long form for the default assignment because of an extremely
4028
# bizarre bug on SunOS 4.1.3.
4029
if $ac_need_defaults; then
4030
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4033
# Have a temporary directory for convenience. Make it in the build tree
4034
# simply because there is no reason to put it here, and in addition,
4035
# creating and moving files from /tmp can sometimes cause problems.
4036
# Create a temporary directory, and hook for its removal unless debugging.
4039
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4040
trap '{ (exit 1); exit 1; }' 1 2 13 15
4043
# Create a (secure) tmp directory for tmp files.
4046
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4047
test -n "$tmp" && test -d "$tmp"
4050
tmp=./confstat$$-$RANDOM
4051
(umask 077 && mkdir $tmp)
4054
echo "$me: cannot create a temporary directory in ." >&2
4055
{ (exit 1); exit 1; }
4060
cat >>$CONFIG_STATUS <<_ACEOF
4063
# CONFIG_FILES section.
4066
# No need to generate the scripts if there are no CONFIG_FILES.
4067
# This happens for instance when ./config.status config.h
4068
if test -n "\$CONFIG_FILES"; then
4069
# Protect against being on the right side of a sed subst in config.status.
4070
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4071
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4072
s,@SHELL@,$SHELL,;t t
4073
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4074
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4075
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4076
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4077
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4078
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4079
s,@exec_prefix@,$exec_prefix,;t t
4080
s,@prefix@,$prefix,;t t
4081
s,@program_transform_name@,$program_transform_name,;t t
4082
s,@bindir@,$bindir,;t t
4083
s,@sbindir@,$sbindir,;t t
4084
s,@libexecdir@,$libexecdir,;t t
4085
s,@datadir@,$datadir,;t t
4086
s,@sysconfdir@,$sysconfdir,;t t
4087
s,@sharedstatedir@,$sharedstatedir,;t t
4088
s,@localstatedir@,$localstatedir,;t t
4089
s,@libdir@,$libdir,;t t
4090
s,@includedir@,$includedir,;t t
4091
s,@oldincludedir@,$oldincludedir,;t t
4092
s,@infodir@,$infodir,;t t
4093
s,@mandir@,$mandir,;t t
4094
s,@build_alias@,$build_alias,;t t
4095
s,@host_alias@,$host_alias,;t t
4096
s,@target_alias@,$target_alias,;t t
4098
s,@ECHO_C@,$ECHO_C,;t t
4099
s,@ECHO_N@,$ECHO_N,;t t
4100
s,@ECHO_T@,$ECHO_T,;t t
4103
s,@CFLAGS@,$CFLAGS,;t t
4104
s,@LDFLAGS@,$LDFLAGS,;t t
4105
s,@CPPFLAGS@,$CPPFLAGS,;t t
4106
s,@ac_ct_CC@,$ac_ct_CC,;t t
4107
s,@EXEEXT@,$EXEEXT,;t t
4108
s,@OBJEXT@,$OBJEXT,;t t
4110
s,@EGREP@,$EGREP,;t t
4111
s,@PKG_CPPFLAGS@,$PKG_CPPFLAGS,;t t
4112
s,@PKG_LIBS@,$PKG_LIBS,;t t
4113
s,@LIBOBJS@,$LIBOBJS,;t t
4114
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1174
cat >> $CONFIG_STATUS <<\EOF
1176
# Split the substitutions into bite-sized pieces for seds with
1177
# small command number limits, like on Digital OSF/1 and HP-UX.
1178
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1179
ac_file=1 # Number of current file.
1180
ac_beg=1 # First line for current file.
1181
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1184
while $ac_more_lines; do
1185
if test $ac_beg -gt 1; then
1186
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1188
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1190
if test ! -s conftest.s$ac_file; then
1192
rm -f conftest.s$ac_file
1194
if test -z "$ac_sed_cmds"; then
1195
ac_sed_cmds="sed -f conftest.s$ac_file"
1197
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1199
ac_file=`expr $ac_file + 1`
1201
ac_end=`expr $ac_end + $ac_max_sed_cmds`
1204
if test -z "$ac_sed_cmds"; then
1209
cat >> $CONFIG_STATUS <<EOF
1211
CONFIG_FILES=\${CONFIG_FILES-"src/Makevars"}
1213
cat >> $CONFIG_STATUS <<\EOF
1214
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4119
cat >>$CONFIG_STATUS <<\_ACEOF
4120
# Split the substitutions into bite-sized pieces for seds with
4121
# small command number limits, like on Digital OSF/1 and HP-UX.
4123
ac_sed_frag=1 # Number of current file.
4124
ac_beg=1 # First line for current file.
4125
ac_end=$ac_max_sed_lines # Line after last line for current file.
4128
while $ac_more_lines; do
4129
if test $ac_beg -gt 1; then
4130
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4132
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4134
if test ! -s $tmp/subs.frag; then
4137
# The purpose of the label and of the branching condition is to
4138
# speed up the sed processing (if there are no `@' at all, there
4139
# is no need to browse any of the substitutions).
4140
# These are the two extra sed commands mentioned above.
4142
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4143
if test -z "$ac_sed_cmds"; then
4144
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4146
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4148
ac_sed_frag=`expr $ac_sed_frag + 1`
4150
ac_end=`expr $ac_end + $ac_max_sed_lines`
4153
if test -z "$ac_sed_cmds"; then
4156
fi # test -n "$CONFIG_FILES"
4159
cat >>$CONFIG_STATUS <<\_ACEOF
4160
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1215
4161
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1217
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1218
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1219
*) ac_file_in="${ac_file}.in" ;;
4163
- | *:- | *:-:* ) # input from stdin
4165
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4166
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4167
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4168
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4169
* ) ac_file_in=$ac_file.in ;;
1222
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1224
# Remove last slash and all that follows it. Not all systems have dirname.
1225
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1226
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1227
# The file is in a subdirectory.
1228
test ! -d "$ac_dir" && mkdir "$ac_dir"
1229
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1230
# A "../" for each directory in $ac_dir_suffix.
1231
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4172
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4173
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4174
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4175
X"$ac_file" : 'X\(//\)[^/]' \| \
4176
X"$ac_file" : 'X\(//\)$' \| \
4177
X"$ac_file" : 'X\(/\)' \| \
4178
. : '\(.\)' 2>/dev/null ||
4180
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4181
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4182
/^X\(\/\/\)$/{ s//\1/; q; }
4183
/^X\(\/\).*/{ s//\1/; q; }
4185
{ if $as_mkdir_p; then
1233
ac_dir_suffix= ac_dots=
1236
case "$ac_given_srcdir" in
1238
if test -z "$ac_dots"; then top_srcdir=.
1239
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1240
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4190
while test ! -d "$as_dir"; do
4191
as_dirs="$as_dir $as_dirs"
4192
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4193
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4194
X"$as_dir" : 'X\(//\)[^/]' \| \
4195
X"$as_dir" : 'X\(//\)$' \| \
4196
X"$as_dir" : 'X\(/\)' \| \
4197
. : '\(.\)' 2>/dev/null ||
4199
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4200
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4201
/^X\(\/\/\)$/{ s//\1/; q; }
4202
/^X\(\/\).*/{ s//\1/; q; }
4205
test ! -n "$as_dirs" || mkdir $as_dirs
4206
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4207
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4208
{ (exit 1); exit 1; }; }; }
4212
if test "$ac_dir" != .; then
4213
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4214
# A "../" for each directory in $ac_dir_suffix.
4215
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4217
ac_dir_suffix= ac_top_builddir=
4221
.) # No --srcdir option. We are building in place.
4223
if test -z "$ac_top_builddir"; then
4226
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4228
[\\/]* | ?:[\\/]* ) # Absolute path.
4229
ac_srcdir=$srcdir$ac_dir_suffix;
4230
ac_top_srcdir=$srcdir ;;
1241
4231
*) # Relative path.
1242
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1243
top_srcdir="$ac_dots$ac_given_srcdir" ;;
1247
echo creating "$ac_file"
1249
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1251
*Makefile*) ac_comsub="1i\\
1252
# $configure_input" ;;
1256
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1258
s%@configure_input@%$configure_input%g
1259
s%@srcdir@%$srcdir%g
1260
s%@top_srcdir@%$top_srcdir%g
1261
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1266
cat >> $CONFIG_STATUS <<EOF
1269
cat >> $CONFIG_STATUS <<\EOF
4232
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4233
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4236
# Do not use `cd foo && pwd` to compute absolute paths, because
4237
# the directories may not exist.
4239
.) ac_abs_builddir="$ac_dir";;
4242
.) ac_abs_builddir=`pwd`;;
4243
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4244
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4247
case $ac_abs_builddir in
4248
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4250
case ${ac_top_builddir}. in
4251
.) ac_abs_top_builddir=$ac_abs_builddir;;
4252
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4253
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4256
case $ac_abs_builddir in
4257
.) ac_abs_srcdir=$ac_srcdir;;
4260
.) ac_abs_srcdir=$ac_abs_builddir;;
4261
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4262
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4265
case $ac_abs_builddir in
4266
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4268
case $ac_top_srcdir in
4269
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4270
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4271
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4277
if test x"$ac_file" != x-; then
4278
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4279
echo "$as_me: creating $ac_file" >&6;}
4282
# Let's still pretend it is `configure' which instantiates (i.e., don't
4283
# use $as_me), people would be surprised to read:
4284
# /* config.h. Generated by config.status. */
4285
if test x"$ac_file" = x-; then
4288
configure_input="$ac_file. "
4290
configure_input=$configure_input"Generated from `echo $ac_file_in |
4291
sed 's,.*/,,'` by configure."
4293
# First look for the input files in the build tree, otherwise in the
4295
ac_file_inputs=`IFS=:
4296
for f in $ac_file_in; do
4298
-) echo $tmp/stdin ;;
4300
# Absolute (can't be DOS-style, as IFS=:)
4301
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4302
echo "$as_me: error: cannot find input file: $f" >&2;}
4303
{ (exit 1); exit 1; }; }
4306
if test -f "$f"; then
4309
elif test -f "$srcdir/$f"; then
4314
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4315
echo "$as_me: error: cannot find input file: $f" >&2;}
4316
{ (exit 1); exit 1; }; }
4319
done` || { (exit 1); exit 1; }
4321
cat >>$CONFIG_STATUS <<_ACEOF
4325
cat >>$CONFIG_STATUS <<\_ACEOF
4327
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4328
s,@configure_input@,$configure_input,;t t
4329
s,@srcdir@,$ac_srcdir,;t t
4330
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4331
s,@top_srcdir@,$ac_top_srcdir,;t t
4332
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4333
s,@builddir@,$ac_builddir,;t t
4334
s,@abs_builddir@,$ac_abs_builddir,;t t
4335
s,@top_builddir@,$ac_top_builddir,;t t
4336
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4337
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4339
if test x"$ac_file" != x-; then
4340
mv $tmp/out $ac_file
4349
cat >>$CONFIG_STATUS <<\_ACEOF
4351
{ (exit 0); exit 0; }
1273
4353
chmod +x $CONFIG_STATUS
1274
rm -fr confdefs* $ac_clean_files
1275
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4354
ac_clean_files=$ac_clean_files_save
4357
# configure is writing to config.log, and then calls config.status.
4358
# config.status does its own redirection, appending to config.log.
4359
# Unfortunately, on DOS this fails, as config.log is still kept open
4360
# by configure, so config.status won't be able to write to it; its
4361
# output is simply discarded. So we exec the FD to /dev/null,
4362
# effectively closing config.log, so it can be properly (re)opened and
4363
# appended to by config.status. When coming back to configure, we
4364
# need to make the FD available again.
4365
if test "$no_create" != yes; then
4367
ac_config_status_args=
4368
test "$silent" = yes &&
4369
ac_config_status_args="$ac_config_status_args --quiet"
4371
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4373
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
4374
# would make configure fail if this is the last instruction.
4375
$ac_cs_success || { (exit 1); exit 1; }