Deleted Added
sdiff udiff text old ( 125647 ) new ( 141098 )
full compact
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53 for OpenPAM 20040210.
4#
5# Report bugs to <des@freebsd.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11
12if expr a : '\(a\)' >/dev/null 2>&1; then
13 as_expr=expr
14else
15 as_expr=false
16fi
17
18
19## --------------------- ##
20## M4sh Initialization. ##
21## --------------------- ##
22
23# Be Bourne compatible
24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29fi
30
31# NLS nuisances.
32# Support unset when possible.
33if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 as_unset=unset
35else
36 as_unset=false
37fi
38
39(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40 { $as_unset LANG || test "${LANG+set}" != set; } ||
41 { LANG=C; export LANG; }
42(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44 { LC_ALL=C; export LC_ALL; }
45(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47 { LC_TIME=C; export LC_TIME; }
48(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50 { LC_CTYPE=C; export LC_CTYPE; }
51(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53 { LANGUAGE=C; export LANGUAGE; }
54(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56 { LC_COLLATE=C; export LC_COLLATE; }
57(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59 { LC_NUMERIC=C; export LC_NUMERIC; }
60(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62 { LC_MESSAGES=C; export LC_MESSAGES; }
63
64
65# Name of the executable.
66as_me=`(basename "$0") 2>/dev/null ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77# PATH needs CR, and LINENO needs CR and PATH.
78# Avoid depending upon Character Ranges.
79as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82as_cr_digits='0123456789'
83as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85# The user is always right.
86if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conftest.sh
88 echo "exit 0" >>conftest.sh
89 chmod +x conftest.sh
90 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
94 fi
95 rm -f conftest.sh
96fi
97
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {

--- 31 unchanged lines hidden (view full) ---

135 case $as_dir in
136 /*)
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149done
150;;

--- 56 unchanged lines hidden (view full) ---

207 fi
208elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210else
211 as_ln_s='cp -p'
212fi
213rm -f conf$$ conf$$.exe conf$$.file
214
215as_executable_p="test -f"
216
217# Sed expression to map a string onto a valid CPP name.
218as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219
220# Sed expression to map a string onto a valid variable name.
221as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222
223
224# IFS
225# We need space, tab and new line, in precisely that order.
226as_nl='
227'
228IFS=" $as_nl"
229
230# CDPATH.
231$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232
233
234# Name of the host.
235# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236# so uname gets run too.
237ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
238
239exec 6>&1
240
241#
242# Initializations.
243#
244ac_default_prefix=/usr/local
245cross_compiling=no
246subdirs=
247MFLAGS=
248MAKEFLAGS=
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251# Maximum number of lines to put in a shell here document.
252# This variable seems obsolete. It should probably be removed, and
253# only ac_max_sed_lines should be used.
254: ${ac_max_here_lines=38}
255
256# Identity of this package.
257PACKAGE_NAME='OpenPAM'
258PACKAGE_TARNAME='openpam'
259PACKAGE_VERSION='20040210'
260PACKAGE_STRING='OpenPAM 20040210'
261PACKAGE_BUGREPORT='des@freebsd.org'
262
263ac_unique_file="lib/pam_start.c"
264# Factoring default headers for most tests.
265ac_includes_default="\
266#include <stdio.h>
267#if HAVE_SYS_TYPES_H
268# include <sys/types.h>

--- 24 unchanged lines hidden (view full) ---

293# if HAVE_STDINT_H
294# include <stdint.h>
295# endif
296#endif
297#if HAVE_UNISTD_H
298# include <unistd.h>
299#endif"
300
301
302# Initialize some variables set by options.
303ac_init_help=
304ac_init_version=false
305# The variables have the same names as the options, with
306# dashes changed to underlines.
307cache_file=/dev/null
308exec_prefix=NONE

--- 341 unchanged lines hidden (view full) ---

650 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652 { (exit 1); exit 1; }; };;
653 esac
654done
655
656# Be sure to have absolute paths.
657for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658 localstatedir libdir includedir oldincludedir infodir mandir
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done

--- 23 unchanged lines hidden (view full) ---

690
691
692# Find the source files, if location was not specified.
693if test -z "$srcdir"; then
694 ac_srcdir_defaulted=yes
695 # Try the directory containing this script, then its parent.
696 ac_confdir=`(dirname "$0") 2>/dev/null ||
697$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698 X"$0" : 'X\(//\)[^/]' \| \
699 X"$0" : 'X\(//\)$' \| \
700 X"$0" : 'X\(/\)' \| \
701 . : '\(.\)' 2>/dev/null ||
702echo X"$0" |
703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705 /^X\(\/\/\)$/{ s//\1/; q; }
706 /^X\(\/\).*/{ s//\1/; q; }
707 s/.*/./; q'`
708 srcdir=$ac_confdir
709 if test ! -r $srcdir/$ac_unique_file; then

--- 6 unchanged lines hidden (view full) ---

716 if test "$ac_srcdir_defaulted" = yes; then
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718 { (exit 1); exit 1; }; }
719 else
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721 { (exit 1); exit 1; }; }
722 fi
723fi
724srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725ac_env_build_alias_set=${build_alias+set}
726ac_env_build_alias_value=$build_alias
727ac_cv_env_build_alias_set=${build_alias+set}
728ac_cv_env_build_alias_value=$build_alias
729ac_env_host_alias_set=${host_alias+set}
730ac_env_host_alias_value=$host_alias
731ac_cv_env_host_alias_set=${host_alias+set}

--- 17 unchanged lines hidden (view full) ---

749ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_env_CPPFLAGS_value=$CPPFLAGS
751ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753ac_env_CPP_set=${CPP+set}
754ac_env_CPP_value=$CPP
755ac_cv_env_CPP_set=${CPP+set}
756ac_cv_env_CPP_value=$CPP
757
758#
759# Report the --help message.
760#
761if test "$ac_init_help" = "long"; then
762 # Omit some internal or obsolete options to make the list less imposing.
763 # This message is too long to be a string in the A/UX 3.1 sh.
764 cat <<_ACEOF
765\`configure' configures OpenPAM 20040210 to adapt to many kinds of systems.
766
767Usage: $0 [OPTION]... [VAR=VALUE]...
768
769To assign environment variables (e.g., CC, CFLAGS...), specify them as
770VAR=VALUE. See below for descriptions of some of the useful variables.
771
772Defaults for the options are specified in brackets.
773

--- 8 unchanged lines hidden (view full) ---

782 -n, --no-create do not create output files
783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
784
785_ACEOF
786
787 cat <<_ACEOF
788Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
790 [$ac_default_prefix]
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 [PREFIX]
793
794By default, \`make install' will install all the files in
795\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
796an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797for instance \`--prefix=\$HOME'.
798
799For better control, use the options below.
800

--- 23 unchanged lines hidden (view full) ---

824 --build=BUILD configure for building on BUILD [guessed]
825 --host=HOST cross-compile to build programs to run on HOST [BUILD]
826 --target=TARGET configure for building compilers for TARGET [HOST]
827_ACEOF
828fi
829
830if test -n "$ac_init_help"; then
831 case $ac_init_help in
832 short | recursive ) echo "Configuration of OpenPAM 20040210:";;
833 esac
834 cat <<\_ACEOF
835
836Optional Features:
837 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
838 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
839 --enable-static=PKGS build static libraries default=no
840 --enable-shared=PKGS build shared libraries default=yes
841 --enable-fast-install=PKGS optimize for fast installation default=yes
842 --disable-libtool-lock avoid locking (might break parallel builds)
843 --disable-dependency-tracking Speeds up one-time builds
844 --enable-dependency-tracking Do not reject slow dependency extractors
845 --disable-unversioned-modules
846 support loading of unversioned modules
847
848Optional Packages:
849 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
850 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
851 --with-gnu-ld assume the C compiler uses GNU ld default=no
852 --with-modules-dir=DIR OpenPAM modules directory
853 --with-pam-su compile example version of /bin/su
854 --with-pam-unix compile example version of pam_unix.so
855
856Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863 CPP C preprocessor
864
865Use these variables to override the choices made by `configure' or to help
866it to find libraries and programs with nonstandard names/locations.
867
868Report bugs to <des@freebsd.org>.
869_ACEOF
870fi
871

--- 22 unchanged lines hidden (view full) ---

894 fi ;;
895 [\\/]* | ?:[\\/]* ) # Absolute path.
896 ac_srcdir=$srcdir$ac_dir_suffix;
897 ac_top_srcdir=$srcdir ;;
898 *) # Relative path.
899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901esac
902# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
903# absolute.
904ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
905ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
906ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
907ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
908
909 cd $ac_dir
910 # Check for guested configure; otherwise get Cygnus style configure.
911 if test -f $ac_srcdir/configure.gnu; then
912 echo
913 $SHELL $ac_srcdir/configure.gnu --help=recursive
914 elif test -f $ac_srcdir/configure; then
915 echo
916 $SHELL $ac_srcdir/configure --help=recursive
917 elif test -f $ac_srcdir/configure.ac ||
918 test -f $ac_srcdir/configure.in; then
919 echo
920 $ac_configure --help
921 else
922 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
923 fi
924 cd $ac_popdir
925 done
926fi
927
928test -n "$ac_init_help" && exit 0
929if $ac_init_version; then
930 cat <<\_ACEOF
931OpenPAM configure 20040210
932generated by GNU Autoconf 2.53
933
934Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935Free Software Foundation, Inc.
936This configure script is free software; the Free Software Foundation
937gives unlimited permission to copy, distribute and modify it.
938_ACEOF
939 exit 0
940fi
941exec 5>config.log
942cat >&5 <<_ACEOF
943This file contains any messages produced by compilers while
944running configure, to aid debugging if configure makes a mistake.
945
946It was created by OpenPAM $as_me 20040210, which was
947generated by GNU Autoconf 2.53. Invocation command line was
948
949 $ $0 $@
950
951_ACEOF
952{
953cat <<_ASUNAME
954## --------- ##
955## Platform. ##

--- 35 unchanged lines hidden (view full) ---

991## Core tests. ##
992## ----------- ##
993
994_ACEOF
995
996
997# Keep a trace of the command line.
998# Strip out --no-create and --no-recursion so they do not pile up.
999# Also quote any args containing shell meta-characters.
1000ac_configure_args=
1001ac_sep=
1002for ac_arg
1003do
1004 case $ac_arg in
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n ) continue ;;
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 continue ;;
1010 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1011 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1012 esac
1013 case " $ac_configure_args " in
1014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1015 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1016 ac_sep=" " ;;
1017 esac
1018 # Get rid of the leading space.
1019done
1020
1021# When interrupted or exit'd, cleanup temporary files, and complete
1022# config.log. We remove comments because anyway the quotes in there
1023# would cause problems or look ugly.
1024# WARNING: Be sure not to use single quotes in there, as some shells,
1025# such as our DU 5.0 friend, will then `close' the trap.
1026trap 'exit_status=$?
1027 # Save into config.log some information that might help in debugging.
1028 {
1029 echo
1030 cat <<\_ASBOX
1031## ---------------- ##
1032## Cache variables. ##
1033## ---------------- ##
1034_ASBOX
1035 echo
1036 # The following way of writing the cache mishandles newlines in values,
1037{
1038 (set) 2>&1 |
1039 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1040 *ac_space=\ *)
1041 sed -n \
1042 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1044 ;;
1045 *)
1046 sed -n \
1047 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1048 ;;
1049 esac;
1050}
1051 echo
1052 if test -s confdefs.h; then
1053 cat <<\_ASBOX
1054## ----------- ##
1055## confdefs.h. ##
1056## ----------- ##
1057_ASBOX
1058 echo
1059 sed "/^$/d" confdefs.h
1060 echo
1061 fi
1062 test "$ac_signal" != 0 &&
1063 echo "$as_me: caught signal $ac_signal"
1064 echo "$as_me: exit $exit_status"
1065 } >&5
1066 rm -f core core.* *.core &&
1067 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1068 exit $exit_status
1069 ' 0
1070for ac_signal in 1 2 13 15; do
1071 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1072done
1073ac_signal=0
1074

--- 63 unchanged lines hidden (view full) ---

1138echo "$as_me: creating cache $cache_file" >&6;}
1139 >$cache_file
1140fi
1141
1142# Check that the precious variables saved in the cache have kept the same
1143# value.
1144ac_cache_corrupted=false
1145for ac_var in `(set) 2>&1 |
1146 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1147 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1148 eval ac_new_set=\$ac_env_${ac_var}_set
1149 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1150 eval ac_new_val="\$ac_env_${ac_var}_value"
1151 case $ac_old_set,$ac_new_set in
1152 set,)
1153 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1154echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1155 ac_cache_corrupted=: ;;
1156 ,set)
1157 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1158echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1159 ac_cache_corrupted=: ;;
1160 ,);;
1161 *)
1162 if test "x$ac_old_val" != "x$ac_new_val"; then
1163 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1164echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1165 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1166echo "$as_me: former value: $ac_old_val" >&2;}
1167 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1168echo "$as_me: current value: $ac_new_val" >&2;}
1169 ac_cache_corrupted=:
1170 fi;;
1171 esac
1172 # Pass precious variables to config.status.
1173 if test "$ac_new_set" = set; then
1174 case $ac_new_val in
1175 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1176 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1177 *) ac_arg=$ac_var=$ac_new_val ;;

--- 40 unchanged lines hidden (view full) ---

1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228 ac_config_headers="$ac_config_headers config.h"
1229
1230
1231ac_aux_dir=
1232for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1233 if test -f $ac_dir/install-sh; then
1234 ac_aux_dir=$ac_dir
1235 ac_install_sh="$ac_aux_dir/install-sh -c"
1236 break
1237 elif test -f $ac_dir/install.sh; then
1238 ac_aux_dir=$ac_dir

--- 295 unchanged lines hidden (view full) ---

1534 # We found a bogon in the path, so make sure we never use it.
1535 set dummy $ac_cv_prog_CC
1536 shift
1537 if test $# != 0; then
1538 # We chose a different compiler from the bogus one.
1539 # However, it has the same basename, so the bogon will be chosen
1540 # first if we set CC to just the basename; use the full file name.
1541 shift
1542 set dummy "$as_dir/$ac_word" ${1+"$@"}
1543 shift
1544 ac_cv_prog_CC="$@"
1545 fi
1546fi
1547fi
1548fi
1549CC=$ac_cv_prog_CC
1550if test -n "$CC"; then
1551 echo "$as_me:$LINENO: result: $CC" >&5
1552echo "${ECHO_T}$CC" >&6

--- 88 unchanged lines hidden (view full) ---

1641done
1642
1643 CC=$ac_ct_CC
1644fi
1645
1646fi
1647
1648
1649test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1650echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653# Provide some information about the compiler.
1654echo "$as_me:$LINENO:" \
1655 "checking for C compiler version" >&5
1656ac_compiler=`set X $ac_compile; echo $2`
1657{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1658 (eval $ac_compiler --version </dev/null >&5) 2>&5

--- 7 unchanged lines hidden (view full) ---

1666 (exit $ac_status); }
1667{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1668 (eval $ac_compiler -V </dev/null >&5) 2>&5
1669 ac_status=$?
1670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671 (exit $ac_status); }
1672
1673cat >conftest.$ac_ext <<_ACEOF
1674#line $LINENO "configure"
1675#include "confdefs.h"
1676
1677#ifdef F77_DUMMY_MAIN
1678# ifdef __cplusplus
1679 extern "C"
1680# endif
1681 int F77_DUMMY_MAIN() { return 1; }
1682#endif
1683int
1684main ()
1685{
1686
1687 ;
1688 return 0;
1689}
1690_ACEOF
1691ac_clean_files_save=$ac_clean_files
1692ac_clean_files="$ac_clean_files a.out a.exe"
1693# Try to create an executable without -o first, disregard a.out.
1694# It will help us diagnose broken compilers, and finding out an intuition
1695# of exeext.
1696echo "$as_me:$LINENO: checking for C compiler default output" >&5
1697echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1698ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1699if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1700 (eval $ac_link_default) 2>&5
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }; then
1704 # Find the output, starting from the most likely. This scheme is
1705# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1706# resort.
1707
1708# Be careful to initialize this variable, since it used to be cached.
1709# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1710ac_cv_exeext=
1711for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1712 ls a.out conftest 2>/dev/null;
1713 ls a.* conftest.* 2>/dev/null`; do
1714 case $ac_file in
1715 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1716 a.out ) # We found the default executable, but exeext='' is most
1717 # certainly right.
1718 break;;
1719 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1720 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1721 export ac_cv_exeext
1722 break;;
1723 * ) break;;
1724 esac
1725done
1726else
1727 echo "$as_me: failed program was:" >&5
1728cat conftest.$ac_ext >&5
1729{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1730echo "$as_me: error: C compiler cannot create executables" >&2;}
1731 { (exit 77); exit 77; }; }
1732fi
1733
1734ac_exeext=$ac_cv_exeext
1735echo "$as_me:$LINENO: result: $ac_file" >&5
1736echo "${ECHO_T}$ac_file" >&6
1737
1738# Check the compiler produces executables we can run. If not, either

