470
729
if test ! -r $srcdir/$ac_unique_file; then
471
730
if test "$ac_srcdir_defaulted" = yes; then
472
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
731
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
{ (exit 1); exit 1; }; }
474
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
734
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
{ (exit 1); exit 1; }; }
477
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
{ (exit 1); exit 1; }; }
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CC_set=${CC+set}
756
ac_cv_env_CC_set=${CC+set}
757
ac_cv_env_CC_value=$CC
758
ac_env_CFLAGS_set=${CFLAGS+set}
759
ac_env_CFLAGS_value=$CFLAGS
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
ac_cv_env_CFLAGS_value=$CFLAGS
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_env_LDFLAGS_value=$LDFLAGS
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_env_CPPFLAGS_value=$CPPFLAGS
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
ac_env_CPP_set=${CPP+set}
771
ac_env_CPP_value=$CPP
772
ac_cv_env_CPP_set=${CPP+set}
773
ac_cv_env_CPP_value=$CPP
776
# Report the --help message.
778
if test "$ac_init_help" = "long"; then
779
# Omit some internal or obsolete options to make the list less imposing.
780
# This message is too long to be a string in the A/UX 3.1 sh.
782
\`configure' configures this package to adapt to many kinds of systems.
784
Usage: $0 [OPTION]... [VAR=VALUE]...
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
VAR=VALUE. See below for descriptions of some of the useful variables.
789
Defaults for the options are specified in brackets.
792
-h, --help display this help and exit
793
--help=short display options specific to this package
794
--help=recursive display the short help of all the included packages
795
-V, --version display version information and exit
796
-q, --quiet, --silent do not print \`checking...' messages
797
--cache-file=FILE cache test results in FILE [disabled]
798
-C, --config-cache alias for \`--cache-file=config.cache'
799
-n, --no-create do not create output files
800
--srcdir=DIR find the sources in DIR [configure dir or \`..']
805
Installation directories:
806
--prefix=PREFIX install architecture-independent files in PREFIX
808
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811
By default, \`make install' will install all the files in
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
for instance \`--prefix=\$HOME'.
816
For better control, use the options below.
818
Fine tuning of the installation directories:
819
--bindir=DIR user executables [EPREFIX/bin]
820
--sbindir=DIR system admin executables [EPREFIX/sbin]
821
--libexecdir=DIR program executables [EPREFIX/libexec]
822
--datadir=DIR read-only architecture-independent data [PREFIX/share]
823
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
826
--libdir=DIR object code libraries [EPREFIX/lib]
827
--includedir=DIR C header files [PREFIX/include]
828
--oldincludedir=DIR C header files for non-gcc [/usr/include]
829
--infodir=DIR info documentation [PREFIX/info]
830
--mandir=DIR man documentation [PREFIX/man]
837
if test -n "$ac_init_help"; then
841
Some influential environment variables:
842
CC C compiler command
843
CFLAGS C compiler flags
844
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
845
nonstandard directory <lib dir>
846
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
847
headers in a nonstandard directory <include dir>
850
Use these variables to override the choices made by `configure' or to help
851
it to find libraries and programs with nonstandard names/locations.
856
if test "$ac_init_help" = "recursive"; then
857
# If there are subdirs, report their specific --help.
859
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
860
test -d $ac_dir || continue
863
if test "$ac_dir" != .; then
864
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
865
# A "../" for each directory in $ac_dir_suffix.
866
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
868
ac_dir_suffix= ac_top_builddir=
872
.) # No --srcdir option. We are building in place.
874
if test -z "$ac_top_builddir"; then
877
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
879
[\\/]* | ?:[\\/]* ) # Absolute path.
880
ac_srcdir=$srcdir$ac_dir_suffix;
881
ac_top_srcdir=$srcdir ;;
883
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
884
ac_top_srcdir=$ac_top_builddir$srcdir ;;
887
# Do not use `cd foo && pwd` to compute absolute paths, because
888
# the directories may not exist.
890
.) ac_abs_builddir="$ac_dir";;
893
.) ac_abs_builddir=`pwd`;;
894
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
895
*) ac_abs_builddir=`pwd`/"$ac_dir";;
898
case $ac_abs_builddir in
899
.) ac_abs_top_builddir=${ac_top_builddir}.;;
901
case ${ac_top_builddir}. in
902
.) ac_abs_top_builddir=$ac_abs_builddir;;
903
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
904
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
907
case $ac_abs_builddir in
908
.) ac_abs_srcdir=$ac_srcdir;;
911
.) ac_abs_srcdir=$ac_abs_builddir;;
912
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
913
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
916
case $ac_abs_builddir in
917
.) ac_abs_top_srcdir=$ac_top_srcdir;;
919
case $ac_top_srcdir in
920
.) ac_abs_top_srcdir=$ac_abs_builddir;;
921
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
922
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
927
# Check for guested configure; otherwise get Cygnus style configure.
928
if test -f $ac_srcdir/configure.gnu; then
930
$SHELL $ac_srcdir/configure.gnu --help=recursive
931
elif test -f $ac_srcdir/configure; then
933
$SHELL $ac_srcdir/configure --help=recursive
934
elif test -f $ac_srcdir/configure.ac ||
935
test -f $ac_srcdir/configure.in; then
939
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945
test -n "$ac_init_help" && exit 0
946
if $ac_init_version; then
949
Copyright (C) 2003 Free Software Foundation, Inc.
950
This configure script is free software; the Free Software Foundation
951
gives unlimited permission to copy, distribute and modify it.
957
This file contains any messages produced by compilers while
958
running configure, to aid debugging if configure makes a mistake.
960
It was created by $as_me, which was
961
generated by GNU Autoconf 2.59. Invocation command line was
972
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973
uname -m = `(uname -m) 2>/dev/null || echo unknown`
974
uname -r = `(uname -r) 2>/dev/null || echo unknown`
975
uname -s = `(uname -s) 2>/dev/null || echo unknown`
976
uname -v = `(uname -v) 2>/dev/null || echo unknown`
978
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
981
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
982
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
983
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
985
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
986
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
987
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
995
test -z "$as_dir" && as_dir=.
1011
# Keep a trace of the command line.
1012
# Strip out --no-create and --no-recursion so they do not pile up.
1013
# Strip out --silent because we don't want to record it for future runs.
1014
# Also quote any args containing shell meta-characters.
1015
# Make two passes to allow for proper duplicate-argument suppression.
1020
ac_must_keep_next=false
1026
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028
| -silent | --silent | --silen | --sile | --sil)
1030
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1034
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1036
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037
if test $ac_must_keep_next = true; then
1038
ac_must_keep_next=false # Got value, back to normal.
1041
*=* | --config-cache | -C | -disable-* | --disable-* \
1042
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044
| -with-* | --with-* | -without-* | --without-* | --x)
1045
case "$ac_configure_args0 " in
1046
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1049
-* ) ac_must_keep_next=true ;;
1052
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053
# Get rid of the leading space.
1059
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1062
# When interrupted or exit'd, cleanup temporary files, and complete
1063
# config.log. We remove comments because anyway the quotes in there
1064
# would cause problems or look ugly.
1065
# WARNING: Be sure not to use single quotes in there, as some shells,
1066
# such as our DU 5.0 friend, will then `close' the trap.
1067
trap 'exit_status=$?
1068
# Save into config.log some information that might help in debugging.
1073
## ---------------- ##
1074
## Cache variables. ##
1075
## ---------------- ##
1078
# The following way of writing the cache mishandles newlines in values,
1081
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1084
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1096
## ----------------- ##
1097
## Output variables. ##
1098
## ----------------- ##
1101
for ac_var in $ac_subst_vars
1103
eval ac_val=$`echo $ac_var`
1104
echo "$ac_var='"'"'$ac_val'"'"'"
1108
if test -n "$ac_subst_files"; then
1115
for ac_var in $ac_subst_files
1117
eval ac_val=$`echo $ac_var`
1118
echo "$ac_var='"'"'$ac_val'"'"'"
1123
if test -s confdefs.h; then
1130
sed "/^$/d" confdefs.h | sort
1133
test "$ac_signal" != 0 &&
1134
echo "$as_me: caught signal $ac_signal"
1135
echo "$as_me: exit $exit_status"
1137
rm -f core *.core &&
1138
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1141
for ac_signal in 1 2 13 15; do
1142
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1146
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1147
rm -rf conftest* confdefs.h
1148
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1151
# Predefined preprocessor variables.
1153
cat >>confdefs.h <<_ACEOF
1154
#define PACKAGE_NAME "$PACKAGE_NAME"
1158
cat >>confdefs.h <<_ACEOF
1159
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1163
cat >>confdefs.h <<_ACEOF
1164
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1168
cat >>confdefs.h <<_ACEOF
1169
#define PACKAGE_STRING "$PACKAGE_STRING"
1173
cat >>confdefs.h <<_ACEOF
1174
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1178
# Let the site file select an alternate cache file if it wants to.
479
1179
# Prefer explicitly selected file to automatically selected ones.
480
1180
if test -z "$CONFIG_SITE"; then
481
1181
if test "x$prefix" != xNONE; then
487
1187
for ac_site_file in $CONFIG_SITE; do
488
1188
if test -r "$ac_site_file"; then
489
echo "loading site script $ac_site_file"
1189
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190
echo "$as_me: loading site script $ac_site_file" >&6;}
1191
sed 's/^/| /' "$ac_site_file" >&5
490
1192
. "$ac_site_file"
494
1196
if test -r "$cache_file"; then
495
echo "loading cache $cache_file"
1197
# Some versions of bash will fail to source /dev/null (special
1198
# files actually), so we avoid doing that.
1199
if test -f "$cache_file"; then
1200
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201
echo "$as_me: loading cache $cache_file" >&6;}
1203
[\\/]* | ?:[\\/]* ) . $cache_file;;
1204
*) . ./$cache_file;;
498
echo "creating cache $cache_file"
1208
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209
echo "$as_me: creating cache $cache_file" >&6;}
1213
# Check that the precious variables saved in the cache have kept the same
1215
ac_cache_corrupted=false
1216
for ac_var in `(set) 2>&1 |
1217
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219
eval ac_new_set=\$ac_env_${ac_var}_set
1220
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221
eval ac_new_val="\$ac_env_${ac_var}_value"
1222
case $ac_old_set,$ac_new_set in
1224
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226
ac_cache_corrupted=: ;;
1228
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230
ac_cache_corrupted=: ;;
1233
if test "x$ac_old_val" != "x$ac_new_val"; then
1234
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1237
echo "$as_me: former value: $ac_old_val" >&2;}
1238
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1239
echo "$as_me: current value: $ac_new_val" >&2;}
1240
ac_cache_corrupted=:
1243
# Pass precious variables to config.status.
1244
if test "$ac_new_set" = set; then
1246
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248
*) ac_arg=$ac_var=$ac_new_val ;;
1250
case " $ac_configure_args " in
1251
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1252
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1256
if $ac_cache_corrupted; then
1257
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261
{ (exit 1); exit 1; }; }
503
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504
1265
ac_cpp='$CPP $CPPFLAGS'
505
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507
cross_compiling=$ac_cv_prog_cc_cross
511
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520
ac_n= ac_c='\c' ac_t=
524
# From configure.in Revision: 1.4
1266
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268
ac_compiler_gnu=$ac_cv_c_compiler_gnu
527
1291
if test x$with_rlm_unix != xno; then
529
# Extract the first word of "gcc", so it can be a program name with args.
1294
ac_cpp='$CPP $CPPFLAGS'
1295
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
if test -n "$ac_tool_prefix"; then
1299
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1300
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1301
echo "$as_me:$LINENO: checking for $ac_word" >&5
1302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1303
if test "${ac_cv_prog_CC+set}" = set; then
1304
echo $ECHO_N "(cached) $ECHO_C" >&6
1306
if test -n "$CC"; then
1307
ac_cv_prog_CC="$CC" # Let the user override the test.
1309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1313
test -z "$as_dir" && as_dir=.
1314
for ac_exec_ext in '' $ac_executable_extensions; do
1315
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1316
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1317
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1326
if test -n "$CC"; then
1327
echo "$as_me:$LINENO: result: $CC" >&5
1328
echo "${ECHO_T}$CC" >&6
1330
echo "$as_me:$LINENO: result: no" >&5
1331
echo "${ECHO_T}no" >&6
1335
if test -z "$ac_cv_prog_CC"; then
1337
# Extract the first word of "gcc", so it can be a program name with args.
530
1338
set dummy gcc; ac_word=$2
531
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
532
echo "configure:533: checking for $ac_word" >&5
533
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
534
echo $ac_n "(cached) $ac_c" 1>&6
1339
echo "$as_me:$LINENO: checking for $ac_word" >&5
1340
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1342
echo $ECHO_N "(cached) $ECHO_C" >&6
1344
if test -n "$ac_ct_CC"; then
1345
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351
test -z "$as_dir" && as_dir=.
1352
for ac_exec_ext in '' $ac_executable_extensions; do
1353
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1354
ac_cv_prog_ac_ct_CC="gcc"
1355
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1363
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1364
if test -n "$ac_ct_CC"; then
1365
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1366
echo "${ECHO_T}$ac_ct_CC" >&6
1368
echo "$as_me:$LINENO: result: no" >&5
1369
echo "${ECHO_T}no" >&6
1377
if test -z "$CC"; then
1378
if test -n "$ac_tool_prefix"; then
1379
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1380
set dummy ${ac_tool_prefix}cc; ac_word=$2
1381
echo "$as_me:$LINENO: checking for $ac_word" >&5
1382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1383
if test "${ac_cv_prog_CC+set}" = set; then
1384
echo $ECHO_N "(cached) $ECHO_C" >&6
536
1386
if test -n "$CC"; then
537
1387
ac_cv_prog_CC="$CC" # Let the user override the test.
539
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
541
for ac_dir in $ac_dummy; do
542
test -z "$ac_dir" && ac_dir=.
543
if test -f $ac_dir/$ac_word; then
1389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393
test -z "$as_dir" && as_dir=.
1394
for ac_exec_ext in '' $ac_executable_extensions; do
1395
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1396
ac_cv_prog_CC="${ac_tool_prefix}cc"
1397
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
552
1406
if test -n "$CC"; then
553
echo "$ac_t""$CC" 1>&6
555
echo "$ac_t""no" 1>&6
1407
echo "$as_me:$LINENO: result: $CC" >&5
1408
echo "${ECHO_T}$CC" >&6
1410
echo "$as_me:$LINENO: result: no" >&5
1411
echo "${ECHO_T}no" >&6
1415
if test -z "$ac_cv_prog_CC"; then
1417
# Extract the first word of "cc", so it can be a program name with args.
1418
set dummy cc; ac_word=$2
1419
echo "$as_me:$LINENO: checking for $ac_word" >&5
1420
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1422
echo $ECHO_N "(cached) $ECHO_C" >&6
1424
if test -n "$ac_ct_CC"; then
1425
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431
test -z "$as_dir" && as_dir=.
1432
for ac_exec_ext in '' $ac_executable_extensions; do
1433
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434
ac_cv_prog_ac_ct_CC="cc"
1435
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1444
if test -n "$ac_ct_CC"; then
1445
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1446
echo "${ECHO_T}$ac_ct_CC" >&6
1448
echo "$as_me:$LINENO: result: no" >&5
1449
echo "${ECHO_T}no" >&6
558
1458
if test -z "$CC"; then
559
1459
# Extract the first word of "cc", so it can be a program name with args.
560
1460
set dummy cc; ac_word=$2
561
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
562
echo "configure:563: checking for $ac_word" >&5
563
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
564
echo $ac_n "(cached) $ac_c" 1>&6
1461
echo "$as_me:$LINENO: checking for $ac_word" >&5
1462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463
if test "${ac_cv_prog_CC+set}" = set; then
1464
echo $ECHO_N "(cached) $ECHO_C" >&6
566
1466
if test -n "$CC"; then
567
1467
ac_cv_prog_CC="$CC" # Let the user override the test.
569
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
570
1469
ac_prog_rejected=no
572
for ac_dir in $ac_dummy; do
573
test -z "$ac_dir" && ac_dir=.
574
if test -f $ac_dir/$ac_word; then
575
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474
test -z "$as_dir" && as_dir=.
1475
for ac_exec_ext in '' $ac_executable_extensions; do
1476
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1478
ac_prog_rejected=yes
1482
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
584
1488
if test $ac_prog_rejected = yes; then
585
1489
# We found a bogon in the path, so make sure we never use it.
586
1490
set dummy $ac_cv_prog_CC
588
if test $# -gt 0; then
1492
if test $# != 0; then
589
1493
# We chose a different compiler from the bogus one.
590
1494
# However, it has the same basename, so the bogon will be chosen
591
1495
# first if we set CC to just the basename; use the full file name.
593
set dummy "$ac_dir/$ac_word" "$@"
1497
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
601
1503
if test -n "$CC"; then
602
echo "$ac_t""$CC" 1>&6
1504
echo "$as_me:$LINENO: result: $CC" >&5
1505
echo "${ECHO_T}$CC" >&6
604
echo "$ac_t""no" 1>&6
1507
echo "$as_me:$LINENO: result: no" >&5
1508
echo "${ECHO_T}no" >&6
607
if test -z "$CC"; then
610
# Extract the first word of "cl", so it can be a program name with args.
611
set dummy cl; ac_word=$2
612
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613
echo "configure:614: checking for $ac_word" >&5
614
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615
echo $ac_n "(cached) $ac_c" 1>&6
1512
if test -z "$CC"; then
1513
if test -n "$ac_tool_prefix"; then
1516
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1517
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1518
echo "$as_me:$LINENO: checking for $ac_word" >&5
1519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520
if test "${ac_cv_prog_CC+set}" = set; then
1521
echo $ECHO_N "(cached) $ECHO_C" >&6
617
1523
if test -n "$CC"; then
618
1524
ac_cv_prog_CC="$CC" # Let the user override the test.
620
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
622
for ac_dir in $ac_dummy; do
623
test -z "$ac_dir" && ac_dir=.
624
if test -f $ac_dir/$ac_word; then
1526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530
test -z "$as_dir" && as_dir=.
1531
for ac_exec_ext in '' $ac_executable_extensions; do
1532
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1534
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543
if test -n "$CC"; then
1544
echo "$as_me:$LINENO: result: $CC" >&5
1545
echo "${ECHO_T}$CC" >&6
1547
echo "$as_me:$LINENO: result: no" >&5
1548
echo "${ECHO_T}no" >&6
1551
test -n "$CC" && break
633
if test -n "$CC"; then
634
echo "$ac_t""$CC" 1>&6
636
echo "$ac_t""no" 1>&6
1554
if test -z "$CC"; then
1558
# Extract the first word of "$ac_prog", so it can be a program name with args.
1559
set dummy $ac_prog; ac_word=$2
1560
echo "$as_me:$LINENO: checking for $ac_word" >&5
1561
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563
echo $ECHO_N "(cached) $ECHO_C" >&6
1565
if test -n "$ac_ct_CC"; then
1566
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572
test -z "$as_dir" && as_dir=.
1573
for ac_exec_ext in '' $ac_executable_extensions; do
1574
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575
ac_cv_prog_ac_ct_CC="$ac_prog"
1576
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
641
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
644
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
645
echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
648
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
649
ac_cpp='$CPP $CPPFLAGS'
650
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
651
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
652
cross_compiling=$ac_cv_prog_cc_cross
654
cat > conftest.$ac_ext << EOF
656
#line 657 "configure"
657
#include "confdefs.h"
661
if { (eval echo configure:662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
662
ac_cv_prog_cc_works=yes
663
# If we can't run a trivial program, we are probably using a cross compiler.
664
if (./conftest; exit) 2>/dev/null; then
665
ac_cv_prog_cc_cross=no
1584
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585
if test -n "$ac_ct_CC"; then
1586
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587
echo "${ECHO_T}$ac_ct_CC" >&6
1589
echo "$as_me:$LINENO: result: no" >&5
1590
echo "${ECHO_T}no" >&6
1593
test -n "$ac_ct_CC" && break
1602
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1603
See \`config.log' for more details." >&5
1604
echo "$as_me: error: no acceptable C compiler found in \$PATH
1605
See \`config.log' for more details." >&2;}
1606
{ (exit 1); exit 1; }; }
1608
# Provide some information about the compiler.
1609
echo "$as_me:$LINENO:" \
1610
"checking for C compiler version" >&5
1611
ac_compiler=`set X $ac_compile; echo $2`
1612
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1613
(eval $ac_compiler --version </dev/null >&5) 2>&5
1615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1616
(exit $ac_status); }
1617
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1618
(eval $ac_compiler -v </dev/null >&5) 2>&5
1620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1621
(exit $ac_status); }
1622
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1623
(eval $ac_compiler -V </dev/null >&5) 2>&5
1625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626
(exit $ac_status); }
1628
cat >conftest.$ac_ext <<_ACEOF
1631
cat confdefs.h >>conftest.$ac_ext
1632
cat >>conftest.$ac_ext <<_ACEOF
1633
/* end confdefs.h. */
1643
ac_clean_files_save=$ac_clean_files
1644
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1645
# Try to create an executable without -o first, disregard a.out.
1646
# It will help us diagnose broken compilers, and finding out an intuition
1648
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1649
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1650
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1651
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1652
(eval $ac_link_default) 2>&5
1654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655
(exit $ac_status); }; then
1656
# Find the output, starting from the most likely. This scheme is
1657
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1660
# Be careful to initialize this variable, since it used to be cached.
1661
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1663
# b.out is created by i960 compilers.
1664
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1666
test -f "$ac_file" || continue
1668
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1671
# This is the source file.
1674
# We found the default executable, but exeext='' is most
1678
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1679
# FIXME: I believe we export ac_cv_exeext for Libtool,
1680
# but it would be cool to find out if it's true. Does anybody
1681
# maintain Libtool? --akim.
1689
echo "$as_me: failed program was:" >&5
1690
sed 's/^/| /' conftest.$ac_ext >&5
1692
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1693
See \`config.log' for more details." >&5
1694
echo "$as_me: error: C compiler cannot create executables
1695
See \`config.log' for more details." >&2;}
1696
{ (exit 77); exit 77; }; }
1699
ac_exeext=$ac_cv_exeext
1700
echo "$as_me:$LINENO: result: $ac_file" >&5
1701
echo "${ECHO_T}$ac_file" >&6
1703
# Check the compiler produces executables we can run. If not, either
1704
# the compiler is broken, or we cross compile.
1705
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1706
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1707
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1708
# If not cross compiling, check that we can run a simple program.
1709
if test "$cross_compiling" != yes; then
1710
if { ac_try='./$ac_file'
1711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715
(exit $ac_status); }; }; then
667
ac_cv_prog_cc_cross=yes
1718
if test "$cross_compiling" = maybe; then
1721
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1722
If you meant to cross compile, use \`--host'.
1723
See \`config.log' for more details." >&5
1724
echo "$as_me: error: cannot run C compiled programs.
1725
If you meant to cross compile, use \`--host'.
1726
See \`config.log' for more details." >&2;}
1727
{ (exit 1); exit 1; }; }
670
echo "configure: failed program was:" >&5
671
cat conftest.$ac_ext >&5
672
ac_cv_prog_cc_works=no
676
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677
ac_cpp='$CPP $CPPFLAGS'
678
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680
cross_compiling=$ac_cv_prog_cc_cross
682
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
683
if test $ac_cv_prog_cc_works = no; then
684
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
686
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
687
echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
688
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
689
cross_compiling=$ac_cv_prog_cc_cross
691
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
692
echo "configure:693: checking whether we are using GNU C" >&5
693
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
694
echo $ac_n "(cached) $ac_c" 1>&6
696
cat > conftest.c <<EOF
1731
echo "$as_me:$LINENO: result: yes" >&5
1732
echo "${ECHO_T}yes" >&6
1734
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1735
ac_clean_files=$ac_clean_files_save
1736
# Check the compiler produces executables we can run. If not, either
1737
# the compiler is broken, or we cross compile.
1738
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1739
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1740
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1741
echo "${ECHO_T}$cross_compiling" >&6
1743
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1744
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1746
(eval $ac_link) 2>&5
1748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749
(exit $ac_status); }; then
1750
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1751
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1752
# work properly (i.e., refer to `conftest.exe'), while it won't with
1754
for ac_file in conftest.exe conftest conftest.*; do
1755
test -f "$ac_file" || continue
1757
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1758
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1765
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1766
See \`config.log' for more details." >&5
1767
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1768
See \`config.log' for more details." >&2;}
1769
{ (exit 1); exit 1; }; }
1772
rm -f conftest$ac_cv_exeext
1773
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1774
echo "${ECHO_T}$ac_cv_exeext" >&6
1776
rm -f conftest.$ac_ext
1777
EXEEXT=$ac_cv_exeext
1779
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1780
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1781
if test "${ac_cv_objext+set}" = set; then
1782
echo $ECHO_N "(cached) $ECHO_C" >&6
1784
cat >conftest.$ac_ext <<_ACEOF
1787
cat confdefs.h >>conftest.$ac_ext
1788
cat >>conftest.$ac_ext <<_ACEOF
1789
/* end confdefs.h. */
1799
rm -f conftest.o conftest.obj
1800
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1801
(eval $ac_compile) 2>&5
1803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804
(exit $ac_status); }; then
1805
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1807
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1808
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1813
echo "$as_me: failed program was:" >&5
1814
sed 's/^/| /' conftest.$ac_ext >&5
1816
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1817
See \`config.log' for more details." >&5
1818
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1819
See \`config.log' for more details." >&2;}
1820
{ (exit 1); exit 1; }; }
1823
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1825
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1826
echo "${ECHO_T}$ac_cv_objext" >&6
1827
OBJEXT=$ac_cv_objext
1829
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1830
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1831
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1832
echo $ECHO_N "(cached) $ECHO_C" >&6
1834
cat >conftest.$ac_ext <<_ACEOF
1837
cat confdefs.h >>conftest.$ac_ext
1838
cat >>conftest.$ac_ext <<_ACEOF
1839
/* end confdefs.h. */
701
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
708
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
710
if test $ac_cv_prog_gcc = yes; then
716
ac_test_CFLAGS="${CFLAGS+set}"
717
ac_save_CFLAGS="$CFLAGS"
719
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
720
echo "configure:721: checking whether ${CC-cc} accepts -g" >&5
721
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
722
echo $ac_n "(cached) $ac_c" 1>&6
724
echo 'void f(){}' > conftest.c
725
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1852
rm -f conftest.$ac_objext
1853
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1854
(eval $ac_compile) 2>conftest.er1
1856
grep -v '^ *+' conftest.er1 >conftest.err
1858
cat conftest.err >&5
1859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860
(exit $ac_status); } &&
1861
{ ac_try='test -z "$ac_c_werror_flag"
1862
|| test ! -s conftest.err'
1863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867
(exit $ac_status); }; } &&
1868
{ ac_try='test -s conftest.$ac_objext'
1869
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873
(exit $ac_status); }; }; then
1876
echo "$as_me: failed program was:" >&5
1877
sed 's/^/| /' conftest.$ac_ext >&5
1881
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1882
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1885
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1886
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1887
GCC=`test $ac_compiler_gnu = yes && echo yes`
1888
ac_test_CFLAGS=${CFLAGS+set}
1889
ac_save_CFLAGS=$CFLAGS
1891
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1892
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1893
if test "${ac_cv_prog_cc_g+set}" = set; then
1894
echo $ECHO_N "(cached) $ECHO_C" >&6
1896
cat >conftest.$ac_ext <<_ACEOF
1899
cat confdefs.h >>conftest.$ac_ext
1900
cat >>conftest.$ac_ext <<_ACEOF
1901
/* end confdefs.h. */
1911
rm -f conftest.$ac_objext
1912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913
(eval $ac_compile) 2>conftest.er1
1915
grep -v '^ *+' conftest.er1 >conftest.err
1917
cat conftest.err >&5
1918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919
(exit $ac_status); } &&
1920
{ ac_try='test -z "$ac_c_werror_flag"
1921
|| test ! -s conftest.err'
1922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926
(exit $ac_status); }; } &&
1927
{ ac_try='test -s conftest.$ac_objext'
1928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932
(exit $ac_status); }; }; then
726
1933
ac_cv_prog_cc_g=yes
734
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1935
echo "$as_me: failed program was:" >&5
1936
sed 's/^/| /' conftest.$ac_ext >&5
1940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1942
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1943
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
735
1944
if test "$ac_test_CFLAGS" = set; then
736
CFLAGS="$ac_save_CFLAGS"
1945
CFLAGS=$ac_save_CFLAGS
737
1946
elif test $ac_cv_prog_cc_g = yes; then
738
1947
if test "$GCC" = yes; then
751
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
752
echo "configure:753: checking how to run the C preprocessor" >&5
1959
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1960
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1961
if test "${ac_cv_prog_cc_stdc+set}" = set; then
1962
echo $ECHO_N "(cached) $ECHO_C" >&6
1964
ac_cv_prog_cc_stdc=no
1966
cat >conftest.$ac_ext <<_ACEOF
1969
cat confdefs.h >>conftest.$ac_ext
1970
cat >>conftest.$ac_ext <<_ACEOF
1971
/* end confdefs.h. */
1974
#include <sys/types.h>
1975
#include <sys/stat.h>
1976
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1977
struct buf { int x; };
1978
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1979
static char *e (p, i)
1985
static char *f (char * (*g) (char **, int), char **p, ...)
1990
s = g (p, va_arg (v,int));
1995
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1996
function prototypes and stuff, but not '\xHH' hex character constants.
1997
These don't provoke an error unfortunately, instead are silently treated
1998
as 'x'. The following induces an error, until -std1 is added to get
1999
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2000
array size at least. It's necessary to write '\x00'==0 to get something
2001
that's true only with -std1. */
2002
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2004
int test (int i, double x);
2005
struct s1 {int (*f) (int a);};
2006
struct s2 {int (*f) (double a);};
2007
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2013
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2018
# Don't try gcc -ansi; that turns off useful extensions and
2019
# breaks some systems' header files.
2020
# AIX -qlanglvl=ansi
2021
# Ultrix and OSF/1 -std1
2022
# HP-UX 10.20 and later -Ae
2023
# HP-UX older versions -Aa -D_HPUX_SOURCE
2024
# SVR4 -Xc -D__EXTENSIONS__
2025
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2027
CC="$ac_save_CC $ac_arg"
2028
rm -f conftest.$ac_objext
2029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030
(eval $ac_compile) 2>conftest.er1
2032
grep -v '^ *+' conftest.er1 >conftest.err
2034
cat conftest.err >&5
2035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036
(exit $ac_status); } &&
2037
{ ac_try='test -z "$ac_c_werror_flag"
2038
|| test ! -s conftest.err'
2039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043
(exit $ac_status); }; } &&
2044
{ ac_try='test -s conftest.$ac_objext'
2045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049
(exit $ac_status); }; }; then
2050
ac_cv_prog_cc_stdc=$ac_arg
2053
echo "$as_me: failed program was:" >&5
2054
sed 's/^/| /' conftest.$ac_ext >&5
2057
rm -f conftest.err conftest.$ac_objext
2059
rm -f conftest.$ac_ext conftest.$ac_objext
2064
case "x$ac_cv_prog_cc_stdc" in
2066
echo "$as_me:$LINENO: result: none needed" >&5
2067
echo "${ECHO_T}none needed" >&6 ;;
2069
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2070
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2071
CC="$CC $ac_cv_prog_cc_stdc" ;;
2074
# Some people use a C++ compiler to compile C. Since we use `exit',
2075
# in C++ we need to declare it. In case someone uses the same compiler
2076
# for both compiling C and C++ we need to have the C++ compiler decide
2077
# the declaration of exit, since it's the most demanding environment.
2078
cat >conftest.$ac_ext <<_ACEOF
2083
rm -f conftest.$ac_objext
2084
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085
(eval $ac_compile) 2>conftest.er1
2087
grep -v '^ *+' conftest.er1 >conftest.err
2089
cat conftest.err >&5
2090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091
(exit $ac_status); } &&
2092
{ ac_try='test -z "$ac_c_werror_flag"
2093
|| test ! -s conftest.err'
2094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098
(exit $ac_status); }; } &&
2099
{ ac_try='test -s conftest.$ac_objext'
2100
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104
(exit $ac_status); }; }; then
2105
for ac_declaration in \
2107
'extern "C" void std::exit (int) throw (); using std::exit;' \
2108
'extern "C" void std::exit (int); using std::exit;' \
2109
'extern "C" void exit (int) throw ();' \
2110
'extern "C" void exit (int);' \
2113
cat >conftest.$ac_ext <<_ACEOF
2116
cat confdefs.h >>conftest.$ac_ext
2117
cat >>conftest.$ac_ext <<_ACEOF
2118
/* end confdefs.h. */
2129
rm -f conftest.$ac_objext
2130
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131
(eval $ac_compile) 2>conftest.er1
2133
grep -v '^ *+' conftest.er1 >conftest.err
2135
cat conftest.err >&5
2136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137
(exit $ac_status); } &&
2138
{ ac_try='test -z "$ac_c_werror_flag"
2139
|| test ! -s conftest.err'
2140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144
(exit $ac_status); }; } &&
2145
{ ac_try='test -s conftest.$ac_objext'
2146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150
(exit $ac_status); }; }; then
2153
echo "$as_me: failed program was:" >&5
2154
sed 's/^/| /' conftest.$ac_ext >&5
2158
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2159
cat >conftest.$ac_ext <<_ACEOF
2162
cat confdefs.h >>conftest.$ac_ext
2163
cat >>conftest.$ac_ext <<_ACEOF
2164
/* end confdefs.h. */
2174
rm -f conftest.$ac_objext
2175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176
(eval $ac_compile) 2>conftest.er1
2178
grep -v '^ *+' conftest.er1 >conftest.err
2180
cat conftest.err >&5
2181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182
(exit $ac_status); } &&
2183
{ ac_try='test -z "$ac_c_werror_flag"
2184
|| test ! -s conftest.err'
2185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189
(exit $ac_status); }; } &&
2190
{ ac_try='test -s conftest.$ac_objext'
2191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195
(exit $ac_status); }; }; then
2198
echo "$as_me: failed program was:" >&5
2199
sed 's/^/| /' conftest.$ac_ext >&5
2202
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2205
if test -n "$ac_declaration"; then
2206
echo '#ifdef __cplusplus' >>confdefs.h
2207
echo $ac_declaration >>confdefs.h
2208
echo '#endif' >>confdefs.h
2212
echo "$as_me: failed program was:" >&5
2213
sed 's/^/| /' conftest.$ac_ext >&5
2216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218
ac_cpp='$CPP $CPPFLAGS'
2219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224
ac_cpp='$CPP $CPPFLAGS'
2225
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2229
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
753
2230
# On Suns, sometimes $CPP names a directory.
754
2231
if test -n "$CPP" && test -d "$CPP"; then
757
2234
if test -z "$CPP"; then
758
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
759
echo $ac_n "(cached) $ac_c" 1>&6
761
# This must be in double quotes, not single quotes, because CPP may get
762
# substituted into the Makefile and "${CC-cc}" will confuse make.
764
# On the NeXT, cc -E runs the code through the compiler's parser,
765
# not just through cpp.
766
cat > conftest.$ac_ext <<EOF
767
#line 768 "configure"
768
#include "confdefs.h"
772
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
773
{ (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
774
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
775
if test -z "$ac_err"; then
779
echo "configure: failed program was:" >&5
780
cat conftest.$ac_ext >&5
782
CPP="${CC-cc} -E -traditional-cpp"
783
cat > conftest.$ac_ext <<EOF
784
#line 785 "configure"
785
#include "confdefs.h"
789
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
790
{ (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
791
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
792
if test -z "$ac_err"; then
796
echo "configure: failed program was:" >&5
797
cat conftest.$ac_ext >&5
799
CPP="${CC-cc} -nologo -E"
800
cat > conftest.$ac_ext <<EOF
801
#line 802 "configure"
802
#include "confdefs.h"
806
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
807
{ (eval echo configure:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
808
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
809
if test -z "$ac_err"; then
813
echo "configure: failed program was:" >&5
814
cat conftest.$ac_ext >&5
823
ac_cv_prog_CPP="$CPP"
825
CPP="$ac_cv_prog_CPP"
827
ac_cv_prog_CPP="$CPP"
829
echo "$ac_t""$CPP" 1>&6
832
echo $ac_n "checking for system password file""... $ac_c" 1>&6
833
echo "configure:834: checking for system password file" >&5
2235
if test "${ac_cv_prog_CPP+set}" = set; then
2236
echo $ECHO_N "(cached) $ECHO_C" >&6
2238
# Double quotes because CPP needs to be expanded
2239
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2242
for ac_c_preproc_warn_flag in '' yes
2244
# Use a header file that comes with gcc, so configuring glibc
2245
# with a fresh cross-compiler works.
2246
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2247
# <limits.h> exists even on freestanding compilers.
2248
# On the NeXT, cc -E runs the code through the compiler's parser,
2249
# not just through cpp. "Syntax error" is here to catch this case.
2250
cat >conftest.$ac_ext <<_ACEOF
2253
cat confdefs.h >>conftest.$ac_ext
2254
cat >>conftest.$ac_ext <<_ACEOF
2255
/* end confdefs.h. */
2257
# include <limits.h>
2259
# include <assert.h>
2263
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2264
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2266
grep -v '^ *+' conftest.er1 >conftest.err
2268
cat conftest.err >&5
2269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270
(exit $ac_status); } >/dev/null; then
2271
if test -s conftest.err; then
2272
ac_cpp_err=$ac_c_preproc_warn_flag
2273
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2280
if test -z "$ac_cpp_err"; then
2283
echo "$as_me: failed program was:" >&5
2284
sed 's/^/| /' conftest.$ac_ext >&5
2286
# Broken: fails on valid input.
2289
rm -f conftest.err conftest.$ac_ext
2291
# OK, works on sane cases. Now check whether non-existent headers
2292
# can be detected and how.
2293
cat >conftest.$ac_ext <<_ACEOF
2296
cat confdefs.h >>conftest.$ac_ext
2297
cat >>conftest.$ac_ext <<_ACEOF
2298
/* end confdefs.h. */
2299
#include <ac_nonexistent.h>
2301
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2302
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2304
grep -v '^ *+' conftest.er1 >conftest.err
2306
cat conftest.err >&5
2307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308
(exit $ac_status); } >/dev/null; then
2309
if test -s conftest.err; then
2310
ac_cpp_err=$ac_c_preproc_warn_flag
2311
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2318
if test -z "$ac_cpp_err"; then
2319
# Broken: success on invalid input.
2322
echo "$as_me: failed program was:" >&5
2323
sed 's/^/| /' conftest.$ac_ext >&5
2325
# Passes both tests.
2329
rm -f conftest.err conftest.$ac_ext
2332
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2333
rm -f conftest.err conftest.$ac_ext
2334
if $ac_preproc_ok; then
2346
echo "$as_me:$LINENO: result: $CPP" >&5
2347
echo "${ECHO_T}$CPP" >&6
2349
for ac_c_preproc_warn_flag in '' yes
2351
# Use a header file that comes with gcc, so configuring glibc
2352
# with a fresh cross-compiler works.
2353
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2354
# <limits.h> exists even on freestanding compilers.
2355
# On the NeXT, cc -E runs the code through the compiler's parser,
2356
# not just through cpp. "Syntax error" is here to catch this case.
2357
cat >conftest.$ac_ext <<_ACEOF
2360
cat confdefs.h >>conftest.$ac_ext
2361
cat >>conftest.$ac_ext <<_ACEOF
2362
/* end confdefs.h. */
2364
# include <limits.h>
2366
# include <assert.h>
2370
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2371
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2373
grep -v '^ *+' conftest.er1 >conftest.err
2375
cat conftest.err >&5
2376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377
(exit $ac_status); } >/dev/null; then
2378
if test -s conftest.err; then
2379
ac_cpp_err=$ac_c_preproc_warn_flag
2380
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2387
if test -z "$ac_cpp_err"; then
2390
echo "$as_me: failed program was:" >&5
2391
sed 's/^/| /' conftest.$ac_ext >&5
2393
# Broken: fails on valid input.
2396
rm -f conftest.err conftest.$ac_ext
2398
# OK, works on sane cases. Now check whether non-existent headers
2399
# can be detected and how.
2400
cat >conftest.$ac_ext <<_ACEOF
2403
cat confdefs.h >>conftest.$ac_ext
2404
cat >>conftest.$ac_ext <<_ACEOF
2405
/* end confdefs.h. */
2406
#include <ac_nonexistent.h>
2408
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2409
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2411
grep -v '^ *+' conftest.er1 >conftest.err
2413
cat conftest.err >&5
2414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415
(exit $ac_status); } >/dev/null; then
2416
if test -s conftest.err; then
2417
ac_cpp_err=$ac_c_preproc_warn_flag
2418
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2425
if test -z "$ac_cpp_err"; then
2426
# Broken: success on invalid input.
2429
echo "$as_me: failed program was:" >&5
2430
sed 's/^/| /' conftest.$ac_ext >&5
2432
# Passes both tests.
2436
rm -f conftest.err conftest.$ac_ext
2439
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2440
rm -f conftest.err conftest.$ac_ext
2441
if $ac_preproc_ok; then
2444
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2445
See \`config.log' for more details." >&5
2446
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2447
See \`config.log' for more details." >&2;}
2448
{ (exit 1); exit 1; }; }
2452
ac_cpp='$CPP $CPPFLAGS'
2453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458
echo "$as_me:$LINENO: checking for system password file" >&5
2459
echo $ECHO_N "checking for system password file... $ECHO_C" >&6
834
2460
if test -f /etc/passwd; then
835
echo "$ac_t""/etc/passwd" 1>&6
2461
echo "$as_me:$LINENO: result: /etc/passwd" >&5
2462
echo "${ECHO_T}/etc/passwd" >&6
837
echo "$ac_t""no /etc/passwd file." 1>&6
2464
echo "$as_me:$LINENO: result: no /etc/passwd file." >&5
2465
echo "${ECHO_T}no /etc/passwd file." >&6
838
2466
fail=$fail" /etc/passwd" ,
841
echo $ac_n "checking for system shadow password file""... $ac_c" 1>&6
842
echo "configure:843: checking for system shadow password file" >&5
2469
echo "$as_me:$LINENO: checking for system shadow password file" >&5
2470
echo $ECHO_N "checking for system shadow password file... $ECHO_C" >&6
843
2471
if test -f /etc/shadow; then
844
echo "$ac_t""/etc/shadow" 1>&6
2472
echo "$as_me:$LINENO: result: /etc/shadow" >&5
2473
echo "${ECHO_T}/etc/shadow" >&6
846
echo "$ac_t""no /etc/shadow file." 1>&6
2475
echo "$as_me:$LINENO: result: no /etc/shadow file." >&5
2476
echo "${ECHO_T}no /etc/shadow file." >&6
849
echo $ac_n "checking for crypt""... $ac_c" 1>&6
850
echo "configure:851: checking for crypt" >&5
851
if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
852
echo $ac_n "(cached) $ac_c" 1>&6
2480
echo "$as_me:$LINENO: checking for crypt" >&5
2481
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
2482
if test "${ac_cv_func_crypt+set}" = set; then
2483
echo $ECHO_N "(cached) $ECHO_C" >&6
854
cat > conftest.$ac_ext <<EOF
855
#line 856 "configure"
856
#include "confdefs.h"
2485
cat >conftest.$ac_ext <<_ACEOF
2488
cat confdefs.h >>conftest.$ac_ext
2489
cat >>conftest.$ac_ext <<_ACEOF
2490
/* end confdefs.h. */
2491
/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
2492
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2493
#define crypt innocuous_crypt
857
2495
/* System header to define __stub macros and hopefully few prototypes,
858
which can conflict with char crypt(); below. */
2496
which can conflict with char crypt (); below.
2497
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2498
<limits.h> exists even on freestanding compilers. */
2501
# include <limits.h>
2503
# include <assert.h>
860
2508
/* Override any gcc2 internal prototype to avoid an error. */
861
2513
/* We use char because int might match the return type of a gcc2
862
builtin and then its argument prototype would still apply. */
2514
builtin and then its argument prototype would still apply. */
867
2516
/* The GNU C library defines this for functions which it implements
868
2517
to always fail with ENOSYS. Some functions are actually named
869
2518
something starting with __ and the normal name is an alias. */
870
2519
#if defined (__stub_crypt) || defined (__stub___crypt)
878
if { (eval echo configure:879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
880
eval "ac_cv_func_crypt=yes"
882
echo "configure: failed program was:" >&5
883
cat conftest.$ac_ext >&5
885
eval "ac_cv_func_crypt=no"
890
if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
891
echo "$ac_t""yes" 1>&6
894
echo "$ac_t""no" 1>&6
2522
char (*f) () = crypt;
2536
rm -f conftest.$ac_objext conftest$ac_exeext
2537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2538
(eval $ac_link) 2>conftest.er1
2540
grep -v '^ *+' conftest.er1 >conftest.err
2542
cat conftest.err >&5
2543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544
(exit $ac_status); } &&
2545
{ ac_try='test -z "$ac_c_werror_flag"
2546
|| test ! -s conftest.err'
2547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551
(exit $ac_status); }; } &&
2552
{ ac_try='test -s conftest$ac_exeext'
2553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557
(exit $ac_status); }; }; then
2558
ac_cv_func_crypt=yes
2560
echo "$as_me: failed program was:" >&5
2561
sed 's/^/| /' conftest.$ac_ext >&5
2565
rm -f conftest.err conftest.$ac_objext \
2566
conftest$ac_exeext conftest.$ac_ext
2568
echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
2569
echo "${ECHO_T}$ac_cv_func_crypt" >&6
2570
if test $ac_cv_func_crypt = yes; then
896
2574
#crypt not in libc
897
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
898
echo "configure:899: checking for crypt in -lcrypt" >&5
899
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
900
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
901
echo $ac_n "(cached) $ac_c" 1>&6
2575
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
2576
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
2577
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
2578
echo $ECHO_N "(cached) $ECHO_C" >&6
2580
ac_check_lib_save_LIBS=$LIBS
904
2581
LIBS="-lcrypt $LIBS"
905
cat > conftest.$ac_ext <<EOF
906
#line 907 "configure"
907
#include "confdefs.h"
2582
cat >conftest.$ac_ext <<_ACEOF
2585
cat confdefs.h >>conftest.$ac_ext
2586
cat >>conftest.$ac_ext <<_ACEOF
2587
/* end confdefs.h. */
908
2589
/* Override any gcc2 internal prototype to avoid an error. */
909
2593
/* We use char because int might match the return type of a gcc2
910
builtin and then its argument prototype would still apply. */
917
if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
919
eval "ac_cv_lib_$ac_lib_var=yes"
2594
builtin and then its argument prototype would still apply. */
2604
rm -f conftest.$ac_objext conftest$ac_exeext
2605
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606
(eval $ac_link) 2>conftest.er1
2608
grep -v '^ *+' conftest.er1 >conftest.err
2610
cat conftest.err >&5
2611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612
(exit $ac_status); } &&
2613
{ ac_try='test -z "$ac_c_werror_flag"
2614
|| test ! -s conftest.err'
2615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
(exit $ac_status); }; } &&
2620
{ ac_try='test -s conftest$ac_exeext'
2621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625
(exit $ac_status); }; }; then
2626
ac_cv_lib_crypt_crypt=yes
921
echo "configure: failed program was:" >&5
922
cat conftest.$ac_ext >&5
924
eval "ac_cv_lib_$ac_lib_var=no"
930
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
931
echo "$ac_t""yes" 1>&6
933
cryptlocation=libcrypt
2628
echo "$as_me: failed program was:" >&5
2629
sed 's/^/| /' conftest.$ac_ext >&5
2631
ac_cv_lib_crypt_crypt=no
2633
rm -f conftest.err conftest.$ac_objext \
2634
conftest$ac_exeext conftest.$ac_ext
2635
LIBS=$ac_check_lib_save_LIBS
2637
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
2638
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
2639
if test $ac_cv_lib_crypt_crypt = yes; then
2641
cryptlocation=libcrypt
934
2642
unix_ldflags="${unix_ldflags} -lcrypt"
938
echo "$ac_t""no" 1>&6
945
2651
if test x$cryptlocation = x; then
946
2652
fail=$fail" crypt()" ,
949
for ac_hdr in crypt.h shadow.h
951
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
952
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
953
echo "configure:954: checking for $ac_hdr" >&5
954
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
955
echo $ac_n "(cached) $ac_c" 1>&6
957
cat > conftest.$ac_ext <<EOF
958
#line 959 "configure"
959
#include "confdefs.h"
962
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
963
{ (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
964
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
965
if test -z "$ac_err"; then
967
eval "ac_cv_header_$ac_safe=yes"
970
echo "configure: failed program was:" >&5
971
cat conftest.$ac_ext >&5
973
eval "ac_cv_header_$ac_safe=no"
977
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
978
echo "$ac_t""yes" 1>&6
979
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
980
cat >> confdefs.h <<EOF
985
echo "$ac_t""no" 1>&6
989
for ac_func in getspnam getusershell
991
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
992
echo "configure:993: checking for $ac_func" >&5
993
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
994
echo $ac_n "(cached) $ac_c" 1>&6
996
cat > conftest.$ac_ext <<EOF
997
#line 998 "configure"
998
#include "confdefs.h"
2656
echo "$as_me:$LINENO: checking for egrep" >&5
2657
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2658
if test "${ac_cv_prog_egrep+set}" = set; then
2659
echo $ECHO_N "(cached) $ECHO_C" >&6
2661
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2662
then ac_cv_prog_egrep='grep -E'
2663
else ac_cv_prog_egrep='egrep'
2666
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2667
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2668
EGREP=$ac_cv_prog_egrep
2671
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2672
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2673
if test "${ac_cv_header_stdc+set}" = set; then
2674
echo $ECHO_N "(cached) $ECHO_C" >&6
2676
cat >conftest.$ac_ext <<_ACEOF
2679
cat confdefs.h >>conftest.$ac_ext
2680
cat >>conftest.$ac_ext <<_ACEOF
2681
/* end confdefs.h. */
2695
rm -f conftest.$ac_objext
2696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697
(eval $ac_compile) 2>conftest.er1
2699
grep -v '^ *+' conftest.er1 >conftest.err
2701
cat conftest.err >&5
2702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703
(exit $ac_status); } &&
2704
{ ac_try='test -z "$ac_c_werror_flag"
2705
|| test ! -s conftest.err'
2706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710
(exit $ac_status); }; } &&
2711
{ ac_try='test -s conftest.$ac_objext'
2712
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716
(exit $ac_status); }; }; then
2717
ac_cv_header_stdc=yes
2719
echo "$as_me: failed program was:" >&5
2720
sed 's/^/| /' conftest.$ac_ext >&5
2722
ac_cv_header_stdc=no
2724
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726
if test $ac_cv_header_stdc = yes; then
2727
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2728
cat >conftest.$ac_ext <<_ACEOF
2731
cat confdefs.h >>conftest.$ac_ext
2732
cat >>conftest.$ac_ext <<_ACEOF
2733
/* end confdefs.h. */
2737
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2738
$EGREP "memchr" >/dev/null 2>&1; then
2741
ac_cv_header_stdc=no
2747
if test $ac_cv_header_stdc = yes; then
2748
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2749
cat >conftest.$ac_ext <<_ACEOF
2752
cat confdefs.h >>conftest.$ac_ext
2753
cat >>conftest.$ac_ext <<_ACEOF
2754
/* end confdefs.h. */
2758
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759
$EGREP "free" >/dev/null 2>&1; then
2762
ac_cv_header_stdc=no
2768
if test $ac_cv_header_stdc = yes; then
2769
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2770
if test "$cross_compiling" = yes; then
2773
cat >conftest.$ac_ext <<_ACEOF
2776
cat confdefs.h >>conftest.$ac_ext
2777
cat >>conftest.$ac_ext <<_ACEOF
2778
/* end confdefs.h. */
2780
#if ((' ' & 0x0FF) == 0x020)
2781
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2782
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2784
# define ISLOWER(c) \
2785
(('a' <= (c) && (c) <= 'i') \
2786
|| ('j' <= (c) && (c) <= 'r') \
2787
|| ('s' <= (c) && (c) <= 'z'))
2788
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2791
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2796
for (i = 0; i < 256; i++)
2797
if (XOR (islower (i), ISLOWER (i))
2798
|| toupper (i) != TOUPPER (i))
2803
rm -f conftest$ac_exeext
2804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2805
(eval $ac_link) 2>&5
2807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813
(exit $ac_status); }; }; then
2816
echo "$as_me: program exited with status $ac_status" >&5
2817
echo "$as_me: failed program was:" >&5
2818
sed 's/^/| /' conftest.$ac_ext >&5
2821
ac_cv_header_stdc=no
2823
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2827
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2828
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2829
if test $ac_cv_header_stdc = yes; then
2831
cat >>confdefs.h <<\_ACEOF
2832
#define STDC_HEADERS 1
2837
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2847
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2848
inttypes.h stdint.h unistd.h
2850
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2851
echo "$as_me:$LINENO: checking for $ac_header" >&5
2852
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2853
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2854
echo $ECHO_N "(cached) $ECHO_C" >&6
2856
cat >conftest.$ac_ext <<_ACEOF
2859
cat confdefs.h >>conftest.$ac_ext
2860
cat >>conftest.$ac_ext <<_ACEOF
2861
/* end confdefs.h. */
2862
$ac_includes_default
2864
#include <$ac_header>
2866
rm -f conftest.$ac_objext
2867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868
(eval $ac_compile) 2>conftest.er1
2870
grep -v '^ *+' conftest.er1 >conftest.err
2872
cat conftest.err >&5
2873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874
(exit $ac_status); } &&
2875
{ ac_try='test -z "$ac_c_werror_flag"
2876
|| test ! -s conftest.err'
2877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881
(exit $ac_status); }; } &&
2882
{ ac_try='test -s conftest.$ac_objext'
2883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887
(exit $ac_status); }; }; then
2888
eval "$as_ac_Header=yes"
2890
echo "$as_me: failed program was:" >&5
2891
sed 's/^/| /' conftest.$ac_ext >&5
2893
eval "$as_ac_Header=no"
2895
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2897
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2898
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2899
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2900
cat >>confdefs.h <<_ACEOF
2901
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2911
for ac_header in crypt.h shadow.h
2913
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2914
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2915
echo "$as_me:$LINENO: checking for $ac_header" >&5
2916
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2917
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2918
echo $ECHO_N "(cached) $ECHO_C" >&6
2920
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2921
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2923
# Is the header compilable?
2924
echo "$as_me:$LINENO: checking $ac_header usability" >&5
2925
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2926
cat >conftest.$ac_ext <<_ACEOF
2929
cat confdefs.h >>conftest.$ac_ext
2930
cat >>conftest.$ac_ext <<_ACEOF
2931
/* end confdefs.h. */
2932
$ac_includes_default
2933
#include <$ac_header>
2935
rm -f conftest.$ac_objext
2936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937
(eval $ac_compile) 2>conftest.er1
2939
grep -v '^ *+' conftest.er1 >conftest.err
2941
cat conftest.err >&5
2942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943
(exit $ac_status); } &&
2944
{ ac_try='test -z "$ac_c_werror_flag"
2945
|| test ! -s conftest.err'
2946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950
(exit $ac_status); }; } &&
2951
{ ac_try='test -s conftest.$ac_objext'
2952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956
(exit $ac_status); }; }; then
2957
ac_header_compiler=yes
2959
echo "$as_me: failed program was:" >&5
2960
sed 's/^/| /' conftest.$ac_ext >&5
2962
ac_header_compiler=no
2964
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2966
echo "${ECHO_T}$ac_header_compiler" >&6
2968
# Is the header present?
2969
echo "$as_me:$LINENO: checking $ac_header presence" >&5
2970
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2971
cat >conftest.$ac_ext <<_ACEOF
2974
cat confdefs.h >>conftest.$ac_ext
2975
cat >>conftest.$ac_ext <<_ACEOF
2976
/* end confdefs.h. */
2977
#include <$ac_header>
2979
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2980
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2982
grep -v '^ *+' conftest.er1 >conftest.err
2984
cat conftest.err >&5
2985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986
(exit $ac_status); } >/dev/null; then
2987
if test -s conftest.err; then
2988
ac_cpp_err=$ac_c_preproc_warn_flag
2989
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996
if test -z "$ac_cpp_err"; then
2997
ac_header_preproc=yes
2999
echo "$as_me: failed program was:" >&5
3000
sed 's/^/| /' conftest.$ac_ext >&5
3002
ac_header_preproc=no
3004
rm -f conftest.err conftest.$ac_ext
3005
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3006
echo "${ECHO_T}$ac_header_preproc" >&6
3008
# So? What about this header?
3009
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3011
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3012
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3013
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3014
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3015
ac_header_preproc=yes
3018
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3019
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3020
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3021
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3022
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3023
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3024
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3025
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3026
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3027
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3028
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3029
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3032
## ------------------------------------------ ##
3033
## Report this to the AC_PACKAGE_NAME lists. ##
3034
## ------------------------------------------ ##
3037
sed "s/^/$as_me: WARNING: /" >&2
3040
echo "$as_me:$LINENO: checking for $ac_header" >&5
3041
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3042
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3043
echo $ECHO_N "(cached) $ECHO_C" >&6
3045
eval "$as_ac_Header=\$ac_header_preproc"
3047
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3048
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3051
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3052
cat >>confdefs.h <<_ACEOF
3053
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3062
for ac_func in getspnam getusershell
3064
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3065
echo "$as_me:$LINENO: checking for $ac_func" >&5
3066
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3067
if eval "test \"\${$as_ac_var+set}\" = set"; then
3068
echo $ECHO_N "(cached) $ECHO_C" >&6
3070
cat >conftest.$ac_ext <<_ACEOF
3073
cat confdefs.h >>conftest.$ac_ext
3074
cat >>conftest.$ac_ext <<_ACEOF
3075
/* end confdefs.h. */
3076
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3077
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3078
#define $ac_func innocuous_$ac_func
999
3080
/* System header to define __stub macros and hopefully few prototypes,
1000
which can conflict with char $ac_func(); below. */
3081
which can conflict with char $ac_func (); below.
3082
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3083
<limits.h> exists even on freestanding compilers. */
3086
# include <limits.h>
3088
# include <assert.h>
1002
3093
/* Override any gcc2 internal prototype to avoid an error. */
1003
3098
/* We use char because int might match the return type of a gcc2
1004
builtin and then its argument prototype would still apply. */
3099
builtin and then its argument prototype would still apply. */
1009
3101
/* The GNU C library defines this for functions which it implements
1010
3102
to always fail with ENOSYS. Some functions are actually named
1011
3103
something starting with __ and the normal name is an alias. */
1012
3104
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1020
if { (eval echo configure:1021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1022
eval "ac_cv_func_$ac_func=yes"
1024
echo "configure: failed program was:" >&5
1025
cat conftest.$ac_ext >&5
1027
eval "ac_cv_func_$ac_func=no"
1032
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1033
echo "$ac_t""yes" 1>&6
1034
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1035
cat >> confdefs.h <<EOF
1036
#define $ac_tr_func 1
1040
echo "$ac_t""no" 1>&6
3107
char (*f) () = $ac_func;
3116
return f != $ac_func;
3121
rm -f conftest.$ac_objext conftest$ac_exeext
3122
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3123
(eval $ac_link) 2>conftest.er1
3125
grep -v '^ *+' conftest.er1 >conftest.err
3127
cat conftest.err >&5
3128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129
(exit $ac_status); } &&
3130
{ ac_try='test -z "$ac_c_werror_flag"
3131
|| test ! -s conftest.err'
3132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136
(exit $ac_status); }; } &&
3137
{ ac_try='test -s conftest$ac_exeext'
3138
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142
(exit $ac_status); }; }; then
3143
eval "$as_ac_var=yes"
3145
echo "$as_me: failed program was:" >&5
3146
sed 's/^/| /' conftest.$ac_ext >&5
3148
eval "$as_ac_var=no"
3150
rm -f conftest.err conftest.$ac_objext \
3151
conftest$ac_exeext conftest.$ac_ext
3153
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3154
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3155
if test `eval echo '${'$as_ac_var'}'` = yes; then
3156
cat >>confdefs.h <<_ACEOF
3157
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1045
echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
1046
echo "configure:1047: checking for getspnam in -lshadow" >&5
1047
ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'`
1048
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1049
echo $ac_n "(cached) $ac_c" 1>&6
3164
echo "$as_me:$LINENO: checking for getspnam in -lshadow" >&5
3165
echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
3166
if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
3167
echo $ECHO_N "(cached) $ECHO_C" >&6
1051
ac_save_LIBS="$LIBS"
3169
ac_check_lib_save_LIBS=$LIBS
1052
3170
LIBS="-lshadow $LIBS"
1053
cat > conftest.$ac_ext <<EOF
1054
#line 1055 "configure"
1055
#include "confdefs.h"
3171
cat >conftest.$ac_ext <<_ACEOF
3174
cat confdefs.h >>conftest.$ac_ext
3175
cat >>conftest.$ac_ext <<_ACEOF
3176
/* end confdefs.h. */
1056
3178
/* Override any gcc2 internal prototype to avoid an error. */
1057
3182
/* We use char because int might match the return type of a gcc2
1058
builtin and then its argument prototype would still apply. */
1065
if { (eval echo configure:1066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1067
eval "ac_cv_lib_$ac_lib_var=yes"
3183
builtin and then its argument prototype would still apply. */
3193
rm -f conftest.$ac_objext conftest$ac_exeext
3194
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3195
(eval $ac_link) 2>conftest.er1
3197
grep -v '^ *+' conftest.er1 >conftest.err
3199
cat conftest.err >&5
3200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201
(exit $ac_status); } &&
3202
{ ac_try='test -z "$ac_c_werror_flag"
3203
|| test ! -s conftest.err'
3204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208
(exit $ac_status); }; } &&
3209
{ ac_try='test -s conftest$ac_exeext'
3210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214
(exit $ac_status); }; }; then
3215
ac_cv_lib_shadow_getspnam=yes
1069
echo "configure: failed program was:" >&5
1070
cat conftest.$ac_ext >&5
1072
eval "ac_cv_lib_$ac_lib_var=no"
1075
LIBS="$ac_save_LIBS"
1078
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1079
echo "$ac_t""yes" 1>&6
3217
echo "$as_me: failed program was:" >&5
3218
sed 's/^/| /' conftest.$ac_ext >&5
3220
ac_cv_lib_shadow_getspnam=no
3222
rm -f conftest.err conftest.$ac_objext \
3223
conftest$ac_exeext conftest.$ac_ext
3224
LIBS=$ac_check_lib_save_LIBS
3226
echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspnam" >&5
3227
echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
3228
if test $ac_cv_lib_shadow_getspnam = yes; then
1081
3230
unix_ldflags="${unix_ldflags} -lshadow"
1082
cat >> confdefs.h <<\EOF
3231
cat >>confdefs.h <<\_ACEOF
1083
3232
#define HAVE_GETSPNAM 1
1089
echo "$ac_t""no" 1>&6
1093
for ac_func in fgetpwent fgetspent fgetgrent
3243
for ac_func in fgetpwent fgetspent fgetgrent
1095
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1096
echo "configure:1097: checking for $ac_func" >&5
1097
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1098
echo $ac_n "(cached) $ac_c" 1>&6
3245
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3246
echo "$as_me:$LINENO: checking for $ac_func" >&5
3247
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3248
if eval "test \"\${$as_ac_var+set}\" = set"; then
3249
echo $ECHO_N "(cached) $ECHO_C" >&6
1100
cat > conftest.$ac_ext <<EOF
1101
#line 1102 "configure"
1102
#include "confdefs.h"
3251
cat >conftest.$ac_ext <<_ACEOF
3254
cat confdefs.h >>conftest.$ac_ext
3255
cat >>conftest.$ac_ext <<_ACEOF
3256
/* end confdefs.h. */
3257
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3258
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3259
#define $ac_func innocuous_$ac_func
1103
3261
/* System header to define __stub macros and hopefully few prototypes,
1104
which can conflict with char $ac_func(); below. */
3262
which can conflict with char $ac_func (); below.
3263
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264
<limits.h> exists even on freestanding compilers. */
3267
# include <limits.h>
3269
# include <assert.h>
1106
3274
/* Override any gcc2 internal prototype to avoid an error. */
1107
3279
/* We use char because int might match the return type of a gcc2
1108
builtin and then its argument prototype would still apply. */
3280
builtin and then its argument prototype would still apply. */
1113
3282
/* The GNU C library defines this for functions which it implements
1114
3283
to always fail with ENOSYS. Some functions are actually named
1115
3284
something starting with __ and the normal name is an alias. */
1116
3285
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1124
if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1126
eval "ac_cv_func_$ac_func=yes"
1128
echo "configure: failed program was:" >&5
1129
cat conftest.$ac_ext >&5
1131
eval "ac_cv_func_$ac_func=no"
1136
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1137
echo "$ac_t""yes" 1>&6
1138
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1139
cat >> confdefs.h <<EOF
1140
#define $ac_tr_func 1
1144
echo "$ac_t""no" 1>&6
3288
char (*f) () = $ac_func;
3297
return f != $ac_func;
3302
rm -f conftest.$ac_objext conftest$ac_exeext
3303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3304
(eval $ac_link) 2>conftest.er1
3306
grep -v '^ *+' conftest.er1 >conftest.err
3308
cat conftest.err >&5
3309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310
(exit $ac_status); } &&
3311
{ ac_try='test -z "$ac_c_werror_flag"
3312
|| test ! -s conftest.err'
3313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317
(exit $ac_status); }; } &&
3318
{ ac_try='test -s conftest$ac_exeext'
3319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323
(exit $ac_status); }; }; then
3324
eval "$as_ac_var=yes"
3326
echo "$as_me: failed program was:" >&5
3327
sed 's/^/| /' conftest.$ac_ext >&5
3329
eval "$as_ac_var=no"
3331
rm -f conftest.err conftest.$ac_objext \
3332
conftest$ac_exeext conftest.$ac_ext
3334
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3335
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3336
if test `eval echo '${'$as_ac_var'}'` = yes; then
3337
cat >>confdefs.h <<_ACEOF
3338
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3368
ac_config_headers="$ac_config_headers config.h"
1170
cat > confcache <<\EOF
3370
ac_config_files="$ac_config_files Makefile"
3371
cat >confcache <<\_ACEOF
1171
3372
# This file is a shell script that caches the results of configure
1172
3373
# tests run on this system so they can be shared between configure
1173
# scripts and configure runs. It is not useful on other systems.
1174
# If it contains results you don't want to keep, you may remove or edit it.
1176
# By default, configure uses ./config.cache as the cache file,
1177
# creating it if it does not exist already. You can give configure
1178
# the --cache-file=FILE option to use a different cache file; that is
1179
# what configure does when it calls configure scripts in
1180
# subdirectories, so they share the cache.
1181
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1182
# config.status only pays attention to the cache file if you give it the
1183
# --recheck option to rerun configure.
3374
# scripts and configure runs, see configure's option --config-cache.
3375
# It is not useful on other systems. If it contains results you don't
3376
# want to keep, you may remove or edit it.
3378
# config.status only pays attention to the cache file if you give it
3379
# the --recheck option to rerun configure.
3381
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3382
# loading this file, other *unset* `ac_cv_foo' will be assigned the
1186
3387
# The following way of writing the cache mishandles newlines in values,
1187
3388
# but we know of no workaround that is simple, portable, and efficient.
1188
3389
# So, don't put newlines in cache variables' values.
1189
3390
# Ultrix sh set writes to stderr and can't be redirected directly,
1190
3391
# and sets the high bit in the cache file unless we assign to the vars.
1192
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1194
# `set' does not quote correctly, so add quotes (double-quote substitution
1195
# turns \\\\ into \\, and sed turns \\ into \).
1197
-e "s/'/'\\\\''/g" \
1198
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1201
# `set' quotes correctly as required by POSIX, so do not add quotes.
1202
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1205
if cmp -s $cache_file confcache; then
3394
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3396
# `set' does not quote correctly, so add quotes (double-quote
3397
# substitution turns \\\\ into \\, and sed turns \\ into \).
3400
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3403
# `set' quotes correctly as required by POSIX, so do not add quotes.
3405
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3412
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3414
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3416
if diff $cache_file confcache >/dev/null 2>&1; then :; else
1208
3417
if test -w $cache_file; then
1209
echo "updating cache $cache_file"
1210
cat confcache > $cache_file
3418
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3419
cat confcache >$cache_file
1212
3421
echo "not updating unwritable cache $cache_file"
1215
3424
rm -f confcache
1217
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1219
3426
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1220
3427
# Let make expand exec_prefix.
1221
3428
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1223
# Any assignment to VPATH causes Sun make to only execute
1224
# the first set of double-colon rules, so remove it if not needed.
1225
# If there is a colon in the path, we need to keep it.
3430
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3431
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3432
# trailing colons and then remove the whole line if VPATH becomes empty
3433
# (actually we leave an empty line to preserve line numbers).
1226
3434
if test "x$srcdir" = x.; then
1227
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3435
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3436
s/:*\$(srcdir):*/:/;
3437
s/:*\${srcdir}:*/:/;
3439
s/^\([^=]*=[ ]*\):*/\1/;
1230
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1232
3445
DEFS=-DHAVE_CONFIG_H
1234
# Without the "./", some shells look in PATH for config.status.
3449
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3450
# 1. Remove the extension, and $U if already installed.
3451
ac_i=`echo "$ac_i" |
3452
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3454
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3455
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3459
LTLIBOBJS=$ac_ltlibobjs
1235
3463
: ${CONFIG_STATUS=./config.status}
1237
echo creating $CONFIG_STATUS
1238
rm -f $CONFIG_STATUS
1239
cat > $CONFIG_STATUS <<EOF
1241
# Generated automatically by configure.
3464
ac_clean_files_save=$ac_clean_files
3465
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3466
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3467
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3468
cat >$CONFIG_STATUS <<_ACEOF
3470
# Generated by $as_me.
1242
3471
# Run this file to recreate the current configuration.
1243
# This directory was configured as follows,
1244
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1246
# $0 $ac_configure_args
1248
3472
# Compiler output produced by configure, useful for debugging
1249
# configure, is in ./config.log if it exists.
1251
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1254
case "\$ac_option" in
3473
# configure, is in config.log if it exists.
3478
SHELL=\${CONFIG_SHELL-$SHELL}
3481
cat >>$CONFIG_STATUS <<\_ACEOF
3482
## --------------------- ##
3483
## M4sh Initialization. ##
3484
## --------------------- ##
3486
# Be Bourne compatible
3487
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3490
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3491
# is contrary to our usage. Disable this feature.
3492
alias -g '${1+"$@"}'='"$@"'
3493
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3496
DUALCASE=1; export DUALCASE # for MKS sh
3498
# Support unset when possible.
3499
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3506
# Work around bugs in pre-3.0 UWIN ksh.
3507
$as_unset ENV MAIL MAILPATH
3514
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3515
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3516
LC_TELEPHONE LC_TIME
3518
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3519
eval $as_var=C; export $as_var
3525
# Required to use basename.
3526
if expr a : '\(a\)' >/dev/null 2>&1; then
3532
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3533
as_basename=basename
3539
# Name of the executable.
3540
as_me=`$as_basename "$0" ||
3541
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3542
X"$0" : 'X\(//\)$' \| \
3543
X"$0" : 'X\(/\)$' \| \
3544
. : '\(.\)' 2>/dev/null ||
3546
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3547
/^X\/\(\/\/\)$/{ s//\1/; q; }
3548
/^X\/\(\/\).*/{ s//\1/; q; }
3552
# PATH needs CR, and LINENO needs CR and PATH.
3553
# Avoid depending upon Character Ranges.
3554
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3555
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3556
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3557
as_cr_digits='0123456789'
3558
as_cr_alnum=$as_cr_Letters$as_cr_digits
3560
# The user is always right.
3561
if test "${PATH_SEPARATOR+set}" != set; then
3562
echo "#! /bin/sh" >conf$$.sh
3563
echo "exit 0" >>conf$$.sh
3565
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3576
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3577
test "x$as_lineno_1" != "x$as_lineno_2" &&
3578
test "x$as_lineno_3" = "x$as_lineno_2" || {
3579
# Find who we are. Look in the path if we contain no path at all
3582
*[\\/]* ) as_myself=$0 ;;
3583
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587
test -z "$as_dir" && as_dir=.
3588
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3593
# We did not find ourselves, most probably we were run as `sh COMMAND'
3594
# in which case we are not to be found in the path.
3595
if test "x$as_myself" = x; then
3598
if test ! -f "$as_myself"; then
3599
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3600
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3601
{ (exit 1); exit 1; }; }
3603
case $CONFIG_SHELL in
3605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3609
test -z "$as_dir" && as_dir=.
3610
for as_base in sh bash ksh sh5; do
3613
if ("$as_dir/$as_base" -c '
3616
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3617
test "x$as_lineno_1" != "x$as_lineno_2" &&
3618
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3619
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3620
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3621
CONFIG_SHELL=$as_dir/$as_base
3623
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3631
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3632
# uniformly replaced by the line number. The first 'sed' inserts a
3633
# line-number line before each line; the second 'sed' does the real
3634
# work. The second script uses 'N' to pair each line-number line
3635
# with the numbered line, and appends trailing '-' during
3636
# substitution so that $LINENO is not a special case at line end.
3637
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3638
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3639
sed '=' <$as_myself |
3644
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3647
s,^['$as_cr_digits']*\n,,
3649
chmod +x $as_me.lineno ||
3650
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3651
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3652
{ (exit 1); exit 1; }; }
3654
# Don't try to exec as it changes $[0], causing all sort of problems
3655
# (the dirname of $[0] is not the place where we might find the
3656
# original and so on. Autoconf is especially sensible to this).
3658
# Exit status is that of the last command.
3663
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3664
*c*,-n*) ECHO_N= ECHO_C='
3666
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3667
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3670
if expr a : '\(a\)' >/dev/null 2>&1; then
3676
rm -f conf$$ conf$$.exe conf$$.file
3678
if ln -s conf$$.file conf$$ 2>/dev/null; then
3679
# We could just check for DJGPP; but this test a) works b) is more generic
3680
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3681
if test -f conf$$.exe; then
3682
# Don't use ln at all; we don't have any links
3687
elif ln conf$$.file conf$$ 2>/dev/null; then
3692
rm -f conf$$ conf$$.exe conf$$.file
3694
if mkdir -p . 2>/dev/null; then
3697
test -d ./-p && rmdir ./-p
3701
as_executable_p="test -f"
3703
# Sed expression to map a string onto a valid CPP name.
3704
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3706
# Sed expression to map a string onto a valid variable name.
3707
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3711
# We need space, tab and new line, in precisely that order.
3721
# Open the log real soon, to keep \$[0] and so on meaningful, and to
3722
# report actual input values of CONFIG_FILES etc. instead of their
3723
# values after options handling. Logging --version etc. is OK.
3727
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3728
## Running $as_me. ##
3733
This file was extended by $as_me, which was
3734
generated by GNU Autoconf 2.59. Invocation command line was
3736
CONFIG_FILES = $CONFIG_FILES
3737
CONFIG_HEADERS = $CONFIG_HEADERS
3738
CONFIG_LINKS = $CONFIG_LINKS
3739
CONFIG_COMMANDS = $CONFIG_COMMANDS
3743
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3747
# Files that config.status was made for.
3748
if test -n "$ac_config_files"; then
3749
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3752
if test -n "$ac_config_headers"; then
3753
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3756
if test -n "$ac_config_links"; then
3757
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3760
if test -n "$ac_config_commands"; then
3761
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3764
cat >>$CONFIG_STATUS <<\_ACEOF
3767
\`$as_me' instantiates files from templates according to the
3768
current configuration.
3770
Usage: $0 [OPTIONS] [FILE]...
3772
-h, --help print this help, then exit
3773
-V, --version print version number, then exit
3774
-q, --quiet do not print progress messages
3775
-d, --debug don't remove temporary files
3776
--recheck update $as_me by reconfiguring in the same conditions
3777
--file=FILE[:TEMPLATE]
3778
instantiate the configuration file FILE
3779
--header=FILE[:TEMPLATE]
3780
instantiate the configuration header FILE
3782
Configuration files:
3785
Configuration headers:
3788
Report bugs to <bug-autoconf@gnu.org>."
3791
cat >>$CONFIG_STATUS <<_ACEOF
3794
configured by $0, generated by GNU Autoconf 2.59,
3795
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3797
Copyright (C) 2003 Free Software Foundation, Inc.
3798
This config.status script is free software; the Free Software Foundation
3799
gives unlimited permission to copy, distribute and modify it."
3803
cat >>$CONFIG_STATUS <<\_ACEOF
3804
# If no file are specified by the user, then we need to provide default
3805
# value. By we need to know if files were specified by the user.
3811
ac_option=`expr "x$1" : 'x\([^=]*\)='`
3812
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3820
*) # This is not an option, so the user has probably given explicit
3823
ac_need_defaults=false;;
3827
# Handling of the options.
3829
cat >>$CONFIG_STATUS <<\_ACEOF
1255
3830
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1256
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1257
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1258
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1259
echo "$CONFIG_STATUS generated by autoconf version 2.13"
1261
-help | --help | --hel | --he | --h)
1262
echo "\$ac_cs_usage"; exit 0 ;;
1263
*) echo "\$ac_cs_usage"; exit 1 ;;
1267
ac_given_srcdir=$srcdir
1269
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1271
cat >> $CONFIG_STATUS <<EOF
1273
# Protect against being on the right side of a sed subst in config.status.
1274
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1275
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3832
--version | --vers* | -V )
3833
echo "$ac_cs_version"; exit 0 ;;
3835
# Conflict between --help and --header
3836
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
3837
Try \`$0 --help' for more information." >&5
3838
echo "$as_me: error: ambiguous option: $1
3839
Try \`$0 --help' for more information." >&2;}
3840
{ (exit 1); exit 1; }; };;
3841
--help | --hel | -h )
3842
echo "$ac_cs_usage"; exit 0 ;;
3843
--debug | --d* | -d )
3845
--file | --fil | --fi | --f )
3847
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3848
ac_need_defaults=false;;
3849
--header | --heade | --head | --hea )
3851
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3852
ac_need_defaults=false;;
3853
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
3854
| -silent | --silent | --silen | --sile | --sil | --si | --s)
3858
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3859
Try \`$0 --help' for more information." >&5
3860
echo "$as_me: error: unrecognized option: $1
3861
Try \`$0 --help' for more information." >&2;}
3862
{ (exit 1); exit 1; }; } ;;
3864
*) ac_config_targets="$ac_config_targets $1" ;;
3870
ac_configure_extra_args=
3872
if $ac_cs_silent; then
3874
ac_configure_extra_args="$ac_configure_extra_args --silent"
3878
cat >>$CONFIG_STATUS <<_ACEOF
3879
if \$ac_cs_recheck; then
3880
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3881
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3890
cat >>$CONFIG_STATUS <<\_ACEOF
3891
for ac_config_target in $ac_config_targets
3893
case "$ac_config_target" in
3894
# Handling of arguments.
3895
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3896
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3897
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3898
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3899
{ (exit 1); exit 1; }; };;
3903
# If the user did not use the arguments to specify the items to instantiate,
3904
# then the envvar interface is used. Set only those that are not.
3905
# We use the long form for the default assignment because of an extremely
3906
# bizarre bug on SunOS 4.1.3.
3907
if $ac_need_defaults; then
3908
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3909
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3912
# Have a temporary directory for convenience. Make it in the build tree
3913
# simply because there is no reason to put it here, and in addition,
3914
# creating and moving files from /tmp can sometimes cause problems.
3915
# Create a temporary directory, and hook for its removal unless debugging.
3918
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3919
trap '{ (exit 1); exit 1; }' 1 2 13 15
3922
# Create a (secure) tmp directory for tmp files.
3925
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3926
test -n "$tmp" && test -d "$tmp"
3929
tmp=./confstat$$-$RANDOM
3930
(umask 077 && mkdir $tmp)
3933
echo "$me: cannot create a temporary directory in ." >&2
3934
{ (exit 1); exit 1; }
3939
cat >>$CONFIG_STATUS <<_ACEOF
3942
# CONFIG_FILES section.
3945
# No need to generate the scripts if there are no CONFIG_FILES.
3946
# This happens for instance when ./config.status config.h
3947
if test -n "\$CONFIG_FILES"; then
3948
# Protect against being on the right side of a sed subst in config.status.
3949
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3950
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3951
s,@SHELL@,$SHELL,;t t
3952
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3953
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3954
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3955
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3956
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3957
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3958
s,@exec_prefix@,$exec_prefix,;t t
3959
s,@prefix@,$prefix,;t t
3960
s,@program_transform_name@,$program_transform_name,;t t
3961
s,@bindir@,$bindir,;t t
3962
s,@sbindir@,$sbindir,;t t
3963
s,@libexecdir@,$libexecdir,;t t
3964
s,@datadir@,$datadir,;t t
3965
s,@sysconfdir@,$sysconfdir,;t t
3966
s,@sharedstatedir@,$sharedstatedir,;t t
3967
s,@localstatedir@,$localstatedir,;t t
3968
s,@libdir@,$libdir,;t t
3969
s,@includedir@,$includedir,;t t
3970
s,@oldincludedir@,$oldincludedir,;t t
3971
s,@infodir@,$infodir,;t t
3972
s,@mandir@,$mandir,;t t
3973
s,@build_alias@,$build_alias,;t t
3974
s,@host_alias@,$host_alias,;t t
3975
s,@target_alias@,$target_alias,;t t
3977
s,@ECHO_C@,$ECHO_C,;t t
3978
s,@ECHO_N@,$ECHO_N,;t t
3979
s,@ECHO_T@,$ECHO_T,;t t
3982
s,@CFLAGS@,$CFLAGS,;t t
3983
s,@LDFLAGS@,$LDFLAGS,;t t
3984
s,@CPPFLAGS@,$CPPFLAGS,;t t
3985
s,@ac_ct_CC@,$ac_ct_CC,;t t
3986
s,@EXEEXT@,$EXEEXT,;t t
3987
s,@OBJEXT@,$OBJEXT,;t t
3989
s,@EGREP@,$EGREP,;t t
3990
s,@unix_ldflags@,$unix_ldflags,;t t
3991
s,@unix_cflags@,$unix_cflags,;t t
3992
s,@targetname@,$targetname,;t t
3993
s,@LIBOBJS@,$LIBOBJS,;t t
3994
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3999
cat >>$CONFIG_STATUS <<\_ACEOF
4000
# Split the substitutions into bite-sized pieces for seds with
4001
# small command number limits, like on Digital OSF/1 and HP-UX.
4003
ac_sed_frag=1 # Number of current file.
4004
ac_beg=1 # First line for current file.
4005
ac_end=$ac_max_sed_lines # Line after last line for current file.
4008
while $ac_more_lines; do
4009
if test $ac_beg -gt 1; then
4010
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4012
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4014
if test ! -s $tmp/subs.frag; then
4017
# The purpose of the label and of the branching condition is to
4018
# speed up the sed processing (if there are no `@' at all, there
4019
# is no need to browse any of the substitutions).
4020
# These are the two extra sed commands mentioned above.
4022
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4023
if test -z "$ac_sed_cmds"; then
4024
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4026
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4028
ac_sed_frag=`expr $ac_sed_frag + 1`
4030
ac_end=`expr $ac_end + $ac_max_sed_lines`
4033
if test -z "$ac_sed_cmds"; then
4036
fi # test -n "$CONFIG_FILES"
4039
cat >>$CONFIG_STATUS <<\_ACEOF
4040
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4041
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4043
- | *:- | *:-:* ) # input from stdin
4045
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4046
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4047
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4048
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4049
* ) ac_file_in=$ac_file.in ;;
4052
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4053
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4054
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4055
X"$ac_file" : 'X\(//\)[^/]' \| \
4056
X"$ac_file" : 'X\(//\)$' \| \
4057
X"$ac_file" : 'X\(/\)' \| \
4058
. : '\(.\)' 2>/dev/null ||
4060
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4061
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4062
/^X\(\/\/\)$/{ s//\1/; q; }
4063
/^X\(\/\).*/{ s//\1/; q; }
4065
{ if $as_mkdir_p; then
4070
while test ! -d "$as_dir"; do
4071
as_dirs="$as_dir $as_dirs"
4072
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4073
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4074
X"$as_dir" : 'X\(//\)[^/]' \| \
4075
X"$as_dir" : 'X\(//\)$' \| \
4076
X"$as_dir" : 'X\(/\)' \| \
4077
. : '\(.\)' 2>/dev/null ||
4079
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4080
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4081
/^X\(\/\/\)$/{ s//\1/; q; }
4082
/^X\(\/\).*/{ s//\1/; q; }
4085
test ! -n "$as_dirs" || mkdir $as_dirs
4086
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4087
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4088
{ (exit 1); exit 1; }; }; }
4092
if test "$ac_dir" != .; then
4093
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4094
# A "../" for each directory in $ac_dir_suffix.
4095
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4097
ac_dir_suffix= ac_top_builddir=
4101
.) # No --srcdir option. We are building in place.
4103
if test -z "$ac_top_builddir"; then
4106
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4108
[\\/]* | ?:[\\/]* ) # Absolute path.
4109
ac_srcdir=$srcdir$ac_dir_suffix;
4110
ac_top_srcdir=$srcdir ;;
4112
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4113
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4116
# Do not use `cd foo && pwd` to compute absolute paths, because
4117
# the directories may not exist.
4119
.) ac_abs_builddir="$ac_dir";;
4122
.) ac_abs_builddir=`pwd`;;
4123
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4124
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4127
case $ac_abs_builddir in
4128
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4130
case ${ac_top_builddir}. in
4131
.) ac_abs_top_builddir=$ac_abs_builddir;;
4132
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4133
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4136
case $ac_abs_builddir in
4137
.) ac_abs_srcdir=$ac_srcdir;;
4140
.) ac_abs_srcdir=$ac_abs_builddir;;
4141
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4142
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4145
case $ac_abs_builddir in
4146
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4148
case $ac_top_srcdir in
4149
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4150
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4151
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4157
if test x"$ac_file" != x-; then
4158
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4159
echo "$as_me: creating $ac_file" >&6;}
4162
# Let's still pretend it is `configure' which instantiates (i.e., don't
4163
# use $as_me), people would be surprised to read:
4164
# /* config.h. Generated by config.status. */
4165
if test x"$ac_file" = x-; then
4168
configure_input="$ac_file. "
4170
configure_input=$configure_input"Generated from `echo $ac_file_in |
4171
sed 's,.*/,,'` by configure."
4173
# First look for the input files in the build tree, otherwise in the
4175
ac_file_inputs=`IFS=:
4176
for f in $ac_file_in; do
4178
-) echo $tmp/stdin ;;
4180
# Absolute (can't be DOS-style, as IFS=:)
4181
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4182
echo "$as_me: error: cannot find input file: $f" >&2;}
4183
{ (exit 1); exit 1; }; }
4186
if test -f "$f"; then
4189
elif test -f "$srcdir/$f"; then
4194
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4195
echo "$as_me: error: cannot find input file: $f" >&2;}
4196
{ (exit 1); exit 1; }; }
4199
done` || { (exit 1); exit 1; }
4201
cat >>$CONFIG_STATUS <<_ACEOF
1279
s%@CFLAGS@%$CFLAGS%g
1280
s%@CPPFLAGS@%$CPPFLAGS%g
1281
s%@CXXFLAGS@%$CXXFLAGS%g
1282
s%@FFLAGS@%$FFLAGS%g
1284
s%@LDFLAGS@%$LDFLAGS%g
1286
s%@exec_prefix@%$exec_prefix%g
1287
s%@prefix@%$prefix%g
1288
s%@program_transform_name@%$program_transform_name%g
1289
s%@bindir@%$bindir%g
1290
s%@sbindir@%$sbindir%g
1291
s%@libexecdir@%$libexecdir%g
1292
s%@datadir@%$datadir%g
1293
s%@sysconfdir@%$sysconfdir%g
1294
s%@sharedstatedir@%$sharedstatedir%g
1295
s%@localstatedir@%$localstatedir%g
1296
s%@libdir@%$libdir%g
1297
s%@includedir@%$includedir%g
1298
s%@oldincludedir@%$oldincludedir%g
1299
s%@infodir@%$infodir%g
1300
s%@mandir@%$mandir%g
1303
s%@unix_ldflags@%$unix_ldflags%g
1304
s%@unix_cflags@%$unix_cflags%g
1305
s%@targetname@%$targetname%g
1310
cat >> $CONFIG_STATUS <<\EOF
1312
# Split the substitutions into bite-sized pieces for seds with
1313
# small command number limits, like on Digital OSF/1 and HP-UX.
1314
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1315
ac_file=1 # Number of current file.
1316
ac_beg=1 # First line for current file.
1317
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1320
while $ac_more_lines; do
1321
if test $ac_beg -gt 1; then
1322
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1324
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1326
if test ! -s conftest.s$ac_file; then
1328
rm -f conftest.s$ac_file
1330
if test -z "$ac_sed_cmds"; then
1331
ac_sed_cmds="sed -f conftest.s$ac_file"
1333
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1335
ac_file=`expr $ac_file + 1`
1337
ac_end=`expr $ac_end + $ac_max_sed_cmds`
4205
cat >>$CONFIG_STATUS <<\_ACEOF
4207
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4208
s,@configure_input@,$configure_input,;t t
4209
s,@srcdir@,$ac_srcdir,;t t
4210
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4211
s,@top_srcdir@,$ac_top_srcdir,;t t
4212
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4213
s,@builddir@,$ac_builddir,;t t
4214
s,@abs_builddir@,$ac_abs_builddir,;t t
4215
s,@top_builddir@,$ac_top_builddir,;t t
4216
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4217
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4219
if test x"$ac_file" != x-; then
4220
mv $tmp/out $ac_file
1340
if test -z "$ac_sed_cmds"; then
1345
cat >> $CONFIG_STATUS <<EOF
1347
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1349
cat >> $CONFIG_STATUS <<\EOF
1350
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1351
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1353
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1354
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1355
*) ac_file_in="${ac_file}.in" ;;
1358
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1360
# Remove last slash and all that follows it. Not all systems have dirname.
1361
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1362
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1363
# The file is in a subdirectory.
1364
test ! -d "$ac_dir" && mkdir "$ac_dir"
1365
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1366
# A "../" for each directory in $ac_dir_suffix.
1367
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1369
ac_dir_suffix= ac_dots=
1372
case "$ac_given_srcdir" in
1374
if test -z "$ac_dots"; then top_srcdir=.
1375
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1376
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1378
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1379
top_srcdir="$ac_dots$ac_given_srcdir" ;;
1383
echo creating "$ac_file"
1385
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1387
*Makefile*) ac_comsub="1i\\
1388
# $configure_input" ;;
1392
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1394
s%@configure_input@%$configure_input%g
1395
s%@srcdir@%$srcdir%g
1396
s%@top_srcdir@%$top_srcdir%g
1397
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4228
cat >>$CONFIG_STATUS <<\_ACEOF
4231
# CONFIG_HEADER section.
1401
4234
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1402
4235
# NAME is the cpp macro being defined and VALUE is the value it is being given.
1404
4237
# ac_d sets the value in "#define NAME VALUE" lines.
1405
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1406
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1409
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1410
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1411
ac_uB='\([ ]\)%\1#\2define\3'
4238
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4239
ac_dB='[ ].*$,\1#\2'
4242
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4243
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4244
ac_uB='$,\1#\2define\3'
1414
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1415
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1416
ac_eB='$%\1#\2define\3'
1420
if test "${CONFIG_HEADERS+set}" != set; then
1422
cat >> $CONFIG_STATUS <<EOF
1423
CONFIG_HEADERS="config.h"
1425
cat >> $CONFIG_STATUS <<\EOF
1427
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4248
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1428
4249
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1430
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1431
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1432
*) ac_file_in="${ac_file}.in" ;;
4251
- | *:- | *:-:* ) # input from stdin
4253
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4254
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4255
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4256
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4257
* ) ac_file_in=$ac_file.in ;;
1435
echo creating $ac_file
1437
rm -f conftest.frag conftest.in conftest.out
1438
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1439
cat $ac_file_inputs > conftest.in
1443
# Transform confdefs.h into a sed script conftest.vals that substitutes
1444
# the proper values into config.h.in to produce config.h. And first:
1445
# Protect against being on the right side of a sed subst in config.status.
1446
# Protect against being in an unquoted here document in config.status.
1448
cat > conftest.hdr <<\EOF
1451
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1455
sed -n -f conftest.hdr confdefs.h > conftest.vals
4260
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4261
echo "$as_me: creating $ac_file" >&6;}
4263
# First look for the input files in the build tree, otherwise in the
4265
ac_file_inputs=`IFS=:
4266
for f in $ac_file_in; do
4268
-) echo $tmp/stdin ;;
4270
# Absolute (can't be DOS-style, as IFS=:)
4271
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4272
echo "$as_me: error: cannot find input file: $f" >&2;}
4273
{ (exit 1); exit 1; }; }
4274
# Do quote $f, to prevent DOS paths from being IFS'd.
4277
if test -f "$f"; then
4280
elif test -f "$srcdir/$f"; then
4285
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4286
echo "$as_me: error: cannot find input file: $f" >&2;}
4287
{ (exit 1); exit 1; }; }
4290
done` || { (exit 1); exit 1; }
4291
# Remove the trailing spaces.
4292
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4296
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4297
# `conftest.undefs', that substitutes the proper values into
4298
# config.h.in to produce config.h. The first handles `#define'
4299
# templates, and the second `#undef' templates.
4300
# And first: Protect against being on the right side of a sed subst in
4301
# config.status. Protect against being in an unquoted here document
4303
rm -f conftest.defines conftest.undefs
4304
# Using a here document instead of a string reduces the quoting nightmare.
4305
# Putting comments in sed scripts is not portable.
4307
# `end' is used to avoid that the second main sed command (meant for
4308
# 0-ary CPP macros) applies to n-ary macro definitions.
4309
# See the Autoconf documentation for `clear'.
4310
cat >confdef2sed.sed <<\_ACEOF
4315
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4317
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4320
# If some macros were called several times there might be several times
4321
# the same #defines, which is useless. Nevertheless, we may not want to
4322
# sort them, since we want the *last* AC-DEFINE to be honored.
4323
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4324
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4325
rm -f confdef2sed.sed
1458
4327
# This sed command replaces #undef with comments. This is necessary, for
1459
4328
# example, in the case of _POSIX_SOURCE, which is predefined and required
1460
4329
# on some systems where configure will not decide to define it.
1461
cat >> conftest.vals <<\EOF
1462
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1465
# Break up conftest.vals because some shells have a limit on
1466
# the size of here documents, and old seds have small limits too.
1471
ac_lines=`grep -c . conftest.vals`
1472
# grep -c gives empty output for an empty file on some AIX systems.
1473
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1474
# Write a limited-size here document to conftest.frag.
1475
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1476
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1478
sed -f conftest.frag conftest.in > conftest.out
1480
mv conftest.out conftest.in
1482
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1484
mv conftest.tail conftest.vals
1488
cat >> $CONFIG_STATUS <<\EOF
1489
rm -f conftest.frag conftest.h
1490
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1491
cat conftest.in >> conftest.h
1493
if cmp -s $ac_file conftest.h 2>/dev/null; then
1494
echo "$ac_file is unchanged"
1497
# Remove last slash and all that follows it. Not all systems have dirname.
1498
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1499
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1500
# The file is in a subdirectory.
1501
test ! -d "$ac_dir" && mkdir "$ac_dir"
4330
cat >>conftest.undefs <<\_ACEOF
4331
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4334
# Break up conftest.defines because some shells have a limit on the size
4335
# of here documents, and old seds have small limits too (100 cmds).
4336
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4337
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4338
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4339
echo ' :' >>$CONFIG_STATUS
4341
while grep . conftest.defines >/dev/null
4343
# Write a limited-size here document to $tmp/defines.sed.
4344
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4345
# Speed up: don't consider the non `#define' lines.
4346
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4347
# Work around the forget-to-reset-the-flag bug.
4348
echo 't clr' >>$CONFIG_STATUS
4349
echo ': clr' >>$CONFIG_STATUS
4350
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4352
sed -f $tmp/defines.sed $tmp/in >$tmp/out
4356
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4357
rm -f conftest.defines
4358
mv conftest.tail conftest.defines
4360
rm -f conftest.defines
4361
echo ' fi # grep' >>$CONFIG_STATUS
4362
echo >>$CONFIG_STATUS
4364
# Break up conftest.undefs because some shells have a limit on the size
4365
# of here documents, and old seds have small limits too (100 cmds).
4366
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4368
while grep . conftest.undefs >/dev/null
4370
# Write a limited-size here document to $tmp/undefs.sed.
4371
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4372
# Speed up: don't consider the non `#undef'
4373
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4374
# Work around the forget-to-reset-the-flag bug.
4375
echo 't clr' >>$CONFIG_STATUS
4376
echo ': clr' >>$CONFIG_STATUS
4377
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4379
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4383
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4384
rm -f conftest.undefs
4385
mv conftest.tail conftest.undefs
4387
rm -f conftest.undefs
4389
cat >>$CONFIG_STATUS <<\_ACEOF
4390
# Let's still pretend it is `configure' which instantiates (i.e., don't
4391
# use $as_me), people would be surprised to read:
4392
# /* config.h. Generated by config.status. */
4393
if test x"$ac_file" = x-; then
4394
echo "/* Generated by configure. */" >$tmp/config.h
4396
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4398
cat $tmp/in >>$tmp/config.h
4400
if test x"$ac_file" != x-; then
4401
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4402
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4403
echo "$as_me: $ac_file is unchanged" >&6;}
4405
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4406
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4407
X"$ac_file" : 'X\(//\)[^/]' \| \
4408
X"$ac_file" : 'X\(//\)$' \| \
4409
X"$ac_file" : 'X\(/\)' \| \
4410
. : '\(.\)' 2>/dev/null ||
4412
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4413
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4414
/^X\(\/\/\)$/{ s//\1/; q; }
4415
/^X\(\/\).*/{ s//\1/; q; }
4417
{ if $as_mkdir_p; then
4422
while test ! -d "$as_dir"; do
4423
as_dirs="$as_dir $as_dirs"
4424
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4425
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4426
X"$as_dir" : 'X\(//\)[^/]' \| \
4427
X"$as_dir" : 'X\(//\)$' \| \
4428
X"$as_dir" : 'X\(/\)' \| \
4429
. : '\(.\)' 2>/dev/null ||
4431
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4432
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4433
/^X\(\/\/\)$/{ s//\1/; q; }
4434
/^X\(\/\).*/{ s//\1/; q; }
4437
test ! -n "$as_dirs" || mkdir $as_dirs
4438
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4439
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4440
{ (exit 1); exit 1; }; }; }
4443
mv $tmp/config.h $ac_file
1504
mv conftest.h $ac_file
1509
cat >> $CONFIG_STATUS <<EOF
1512
cat >> $CONFIG_STATUS <<\EOF
4452
cat >>$CONFIG_STATUS <<\_ACEOF
4454
{ (exit 0); exit 0; }
1516
4456
chmod +x $CONFIG_STATUS
1517
rm -fr confdefs* $ac_clean_files
1518
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4457
ac_clean_files=$ac_clean_files_save
4460
# configure is writing to config.log, and then calls config.status.
4461
# config.status does its own redirection, appending to config.log.
4462
# Unfortunately, on DOS this fails, as config.log is still kept open
4463
# by configure, so config.status won't be able to write to it; its
4464
# output is simply discarded. So we exec the FD to /dev/null,
4465
# effectively closing config.log, so it can be properly (re)opened and
4466
# appended to by config.status. When coming back to configure, we
4467
# need to make the FD available again.
4468
if test "$no_create" != yes; then
4470
ac_config_status_args=
4471
test "$silent" = yes &&
4472
ac_config_status_args="$ac_config_status_args --quiet"
4474
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4476
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
4477
# would make configure fail if this is the last instruction.
4478
$ac_cs_success || { (exit 1); exit 1; }