475
519
if test ! -r $srcdir/$ac_unique_file; then
476
520
if test "$ac_srcdir_defaulted" = yes; then
477
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521
{ echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522
{ (exit 1); exit 1; }; }
479
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524
{ echo "$as_me: error: cannot find sources in $srcdir" >&2
525
{ (exit 1); exit 1; }; }
528
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529
ac_env_build_alias_set=${build_alias+set}
530
ac_env_build_alias_value=$build_alias
531
ac_cv_env_build_alias_set=${build_alias+set}
532
ac_cv_env_build_alias_value=$build_alias
533
ac_env_host_alias_set=${host_alias+set}
534
ac_env_host_alias_value=$host_alias
535
ac_cv_env_host_alias_set=${host_alias+set}
536
ac_cv_env_host_alias_value=$host_alias
537
ac_env_target_alias_set=${target_alias+set}
538
ac_env_target_alias_value=$target_alias
539
ac_cv_env_target_alias_set=${target_alias+set}
540
ac_cv_env_target_alias_value=$target_alias
541
ac_env_CC_set=${CC+set}
543
ac_cv_env_CC_set=${CC+set}
544
ac_cv_env_CC_value=$CC
545
ac_env_CFLAGS_set=${CFLAGS+set}
546
ac_env_CFLAGS_value=$CFLAGS
547
ac_cv_env_CFLAGS_set=${CFLAGS+set}
548
ac_cv_env_CFLAGS_value=$CFLAGS
549
ac_env_LDFLAGS_set=${LDFLAGS+set}
550
ac_env_LDFLAGS_value=$LDFLAGS
551
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552
ac_cv_env_LDFLAGS_value=$LDFLAGS
553
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554
ac_env_CPPFLAGS_value=$CPPFLAGS
555
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557
ac_env_CPP_set=${CPP+set}
558
ac_env_CPP_value=$CPP
559
ac_cv_env_CPP_set=${CPP+set}
560
ac_cv_env_CPP_value=$CPP
563
# Report the --help message.
565
if test "$ac_init_help" = "long"; then
566
# Omit some internal or obsolete options to make the list less imposing.
567
# This message is too long to be a string in the A/UX 3.1 sh.
569
\`configure' configures this package to adapt to many kinds of systems.
571
Usage: $0 [OPTION]... [VAR=VALUE]...
573
To assign environment variables (e.g., CC, CFLAGS...), specify them as
574
VAR=VALUE. See below for descriptions of some of the useful variables.
576
Defaults for the options are specified in brackets.
579
-h, --help display this help and exit
580
--help=short display options specific to this package
581
--help=recursive display the short help of all the included packages
582
-V, --version display version information and exit
583
-q, --quiet, --silent do not print \`checking...' messages
584
--cache-file=FILE cache test results in FILE [disabled]
585
-C, --config-cache alias for \`--cache-file=config.cache'
586
-n, --no-create do not create output files
587
--srcdir=DIR find the sources in DIR [configure dir or \`..']
592
Installation directories:
593
--prefix=PREFIX install architecture-independent files in PREFIX
595
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598
By default, \`make install' will install all the files in
599
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
600
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
601
for instance \`--prefix=\$HOME'.
603
For better control, use the options below.
605
Fine tuning of the installation directories:
606
--bindir=DIR user executables [EPREFIX/bin]
607
--sbindir=DIR system admin executables [EPREFIX/sbin]
608
--libexecdir=DIR program executables [EPREFIX/libexec]
609
--datadir=DIR read-only architecture-independent data [PREFIX/share]
610
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
611
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
612
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
613
--libdir=DIR object code libraries [EPREFIX/lib]
614
--includedir=DIR C header files [PREFIX/include]
615
--oldincludedir=DIR C header files for non-gcc [/usr/include]
616
--infodir=DIR info documentation [PREFIX/info]
617
--mandir=DIR man documentation [PREFIX/man]
624
if test -n "$ac_init_help"; then
629
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
630
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
633
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
634
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
636
--with-warnings test: turn on gcc warnings
637
--disable-echo display "compiling" commands
638
--enable-llib enable lint-library (llib) support
639
--with-trace use trace.c for memory-testing
640
--with-dbmalloc use Conor Cahill's dbmalloc library
641
--with-dmalloc use Gray Watson's dmalloc library
643
Some influential environment variables:
644
CC C compiler command
645
CFLAGS C compiler flags
646
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
647
nonstandard directory <lib dir>
648
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
649
headers in a nonstandard directory <include dir>
652
Use these variables to override the choices made by `configure' or to help
653
it to find libraries and programs with nonstandard names/locations.
658
if test "$ac_init_help" = "recursive"; then
659
# If there are subdirs, report their specific --help.
661
for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
663
# A "../" for each directory in /$ac_subdir.
664
ac_dots=`echo $ac_subdir |
665
sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
668
.) # No --srcdir option. We are building in place.
669
ac_sub_srcdir=$srcdir ;;
670
[\\/]* | ?:[\\/]* ) # Absolute path.
671
ac_sub_srcdir=$srcdir/$ac_subdir ;;
673
ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
676
# Check for guested configure; otherwise get Cygnus style configure.
677
if test -f $ac_sub_srcdir/configure.gnu; then
679
$SHELL $ac_sub_srcdir/configure.gnu --help=recursive
680
elif test -f $ac_sub_srcdir/configure; then
682
$SHELL $ac_sub_srcdir/configure --help=recursive
683
elif test -f $ac_sub_srcdir/configure.ac ||
684
test -f $ac_sub_srcdir/configure.in; then
688
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
694
test -n "$ac_init_help" && exit 0
695
if $ac_init_version; then
698
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
699
Free Software Foundation, Inc.
700
This configure script is free software; the Free Software Foundation
701
gives unlimited permission to copy, distribute and modify it.
707
This file contains any messages produced by compilers while
708
running configure, to aid debugging if configure makes a mistake.
710
It was created by $as_me, which was
711
generated by GNU Autoconf 2.52.20030208. Invocation command line was
722
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
723
uname -m = `(uname -m) 2>/dev/null || echo unknown`
724
uname -r = `(uname -r) 2>/dev/null || echo unknown`
725
uname -s = `(uname -s) 2>/dev/null || echo unknown`
726
uname -v = `(uname -v) 2>/dev/null || echo unknown`
728
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
729
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
731
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
732
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
733
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
734
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
735
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
736
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
737
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
751
# Keep a trace of the command line.
752
# Strip out --no-create and --no-recursion so they do not pile up.
753
# Also quote any args containing shell meta-characters.
759
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
760
| --no-cr | --no-c) ;;
761
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
762
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
763
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
764
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
765
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
767
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
770
# Get rid of the leading space.
773
# When interrupted or exit'd, cleanup temporary files, and complete
774
# config.log. We remove comments because anyway the quotes in there
775
# would cause problems or look ugly.
777
# Save into config.log some information that might help in debugging.
779
echo "## ----------------- ##" >&5
780
echo "## Cache variables. ##" >&5
781
echo "## ----------------- ##" >&5
783
# The following way of writing the cache mishandles newlines in values,
786
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
789
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
790
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
794
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
798
sed "/^$/d" confdefs.h >conftest.log
799
if test -s conftest.log; then
801
echo "## ------------ ##" >&5
802
echo "## confdefs.h. ##" >&5
803
echo "## ------------ ##" >&5
808
test "$ac_signal" != 0 &&
809
echo "$as_me: caught signal $ac_signal" >&5
810
echo "$as_me: exit $exit_status" >&5
811
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
814
for ac_signal in 1 2 13 15; do
815
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
819
# confdefs.h avoids OS command line length limits that DEFS can exceed.
820
rm -rf conftest* confdefs.h
821
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
824
# Let the site file select an alternate cache file if it wants to.
484
825
# Prefer explicitly selected file to automatically selected ones.
485
826
if test -z "$CONFIG_SITE"; then
486
827
if test "x$prefix" != xNONE; then
492
833
for ac_site_file in $CONFIG_SITE; do
493
834
if test -r "$ac_site_file"; then
494
echo "loading site script $ac_site_file"
835
{ echo "$as_me:835: loading site script $ac_site_file" >&5
836
echo "$as_me: loading site script $ac_site_file" >&6;}
837
cat "$ac_site_file" >&5
495
838
. "$ac_site_file"
499
842
if test -r "$cache_file"; then
500
echo "loading cache $cache_file"
503
echo "creating cache $cache_file"
508
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
509
ac_cpp='$CPP $CPPFLAGS'
510
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
511
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
512
cross_compiling=$ac_cv_prog_cc_cross
516
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525
ac_n= ac_c='\c' ac_t=
529
# Extract the first word of "gcc", so it can be a program name with args.
843
# Some versions of bash will fail to source /dev/null (special
844
# files actually), so we avoid doing that.
845
if test -f "$cache_file"; then
846
{ echo "$as_me:846: loading cache $cache_file" >&5
847
echo "$as_me: loading cache $cache_file" >&6;}
849
[\\/]* | ?:[\\/]* ) . $cache_file;;
854
{ echo "$as_me:854: creating cache $cache_file" >&5
855
echo "$as_me: creating cache $cache_file" >&6;}
859
# Check that the precious variables saved in the cache have kept the same
861
ac_cache_corrupted=false
862
for ac_var in `(set) 2>&1 |
863
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
864
eval ac_old_set=\$ac_cv_env_${ac_var}_set
865
eval ac_new_set=\$ac_env_${ac_var}_set
866
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
867
eval ac_new_val="\$ac_env_${ac_var}_value"
868
case $ac_old_set,$ac_new_set in
870
{ echo "$as_me:870: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
871
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
872
ac_cache_corrupted=: ;;
874
{ echo "$as_me:874: error: \`$ac_var' was not set in the previous run" >&5
875
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
876
ac_cache_corrupted=: ;;
879
if test "x$ac_old_val" != "x$ac_new_val"; then
880
{ echo "$as_me:880: error: \`$ac_var' has changed since the previous run:" >&5
881
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
882
{ echo "$as_me:882: former value: $ac_old_val" >&5
883
echo "$as_me: former value: $ac_old_val" >&2;}
884
{ echo "$as_me:884: current value: $ac_new_val" >&5
885
echo "$as_me: current value: $ac_new_val" >&2;}
889
# Pass precious variables to config.status. It doesn't matter if
890
# we pass some twice (in addition to the command line arguments).
891
if test "$ac_new_set" = set; then
893
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
894
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
895
ac_configure_args="$ac_configure_args '$ac_arg'"
897
*) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
902
if $ac_cache_corrupted; then
903
{ echo "$as_me:903: error: changes in the environment can compromise the build" >&5
904
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
905
{ { echo "$as_me:905: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
906
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
907
{ (exit 1); exit 1; }; }
911
ac_cpp='$CPP $CPPFLAGS'
912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
916
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
917
*c*,-n*) ECHO_N= ECHO_C='
919
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
920
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
922
echo "#! $SHELL" >conftest.sh
923
echo "exit 0" >>conftest.sh
925
if { (echo "$as_me:925: PATH=\".;.\"; conftest.sh") >&5
926
(PATH=".;."; conftest.sh) 2>&5
928
echo "$as_me:928: \$? = $ac_status" >&5
929
(exit $ac_status); }; then
930
ac_path_separator=';'
934
PATH_SEPARATOR="$ac_path_separator"
937
ac_config_headers="$ac_config_headers config.h:config_h.in"
940
ac_cpp='$CPP $CPPFLAGS'
941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
944
if test -n "$ac_tool_prefix"; then
945
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
946
set dummy ${ac_tool_prefix}gcc; ac_word=$2
947
echo "$as_me:947: checking for $ac_word" >&5
948
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
949
if test "${ac_cv_prog_CC+set}" = set; then
950
echo $ECHO_N "(cached) $ECHO_C" >&6
952
if test -n "$CC"; then
953
ac_cv_prog_CC="$CC" # Let the user override the test.
955
ac_save_IFS=$IFS; IFS=$ac_path_separator
957
for ac_dir in $ac_dummy; do
959
test -z "$ac_dir" && ac_dir=.
960
$as_executable_p "$ac_dir/$ac_word" || continue
961
ac_cv_prog_CC="${ac_tool_prefix}gcc"
962
echo "$as_me:962: found $ac_dir/$ac_word" >&5
969
if test -n "$CC"; then
970
echo "$as_me:970: result: $CC" >&5
971
echo "${ECHO_T}$CC" >&6
973
echo "$as_me:973: result: no" >&5
974
echo "${ECHO_T}no" >&6
978
if test -z "$ac_cv_prog_CC"; then
980
# Extract the first word of "gcc", so it can be a program name with args.
530
981
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
982
echo "$as_me:982: checking for $ac_word" >&5
983
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
984
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
985
echo $ECHO_N "(cached) $ECHO_C" >&6
987
if test -n "$ac_ct_CC"; then
988
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
990
ac_save_IFS=$IFS; IFS=$ac_path_separator
992
for ac_dir in $ac_dummy; do
994
test -z "$ac_dir" && ac_dir=.
995
$as_executable_p "$ac_dir/$ac_word" || continue
996
ac_cv_prog_ac_ct_CC="gcc"
997
echo "$as_me:997: found $ac_dir/$ac_word" >&5
1003
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1004
if test -n "$ac_ct_CC"; then
1005
echo "$as_me:1005: result: $ac_ct_CC" >&5
1006
echo "${ECHO_T}$ac_ct_CC" >&6
1008
echo "$as_me:1008: result: no" >&5
1009
echo "${ECHO_T}no" >&6
1017
if test -z "$CC"; then
1018
if test -n "$ac_tool_prefix"; then
1019
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1020
set dummy ${ac_tool_prefix}cc; ac_word=$2
1021
echo "$as_me:1021: checking for $ac_word" >&5
1022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1023
if test "${ac_cv_prog_CC+set}" = set; then
1024
echo $ECHO_N "(cached) $ECHO_C" >&6
536
1026
if test -n "$CC"; then
537
1027
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
1029
ac_save_IFS=$IFS; IFS=$ac_path_separator
1031
for ac_dir in $ac_dummy; do
1033
test -z "$ac_dir" && ac_dir=.
1034
$as_executable_p "$ac_dir/$ac_word" || continue
1035
ac_cv_prog_CC="${ac_tool_prefix}cc"
1036
echo "$as_me:1036: found $ac_dir/$ac_word" >&5
552
1043
if test -n "$CC"; then
553
echo "$ac_t""$CC" 1>&6
555
echo "$ac_t""no" 1>&6
1044
echo "$as_me:1044: result: $CC" >&5
1045
echo "${ECHO_T}$CC" >&6
1047
echo "$as_me:1047: result: no" >&5
1048
echo "${ECHO_T}no" >&6
1052
if test -z "$ac_cv_prog_CC"; then
1054
# Extract the first word of "cc", so it can be a program name with args.
1055
set dummy cc; ac_word=$2
1056
echo "$as_me:1056: checking for $ac_word" >&5
1057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1058
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1059
echo $ECHO_N "(cached) $ECHO_C" >&6
1061
if test -n "$ac_ct_CC"; then
1062
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1064
ac_save_IFS=$IFS; IFS=$ac_path_separator
1066
for ac_dir in $ac_dummy; do
1068
test -z "$ac_dir" && ac_dir=.
1069
$as_executable_p "$ac_dir/$ac_word" || continue
1070
ac_cv_prog_ac_ct_CC="cc"
1071
echo "$as_me:1071: found $ac_dir/$ac_word" >&5
1077
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1078
if test -n "$ac_ct_CC"; then
1079
echo "$as_me:1079: result: $ac_ct_CC" >&5
1080
echo "${ECHO_T}$ac_ct_CC" >&6
1082
echo "$as_me:1082: result: no" >&5
1083
echo "${ECHO_T}no" >&6
558
1092
if test -z "$CC"; then
559
1093
# Extract the first word of "cc", so it can be a program name with args.
560
1094
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
1095
echo "$as_me:1095: checking for $ac_word" >&5
1096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1097
if test "${ac_cv_prog_CC+set}" = set; then
1098
echo $ECHO_N "(cached) $ECHO_C" >&6
566
1100
if test -n "$CC"; then
567
1101
ac_cv_prog_CC="$CC" # Let the user override the test.
569
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
570
1103
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
1104
ac_save_IFS=$IFS; IFS=$ac_path_separator
1106
for ac_dir in $ac_dummy; do
1108
test -z "$ac_dir" && ac_dir=.
1109
$as_executable_p "$ac_dir/$ac_word" || continue
1110
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1111
ac_prog_rejected=yes
1115
echo "$as_me:1115: found $ac_dir/$ac_word" >&5
584
1119
if test $ac_prog_rejected = yes; then
585
1120
# We found a bogon in the path, so make sure we never use it.
586
1121
set dummy $ac_cv_prog_CC
588
if test $# -gt 0; then
1123
if test $# != 0; then
589
1124
# We chose a different compiler from the bogus one.
590
1125
# However, it has the same basename, so the bogon will be chosen
591
1126
# first if we set CC to just the basename; use the full file name.
593
set dummy "$ac_dir/$ac_word" "$@"
1128
set dummy "$ac_dir/$ac_word" ${1+"$@"}
595
1130
ac_cv_prog_CC="$@"
601
1136
if test -n "$CC"; then
602
echo "$ac_t""$CC" 1>&6
1137
echo "$as_me:1137: result: $CC" >&5
1138
echo "${ECHO_T}$CC" >&6
604
echo "$ac_t""no" 1>&6
1140
echo "$as_me:1140: result: no" >&5
1141
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
1145
if test -z "$CC"; then
1146
if test -n "$ac_tool_prefix"; then
1149
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1150
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1151
echo "$as_me:1151: checking for $ac_word" >&5
1152
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1153
if test "${ac_cv_prog_CC+set}" = set; then
1154
echo $ECHO_N "(cached) $ECHO_C" >&6
617
1156
if test -n "$CC"; then
618
1157
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
1159
ac_save_IFS=$IFS; IFS=$ac_path_separator
1161
for ac_dir in $ac_dummy; do
1163
test -z "$ac_dir" && ac_dir=.
1164
$as_executable_p "$ac_dir/$ac_word" || continue
1165
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1166
echo "$as_me:1166: found $ac_dir/$ac_word" >&5
1173
if test -n "$CC"; then
1174
echo "$as_me:1174: result: $CC" >&5
1175
echo "${ECHO_T}$CC" >&6
1177
echo "$as_me:1177: result: no" >&5
1178
echo "${ECHO_T}no" >&6
1181
test -n "$CC" && break
633
if test -n "$CC"; then
634
echo "$ac_t""$CC" 1>&6
636
echo "$ac_t""no" 1>&6
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"
1184
if test -z "$CC"; then
1188
# Extract the first word of "$ac_prog", so it can be a program name with args.
1189
set dummy $ac_prog; ac_word=$2
1190
echo "$as_me:1190: checking for $ac_word" >&5
1191
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1192
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1193
echo $ECHO_N "(cached) $ECHO_C" >&6
1195
if test -n "$ac_ct_CC"; then
1196
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1198
ac_save_IFS=$IFS; IFS=$ac_path_separator
1200
for ac_dir in $ac_dummy; do
1202
test -z "$ac_dir" && ac_dir=.
1203
$as_executable_p "$ac_dir/$ac_word" || continue
1204
ac_cv_prog_ac_ct_CC="$ac_prog"
1205
echo "$as_me:1205: found $ac_dir/$ac_word" >&5
1211
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1212
if test -n "$ac_ct_CC"; then
1213
echo "$as_me:1213: result: $ac_ct_CC" >&5
1214
echo "${ECHO_T}$ac_ct_CC" >&6
1216
echo "$as_me:1216: result: no" >&5
1217
echo "${ECHO_T}no" >&6
1220
test -n "$ac_ct_CC" && break
1228
test -z "$CC" && { { echo "$as_me:1228: error: no acceptable cc found in \$PATH" >&5
1229
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1230
{ (exit 1); exit 1; }; }
1232
# Provide some information about the compiler.
1233
echo "$as_me:1233:" \
1234
"checking for C compiler version" >&5
1235
ac_compiler=`set X $ac_compile; echo $2`
1236
{ (eval echo "$as_me:1236: \"$ac_compiler --version </dev/null >&5\"") >&5
1237
(eval $ac_compiler --version </dev/null >&5) 2>&5
1239
echo "$as_me:1239: \$? = $ac_status" >&5
1240
(exit $ac_status); }
1241
{ (eval echo "$as_me:1241: \"$ac_compiler -v </dev/null >&5\"") >&5
1242
(eval $ac_compiler -v </dev/null >&5) 2>&5
1244
echo "$as_me:1244: \$? = $ac_status" >&5
1245
(exit $ac_status); }
1246
{ (eval echo "$as_me:1246: \"$ac_compiler -V </dev/null >&5\"") >&5
1247
(eval $ac_compiler -V </dev/null >&5) 2>&5
1249
echo "$as_me:1249: \$? = $ac_status" >&5
1250
(exit $ac_status); }
1252
cat >conftest.$ac_ext <<_ACEOF
1253
#line 1253 "configure"
657
1254
#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
1264
ac_clean_files_save=$ac_clean_files
1265
ac_clean_files="$ac_clean_files a.out a.exe"
1266
# Try to create an executable without -o first, disregard a.out.
1267
# It will help us diagnose broken compilers, and finding out an intuition
1269
echo "$as_me:1269: checking for C compiler default output" >&5
1270
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1271
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1272
if { (eval echo "$as_me:1272: \"$ac_link_default\"") >&5
1273
(eval $ac_link_default) 2>&5
1275
echo "$as_me:1275: \$? = $ac_status" >&5
1276
(exit $ac_status); }; then
1277
# Find the output, starting from the most likely. This scheme is
1278
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1280
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1281
ls a.out conftest 2>/dev/null;
1282
ls a.* conftest.* 2>/dev/null`; do
1284
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1285
a.out ) # We found the default executable, but exeext='' is most
1288
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1289
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1296
echo "$as_me: failed program was:" >&5
1297
cat conftest.$ac_ext >&5
1298
{ { echo "$as_me:1298: error: C compiler cannot create executables" >&5
1299
echo "$as_me: error: C compiler cannot create executables" >&2;}
1300
{ (exit 77); exit 77; }; }
1303
ac_exeext=$ac_cv_exeext
1304
echo "$as_me:1304: result: $ac_file" >&5
1305
echo "${ECHO_T}$ac_file" >&6
1307
# Check the compiler produces executables we can run. If not, either
1308
# the compiler is broken, or we cross compile.
1309
echo "$as_me:1309: checking whether the C compiler works" >&5
1310
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1311
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1312
# If not cross compiling, check that we can run a simple program.
1313
if test "$cross_compiling" != yes; then
1314
if { ac_try='./$ac_file'
1315
{ (eval echo "$as_me:1315: \"$ac_try\"") >&5
1318
echo "$as_me:1318: \$? = $ac_status" >&5
1319
(exit $ac_status); }; }; then
667
ac_cv_prog_cc_cross=yes
1322
if test "$cross_compiling" = maybe; then
1325
{ { echo "$as_me:1325: error: cannot run C compiled programs.
1326
If you meant to cross compile, use \`--host'." >&5
1327
echo "$as_me: error: cannot run C compiled programs.
1328
If you meant to cross compile, use \`--host'." >&2;}
1329
{ (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
1333
echo "$as_me:1333: result: yes" >&5
1334
echo "${ECHO_T}yes" >&6
1336
rm -f a.out a.exe conftest$ac_cv_exeext
1337
ac_clean_files=$ac_clean_files_save
1338
# Check the compiler produces executables we can run. If not, either
1339
# the compiler is broken, or we cross compile.
1340
echo "$as_me:1340: checking whether we are cross compiling" >&5
1341
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1342
echo "$as_me:1342: result: $cross_compiling" >&5
1343
echo "${ECHO_T}$cross_compiling" >&6
1345
echo "$as_me:1345: checking for executable suffix" >&5
1346
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1347
if { (eval echo "$as_me:1347: \"$ac_link\"") >&5
1348
(eval $ac_link) 2>&5
1350
echo "$as_me:1350: \$? = $ac_status" >&5
1351
(exit $ac_status); }; then
1352
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1353
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1354
# work properly (i.e., refer to `conftest.exe'), while it won't with
1356
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1358
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1359
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1366
{ { echo "$as_me:1366: error: cannot compute EXEEXT: cannot compile and link" >&5
1367
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1368
{ (exit 1); exit 1; }; }
1371
rm -f conftest$ac_cv_exeext
1372
echo "$as_me:1372: result: $ac_cv_exeext" >&5
1373
echo "${ECHO_T}$ac_cv_exeext" >&6
1375
rm -f conftest.$ac_ext
1376
EXEEXT=$ac_cv_exeext
1378
echo "$as_me:1378: checking for object suffix" >&5
1379
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1380
if test "${ac_cv_objext+set}" = set; then
1381
echo $ECHO_N "(cached) $ECHO_C" >&6
1383
cat >conftest.$ac_ext <<_ACEOF
1384
#line 1384 "configure"
1385
#include "confdefs.h"
1395
rm -f conftest.o conftest.obj
1396
if { (eval echo "$as_me:1396: \"$ac_compile\"") >&5
1397
(eval $ac_compile) 2>&5
1399
echo "$as_me:1399: \$? = $ac_status" >&5
1400
(exit $ac_status); }; then
1401
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1403
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1404
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1409
echo "$as_me: failed program was:" >&5
1410
cat conftest.$ac_ext >&5
1411
{ { echo "$as_me:1411: error: cannot compute OBJEXT: cannot compile" >&5
1412
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1413
{ (exit 1); exit 1; }; }
1416
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1418
echo "$as_me:1418: result: $ac_cv_objext" >&5
1419
echo "${ECHO_T}$ac_cv_objext" >&6
1420
OBJEXT=$ac_cv_objext
1422
echo "$as_me:1422: checking whether we are using the GNU C compiler" >&5
1423
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1424
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1425
echo $ECHO_N "(cached) $ECHO_C" >&6
1427
cat >conftest.$ac_ext <<_ACEOF
1428
#line 1428 "configure"
1429
#include "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
1442
rm -f conftest.$ac_objext
1443
if { (eval echo "$as_me:1443: \"$ac_compile\"") >&5
1444
(eval $ac_compile) 2>&5
1446
echo "$as_me:1446: \$? = $ac_status" >&5
1447
(exit $ac_status); } &&
1448
{ ac_try='test -s conftest.$ac_objext'
1449
{ (eval echo "$as_me:1449: \"$ac_try\"") >&5
1452
echo "$as_me:1452: \$? = $ac_status" >&5
1453
(exit $ac_status); }; }; then
1456
echo "$as_me: failed program was:" >&5
1457
cat conftest.$ac_ext >&5
1460
rm -f conftest.$ac_objext conftest.$ac_ext
1461
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1464
echo "$as_me:1464: result: $ac_cv_c_compiler_gnu" >&5
1465
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1466
GCC=`test $ac_compiler_gnu = yes && echo yes`
1467
ac_test_CFLAGS=${CFLAGS+set}
1468
ac_save_CFLAGS=$CFLAGS
1470
echo "$as_me:1470: checking whether $CC accepts -g" >&5
1471
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1472
if test "${ac_cv_prog_cc_g+set}" = set; then
1473
echo $ECHO_N "(cached) $ECHO_C" >&6
1475
cat >conftest.$ac_ext <<_ACEOF
1476
#line 1476 "configure"
1477
#include "confdefs.h"
1487
rm -f conftest.$ac_objext
1488
if { (eval echo "$as_me:1488: \"$ac_compile\"") >&5
1489
(eval $ac_compile) 2>&5
1491
echo "$as_me:1491: \$? = $ac_status" >&5
1492
(exit $ac_status); } &&
1493
{ ac_try='test -s conftest.$ac_objext'
1494
{ (eval echo "$as_me:1494: \"$ac_try\"") >&5
1497
echo "$as_me:1497: \$? = $ac_status" >&5
1498
(exit $ac_status); }; }; then
726
1499
ac_cv_prog_cc_g=yes
734
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1501
echo "$as_me: failed program was:" >&5
1502
cat conftest.$ac_ext >&5
1505
rm -f conftest.$ac_objext conftest.$ac_ext
1507
echo "$as_me:1507: result: $ac_cv_prog_cc_g" >&5
1508
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
735
1509
if test "$ac_test_CFLAGS" = set; then
736
CFLAGS="$ac_save_CFLAGS"
1510
CFLAGS=$ac_save_CFLAGS
737
1511
elif test $ac_cv_prog_cc_g = yes; then
738
1512
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
1524
# Some people use a C++ compiler to compile C. Since we use `exit',
1525
# in C++ we need to declare it. In case someone uses the same compiler
1526
# for both compiling C and C++ we need to have the C++ compiler decide
1527
# the declaration of exit, since it's the most demanding environment.
1528
cat >conftest.$ac_ext <<_ACEOF
1533
rm -f conftest.$ac_objext
1534
if { (eval echo "$as_me:1534: \"$ac_compile\"") >&5
1535
(eval $ac_compile) 2>&5
1537
echo "$as_me:1537: \$? = $ac_status" >&5
1538
(exit $ac_status); } &&
1539
{ ac_try='test -s conftest.$ac_objext'
1540
{ (eval echo "$as_me:1540: \"$ac_try\"") >&5
1543
echo "$as_me:1543: \$? = $ac_status" >&5
1544
(exit $ac_status); }; }; then
1545
for ac_declaration in \
1547
'#include <stdlib.h>' \
1548
'extern "C" void std::exit (int) throw (); using std::exit;' \
1549
'extern "C" void std::exit (int); using std::exit;' \
1550
'extern "C" void exit (int) throw ();' \
1551
'extern "C" void exit (int);' \
1554
cat >conftest.$ac_ext <<_ACEOF
1555
#line 1555 "configure"
1556
#include "confdefs.h"
1567
rm -f conftest.$ac_objext
1568
if { (eval echo "$as_me:1568: \"$ac_compile\"") >&5
1569
(eval $ac_compile) 2>&5
1571
echo "$as_me:1571: \$? = $ac_status" >&5
1572
(exit $ac_status); } &&
1573
{ ac_try='test -s conftest.$ac_objext'
1574
{ (eval echo "$as_me:1574: \"$ac_try\"") >&5
1577
echo "$as_me:1577: \$? = $ac_status" >&5
1578
(exit $ac_status); }; }; then
1581
echo "$as_me: failed program was:" >&5
1582
cat conftest.$ac_ext >&5
1585
rm -f conftest.$ac_objext conftest.$ac_ext
1586
cat >conftest.$ac_ext <<_ACEOF
1587
#line 1587 "configure"
1588
#include "confdefs.h"
1598
rm -f conftest.$ac_objext
1599
if { (eval echo "$as_me:1599: \"$ac_compile\"") >&5
1600
(eval $ac_compile) 2>&5
1602
echo "$as_me:1602: \$? = $ac_status" >&5
1603
(exit $ac_status); } &&
1604
{ ac_try='test -s conftest.$ac_objext'
1605
{ (eval echo "$as_me:1605: \"$ac_try\"") >&5
1608
echo "$as_me:1608: \$? = $ac_status" >&5
1609
(exit $ac_status); }; }; then
1612
echo "$as_me: failed program was:" >&5
1613
cat conftest.$ac_ext >&5
1615
rm -f conftest.$ac_objext conftest.$ac_ext
1618
if test -n "$ac_declaration"; then
1619
echo '#ifdef __cplusplus' >>confdefs.h
1620
echo $ac_declaration >>confdefs.h
1621
echo '#endif' >>confdefs.h
1625
echo "$as_me: failed program was:" >&5
1626
cat conftest.$ac_ext >&5
1628
rm -f conftest.$ac_objext conftest.$ac_ext
1630
ac_cpp='$CPP $CPPFLAGS'
1631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1636
ac_cpp='$CPP $CPPFLAGS'
1637
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640
echo "$as_me:1640: checking how to run the C preprocessor" >&5
1641
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
753
1642
# On Suns, sometimes $CPP names a directory.
754
1643
if test -n "$CPP" && test -d "$CPP"; then
757
1646
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
831
# Extract the first word of "flex", so it can be a program name with args.
832
set dummy flex; ac_word=$2
833
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834
echo "configure:835: checking for $ac_word" >&5
835
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
836
echo $ac_n "(cached) $ac_c" 1>&6
1647
if test "${ac_cv_prog_CPP+set}" = set; then
1648
echo $ECHO_N "(cached) $ECHO_C" >&6
1650
# Double quotes because CPP needs to be expanded
1651
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1654
for ac_c_preproc_warn_flag in '' yes
1656
# Use a header file that comes with gcc, so configuring glibc
1657
# with a fresh cross-compiler works.
1658
# On the NeXT, cc -E runs the code through the compiler's parser,
1659
# not just through cpp. "Syntax error" is here to catch this case.
1660
cat >conftest.$ac_ext <<_ACEOF
1661
#line 1661 "configure"
1662
#include "confdefs.h"
1666
if { (eval echo "$as_me:1666: \"$ac_cpp conftest.$ac_ext\"") >&5
1667
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1669
egrep -v '^ *\+' conftest.er1 >conftest.err
1671
cat conftest.err >&5
1672
echo "$as_me:1672: \$? = $ac_status" >&5
1673
(exit $ac_status); } >/dev/null; then
1674
if test -s conftest.err; then
1675
ac_cpp_err=$ac_c_preproc_warn_flag
1682
if test -z "$ac_cpp_err"; then
1685
echo "$as_me: failed program was:" >&5
1686
cat conftest.$ac_ext >&5
1687
# Broken: fails on valid input.
1690
rm -f conftest.err conftest.$ac_ext
1692
# OK, works on sane cases. Now check whether non-existent headers
1693
# can be detected and how.
1694
cat >conftest.$ac_ext <<_ACEOF
1695
#line 1695 "configure"
1696
#include "confdefs.h"
1697
#include <ac_nonexistent.h>
1699
if { (eval echo "$as_me:1699: \"$ac_cpp conftest.$ac_ext\"") >&5
1700
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1702
egrep -v '^ *\+' conftest.er1 >conftest.err
1704
cat conftest.err >&5
1705
echo "$as_me:1705: \$? = $ac_status" >&5
1706
(exit $ac_status); } >/dev/null; then
1707
if test -s conftest.err; then
1708
ac_cpp_err=$ac_c_preproc_warn_flag
1715
if test -z "$ac_cpp_err"; then
1716
# Broken: success on invalid input.
1719
echo "$as_me: failed program was:" >&5
1720
cat conftest.$ac_ext >&5
1721
# Passes both tests.
1725
rm -f conftest.err conftest.$ac_ext
1728
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1729
rm -f conftest.err conftest.$ac_ext
1730
if $ac_preproc_ok; then
1742
echo "$as_me:1742: result: $CPP" >&5
1743
echo "${ECHO_T}$CPP" >&6
1745
for ac_c_preproc_warn_flag in '' yes
1747
# Use a header file that comes with gcc, so configuring glibc
1748
# with a fresh cross-compiler works.
1749
# On the NeXT, cc -E runs the code through the compiler's parser,
1750
# not just through cpp. "Syntax error" is here to catch this case.
1751
cat >conftest.$ac_ext <<_ACEOF
1752
#line 1752 "configure"
1753
#include "confdefs.h"
1757
if { (eval echo "$as_me:1757: \"$ac_cpp conftest.$ac_ext\"") >&5
1758
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1760
egrep -v '^ *\+' conftest.er1 >conftest.err
1762
cat conftest.err >&5
1763
echo "$as_me:1763: \$? = $ac_status" >&5
1764
(exit $ac_status); } >/dev/null; then
1765
if test -s conftest.err; then
1766
ac_cpp_err=$ac_c_preproc_warn_flag
1773
if test -z "$ac_cpp_err"; then
1776
echo "$as_me: failed program was:" >&5
1777
cat conftest.$ac_ext >&5
1778
# Broken: fails on valid input.
1781
rm -f conftest.err conftest.$ac_ext
1783
# OK, works on sane cases. Now check whether non-existent headers
1784
# can be detected and how.
1785
cat >conftest.$ac_ext <<_ACEOF
1786
#line 1786 "configure"
1787
#include "confdefs.h"
1788
#include <ac_nonexistent.h>
1790
if { (eval echo "$as_me:1790: \"$ac_cpp conftest.$ac_ext\"") >&5
1791
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1793
egrep -v '^ *\+' conftest.er1 >conftest.err
1795
cat conftest.err >&5
1796
echo "$as_me:1796: \$? = $ac_status" >&5
1797
(exit $ac_status); } >/dev/null; then
1798
if test -s conftest.err; then
1799
ac_cpp_err=$ac_c_preproc_warn_flag
1806
if test -z "$ac_cpp_err"; then
1807
# Broken: success on invalid input.
1810
echo "$as_me: failed program was:" >&5
1811
cat conftest.$ac_ext >&5
1812
# Passes both tests.
1816
rm -f conftest.err conftest.$ac_ext
1819
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1820
rm -f conftest.err conftest.$ac_ext
1821
if $ac_preproc_ok; then
1824
{ { echo "$as_me:1824: error: C preprocessor \"$CPP\" fails sanity check" >&5
1825
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1826
{ (exit 1); exit 1; }; }
1830
ac_cpp='$CPP $CPPFLAGS'
1831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835
for ac_prog in flex lex
1837
# Extract the first word of "$ac_prog", so it can be a program name with args.
1838
set dummy $ac_prog; ac_word=$2
1839
echo "$as_me:1839: checking for $ac_word" >&5
1840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841
if test "${ac_cv_prog_LEX+set}" = set; then
1842
echo $ECHO_N "(cached) $ECHO_C" >&6
838
1844
if test -n "$LEX"; then
839
1845
ac_cv_prog_LEX="$LEX" # Let the user override the test.
841
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843
for ac_dir in $ac_dummy; do
844
test -z "$ac_dir" && ac_dir=.
845
if test -f $ac_dir/$ac_word; then
846
ac_cv_prog_LEX="flex"
851
test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
854
LEX="$ac_cv_prog_LEX"
1847
ac_save_IFS=$IFS; IFS=$ac_path_separator
1849
for ac_dir in $ac_dummy; do
1851
test -z "$ac_dir" && ac_dir=.
1852
$as_executable_p "$ac_dir/$ac_word" || continue
1853
ac_cv_prog_LEX="$ac_prog"
1854
echo "$as_me:1854: found $ac_dir/$ac_word" >&5
855
1861
if test -n "$LEX"; then
856
echo "$ac_t""$LEX" 1>&6
1862
echo "$as_me:1862: result: $LEX" >&5
1863
echo "${ECHO_T}$LEX" >&6
858
echo "$ac_t""no" 1>&6
1865
echo "$as_me:1865: result: no" >&5
1866
echo "${ECHO_T}no" >&6
1869
test -n "$LEX" && break
1871
test -n "$LEX" || LEX=":"
861
1873
if test -z "$LEXLIB"
867
echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
868
echo "configure:869: checking for yywrap in -l$ac_lib" >&5
869
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
870
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
871
echo $ac_n "(cached) $ac_c" 1>&6
874
LIBS="-l$ac_lib $LIBS"
875
cat > conftest.$ac_ext <<EOF
876
#line 877 "configure"
877
#include "confdefs.h"
878
/* Override any gcc2 internal prototype to avoid an error. */
879
/* We use char because int might match the return type of a gcc2
880
builtin and then its argument prototype would still apply. */
1875
echo "$as_me:1875: checking for yywrap in -lfl" >&5
1876
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
1877
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
1878
echo $ECHO_N "(cached) $ECHO_C" >&6
1880
ac_check_lib_save_LIBS=$LIBS
1882
cat >conftest.$ac_ext <<_ACEOF
1883
#line 1883 "configure"
1884
#include "confdefs.h"
1886
/* Override any gcc2 internal prototype to avoid an error. */
1890
/* We use char because int might match the return type of a gcc2
1891
builtin and then its argument prototype would still apply. */
1901
rm -f conftest.$ac_objext conftest$ac_exeext
1902
if { (eval echo "$as_me:1902: \"$ac_link\"") >&5
1903
(eval $ac_link) 2>&5
1905
echo "$as_me:1905: \$? = $ac_status" >&5
1906
(exit $ac_status); } &&
1907
{ ac_try='test -s conftest$ac_exeext'
1908
{ (eval echo "$as_me:1908: \"$ac_try\"") >&5
1911
echo "$as_me:1911: \$? = $ac_status" >&5
1912
(exit $ac_status); }; }; then
1913
ac_cv_lib_fl_yywrap=yes
1915
echo "$as_me: failed program was:" >&5
1916
cat conftest.$ac_ext >&5
1917
ac_cv_lib_fl_yywrap=no
1919
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1920
LIBS=$ac_check_lib_save_LIBS
1922
echo "$as_me:1922: result: $ac_cv_lib_fl_yywrap" >&5
1923
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
1924
if test $ac_cv_lib_fl_yywrap = yes; then
1927
echo "$as_me:1927: checking for yywrap in -ll" >&5
1928
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
1929
if test "${ac_cv_lib_l_yywrap+set}" = set; then
1930
echo $ECHO_N "(cached) $ECHO_C" >&6
1932
ac_check_lib_save_LIBS=$LIBS
1934
cat >conftest.$ac_ext <<_ACEOF
1935
#line 1935 "configure"
1936
#include "confdefs.h"
1938
/* Override any gcc2 internal prototype to avoid an error. */
1942
/* We use char because int might match the return type of a gcc2
1943
builtin and then its argument prototype would still apply. */
1953
rm -f conftest.$ac_objext conftest$ac_exeext
1954
if { (eval echo "$as_me:1954: \"$ac_link\"") >&5
1955
(eval $ac_link) 2>&5
1957
echo "$as_me:1957: \$? = $ac_status" >&5
1958
(exit $ac_status); } &&
1959
{ ac_try='test -s conftest$ac_exeext'
1960
{ (eval echo "$as_me:1960: \"$ac_try\"") >&5
1963
echo "$as_me:1963: \$? = $ac_status" >&5
1964
(exit $ac_status); }; }; then
1965
ac_cv_lib_l_yywrap=yes
1967
echo "$as_me: failed program was:" >&5
1968
cat conftest.$ac_ext >&5
1969
ac_cv_lib_l_yywrap=no
1971
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1972
LIBS=$ac_check_lib_save_LIBS
1974
echo "$as_me:1974: result: $ac_cv_lib_l_yywrap" >&5
1975
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
1976
if test $ac_cv_lib_l_yywrap = yes; then
1984
if test "x$LEX" != "x:"; then
1985
echo "$as_me:1985: checking lex output file root" >&5
1986
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
1987
if test "${ac_cv_prog_lex_root+set}" = set; then
1988
echo $ECHO_N "(cached) $ECHO_C" >&6
1990
# The minimal lex program is just a single line: %%. But some broken lexes
1991
# (Solaris, I think it was) want two %% lines, so accommodate them.
1994
if test -f lex.yy.c; then
1995
ac_cv_prog_lex_root=lex.yy
1996
elif test -f lexyy.c; then
1997
ac_cv_prog_lex_root=lexyy
1999
{ { echo "$as_me:1999: error: cannot find output from $LEX; giving up" >&5
2000
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2001
{ (exit 1); exit 1; }; }
2004
echo "$as_me:2004: result: $ac_cv_prog_lex_root" >&5
2005
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2006
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2008
echo "$as_me:2008: checking whether yytext is a pointer" >&5
2009
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2010
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2011
echo $ECHO_N "(cached) $ECHO_C" >&6
2013
# POSIX says lex can declare yytext either as a pointer or an array; the
2014
# default is implementation-dependent. Figure out which it is, since
2015
# not all implementations provide the %pointer and %array declarations.
2016
ac_cv_prog_lex_yytext_pointer=no
2017
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2019
LIBS="$LIBS $LEXLIB"
2020
cat >conftest.$ac_ext <<_ACEOF
2021
`cat $LEX_OUTPUT_ROOT.c`
2023
rm -f conftest.$ac_objext conftest$ac_exeext
2024
if { (eval echo "$as_me:2024: \"$ac_link\"") >&5
2025
(eval $ac_link) 2>&5
2027
echo "$as_me:2027: \$? = $ac_status" >&5
2028
(exit $ac_status); } &&
2029
{ ac_try='test -s conftest$ac_exeext'
2030
{ (eval echo "$as_me:2030: \"$ac_try\"") >&5
2033
echo "$as_me:2033: \$? = $ac_status" >&5
2034
(exit $ac_status); }; }; then
2035
ac_cv_prog_lex_yytext_pointer=yes
2037
echo "$as_me: failed program was:" >&5
2038
cat conftest.$ac_ext >&5
2040
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2042
rm -f "${LEX_OUTPUT_ROOT}.c"
2045
echo "$as_me:2045: result: $ac_cv_prog_lex_yytext_pointer" >&5
2046
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2047
if test $ac_cv_prog_lex_yytext_pointer = yes; then
2049
cat >>confdefs.h <<\EOF
2050
#define YYTEXT_POINTER 1
887
if { (eval echo configure:888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
889
eval "ac_cv_lib_$ac_lib_var=yes"
891
echo "configure: failed program was:" >&5
892
cat conftest.$ac_ext >&5
894
eval "ac_cv_lib_$ac_lib_var=no"
900
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
901
echo "$ac_t""yes" 1>&6
904
echo "$ac_t""no" 1>&6
909
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
910
echo "configure:911: checking whether ${MAKE-make} sets \${MAKE}" >&5
911
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
912
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
913
echo $ac_n "(cached) $ac_c" 1>&6
915
cat > conftestmake <<\EOF
2056
echo "$as_me:2056: checking whether ${MAKE-make} sets \${MAKE}" >&5
2057
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2058
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2059
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2060
echo $ECHO_N "(cached) $ECHO_C" >&6
2062
cat >conftest.make <<\EOF
917
2064
@echo 'ac_maketemp="${MAKE}"'
919
2066
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
920
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2067
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
921
2068
if test -n "$ac_maketemp"; then
922
2069
eval ac_cv_prog_make_${ac_make}_set=yes
924
2071
eval ac_cv_prog_make_${ac_make}_set=no
928
2075
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
929
echo "$ac_t""yes" 1>&6
2076
echo "$as_me:2076: result: yes" >&5
2077
echo "${ECHO_T}yes" >&6
932
echo "$ac_t""no" 1>&6
2080
echo "$as_me:2080: result: no" >&5
2081
echo "${ECHO_T}no" >&6
933
2082
SET_MAKE="MAKE=${MAKE-make}"
936
2085
for ac_prog in 'bison -y' byacc
938
# Extract the first word of "$ac_prog", so it can be a program name with args.
2087
# Extract the first word of "$ac_prog", so it can be a program name with args.
939
2088
set dummy $ac_prog; ac_word=$2
940
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941
echo "configure:942: checking for $ac_word" >&5
942
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
943
echo $ac_n "(cached) $ac_c" 1>&6
2089
echo "$as_me:2089: checking for $ac_word" >&5
2090
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091
if test "${ac_cv_prog_YACC+set}" = set; then
2092
echo $ECHO_N "(cached) $ECHO_C" >&6
945
2094
if test -n "$YACC"; then
946
2095
ac_cv_prog_YACC="$YACC" # Let the user override the test.
948
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
950
for ac_dir in $ac_dummy; do
951
test -z "$ac_dir" && ac_dir=.
952
if test -f $ac_dir/$ac_word; then
953
ac_cv_prog_YACC="$ac_prog"
960
YACC="$ac_cv_prog_YACC"
2097
ac_save_IFS=$IFS; IFS=$ac_path_separator
2099
for ac_dir in $ac_dummy; do
2101
test -z "$ac_dir" && ac_dir=.
2102
$as_executable_p "$ac_dir/$ac_word" || continue
2103
ac_cv_prog_YACC="$ac_prog"
2104
echo "$as_me:2104: found $ac_dir/$ac_word" >&5
2110
YACC=$ac_cv_prog_YACC
961
2111
if test -n "$YACC"; then
962
echo "$ac_t""$YACC" 1>&6
2112
echo "$as_me:2112: result: $YACC" >&5
2113
echo "${ECHO_T}$YACC" >&6
964
echo "$ac_t""no" 1>&6
2115
echo "$as_me:2115: result: no" >&5
2116
echo "${ECHO_T}no" >&6
967
test -n "$YACC" && break
2119
test -n "$YACC" && break
969
2121
test -n "$YACC" || YACC="yacc"
1034
2199
if test "${ac_cv_path_install+set}" = set; then
1035
INSTALL="$ac_cv_path_install"
2200
INSTALL=$ac_cv_path_install
1037
2202
# As a last resort, use the slow shell script. We don't cache a
1038
2203
# path for INSTALL within a source directory, because that will
1039
2204
# break other packages using the cache if that directory is
1040
2205
# removed, or if the path is relative.
1041
INSTALL="$ac_install_sh"
2206
INSTALL=$ac_install_sh
1044
echo "$ac_t""$INSTALL" 1>&6
2209
echo "$as_me:2209: result: $INSTALL" >&5
2210
echo "${ECHO_T}$INSTALL" >&6
1046
2212
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1047
2213
# It thinks the first close brace ends the variable substitution.
1048
2214
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1050
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2216
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1052
2218
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1054
if test $ac_cv_prog_gcc = yes; then
1055
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1056
echo "configure:1057: checking whether ${CC-cc} needs -traditional" >&5
1057
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1058
echo $ac_n "(cached) $ac_c" 1>&6
1060
ac_pattern="Autoconf.*'x'"
1061
cat > conftest.$ac_ext <<EOF
1062
#line 1063 "configure"
1063
#include "confdefs.h"
1067
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1068
egrep "$ac_pattern" >/dev/null 2>&1; then
1070
ac_cv_prog_gcc_traditional=yes
1073
ac_cv_prog_gcc_traditional=no
1078
if test $ac_cv_prog_gcc_traditional = no; then
1079
cat > conftest.$ac_ext <<EOF
1080
#line 1081 "configure"
1081
#include "confdefs.h"
1085
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1086
egrep "$ac_pattern" >/dev/null 2>&1; then
1088
ac_cv_prog_gcc_traditional=yes
1095
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1096
if test $ac_cv_prog_gcc_traditional = yes; then
1097
CC="$CC -traditional"
2220
echo "$as_me:2220: checking for ${CC-cc} option to accept ANSI C" >&5
2221
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2222
if test "${cf_cv_ansi_cc+set}" = set; then
2223
echo $ECHO_N "(cached) $ECHO_C" >&6
2227
cf_save_CFLAGS="$CFLAGS"
2228
cf_save_CPPFLAGS="$CPPFLAGS"
2229
# Don't try gcc -ansi; that turns off useful extensions and
2230
# breaks some systems' header files.
2231
# AIX -qlanglvl=ansi
2232
# Ultrix and OSF/1 -std1
2233
# HP-UX -Aa -D_HPUX_SOURCE
2235
# UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2236
for cf_arg in "-DCC_HAS_PROTOS" \
2241
"-Aa -D_HPUX_SOURCE" \
2247
for cf_add_cflags in $cf_arg
2249
case $cf_add_cflags in #(vi
2250
-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2252
*$cf_add_cflags) #(vi
2255
cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2260
cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2265
if test -n "$cf_new_cflags" ; then
2267
CFLAGS="$CFLAGS $cf_new_cflags"
2270
if test -n "$cf_new_cppflags" ; then
2272
CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2275
cat >conftest.$ac_ext <<_ACEOF
2276
#line 2276 "configure"
2277
#include "confdefs.h"
2279
#ifndef CC_HAS_PROTOS
2280
#if !defined(__STDC__) || (__STDC__ != 1)
2289
int test (int i, double x);
2290
struct s1 {int (*f) (int a);};
2291
struct s2 {int (*f) (double a);};
2296
rm -f conftest.$ac_objext
2297
if { (eval echo "$as_me:2297: \"$ac_compile\"") >&5
2298
(eval $ac_compile) 2>&5
2300
echo "$as_me:2300: \$? = $ac_status" >&5
2301
(exit $ac_status); } &&
2302
{ ac_try='test -s conftest.$ac_objext'
2303
{ (eval echo "$as_me:2303: \"$ac_try\"") >&5
2306
echo "$as_me:2306: \$? = $ac_status" >&5
2307
(exit $ac_status); }; }; then
2308
cf_cv_ansi_cc="$cf_arg"; break
2310
echo "$as_me: failed program was:" >&5
2311
cat conftest.$ac_ext >&5
2313
rm -f conftest.$ac_objext conftest.$ac_ext
2315
CFLAGS="$cf_save_CFLAGS"
2316
CPPFLAGS="$cf_save_CPPFLAGS"
2319
echo "$as_me:2319: result: $cf_cv_ansi_cc" >&5
2320
echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2322
if test "$cf_cv_ansi_cc" != "no"; then
2323
if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2327
for cf_add_cflags in $cf_cv_ansi_cc
2329
case $cf_add_cflags in #(vi
2330
-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2332
*$cf_add_cflags) #(vi
2335
cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2340
cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2345
if test -n "$cf_new_cflags" ; then
2347
CFLAGS="$CFLAGS $cf_new_cflags"
2350
if test -n "$cf_new_cppflags" ; then
2352
CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2356
cat >>confdefs.h <<\EOF
2357
#define CC_HAS_PROTOS 1
2363
if test "$cf_cv_ansi_cc" = "no"; then
2364
{ { echo "$as_me:2364: error: Your compiler does not appear to recognize prototypes.
2365
You have the following choices:
2366
a. adjust your compiler options
2367
b. get an up-to-date compiler
2368
c. use a wrapper such as unproto" >&5
2369
echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2370
You have the following choices:
2371
a. adjust your compiler options
2372
b. get an up-to-date compiler
2373
c. use a wrapper such as unproto" >&2;}
2374
{ (exit 1); exit 1; }; }
1102
2377
for ac_prog in lint alint
1104
# Extract the first word of "$ac_prog", so it can be a program name with args.
2379
# Extract the first word of "$ac_prog", so it can be a program name with args.
1105
2380
set dummy $ac_prog; ac_word=$2
1106
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107
echo "configure:1108: checking for $ac_word" >&5
1108
if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
1109
echo $ac_n "(cached) $ac_c" 1>&6
2381
echo "$as_me:2381: checking for $ac_word" >&5
2382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383
if test "${ac_cv_prog_LINT+set}" = set; then
2384
echo $ECHO_N "(cached) $ECHO_C" >&6
1111
2386
if test -n "$LINT"; then
1112
2387
ac_cv_prog_LINT="$LINT" # Let the user override the test.
1114
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1116
for ac_dir in $ac_dummy; do
1117
test -z "$ac_dir" && ac_dir=.
1118
if test -f $ac_dir/$ac_word; then
1119
ac_cv_prog_LINT="$ac_prog"
1126
LINT="$ac_cv_prog_LINT"
2389
ac_save_IFS=$IFS; IFS=$ac_path_separator
2391
for ac_dir in $ac_dummy; do
2393
test -z "$ac_dir" && ac_dir=.
2394
$as_executable_p "$ac_dir/$ac_word" || continue
2395
ac_cv_prog_LINT="$ac_prog"
2396
echo "$as_me:2396: found $ac_dir/$ac_word" >&5
2402
LINT=$ac_cv_prog_LINT
1127
2403
if test -n "$LINT"; then
1128
echo "$ac_t""$LINT" 1>&6
2404
echo "$as_me:2404: result: $LINT" >&5
2405
echo "${ECHO_T}$LINT" >&6
1130
echo "$ac_t""no" 1>&6
2407
echo "$as_me:2407: result: no" >&5
2408
echo "${ECHO_T}no" >&6
1133
test -n "$LINT" && break
2411
test -n "$LINT" && break
1136
2414
if test -n "$LINT" ; then
1137
cat >> confdefs.h <<\EOF
2418
cat >>confdefs.h <<\EOF
1138
2419
#define HAVE_PROG_LINT 1
1143
### use option -with-warnings to turn on all gcc warnings
2425
if test "$GCC" = yes ; then
2426
echo "$as_me:2426: checking version of $CC" >&5
2427
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2428
GCC_VERSION="`${CC} --version|sed -e '2,$d' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2429
test -z "$GCC_VERSION" && GCC_VERSION=unknown
2430
echo "$as_me:2430: result: $GCC_VERSION" >&5
2431
echo "${ECHO_T}$GCC_VERSION" >&6
2434
if ( test "$GCC" = yes || test "$GXX" = yes )
2436
echo "$as_me:2436: checking if you want to check for gcc warnings" >&5
2437
echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
1147
2439
# Check whether --with-warnings or --without-warnings was given.
1148
2440
if test "${with_warnings+set}" = set; then
1149
2441
withval="$with_warnings"
1150
CFLAGS="$CFLAGS -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes"
2442
cf_opt_with_warnings=$withval
2444
cf_opt_with_warnings=no
2446
echo "$as_me:2446: result: $cf_opt_with_warnings" >&5
2447
echo "${ECHO_T}$cf_opt_with_warnings" >&6
2448
if test "$cf_opt_with_warnings" != no ; then
2450
if test "$GCC" = yes
2452
cat > conftest.i <<EOF
2454
#define GCC_PRINTF 0
2459
#ifndef GCC_NORETURN
2460
#define GCC_NORETURN /* nothing */
2463
#define GCC_UNUSED /* nothing */
2466
if test "$GCC" = yes
2468
{ echo "$as_me:2468: checking for $CC __attribute__ directives..." >&5
2469
echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2470
cat > conftest.$ac_ext <<EOF
2471
#line 2471 "configure"
2472
#include "confdefs.h"
2473
#include "conftest.h"
2474
#include "conftest.i"
2476
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2478
#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2481
#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2483
#define GCC_SCANFLIKE(fmt,var) /*nothing*/
2485
extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2486
extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2487
extern void foo(void) GCC_NORETURN;
2488
int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2490
for cf_attribute in scanf printf unused noreturn
2493
CF_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2495
cf_directive="__attribute__(($cf_attribute))"
2496
echo "checking for $CC $cf_directive" 1>&5
2497
case $cf_attribute in
2499
cat >conftest.h <<EOF
2500
#define GCC_$CF_ATTRIBUTE 1
2504
cat >conftest.h <<EOF
2505
#define GCC_$CF_ATTRIBUTE $cf_directive
2509
if { (eval echo "$as_me:2509: \"$ac_compile\"") >&5
2510
(eval $ac_compile) 2>&5
2512
echo "$as_me:2512: \$? = $ac_status" >&5
2513
(exit $ac_status); }; then
2514
test -n "$verbose" && echo "$as_me:2514: result: ... $cf_attribute" >&5
2515
echo "${ECHO_T}... $cf_attribute" >&6
2516
cat conftest.h >>confdefs.h
2520
fgrep define conftest.i >>confdefs.h
2525
if test "$GCC" = yes
2527
cat > conftest.$ac_ext <<EOF
2528
#line 2528 "configure"
2529
int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
2531
{ echo "$as_me:2531: checking for $CC warning options..." >&5
2532
echo "$as_me: checking for $CC warning options..." >&6;}
2533
cf_save_CFLAGS="$CFLAGS"
2534
EXTRA_CFLAGS="-W -Wall"
2536
test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
2538
Wbad-function-cast \
2542
Wmissing-declarations \
2543
Wmissing-prototypes \
2547
Wstrict-prototypes \
2548
Wundef $cf_warn_CONST
2550
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
2551
if { (eval echo "$as_me:2551: \"$ac_compile\"") >&5
2552
(eval $ac_compile) 2>&5
2554
echo "$as_me:2554: \$? = $ac_status" >&5
2555
(exit $ac_status); }; then
2556
test -n "$verbose" && echo "$as_me:2556: result: ... -$cf_opt" >&5
2557
echo "${ECHO_T}... -$cf_opt" >&6
2558
case $cf_opt in #(vi
2560
CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
2563
case $GCC_VERSION in
2565
test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
2571
EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
2575
CFLAGS="$cf_save_CFLAGS"
2581
echo "$as_me:2581: checking if you want to see long compiling messages" >&5
2582
echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
2584
# Check whether --enable-echo or --disable-echo was given.
2585
if test "${enable_echo+set}" = set; then
2586
enableval="$enable_echo"
2587
test "$enableval" != no && enableval=yes
2588
if test "$enableval" != "yes" ; then
2591
ECHO_LD='@echo linking $@;'
2592
RULE_CC=' @echo compiling $<'
2593
SHOW_CC=' @echo compiling $@'
2600
RULE_CC='# compiling'
2601
SHOW_CC='# compiling'
2610
RULE_CC='# compiling'
2611
SHOW_CC='# compiling'
2615
echo "$as_me:2615: result: $enableval" >&5
2616
echo "${ECHO_T}$enableval" >&6
2618
# Check whether --enable-llib or --disable-llib was given.
2619
if test "${enable_llib+set}" = set; then
2620
enableval="$enable_llib"
2621
cf_enable_llib=$enableval
2623
cf_enable_llib=$cf_have_lint
2626
if test "$cf_enable_llib" = yes ; then
2627
cat >>confdefs.h <<\EOF
2628
#define OPT_LINTLIBRARY 1
1155
2633
### extra things that we'll substitute in the makefile
1158
echo $ac_n "checking for working const""... $ac_c" 1>&6
1159
echo "configure:1160: checking for working const" >&5
1160
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1161
echo $ac_n "(cached) $ac_c" 1>&6
1163
cat > conftest.$ac_ext <<EOF
1164
#line 1165 "configure"
1165
#include "confdefs.h"
1169
/* Ultrix mips cc rejects this. */
1170
typedef int charset[2]; const charset x;
1171
/* SunOS 4.1.1 cc rejects this. */
1172
char const *const *ccp;
1174
/* NEC SVR4.0.2 mips cc rejects this. */
1175
struct point {int x, y;};
1176
static struct point const zero = {0,0};
1177
/* AIX XL C 1.02.0.0 rejects this.
1178
It does not let you subtract one const X* pointer from another in an arm
1179
of an if-expression whose if-part is not a constant expression */
1180
const char *g = "string";
1181
ccp = &g + (g ? g-g : 0);
1182
/* HPUX 7.0 cc rejects these. */
1185
ccp = (char const *const *) p;
1186
{ /* SCO 3.2v4 cc rejects this. */
1188
char const *s = 0 ? (char *) 0 : (char const *) 0;
1192
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1194
const int *foo = &x[0];
1197
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1198
typedef const int *iptr;
1202
{ /* AIX XL C 1.02.0.0 rejects this saying
1203
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1204
struct s { int j; const int *ap[3]; };
1205
struct s *b; b->j = 5;
1207
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1213
if { (eval echo configure:1214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2635
echo "$as_me:2635: checking for $CC option to accept ANSI C" >&5
2636
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2637
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2638
echo $ECHO_N "(cached) $ECHO_C" >&6
2640
ac_cv_prog_cc_stdc=no
2642
cat >conftest.$ac_ext <<_ACEOF
2643
#line 2643 "configure"
2644
#include "confdefs.h"
2647
#include <sys/types.h>
2648
#include <sys/stat.h>
2649
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650
struct buf { int x; };
2651
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652
static char *e (p, i)
2658
static char *f (char * (*g) (char **, int), char **p, ...)
2663
s = g (p, va_arg (v,int));
2667
int test (int i, double x);
2668
struct s1 {int (*f) (int a);};
2669
struct s2 {int (*f) (double a);};
2670
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2681
# Don't try gcc -ansi; that turns off useful extensions and
2682
# breaks some systems' header files.
2683
# AIX -qlanglvl=ansi
2684
# Ultrix and OSF/1 -std1
2685
# HP-UX 10.20 and later -Ae
2686
# HP-UX older versions -Aa -D_HPUX_SOURCE
2687
# SVR4 -Xc -D__EXTENSIONS__
2688
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2690
CC="$ac_save_CC $ac_arg"
2691
rm -f conftest.$ac_objext
2692
if { (eval echo "$as_me:2692: \"$ac_compile\"") >&5
2693
(eval $ac_compile) 2>&5
2695
echo "$as_me:2695: \$? = $ac_status" >&5
2696
(exit $ac_status); } &&
2697
{ ac_try='test -s conftest.$ac_objext'
2698
{ (eval echo "$as_me:2698: \"$ac_try\"") >&5
2701
echo "$as_me:2701: \$? = $ac_status" >&5
2702
(exit $ac_status); }; }; then
2703
ac_cv_prog_cc_stdc=$ac_arg
2706
echo "$as_me: failed program was:" >&5
2707
cat conftest.$ac_ext >&5
2709
rm -f conftest.$ac_objext
2711
rm -f conftest.$ac_ext conftest.$ac_objext
2716
case "x$ac_cv_prog_cc_stdc" in
2718
echo "$as_me:2718: result: none needed" >&5
2719
echo "${ECHO_T}none needed" >&6 ;;
2721
echo "$as_me:2721: result: $ac_cv_prog_cc_stdc" >&5
2722
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2723
CC="$CC $ac_cv_prog_cc_stdc" ;;
2726
echo "$as_me:2726: checking for an ANSI C-conforming const" >&5
2727
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2728
if test "${ac_cv_c_const+set}" = set; then
2729
echo $ECHO_N "(cached) $ECHO_C" >&6
2731
cat >conftest.$ac_ext <<_ACEOF
2732
#line 2732 "configure"
2733
#include "confdefs.h"
2738
/* FIXME: Include the comments suggested by Paul. */
2740
/* Ultrix mips cc rejects this. */
2741
typedef int charset[2];
2743
/* SunOS 4.1.1 cc rejects this. */
2744
char const *const *ccp;
2746
/* NEC SVR4.0.2 mips cc rejects this. */
2747
struct point {int x, y;};
2748
static struct point const zero = {0,0};
2749
/* AIX XL C 1.02.0.0 rejects this.
2750
It does not let you subtract one const X* pointer from another in
2751
an arm of an if-expression whose if-part is not a constant
2753
const char *g = "string";
2754
ccp = &g + (g ? g-g : 0);
2755
/* HPUX 7.0 cc rejects these. */
2758
ccp = (char const *const *) p;
2759
{ /* SCO 3.2v4 cc rejects this. */
2761
char const *s = 0 ? (char *) 0 : (char const *) 0;
2765
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2767
const int *foo = &x[0];
2770
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2771
typedef const int *iptr;
2775
{ /* AIX XL C 1.02.0.0 rejects this saying
2776
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2777
struct s { int j; const int *ap[3]; };
2778
struct s *b; b->j = 5;
2780
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2789
rm -f conftest.$ac_objext
2790
if { (eval echo "$as_me:2790: \"$ac_compile\"") >&5
2791
(eval $ac_compile) 2>&5
2793
echo "$as_me:2793: \$? = $ac_status" >&5
2794
(exit $ac_status); } &&
2795
{ ac_try='test -s conftest.$ac_objext'
2796
{ (eval echo "$as_me:2796: \"$ac_try\"") >&5
2799
echo "$as_me:2799: \$? = $ac_status" >&5
2800
(exit $ac_status); }; }; then
1215
2801
ac_cv_c_const=yes
1217
echo "configure: failed program was:" >&5
1218
cat conftest.$ac_ext >&5
1225
echo "$ac_t""$ac_cv_c_const" 1>&6
2803
echo "$as_me: failed program was:" >&5
2804
cat conftest.$ac_ext >&5
2807
rm -f conftest.$ac_objext conftest.$ac_ext
2809
echo "$as_me:2809: result: $ac_cv_c_const" >&5
2810
echo "${ECHO_T}$ac_cv_c_const" >&6
1226
2811
if test $ac_cv_c_const = no; then
1227
cat >> confdefs.h <<\EOF
2813
cat >>confdefs.h <<\EOF
1233
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1234
echo "configure:1235: checking for ANSI C header files" >&5
1235
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1236
echo $ac_n "(cached) $ac_c" 1>&6
2819
echo "$as_me:2819: checking for ANSI C header files" >&5
2820
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2821
if test "${ac_cv_header_stdc+set}" = set; then
2822
echo $ECHO_N "(cached) $ECHO_C" >&6
1238
cat > conftest.$ac_ext <<EOF
1239
#line 1240 "configure"
2824
cat >conftest.$ac_ext <<_ACEOF
2825
#line 2825 "configure"
1240
2826
#include "confdefs.h"
1241
2827
#include <stdlib.h>
1242
2828
#include <stdarg.h>
1243
2829
#include <string.h>
1244
2830
#include <float.h>
1246
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1247
{ (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1248
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1249
if test -z "$ac_err"; then
2833
if { (eval echo "$as_me:2833: \"$ac_cpp conftest.$ac_ext\"") >&5
2834
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2836
egrep -v '^ *\+' conftest.er1 >conftest.err
2838
cat conftest.err >&5
2839
echo "$as_me:2839: \$? = $ac_status" >&5
2840
(exit $ac_status); } >/dev/null; then
2841
if test -s conftest.err; then
2842
ac_cpp_err=$ac_c_preproc_warn_flag
2849
if test -z "$ac_cpp_err"; then
1251
2850
ac_cv_header_stdc=yes
1254
echo "configure: failed program was:" >&5
2852
echo "$as_me: failed program was:" >&5
1255
2853
cat conftest.$ac_ext >&5
1257
2854
ac_cv_header_stdc=no
2856
rm -f conftest.err conftest.$ac_ext
1261
2858
if test $ac_cv_header_stdc = yes; then
1262
2859
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1263
cat > conftest.$ac_ext <<EOF
1264
#line 1265 "configure"
2860
cat >conftest.$ac_ext <<_ACEOF
2861
#line 2861 "configure"
1265
2862
#include "confdefs.h"
1266
2863
#include <string.h>
1268
2866
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1269
2867
egrep "memchr" >/dev/null 2>&1; then
1273
2870
ac_cv_header_stdc=no
1275
2872
rm -f conftest*
1297
2894
if test $ac_cv_header_stdc = yes; then
1298
2895
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1299
if test "$cross_compiling" = yes; then
2896
if test "$cross_compiling" = yes; then
1302
cat > conftest.$ac_ext <<EOF
1303
#line 1304 "configure"
2899
cat >conftest.$ac_ext <<_ACEOF
2900
#line 2900 "configure"
1304
2901
#include "confdefs.h"
1305
2902
#include <ctype.h>
1306
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1307
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2903
#if ((' ' & 0x0FF) == 0x020)
2904
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2905
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2907
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2908
|| ('j' <= (c) && (c) <= 'r') \
2909
|| ('s' <= (c) && (c) <= 'z'))
2910
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1308
2913
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1309
int main () { int i; for (i = 0; i < 256; i++)
1310
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1314
if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2918
for (i = 0; i < 256; i++)
2919
if (XOR (islower (i), ISLOWER (i))
2920
|| toupper (i) != TOUPPER (i))
2925
rm -f conftest$ac_exeext
2926
if { (eval echo "$as_me:2926: \"$ac_link\"") >&5
2927
(eval $ac_link) 2>&5
2929
echo "$as_me:2929: \$? = $ac_status" >&5
2930
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2931
{ (eval echo "$as_me:2931: \"$ac_try\"") >&5
2934
echo "$as_me:2934: \$? = $ac_status" >&5
2935
(exit $ac_status); }; }; then
1318
echo "configure: failed program was:" >&5
1319
cat conftest.$ac_ext >&5
1321
ac_cv_header_stdc=no
1329
echo "$ac_t""$ac_cv_header_stdc" 1>&6
2938
echo "$as_me: program exited with status $ac_status" >&5
2939
echo "$as_me: failed program was:" >&5
2940
cat conftest.$ac_ext >&5
2941
ac_cv_header_stdc=no
2943
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2947
echo "$as_me:2947: result: $ac_cv_header_stdc" >&5
2948
echo "${ECHO_T}$ac_cv_header_stdc" >&6
1330
2949
if test $ac_cv_header_stdc = yes; then
1331
cat >> confdefs.h <<\EOF
2951
cat >>confdefs.h <<\EOF
1332
2952
#define STDC_HEADERS 1
1337
for ac_hdr in stdlib.h unistd.h
1339
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1340
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1341
echo "configure:1342: checking for $ac_hdr" >&5
1342
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1343
echo $ac_n "(cached) $ac_c" 1>&6
1345
cat > conftest.$ac_ext <<EOF
1346
#line 1347 "configure"
1347
#include "confdefs.h"
1350
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1351
{ (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1352
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1353
if test -z "$ac_err"; then
1355
eval "ac_cv_header_$ac_safe=yes"
1358
echo "configure: failed program was:" >&5
1359
cat conftest.$ac_ext >&5
1361
eval "ac_cv_header_$ac_safe=no"
1365
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1366
echo "$ac_t""yes" 1>&6
1367
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1368
cat >> confdefs.h <<EOF
1369
#define $ac_tr_hdr 1
1373
echo "$ac_t""no" 1>&6
1377
for ac_hdr in getopt.h string.h memory.h
1379
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1380
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1381
echo "configure:1382: checking for $ac_hdr" >&5
1382
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1383
echo $ac_n "(cached) $ac_c" 1>&6
1385
cat > conftest.$ac_ext <<EOF
1386
#line 1387 "configure"
1387
#include "confdefs.h"
1390
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1391
{ (eval echo configure:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1392
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1393
if test -z "$ac_err"; then
1395
eval "ac_cv_header_$ac_safe=yes"
1398
echo "configure: failed program was:" >&5
1399
cat conftest.$ac_ext >&5
1401
eval "ac_cv_header_$ac_safe=no"
1405
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1406
echo "$ac_t""yes" 1>&6
1407
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1408
cat >> confdefs.h <<EOF
1409
#define $ac_tr_hdr 1
1413
echo "$ac_t""no" 1>&6
2957
for ac_header in stdlib.h unistd.h
2959
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2960
echo "$as_me:2960: checking for $ac_header" >&5
2961
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2962
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2963
echo $ECHO_N "(cached) $ECHO_C" >&6
2965
cat >conftest.$ac_ext <<_ACEOF
2966
#line 2966 "configure"
2967
#include "confdefs.h"
2968
#include <$ac_header>
2970
if { (eval echo "$as_me:2970: \"$ac_cpp conftest.$ac_ext\"") >&5
2971
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2973
egrep -v '^ *\+' conftest.er1 >conftest.err
2975
cat conftest.err >&5
2976
echo "$as_me:2976: \$? = $ac_status" >&5
2977
(exit $ac_status); } >/dev/null; then
2978
if test -s conftest.err; then
2979
ac_cpp_err=$ac_c_preproc_warn_flag
2986
if test -z "$ac_cpp_err"; then
2987
eval "$as_ac_Header=yes"
2989
echo "$as_me: failed program was:" >&5
2990
cat conftest.$ac_ext >&5
2991
eval "$as_ac_Header=no"
2993
rm -f conftest.err conftest.$ac_ext
2995
echo "$as_me:2995: result: `eval echo '${'$as_ac_Header'}'`" >&5
2996
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2997
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2998
cat >>confdefs.h <<EOF
2999
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3005
for ac_header in getopt.h string.h memory.h
3007
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008
echo "$as_me:3008: checking for $ac_header" >&5
3009
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011
echo $ECHO_N "(cached) $ECHO_C" >&6
3013
cat >conftest.$ac_ext <<_ACEOF
3014
#line 3014 "configure"
3015
#include "confdefs.h"
3016
#include <$ac_header>
3018
if { (eval echo "$as_me:3018: \"$ac_cpp conftest.$ac_ext\"") >&5
3019
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021
egrep -v '^ *\+' conftest.er1 >conftest.err
3023
cat conftest.err >&5
3024
echo "$as_me:3024: \$? = $ac_status" >&5
3025
(exit $ac_status); } >/dev/null; then
3026
if test -s conftest.err; then
3027
ac_cpp_err=$ac_c_preproc_warn_flag
3034
if test -z "$ac_cpp_err"; then
3035
eval "$as_ac_Header=yes"
3037
echo "$as_me: failed program was:" >&5
3038
cat conftest.$ac_ext >&5
3039
eval "$as_ac_Header=no"
3041
rm -f conftest.err conftest.$ac_ext
3043
echo "$as_me:3043: result: `eval echo '${'$as_ac_Header'}'`" >&5
3044
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3045
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3046
cat >>confdefs.h <<EOF
3047
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1418
3053
for ac_func in strstr tmpfile link unlink mktemp
1420
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1421
echo "configure:1422: checking for $ac_func" >&5
1422
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1423
echo $ac_n "(cached) $ac_c" 1>&6
3055
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3056
echo "$as_me:3056: checking for $ac_func" >&5
3057
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3058
if eval "test \"\${$as_ac_var+set}\" = set"; then
3059
echo $ECHO_N "(cached) $ECHO_C" >&6
1425
cat > conftest.$ac_ext <<EOF
1426
#line 1427 "configure"
3061
cat >conftest.$ac_ext <<_ACEOF
3062
#line 3062 "configure"
1427
3063
#include "confdefs.h"
1428
3064
/* System header to define __stub macros and hopefully few prototypes,
1429
which can conflict with char $ac_func(); below. */
3065
which can conflict with char $ac_func (); below. */
1430
3066
#include <assert.h>
1431
3067
/* Override any gcc2 internal prototype to avoid an error. */
1432
3071
/* We use char because int might match the return type of a gcc2
1433
builtin and then its argument prototype would still apply. */
3072
builtin and then its argument prototype would still apply. */
1438
3079
/* The GNU C library defines this for functions which it implements
1439
3080
to always fail with ENOSYS. Some functions are actually named
1440
3081
something starting with __ and the normal name is an alias. */
1441
3082
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3092
rm -f conftest.$ac_objext conftest$ac_exeext
3093
if { (eval echo "$as_me:3093: \"$ac_link\"") >&5
3094
(eval $ac_link) 2>&5
3096
echo "$as_me:3096: \$? = $ac_status" >&5
3097
(exit $ac_status); } &&
3098
{ ac_try='test -s conftest$ac_exeext'
3099
{ (eval echo "$as_me:3099: \"$ac_try\"") >&5
3102
echo "$as_me:3102: \$? = $ac_status" >&5
3103
(exit $ac_status); }; }; then
3104
eval "$as_ac_var=yes"
3106
echo "$as_me: failed program was:" >&5
3107
cat conftest.$ac_ext >&5
3108
eval "$as_ac_var=no"
3110
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112
echo "$as_me:3112: result: `eval echo '${'$as_ac_var'}'`" >&5
3113
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3114
if test `eval echo '${'$as_ac_var'}'` = yes; then
3115
cat >>confdefs.h <<EOF
3116
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1449
if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1451
eval "ac_cv_func_$ac_func=yes"
1453
echo "configure: failed program was:" >&5
1454
cat conftest.$ac_ext >&5
1456
eval "ac_cv_func_$ac_func=no"
1461
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1462
echo "$ac_t""yes" 1>&6
1463
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1464
cat >> confdefs.h <<EOF
1465
#define $ac_tr_func 1
1469
echo "$ac_t""no" 1>&6
1474
3122
### special configuration tests
1476
echo $ac_n "checking for size_t in <sys/types.h> or <stdio.h>""... $ac_c" 1>&6
1477
echo "configure:1478: checking for size_t in <sys/types.h> or <stdio.h>" >&5
1478
if eval "test \"`echo '$''{'cf_cv_type_size_t'+set}'`\" = set"; then
1479
echo $ac_n "(cached) $ac_c" 1>&6
1482
cat > conftest.$ac_ext <<EOF
1483
#line 1484 "configure"
3124
echo "$as_me:3124: checking for working mkstemp" >&5
3125
echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
3126
if test "${cf_cv_func_mkstemp+set}" = set; then
3127
echo $ECHO_N "(cached) $ECHO_C" >&6
3131
if test "$cross_compiling" = yes; then
3132
echo "$as_me:3132: checking for mkstemp" >&5
3133
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
3134
if test "${ac_cv_func_mkstemp+set}" = set; then
3135
echo $ECHO_N "(cached) $ECHO_C" >&6
3137
cat >conftest.$ac_ext <<_ACEOF
3138
#line 3138 "configure"
3139
#include "confdefs.h"
3140
/* System header to define __stub macros and hopefully few prototypes,
3141
which can conflict with char mkstemp (); below. */
3143
/* Override any gcc2 internal prototype to avoid an error. */
3147
/* We use char because int might match the return type of a gcc2
3148
builtin and then its argument prototype would still apply. */
3155
/* The GNU C library defines this for functions which it implements
3156
to always fail with ENOSYS. Some functions are actually named
3157
something starting with __ and the normal name is an alias. */
3158
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
3168
rm -f conftest.$ac_objext conftest$ac_exeext
3169
if { (eval echo "$as_me:3169: \"$ac_link\"") >&5
3170
(eval $ac_link) 2>&5
3172
echo "$as_me:3172: \$? = $ac_status" >&5
3173
(exit $ac_status); } &&
3174
{ ac_try='test -s conftest$ac_exeext'
3175
{ (eval echo "$as_me:3175: \"$ac_try\"") >&5
3178
echo "$as_me:3178: \$? = $ac_status" >&5
3179
(exit $ac_status); }; }; then
3180
ac_cv_func_mkstemp=yes
3182
echo "$as_me: failed program was:" >&5
3183
cat conftest.$ac_ext >&5
3184
ac_cv_func_mkstemp=no
3186
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3188
echo "$as_me:3188: result: $ac_cv_func_mkstemp" >&5
3189
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
3192
cat >conftest.$ac_ext <<_ACEOF
3193
#line 3193 "configure"
3194
#include "confdefs.h"
3196
#include <sys/types.h>
3200
#include <sys/stat.h>
3203
char *tmpl = "conftestXXXXXX";
3211
for (n = 0; n < 2; ++n) {
3212
strcpy(name[n], tmpl);
3213
if ((fd = mkstemp(name[n])) >= 0) {
3214
if (!strcmp(name[n], tmpl)
3215
|| stat(name[n], &sb) != 0
3216
|| (sb.st_mode & S_IFMT) != S_IFREG
3217
|| (sb.st_mode & 077) != 0) {
3224
&& !strcmp(name[0], name[1]))
3230
rm -f conftest$ac_exeext
3231
if { (eval echo "$as_me:3231: \"$ac_link\"") >&5
3232
(eval $ac_link) 2>&5
3234
echo "$as_me:3234: \$? = $ac_status" >&5
3235
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3236
{ (eval echo "$as_me:3236: \"$ac_try\"") >&5
3239
echo "$as_me:3239: \$? = $ac_status" >&5
3240
(exit $ac_status); }; }; then
3241
cf_cv_func_mkstemp=yes
3244
echo "$as_me: program exited with status $ac_status" >&5
3245
echo "$as_me: failed program was:" >&5
3246
cat conftest.$ac_ext >&5
3247
cf_cv_func_mkstemp=no
3250
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3254
echo "$as_me:3254: result: $cf_cv_func_mkstemp" >&5
3255
echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
3256
if test "$cf_cv_func_mkstemp" = yes ; then
3257
cat >>confdefs.h <<\EOF
3258
#define HAVE_MKSTEMP 1
3263
echo "$as_me:3263: checking for size_t in <sys/types.h> or <stdio.h>" >&5
3264
echo $ECHO_N "checking for size_t in <sys/types.h> or <stdio.h>... $ECHO_C" >&6
3265
if test "${cf_cv_type_size_t+set}" = set; then
3266
echo $ECHO_N "(cached) $ECHO_C" >&6
3269
cat >conftest.$ac_ext <<_ACEOF
3270
#line 3270 "configure"
1484
3271
#include "confdefs.h"
1486
3273
#include <sys/types.h>
1588
echo $ac_n "checking for conflicting prototype for popen""... $ac_c" 1>&6
1589
echo "configure:1590: checking for conflicting prototype for popen" >&5
1590
if eval "test \"`echo '$''{'ac_cv_td_popen'+set}'`\" = set"; then
1591
echo $ac_n "(cached) $ac_c" 1>&6
3410
echo "$as_me:3410: checking for conflicting prototype for popen" >&5
3411
echo $ECHO_N "checking for conflicting prototype for popen... $ECHO_C" >&6
3412
if test "${ac_cv_td_popen+set}" = set; then
3413
echo $ECHO_N "(cached) $ECHO_C" >&6
1593
cat > conftest.$ac_ext <<EOF
1594
#line 1595 "configure"
3415
cat >conftest.$ac_ext <<_ACEOF
3416
#line 3416 "configure"
1595
3417
#include "confdefs.h"
1597
3419
#include <stdio.h>
1598
3420
#include "system.h"
1599
3421
extern int pclose ARGS((FILE *p));
1600
3422
extern FILE *popen ARGS((const char *c, const char *m));
1605
if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3431
rm -f conftest.$ac_objext conftest$ac_exeext
3432
if { (eval echo "$as_me:3432: \"$ac_link\"") >&5
3433
(eval $ac_link) 2>&5
3435
echo "$as_me:3435: \$? = $ac_status" >&5
3436
(exit $ac_status); } &&
3437
{ ac_try='test -s conftest$ac_exeext'
3438
{ (eval echo "$as_me:3438: \"$ac_try\"") >&5
3441
echo "$as_me:3441: \$? = $ac_status" >&5
3442
(exit $ac_status); }; }; then
1607
3443
ac_cv_td_popen=no
1609
echo "configure: failed program was:" >&5
1610
cat conftest.$ac_ext >&5
3445
echo "$as_me: failed program was:" >&5
3446
cat conftest.$ac_ext >&5
3449
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1617
echo "$ac_t""$ac_cv_td_popen" 1>&6
3452
echo "$as_me:3452: result: $ac_cv_td_popen" >&5
3453
echo "${ECHO_T}$ac_cv_td_popen" >&6
1618
3454
if test $ac_cv_td_popen = yes; then
1619
cat >> confdefs.h <<\EOF
3455
cat >>confdefs.h <<\EOF
1620
3456
#define HAVE_POPEN_PROTOTYPE 1
1626
3461
### debugging/testing
1628
3463
# Check whether --with-trace or --without-trace was given.
1629
3464
if test "${with_trace+set}" = set; then
1630
3465
withval="$with_trace"
1632
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1633
echo "configure:1634: checking whether time.h and sys/time.h may both be included" >&5
1634
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1635
echo $ac_n "(cached) $ac_c" 1>&6
3467
echo "$as_me:3467: checking whether time.h and sys/time.h may both be included" >&5
3468
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3469
if test "${ac_cv_header_time+set}" = set; then
3470
echo $ECHO_N "(cached) $ECHO_C" >&6
1637
cat > conftest.$ac_ext <<EOF
1638
#line 1639 "configure"
3472
cat >conftest.$ac_ext <<_ACEOF
3473
#line 3473 "configure"
1639
3474
#include "confdefs.h"
1640
3475
#include <sys/types.h>
1641
3476
#include <sys/time.h>
1642
3477
#include <time.h>
1647
if { (eval echo configure:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3482
if ((struct tm *) 0)
3488
rm -f conftest.$ac_objext
3489
if { (eval echo "$as_me:3489: \"$ac_compile\"") >&5
3490
(eval $ac_compile) 2>&5
3492
echo "$as_me:3492: \$? = $ac_status" >&5
3493
(exit $ac_status); } &&
3494
{ ac_try='test -s conftest.$ac_objext'
3495
{ (eval echo "$as_me:3495: \"$ac_try\"") >&5
3498
echo "$as_me:3498: \$? = $ac_status" >&5
3499
(exit $ac_status); }; }; then
1649
3500
ac_cv_header_time=yes
1651
echo "configure: failed program was:" >&5
1652
cat conftest.$ac_ext >&5
1654
ac_cv_header_time=no
1659
echo "$ac_t""$ac_cv_header_time" 1>&6
3502
echo "$as_me: failed program was:" >&5
3503
cat conftest.$ac_ext >&5
3504
ac_cv_header_time=no
3506
rm -f conftest.$ac_objext conftest.$ac_ext
3508
echo "$as_me:3508: result: $ac_cv_header_time" >&5
3509
echo "${ECHO_T}$ac_cv_header_time" >&6
1660
3510
if test $ac_cv_header_time = yes; then
1661
cat >> confdefs.h <<\EOF
3512
cat >>confdefs.h <<\EOF
1662
3513
#define TIME_WITH_SYS_TIME 1
1667
for ac_func in gettimeofday
3518
for ac_func in gettimeofday
1669
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1670
echo "configure:1671: checking for $ac_func" >&5
1671
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1672
echo $ac_n "(cached) $ac_c" 1>&6
3520
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3521
echo "$as_me:3521: checking for $ac_func" >&5
3522
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3523
if eval "test \"\${$as_ac_var+set}\" = set"; then
3524
echo $ECHO_N "(cached) $ECHO_C" >&6
1674
cat > conftest.$ac_ext <<EOF
1675
#line 1676 "configure"
3526
cat >conftest.$ac_ext <<_ACEOF
3527
#line 3527 "configure"
1676
3528
#include "confdefs.h"
1677
3529
/* System header to define __stub macros and hopefully few prototypes,
1678
which can conflict with char $ac_func(); below. */
3530
which can conflict with char $ac_func (); below. */
1679
3531
#include <assert.h>
1680
3532
/* Override any gcc2 internal prototype to avoid an error. */
1681
3536
/* We use char because int might match the return type of a gcc2
1682
builtin and then its argument prototype would still apply. */
3537
builtin and then its argument prototype would still apply. */
1687
3544
/* The GNU C library defines this for functions which it implements
1688
3545
to always fail with ENOSYS. Some functions are actually named
1689
3546
something starting with __ and the normal name is an alias. */
1690
3547
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3557
rm -f conftest.$ac_objext conftest$ac_exeext
3558
if { (eval echo "$as_me:3558: \"$ac_link\"") >&5
3559
(eval $ac_link) 2>&5
3561
echo "$as_me:3561: \$? = $ac_status" >&5
3562
(exit $ac_status); } &&
3563
{ ac_try='test -s conftest$ac_exeext'
3564
{ (eval echo "$as_me:3564: \"$ac_try\"") >&5
3567
echo "$as_me:3567: \$? = $ac_status" >&5
3568
(exit $ac_status); }; }; then
3569
eval "$as_ac_var=yes"
3571
echo "$as_me: failed program was:" >&5
3572
cat conftest.$ac_ext >&5
3573
eval "$as_ac_var=no"
3575
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3577
echo "$as_me:3577: result: `eval echo '${'$as_ac_var'}'`" >&5
3578
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3579
if test `eval echo '${'$as_ac_var'}'` = yes; then
3580
cat >>confdefs.h <<EOF
3581
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1698
if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1700
eval "ac_cv_func_$ac_func=yes"
1702
echo "configure: failed program was:" >&5
1703
cat conftest.$ac_ext >&5
1705
eval "ac_cv_func_$ac_func=no"
1710
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1711
echo "$ac_t""yes" 1>&6
1712
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1713
cat >> confdefs.h <<EOF
1714
#define $ac_tr_func 1
1718
echo "$ac_t""no" 1>&6
1722
cat >> confdefs.h <<\EOF
3587
cat >>confdefs.h <<\EOF
1723
3588
#define DOALLOC 10000
1726
3591
EXTRA_OBJS="$EXTRA_OBJS trace.o dump.o"
3594
echo "$as_me:3594: checking if you want to link with dbmalloc for testing" >&5
3595
echo $ECHO_N "checking if you want to link with dbmalloc for testing... $ECHO_C" >&6
3597
# Check whether --with-dbmalloc or --without-dbmalloc was given.
3598
if test "${with_dbmalloc+set}" = set; then
3599
withval="$with_dbmalloc"
3600
with_dbmalloc=$withval
3604
echo "$as_me:3604: result: $with_dbmalloc" >&5
3605
echo "${ECHO_T}$with_dbmalloc" >&6
3606
if test "$with_dbmalloc" = yes ; then
3607
echo "$as_me:3607: checking for dbmalloc.h" >&5
3608
echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
3609
if test "${ac_cv_header_dbmalloc_h+set}" = set; then
3610
echo $ECHO_N "(cached) $ECHO_C" >&6
3612
cat >conftest.$ac_ext <<_ACEOF
3613
#line 3613 "configure"
3614
#include "confdefs.h"
3615
#include <dbmalloc.h>
3617
if { (eval echo "$as_me:3617: \"$ac_cpp conftest.$ac_ext\"") >&5
3618
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3620
egrep -v '^ *\+' conftest.er1 >conftest.err
3622
cat conftest.err >&5
3623
echo "$as_me:3623: \$? = $ac_status" >&5
3624
(exit $ac_status); } >/dev/null; then
3625
if test -s conftest.err; then
3626
ac_cpp_err=$ac_c_preproc_warn_flag
3633
if test -z "$ac_cpp_err"; then
3634
ac_cv_header_dbmalloc_h=yes
3636
echo "$as_me: failed program was:" >&5
3637
cat conftest.$ac_ext >&5
3638
ac_cv_header_dbmalloc_h=no
3640
rm -f conftest.err conftest.$ac_ext
3642
echo "$as_me:3642: result: $ac_cv_header_dbmalloc_h" >&5
3643
echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
3644
if test $ac_cv_header_dbmalloc_h = yes; then
3646
echo "$as_me:3646: checking for debug_malloc in -ldbmalloc" >&5
3647
echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
3648
if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
3649
echo $ECHO_N "(cached) $ECHO_C" >&6
3651
ac_check_lib_save_LIBS=$LIBS
3652
LIBS="-ldbmalloc $LIBS"
3653
cat >conftest.$ac_ext <<_ACEOF
3654
#line 3654 "configure"
3655
#include "confdefs.h"
3657
/* Override any gcc2 internal prototype to avoid an error. */
3661
/* We use char because int might match the return type of a gcc2
3662
builtin and then its argument prototype would still apply. */
3663
char debug_malloc ();
3672
rm -f conftest.$ac_objext conftest$ac_exeext
3673
if { (eval echo "$as_me:3673: \"$ac_link\"") >&5
3674
(eval $ac_link) 2>&5
3676
echo "$as_me:3676: \$? = $ac_status" >&5
3677
(exit $ac_status); } &&
3678
{ ac_try='test -s conftest$ac_exeext'
3679
{ (eval echo "$as_me:3679: \"$ac_try\"") >&5
3682
echo "$as_me:3682: \$? = $ac_status" >&5
3683
(exit $ac_status); }; }; then
3684
ac_cv_lib_dbmalloc_debug_malloc=yes
3686
echo "$as_me: failed program was:" >&5
3687
cat conftest.$ac_ext >&5
3688
ac_cv_lib_dbmalloc_debug_malloc=no
3690
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3691
LIBS=$ac_check_lib_save_LIBS
3693
echo "$as_me:3693: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
3694
echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
3695
if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
3696
cat >>confdefs.h <<EOF
3697
#define HAVE_LIBDBMALLOC 1
3700
LIBS="-ldbmalloc $LIBS"
3708
echo "$as_me:3708: checking if you want to link with dmalloc for testing" >&5
3709
echo $ECHO_N "checking if you want to link with dmalloc for testing... $ECHO_C" >&6
1730
3711
# Check whether --with-dmalloc or --without-dmalloc was given.
1731
3712
if test "${with_dmalloc+set}" = set; then
1732
3713
withval="$with_dmalloc"
1734
echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6
1735
echo "configure:1736: checking for dmalloc_debug in -ldmalloc" >&5
1736
ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'`
1737
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1738
echo $ac_n "(cached) $ac_c" 1>&6
1740
ac_save_LIBS="$LIBS"
3714
with_dmalloc=$withval
3718
echo "$as_me:3718: result: $with_dmalloc" >&5
3719
echo "${ECHO_T}$with_dmalloc" >&6
3720
if test "$with_dmalloc" = yes ; then
3721
echo "$as_me:3721: checking for dmalloc.h" >&5
3722
echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
3723
if test "${ac_cv_header_dmalloc_h+set}" = set; then
3724
echo $ECHO_N "(cached) $ECHO_C" >&6
3726
cat >conftest.$ac_ext <<_ACEOF
3727
#line 3727 "configure"
3728
#include "confdefs.h"
3729
#include <dmalloc.h>
3731
if { (eval echo "$as_me:3731: \"$ac_cpp conftest.$ac_ext\"") >&5
3732
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3734
egrep -v '^ *\+' conftest.er1 >conftest.err
3736
cat conftest.err >&5
3737
echo "$as_me:3737: \$? = $ac_status" >&5
3738
(exit $ac_status); } >/dev/null; then
3739
if test -s conftest.err; then
3740
ac_cpp_err=$ac_c_preproc_warn_flag
3747
if test -z "$ac_cpp_err"; then
3748
ac_cv_header_dmalloc_h=yes
3750
echo "$as_me: failed program was:" >&5
3751
cat conftest.$ac_ext >&5
3752
ac_cv_header_dmalloc_h=no
3754
rm -f conftest.err conftest.$ac_ext
3756
echo "$as_me:3756: result: $ac_cv_header_dmalloc_h" >&5
3757
echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
3758
if test $ac_cv_header_dmalloc_h = yes; then
3760
echo "$as_me:3760: checking for dmalloc_debug in -ldmalloc" >&5
3761
echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
3762
if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
3763
echo $ECHO_N "(cached) $ECHO_C" >&6
3765
ac_check_lib_save_LIBS=$LIBS
1741
3766
LIBS="-ldmalloc $LIBS"
1742
cat > conftest.$ac_ext <<EOF
1743
#line 1744 "configure"
3767
cat >conftest.$ac_ext <<_ACEOF
3768
#line 3768 "configure"
1744
3769
#include "confdefs.h"
1745
3771
/* Override any gcc2 internal prototype to avoid an error. */
1746
3775
/* We use char because int might match the return type of a gcc2
1747
builtin and then its argument prototype would still apply. */
1748
char dmalloc_debug();
1754
if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756
eval "ac_cv_lib_$ac_lib_var=yes"
3776
builtin and then its argument prototype would still apply. */
3777
char dmalloc_debug ();
3786
rm -f conftest.$ac_objext conftest$ac_exeext
3787
if { (eval echo "$as_me:3787: \"$ac_link\"") >&5
3788
(eval $ac_link) 2>&5
3790
echo "$as_me:3790: \$? = $ac_status" >&5
3791
(exit $ac_status); } &&
3792
{ ac_try='test -s conftest$ac_exeext'
3793
{ (eval echo "$as_me:3793: \"$ac_try\"") >&5
3796
echo "$as_me:3796: \$? = $ac_status" >&5
3797
(exit $ac_status); }; }; then
3798
ac_cv_lib_dmalloc_dmalloc_debug=yes
1758
echo "configure: failed program was:" >&5
1759
cat conftest.$ac_ext >&5
1761
eval "ac_cv_lib_$ac_lib_var=no"
1764
LIBS="$ac_save_LIBS"
1767
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1768
echo "$ac_t""yes" 1>&6
1769
ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1770
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1771
cat >> confdefs.h <<EOF
1772
#define $ac_tr_lib 1
3800
echo "$as_me: failed program was:" >&5
3801
cat conftest.$ac_ext >&5
3802
ac_cv_lib_dmalloc_dmalloc_debug=no
3804
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3805
LIBS=$ac_check_lib_save_LIBS
3807
echo "$as_me:3807: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
3808
echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
3809
if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
3810
cat >>confdefs.h <<EOF
3811
#define HAVE_LIBDMALLOC 1
1775
3814
LIBS="-ldmalloc $LIBS"
1778
echo "$ac_t""no" 1>&6
1784
# Check whether --with-dbmalloc or --without-dbmalloc was given.
1785
if test "${with_dbmalloc+set}" = set; then
1786
withval="$with_dbmalloc"
1788
echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6
1789
echo "configure:1790: checking for debug_malloc in -ldbmalloc" >&5
1790
ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`
1791
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1792
echo $ac_n "(cached) $ac_c" 1>&6
1794
ac_save_LIBS="$LIBS"
1795
LIBS="-ldbmalloc $LIBS"
1796
cat > conftest.$ac_ext <<EOF
1797
#line 1798 "configure"
1798
#include "confdefs.h"
1799
/* Override any gcc2 internal prototype to avoid an error. */
1800
/* We use char because int might match the return type of a gcc2
1801
builtin and then its argument prototype would still apply. */
1802
char debug_malloc();
1808
if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1810
eval "ac_cv_lib_$ac_lib_var=yes"
1812
echo "configure: failed program was:" >&5
1813
cat conftest.$ac_ext >&5
1815
eval "ac_cv_lib_$ac_lib_var=no"
1818
LIBS="$ac_save_LIBS"
1821
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1822
echo "$ac_t""yes" 1>&6
1823
ac_tr_lib=HAVE_LIB`echo dbmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1824
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1825
cat >> confdefs.h <<EOF
1826
#define $ac_tr_lib 1
1829
LIBS="-ldbmalloc $LIBS"
1832
echo "$ac_t""no" 1>&6
1838
3822
echo setting other definitions
1839
cat >> confdefs.h <<EOF
3823
cat >>confdefs.h <<EOF
1840
3824
#define CPP "$CPP"
1844
3827
### output makefile and config.h
1846
cat > confcache <<\EOF
3828
ac_config_files="$ac_config_files Makefile"
3829
ac_config_commands="$ac_config_commands default"
3830
cat >confcache <<\_ACEOF
1847
3831
# This file is a shell script that caches the results of configure
1848
3832
# tests run on this system so they can be shared between configure
1849
# scripts and configure runs. It is not useful on other systems.
1850
# If it contains results you don't want to keep, you may remove or edit it.
1852
# By default, configure uses ./config.cache as the cache file,
1853
# creating it if it does not exist already. You can give configure
1854
# the --cache-file=FILE option to use a different cache file; that is
1855
# what configure does when it calls configure scripts in
1856
# subdirectories, so they share the cache.
1857
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1858
# config.status only pays attention to the cache file if you give it the
1859
# --recheck option to rerun configure.
3833
# scripts and configure runs, see configure's option --config-cache.
3834
# It is not useful on other systems. If it contains results you don't
3835
# want to keep, you may remove or edit it.
3837
# config.status only pays attention to the cache file if you give it
3838
# the --recheck option to rerun configure.
3840
# `ac_cv_env_foo' variables (set or unset) will be overriden when
3841
# loading this file, other *unset* `ac_cv_foo' will be assigned the
1862
3846
# The following way of writing the cache mishandles newlines in values,
1863
3847
# but we know of no workaround that is simple, portable, and efficient.
1864
3848
# So, don't put newlines in cache variables' values.
1865
3849
# Ultrix sh set writes to stderr and can't be redirected directly,
1866
3850
# and sets the high bit in the cache file unless we assign to the vars.
1868
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1870
# `set' does not quote correctly, so add quotes (double-quote substitution
1871
# turns \\\\ into \\, and sed turns \\ into \).
1873
-e "s/'/'\\\\''/g" \
1874
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1877
# `set' quotes correctly as required by POSIX, so do not add quotes.
1878
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1881
if cmp -s $cache_file confcache; then
3853
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3855
# `set' does not quote correctly, so add quotes (double-quote
3856
# substitution turns \\\\ into \\, and sed turns \\ into \).
3859
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3862
# `set' quotes correctly as required by POSIX, so do not add quotes.
3864
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3871
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3873
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3875
if cmp -s $cache_file confcache; then :; else
1884
3876
if test -w $cache_file; then
1885
echo "updating cache $cache_file"
1886
cat confcache > $cache_file
3877
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3878
cat confcache >$cache_file
1888
3880
echo "not updating unwritable cache $cache_file"
1891
3883
rm -f confcache
1893
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1895
3885
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1896
3886
# Let make expand exec_prefix.
1897
3887
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1899
# Any assignment to VPATH causes Sun make to only execute
1900
# the first set of double-colon rules, so remove it if not needed.
1901
# If there is a colon in the path, we need to keep it.
3889
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3890
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3891
# trailing colons and then remove the whole line if VPATH becomes empty
3892
# (actually we leave an empty line to preserve line numbers).
1902
3893
if test "x$srcdir" = x.; then
1903
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3894
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3895
s/:*\$(srcdir):*/:/;
3896
s/:*\${srcdir}:*/:/;
3898
s/^\([^=]*=[ ]*\):*/\1/;
1906
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1909
# Transform confdefs.h into DEFS.
1910
# Protect against shell expansion while executing Makefile rules.
1911
# Protect against Makefile macro expansion.
1912
cat > conftest.defs <<\EOF
1913
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1914
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1919
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1923
# Without the "./", some shells look in PATH for config.status.
3904
DEFS=-DHAVE_CONFIG_H
1924
3906
: ${CONFIG_STATUS=./config.status}
1926
echo creating $CONFIG_STATUS
1927
rm -f $CONFIG_STATUS
1928
cat > $CONFIG_STATUS <<EOF
3907
ac_clean_files_save=$ac_clean_files
3908
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3909
{ echo "$as_me:3909: creating $CONFIG_STATUS" >&5
3910
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3911
cat >$CONFIG_STATUS <<_ACEOF
1930
3913
# Generated automatically by configure.
1931
3914
# Run this file to recreate the current configuration.
1932
# This directory was configured as follows,
1933
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1935
# $0 $ac_configure_args
1937
3915
# Compiler output produced by configure, useful for debugging
1938
# configure, is in ./config.log if it exists.
1940
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3916
# configure, is in config.log if it exists.
3919
SHELL=\${CONFIG_SHELL-$SHELL}
3920
ac_cs_invocation="\$0 \$@"
3924
cat >>$CONFIG_STATUS <<\_ACEOF
3925
# Be Bourne compatible
3926
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3929
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3933
# Name of the executable.
3934
as_me=`echo "$0" |sed 's,.*[\\/],,'`
3936
if expr a : '\(a\)' >/dev/null 2>&1; then
3942
rm -f conf$$ conf$$.exe conf$$.file
3944
if ln -s conf$$.file conf$$ 2>/dev/null; then
3945
# We could just check for DJGPP; but this test a) works b) is more generic
3946
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3947
if test -f conf$$.exe; then
3948
# Don't use ln at all; we don't have any links
3953
elif ln conf$$.file conf$$ 2>/dev/null; then
3958
rm -f conf$$ conf$$.exe conf$$.file
3960
as_executable_p="test -f"
3962
# Support unset when possible.
3963
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3970
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3971
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3972
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3973
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3974
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3975
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3976
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3977
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3980
# We need space, tab and new line, in precisely that order.
3986
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3992
# Files that config.status was made for.
3993
if test -n "$ac_config_files"; then
3994
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3997
if test -n "$ac_config_headers"; then
3998
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4001
if test -n "$ac_config_links"; then
4002
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4005
if test -n "$ac_config_commands"; then
4006
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4009
cat >>$CONFIG_STATUS <<\EOF
4012
\`$as_me' instantiates files from templates according to the
4013
current configuration.
4015
Usage: $0 [OPTIONS] [FILE]...
4017
-h, --help print this help, then exit
4018
-V, --version print version number, then exit
4019
-d, --debug don't remove temporary files
4020
--recheck update $as_me by reconfiguring in the same conditions
4021
--file=FILE[:TEMPLATE]
4022
instantiate the configuration file FILE
4023
--header=FILE[:TEMPLATE]
4024
instantiate the configuration header FILE
4026
Configuration files:
4029
Configuration headers:
4032
Configuration commands:
4035
Report bugs to <bug-autoconf@gnu.org>."
4038
cat >>$CONFIG_STATUS <<EOF
4041
configured by $0, generated by GNU Autoconf 2.52.20030208,
4042
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4044
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4045
Free Software Foundation, Inc.
4046
This config.status script is free software; the Free Software Foundation
4047
gives unlimited permission to copy, distribute and modify it."
4052
cat >>$CONFIG_STATUS <<\EOF
4053
# If no file are specified by the user, then we need to provide default
4054
# value. By we need to know if files were specified by the user.
1943
case "\$ac_option" in
4060
ac_option=`expr "x$1" : 'x\([^=]*\)='`
4061
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4063
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4067
*) # This is not an option, so the user has probably given explicit
4069
ac_need_defaults=false;;
4073
# Handling of the options.
4075
cat >>$CONFIG_STATUS <<EOF
1944
4076
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1945
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1946
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1947
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1948
echo "$CONFIG_STATUS generated by autoconf version 2.13.19990117"
1950
-help | --help | --hel | --he | --h)
1951
echo "\$ac_cs_usage"; exit 0 ;;
1952
*) echo "\$ac_cs_usage"; exit 1 ;;
1956
ac_given_srcdir=$srcdir
1957
ac_given_INSTALL="$INSTALL"
1959
trap 'rm -fr `echo "Makefile config_h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1961
cat >> $CONFIG_STATUS <<EOF
1963
# Protect against being on the right side of a sed subst in config.status.
1964
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1965
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1969
s%@CFLAGS@%$CFLAGS%g
1970
s%@CPPFLAGS@%$CPPFLAGS%g
1971
s%@CXXFLAGS@%$CXXFLAGS%g
1972
s%@FFLAGS@%$FFLAGS%g
1974
s%@LDFLAGS@%$LDFLAGS%g
1976
s%@exec_prefix@%$exec_prefix%g
1977
s%@prefix@%$prefix%g
1978
s%@program_transform_name@%$program_transform_name%g
1979
s%@bindir@%$bindir%g
1980
s%@sbindir@%$sbindir%g
1981
s%@libexecdir@%$libexecdir%g
1982
s%@datadir@%$datadir%g
1983
s%@sysconfdir@%$sysconfdir%g
1984
s%@sharedstatedir@%$sharedstatedir%g
1985
s%@localstatedir@%$localstatedir%g
1986
s%@libdir@%$libdir%g
1987
s%@includedir@%$includedir%g
1988
s%@oldincludedir@%$oldincludedir%g
1989
s%@infodir@%$infodir%g
1990
s%@mandir@%$mandir%g
1994
s%@LEXLIB@%$LEXLIB%g
1995
s%@SET_MAKE@%$SET_MAKE%g
1997
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1998
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1999
s%@INSTALL_DATA@%$INSTALL_DATA%g
2001
s%@EXTRA_OBJS@%$EXTRA_OBJS%g
4077
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4078
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4080
cat >>$CONFIG_STATUS <<\EOF
4081
--version | --vers* | -V )
4082
echo "$ac_cs_version"; exit 0 ;;
4084
# Conflict between --help and --header
4085
{ { echo "$as_me:4085: error: ambiguous option: $1
4086
Try \`$0 --help' for more information." >&5
4087
echo "$as_me: error: ambiguous option: $1
4088
Try \`$0 --help' for more information." >&2;}
4089
{ (exit 1); exit 1; }; };;
4090
--help | --hel | -h )
4091
echo "$ac_cs_usage"; exit 0 ;;
4092
--debug | --d* | -d )
4094
--file | --fil | --fi | --f )
4096
CONFIG_FILES="$CONFIG_FILES $1"
4097
ac_need_defaults=false;;
4098
--header | --heade | --head | --hea )
4100
CONFIG_HEADERS="$CONFIG_HEADERS $1"
4101
ac_need_defaults=false;;
4104
-*) { { echo "$as_me:4104: error: unrecognized option: $1
4105
Try \`$0 --help' for more information." >&5
4106
echo "$as_me: error: unrecognized option: $1
4107
Try \`$0 --help' for more information." >&2;}
4108
{ (exit 1); exit 1; }; } ;;
4110
*) ac_config_targets="$ac_config_targets $1" ;;
4119
## ----------------------- ##
4120
## Running config.status. ##
4121
## ----------------------- ##
4123
This file was extended by $as_me 2.52.20030208, executed with
4124
CONFIG_FILES = $CONFIG_FILES
4125
CONFIG_HEADERS = $CONFIG_HEADERS
4126
CONFIG_LINKS = $CONFIG_LINKS
4127
CONFIG_COMMANDS = $CONFIG_COMMANDS
4129
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4134
cat >>$CONFIG_STATUS <<\EOF
4135
for ac_config_target in $ac_config_targets
4137
case "$ac_config_target" in
4138
# Handling of arguments.
4139
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4140
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4141
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
4142
*) { { echo "$as_me:4142: error: invalid argument: $ac_config_target" >&5
4143
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4144
{ (exit 1); exit 1; }; };;
4148
# If the user did not use the arguments to specify the items to instantiate,
4149
# then the envvar interface is used. Set only those that are not.
4150
# We use the long form for the default assignment because of an extremely
4151
# bizarre bug on SunOS 4.1.3.
4152
if $ac_need_defaults; then
4153
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4154
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4155
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4158
# Create a temporary directory, and hook for its removal unless debugging.
4161
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4162
trap '{ (exit 1); exit 1; }' 1 2 13 15
4165
# Create a (secure) tmp directory for tmp files.
4168
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4169
test -n "$tmp" && test -d "$tmp"
4172
tmp=$TMPDIR/cs$$-$RANDOM
4173
(umask 077 && mkdir $tmp)
4176
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4177
{ (exit 1); exit 1; }
4182
cat >>$CONFIG_STATUS <<EOF
4185
# CONFIG_FILES section.
4188
# No need to generate the scripts if there are no CONFIG_FILES.
4189
# This happens for instance when ./config.status config.h
4190
if test -n "\$CONFIG_FILES"; then
4191
# Protect against being on the right side of a sed subst in config.status.
4192
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4193
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4194
s,@SHELL@,$SHELL,;t t
4195
s,@exec_prefix@,$exec_prefix,;t t
4196
s,@prefix@,$prefix,;t t
4197
s,@program_transform_name@,$program_transform_name,;t t
4198
s,@bindir@,$bindir,;t t
4199
s,@sbindir@,$sbindir,;t t
4200
s,@libexecdir@,$libexecdir,;t t
4201
s,@datadir@,$datadir,;t t
4202
s,@sysconfdir@,$sysconfdir,;t t
4203
s,@sharedstatedir@,$sharedstatedir,;t t
4204
s,@localstatedir@,$localstatedir,;t t
4205
s,@libdir@,$libdir,;t t
4206
s,@includedir@,$includedir,;t t
4207
s,@oldincludedir@,$oldincludedir,;t t
4208
s,@infodir@,$infodir,;t t
4209
s,@mandir@,$mandir,;t t
4210
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4211
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4212
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4213
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4214
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4215
s,@build_alias@,$build_alias,;t t
4216
s,@host_alias@,$host_alias,;t t
4217
s,@target_alias@,$target_alias,;t t
4218
s,@ECHO_C@,$ECHO_C,;t t
4219
s,@ECHO_N@,$ECHO_N,;t t
4220
s,@ECHO_T@,$ECHO_T,;t t
4221
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4225
s,@CFLAGS@,$CFLAGS,;t t
4226
s,@LDFLAGS@,$LDFLAGS,;t t
4227
s,@CPPFLAGS@,$CPPFLAGS,;t t
4228
s,@ac_ct_CC@,$ac_ct_CC,;t t
4229
s,@EXEEXT@,$EXEEXT,;t t
4230
s,@OBJEXT@,$OBJEXT,;t t
4233
s,@LEXLIB@,$LEXLIB,;t t
4234
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
4235
s,@SET_MAKE@,$SET_MAKE,;t t
4237
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4238
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4239
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4241
s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
4242
s,@ECHO_LT@,$ECHO_LT,;t t
4243
s,@ECHO_LD@,$ECHO_LD,;t t
4244
s,@RULE_CC@,$RULE_CC,;t t
4245
s,@SHOW_CC@,$SHOW_CC,;t t
4246
s,@ECHO_CC@,$ECHO_CC,;t t
4247
s,@EXTRA_OBJS@,$EXTRA_OBJS,;t t
2006
cat >> $CONFIG_STATUS <<\EOF
2008
# Split the substitutions into bite-sized pieces for seds with
2009
# small command number limits, like on Digital OSF/1 and HP-UX.
2010
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2011
ac_file=1 # Number of current file.
2012
ac_beg=1 # First line for current file.
2013
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2016
while $ac_more_lines; do
2017
if test $ac_beg -gt 1; then
2018
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2020
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2022
if test ! -s conftest.s$ac_file; then
2024
rm -f conftest.s$ac_file
2026
if test -z "$ac_sed_cmds"; then
2027
ac_sed_cmds="sed -f conftest.s$ac_file"
2029
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2031
ac_file=`expr $ac_file + 1`
2033
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2036
if test -z "$ac_sed_cmds"; then
2041
cat >> $CONFIG_STATUS <<EOF
2043
CONFIG_FILES=\${CONFIG_FILES-"Makefile config_h"}
2045
cat >> $CONFIG_STATUS <<\EOF
2046
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4252
cat >>$CONFIG_STATUS <<\EOF
4253
# Split the substitutions into bite-sized pieces for seds with
4254
# small command number limits, like on Digital OSF/1 and HP-UX.
4256
ac_sed_frag=1 # Number of current file.
4257
ac_beg=1 # First line for current file.
4258
ac_end=$ac_max_sed_lines # Line after last line for current file.
4261
while $ac_more_lines; do
4262
if test $ac_beg -gt 1; then
4263
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4265
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4267
if test ! -s $tmp/subs.frag; then
4270
# The purpose of the label and of the branching condition is to
4271
# speed up the sed processing (if there are no `@' at all, there
4272
# is no need to browse any of the substitutions).
4273
# These are the two extra sed commands mentioned above.
4275
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4276
if test -z "$ac_sed_cmds"; then
4277
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4279
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4281
ac_sed_frag=`expr $ac_sed_frag + 1`
4283
ac_end=`expr $ac_end + $ac_max_sed_lines`
4286
if test -z "$ac_sed_cmds"; then
4289
fi # test -n "$CONFIG_FILES"
4292
cat >>$CONFIG_STATUS <<\EOF
4293
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2047
4294
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2049
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2050
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2051
*) ac_file_in="${ac_file}.in" ;;
4296
- | *:- | *:-:* ) # input from stdin
4298
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4299
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4300
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4301
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4302
* ) ac_file_in=$ac_file.in ;;
2054
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2056
# Remove last slash and all that follows it. Not all systems have dirname.
2057
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4305
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4306
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4307
X"$ac_file" : 'X\(//\)[^/]' \| \
4308
X"$ac_file" : 'X\(//\)$' \| \
4309
X"$ac_file" : 'X\(/\)' \| \
4310
. : '\(.\)' 2>/dev/null ||
4312
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4313
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4314
/^X\(\/\/\)$/{ s//\1/; q; }
4315
/^X\(\/\).*/{ s//\1/; q; }
2058
4317
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2059
# The file is in a subdirectory.
2060
test ! -d "$ac_dir" && mkdir "$ac_dir"
2061
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4319
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
4323
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4324
case $as_mkdir_dir in
4325
# Skip DOS drivespec
4326
?:) as_incr_dir=$as_mkdir_dir ;;
4328
as_incr_dir=$as_incr_dir/$as_mkdir_dir
4329
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4334
ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2062
4335
# A "../" for each directory in $ac_dir_suffix.
2063
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4336
ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2065
4338
ac_dir_suffix= ac_dots=
2068
case "$ac_given_srcdir" in
2070
if test -z "$ac_dots"; then top_srcdir=.
2071
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2072
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4343
if test -z "$ac_dots"; then
4346
ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4349
ac_srcdir=$srcdir$ac_dir_suffix;
4350
ac_top_srcdir=$srcdir ;;
2073
4351
*) # Relative path.
2074
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2075
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2078
case "$ac_given_INSTALL" in
2079
[/$]*) INSTALL="$ac_given_INSTALL" ;;
2080
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2083
echo creating "$ac_file"
2085
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2087
*Makefile*) ac_comsub="1i\\
2088
# $configure_input" ;;
2092
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2094
s%@configure_input@%$configure_input%g
2095
s%@srcdir@%$srcdir%g
2096
s%@top_srcdir@%$top_srcdir%g
2097
s%@INSTALL@%$INSTALL%g
2098
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2103
cat >> $CONFIG_STATUS <<EOF
2104
# Extra initialization commands, if any
2107
cat >> $CONFIG_STATUS <<\EOF
2108
# Extra commands, if any
2110
echo creating config.h
2114
-e 's/\(#define [A-Za-z_][A-Za-z0-9_]*\)=/\1 /g' \
2118
echo removing config_h
4352
ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4353
ac_top_srcdir=$ac_dots$srcdir ;;
4357
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4358
*) ac_INSTALL=$ac_dots$INSTALL ;;
4361
if test x"$ac_file" != x-; then
4362
{ echo "$as_me:4362: creating $ac_file" >&5
4363
echo "$as_me: creating $ac_file" >&6;}
4366
# Let's still pretend it is `configure' which instantiates (i.e., don't
4367
# use $as_me), people would be surprised to read:
4368
# /* config.h. Generated automatically by config.status. */
4369
configure_input="Generated automatically from `echo $ac_file_in |
4370
sed 's,.*/,,'` by configure."
4372
# First look for the input files in the build tree, otherwise in the
4374
ac_file_inputs=`IFS=:
4375
for f in $ac_file_in; do
4377
-) echo $tmp/stdin ;;
4379
# Absolute (can't be DOS-style, as IFS=:)
4380
test -f "$f" || { { echo "$as_me:4380: error: cannot find input file: $f" >&5
4381
echo "$as_me: error: cannot find input file: $f" >&2;}
4382
{ (exit 1); exit 1; }; }
4385
if test -f "$f"; then
4388
elif test -f "$srcdir/$f"; then
4393
{ { echo "$as_me:4393: error: cannot find input file: $f" >&5
4394
echo "$as_me: error: cannot find input file: $f" >&2;}
4395
{ (exit 1); exit 1; }; }
4398
done` || { (exit 1); exit 1; }
4400
cat >>$CONFIG_STATUS <<EOF
4404
cat >>$CONFIG_STATUS <<\EOF
4406
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4407
s,@configure_input@,$configure_input,;t t
4408
s,@srcdir@,$ac_srcdir,;t t
4409
s,@top_srcdir@,$ac_top_srcdir,;t t
4410
s,@INSTALL@,$ac_INSTALL,;t t
4411
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4413
if test x"$ac_file" != x-; then
4414
mv $tmp/out $ac_file
4422
cat >>$CONFIG_STATUS <<\EOF
4425
# CONFIG_HEADER section.
4428
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4429
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4431
# ac_d sets the value in "#define NAME VALUE" lines.
4432
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4433
ac_dB='[ ].*$,\1#\2'
4436
# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4437
ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4438
ac_iB='\([ ]\),\1#\2define\3'
4441
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4442
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4443
ac_uB='$,\1#\2define\3'
4447
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4448
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4450
- | *:- | *:-:* ) # input from stdin
4452
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4453
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4454
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4455
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4456
* ) ac_file_in=$ac_file.in ;;
4459
test x"$ac_file" != x- && { echo "$as_me:4459: creating $ac_file" >&5
4460
echo "$as_me: creating $ac_file" >&6;}
4462
# First look for the input files in the build tree, otherwise in the
4464
ac_file_inputs=`IFS=:
4465
for f in $ac_file_in; do
4467
-) echo $tmp/stdin ;;
4469
# Absolute (can't be DOS-style, as IFS=:)
4470
test -f "$f" || { { echo "$as_me:4470: error: cannot find input file: $f" >&5
4471
echo "$as_me: error: cannot find input file: $f" >&2;}
4472
{ (exit 1); exit 1; }; }
4475
if test -f "$f"; then
4478
elif test -f "$srcdir/$f"; then
4483
{ { echo "$as_me:4483: error: cannot find input file: $f" >&5
4484
echo "$as_me: error: cannot find input file: $f" >&2;}
4485
{ (exit 1); exit 1; }; }
4488
done` || { (exit 1); exit 1; }
4489
# Remove the trailing spaces.
4490
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4494
# Transform confdefs.h into a list of #define's. We won't use it as a sed
4495
# script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
4496
# be either 'cat' or 'sort'.
4497
sort confdefs.h | uniq >conftest.vals
4499
# Break up conftest.vals because some shells have a limit on
4500
# the size of here documents, and old seds have small limits too.
4503
echo ' rm -f conftest.frag' >> $CONFIG_STATUS
4504
while grep . conftest.vals >/dev/null
4506
# Write chunks of a limited-size here document to conftest.frag.
4507
echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
4508
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4509
echo 'CEOF' >> $CONFIG_STATUS
4510
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4512
mv conftest.tail conftest.vals
4516
# Run sed to substitute the contents of conftest.frag into $tmp/in at the
4518
echo ' cat >> conftest.edit <<CEOF
4519
/@DEFS@/r conftest.frag
4522
sed -f conftest.edit $tmp/in > $tmp/out
4525
rm -f conftest.edit conftest.frag
4528
cat >>$CONFIG_STATUS <<\EOF
4529
# Let's still pretend it is `configure' which instantiates (i.e., don't
4530
# use $as_me), people would be surprised to read:
4531
# /* config.h. Generated automatically by config.status. */
4532
if test x"$ac_file" = x-; then
4533
echo "/* Generated automatically by configure. */" >$tmp/config.h
4535
echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
4537
cat $tmp/in >>$tmp/config.h
4539
if test x"$ac_file" != x-; then
4540
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4541
{ echo "$as_me:4541: $ac_file is unchanged" >&5
4542
echo "$as_me: $ac_file is unchanged" >&6;}
4544
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4545
X"$ac_file" : 'X\(//\)[^/]' \| \
4546
X"$ac_file" : 'X\(//\)$' \| \
4547
X"$ac_file" : 'X\(/\)' \| \
4548
. : '\(.\)' 2>/dev/null ||
4550
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4551
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4552
/^X\(\/\/\)$/{ s//\1/; q; }
4553
/^X\(\/\).*/{ s//\1/; q; }
4555
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4557
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
4561
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4562
case $as_mkdir_dir in
4563
# Skip DOS drivespec
4564
?:) as_incr_dir=$as_mkdir_dir ;;
4566
as_incr_dir=$as_incr_dir/$as_mkdir_dir
4567
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4574
mv $tmp/config.h $ac_file
4582
cat >>$CONFIG_STATUS <<\EOF
4585
# CONFIG_COMMANDS section.
4587
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4588
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4589
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4596
cat >>$CONFIG_STATUS <<\EOF
4598
{ (exit 0); exit 0; }
2123
4600
chmod +x $CONFIG_STATUS
2124
rm -fr confdefs* $ac_clean_files
2125
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4601
ac_clean_files=$ac_clean_files_save
4603
# configure is writing to config.log, and then calls config.status.
4604
# config.status does its own redirection, appending to config.log.
4605
# Unfortunately, on DOS this fails, as config.log is still kept open
4606
# by configure, so config.status won't be able to write to it; its
4607
# output is simply discarded. So we exec the FD to /dev/null,
4608
# effectively closing config.log, so it can be properly (re)opened and
4609
# appended to by config.status. When coming back to configure, we
4610
# need to make the FD available again.
4611
if test "$no_create" != yes; then
4614
$SHELL $CONFIG_STATUS || ac_cs_success=false
4616
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
4617
# would make configure fail if this is the last instruction.
4618
$ac_cs_success || { (exit 1); exit 1; }