--- 10 unchanged lines hidden (view full) ---

1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750 (exit $ac_status); }; }; then
1751 cross_compiling=no
1752 else
1753 if test "$cross_compiling" = maybe; then
1754 cross_compiling=yes
1755 else
1756 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1757If you meant to cross compile, use \`--host'." >&5
1758echo "$as_me: error: cannot run C compiled programs.
1759If you meant to cross compile, use \`--host'." >&2;}
1760 { (exit 1); exit 1; }; }
1761 fi
1762 fi
1763fi
1764echo "$as_me:$LINENO: result: yes" >&5
1765echo "${ECHO_T}yes" >&6
1766
1767rm -f a.out a.exe conftest$ac_cv_exeext
1768ac_clean_files=$ac_clean_files_save
1769# Check the compiler produces executables we can run. If not, either
1770# the compiler is broken, or we cross compile.
1771echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1772echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1773echo "$as_me:$LINENO: result: $cross_compiling" >&5
1774echo "${ECHO_T}$cross_compiling" >&6
1775
1776echo "$as_me:$LINENO: checking for suffix of executables" >&5
1777echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1779 (eval $ac_link) 2>&5
1780 ac_status=$?
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); }; then
1783 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1784# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1785# work properly (i.e., refer to `conftest.exe'), while it won't with
1786# `rm'.
1787for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1788 case $ac_file in
1789 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1790 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1791 export ac_cv_exeext
1792 break;;
1793 * ) break;;
1794 esac
1795done
1796else
1797 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1798echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1799 { (exit 1); exit 1; }; }
1800fi
1801
1802rm -f conftest$ac_cv_exeext
1803echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1804echo "${ECHO_T}$ac_cv_exeext" >&6
1805
1806rm -f conftest.$ac_ext
1807EXEEXT=$ac_cv_exeext
1808ac_exeext=$EXEEXT
1809echo "$as_me:$LINENO: checking for suffix of object files" >&5
1810echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1811if test "${ac_cv_objext+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 cat >conftest.$ac_ext <<_ACEOF
1815#line $LINENO "configure"
1816#include "confdefs.h"
1817
1818#ifdef F77_DUMMY_MAIN
1819# ifdef __cplusplus
1820 extern "C"
1821# endif
1822 int F77_DUMMY_MAIN() { return 1; }
1823#endif
1824int
1825main ()
1826{
1827
1828 ;
1829 return 0;
1830}
1831_ACEOF
1832rm -f conftest.o conftest.obj
1833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1834 (eval $ac_compile) 2>&5
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; then
1838 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1839 case $ac_file in
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1841 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1842 break;;
1843 esac
1844done
1845else
1846 echo "$as_me: failed program was:" >&5
1847cat conftest.$ac_ext >&5
1848{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1849echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1850 { (exit 1); exit 1; }; }
1851fi
1852
1853rm -f conftest.$ac_cv_objext conftest.$ac_ext
1854fi
1855echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1856echo "${ECHO_T}$ac_cv_objext" >&6
1857OBJEXT=$ac_cv_objext
1858ac_objext=$OBJEXT
1859echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1860echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1861if test "${ac_cv_c_compiler_gnu+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864 cat >conftest.$ac_ext <<_ACEOF
1865#line $LINENO "configure"
1866#include "confdefs.h"
1867
1868#ifdef F77_DUMMY_MAIN
1869# ifdef __cplusplus
1870 extern "C"
1871# endif
1872 int F77_DUMMY_MAIN() { return 1; }
1873#endif
1874int
1875main ()
1876{
1877#ifndef __GNUC__
1878 choke me
1879#endif
1880
1881 ;
1882 return 0;
1883}
1884_ACEOF
1885rm -f conftest.$ac_objext
1886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1887 (eval $ac_compile) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); } &&
1891 { ac_try='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 (eval $ac_try) 2>&5
1894 ac_status=$?
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1897 ac_compiler_gnu=yes
1898else
1899 echo "$as_me: failed program was:" >&5
1900cat conftest.$ac_ext >&5
1901ac_compiler_gnu=no
1902fi
1903rm -f conftest.$ac_objext conftest.$ac_ext
1904ac_cv_c_compiler_gnu=$ac_compiler_gnu
1905
1906fi
1907echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1908echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1909GCC=`test $ac_compiler_gnu = yes && echo yes`
1910ac_test_CFLAGS=${CFLAGS+set}
1911ac_save_CFLAGS=$CFLAGS
1912CFLAGS="-g"
1913echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1914echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1915if test "${ac_cv_prog_cc_g+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917else
1918 cat >conftest.$ac_ext <<_ACEOF
1919#line $LINENO "configure"
1920#include "confdefs.h"
1921
1922#ifdef F77_DUMMY_MAIN
1923# ifdef __cplusplus
1924 extern "C"
1925# endif
1926 int F77_DUMMY_MAIN() { return 1; }
1927#endif
1928int
1929main ()
1930{
1931
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936rm -f conftest.$ac_objext
1937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 (eval $ac_try) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1948 ac_cv_prog_cc_g=yes
1949else
1950 echo "$as_me: failed program was:" >&5
1951cat conftest.$ac_ext >&5
1952ac_cv_prog_cc_g=no
1953fi
1954rm -f conftest.$ac_objext conftest.$ac_ext
1955fi
1956echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1957echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1958if test "$ac_test_CFLAGS" = set; then
1959 CFLAGS=$ac_save_CFLAGS
1960elif test $ac_cv_prog_cc_g = yes; then
1961 if test "$GCC" = yes; then
1962 CFLAGS="-g -O2"
1963 else
1964 CFLAGS="-g"
1965 fi
1966else
1967 if test "$GCC" = yes; then
1968 CFLAGS="-O2"
1969 else
1970 CFLAGS=
1971 fi
1972fi
1973# Some people use a C++ compiler to compile C. Since we use `exit',
1974# in C++ we need to declare it. In case someone uses the same compiler
1975# for both compiling C and C++ we need to have the C++ compiler decide
1976# the declaration of exit, since it's the most demanding environment.
1977cat >conftest.$ac_ext <<_ACEOF
1978#ifndef __cplusplus
1979 choke me
1980#endif
1981_ACEOF
1982rm -f conftest.$ac_objext
1983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1984 (eval $ac_compile) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); } &&
1988 { ac_try='test -s conftest.$ac_objext'
1989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1990 (eval $ac_try) 2>&5
1991 ac_status=$?
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; }; then
1994 for ac_declaration in \
1995 ''\
1996 '#include <stdlib.h>' \
1997 'extern "C" void std::exit (int) throw (); using std::exit;' \
1998 'extern "C" void std::exit (int); using std::exit;' \
1999 'extern "C" void exit (int) throw ();' \
2000 'extern "C" void exit (int);' \
2001 'void exit (int);'
2002do
2003 cat >conftest.$ac_ext <<_ACEOF
2004#line $LINENO "configure"
2005#include "confdefs.h"
2006#include <stdlib.h>
2007$ac_declaration
2008#ifdef F77_DUMMY_MAIN
2009# ifdef __cplusplus
2010 extern "C"
2011# endif
2012 int F77_DUMMY_MAIN() { return 1; }
2013#endif
2014int
2015main ()
2016{
2017exit (42);
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022rm -f conftest.$ac_objext
2023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 (eval $ac_try) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2034 :
2035else
2036 echo "$as_me: failed program was:" >&5
2037cat conftest.$ac_ext >&5
2038continue
2039fi
2040rm -f conftest.$ac_objext conftest.$ac_ext
2041 cat >conftest.$ac_ext <<_ACEOF
2042#line $LINENO "configure"
2043#include "confdefs.h"
2044$ac_declaration
2045#ifdef F77_DUMMY_MAIN
2046# ifdef __cplusplus
2047 extern "C"
2048# endif
2049 int F77_DUMMY_MAIN() { return 1; }
2050#endif
2051int
2052main ()
2053{
2054exit (42);
2055 ;
2056 return 0;
2057}
2058_ACEOF
2059rm -f conftest.$ac_objext
2060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 break
2072else
2073 echo "$as_me: failed program was:" >&5
2074cat conftest.$ac_ext >&5
2075fi
2076rm -f conftest.$ac_objext conftest.$ac_ext
2077done
2078rm -f conftest*
2079if test -n "$ac_declaration"; then
2080 echo '#ifdef __cplusplus' >>confdefs.h
2081 echo $ac_declaration >>confdefs.h
2082 echo '#endif' >>confdefs.h
2083fi
2084
2085else
2086 echo "$as_me: failed program was:" >&5
2087cat conftest.$ac_ext >&5
2088fi
2089rm -f conftest.$ac_objext conftest.$ac_ext
2090ac_ext=c
2091ac_cpp='$CPP $CPPFLAGS'
2092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2098echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2099if test "${ac_cv_prog_cc_stdc+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102 ac_cv_prog_cc_stdc=no
2103ac_save_CC=$CC
2104cat >conftest.$ac_ext <<_ACEOF
2105#line $LINENO "configure"
2106#include "confdefs.h"
2107#include <stdarg.h>
2108#include <stdio.h>
2109#include <sys/types.h>
2110#include <sys/stat.h>
2111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112struct buf { int x; };
2113FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114static char *e (p, i)
2115 char **p;
2116 int i;
2117{
2118 return p[i];
2119}
2120static char *f (char * (*g) (char **, int), char **p, ...)
2121{
2122 char *s;
2123 va_list v;
2124 va_start (v,p);
2125 s = g (p, va_arg (v,int));
2126 va_end (v);
2127 return s;
2128}
2129int test (int i, double x);
2130struct s1 {int (*f) (int a);};
2131struct s2 {int (*f) (double a);};
2132int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2133int argc;
2134char **argv;
2135#ifdef F77_DUMMY_MAIN
2136# ifdef __cplusplus
2137 extern "C"
2138# endif
2139 int F77_DUMMY_MAIN() { return 1; }
2140#endif
2141int
2142main ()
2143{
2144return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149# Don't try gcc -ansi; that turns off useful extensions and
2150# breaks some systems' header files.
2151# AIX -qlanglvl=ansi
2152# Ultrix and OSF/1 -std1
2153# HP-UX 10.20 and later -Ae
2154# HP-UX older versions -Aa -D_HPUX_SOURCE
2155# SVR4 -Xc -D__EXTENSIONS__
2156for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2157do
2158 CC="$ac_save_CC $ac_arg"
2159 rm -f conftest.$ac_objext
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -s conftest.$ac_objext'
2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 (eval $ac_try) 2>&5
2168 ac_status=$?
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; }; then
2171 ac_cv_prog_cc_stdc=$ac_arg
2172break
2173else
2174 echo "$as_me: failed program was:" >&5
2175cat conftest.$ac_ext >&5
2176fi
2177rm -f conftest.$ac_objext
2178done
2179rm -f conftest.$ac_ext conftest.$ac_objext
2180CC=$ac_save_CC
2181
2182fi
2183
2184case "x$ac_cv_prog_cc_stdc" in
2185 x|xno)
2186 echo "$as_me:$LINENO: result: none needed" >&5
2187echo "${ECHO_T}none needed" >&6 ;;
2188 *)
2189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2190echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2191 CC="$CC $ac_cv_prog_cc_stdc" ;;
2192esac
2193
2194echo "$as_me:$LINENO: checking for working volatile" >&5
2195echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
2196if test "${ac_cv_c_volatile+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 cat >conftest.$ac_ext <<_ACEOF
2200#line $LINENO "configure"
2201#include "confdefs.h"
2202
2203#ifdef F77_DUMMY_MAIN
2204# ifdef __cplusplus
2205 extern "C"
2206# endif
2207 int F77_DUMMY_MAIN() { return 1; }
2208#endif
2209int
2210main ()
2211{
2212
2213volatile int x;
2214int * volatile y;
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -s conftest.$ac_objext'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 ac_cv_c_volatile=yes
2232else
2233 echo "$as_me: failed program was:" >&5
2234cat conftest.$ac_ext >&5
2235ac_cv_c_volatile=no
2236fi
2237rm -f conftest.$ac_objext conftest.$ac_ext
2238fi
2239echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
2240echo "${ECHO_T}$ac_cv_c_volatile" >&6
2241if test $ac_cv_c_volatile = no; then
2242
2243cat >>confdefs.h <<\_ACEOF
2244#define volatile
2245_ACEOF
2246
2247fi
2248
2249# Check whether --enable-static or --disable-static was given.
2250if test "${enable_static+set}" = set; then
2251 enableval="$enable_static"
2252 p=${PACKAGE-default}
2253case "$enableval" in
2254yes) enable_static=yes ;;
2255no) enable_static=no ;;
2256*)
2257 enable_static=no
2258 # Look at the argument we got. We use all the common list separators.
2259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2260 for pkg in $enableval; do
2261 if test "X$pkg" = "X$p"; then
2262 enable_static=yes
2263 fi
2264 done
2265 IFS="$ac_save_ifs"
2266 ;;
2267esac
2268else
2269 enable_static=no
2270fi;
2271# Check whether --enable-shared or --disable-shared was given.
2272if test "${enable_shared+set}" = set; then
2273 enableval="$enable_shared"
2274 p=${PACKAGE-default}
2275case "$enableval" in
2276yes) enable_shared=yes ;;
2277no) enable_shared=no ;;
2278*)
2279 enable_shared=no
2280 # Look at the argument we got. We use all the common list separators.
2281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2282 for pkg in $enableval; do
2283 if test "X$pkg" = "X$p"; then
2284 enable_shared=yes
2285 fi
2286 done
2287 IFS="$ac_save_ifs"
2288 ;;
2289esac
2290else
2291 enable_shared=yes
2292fi;
2293# Check whether --enable-fast-install or --disable-fast-install was given.
2294if test "${enable_fast_install+set}" = set; then
2295 enableval="$enable_fast_install"
2296 p=${PACKAGE-default}
2297case "$enableval" in
2298yes) enable_fast_install=yes ;;
2299no) enable_fast_install=no ;;
2300*)
2301 enable_fast_install=no
2302 # Look at the argument we got. We use all the common list separators.
2303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2304 for pkg in $enableval; do
2305 if test "X$pkg" = "X$p"; then
2306 enable_fast_install=yes
2307 fi
2308 done
2309 IFS="$ac_save_ifs"
2310 ;;
2311esac
2312else
2313 enable_fast_install=yes
2314fi;
2315if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2317set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2318echo "$as_me:$LINENO: checking for $ac_word" >&5
2319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320if test "${ac_cv_prog_RANLIB+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322else

--- 64 unchanged lines hidden (view full) ---

2387echo "${ECHO_T}no" >&6
2388fi
2389
2390 RANLIB=$ac_ct_RANLIB
2391else
2392 RANLIB="$ac_cv_prog_RANLIB"
2393fi
2394
2395
2396# Check whether --with-gnu-ld or --without-gnu-ld was given.
2397if test "${with_gnu_ld+set}" = set; then
2398 withval="$with_gnu_ld"
2399 test "$withval" = no || with_gnu_ld=yes
2400else
2401 with_gnu_ld=no
2402fi;
2403ac_prog=ld
2404if test "$ac_cv_c_compiler_gnu" = yes; then
2405 # Check if gcc -print-prog-name=ld gives a path.
2406 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2407echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2408 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2409 case "$ac_prog" in
2410 # Accept absolute paths.
2411 [\\/]* | [A-Za-z]:[\\/]*)
2412 re_direlt='/[^/][^/]*/\.\./'
2413 # Canonicalize the path of ld
2414 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2415 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2416 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2417 done
2418 test -z "$LD" && LD="$ac_prog"
2419 ;;
2420 "")
2421 # If it fails, then pretend we aren't using GCC.
2422 ac_prog=ld
2423 ;;
2424 *)
2425 # If it is relative, then search for the first ld in PATH.
2426 with_gnu_ld=unknown
2427 ;;
2428 esac
2429elif test "$with_gnu_ld" = yes; then
2430 echo "$as_me:$LINENO: checking for GNU ld" >&5
2431echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2432else
2433 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2434echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2435fi
2436if test "${ac_cv_path_LD+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439 if test -z "$LD"; then
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2441 for ac_dir in $PATH; do
2442 test -z "$ac_dir" && ac_dir=.
2443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2444 ac_cv_path_LD="$ac_dir/$ac_prog"
2445 # Check to see if the program is GNU ld. I'd rather use --version,
2446 # but apparently some GNU ld's only accept -v.
2447 # Break only if it was the GNU/non-GNU ld that we prefer.
2448 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2449 test "$with_gnu_ld" != no && break
2450 else
2451 test "$with_gnu_ld" != yes && break
2452 fi
2453 fi
2454 done
2455 IFS="$ac_save_ifs"
2456else
2457 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2458fi
2459fi
2460
2461LD="$ac_cv_path_LD"
2462if test -n "$LD"; then
2463 echo "$as_me:$LINENO: result: $LD" >&5
2464echo "${ECHO_T}$LD" >&6
2465else
2466 echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6
2468fi
2469test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2470echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2471 { (exit 1); exit 1; }; }
2472echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2473echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2474if test "${ac_cv_prog_gnu_ld+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2478if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2479 ac_cv_prog_gnu_ld=yes
2480else
2481 ac_cv_prog_gnu_ld=no
2482fi
2483fi
2484echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2485echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2486
2487
2488echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2489echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2490if test "${ac_cv_path_NM+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493 if test -n "$NM"; then
2494 # Let the user override the test.
2495 ac_cv_path_NM="$NM"
2496else
2497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2498 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2499 test -z "$ac_dir" && ac_dir=.
2500 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2501 # Check to see if the nm accepts a BSD-compat flag.
2502 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2503 # nm: unknown option "B" ignored
2504 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2505 ac_cv_path_NM="$ac_dir/nm -B"
2506 break
2507 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2508 ac_cv_path_NM="$ac_dir/nm -p"
2509 break
2510 else
2511 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2512 continue # so that we can try to find one that supports BSD flags
2513 fi
2514 fi
2515 done
2516 IFS="$ac_save_ifs"
2517 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2518fi
2519fi
2520
2521NM="$ac_cv_path_NM"
2522echo "$as_me:$LINENO: result: $NM" >&5
2523echo "${ECHO_T}$NM" >&6
2524
2525echo "$as_me:$LINENO: checking whether ln -s works" >&5
2526echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2527LN_S=$as_ln_s
2528if test "$LN_S" = "ln -s"; then
2529 echo "$as_me:$LINENO: result: yes" >&5
2530echo "${ECHO_T}yes" >&6
2531else
2532 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2533echo "${ECHO_T}no, using $LN_S" >&6
2534fi
2535
2536
2537case "$target" in
2538NONE) lt_target="$host" ;;
2539*) lt_target="$target" ;;
2540esac
2541
2542# Check for any special flags to pass to ltconfig.
2543libtool_flags="--cache-file=$cache_file"
2544test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2545test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2546test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2547test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
2548test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2549
2550
2551# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2552if test "${enable_libtool_lock+set}" = set; then
2553 enableval="$enable_libtool_lock"
2554
2555fi;
2556test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2557test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2558
2559# Some flags need to be propagated to the compiler or linker for good
2560# libtool support.
2561case "$lt_target" in
2562*-*-irix6*)
2563 # Find out which ABI we are using.
2564 echo '#line 2564 "configure"' > conftest.$ac_ext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 case "`/usr/bin/file conftest.o`" in
2571 *32-bit*)
2572 LD="${LD-ld} -32"
2573 ;;
2574 *N32*)
2575 LD="${LD-ld} -n32"
2576 ;;
2577 *64-bit*)
2578 LD="${LD-ld} -64"
2579 ;;
2580 esac
2581 fi
2582 rm -rf conftest*
2583 ;;
2584
2585*-*-sco3.2v5*)
2586 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2587 SAVE_CFLAGS="$CFLAGS"
2588 CFLAGS="$CFLAGS -belf"
2589 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
2590echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2591if test "${lt_cv_cc_needs_belf+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594 cat >conftest.$ac_ext <<_ACEOF
2595#line $LINENO "configure"
2596#include "confdefs.h"
2597
2598#ifdef F77_DUMMY_MAIN
2599# ifdef __cplusplus
2600 extern "C"
2601# endif
2602 int F77_DUMMY_MAIN() { return 1; }
2603#endif
2604int
2605main ()
2606{
2607
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612rm -f conftest.$ac_objext conftest$ac_exeext
2613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2614 (eval $ac_link) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
2618 { ac_try='test -s conftest$ac_exeext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 lt_cv_cc_needs_belf=yes
2625else
2626 echo "$as_me: failed program was:" >&5
2627cat conftest.$ac_ext >&5
2628lt_cv_cc_needs_belf=no
2629fi
2630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2631fi
2632echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2633echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2634 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2635 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2636 CFLAGS="$SAVE_CFLAGS"
2637 fi
2638 ;;
2639
2640
2641esac
2642
2643
2644# Save cache, so that ltconfig can load it
2645cat >confcache <<\_ACEOF
2646# This file is a shell script that caches the results of configure
2647# tests run on this system so they can be shared between configure
2648# scripts and configure runs, see configure's option --config-cache.
2649# It is not useful on other systems. If it contains results you don't
2650# want to keep, you may remove or edit it.
2651#
2652# config.status only pays attention to the cache file if you give it
2653# the --recheck option to rerun configure.
2654#
2655# `ac_cv_env_foo' variables (set or unset) will be overriden when
2656# loading this file, other *unset* `ac_cv_foo' will be assigned the
2657# following values.
2658
2659_ACEOF
2660
2661# The following way of writing the cache mishandles newlines in values,
2662# but we know of no workaround that is simple, portable, and efficient.
2663# So, don't put newlines in cache variables' values.
2664# Ultrix sh set writes to stderr and can't be redirected directly,
2665# and sets the high bit in the cache file unless we assign to the vars.
2666{
2667 (set) 2>&1 |
2668 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2669 *ac_space=\ *)
2670 # `set' does not quote correctly, so add quotes (double-quote
2671 # substitution turns \\\\ into \\, and sed turns \\ into \).
2672 sed -n \
2673 "s/'/'\\\\''/g;
2674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2675 ;;
2676 *)
2677 # `set' quotes correctly as required by POSIX, so do not add quotes.
2678 sed -n \
2679 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2680 ;;
2681 esac;
2682} |
2683 sed '
2684 t clear
2685 : clear
2686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2687 t end
2688 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2689 : end' >>confcache
2690if cmp -s $cache_file confcache; then :; else
2691 if test -w $cache_file; then
2692 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2693 cat confcache >$cache_file
2694 else
2695 echo "not updating unwritable cache $cache_file"
2696 fi
2697fi
2698rm -f confcache
2699
2700# Actually configure libtool. ac_aux_dir is where install-sh is found.
2701CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2702LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2703LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2704DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2705${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2706$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2707|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
2708echo "$as_me: error: libtool configure failed" >&2;}
2709 { (exit 1); exit 1; }; }
2710
2711# Reload cache, that may have been modified by ltconfig
2712if test -r "$cache_file"; then
2713 # Some versions of bash will fail to source /dev/null (special
2714 # files actually), so we avoid doing that.
2715 if test -f "$cache_file"; then
2716 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2717echo "$as_me: loading cache $cache_file" >&6;}
2718 case $cache_file in
2719 [\\/]* | ?:[\\/]* ) . $cache_file;;
2720 *) . ./$cache_file;;
2721 esac
2722 fi
2723else
2724 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2725echo "$as_me: creating cache $cache_file" >&6;}
2726 >$cache_file
2727fi
2728
2729
2730# This can be used to rebuild libtool when needed
2731LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2732
2733# Always use our own libtool.
2734LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2735
2736# Redirect the config.log output again, so that the ltconfig log is not
2737# clobbered by the next message.
2738exec 5>>./config.log
2739
2740# Find a good install program. We prefer a C program (faster),
2741# so one script is as good as another. But avoid the broken or
2742# incompatible versions:
2743# SysV /etc/install, /usr/sbin/install
2744# SunOS /usr/etc/install
2745# IRIX /sbin/install
2746# AIX /bin/install
2747# AmigaOS /C/install, which installs bootblocks on floppy discs
2748# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2749# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2750# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2751# ./install, which can be erroneously created by make from ./install.sh.
2752echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2753echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2754if test -z "$INSTALL"; then
2755if test "${ac_cv_path_install+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 # Account for people who put trailing slashes in PATH elements.
2764case $as_dir/ in
2765 ./ | .// | /cC/* | \
2766 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2767 /usr/ucb/* ) ;;
2768 *)
2769 # OSF1 and SCO ODT 3.0 have their own names for install.
2770 # Don't use installbsd from OSF since it installs stuff as root
2771 # by default.
2772 for ac_prog in ginstall scoinst install; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2775 if test $ac_prog = install &&
2776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # AIX install. It has an incompatible calling convention.
2778 :
2779 elif test $ac_prog = install &&
2780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # program-specific install script used by HP pwplus--don't use.
2782 :
2783 else
2784 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2785 break 3
2786 fi
2787 fi
2788 done
2789 done
2790 ;;
2791esac
2792done
2793
2794
2795fi

--- 71 unchanged lines hidden (view full) ---

2867# Double any \ or $. echo might interpret backslashes.
2868# By default was `s,x,x', remove it if useless.
2869cat <<\_ACEOF >conftest.sed
2870s/[\\$]/&&/g;s/;s,x,x,$//
2871_ACEOF
2872program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2873rm conftest.sed
2874
2875
2876# expand $ac_aux_dir to an absolute path
2877am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
2878
2879test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2880# Use eval to expand $SHELL
2881if eval "$MISSING --run true"; then
2882 am_missing_run="$MISSING --run "
2883else
2884 am_missing_run=
2885 am_backtick='`'
2886 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
2887echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
2888fi
2889
2890for ac_prog in gawk mawk nawk awk
2891do
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893set dummy $ac_prog; ac_word=$2
2894echo "$as_me:$LINENO: checking for $ac_word" >&5
2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896if test "${ac_cv_prog_AWK+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6

--- 24 unchanged lines hidden (view full) ---

2922else
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925fi
2926
2927 test -n "$AWK" && break
2928done
2929
2930echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2931echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2932set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2933if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935else
2936 cat >conftest.make <<\_ACEOF
2937all:
2938 @echo 'ac_maketemp="${MAKE}"'
2939_ACEOF
2940# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2941eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2942if test -n "$ac_maketemp"; then
2943 eval ac_cv_prog_make_${ac_make}_set=yes
2944else
2945 eval ac_cv_prog_make_${ac_make}_set=no
2946fi

--- 4 unchanged lines hidden (view full) ---

2951echo "${ECHO_T}yes" >&6
2952 SET_MAKE=
2953else
2954 echo "$as_me:$LINENO: result: no" >&5
2955echo "${ECHO_T}no" >&6
2956 SET_MAKE="MAKE=${MAKE-make}"
2957fi
2958
2959# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2960if test "${enable_dependency_tracking+set}" = set; then
2961 enableval="$enable_dependency_tracking"
2962
2963fi;
2964if test "x$enable_dependency_tracking" != xno; then
2965 am_depcomp="$ac_aux_dir/depcomp"
2966 AMDEPBACKSLASH='\'
2967fi
2968
2969
2970if test "x$enable_dependency_tracking" != xno; then
2971 AMDEP_TRUE=
2972 AMDEP_FALSE='#'
2973else
2974 AMDEP_TRUE='#'
2975 AMDEP_FALSE=
2976fi
2977
2978
2979
2980
2981rm -f .deps 2>/dev/null
2982mkdir .deps 2>/dev/null
2983if test -d .deps; then
2984 DEPDIR=.deps
2985else
2986 # MS-DOS does not allow filenames that begin with a dot.
2987 DEPDIR=_deps
2988fi
2989rmdir .deps 2>/dev/null
2990
2991
2992
2993ac_config_commands="$ac_config_commands default-1"
2994
2995am_make=${MAKE-make}
2996cat > confinc << 'END'
2997doit:
2998 @echo done
2999END
3000# If we don't find an include directive, just comment out the code.
3001echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3002echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3003am__include='#'
3004am__quote=
3005_am_result=none
3006# First try GNU make style include.
3007echo "include confinc" > confmf
3008# We grep out `Entering directory' and `Leaving directory'
3009# messages which can occur if `w' ends up in MAKEFLAGS.
3010# In particular we don't look at `^make:' because GNU make might
3011# be invoked under some other name (usually "gmake"), in which
3012# case it prints its new name instead of `make'.
3013if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3014 am__include=include
3015 am__quote=
3016 _am_result=GNU
3017fi
3018# Now try BSD make style include.
3019if test "$am__include" = "#"; then
3020 echo '.include "confinc"' > confmf
3021 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3022 am__include=.include
3023 am__quote='"'
3024 _am_result=BSD
3025 fi
3026fi
3027
3028
3029echo "$as_me:$LINENO: result: $_am_result" >&5
3030echo "${ECHO_T}$_am_result" >&6
3031rm -f confinc confmf
3032
3033# test to see if srcdir already configured
3034if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
3035 test -f $srcdir/config.status; then
3036 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3037echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3038 { (exit 1); exit 1; }; }
3039fi
3040
3041# Define the identity of the package.
3042PACKAGE=OpenPAM
3043VERSION=20040210
3044
3045cat >>confdefs.h <<_ACEOF
3046#define PACKAGE "$PACKAGE"
3047_ACEOF
3048
3049
3050cat >>confdefs.h <<_ACEOF
3051#define VERSION "$VERSION"
3052_ACEOF
3053
3054
3055# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
3056# the ones we care about.
3057
3058# Autoconf 2.50 always computes EXEEXT. However we need to be
3059# compatible with 2.13, for now. So we always define EXEEXT, but we
3060# don't compute it.
3061
3062# Similar for OBJEXT -- only we only use OBJEXT if the user actually
3063# requests that it be used. This is a bit dumb.
3064: ${OBJEXT=o}
3065
3066
3067# Some tools Automake needs.
3068
3069ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
3070
3071
3072AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3073
3074
3075AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
3076
3077
3078AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3079
3080
3081MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3082
3083
3084AMTAR=${AMTAR-"${am_missing_run}tar"}
3085
3086install_sh=${install_sh-"$am_aux_dir/install-sh"}
3087
3088INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3089
3090# We need awk for the "check" target. The system "awk" is bad on
3091# some platforms.
3092
3093depcc="$CC" am_compiler_list=
3094
3095echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3096echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3097if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3101 # We make a subdir and do the tests there. Otherwise we can end up
3102 # making bogus files that we don't know about and never remove. For
3103 # instance it was reported that on HP-UX the gcc test will end up
3104 # making a dummy file named `D' -- because `-MD' means `put the output
3105 # in D'.
3106 mkdir conftest.dir
3107 # Copy depcomp to subdir because otherwise we won't find it if we're
3108 # using a relative directory.
3109 cp "$am_depcomp" conftest.dir
3110 cd conftest.dir
3111
3112 am_cv_CC_dependencies_compiler_type=none
3113 if test "$am_compiler_list" = ""; then
3114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3115 fi
3116 for depmode in $am_compiler_list; do
3117 # We need to recreate these files for each test, as the compiler may
3118 # overwrite some of them when testing with obscure command lines.
3119 # This happens at least with the AIX C compiler.
3120 echo '#include "conftest.h"' > conftest.c
3121 echo 'int i;' > conftest.h
3122 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3123
3124 case $depmode in
3125 nosideeffect)
3126 # after this tag, mechanisms are not by side-effect, so they'll
3127 # only be used when explicitly requested
3128 if test "x$enable_dependency_tracking" = xyes; then
3129 continue
3130 else
3131 break
3132 fi
3133 ;;
3134 none) break ;;
3135 esac
3136 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3137 # mode. It turns out that the SunPro C++ compiler does not properly
3138 # handle `-M -o', and we need to detect this.
3139 if depmode=$depmode \
3140 source=conftest.c object=conftest.o \
3141 depfile=conftest.Po tmpdepfile=conftest.TPo \
3142 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3143 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3145 am_cv_CC_dependencies_compiler_type=$depmode
3146 break
3147 fi
3148 done
3149
3150 cd ..
3151 rm -rf conftest.dir
3152else
3153 am_cv_CC_dependencies_compiler_type=none
3154fi
3155
3156fi
3157echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3158echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3159CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
3160
3161
3162
3163LIB_MAJ=2
3164
3165
3166cat >>confdefs.h <<_ACEOF
3167#define LIB_MAJ $LIB_MAJ
3168_ACEOF
3169
3170

--- 46 unchanged lines hidden (view full) ---

3217echo "$as_me:$LINENO: checking whether to build example version of /bin/su" >&5
3218echo $ECHO_N "checking whether to build example version of /bin/su... $ECHO_C" >&6
3219
3220# Check whether --with-pam-su or --without-pam-su was given.
3221if test "${with_pam_su+set}" = set; then
3222 withval="$with_pam_su"
3223
3224else
3225 with_pam_su=yes
3226fi;
3227echo "$as_me:$LINENO: result: $with_pam_su" >&5
3228echo "${ECHO_T}$with_pam_su" >&6
3229
3230echo "$as_me:$LINENO: checking whether to build example version of pam_unix.so" >&5
3231echo $ECHO_N "checking whether to build example version of pam_unix.so... $ECHO_C" >&6
3232
3233# Check whether --with-pam-unix or --without-pam-unix was given.
3234if test "${with_pam_unix+set}" = set; then
3235 withval="$with_pam_unix"
3236
3237else
3238 with_pam_unix=yes
3239fi;
3240echo "$as_me:$LINENO: result: $with_pam_unix" >&5
3241echo "${ECHO_T}$with_pam_unix" >&6
3242
3243
3244
3245if test "x$with_pam_su" = "xyes"; then
3246 WITH_PAM_SU_TRUE=
3247 WITH_PAM_SU_FALSE='#'
3248else
3249 WITH_PAM_SU_TRUE='#'
3250 WITH_PAM_SU_FALSE=
3251fi
3252
3253
3254if test "x$with_pam_unix" = "xyes"; then
3255 WITH_PAM_UNIX_TRUE=
3256 WITH_PAM_UNIX_FALSE='#'
3257else
3258 WITH_PAM_UNIX_TRUE='#'
3259 WITH_PAM_UNIX_FALSE=
3260fi
3261
3262# Find a good install program. We prefer a C program (faster),
3263# so one script is as good as another. But avoid the broken or
3264# incompatible versions:
3265# SysV /etc/install, /usr/sbin/install
3266# SunOS /usr/etc/install
3267# IRIX /sbin/install
3268# AIX /bin/install
3269# AmigaOS /C/install, which installs bootblocks on floppy discs
3270# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3271# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3272# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3273# ./install, which can be erroneously created by make from ./install.sh.
3274echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3275echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3276if test -z "$INSTALL"; then
3277if test "${ac_cv_path_install+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 # Account for people who put trailing slashes in PATH elements.
3286case $as_dir/ in
3287 ./ | .// | /cC/* | \
3288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3289 /usr/ucb/* ) ;;
3290 *)
3291 # OSF1 and SCO ODT 3.0 have their own names for install.
3292 # Don't use installbsd from OSF since it installs stuff as root
3293 # by default.
3294 for ac_prog in ginstall scoinst install; do
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3297 if test $ac_prog = install &&
3298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3299 # AIX install. It has an incompatible calling convention.
3300 :
3301 elif test $ac_prog = install &&
3302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303 # program-specific install script used by HP pwplus--don't use.
3304 :
3305 else
3306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3307 break 3
3308 fi
3309 fi
3310 done
3311 done
3312 ;;
3313esac
3314done
3315
3316
3317fi

--- 14 unchanged lines hidden (view full) ---

3332# It thinks the first close brace ends the variable substitution.
3333test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3334
3335test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3336
3337test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3338
3339
3340ac_ext=c
3341ac_cpp='$CPP $CPPFLAGS'
3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3346echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3347# On Suns, sometimes $CPP names a directory.
3348if test -n "$CPP" && test -d "$CPP"; then
3349 CPP=
3350fi
3351if test -z "$CPP"; then
3352 if test "${ac_cv_prog_CPP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 # Double quotes because CPP needs to be expanded
3356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3357 do
3358 ac_preproc_ok=false
3359for ac_c_preproc_warn_flag in '' yes
3360do
3361 # Use a header file that comes with gcc, so configuring glibc
3362 # with a fresh cross-compiler works.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3366#line $LINENO "configure"
3367#include "confdefs.h"
3368#include <assert.h>
3369 Syntax error
3370_ACEOF
3371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
3374 egrep -v '^ *\+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384else
3385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 :
3389else
3390 echo "$as_me: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3392 # Broken: fails on valid input.
3393continue
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396
3397 # OK, works on sane cases. Now check whether non-existent headers
3398 # can be detected and how.
3399 cat >conftest.$ac_ext <<_ACEOF
3400#line $LINENO "configure"
3401#include "confdefs.h"
3402#include <ac_nonexistent.h>
3403_ACEOF
3404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3406 ac_status=$?
3407 egrep -v '^ *\+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
3414 else
3415 ac_cpp_err=
3416 fi
3417else
3418 ac_cpp_err=yes
3419fi
3420if test -z "$ac_cpp_err"; then
3421 # Broken: success on invalid input.
3422continue
3423else
3424 echo "$as_me: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3426 # Passes both tests.
3427ac_preproc_ok=:
3428break
3429fi
3430rm -f conftest.err conftest.$ac_ext
3431
3432done
3433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434rm -f conftest.err conftest.$ac_ext
3435if $ac_preproc_ok; then
3436 break
3437fi
3438
3439 done
3440 ac_cv_prog_CPP=$CPP
3441
3442fi
3443 CPP=$ac_cv_prog_CPP
3444else
3445 ac_cv_prog_CPP=$CPP
3446fi
3447echo "$as_me:$LINENO: result: $CPP" >&5
3448echo "${ECHO_T}$CPP" >&6
3449ac_preproc_ok=false
3450for ac_c_preproc_warn_flag in '' yes
3451do
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # On the NeXT, cc -E runs the code through the compiler's parser,
3455 # not just through cpp. "Syntax error" is here to catch this case.
3456 cat >conftest.$ac_ext <<_ACEOF
3457#line $LINENO "configure"
3458#include "confdefs.h"
3459#include <assert.h>
3460 Syntax error
3461_ACEOF
3462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3464 ac_status=$?
3465 egrep -v '^ *\+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null; then
3470 if test -s conftest.err; then
3471 ac_cpp_err=$ac_c_preproc_warn_flag
3472 else
3473 ac_cpp_err=
3474 fi
3475else
3476 ac_cpp_err=yes
3477fi
3478if test -z "$ac_cpp_err"; then
3479 :
3480else
3481 echo "$as_me: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3483 # Broken: fails on valid input.
3484continue
3485fi
3486rm -f conftest.err conftest.$ac_ext
3487
3488 # OK, works on sane cases. Now check whether non-existent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3491#line $LINENO "configure"
3492#include "confdefs.h"
3493#include <ac_nonexistent.h>
3494_ACEOF
3495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3497 ac_status=$?
3498 egrep -v '^ *\+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } >/dev/null; then
3503 if test -s conftest.err; then
3504 ac_cpp_err=$ac_c_preproc_warn_flag
3505 else
3506 ac_cpp_err=
3507 fi
3508else
3509 ac_cpp_err=yes
3510fi
3511if test -z "$ac_cpp_err"; then
3512 # Broken: success on invalid input.
3513continue
3514else
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 # Passes both tests.
3518ac_preproc_ok=:
3519break
3520fi
3521rm -f conftest.err conftest.$ac_ext
3522
3523done
3524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525rm -f conftest.err conftest.$ac_ext
3526if $ac_preproc_ok; then
3527 :
3528else
3529 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3530echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3531 { (exit 1); exit 1; }; }
3532fi
3533
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540
3541echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3542echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3543if test "${ac_cv_header_stdc+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 cat >conftest.$ac_ext <<_ACEOF
3547#line $LINENO "configure"
3548#include "confdefs.h"
3549#include <stdlib.h>
3550#include <stdarg.h>
3551#include <string.h>
3552#include <float.h>
3553
3554_ACEOF
3555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3557 ac_status=$?
3558 egrep -v '^ *\+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null; then
3563 if test -s conftest.err; then
3564 ac_cpp_err=$ac_c_preproc_warn_flag
3565 else
3566 ac_cpp_err=
3567 fi
3568else
3569 ac_cpp_err=yes
3570fi
3571if test -z "$ac_cpp_err"; then
3572 ac_cv_header_stdc=yes
3573else
3574 echo "$as_me: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3576 ac_cv_header_stdc=no
3577fi
3578rm -f conftest.err conftest.$ac_ext
3579
3580if test $ac_cv_header_stdc = yes; then
3581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3582 cat >conftest.$ac_ext <<_ACEOF
3583#line $LINENO "configure"
3584#include "confdefs.h"
3585#include <string.h>
3586
3587_ACEOF
3588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 egrep "memchr" >/dev/null 2>&1; then
3590 :
3591else
3592 ac_cv_header_stdc=no
3593fi
3594rm -f conftest*
3595
3596fi
3597
3598if test $ac_cv_header_stdc = yes; then
3599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3600 cat >conftest.$ac_ext <<_ACEOF
3601#line $LINENO "configure"
3602#include "confdefs.h"
3603#include <stdlib.h>
3604
3605_ACEOF
3606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 egrep "free" >/dev/null 2>&1; then
3608 :
3609else
3610 ac_cv_header_stdc=no
3611fi
3612rm -f conftest*
3613
3614fi
3615
3616if test $ac_cv_header_stdc = yes; then
3617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3618 if test "$cross_compiling" = yes; then
3619 :
3620else
3621 cat >conftest.$ac_ext <<_ACEOF
3622#line $LINENO "configure"
3623#include "confdefs.h"
3624#include <ctype.h>
3625#if ((' ' & 0x0FF) == 0x020)
3626# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3627# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3628#else
3629# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3630 || ('j' <= (c) && (c) <= 'r') \
3631 || ('s' <= (c) && (c) <= 'z'))
3632# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3633#endif
3634
3635#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3636int
3637main ()
3638{
3639 int i;
3640 for (i = 0; i < 256; i++)
3641 if (XOR (islower (i), ISLOWER (i))
3642 || toupper (i) != TOUPPER (i))
3643 exit(2);
3644 exit (0);
3645}
3646_ACEOF
3647rm -f conftest$ac_exeext
3648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3658 :
3659else
3660 echo "$as_me: program exited with status $ac_status" >&5
3661echo "$as_me: failed program was:" >&5
3662cat conftest.$ac_ext >&5
3663( exit $ac_status )
3664ac_cv_header_stdc=no
3665fi
3666rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3667fi
3668fi
3669fi
3670echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3671echo "${ECHO_T}$ac_cv_header_stdc" >&6
3672if test $ac_cv_header_stdc = yes; then
3673
3674cat >>confdefs.h <<\_ACEOF
3675#define STDC_HEADERS 1
3676_ACEOF
3677
3678fi
3679
3680# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3691 inttypes.h stdint.h unistd.h
3692do
3693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694echo "$as_me:$LINENO: checking for $ac_header" >&5
3695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3696if eval "test \"\${$as_ac_Header+set}\" = set"; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 cat >conftest.$ac_ext <<_ACEOF
3700#line $LINENO "configure"
3701#include "confdefs.h"
3702$ac_includes_default
3703
3704#include <$ac_header>
3705_ACEOF
3706rm -f conftest.$ac_objext
3707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708 (eval $ac_compile) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -s conftest.$ac_objext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 (eval $ac_try) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 eval "$as_ac_Header=yes"
3719else
3720 echo "$as_me: failed program was:" >&5
3721cat conftest.$ac_ext >&5
3722eval "$as_ac_Header=no"
3723fi
3724rm -f conftest.$ac_objext conftest.$ac_ext
3725fi
3726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3728if test `eval echo '${'$as_ac_Header'}'` = yes; then
3729 cat >>confdefs.h <<_ACEOF
3730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3731_ACEOF
3732
3733fi
3734
3735done
3736
3737
3738
3739for ac_header in crypt.h
3740do
3741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3742if eval "test \"\${$as_ac_Header+set}\" = set"; then
3743 echo "$as_me:$LINENO: checking for $ac_header" >&5
3744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3745if eval "test \"\${$as_ac_Header+set}\" = set"; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747fi
3748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3750else
3751 # Is the header compilable?
3752echo "$as_me:$LINENO: checking $ac_header usability" >&5
3753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3754cat >conftest.$ac_ext <<_ACEOF
3755#line $LINENO "configure"
3756#include "confdefs.h"
3757$ac_includes_default
3758#include <$ac_header>
3759_ACEOF
3760rm -f conftest.$ac_objext
3761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } &&
3766 { ac_try='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 ac_header_compiler=yes
3773else
3774 echo "$as_me: failed program was:" >&5
3775cat conftest.$ac_ext >&5
3776ac_header_compiler=no
3777fi
3778rm -f conftest.$ac_objext conftest.$ac_ext
3779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3780echo "${ECHO_T}$ac_header_compiler" >&6
3781
3782# Is the header present?
3783echo "$as_me:$LINENO: checking $ac_header presence" >&5
3784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3785cat >conftest.$ac_ext <<_ACEOF
3786#line $LINENO "configure"
3787#include "confdefs.h"
3788#include <$ac_header>
3789_ACEOF
3790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3792 ac_status=$?
3793 egrep -v '^ *\+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null; then
3798 if test -s conftest.err; then
3799 ac_cpp_err=$ac_c_preproc_warn_flag
3800 else
3801 ac_cpp_err=
3802 fi
3803else
3804 ac_cpp_err=yes
3805fi
3806if test -z "$ac_cpp_err"; then
3807 ac_header_preproc=yes
3808else
3809 echo "$as_me: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3811 ac_header_preproc=no
3812fi
3813rm -f conftest.err conftest.$ac_ext
3814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3815echo "${ECHO_T}$ac_header_preproc" >&6
3816
3817# So? What about this header?
3818case $ac_header_compiler:$ac_header_preproc in
3819 yes:no )
3820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3824 no:yes )
3825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3831esac
3832echo "$as_me:$LINENO: checking for $ac_header" >&5
3833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3834if eval "test \"\${$as_ac_Header+set}\" = set"; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837 eval "$as_ac_Header=$ac_header_preproc"
3838fi
3839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3841
3842fi
3843if test `eval echo '${'$as_ac_Header'}'` = yes; then
3844 cat >>confdefs.h <<_ACEOF
3845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1

--- 9 unchanged lines hidden (view full) ---

3855do
3856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3857echo "$as_me:$LINENO: checking for $ac_func" >&5
3858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3859if eval "test \"\${$as_ac_var+set}\" = set"; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 cat >conftest.$ac_ext <<_ACEOF
3863#line $LINENO "configure"
3864#include "confdefs.h"
3865/* System header to define __stub macros and hopefully few prototypes,
3866 which can conflict with char $ac_func (); below. */
3867#include <assert.h>
3868/* Override any gcc2 internal prototype to avoid an error. */
3869#ifdef __cplusplus
3870extern "C"
3871#endif
3872/* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3874char $ac_func ();
3875char (*f) ();
3876
3877#ifdef F77_DUMMY_MAIN
3878# ifdef __cplusplus
3879 extern "C"
3880# endif
3881 int F77_DUMMY_MAIN() { return 1; }
3882#endif
3883int
3884main ()
3885{
3886/* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3890choke me
3891#else
3892f = $ac_func;
3893#endif
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext conftest$ac_exeext
3900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901 (eval $ac_link) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } &&
3905 { ac_try='test -s conftest$ac_exeext'
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 (eval $ac_try) 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
3911 eval "$as_ac_var=yes"
3912else
3913 echo "$as_me: failed program was:" >&5
3914cat conftest.$ac_ext >&5
3915eval "$as_ac_var=no"
3916fi
3917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3918fi
3919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3921if test `eval echo '${'$as_ac_var'}'` = yes; then
3922 cat >>confdefs.h <<_ACEOF
3923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3924_ACEOF
3925

--- 5 unchanged lines hidden (view full) ---

3931echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3932echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3933if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936 ac_check_lib_save_LIBS=$LIBS
3937LIBS="-ldl $LIBS"
3938cat >conftest.$ac_ext <<_ACEOF
3939#line $LINENO "configure"
3940#include "confdefs.h"
3941
3942/* Override any gcc2 internal prototype to avoid an error. */
3943#ifdef __cplusplus
3944extern "C"
3945#endif
3946/* We use char because int might match the return type of a gcc2
3947 builtin and then its argument prototype would still apply. */
3948char dlopen ();
3949#ifdef F77_DUMMY_MAIN
3950# ifdef __cplusplus
3951 extern "C"
3952# endif
3953 int F77_DUMMY_MAIN() { return 1; }
3954#endif
3955int
3956main ()
3957{
3958dlopen ();
3959 ;
3960 return 0;
3961}
3962_ACEOF
3963rm -f conftest.$ac_objext conftest$ac_exeext
3964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3965 (eval $ac_link) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -s conftest$ac_exeext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 ac_cv_lib_dl_dlopen=yes
3976else
3977 echo "$as_me: failed program was:" >&5
3978cat conftest.$ac_ext >&5
3979ac_cv_lib_dl_dlopen=no
3980fi
3981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3982LIBS=$ac_check_lib_save_LIBS
3983fi
3984echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3985echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3986if test $ac_cv_lib_dl_dlopen = yes; then
3987 DL_LIBS=-ldl
3988fi
3989
3990
3991
3992CRYPT_LIBS=
3993echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
3994echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
3995if test "${ac_cv_lib_crypt_crypt+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998 ac_check_lib_save_LIBS=$LIBS
3999LIBS="-lcrypt $LIBS"
4000cat >conftest.$ac_ext <<_ACEOF
4001#line $LINENO "configure"
4002#include "confdefs.h"
4003
4004/* Override any gcc2 internal prototype to avoid an error. */
4005#ifdef __cplusplus
4006extern "C"
4007#endif
4008/* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4010char crypt ();
4011#ifdef F77_DUMMY_MAIN
4012# ifdef __cplusplus
4013 extern "C"
4014# endif
4015 int F77_DUMMY_MAIN() { return 1; }
4016#endif
4017int
4018main ()
4019{
4020crypt ();
4021 ;
4022 return 0;
4023}
4024_ACEOF
4025rm -f conftest.$ac_objext conftest$ac_exeext
4026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4027 (eval $ac_link) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -s conftest$ac_exeext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 ac_cv_lib_crypt_crypt=yes
4038else
4039 echo "$as_me: failed program was:" >&5
4040cat conftest.$ac_ext >&5
4041ac_cv_lib_crypt_crypt=no
4042fi
4043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4044LIBS=$ac_check_lib_save_LIBS
4045fi
4046echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
4047echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
4048if test $ac_cv_lib_crypt_crypt = yes; then
4049 CRYPT_LIBS=-lcrypt
4050fi
4051
4052
4053
4054CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
4055
4056
4057CFLAGS="$CFLAGS -Werror"
4058
4059
4060ac_config_files="$ac_config_files bin/Makefile bin/su/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_unix/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile doc/Makefile doc/man/Makefile Makefile"
4061
4062cat >confcache <<\_ACEOF
4063# This file is a shell script that caches the results of configure
4064# tests run on this system so they can be shared between configure
4065# scripts and configure runs, see configure's option --config-cache.
4066# It is not useful on other systems. If it contains results you don't
4067# want to keep, you may remove or edit it.
4068#
4069# config.status only pays attention to the cache file if you give it
4070# the --recheck option to rerun configure.
4071#
4072# `ac_cv_env_foo' variables (set or unset) will be overriden when
4073# loading this file, other *unset* `ac_cv_foo' will be assigned the
4074# following values.
4075
4076_ACEOF
4077
4078# The following way of writing the cache mishandles newlines in values,
4079# but we know of no workaround that is simple, portable, and efficient.
4080# So, don't put newlines in cache variables' values.
4081# Ultrix sh set writes to stderr and can't be redirected directly,
4082# and sets the high bit in the cache file unless we assign to the vars.
4083{
4084 (set) 2>&1 |
4085 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4086 *ac_space=\ *)
4087 # `set' does not quote correctly, so add quotes (double-quote
4088 # substitution turns \\\\ into \\, and sed turns \\ into \).
4089 sed -n \
4090 "s/'/'\\\\''/g;
4091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4092 ;;
4093 *)
4094 # `set' quotes correctly as required by POSIX, so do not add quotes.
4095 sed -n \
4096 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4097 ;;
4098 esac;
4099} |
4100 sed '
4101 t clear
4102 : clear
4103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4104 t end
4105 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4106 : end' >>confcache
4107if cmp -s $cache_file confcache; then :; else
4108 if test -w $cache_file; then
4109 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4110 cat confcache >$cache_file
4111 else
4112 echo "not updating unwritable cache $cache_file"
4113 fi
4114fi
4115rm -f confcache
4116
4117test "x$prefix" = xNONE && prefix=$ac_default_prefix
4118# Let make expand exec_prefix.
4119test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4120
4121# VPATH may cause trouble with some makes, so we remove $(srcdir),
4122# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4123# trailing colons and then remove the whole line if VPATH becomes empty
4124# (actually we leave an empty line to preserve line numbers).
4125if test "x$srcdir" = x.; then
4126 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4127s/:*\$(srcdir):*/:/;
4128s/:*\${srcdir}:*/:/;
4129s/:*@srcdir@:*/:/;
4130s/^\([^=]*=[ ]*\):*/\1/;
4131s/:*$//;
4132s/^[^=]*=[ ]*$//;
4133}'
4134fi
4135
4136DEFS=-DHAVE_CONFIG_H
4137
4138
4139: ${CONFIG_STATUS=./config.status}
4140ac_clean_files_save=$ac_clean_files
4141ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4142{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4143echo "$as_me: creating $CONFIG_STATUS" >&6;}
4144cat >$CONFIG_STATUS <<_ACEOF
4145#! $SHELL
4146# Generated by $as_me.
4147# Run this file to recreate the current configuration.
4148# Compiler output produced by configure, useful for debugging
4149# configure, is in config.log if it exists.
4150
4151debug=false
4152SHELL=\${CONFIG_SHELL-$SHELL}
4153_ACEOF
4154
4155cat >>$CONFIG_STATUS <<\_ACEOF
4156
4157## --------------------- ##
4158## M4sh Initialization. ##
4159## --------------------- ##
4160
4161# Be Bourne compatible
4162if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4163 emulate sh
4164 NULLCMD=:
4165elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4166 set -o posix
4167fi
4168
4169# NLS nuisances.
4170# Support unset when possible.
4171if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4172 as_unset=unset
4173else
4174 as_unset=false
4175fi
4176
4177(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
4178 { $as_unset LANG || test "${LANG+set}" != set; } ||
4179 { LANG=C; export LANG; }
4180(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
4181 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
4182 { LC_ALL=C; export LC_ALL; }
4183(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
4184 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
4185 { LC_TIME=C; export LC_TIME; }
4186(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
4187 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
4188 { LC_CTYPE=C; export LC_CTYPE; }
4189(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
4190 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
4191 { LANGUAGE=C; export LANGUAGE; }
4192(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
4193 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
4194 { LC_COLLATE=C; export LC_COLLATE; }
4195(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
4196 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
4197 { LC_NUMERIC=C; export LC_NUMERIC; }
4198(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
4199 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
4200 { LC_MESSAGES=C; export LC_MESSAGES; }
4201
4202
4203# Name of the executable.
4204as_me=`(basename "$0") 2>/dev/null ||
4205$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4206 X"$0" : 'X\(//\)$' \| \
4207 X"$0" : 'X\(/\)$' \| \
4208 . : '\(.\)' 2>/dev/null ||
4209echo X/"$0" |
4210 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4211 /^X\/\(\/\/\)$/{ s//\1/; q; }
4212 /^X\/\(\/\).*/{ s//\1/; q; }
4213 s/.*/./; q'`
4214
4215# PATH needs CR, and LINENO needs CR and PATH.
4216# Avoid depending upon Character Ranges.
4217as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4218as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4219as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4220as_cr_digits='0123456789'
4221as_cr_alnum=$as_cr_Letters$as_cr_digits
4222
4223# The user is always right.
4224if test "${PATH_SEPARATOR+set}" != set; then
4225 echo "#! /bin/sh" >conftest.sh
4226 echo "exit 0" >>conftest.sh
4227 chmod +x conftest.sh
4228 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
4229 PATH_SEPARATOR=';'
4230 else
4231 PATH_SEPARATOR=:
4232 fi
4233 rm -f conftest.sh
4234fi
4235
4236
4237 as_lineno_1=$LINENO
4238 as_lineno_2=$LINENO
4239 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4240 test "x$as_lineno_1" != "x$as_lineno_2" &&
4241 test "x$as_lineno_3" = "x$as_lineno_2" || {

--- 32 unchanged lines hidden (view full) ---

4274 case $as_dir in
4275 /*)
4276 if ("$as_dir/$as_base" -c '
4277 as_lineno_1=$LINENO
4278 as_lineno_2=$LINENO
4279 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4280 test "x$as_lineno_1" != "x$as_lineno_2" &&
4281 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4282 CONFIG_SHELL=$as_dir/$as_base
4283 export CONFIG_SHELL
4284 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4285 fi;;
4286 esac
4287 done
4288done
4289;;

--- 57 unchanged lines hidden (view full) ---

4347 fi
4348elif ln conf$$.file conf$$ 2>/dev/null; then
4349 as_ln_s=ln
4350else
4351 as_ln_s='cp -p'
4352fi
4353rm -f conf$$ conf$$.exe conf$$.file
4354
4355as_executable_p="test -f"
4356
4357# Sed expression to map a string onto a valid CPP name.
4358as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4359
4360# Sed expression to map a string onto a valid variable name.
4361as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4362
4363
4364# IFS
4365# We need space, tab and new line, in precisely that order.
4366as_nl='
4367'
4368IFS=" $as_nl"
4369
4370# CDPATH.
4371$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4372
4373exec 6>&1
4374
4375# Open the log real soon, to keep \$[0] and so on meaningful, and to
4376# report actual input values of CONFIG_FILES etc. instead of their
4377# values after options handling. Logging --version etc. is OK.
4378exec 5>>config.log
4379{
4380 echo
4381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4382## Running $as_me. ##
4383_ASBOX
4384} >&5
4385cat >&5 <<_CSEOF
4386
4387This file was extended by OpenPAM $as_me 20040210, which was
4388generated by GNU Autoconf 2.53. Invocation command line was
4389
4390 CONFIG_FILES = $CONFIG_FILES
4391 CONFIG_HEADERS = $CONFIG_HEADERS
4392 CONFIG_LINKS = $CONFIG_LINKS
4393 CONFIG_COMMANDS = $CONFIG_COMMANDS
4394 $ $0 $@
4395
4396_CSEOF

--- 23 unchanged lines hidden (view full) ---

4420ac_cs_usage="\
4421\`$as_me' instantiates files from templates according to the
4422current configuration.
4423
4424Usage: $0 [OPTIONS] [FILE]...
4425
4426 -h, --help print this help, then exit
4427 -V, --version print version number, then exit
4428 -d, --debug don't remove temporary files
4429 --recheck update $as_me by reconfiguring in the same conditions
4430 --file=FILE[:TEMPLATE]
4431 instantiate the configuration file FILE
4432 --header=FILE[:TEMPLATE]
4433 instantiate the configuration header FILE
4434
4435Configuration files:
4436$config_files
4437
4438Configuration headers:
4439$config_headers
4440
4441Configuration commands:
4442$config_commands
4443
4444Report bugs to <bug-autoconf@gnu.org>."
4445_ACEOF
4446
4447cat >>$CONFIG_STATUS <<_ACEOF
4448ac_cs_version="\\
4449OpenPAM config.status 20040210
4450configured by $0, generated by GNU Autoconf 2.53,
4451 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4452
4453Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4454Free Software Foundation, Inc.
4455This config.status script is free software; the Free Software Foundation
4456gives unlimited permission to copy, distribute and modify it."
4457srcdir=$srcdir
4458INSTALL="$INSTALL"
4459_ACEOF
4460
4461cat >>$CONFIG_STATUS <<\_ACEOF
4462# If no file are specified by the user, then we need to provide default
4463# value. By we need to know if files were specified by the user.
4464ac_need_defaults=:
4465while test $# != 0
4466do
4467 case $1 in
4468 --*=*)
4469 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4470 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4471 shift
4472 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4473 shift
4474 ;;
4475 -*);;
4476 *) # This is not an option, so the user has probably given explicit
4477 # arguments.
4478 ac_need_defaults=false;;
4479 esac
4480
4481 case $1 in
4482 # Handling of the options.
4483_ACEOF
4484cat >>$CONFIG_STATUS <<_ACEOF
4485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4486 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4487 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4488_ACEOF
4489cat >>$CONFIG_STATUS <<\_ACEOF
4490 --version | --vers* | -V )
4491 echo "$ac_cs_version"; exit 0 ;;
4492 --he | --h)
4493 # Conflict between --help and --header
4494 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4495Try \`$0 --help' for more information." >&5
4496echo "$as_me: error: ambiguous option: $1
4497Try \`$0 --help' for more information." >&2;}
4498 { (exit 1); exit 1; }; };;
4499 --help | --hel | -h )
4500 echo "$ac_cs_usage"; exit 0 ;;
4501 --debug | --d* | -d )
4502 debug=: ;;
4503 --file | --fil | --fi | --f )
4504 shift
4505 CONFIG_FILES="$CONFIG_FILES $1"
4506 ac_need_defaults=false;;
4507 --header | --heade | --head | --hea )
4508 shift
4509 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4510 ac_need_defaults=false;;
4511
4512 # This is an error.
4513 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4514Try \`$0 --help' for more information." >&5
4515echo "$as_me: error: unrecognized option: $1
4516Try \`$0 --help' for more information." >&2;}
4517 { (exit 1); exit 1; }; } ;;
4518
4519 *) ac_config_targets="$ac_config_targets $1" ;;
4520
4521 esac
4522 shift
4523done
4524
4525_ACEOF
4526
4527cat >>$CONFIG_STATUS <<_ACEOF
4528#
4529# INIT-COMMANDS section.
4530#
4531
4532AMDEP_TRUE="$AMDEP_TRUE"
4533ac_aux_dir="$ac_aux_dir"
4534
4535_ACEOF
4536
4537
4538
4539cat >>$CONFIG_STATUS <<\_ACEOF
4540for ac_config_target in $ac_config_targets
4541do

--- 6 unchanged lines hidden (view full) ---

4548 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
4549 "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
4550 "modules/pam_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
4551 "modules/pam_deny/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
4552 "modules/pam_permit/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
4553 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4554 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
4555 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4556 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4557 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4558 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4559echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4560 { (exit 1); exit 1; }; };;
4561 esac
4562done
4563
4564# If the user did not use the arguments to specify the items to instantiate,
4565# then the envvar interface is used. Set only those that are not.
4566# We use the long form for the default assignment because of an extremely
4567# bizarre bug on SunOS 4.1.3.
4568if $ac_need_defaults; then
4569 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4570 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4572fi
4573
4574# Create a temporary directory, and hook for its removal unless debugging.
4575$debug ||
4576{
4577 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4578 trap '{ (exit 1); exit 1; }' 1 2 13 15
4579}
4580
4581# Create a (secure) tmp directory for tmp files.
4582: ${TMPDIR=/tmp}
4583{
4584 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4585 test -n "$tmp" && test -d "$tmp"
4586} ||
4587{
4588 tmp=$TMPDIR/cs$$-$RANDOM
4589 (umask 077 && mkdir $tmp)
4590} ||
4591{
4592 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4593 { (exit 1); exit 1; }
4594}
4595
4596_ACEOF
4597
4598cat >>$CONFIG_STATUS <<_ACEOF
4599
4600#

--- 50 unchanged lines hidden (view full) ---

4651s,@target_os@,$target_os,;t t
4652s,@CC@,$CC,;t t
4653s,@CFLAGS@,$CFLAGS,;t t
4654s,@LDFLAGS@,$LDFLAGS,;t t
4655s,@CPPFLAGS@,$CPPFLAGS,;t t
4656s,@ac_ct_CC@,$ac_ct_CC,;t t
4657s,@EXEEXT@,$EXEEXT,;t t
4658s,@OBJEXT@,$OBJEXT,;t t
4659s,@RANLIB@,$RANLIB,;t t
4660s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4661s,@LN_S@,$LN_S,;t t
4662s,@LIBTOOL@,$LIBTOOL,;t t
4663s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4664s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4665s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4666s,@PACKAGE@,$PACKAGE,;t t
4667s,@VERSION@,$VERSION,;t t
4668s,@ACLOCAL@,$ACLOCAL,;t t
4669s,@AUTOCONF@,$AUTOCONF,;t t
4670s,@AUTOMAKE@,$AUTOMAKE,;t t
4671s,@AUTOHEADER@,$AUTOHEADER,;t t
4672s,@MAKEINFO@,$MAKEINFO,;t t
4673s,@AMTAR@,$AMTAR,;t t
4674s,@install_sh@,$install_sh,;t t
4675s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4676s,@AWK@,$AWK,;t t
4677s,@SET_MAKE@,$SET_MAKE,;t t
4678s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4679s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4680s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4681s,@DEPDIR@,$DEPDIR,;t t
4682s,@am__include@,$am__include,;t t
4683s,@am__quote@,$am__quote,;t t
4684s,@CCDEPMODE@,$CCDEPMODE,;t t
4685s,@LIB_MAJ@,$LIB_MAJ,;t t
4686s,@OPENPAM_MODULES_DIR@,$OPENPAM_MODULES_DIR,;t t
4687s,@WITH_PAM_SU_TRUE@,$WITH_PAM_SU_TRUE,;t t
4688s,@WITH_PAM_SU_FALSE@,$WITH_PAM_SU_FALSE,;t t
4689s,@WITH_PAM_UNIX_TRUE@,$WITH_PAM_UNIX_TRUE,;t t
4690s,@WITH_PAM_UNIX_FALSE@,$WITH_PAM_UNIX_FALSE,;t t
4691s,@CPP@,$CPP,;t t
4692s,@DL_LIBS@,$DL_LIBS,;t t
4693s,@CRYPT_LIBS@,$CRYPT_LIBS,;t t
4694CEOF
4695
4696_ACEOF
4697
4698 cat >>$CONFIG_STATUS <<\_ACEOF
4699 # Split the substitutions into bite-sized pieces for seds with
4700 # small command number limits, like on Digital OSF/1 and HP-UX.
4701 ac_max_sed_lines=48

--- 13 unchanged lines hidden (view full) ---

4715 else
4716 # The purpose of the label and of the branching condition is to
4717 # speed up the sed processing (if there are no `@' at all, there
4718 # is no need to browse any of the substitutions).
4719 # These are the two extra sed commands mentioned above.
4720 (echo ':t
4721 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4722 if test -z "$ac_sed_cmds"; then
4723 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4724 else
4725 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4726 fi
4727 ac_sed_frag=`expr $ac_sed_frag + 1`
4728 ac_beg=$ac_end
4729 ac_end=`expr $ac_end + $ac_max_sed_lines`
4730 fi
4731 done
4732 if test -z "$ac_sed_cmds"; then
4733 ac_sed_cmds=cat
4734 fi
4735fi # test -n "$CONFIG_FILES"
4736
4737_ACEOF
4738cat >>$CONFIG_STATUS <<\_ACEOF
4739for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4740 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4741 case $ac_file in
4742 - | *:- | *:-:* ) # input from stdin
4743 cat >$tmp/stdin
4744 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4746 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4747 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4748 * ) ac_file_in=$ac_file.in ;;
4749 esac
4750
4751 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4752 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4753$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4754 X"$ac_file" : 'X\(//\)[^/]' \| \
4755 X"$ac_file" : 'X\(//\)$' \| \
4756 X"$ac_file" : 'X\(/\)' \| \
4757 . : '\(.\)' 2>/dev/null ||
4758echo X"$ac_file" |
4759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4761 /^X\(\/\/\)$/{ s//\1/; q; }
4762 /^X\(\/\).*/{ s//\1/; q; }
4763 s/.*/./; q'`
4764 { case "$ac_dir" in
4765 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4766 *) as_incr_dir=.;;
4767esac
4768as_dummy="$ac_dir"
4769for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4770 case $as_mkdir_dir in
4771 # Skip DOS drivespec
4772 ?:) as_incr_dir=$as_mkdir_dir ;;
4773 *)
4774 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4775 test -d "$as_incr_dir" ||
4776 mkdir "$as_incr_dir" ||
4777 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4778echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4779 { (exit 1); exit 1; }; }
4780 ;;
4781 esac
4782done; }
4783
4784 ac_builddir=.
4785
4786if test "$ac_dir" != .; then
4787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4788 # A "../" for each directory in $ac_dir_suffix.
4789 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4790else

--- 10 unchanged lines hidden (view full) ---

4801 fi ;;
4802 [\\/]* | ?:[\\/]* ) # Absolute path.
4803 ac_srcdir=$srcdir$ac_dir_suffix;
4804 ac_top_srcdir=$srcdir ;;
4805 *) # Relative path.
4806 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4807 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4808esac
4809# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4810# absolute.
4811ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4812ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4813ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4814ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4815
4816
4817 case $INSTALL in
4818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4819 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4820 esac
4821
4822 if test x"$ac_file" != x-; then
4823 { echo "$as_me:$LINENO: creating $ac_file" >&5
4824echo "$as_me: creating $ac_file" >&6;}
4825 rm -f "$ac_file"
4826 fi
4827 # Let's still pretend it is `configure' which instantiates (i.e., don't
4828 # use $as_me), people would be surprised to read:
4829 # /* config.h. Generated by config.status. */
4830 if test x"$ac_file" = x-; then
4831 configure_input=
4832 else
4833 configure_input="$ac_file. "
4834 fi
4835 configure_input=$configure_input"Generated from `echo $ac_file_in |
4836 sed 's,.*/,,'` by configure."
4837
4838 # First look for the input files in the build tree, otherwise in the
4839 # src tree.
4840 ac_file_inputs=`IFS=:
4841 for f in $ac_file_in; do
4842 case $f in
4843 -) echo $tmp/stdin ;;
4844 [\\/$]*)
4845 # Absolute (can't be DOS-style, as IFS=:)
4846 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4847echo "$as_me: error: cannot find input file: $f" >&2;}
4848 { (exit 1); exit 1; }; }
4849 echo $f;;
4850 *) # Relative
4851 if test -f "$f"; then
4852 # Build tree
4853 echo $f
4854 elif test -f "$srcdir/$f"; then
4855 # Source tree
4856 echo $srcdir/$f
4857 else
4858 # /dev/null tree
4859 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4860echo "$as_me: error: cannot find input file: $f" >&2;}
4861 { (exit 1); exit 1; }; }
4862 fi;;
4863 esac
4864 done` || { (exit 1); exit 1; }
4865_ACEOF
4866cat >>$CONFIG_STATUS <<_ACEOF
4867 sed "$ac_vpsub
4868$extrasub
4869_ACEOF
4870cat >>$CONFIG_STATUS <<\_ACEOF

--- 25 unchanged lines hidden (view full) ---

4896#
4897# CONFIG_HEADER section.
4898#
4899
4900# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4901# NAME is the cpp macro being defined and VALUE is the value it is being given.
4902#
4903# ac_d sets the value in "#define NAME VALUE" lines.
4904ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4905ac_dB='[ ].*$,\1#\2'
4906ac_dC=' '
4907ac_dD=',;t'
4908# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4909ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4910ac_uB='$,\1#\2define\3'
4911ac_uC=' '
4912ac_uD=',;t'
4913
4914for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4916 case $ac_file in
4917 - | *:- | *:-:* ) # input from stdin
4918 cat >$tmp/stdin
4919 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4921 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4923 * ) ac_file_in=$ac_file.in ;;
4924 esac
4925
4926 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4927echo "$as_me: creating $ac_file" >&6;}
4928
4929 # First look for the input files in the build tree, otherwise in the
4930 # src tree.
4931 ac_file_inputs=`IFS=:
4932 for f in $ac_file_in; do
4933 case $f in
4934 -) echo $tmp/stdin ;;
4935 [\\/$]*)
4936 # Absolute (can't be DOS-style, as IFS=:)
4937 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4938echo "$as_me: error: cannot find input file: $f" >&2;}
4939 { (exit 1); exit 1; }; }
4940 echo $f;;
4941 *) # Relative
4942 if test -f "$f"; then
4943 # Build tree
4944 echo $f
4945 elif test -f "$srcdir/$f"; then
4946 # Source tree
4947 echo $srcdir/$f
4948 else
4949 # /dev/null tree
4950 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4951echo "$as_me: error: cannot find input file: $f" >&2;}
4952 { (exit 1); exit 1; }; }
4953 fi;;
4954 esac
4955 done` || { (exit 1); exit 1; }
4956 # Remove the trailing spaces.
4957 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4958
4959_ACEOF
4960
4961# Transform confdefs.h into two sed scripts, `conftest.defines' and
4962# `conftest.undefs', that substitutes the proper values into
4963# config.h.in to produce config.h. The first handles `#define'
4964# templates, and the second `#undef' templates.
4965# And first: Protect against being on the right side of a sed subst in

--- 6 unchanged lines hidden (view full) ---

4972# `end' is used to avoid that the second main sed command (meant for
4973# 0-ary CPP macros) applies to n-ary macro definitions.
4974# See the Autoconf documentation for `clear'.
4975cat >confdef2sed.sed <<\_ACEOF
4976s/[\\&,]/\\&/g
4977s,[\\$`],\\&,g
4978t clear
4979: clear
4980s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4981t end
4982s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4983: end
4984_ACEOF
4985# If some macros were called several times there might be several times
4986# the same #defines, which is useless. Nevertheless, we may not want to
4987# sort them, since we want the *last* AC-DEFINE to be honored.
4988uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4989sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4990rm -f confdef2sed.sed
4991
4992# This sed command replaces #undef with comments. This is necessary, for
4993# example, in the case of _POSIX_SOURCE, which is predefined and required
4994# on some systems where configure will not decide to define it.
4995cat >>conftest.undefs <<\_ACEOF
4996s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4997_ACEOF
4998
4999# Break up conftest.defines because some shells have a limit on the size
5000# of here documents, and old seds have small limits too (100 cmds).
5001echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5002echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5003echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5004echo ' :' >>$CONFIG_STATUS
5005rm -f conftest.tail
5006while grep . conftest.defines >/dev/null
5007do
5008 # Write a limited-size here document to $tmp/defines.sed.
5009 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5010 # Speed up: don't consider the non `#define' lines.
5011 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5012 # Work around the forget-to-reset-the-flag bug.
5013 echo 't clr' >>$CONFIG_STATUS
5014 echo ': clr' >>$CONFIG_STATUS
5015 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5016 echo 'CEOF
5017 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5018 rm -f $tmp/in
5019 mv $tmp/out $tmp/in
5020' >>$CONFIG_STATUS
5021 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5022 rm -f conftest.defines
5023 mv conftest.tail conftest.defines
5024done
5025rm -f conftest.defines
5026echo ' fi # egrep' >>$CONFIG_STATUS
5027echo >>$CONFIG_STATUS
5028
5029# Break up conftest.undefs because some shells have a limit on the size
5030# of here documents, and old seds have small limits too (100 cmds).
5031echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5032rm -f conftest.tail
5033while grep . conftest.undefs >/dev/null
5034do
5035 # Write a limited-size here document to $tmp/undefs.sed.
5036 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5037 # Speed up: don't consider the non `#undef'
5038 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5039 # Work around the forget-to-reset-the-flag bug.
5040 echo 't clr' >>$CONFIG_STATUS
5041 echo ': clr' >>$CONFIG_STATUS
5042 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5043 echo 'CEOF
5044 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5045 rm -f $tmp/in
5046 mv $tmp/out $tmp/in

--- 11 unchanged lines hidden (view full) ---

5058 if test x"$ac_file" = x-; then
5059 echo "/* Generated by configure. */" >$tmp/config.h
5060 else
5061 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5062 fi
5063 cat $tmp/in >>$tmp/config.h
5064 rm -f $tmp/in
5065 if test x"$ac_file" != x-; then
5066 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5067 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5068echo "$as_me: $ac_file is unchanged" >&6;}
5069 else
5070 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5071$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5072 X"$ac_file" : 'X\(//\)[^/]' \| \
5073 X"$ac_file" : 'X\(//\)$' \| \
5074 X"$ac_file" : 'X\(/\)' \| \
5075 . : '\(.\)' 2>/dev/null ||
5076echo X"$ac_file" |
5077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5079 /^X\(\/\/\)$/{ s//\1/; q; }
5080 /^X\(\/\).*/{ s//\1/; q; }
5081 s/.*/./; q'`
5082 { case "$ac_dir" in
5083 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5084 *) as_incr_dir=.;;
5085esac
5086as_dummy="$ac_dir"
5087for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5088 case $as_mkdir_dir in
5089 # Skip DOS drivespec
5090 ?:) as_incr_dir=$as_mkdir_dir ;;
5091 *)
5092 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5093 test -d "$as_incr_dir" ||
5094 mkdir "$as_incr_dir" ||
5095 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5096echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5097 { (exit 1); exit 1; }; }
5098 ;;
5099 esac
5100done; }
5101
5102 rm -f $ac_file
5103 mv $tmp/config.h $ac_file
5104 fi
5105 else
5106 cat $tmp/config.h
5107 rm -f $tmp/config.h
5108 fi
5109 # Run the commands associated with the file.
5110 case $ac_file in
5111 config.h ) # update the timestamp
5112echo timestamp >"./stamp-h1"
5113 ;;
5114 esac
5115done
5116_ACEOF
5117cat >>$CONFIG_STATUS <<\_ACEOF
5118
5119#
5120# CONFIG_COMMANDS section.
5121#
5122for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5123 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5124 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5125 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5126$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5127 X"$ac_dest" : 'X\(//\)[^/]' \| \
5128 X"$ac_dest" : 'X\(//\)$' \| \
5129 X"$ac_dest" : 'X\(/\)' \| \
5130 . : '\(.\)' 2>/dev/null ||
5131echo X"$ac_dest" |
5132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5134 /^X\(\/\/\)$/{ s//\1/; q; }
5135 /^X\(\/\).*/{ s//\1/; q; }
5136 s/.*/./; q'`
5137 ac_builddir=.
5138
5139if test "$ac_dir" != .; then
5140 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5141 # A "../" for each directory in $ac_dir_suffix.
5142 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5143else
5144 ac_dir_suffix= ac_top_builddir=

--- 9 unchanged lines hidden (view full) ---

5154 fi ;;
5155 [\\/]* | ?:[\\/]* ) # Absolute path.
5156 ac_srcdir=$srcdir$ac_dir_suffix;
5157 ac_top_srcdir=$srcdir ;;
5158 *) # Relative path.
5159 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5160 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5161esac
5162# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5163# absolute.
5164ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5165ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5166ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5167ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5168
5169
5170 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5171echo "$as_me: executing $ac_dest commands" >&6;}
5172 case $ac_dest in
5173 default-1 )
5174test x"$AMDEP_TRUE" != x"" ||
5175for mf in $CONFIG_FILES; do
5176 case "$mf" in
5177 Makefile) dirpart=.;;
5178 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
5179 *) continue;;
5180 esac
5181 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5182 # Extract the definition of DEP_FILES from the Makefile without
5183 # running `make'.
5184 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5185 test -z "$DEPDIR" && continue
5186 # When using ansi2knr, U may be empty or an underscore; expand it
5187 U=`sed -n -e '/^U = / s///p' < "$mf"`
5188 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5189 # We invoke sed twice because it is the simplest approach to
5190 # changing $(DEPDIR) to its actual value in the expansion.
5191 for file in `sed -n -e '
5192 /^DEP_FILES = .*\\\\$/ {
5193 s/^DEP_FILES = //
5194 :loop
5195 s/\\\\$//
5196 p
5197 n
5198 /\\\\$/ b loop
5199 p
5200 }
5201 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5202 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5203 # Make sure the directory exists.
5204 test -f "$dirpart/$file" && continue
5205 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
5206 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
5207 # echo "creating $dirpart/$file"
5208 echo '# dummy' > "$dirpart/$file"
5209 done
5210done
5211 ;;
5212 esac
5213done
5214_ACEOF

--- 11 unchanged lines hidden (view full) ---

5226# Unfortunately, on DOS this fails, as config.log is still kept open
5227# by configure, so config.status won't be able to write to it; its
5228# output is simply discarded. So we exec the FD to /dev/null,
5229# effectively closing config.log, so it can be properly (re)opened and
5230# appended to by config.status. When coming back to configure, we
5231# need to make the FD available again.
5232if test "$no_create" != yes; then
5233 ac_cs_success=:
5234 exec 5>/dev/null
5235 $SHELL $CONFIG_STATUS || ac_cs_success=false
5236 exec 5>>config.log
5237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5238 # would make configure fail if this is the last instruction.
5239 $ac_cs_success || { (exit 1); exit 1; }
5240fi
5241