2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
21 # Check that we are running under the correct shell.
22 SHELL=${CONFIG_SHELL-/bin/sh}
26 # Remove one level of quotation (which was required for Make).
27 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32 if test "X$1" = X--no-reexec; then
33 # Discard the --no-reexec flag, and continue.
35 elif test "X$1" = X--fallback-echo; then
36 # Avoid inline document here, it may be left over
38 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39 # Yippee, $echo works!
42 # Restart under the correct shell.
43 exec $SHELL "$0" --no-reexec ${1+"$@"}
46 if test "X$1" = X--fallback-echo; then
47 # used as fallback echo
55 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59 if test -z "$ECHO"; then
60 if test "X${echo_test_string+set}" != Xset; then
61 # find a string as large as possible, as long as the shell can cope with it
62 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65 echo_test_string="`eval $cmd`" &&
66 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
73 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75 test "X$echo_testing_string" = "X$echo_test_string"; then
78 # The Solaris, AIX, and Digital Unix default echo programs unquote
79 # backslashes. This makes it impossible to quote backslashes using
80 # echo "$something" | sed 's/\\/\\\\/g'
82 # So, first we look for a working echo in the user's PATH.
84 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85 for dir in $PATH /usr/ucb; do
86 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89 test "X$echo_testing_string" = "X$echo_test_string"; then
96 if test "X$echo" = Xecho; then
97 # We didn't find a better echo, so look for alternatives.
98 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100 test "X$echo_testing_string" = "X$echo_test_string"; then
101 # This shell has a builtin print -r that does the trick.
103 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104 test "X$CONFIG_SHELL" != X/bin/ksh; then
105 # If we have ksh, try running configure again with it.
106 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107 export ORIGINAL_CONFIG_SHELL
108 CONFIG_SHELL=/bin/ksh
110 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116 test "X$echo_testing_string" = "X$echo_test_string"; then
119 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120 test "X$echo_testing_string" = 'X\t' &&
121 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122 test "X$echo_testing_string" = "X$echo_test_string"; then
123 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 SHELL="$CONFIG_SHELL"
127 echo="$CONFIG_SHELL $0 --fallback-echo"
128 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129 test "X$echo_testing_string" = 'X\t' &&
130 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131 test "X$echo_testing_string" = "X$echo_test_string"; then
132 echo="$CONFIG_SHELL $0 --fallback-echo"
134 # maybe with a smaller string...
137 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
145 if test "$prev" != 'sed 50q "$0"'; then
146 echo_test_string=`eval $prev`
147 export echo_test_string
148 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 # Oops. We lost completely, so just stick with echo.
159 # Copy echo and quote the copy suitably for passing to libtool from
160 # the Makefile, instead of quoting the original, which is used later.
162 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
166 # Avoid depending upon Character Ranges.
167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170 as_cr_digits='0123456789'
171 as_cr_alnum=$as_cr_Letters$as_cr_digits
173 # Sed expression to map a string onto a valid variable name.
174 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
176 # Sed expression to map a string onto a valid CPP name.
177 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
179 # Be Bourne compatible
180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187 # Name of the executable.
188 as_me=`echo "$0" |sed 's,.*[\\/],,'`
190 if expr a : '\(a\)' >/dev/null 2>&1; then
196 rm -f conf$$ conf$$.exe conf$$.file
198 if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
207 elif ln conf$$.file conf$$ 2>/dev/null; then
212 rm -f conf$$ conf$$.exe conf$$.file
214 as_executable_p="test -f"
216 # Support unset when possible.
217 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
224 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
234 # We need space, tab and new line, in precisely that order.
240 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252 ac_default_prefix=/usr/local
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 ac_unique_file="lib/dialchk.c"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
268 # include <sys/types.h>
271 # include <sys/stat.h>
282 # if !STDC_HEADERS && HAVE_MEMORY_H
288 # include <strings.h>
291 # include <inttypes.h>
301 # Initialize some variables set by options.
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
313 program_transform_name=s,x,x,
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/lib'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='/var/lib'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/share/info'
337 mandir='${prefix}/share/man'
339 # Identity of this package.
349 # If the previous option needs an argument, assign it.
350 if test -n "$ac_prev"; then
351 eval "$ac_prev=\$ac_option"
356 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
358 # Accept the important Cygnus configure options, so we can diagnose typos.
362 -bindir | --bindir | --bindi | --bind | --bin | --bi)
364 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
367 -build | --build | --buil | --bui | --bu)
368 ac_prev=build_alias ;;
369 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
370 build_alias=$ac_optarg ;;
372 -cache-file | --cache-file | --cache-fil | --cache-fi \
373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
374 ac_prev=cache_file ;;
375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
377 cache_file=$ac_optarg ;;
380 cache_file=config.cache ;;
382 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
384 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
386 datadir=$ac_optarg ;;
388 -disable-* | --disable-*)
389 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393 { (exit 1); exit 1; }; }
394 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395 eval "enable_$ac_feature=no" ;;
397 -enable-* | --enable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
408 eval "enable_$ac_feature='$ac_optarg'" ;;
410 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
411 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
412 | --exec | --exe | --ex)
413 ac_prev=exec_prefix ;;
414 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
415 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
416 | --exec=* | --exe=* | --ex=*)
417 exec_prefix=$ac_optarg ;;
419 -gas | --gas | --ga | --g)
420 # Obsolete; use --with-gas.
423 -help | --help | --hel | --he | -h)
425 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
426 ac_init_help=recursive ;;
427 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
428 ac_init_help=short ;;
430 -host | --host | --hos | --ho)
431 ac_prev=host_alias ;;
432 -host=* | --host=* | --hos=* | --ho=*)
433 host_alias=$ac_optarg ;;
435 -includedir | --includedir | --includedi | --included | --include \
436 | --includ | --inclu | --incl | --inc)
437 ac_prev=includedir ;;
438 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
439 | --includ=* | --inclu=* | --incl=* | --inc=*)
440 includedir=$ac_optarg ;;
442 -infodir | --infodir | --infodi | --infod | --info | --inf)
444 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
445 infodir=$ac_optarg ;;
447 -libdir | --libdir | --libdi | --libd)
449 -libdir=* | --libdir=* | --libdi=* | --libd=*)
452 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
453 | --libexe | --libex | --libe)
454 ac_prev=libexecdir ;;
455 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
456 | --libexe=* | --libex=* | --libe=*)
457 libexecdir=$ac_optarg ;;
459 -localstatedir | --localstatedir | --localstatedi | --localstated \
460 | --localstate | --localstat | --localsta | --localst \
461 | --locals | --local | --loca | --loc | --lo)
462 ac_prev=localstatedir ;;
463 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
464 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
465 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
466 localstatedir=$ac_optarg ;;
468 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
470 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474 # Obsolete; use --without-fp.
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
485 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
486 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
487 | --oldin | --oldi | --old | --ol | --o)
488 ac_prev=oldincludedir ;;
489 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
490 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
491 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
492 oldincludedir=$ac_optarg ;;
494 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
496 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
499 -program-prefix | --program-prefix | --program-prefi | --program-pref \
500 | --program-pre | --program-pr | --program-p)
501 ac_prev=program_prefix ;;
502 -program-prefix=* | --program-prefix=* | --program-prefi=* \
503 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
504 program_prefix=$ac_optarg ;;
506 -program-suffix | --program-suffix | --program-suffi | --program-suff \
507 | --program-suf | --program-su | --program-s)
508 ac_prev=program_suffix ;;
509 -program-suffix=* | --program-suffix=* | --program-suffi=* \
510 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
511 program_suffix=$ac_optarg ;;
513 -program-transform-name | --program-transform-name \
514 | --program-transform-nam | --program-transform-na \
515 | --program-transform-n | --program-transform- \
516 | --program-transform | --program-transfor \
517 | --program-transfo | --program-transf \
518 | --program-trans | --program-tran \
519 | --progr-tra | --program-tr | --program-t)
520 ac_prev=program_transform_name ;;
521 -program-transform-name=* | --program-transform-name=* \
522 | --program-transform-nam=* | --program-transform-na=* \
523 | --program-transform-n=* | --program-transform-=* \
524 | --program-transform=* | --program-transfor=* \
525 | --program-transfo=* | --program-transf=* \
526 | --program-trans=* | --program-tran=* \
527 | --progr-tra=* | --program-tr=* | --program-t=*)
528 program_transform_name=$ac_optarg ;;
530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
531 | -silent | --silent | --silen | --sile | --sil)
534 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
536 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
538 sbindir=$ac_optarg ;;
540 -sharedstatedir | --sharedstatedir | --sharedstatedi \
541 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
542 | --sharedst | --shareds | --shared | --share | --shar \
544 ac_prev=sharedstatedir ;;
545 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
546 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
547 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
549 sharedstatedir=$ac_optarg ;;
551 -site | --site | --sit)
553 -site=* | --site=* | --sit=*)
556 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
558 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
561 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
562 | --syscon | --sysco | --sysc | --sys | --sy)
563 ac_prev=sysconfdir ;;
564 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
565 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
566 sysconfdir=$ac_optarg ;;
568 -target | --target | --targe | --targ | --tar | --ta | --t)
569 ac_prev=target_alias ;;
570 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
571 target_alias=$ac_optarg ;;
573 -v | -verbose | --verbose | --verbos | --verbo | --verb)
576 -version | --version | --versio | --versi | --vers | -V)
580 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
581 # Reject names that are not valid shell variable names.
582 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583 { echo "$as_me: error: invalid package name: $ac_package" >&2
584 { (exit 1); exit 1; }; }
585 ac_package=`echo $ac_package| sed 's/-/_/g'`
587 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
590 eval "with_$ac_package='$ac_optarg'" ;;
592 -without-* | --without-*)
593 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package | sed 's/-/_/g'`
599 eval "with_$ac_package=no" ;;
602 # Obsolete; use --with-x.
605 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
606 | --x-incl | --x-inc | --x-in | --x-i)
607 ac_prev=x_includes ;;
608 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
609 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
610 x_includes=$ac_optarg ;;
612 -x-libraries | --x-libraries | --x-librarie | --x-librari \
613 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
614 ac_prev=x_libraries ;;
615 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
616 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
617 x_libraries=$ac_optarg ;;
619 -*) { echo "$as_me: error: unrecognized option: $ac_option
620 Try \`$0 --help' for more information." >&2
621 { (exit 1); exit 1; }; }
625 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
626 # Reject names that are not valid shell variable names.
627 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
628 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
629 { (exit 1); exit 1; }; }
630 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
631 eval "$ac_envvar='$ac_optarg'"
635 # FIXME: should be removed in autoconf 3.0.
636 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
637 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
638 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
639 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
645 if test -n "$ac_prev"; then
646 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
647 { echo "$as_me: error: missing argument to $ac_option" >&2
648 { (exit 1); exit 1; }; }
651 # Be sure to have absolute paths.
652 for ac_var in exec_prefix prefix
654 eval ac_val=$`echo $ac_var`
656 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
657 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
658 { (exit 1); exit 1; }; };;
662 # Be sure to have absolute paths.
663 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
664 localstatedir libdir includedir oldincludedir infodir mandir
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* ) ;;
669 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # There might be people who depend on the old broken behavior: `$host'
675 # used to hold the argument of --host etc.
680 # FIXME: should be removed in autoconf 3.0.
681 if test "x$host_alias" != x; then
682 if test "x$build_alias" = x; then
683 cross_compiling=maybe
684 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
685 If a cross compiler is detected then cross compile mode will be used." >&2
686 elif test "x$build_alias" != "x$host_alias"; then
692 test -n "$host_alias" && ac_tool_prefix=$host_alias-
694 test "$silent" = yes && exec 6>/dev/null
696 # Find the source files, if location was not specified.
697 if test -z "$srcdir"; then
698 ac_srcdir_defaulted=yes
699 # Try the directory containing this script, then its parent.
701 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
702 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
704 if test ! -r $srcdir/$ac_unique_file; then
708 ac_srcdir_defaulted=no
710 if test ! -r $srcdir/$ac_unique_file; then
711 if test "$ac_srcdir_defaulted" = yes; then
712 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
713 { (exit 1); exit 1; }; }
715 { echo "$as_me: error: cannot find sources in $srcdir" >&2
716 { (exit 1); exit 1; }; }
719 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
720 ac_env_build_alias_set=${build_alias+set}
721 ac_env_build_alias_value=$build_alias
722 ac_cv_env_build_alias_set=${build_alias+set}
723 ac_cv_env_build_alias_value=$build_alias
724 ac_env_host_alias_set=${host_alias+set}
725 ac_env_host_alias_value=$host_alias
726 ac_cv_env_host_alias_set=${host_alias+set}
727 ac_cv_env_host_alias_value=$host_alias
728 ac_env_target_alias_set=${target_alias+set}
729 ac_env_target_alias_value=$target_alias
730 ac_cv_env_target_alias_set=${target_alias+set}
731 ac_cv_env_target_alias_value=$target_alias
732 ac_env_CC_set=${CC+set}
734 ac_cv_env_CC_set=${CC+set}
735 ac_cv_env_CC_value=$CC
736 ac_env_CFLAGS_set=${CFLAGS+set}
737 ac_env_CFLAGS_value=$CFLAGS
738 ac_cv_env_CFLAGS_set=${CFLAGS+set}
739 ac_cv_env_CFLAGS_value=$CFLAGS
740 ac_env_LDFLAGS_set=${LDFLAGS+set}
741 ac_env_LDFLAGS_value=$LDFLAGS
742 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
743 ac_cv_env_LDFLAGS_value=$LDFLAGS
744 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
745 ac_env_CPPFLAGS_value=$CPPFLAGS
746 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
747 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
748 ac_env_CPP_set=${CPP+set}
749 ac_env_CPP_value=$CPP
750 ac_cv_env_CPP_set=${CPP+set}
751 ac_cv_env_CPP_value=$CPP
754 # Report the --help message.
756 if test "$ac_init_help" = "long"; then
757 # Omit some internal or obsolete options to make the list less imposing.
758 # This message is too long to be a string in the A/UX 3.1 sh.
760 \`configure' configures this package to adapt to many kinds of systems.
762 Usage: $0 [OPTION]... [VAR=VALUE]...
764 To assign environment variables (e.g., CC, CFLAGS...), specify them as
765 VAR=VALUE. See below for descriptions of some of the useful variables.
767 Defaults for the options are specified in brackets.
770 -h, --help display this help and exit
771 --help=short display options specific to this package
772 --help=recursive display the short help of all the included packages
773 -V, --version display version information and exit
774 -q, --quiet, --silent do not print \`checking...' messages
775 --cache-file=FILE cache test results in FILE [disabled]
776 -C, --config-cache alias for \`--cache-file=config.cache'
777 -n, --no-create do not create output files
778 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 Installation directories:
784 --prefix=PREFIX install architecture-independent files in PREFIX
786 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
789 By default, \`make install' will install all the files in
790 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
791 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
792 for instance \`--prefix=\$HOME'.
794 For better control, use the options below.
796 Fine tuning of the installation directories:
797 --bindir=DIR user executables [EPREFIX/bin]
798 --sbindir=DIR system admin executables [EPREFIX/sbin]
799 --libexecdir=DIR program executables [EPREFIX/libexec]
800 --datadir=DIR read-only architecture-independent data [PREFIX/share]
801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
804 --libdir=DIR object code libraries [EPREFIX/lib]
805 --includedir=DIR C header files [PREFIX/include]
806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
807 --infodir=DIR info documentation [PREFIX/info]
808 --mandir=DIR man documentation [PREFIX/man]
814 --program-prefix=PREFIX prepend PREFIX to installed program names
815 --program-suffix=SUFFIX append SUFFIX to installed program names
816 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
819 --build=BUILD configure for building on BUILD [guessed]
820 --host=HOST build programs to run on HOST [BUILD]
824 if test -n "$ac_init_help"; then
829 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
830 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 --disable-dependency-tracking Speeds up one-time builds
832 --enable-dependency-tracking Do not reject slow dependency extractors
833 --enable-shared=PKGS build shared libraries default=no
834 --enable-static=PKGS build static libraries default=yes
835 --enable-fast-install=PKGS optimize for fast installation default=yes
836 --disable-libtool-lock avoid locking (might break parallel builds)
837 --enable-desrpc try to use secure RPC in login (default if found)
838 --enable-shadowgrp enable shadow group support default=yes
839 --disable-nls do not use Native Language Support
842 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
843 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
844 --with-gnu-ld assume the C compiler uses GNU ld default=no
845 --with-pic try to use only PIC/non-PIC objects default=use both
846 --with-libcrack try to use libcrack (default if found)
847 --with-libcrypt try to use libcrypt (default if found)
848 --with-libopie use libopie for OPIE support
849 --with-libpam use libpam for PAM support
850 --with-libskey use libskey for S/Key support
851 --with-libtcfs use libtcfs for TCFS support
852 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
853 --with-included-gettext use the GNU gettext library included here
855 Some influential environment variables:
856 CC C compiler command
857 CFLAGS C compiler flags
858 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
859 nonstandard directory <lib dir>
860 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
861 headers in a nonstandard directory <include dir>
864 Use these variables to override the choices made by `configure' or to help
865 it to find libraries and programs with nonstandard names/locations.
870 if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
873 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
875 # A "../" for each directory in /$ac_subdir.
876 ac_dots=`echo $ac_subdir |
877 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
880 .) # No --srcdir option. We are building in place.
881 ac_sub_srcdir=$srcdir ;;
882 [\\/]* | ?:[\\/]* ) # Absolute path.
883 ac_sub_srcdir=$srcdir/$ac_subdir ;;
885 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
888 # Check for guested configure; otherwise get Cygnus style configure.
889 if test -f $ac_sub_srcdir/configure.gnu; then
891 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
892 elif test -f $ac_sub_srcdir/configure; then
894 $SHELL $ac_sub_srcdir/configure --help=recursive
895 elif test -f $ac_sub_srcdir/configure.ac ||
896 test -f $ac_sub_srcdir/configure.in; then
900 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
906 test -n "$ac_init_help" && exit 0
907 if $ac_init_version; then
910 generated by GNU Autoconf 2.52
912 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
913 Free Software Foundation, Inc.
914 This configure script is free software; the Free Software Foundation
915 gives unlimited permission to copy, distribute and modify it.
921 This file contains any messages produced by compilers while
922 running configure, to aid debugging if configure makes a mistake.
924 It was created by $as_me, which was
925 generated by GNU Autoconf 2.52. Invocation command line was
936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
948 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965 # Keep a trace of the command line.
966 # Strip out --no-create and --no-recursion so they do not pile up.
967 # Also quote any args containing shell meta-characters.
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c) ;;
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
977 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
978 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
979 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
981 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
984 # Get rid of the leading space.
987 # When interrupted or exit'd, cleanup temporary files, and complete
988 # config.log. We remove comments because anyway the quotes in there
989 # would cause problems or look ugly.
991 # Save into config.log some information that might help in debugging.
993 echo "## ----------------- ##" >&5
994 echo "## Cache variables. ##" >&5
995 echo "## ----------------- ##" >&5
997 # The following way of writing the cache mishandles newlines in values,
1000 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1003 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1008 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1012 sed "/^$/d" confdefs.h >conftest.log
1013 if test -s conftest.log; then
1015 echo "## ------------ ##" >&5
1016 echo "## confdefs.h. ##" >&5
1017 echo "## ------------ ##" >&5
1019 cat conftest.log >&5
1022 test "$ac_signal" != 0 &&
1023 echo "$as_me: caught signal $ac_signal" >&5
1024 echo "$as_me: exit $exit_status" >&5
1025 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1028 for ac_signal in 1 2 13 15; do
1029 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1034 rm -rf conftest* confdefs.h
1035 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1038 # Let the site file select an alternate cache file if it wants to.
1039 # Prefer explicitly selected file to automatically selected ones.
1040 if test -z "$CONFIG_SITE"; then
1041 if test "x$prefix" != xNONE; then
1042 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1044 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1047 for ac_site_file in $CONFIG_SITE; do
1048 if test -r "$ac_site_file"; then
1049 { echo "$as_me:1049: loading site script $ac_site_file" >&5
1050 echo "$as_me: loading site script $ac_site_file" >&6;}
1051 cat "$ac_site_file" >&5
1056 if test -r "$cache_file"; then
1057 # Some versions of bash will fail to source /dev/null (special
1058 # files actually), so we avoid doing that.
1059 if test -f "$cache_file"; then
1060 { echo "$as_me:1060: loading cache $cache_file" >&5
1061 echo "$as_me: loading cache $cache_file" >&6;}
1063 [\\/]* | ?:[\\/]* ) . $cache_file;;
1064 *) . ./$cache_file;;
1068 { echo "$as_me:1068: creating cache $cache_file" >&5
1069 echo "$as_me: creating cache $cache_file" >&6;}
1073 # Check that the precious variables saved in the cache have kept the same
1075 ac_cache_corrupted=false
1076 for ac_var in `(set) 2>&1 |
1077 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1078 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1079 eval ac_new_set=\$ac_env_${ac_var}_set
1080 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1081 eval ac_new_val="\$ac_env_${ac_var}_value"
1082 case $ac_old_set,$ac_new_set in
1084 { echo "$as_me:1084: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1085 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1086 ac_cache_corrupted=: ;;
1088 { echo "$as_me:1088: error: \`$ac_var' was not set in the previous run" >&5
1089 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1090 ac_cache_corrupted=: ;;
1093 if test "x$ac_old_val" != "x$ac_new_val"; then
1094 { echo "$as_me:1094: error: \`$ac_var' has changed since the previous run:" >&5
1095 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1096 { echo "$as_me:1096: former value: $ac_old_val" >&5
1097 echo "$as_me: former value: $ac_old_val" >&2;}
1098 { echo "$as_me:1098: current value: $ac_new_val" >&5
1099 echo "$as_me: current value: $ac_new_val" >&2;}
1100 ac_cache_corrupted=:
1103 # Pass precious variables to config.status. It doesn't matter if
1104 # we pass some twice (in addition to the command line arguments).
1105 if test "$ac_new_set" = set; then
1107 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1109 ac_configure_args="$ac_configure_args '$ac_arg'"
1111 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1116 if $ac_cache_corrupted; then
1117 { echo "$as_me:1117: error: changes in the environment can compromise the build" >&5
1118 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1119 { { echo "$as_me:1119: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1120 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1121 { (exit 1); exit 1; }; }
1125 ac_cpp='$CPP $CPPFLAGS'
1126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1130 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1131 *c*,-n*) ECHO_N= ECHO_C='
1133 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1134 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1136 echo "#! $SHELL" >conftest.sh
1137 echo "exit 0" >>conftest.sh
1138 chmod +x conftest.sh
1139 if { (echo "$as_me:1139: PATH=\".;.\"; conftest.sh") >&5
1140 (PATH=".;."; conftest.sh) 2>&5
1142 echo "$as_me:1142: \$? = $ac_status" >&5
1143 (exit $ac_status); }; then
1144 ac_path_separator=';'
1148 PATH_SEPARATOR="$ac_path_separator"
1152 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1153 if test -f $ac_dir/install-sh; then
1155 ac_install_sh="$ac_aux_dir/install-sh -c"
1157 elif test -f $ac_dir/install.sh; then
1159 ac_install_sh="$ac_aux_dir/install.sh -c"
1161 elif test -f $ac_dir/shtool; then
1163 ac_install_sh="$ac_aux_dir/shtool install -c"
1167 if test -z "$ac_aux_dir"; then
1168 { { echo "$as_me:1168: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1169 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1170 { (exit 1); exit 1; }; }
1172 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1173 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1174 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1176 # Find a good install program. We prefer a C program (faster),
1177 # so one script is as good as another. But avoid the broken or
1178 # incompatible versions:
1179 # SysV /etc/install, /usr/sbin/install
1180 # SunOS /usr/etc/install
1181 # IRIX /sbin/install
1183 # AmigaOS /C/install, which installs bootblocks on floppy discs
1184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1187 # ./install, which can be erroneously created by make from ./install.sh.
1188 echo "$as_me:1188: checking for a BSD compatible install" >&5
1189 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1190 if test -z "$INSTALL"; then
1191 if test "${ac_cv_path_install+set}" = set; then
1192 echo $ECHO_N "(cached) $ECHO_C" >&6
1194 ac_save_IFS=$IFS; IFS=$ac_path_separator
1195 for ac_dir in $PATH; do
1197 # Account for people who put trailing slashes in PATH elements.
1199 / | ./ | .// | /cC/* \
1200 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1203 # OSF1 and SCO ODT 3.0 have their own names for install.
1204 # Don't use installbsd from OSF since it installs stuff as root
1206 for ac_prog in ginstall scoinst install; do
1207 if $as_executable_p "$ac_dir/$ac_prog"; then
1208 if test $ac_prog = install &&
1209 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1210 # AIX install. It has an incompatible calling convention.
1212 elif test $ac_prog = install &&
1213 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1214 # program-specific install script used by HP pwplus--don't use.
1217 ac_cv_path_install="$ac_dir/$ac_prog -c"
1227 if test "${ac_cv_path_install+set}" = set; then
1228 INSTALL=$ac_cv_path_install
1230 # As a last resort, use the slow shell script. We don't cache a
1231 # path for INSTALL within a source directory, because that will
1232 # break other packages using the cache if that directory is
1233 # removed, or if the path is relative.
1234 INSTALL=$ac_install_sh
1237 echo "$as_me:1237: result: $INSTALL" >&5
1238 echo "${ECHO_T}$INSTALL" >&6
1240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1241 # It thinks the first close brace ends the variable substitution.
1242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1244 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1246 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1248 echo "$as_me:1248: checking whether build environment is sane" >&5
1249 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1252 echo timestamp > conftest.file
1253 # Do `set' in a subshell so we don't clobber the current shell's
1254 # arguments. Must try -L first in case configure is actually a
1255 # symlink; some systems play weird games with the mod time of symlinks
1256 # (eg FreeBSD returns the mod time of the symlink's containing
1259 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1260 if test "$*" = "X"; then
1262 set X `ls -t $srcdir/configure conftest.file`
1265 if test "$*" != "X $srcdir/configure conftest.file" \
1266 && test "$*" != "X conftest.file $srcdir/configure"; then
1268 # If neither matched, then we have a broken ls. This can happen
1269 # if, for instance, CONFIG_SHELL is bash and it inherits a
1270 # broken ls alias from the environment. This has actually
1271 # happened. Such a system could not be considered "sane".
1272 { { echo "$as_me:1272: error: ls -t appears to fail. Make sure there is not a broken
1273 alias in your environment" >&5
1274 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1275 alias in your environment" >&2;}
1276 { (exit 1); exit 1; }; }
1279 test "$2" = conftest.file
1285 { { echo "$as_me:1285: error: newly created file is older than distributed files!
1286 Check your system clock" >&5
1287 echo "$as_me: error: newly created file is older than distributed files!
1288 Check your system clock" >&2;}
1289 { (exit 1); exit 1; }; }
1291 echo "$as_me:1291: result: yes" >&5
1292 echo "${ECHO_T}yes" >&6
1293 test "$program_prefix" != NONE &&
1294 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1295 # Use a double $ so make ignores it.
1296 test "$program_suffix" != NONE &&
1297 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1298 # Double any \ or $. echo might interpret backslashes.
1299 # By default was `s,x,x', remove it if useless.
1300 cat <<\_ACEOF >conftest.sed
1301 s/[\\$]/&&/g;s/;s,x,x,$//
1303 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1306 # expand $ac_aux_dir to an absolute path
1307 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1309 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1310 # Use eval to expand $SHELL
1311 if eval "$MISSING --run true"; then
1312 am_missing_run="$MISSING --run "
1316 { echo "$as_me:1316: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1317 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1320 for ac_prog in awk mawk gawk nawk
1322 # Extract the first word of "$ac_prog", so it can be a program name with args.
1323 set dummy $ac_prog; ac_word=$2
1324 echo "$as_me:1324: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_AWK+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 if test -n "$AWK"; then
1330 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1332 ac_save_IFS=$IFS; IFS=$ac_path_separator
1334 for ac_dir in $ac_dummy; do
1336 test -z "$ac_dir" && ac_dir=.
1337 $as_executable_p "$ac_dir/$ac_word" || continue
1338 ac_cv_prog_AWK="$ac_prog"
1339 echo "$as_me:1339: found $ac_dir/$ac_word" >&5
1346 if test -n "$AWK"; then
1347 echo "$as_me:1347: result: $AWK" >&5
1348 echo "${ECHO_T}$AWK" >&6
1350 echo "$as_me:1350: result: no" >&5
1351 echo "${ECHO_T}no" >&6
1354 test -n "$AWK" && break
1357 echo "$as_me:1357: checking whether ${MAKE-make} sets \${MAKE}" >&5
1358 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1359 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1360 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 cat >conftest.make <<\EOF
1365 @echo 'ac_maketemp="${MAKE}"'
1367 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1368 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1369 if test -n "$ac_maketemp"; then
1370 eval ac_cv_prog_make_${ac_make}_set=yes
1372 eval ac_cv_prog_make_${ac_make}_set=no
1376 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1377 echo "$as_me:1377: result: yes" >&5
1378 echo "${ECHO_T}yes" >&6
1381 echo "$as_me:1381: result: no" >&5
1382 echo "${ECHO_T}no" >&6
1383 SET_MAKE="MAKE=${MAKE-make}"
1386 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1387 if test "${enable_dependency_tracking+set}" = set; then
1388 enableval="$enable_dependency_tracking"
1391 if test "x$enable_dependency_tracking" != xno; then
1392 am_depcomp="$ac_aux_dir/depcomp"
1396 if test "x$enable_dependency_tracking" != xno; then
1404 rm -f .deps 2>/dev/null
1405 mkdir .deps 2>/dev/null
1406 if test -d .deps; then
1409 # MS-DOS does not allow filenames that begin with a dot.
1412 rmdir .deps 2>/dev/null
1414 # test to see if srcdir already configured
1415 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1416 test -f $srcdir/config.status; then
1417 { { echo "$as_me:1417: error: source directory already configured; run \"make distclean\" there first" >&5
1418 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1419 { (exit 1); exit 1; }; }
1422 # Define the identity of the package.
1426 cat >>confdefs.h <<EOF
1427 #define PACKAGE "$PACKAGE"
1430 cat >>confdefs.h <<EOF
1431 #define VERSION "$VERSION"
1434 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1435 # the ones we care about.
1437 # Autoconf 2.50 always computes EXEEXT. However we need to be
1438 # compatible with 2.13, for now. So we always define EXEEXT, but we
1441 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1442 # requests that it be used. This is a bit dumb.
1445 # Some tools Automake needs.
1447 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1449 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1451 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1453 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1455 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1457 AMTAR=${AMTAR-"${am_missing_run}tar"}
1459 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1461 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1463 # We need awk for the "check" target. The system "awk" is bad on
1466 ac_config_headers="$ac_config_headers config.h"
1468 test "$prefix" = "NONE" && prefix="/usr"
1469 test "$prefix" = "/usr" && exec_prefix=""
1470 test "$CFLAGS" = "" && CFLAGS="-O2 -Wall"
1471 test "$LDFLAGS" = "" && LDFLAGS="-s"
1473 # Check whether --enable-shared or --disable-shared was given.
1474 if test "${enable_shared+set}" = set; then
1475 enableval="$enable_shared"
1476 p=${PACKAGE-default}
1478 yes) enable_shared=yes ;;
1479 no) enable_shared=no ;;
1482 # Look at the argument we got. We use all the common list separators.
1483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1484 for pkg in $enableval; do
1485 if test "X$pkg" = "X$p"; then
1495 # Check whether --enable-static or --disable-static was given.
1496 if test "${enable_static+set}" = set; then
1497 enableval="$enable_static"
1498 p=${PACKAGE-default}
1500 yes) enable_static=yes ;;
1501 no) enable_static=no ;;
1504 # Look at the argument we got. We use all the common list separators.
1505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1506 for pkg in $enableval; do
1507 if test "X$pkg" = "X$p"; then
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:1526: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 ac_save_IFS=$IFS; IFS=$ac_path_separator
1536 for ac_dir in $ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 $as_executable_p "$ac_dir/$ac_word" || continue
1540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1541 echo "$as_me:1541: found $ac_dir/$ac_word" >&5
1548 if test -n "$CC"; then
1549 echo "$as_me:1549: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1552 echo "$as_me:1552: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1557 if test -z "$ac_cv_prog_CC"; then
1559 # Extract the first word of "gcc", so it can be a program name with args.
1560 set dummy gcc; ac_word=$2
1561 echo "$as_me:1561: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569 ac_save_IFS=$IFS; IFS=$ac_path_separator
1571 for ac_dir in $ac_dummy; do
1573 test -z "$ac_dir" && ac_dir=.
1574 $as_executable_p "$ac_dir/$ac_word" || continue
1575 ac_cv_prog_ac_ct_CC="gcc"
1576 echo "$as_me:1576: found $ac_dir/$ac_word" >&5
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:1584: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1587 echo "$as_me:1587: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:1600: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 ac_save_IFS=$IFS; IFS=$ac_path_separator
1610 for ac_dir in $ac_dummy; do
1612 test -z "$ac_dir" && ac_dir=.
1613 $as_executable_p "$ac_dir/$ac_word" || continue
1614 ac_cv_prog_CC="${ac_tool_prefix}cc"
1615 echo "$as_me:1615: found $ac_dir/$ac_word" >&5
1622 if test -n "$CC"; then
1623 echo "$as_me:1623: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1626 echo "$as_me:1626: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1631 if test -z "$ac_cv_prog_CC"; then
1633 # Extract the first word of "cc", so it can be a program name with args.
1634 set dummy cc; ac_word=$2
1635 echo "$as_me:1635: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 ac_save_IFS=$IFS; IFS=$ac_path_separator
1645 for ac_dir in $ac_dummy; do
1647 test -z "$ac_dir" && ac_dir=.
1648 $as_executable_p "$ac_dir/$ac_word" || continue
1649 ac_cv_prog_ac_ct_CC="cc"
1650 echo "$as_me:1650: found $ac_dir/$ac_word" >&5
1656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1657 if test -n "$ac_ct_CC"; then
1658 echo "$as_me:1658: result: $ac_ct_CC" >&5
1659 echo "${ECHO_T}$ac_ct_CC" >&6
1661 echo "$as_me:1661: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1671 if test -z "$CC"; then
1672 # Extract the first word of "cc", so it can be a program name with args.
1673 set dummy cc; ac_word=$2
1674 echo "$as_me:1674: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 if test -n "$CC"; then
1680 ac_cv_prog_CC="$CC" # Let the user override the test.
1683 ac_save_IFS=$IFS; IFS=$ac_path_separator
1685 for ac_dir in $ac_dummy; do
1687 test -z "$ac_dir" && ac_dir=.
1688 $as_executable_p "$ac_dir/$ac_word" || continue
1689 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1690 ac_prog_rejected=yes
1694 echo "$as_me:1694: found $ac_dir/$ac_word" >&5
1698 if test $ac_prog_rejected = yes; then
1699 # We found a bogon in the path, so make sure we never use it.
1700 set dummy $ac_cv_prog_CC
1702 if test $# != 0; then
1703 # We chose a different compiler from the bogus one.
1704 # However, it has the same basename, so the bogon will be chosen
1705 # first if we set CC to just the basename; use the full file name.
1707 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1715 if test -n "$CC"; then
1716 echo "$as_me:1716: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1719 echo "$as_me:1719: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1724 if test -z "$CC"; then
1725 if test -n "$ac_tool_prefix"; then
1728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1730 echo "$as_me:1730: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_CC+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 if test -n "$CC"; then
1736 ac_cv_prog_CC="$CC" # Let the user override the test.
1738 ac_save_IFS=$IFS; IFS=$ac_path_separator
1740 for ac_dir in $ac_dummy; do
1742 test -z "$ac_dir" && ac_dir=.
1743 $as_executable_p "$ac_dir/$ac_word" || continue
1744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1745 echo "$as_me:1745: found $ac_dir/$ac_word" >&5
1752 if test -n "$CC"; then
1753 echo "$as_me:1753: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6
1756 echo "$as_me:1756: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1760 test -n "$CC" && break
1763 if test -z "$CC"; then
1767 # Extract the first word of "$ac_prog", so it can be a program name with args.
1768 set dummy $ac_prog; ac_word=$2
1769 echo "$as_me:1769: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 if test -n "$ac_ct_CC"; then
1775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777 ac_save_IFS=$IFS; IFS=$ac_path_separator
1779 for ac_dir in $ac_dummy; do
1781 test -z "$ac_dir" && ac_dir=.
1782 $as_executable_p "$ac_dir/$ac_word" || continue
1783 ac_cv_prog_ac_ct_CC="$ac_prog"
1784 echo "$as_me:1784: found $ac_dir/$ac_word" >&5
1790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1791 if test -n "$ac_ct_CC"; then
1792 echo "$as_me:1792: result: $ac_ct_CC" >&5
1793 echo "${ECHO_T}$ac_ct_CC" >&6
1795 echo "$as_me:1795: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1799 test -n "$ac_ct_CC" && break
1807 test -z "$CC" && { { echo "$as_me:1807: error: no acceptable cc found in \$PATH" >&5
1808 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1809 { (exit 1); exit 1; }; }
1811 # Provide some information about the compiler.
1812 echo "$as_me:1812:" \
1813 "checking for C compiler version" >&5
1814 ac_compiler=`set X $ac_compile; echo $2`
1815 { (eval echo "$as_me:1815: \"$ac_compiler --version </dev/null >&5\"") >&5
1816 (eval $ac_compiler --version </dev/null >&5) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1820 { (eval echo "$as_me:1820: \"$ac_compiler -v </dev/null >&5\"") >&5
1821 (eval $ac_compiler -v </dev/null >&5) 2>&5
1823 echo "$as_me:1823: \$? = $ac_status" >&5
1824 (exit $ac_status); }
1825 { (eval echo "$as_me:1825: \"$ac_compiler -V </dev/null >&5\"") >&5
1826 (eval $ac_compiler -V </dev/null >&5) 2>&5
1828 echo "$as_me:1828: \$? = $ac_status" >&5
1829 (exit $ac_status); }
1831 cat >conftest.$ac_ext <<_ACEOF
1832 #line 1832 "configure"
1833 #include "confdefs.h"
1843 ac_clean_files_save=$ac_clean_files
1844 ac_clean_files="$ac_clean_files a.out a.exe"
1845 # Try to create an executable without -o first, disregard a.out.
1846 # It will help us diagnose broken compilers, and finding out an intuition
1848 echo "$as_me:1848: checking for C compiler default output" >&5
1849 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1850 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1851 if { (eval echo "$as_me:1851: \"$ac_link_default\"") >&5
1852 (eval $ac_link_default) 2>&5
1854 echo "$as_me:1854: \$? = $ac_status" >&5
1855 (exit $ac_status); }; then
1856 # Find the output, starting from the most likely. This scheme is
1857 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1859 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1860 ls a.out conftest 2>/dev/null;
1861 ls a.* conftest.* 2>/dev/null`; do
1863 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1864 a.out ) # We found the default executable, but exeext='' is most
1867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1875 echo "$as_me: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 { { echo "$as_me:1877: error: C compiler cannot create executables" >&5
1878 echo "$as_me: error: C compiler cannot create executables" >&2;}
1879 { (exit 77); exit 77; }; }
1882 ac_exeext=$ac_cv_exeext
1883 echo "$as_me:1883: result: $ac_file" >&5
1884 echo "${ECHO_T}$ac_file" >&6
1886 # Check the compiler produces executables we can run. If not, either
1887 # the compiler is broken, or we cross compile.
1888 echo "$as_me:1888: checking whether the C compiler works" >&5
1889 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1890 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1891 # If not cross compiling, check that we can run a simple program.
1892 if test "$cross_compiling" != yes; then
1893 if { ac_try='./$ac_file'
1894 { (eval echo "$as_me:1894: \"$ac_try\"") >&5
1897 echo "$as_me:1897: \$? = $ac_status" >&5
1898 (exit $ac_status); }; }; then
1901 if test "$cross_compiling" = maybe; then
1904 { { echo "$as_me:1904: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'." >&5
1906 echo "$as_me: error: cannot run C compiled programs.
1907 If you meant to cross compile, use \`--host'." >&2;}
1908 { (exit 1); exit 1; }; }
1912 echo "$as_me:1912: result: yes" >&5
1913 echo "${ECHO_T}yes" >&6
1915 rm -f a.out a.exe conftest$ac_cv_exeext
1916 ac_clean_files=$ac_clean_files_save
1917 # Check the compiler produces executables we can run. If not, either
1918 # the compiler is broken, or we cross compile.
1919 echo "$as_me:1919: checking whether we are cross compiling" >&5
1920 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1921 echo "$as_me:1921: result: $cross_compiling" >&5
1922 echo "${ECHO_T}$cross_compiling" >&6
1924 echo "$as_me:1924: checking for executable suffix" >&5
1925 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1926 if { (eval echo "$as_me:1926: \"$ac_link\"") >&5
1927 (eval $ac_link) 2>&5
1929 echo "$as_me:1929: \$? = $ac_status" >&5
1930 (exit $ac_status); }; then
1931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1933 # work properly (i.e., refer to `conftest.exe'), while it won't with
1935 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1937 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1945 { { echo "$as_me:1945: error: cannot compute EXEEXT: cannot compile and link" >&5
1946 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1947 { (exit 1); exit 1; }; }
1950 rm -f conftest$ac_cv_exeext
1951 echo "$as_me:1951: result: $ac_cv_exeext" >&5
1952 echo "${ECHO_T}$ac_cv_exeext" >&6
1954 rm -f conftest.$ac_ext
1955 EXEEXT=$ac_cv_exeext
1957 echo "$as_me:1957: checking for object suffix" >&5
1958 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1959 if test "${ac_cv_objext+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 cat >conftest.$ac_ext <<_ACEOF
1963 #line 1963 "configure"
1964 #include "confdefs.h"
1974 rm -f conftest.o conftest.obj
1975 if { (eval echo "$as_me:1975: \"$ac_compile\"") >&5
1976 (eval $ac_compile) 2>&5
1978 echo "$as_me:1978: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1983 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:1990: error: cannot compute OBJEXT: cannot compile" >&5
1991 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1992 { (exit 1); exit 1; }; }
1995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1997 echo "$as_me:1997: result: $ac_cv_objext" >&5
1998 echo "${ECHO_T}$ac_cv_objext" >&6
1999 OBJEXT=$ac_cv_objext
2001 echo "$as_me:2001: checking whether we are using the GNU C compiler" >&5
2002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.$ac_ext <<_ACEOF
2007 #line 2007 "configure"
2008 #include "confdefs.h"
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:2022: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:2025: \$? = $ac_status" >&5
2026 (exit $ac_status); } &&
2027 { ac_try='test -s conftest.$ac_objext'
2028 { (eval echo "$as_me:2028: \"$ac_try\"") >&5
2031 echo "$as_me:2031: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2039 rm -f conftest.$ac_objext conftest.$ac_ext
2040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2043 echo "$as_me:2043: result: $ac_cv_c_compiler_gnu" >&5
2044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2045 GCC=`test $ac_compiler_gnu = yes && echo yes`
2046 ac_test_CFLAGS=${CFLAGS+set}
2047 ac_save_CFLAGS=$CFLAGS
2049 echo "$as_me:2049: checking whether $CC accepts -g" >&5
2050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2051 if test "${ac_cv_prog_cc_g+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2066 rm -f conftest.$ac_objext
2067 if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2068 (eval $ac_compile) 2>&5
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest.$ac_objext'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2084 rm -f conftest.$ac_objext conftest.$ac_ext
2086 echo "$as_me:2086: result: $ac_cv_prog_cc_g" >&5
2087 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2088 if test "$ac_test_CFLAGS" = set; then
2089 CFLAGS=$ac_save_CFLAGS
2090 elif test $ac_cv_prog_cc_g = yes; then
2091 if test "$GCC" = yes; then
2097 if test "$GCC" = yes; then
2103 # Some people use a C++ compiler to compile C. Since we use `exit',
2104 # in C++ we need to declare it. In case someone uses the same compiler
2105 # for both compiling C and C++ we need to have the C++ compiler decide
2106 # the declaration of exit, since it's the most demanding environment.
2107 cat >conftest.$ac_ext <<_ACEOF
2112 rm -f conftest.$ac_objext
2113 if { (eval echo "$as_me:2113: \"$ac_compile\"") >&5
2114 (eval $ac_compile) 2>&5
2116 echo "$as_me:2116: \$? = $ac_status" >&5
2117 (exit $ac_status); } &&
2118 { ac_try='test -s conftest.$ac_objext'
2119 { (eval echo "$as_me:2119: \"$ac_try\"") >&5
2122 echo "$as_me:2122: \$? = $ac_status" >&5
2123 (exit $ac_status); }; }; then
2124 for ac_declaration in \
2126 '#include <stdlib.h>' \
2127 'extern "C" void std::exit (int) throw (); using std::exit;' \
2128 'extern "C" void std::exit (int); using std::exit;' \
2129 'extern "C" void exit (int) throw ();' \
2130 'extern "C" void exit (int);' \
2133 cat >conftest.$ac_ext <<_ACEOF
2134 #line 2134 "configure"
2135 #include "confdefs.h"
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:2147: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 cat >conftest.$ac_ext <<_ACEOF
2166 #line 2166 "configure"
2167 #include "confdefs.h"
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:2178: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2181 echo "$as_me:2181: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:2184: \"$ac_try\"") >&5
2187 echo "$as_me:2187: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2191 echo "$as_me: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 rm -f conftest.$ac_objext conftest.$ac_ext
2197 if test -n "$ac_declaration"; then
2198 echo '#ifdef __cplusplus' >>confdefs.h
2199 echo $ac_declaration >>confdefs.h
2200 echo '#endif' >>confdefs.h
2204 echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2207 rm -f conftest.$ac_objext conftest.$ac_ext
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 ac_config_commands="$ac_config_commands default-1"
2216 am_make=${MAKE-make}
2217 cat > confinc << 'END'
2221 # If we don't find an include directive, just comment out the code.
2222 echo "$as_me:2222: checking for style of include used by $am_make" >&5
2223 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2227 # First try GNU make style include.
2228 echo "include confinc" > confmf
2229 # We grep out `Entering directory' and `Leaving directory'
2230 # messages which can occur if `w' ends up in MAKEFLAGS.
2231 # In particular we don't look at `^make:' because GNU make might
2232 # be invoked under some other name (usually "gmake"), in which
2233 # case it prints its new name instead of `make'.
2234 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2239 # Now try BSD make style include.
2240 if test "$am__include" = "#"; then
2241 echo '.include "confinc"' > confmf
2242 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2243 am__include=.include
2249 echo "$as_me:2249: result: $_am_result" >&5
2250 echo "${ECHO_T}$_am_result" >&6
2251 rm -f confinc confmf
2253 depcc="$CC" am_compiler_list=
2255 echo "$as_me:2255: checking dependency style of $depcc" >&5
2256 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2257 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2261 # We make a subdir and do the tests there. Otherwise we can end up
2262 # making bogus files that we don't know about and never remove. For
2263 # instance it was reported that on HP-UX the gcc test will end up
2264 # making a dummy file named `D' -- because `-MD' means `put the output
2267 # Copy depcomp to subdir because otherwise we won't find it if we're
2268 # using a relative directory.
2269 cp "$am_depcomp" conftest.dir
2272 am_cv_CC_dependencies_compiler_type=none
2273 if test "$am_compiler_list" = ""; then
2274 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2276 for depmode in $am_compiler_list; do
2277 # We need to recreate these files for each test, as the compiler may
2278 # overwrite some of them when testing with obscure command lines.
2279 # This happens at least with the AIX C compiler.
2280 echo '#include "conftest.h"' > conftest.c
2281 echo 'int i;' > conftest.h
2282 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2286 # after this tag, mechanisms are not by side-effect, so they'll
2287 # only be used when explicitly requested
2288 if test "x$enable_dependency_tracking" = xyes; then
2296 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2297 # mode. It turns out that the SunPro C++ compiler does not properly
2298 # handle `-M -o', and we need to detect this.
2299 if depmode=$depmode \
2300 source=conftest.c object=conftest.o \
2301 depfile=conftest.Po tmpdepfile=conftest.TPo \
2302 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2303 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2304 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2305 am_cv_CC_dependencies_compiler_type=$depmode
2313 am_cv_CC_dependencies_compiler_type=none
2317 echo "$as_me:2317: result: $am_cv_CC_dependencies_compiler_type" >&5
2318 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2319 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2321 echo "$as_me:2321: checking for strerror in -lcposix" >&5
2322 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2323 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 ac_check_lib_save_LIBS=$LIBS
2327 LIBS="-lcposix $LIBS"
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line 2329 "configure"
2330 #include "confdefs.h"
2332 /* Override any gcc2 internal prototype to avoid an error. */
2336 /* We use char because int might match the return type of a gcc2
2337 builtin and then its argument prototype would still apply. */
2347 rm -f conftest.$ac_objext conftest$ac_exeext
2348 if { (eval echo "$as_me:2348: \"$ac_link\"") >&5
2349 (eval $ac_link) 2>&5
2351 echo "$as_me:2351: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -s conftest$ac_exeext'
2354 { (eval echo "$as_me:2354: \"$ac_try\"") >&5
2357 echo "$as_me:2357: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2359 ac_cv_lib_cposix_strerror=yes
2361 echo "$as_me: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 ac_cv_lib_cposix_strerror=no
2365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2366 LIBS=$ac_check_lib_save_LIBS
2368 echo "$as_me:2368: result: $ac_cv_lib_cposix_strerror" >&5
2369 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2370 if test $ac_cv_lib_cposix_strerror = yes; then
2371 LIBS="$LIBS -lcposix"
2374 echo "$as_me:2374: checking whether ln -s works" >&5
2375 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2377 if test "$LN_S" = "ln -s"; then
2378 echo "$as_me:2378: result: yes" >&5
2379 echo "${ECHO_T}yes" >&6
2381 echo "$as_me:2381: result: no, using $LN_S" >&5
2382 echo "${ECHO_T}no, using $LN_S" >&6
2385 for ac_prog in 'bison -y' byacc
2387 # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:2389: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_YACC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$YACC"; then
2395 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2397 ac_save_IFS=$IFS; IFS=$ac_path_separator
2399 for ac_dir in $ac_dummy; do
2401 test -z "$ac_dir" && ac_dir=.
2402 $as_executable_p "$ac_dir/$ac_word" || continue
2403 ac_cv_prog_YACC="$ac_prog"
2404 echo "$as_me:2404: found $ac_dir/$ac_word" >&5
2410 YACC=$ac_cv_prog_YACC
2411 if test -n "$YACC"; then
2412 echo "$as_me:2412: result: $YACC" >&5
2413 echo "${ECHO_T}$YACC" >&6
2415 echo "$as_me:2415: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2419 test -n "$YACC" && break
2421 test -n "$YACC" || YACC="yacc"
2423 echo "$as_me:2423: checking for ${CC-cc} option to accept ANSI C" >&5
2424 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2425 if test "${am_cv_prog_cc_stdc+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 am_cv_prog_cc_stdc=no
2430 # Don't try gcc -ansi; that turns off useful extensions and
2431 # breaks some systems' header files.
2432 # AIX -qlanglvl=ansi
2433 # Ultrix and OSF/1 -std1
2434 # HP-UX 10.20 and later -Ae
2435 # HP-UX older versions -Aa -D_HPUX_SOURCE
2436 # SVR4 -Xc -D__EXTENSIONS__
2437 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2439 CC="$ac_save_CC $ac_arg"
2440 cat >conftest.$ac_ext <<_ACEOF
2441 #line 2441 "configure"
2442 #include "confdefs.h"
2445 #include <sys/types.h>
2446 #include <sys/stat.h>
2447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2448 struct buf { int x; };
2449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2450 static char *e (p, i)
2456 static char *f (char * (*g) (char **, int), char **p, ...)
2461 s = g (p, va_arg (v,int));
2465 int test (int i, double x);
2466 struct s1 {int (*f) (int a);};
2467 struct s2 {int (*f) (double a);};
2468 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2482 rm -f conftest.$ac_objext
2483 if { (eval echo "$as_me:2483: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>&5
2486 echo "$as_me:2486: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:2489: \"$ac_try\"") >&5
2492 echo "$as_me:2492: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 am_cv_prog_cc_stdc="$ac_arg"; break
2496 echo "$as_me: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2499 rm -f conftest.$ac_objext conftest.$ac_ext
2505 if test -z "$am_cv_prog_cc_stdc"; then
2506 echo "$as_me:2506: result: none needed" >&5
2507 echo "${ECHO_T}none needed" >&6
2509 echo "$as_me:2509: result: $am_cv_prog_cc_stdc" >&5
2510 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2512 case "x$am_cv_prog_cc_stdc" in
2514 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522 echo "$as_me:2522: checking how to run the C preprocessor" >&5
2523 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2524 # On Suns, sometimes $CPP names a directory.
2525 if test -n "$CPP" && test -d "$CPP"; then
2528 if test -z "$CPP"; then
2529 if test "${ac_cv_prog_CPP+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 # Double quotes because CPP needs to be expanded
2533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2536 for ac_c_preproc_warn_flag in '' yes
2538 # Use a header file that comes with gcc, so configuring glibc
2539 # with a fresh cross-compiler works.
2540 # On the NeXT, cc -E runs the code through the compiler's parser,
2541 # not just through cpp. "Syntax error" is here to catch this case.
2542 cat >conftest.$ac_ext <<_ACEOF
2543 #line 2543 "configure"
2544 #include "confdefs.h"
2548 if { (eval echo "$as_me:2548: \"$ac_cpp conftest.$ac_ext\"") >&5
2549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2551 egrep -v '^ *\+' conftest.er1 >conftest.err
2553 cat conftest.err >&5
2554 echo "$as_me:2554: \$? = $ac_status" >&5
2555 (exit $ac_status); } >/dev/null; then
2556 if test -s conftest.err; then
2557 ac_cpp_err=$ac_c_preproc_warn_flag
2564 if test -z "$ac_cpp_err"; then
2567 echo "$as_me: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 # Broken: fails on valid input.
2572 rm -f conftest.err conftest.$ac_ext
2574 # OK, works on sane cases. Now check whether non-existent headers
2575 # can be detected and how.
2576 cat >conftest.$ac_ext <<_ACEOF
2577 #line 2577 "configure"
2578 #include "confdefs.h"
2579 #include <ac_nonexistent.h>
2581 if { (eval echo "$as_me:2581: \"$ac_cpp conftest.$ac_ext\"") >&5
2582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584 egrep -v '^ *\+' conftest.er1 >conftest.err
2586 cat conftest.err >&5
2587 echo "$as_me:2587: \$? = $ac_status" >&5
2588 (exit $ac_status); } >/dev/null; then
2589 if test -s conftest.err; then
2590 ac_cpp_err=$ac_c_preproc_warn_flag
2597 if test -z "$ac_cpp_err"; then
2598 # Broken: success on invalid input.
2601 echo "$as_me: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 # Passes both tests.
2607 rm -f conftest.err conftest.$ac_ext
2610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2611 rm -f conftest.err conftest.$ac_ext
2612 if $ac_preproc_ok; then
2624 echo "$as_me:2624: result: $CPP" >&5
2625 echo "${ECHO_T}$CPP" >&6
2627 for ac_c_preproc_warn_flag in '' yes
2629 # Use a header file that comes with gcc, so configuring glibc
2630 # with a fresh cross-compiler works.
2631 # On the NeXT, cc -E runs the code through the compiler's parser,
2632 # not just through cpp. "Syntax error" is here to catch this case.
2633 cat >conftest.$ac_ext <<_ACEOF
2634 #line 2634 "configure"
2635 #include "confdefs.h"
2639 if { (eval echo "$as_me:2639: \"$ac_cpp conftest.$ac_ext\"") >&5
2640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2642 egrep -v '^ *\+' conftest.er1 >conftest.err
2644 cat conftest.err >&5
2645 echo "$as_me:2645: \$? = $ac_status" >&5
2646 (exit $ac_status); } >/dev/null; then
2647 if test -s conftest.err; then
2648 ac_cpp_err=$ac_c_preproc_warn_flag
2655 if test -z "$ac_cpp_err"; then
2658 echo "$as_me: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2660 # Broken: fails on valid input.
2663 rm -f conftest.err conftest.$ac_ext
2665 # OK, works on sane cases. Now check whether non-existent headers
2666 # can be detected and how.
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #line 2668 "configure"
2669 #include "confdefs.h"
2670 #include <ac_nonexistent.h>
2672 if { (eval echo "$as_me:2672: \"$ac_cpp conftest.$ac_ext\"") >&5
2673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2675 egrep -v '^ *\+' conftest.er1 >conftest.err
2677 cat conftest.err >&5
2678 echo "$as_me:2678: \$? = $ac_status" >&5
2679 (exit $ac_status); } >/dev/null; then
2680 if test -s conftest.err; then
2681 ac_cpp_err=$ac_c_preproc_warn_flag
2688 if test -z "$ac_cpp_err"; then
2689 # Broken: success on invalid input.
2692 echo "$as_me: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2694 # Passes both tests.
2698 rm -f conftest.err conftest.$ac_ext
2701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2702 rm -f conftest.err conftest.$ac_ext
2703 if $ac_preproc_ok; then
2706 { { echo "$as_me:2706: error: C preprocessor \"$CPP\" fails sanity check" >&5
2707 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2708 { (exit 1); exit 1; }; }
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 echo "$as_me:2717: checking for function prototypes" >&5
2718 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2719 if test "$am_cv_prog_cc_stdc" != no; then
2720 echo "$as_me:2720: result: yes" >&5
2721 echo "${ECHO_T}yes" >&6
2723 cat >>confdefs.h <<\EOF
2724 #define PROTOTYPES 1
2729 echo "$as_me:2729: result: no" >&5
2730 echo "${ECHO_T}no" >&6
2731 U=_ ANSI2KNR=./ansi2knr
2733 # Ensure some checks needed by ansi2knr itself.
2734 echo "$as_me:2734: checking for ANSI C header files" >&5
2735 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2736 if test "${ac_cv_header_stdc+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #line 2740 "configure"
2741 #include "confdefs.h"
2748 if { (eval echo "$as_me:2748: \"$ac_cpp conftest.$ac_ext\"") >&5
2749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2751 egrep -v '^ *\+' conftest.er1 >conftest.err
2753 cat conftest.err >&5
2754 echo "$as_me:2754: \$? = $ac_status" >&5
2755 (exit $ac_status); } >/dev/null; then
2756 if test -s conftest.err; then
2757 ac_cpp_err=$ac_c_preproc_warn_flag
2764 if test -z "$ac_cpp_err"; then
2765 ac_cv_header_stdc=yes
2767 echo "$as_me: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 ac_cv_header_stdc=no
2771 rm -f conftest.err conftest.$ac_ext
2773 if test $ac_cv_header_stdc = yes; then
2774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line 2776 "configure"
2777 #include "confdefs.h"
2781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782 egrep "memchr" >/dev/null 2>&1; then
2785 ac_cv_header_stdc=no
2791 if test $ac_cv_header_stdc = yes; then
2792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line 2794 "configure"
2795 #include "confdefs.h"
2799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2800 egrep "free" >/dev/null 2>&1; then
2803 ac_cv_header_stdc=no
2809 if test $ac_cv_header_stdc = yes; then
2810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2811 if test "$cross_compiling" = yes; then
2814 cat >conftest.$ac_ext <<_ACEOF
2815 #line 2815 "configure"
2816 #include "confdefs.h"
2818 #if ((' ' & 0x0FF) == 0x020)
2819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2822 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2823 || ('j' <= (c) && (c) <= 'r') \
2824 || ('s' <= (c) && (c) <= 'z'))
2825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2833 for (i = 0; i < 256; i++)
2834 if (XOR (islower (i), ISLOWER (i))
2835 || toupper (i) != TOUPPER (i))
2840 rm -f conftest$ac_exeext
2841 if { (eval echo "$as_me:2841: \"$ac_link\"") >&5
2842 (eval $ac_link) 2>&5
2844 echo "$as_me:2844: \$? = $ac_status" >&5
2845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2846 { (eval echo "$as_me:2846: \"$ac_try\"") >&5
2849 echo "$as_me:2849: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 echo "$as_me: program exited with status $ac_status" >&5
2854 echo "$as_me: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2856 ac_cv_header_stdc=no
2858 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2862 echo "$as_me:2862: result: $ac_cv_header_stdc" >&5
2863 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2864 if test $ac_cv_header_stdc = yes; then
2866 cat >>confdefs.h <<\EOF
2867 #define STDC_HEADERS 1
2872 for ac_header in string.h
2874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2875 echo "$as_me:2875: checking for $ac_header" >&5
2876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 cat >conftest.$ac_ext <<_ACEOF
2881 #line 2881 "configure"
2882 #include "confdefs.h"
2883 #include <$ac_header>
2885 if { (eval echo "$as_me:2885: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2888 egrep -v '^ *\+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev/null; then
2893 if test -s conftest.err; then
2894 ac_cpp_err=$ac_c_preproc_warn_flag
2901 if test -z "$ac_cpp_err"; then
2902 eval "$as_ac_Header=yes"
2904 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 eval "$as_ac_Header=no"
2908 rm -f conftest.err conftest.$ac_ext
2910 echo "$as_me:2910: result: `eval echo '${'$as_ac_Header'}'`" >&5
2911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2913 cat >>confdefs.h <<EOF
2914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2920 # Check whether --enable-fast-install or --disable-fast-install was given.
2921 if test "${enable_fast_install+set}" = set; then
2922 enableval="$enable_fast_install"
2923 p=${PACKAGE-default}
2925 yes) enable_fast_install=yes ;;
2926 no) enable_fast_install=no ;;
2928 enable_fast_install=no
2929 # Look at the argument we got. We use all the common list separators.
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2931 for pkg in $enableval; do
2932 if test "X$pkg" = "X$p"; then
2933 enable_fast_install=yes
2940 enable_fast_install=yes
2942 # Make sure we can run config.sub.
2943 $ac_config_sub sun4 >/dev/null 2>&1 ||
2944 { { echo "$as_me:2944: error: cannot run $ac_config_sub" >&5
2945 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2946 { (exit 1); exit 1; }; }
2948 echo "$as_me:2948: checking build system type" >&5
2949 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2950 if test "${ac_cv_build+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 ac_cv_build_alias=$build_alias
2954 test -z "$ac_cv_build_alias" &&
2955 ac_cv_build_alias=`$ac_config_guess`
2956 test -z "$ac_cv_build_alias" &&
2957 { { echo "$as_me:2957: error: cannot guess build type; you must specify one" >&5
2958 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2959 { (exit 1); exit 1; }; }
2960 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2961 { { echo "$as_me:2961: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2962 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2963 { (exit 1); exit 1; }; }
2966 echo "$as_me:2966: result: $ac_cv_build" >&5
2967 echo "${ECHO_T}$ac_cv_build" >&6
2969 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2970 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2971 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2973 echo "$as_me:2973: checking host system type" >&5
2974 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2975 if test "${ac_cv_host+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 ac_cv_host_alias=$host_alias
2979 test -z "$ac_cv_host_alias" &&
2980 ac_cv_host_alias=$ac_cv_build_alias
2981 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2982 { { echo "$as_me:2982: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2983 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2984 { (exit 1); exit 1; }; }
2987 echo "$as_me:2987: result: $ac_cv_host" >&5
2988 echo "${ECHO_T}$ac_cv_host" >&6
2990 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2991 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2992 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2994 # Find the correct PATH separator. Usually this is `:', but
2995 # DJGPP uses `;' like DOS.
2996 if test "X${PATH_SEPARATOR+set}" != Xset; then
2997 UNAME=${UNAME-`uname 2>/dev/null`}
2999 *-DOS) lt_cv_sys_path_separator=';' ;;
3000 *) lt_cv_sys_path_separator=':' ;;
3002 PATH_SEPARATOR=$lt_cv_sys_path_separator
3005 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3006 if test "${with_gnu_ld+set}" = set; then
3007 withval="$with_gnu_ld"
3008 test "$withval" = no || with_gnu_ld=yes
3013 if test "$GCC" = yes; then
3014 # Check if gcc -print-prog-name=ld gives a path.
3015 echo "$as_me:3015: checking for ld used by GCC" >&5
3016 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3019 # gcc leaves a trailing carriage return which upsets mingw
3020 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3022 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3025 # Accept absolute paths.
3026 [\\/]* | [A-Za-z]:[\\/]*)
3027 re_direlt='/[^/][^/]*/\.\./'
3028 # Canonicalize the path of ld
3029 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3030 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3031 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3033 test -z "$LD" && LD="$ac_prog"
3036 # If it fails, then pretend we aren't using GCC.
3040 # If it is relative, then search for the first ld in PATH.
3044 elif test "$with_gnu_ld" = yes; then
3045 echo "$as_me:3045: checking for GNU ld" >&5
3046 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3048 echo "$as_me:3048: checking for non-GNU ld" >&5
3049 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3051 if test "${lt_cv_path_LD+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 if test -z "$LD"; then
3055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3056 for ac_dir in $PATH; do
3057 test -z "$ac_dir" && ac_dir=.
3058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3059 lt_cv_path_LD="$ac_dir/$ac_prog"
3060 # Check to see if the program is GNU ld. I'd rather use --version,
3061 # but apparently some GNU ld's only accept -v.
3062 # Break only if it was the GNU/non-GNU ld that we prefer.
3063 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3064 test "$with_gnu_ld" != no && break
3066 test "$with_gnu_ld" != yes && break
3072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3077 if test -n "$LD"; then
3078 echo "$as_me:3078: result: $LD" >&5
3079 echo "${ECHO_T}$LD" >&6
3081 echo "$as_me:3081: result: no" >&5
3082 echo "${ECHO_T}no" >&6
3084 test -z "$LD" && { { echo "$as_me:3084: error: no acceptable ld found in \$PATH" >&5
3085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3086 { (exit 1); exit 1; }; }
3087 echo "$as_me:3087: checking if the linker ($LD) is GNU ld" >&5
3088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3093 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3094 lt_cv_prog_gnu_ld=yes
3096 lt_cv_prog_gnu_ld=no
3099 echo "$as_me:3099: result: $lt_cv_prog_gnu_ld" >&5
3100 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3101 with_gnu_ld=$lt_cv_prog_gnu_ld
3103 echo "$as_me:3103: checking for $LD option to reload object files" >&5
3104 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3105 if test "${lt_cv_ld_reload_flag+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 lt_cv_ld_reload_flag='-r'
3110 echo "$as_me:3110: result: $lt_cv_ld_reload_flag" >&5
3111 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3112 reload_flag=$lt_cv_ld_reload_flag
3113 test -n "$reload_flag" && reload_flag=" $reload_flag"
3115 echo "$as_me:3115: checking for BSD-compatible nm" >&5
3116 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3117 if test "${lt_cv_path_NM+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 if test -n "$NM"; then
3121 # Let the user override the test.
3124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3125 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3126 test -z "$ac_dir" && ac_dir=.
3127 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3128 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3129 # Check to see if the nm accepts a BSD-compat flag.
3130 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3131 # nm: unknown option "B" ignored
3132 # Tru64's nm complains that /dev/null is an invalid object file
3133 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3134 lt_cv_path_NM="$tmp_nm -B"
3136 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3137 lt_cv_path_NM="$tmp_nm -p"
3140 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3141 continue # so that we can try to find one that supports BSD flags
3146 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3151 echo "$as_me:3151: result: $NM" >&5
3152 echo "${ECHO_T}$NM" >&6
3154 echo "$as_me:3154: checking how to recognise dependant libraries" >&5
3155 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3156 if test "${lt_cv_deplibs_check_method+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 lt_cv_file_magic_cmd='$MAGIC_CMD'
3160 lt_cv_file_magic_test_file=
3161 lt_cv_deplibs_check_method='unknown'
3162 # Need to set the preceding variable on all platforms that support
3163 # interlibrary dependencies.
3164 # 'none' -- dependencies not supported.
3165 # `unknown' -- same as none, but documents that we really don't know.
3166 # 'pass_all' -- all dependencies passed with no checks.
3167 # 'test_compile' -- check by making test program.
3168 # 'file_magic [[regex]]' -- check by looking for files in library path
3169 # which responds to the $file_magic_cmd with a given egrep regex.
3170 # If you have `file' or equivalent on your system and you're not sure
3171 # whether `pass_all' will *always* work, you probably want this one.
3175 lt_cv_deplibs_check_method=pass_all
3179 lt_cv_deplibs_check_method=pass_all
3183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3184 lt_cv_file_magic_cmd='/usr/bin/file -L'
3185 lt_cv_file_magic_test_file=/shlib/libc.so
3188 cygwin* | mingw* | pw32*)
3189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3190 lt_cv_file_magic_cmd='$OBJDUMP -f'
3193 darwin* | rhapsody*)
3194 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3195 lt_cv_file_magic_cmd='/usr/bin/file -L'
3197 rhapsody* | darwin1.[012])
3198 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3201 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3207 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3210 # Not sure whether the presence of OpenBSD here was a mistake.
3211 # Let's accept both of them until this is cleared up.
3212 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3213 lt_cv_file_magic_cmd=/usr/bin/file
3214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3218 lt_cv_deplibs_check_method=pass_all
3223 lt_cv_deplibs_check_method=pass_all
3227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3228 lt_cv_file_magic_cmd=/usr/bin/file
3229 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3235 # this will be overridden with pass_all, but let us keep it just in case
3236 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3240 *-32|*"-32 ") libmagic=32-bit;;
3241 *-n32|*"-n32 ") libmagic=N32;;
3242 *-64|*"-64 ") libmagic=64-bit;;
3243 *) libmagic=never-match;;
3245 # this will be overridden with pass_all, but let us keep it just in case
3246 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3249 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3250 lt_cv_deplibs_check_method=pass_all
3253 # This must be Linux ELF.
3256 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3257 lt_cv_deplibs_check_method=pass_all ;;
3259 # glibc up to 2.1.1 does not perform some relocations on ARM
3260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3262 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3266 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3267 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3269 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3275 lt_cv_file_magic_cmd=/usr/bin/file
3276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3280 lt_cv_file_magic_cmd=/usr/bin/file
3281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3285 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3289 osf3* | osf4* | osf5*)
3290 # this will be overridden with pass_all, but let us keep it just in case
3291 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3292 lt_cv_file_magic_test_file=/shlib/libc.so
3293 lt_cv_deplibs_check_method=pass_all
3297 lt_cv_deplibs_check_method=pass_all
3301 lt_cv_deplibs_check_method=pass_all
3302 lt_cv_file_magic_test_file=/lib/libc.so
3305 sysv5uw[78]* | sysv4*uw2*)
3306 lt_cv_deplibs_check_method=pass_all
3309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3310 case $host_vendor in
3312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3316 lt_cv_deplibs_check_method=pass_all
3319 lt_cv_file_magic_cmd='/bin/file'
3320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3323 lt_cv_file_magic_cmd='/bin/file'
3324 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3325 lt_cv_file_magic_test_file=/lib/libc.so
3332 echo "$as_me:3332: result: $lt_cv_deplibs_check_method" >&5
3333 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3334 file_magic_cmd=$lt_cv_file_magic_cmd
3335 deplibs_check_method=$lt_cv_deplibs_check_method
3337 # Check for command to grab the raw symbol name followed by C symbol from nm.
3338 echo "$as_me:3338: checking command to parse $NM output" >&5
3339 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3340 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 # These are sane defaults that work on at least a few old systems.
3345 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3347 # Character class describing NM global symbol codes.
3348 symcode='[BCDEGRST]'
3350 # Regexp to match symbols that can be accessed directly from C.
3351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3353 # Transform the above into a raw symbol and a C symbol.
3354 symxfrm='\1 \2\3 \3'
3356 # Transform an extracted symbol line into a proper C declaration
3357 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3359 # Transform an extracted symbol line into symbol name and symbol address
3360 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3362 # Define system-specific variables.
3367 cygwin* | mingw* | pw32*)
3368 symcode='[ABCDGISTW]'
3370 hpux*) # Its linker distinguishes data from code symbols
3371 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3372 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3375 symcode='[BCDEGRST]'
3385 # Handle CRLF in mingw tool chain
3389 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3393 # If we're using GNU nm, then use its standard symbol codes.
3394 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3395 symcode='[ABCDGISTW]'
3398 # Try without a prefix undercore, then with it.
3399 for ac_symprfx in "" "_"; do
3401 # Write the raw and C identifiers.
3402 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3404 # Check to see that the pipe works correctly.
3407 cat > conftest.$ac_ext <<EOF
3412 void nm_test_func(){}
3416 int main(){nm_test_var='a';nm_test_func();return(0);}
3419 if { (eval echo "$as_me:3419: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>&5
3422 echo "$as_me:3422: \$? = $ac_status" >&5
3423 (exit $ac_status); }; then
3424 # Now try to grab the symbols.
3426 if { (eval echo "$as_me:3426: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3427 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3429 echo "$as_me:3429: \$? = $ac_status" >&5
3430 (exit $ac_status); } && test -s "$nlist"; then
3431 # Try sorting and uniquifying the output.
3432 if sort "$nlist" | uniq > "$nlist"T; then
3433 mv -f "$nlist"T "$nlist"
3438 # Make sure that we snagged all the symbols we need.
3439 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3440 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3441 cat <<EOF > conftest.$ac_ext
3447 # Now generate the symbol file.
3448 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3450 cat <<EOF >> conftest.$ac_ext
3451 #if defined (__STDC__) && __STDC__
3452 # define lt_ptr void *
3454 # define lt_ptr char *
3458 /* The mapping between symbol names and symbols. */
3463 lt_preloaded_symbols[] =
3466 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3467 cat <<\EOF >> conftest.$ac_ext
3475 # Now try linking the two files.
3476 mv conftest.$ac_objext conftstm.$ac_objext
3478 save_CFLAGS="$CFLAGS"
3479 LIBS="conftstm.$ac_objext"
3480 CFLAGS="$CFLAGS$no_builtin_flag"
3481 if { (eval echo "$as_me:3481: \"$ac_link\"") >&5
3482 (eval $ac_link) 2>&5
3484 echo "$as_me:3484: \$? = $ac_status" >&5
3485 (exit $ac_status); } && test -s conftest; then
3489 CFLAGS="$save_CFLAGS"
3491 echo "cannot find nm_test_func in $nlist" >&5
3494 echo "cannot find nm_test_var in $nlist" >&5
3497 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3500 echo "$progname: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3503 rm -f conftest* conftst*
3505 # Do not use the global_symbol_pipe unless it works.
3506 if test "$pipe_works" = yes; then
3509 lt_cv_sys_global_symbol_pipe=
3515 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3517 global_symbol_to_cdecl=
3518 global_symbol_to_c_name_address=
3520 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3521 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3523 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3525 echo "$as_me:3525: result: failed" >&5
3526 echo "${ECHO_T}failed" >&6
3528 echo "$as_me:3528: result: ok" >&5
3529 echo "${ECHO_T}ok" >&6
3532 for ac_header in dlfcn.h
3534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3535 echo "$as_me:3535: checking for $ac_header" >&5
3536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3541 #line 3541 "configure"
3542 #include "confdefs.h"
3543 #include <$ac_header>
3545 if { (eval echo "$as_me:3545: \"$ac_cpp conftest.$ac_ext\"") >&5
3546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3548 egrep -v '^ *\+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:3551: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null; then
3553 if test -s conftest.err; then
3554 ac_cpp_err=$ac_c_preproc_warn_flag
3561 if test -z "$ac_cpp_err"; then
3562 eval "$as_ac_Header=yes"
3564 echo "$as_me: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3566 eval "$as_ac_Header=no"
3568 rm -f conftest.err conftest.$ac_ext
3570 echo "$as_me:3570: result: `eval echo '${'$as_ac_Header'}'`" >&5
3571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3573 cat >>confdefs.h <<EOF
3574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3580 # Only perform the check for file, if the check method requires it
3581 case $deplibs_check_method in
3583 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3584 echo "$as_me:3584: checking for ${ac_tool_prefix}file" >&5
3585 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3586 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3594 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3597 ac_save_MAGIC_CMD="$MAGIC_CMD"
3598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3599 ac_dummy="/usr/bin:$PATH"
3600 for ac_dir in $ac_dummy; do
3601 test -z "$ac_dir" && ac_dir=.
3602 if test -f $ac_dir/${ac_tool_prefix}file; then
3603 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3604 if test -n "$file_magic_test_file"; then
3605 case $deplibs_check_method in
3607 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3610 egrep "$file_magic_regex" > /dev/null; then
3615 *** Warning: the command libtool uses to detect shared libraries,
3616 *** $file_magic_cmd, produces output that libtool cannot recognize.
3617 *** The result is that libtool may fail to recognize shared libraries
3618 *** as such. This will affect the creation of libtool libraries that
3619 *** depend on shared libraries, but programs linked with such libtool
3620 *** libraries will work regardless of this problem. Nevertheless, you
3621 *** may want to report the problem to your system manager and/or to
3622 *** bug-libtool@gnu.org
3632 MAGIC_CMD="$ac_save_MAGIC_CMD"
3637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3638 if test -n "$MAGIC_CMD"; then
3639 echo "$as_me:3639: result: $MAGIC_CMD" >&5
3640 echo "${ECHO_T}$MAGIC_CMD" >&6
3642 echo "$as_me:3642: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3646 if test -z "$lt_cv_path_MAGIC_CMD"; then
3647 if test -n "$ac_tool_prefix"; then
3648 echo "$as_me:3648: checking for file" >&5
3649 echo $ECHO_N "checking for file... $ECHO_C" >&6
3650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3661 ac_save_MAGIC_CMD="$MAGIC_CMD"
3662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3663 ac_dummy="/usr/bin:$PATH"
3664 for ac_dir in $ac_dummy; do
3665 test -z "$ac_dir" && ac_dir=.
3666 if test -f $ac_dir/file; then
3667 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3668 if test -n "$file_magic_test_file"; then
3669 case $deplibs_check_method in
3671 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3674 egrep "$file_magic_regex" > /dev/null; then
3679 *** Warning: the command libtool uses to detect shared libraries,
3680 *** $file_magic_cmd, produces output that libtool cannot recognize.
3681 *** The result is that libtool may fail to recognize shared libraries
3682 *** as such. This will affect the creation of libtool libraries that
3683 *** depend on shared libraries, but programs linked with such libtool
3684 *** libraries will work regardless of this problem. Nevertheless, you
3685 *** may want to report the problem to your system manager and/or to
3686 *** bug-libtool@gnu.org
3696 MAGIC_CMD="$ac_save_MAGIC_CMD"
3701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3702 if test -n "$MAGIC_CMD"; then
3703 echo "$as_me:3703: result: $MAGIC_CMD" >&5
3704 echo "${ECHO_T}$MAGIC_CMD" >&6
3706 echo "$as_me:3706: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3719 if test -n "$ac_tool_prefix"; then
3720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3722 echo "$as_me:3722: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3724 if test "${ac_cv_prog_RANLIB+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 if test -n "$RANLIB"; then
3728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3730 ac_save_IFS=$IFS; IFS=$ac_path_separator
3732 for ac_dir in $ac_dummy; do
3734 test -z "$ac_dir" && ac_dir=.
3735 $as_executable_p "$ac_dir/$ac_word" || continue
3736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3737 echo "$as_me:3737: found $ac_dir/$ac_word" >&5
3743 RANLIB=$ac_cv_prog_RANLIB
3744 if test -n "$RANLIB"; then
3745 echo "$as_me:3745: result: $RANLIB" >&5
3746 echo "${ECHO_T}$RANLIB" >&6
3748 echo "$as_me:3748: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3753 if test -z "$ac_cv_prog_RANLIB"; then
3754 ac_ct_RANLIB=$RANLIB
3755 # Extract the first word of "ranlib", so it can be a program name with args.
3756 set dummy ranlib; ac_word=$2
3757 echo "$as_me:3757: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test -n "$ac_ct_RANLIB"; then
3763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3765 ac_save_IFS=$IFS; IFS=$ac_path_separator
3767 for ac_dir in $ac_dummy; do
3769 test -z "$ac_dir" && ac_dir=.
3770 $as_executable_p "$ac_dir/$ac_word" || continue
3771 ac_cv_prog_ac_ct_RANLIB="ranlib"
3772 echo "$as_me:3772: found $ac_dir/$ac_word" >&5
3776 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3779 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3780 if test -n "$ac_ct_RANLIB"; then
3781 echo "$as_me:3781: result: $ac_ct_RANLIB" >&5
3782 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3784 echo "$as_me:3784: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3788 RANLIB=$ac_ct_RANLIB
3790 RANLIB="$ac_cv_prog_RANLIB"
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3795 set dummy ${ac_tool_prefix}strip; ac_word=$2
3796 echo "$as_me:3796: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_STRIP+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 if test -n "$STRIP"; then
3802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3804 ac_save_IFS=$IFS; IFS=$ac_path_separator
3806 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 $as_executable_p "$ac_dir/$ac_word" || continue
3810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3811 echo "$as_me:3811: found $ac_dir/$ac_word" >&5
3817 STRIP=$ac_cv_prog_STRIP
3818 if test -n "$STRIP"; then
3819 echo "$as_me:3819: result: $STRIP" >&5
3820 echo "${ECHO_T}$STRIP" >&6
3822 echo "$as_me:3822: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3827 if test -z "$ac_cv_prog_STRIP"; then
3829 # Extract the first word of "strip", so it can be a program name with args.
3830 set dummy strip; ac_word=$2
3831 echo "$as_me:3831: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -n "$ac_ct_STRIP"; then
3837 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3839 ac_save_IFS=$IFS; IFS=$ac_path_separator
3841 for ac_dir in $ac_dummy; do
3843 test -z "$ac_dir" && ac_dir=.
3844 $as_executable_p "$ac_dir/$ac_word" || continue
3845 ac_cv_prog_ac_ct_STRIP="strip"
3846 echo "$as_me:3846: found $ac_dir/$ac_word" >&5
3850 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3854 if test -n "$ac_ct_STRIP"; then
3855 echo "$as_me:3855: result: $ac_ct_STRIP" >&5
3856 echo "${ECHO_T}$ac_ct_STRIP" >&6
3858 echo "$as_me:3858: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3864 STRIP="$ac_cv_prog_STRIP"
3870 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3871 if test "${enable_libtool_lock+set}" = set; then
3872 enableval="$enable_libtool_lock"
3875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3877 # Some flags need to be propagated to the compiler or linker for good
3881 # Find out which ABI we are using.
3882 echo '#line 3882 "configure"' > conftest.$ac_ext
3883 if { (eval echo "$as_me:3883: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>&5
3886 echo "$as_me:3886: \$? = $ac_status" >&5
3887 (exit $ac_status); }; then
3888 case `/usr/bin/file conftest.$ac_objext` in
3904 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3905 SAVE_CFLAGS="$CFLAGS"
3906 CFLAGS="$CFLAGS -belf"
3907 echo "$as_me:3907: checking whether the C compiler needs -belf" >&5
3908 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3909 if test "${lt_cv_cc_needs_belf+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 cat >conftest.$ac_ext <<_ACEOF
3920 #line 3920 "configure"
3921 #include "confdefs.h"
3931 rm -f conftest.$ac_objext conftest$ac_exeext
3932 if { (eval echo "$as_me:3932: \"$ac_link\"") >&5
3933 (eval $ac_link) 2>&5
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:3938: \"$ac_try\"") >&5
3941 echo "$as_me:3941: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 lt_cv_cc_needs_belf=yes
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3947 lt_cv_cc_needs_belf=no
3949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 echo "$as_me:3957: result: $lt_cv_cc_needs_belf" >&5
3958 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3959 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3960 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3961 CFLAGS="$SAVE_CFLAGS"
3967 # Sed substitution that helps us do robust quoting. It backslashifies
3968 # metacharacters that are still active within double-quoted strings.
3969 Xsed='sed -e s/^X//'
3970 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3972 # Same as above, but do not quote variable references.
3973 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3975 # Sed substitution to delay expansion of an escaped shell variable in a
3976 # double_quote_subst'ed string.
3977 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3983 default_ofile=libtool
3984 can_build_shared=yes
3986 # All known linkers require a `.a' archive for static linking (except M$VC,
3987 # which needs '.lib').
3989 ltmain="$ac_aux_dir/ltmain.sh"
3990 ofile="$default_ofile"
3991 with_gnu_ld="$lt_cv_prog_gnu_ld"
3992 need_locks="$enable_libtool_lock"
3995 old_CFLAGS="$CFLAGS"
3997 # Set sane defaults for various variables
3998 test -z "$AR" && AR=ar
3999 test -z "$AR_FLAGS" && AR_FLAGS=cru
4000 test -z "$AS" && AS=as
4001 test -z "$CC" && CC=cc
4002 test -z "$DLLTOOL" && DLLTOOL=dlltool
4003 test -z "$LD" && LD=ld
4004 test -z "$LN_S" && LN_S="ln -s"
4005 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4006 test -z "$NM" && NM=nm
4007 test -z "$OBJDUMP" && OBJDUMP=objdump
4008 test -z "$RANLIB" && RANLIB=:
4009 test -z "$STRIP" && STRIP=:
4010 test -z "$ac_objext" && ac_objext=o
4012 if test x"$host" != x"$build"; then
4013 ac_tool_prefix=${host_alias}-
4018 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4021 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4026 # AIX sometimes has problems with the GCC collect2 program. For some
4027 # reason, if we set the COLLECT_NAMES environment variable, the problems
4028 # vanish in a puff of smoke.
4029 if test "X${COLLECT_NAMES+set}" != Xset; then
4031 export COLLECT_NAMES
4036 # Determine commands to create old-style static archives.
4037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4038 old_postinstall_cmds='chmod 644 $oldlib'
4039 old_postuninstall_cmds=
4041 if test -n "$RANLIB"; then
4044 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4047 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4050 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4053 # Allow CC to be a program name with arguments.
4057 echo "$as_me:4057: checking for objdir" >&5
4058 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4059 rm -f .libs 2>/dev/null
4060 mkdir .libs 2>/dev/null
4061 if test -d .libs; then
4064 # MS-DOS does not allow filenames that begin with a dot.
4067 rmdir .libs 2>/dev/null
4068 echo "$as_me:4068: result: $objdir" >&5
4069 echo "${ECHO_T}$objdir" >&6
4071 # Check whether --with-pic or --without-pic was given.
4072 if test "${with_pic+set}" = set; then
4078 test -z "$pic_mode" && pic_mode=default
4080 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4081 # in isolation, and that seeing it set (from the cache) indicates that
4082 # the associated values are set (in the cache) correctly too.
4083 echo "$as_me:4083: checking for $compiler option to produce PIC" >&5
4084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4085 if test "${lt_cv_prog_cc_pic+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 lt_cv_prog_cc_shlib=
4091 lt_cv_prog_cc_static=
4092 lt_cv_prog_cc_no_builtin=
4093 lt_cv_prog_cc_can_build_shared=$can_build_shared
4095 if test "$GCC" = yes; then
4096 lt_cv_prog_cc_wl='-Wl,'
4097 lt_cv_prog_cc_static='-static'
4101 # Below there is a dirty hack to force normal static linking with -ldl
4102 # The problem is because libdl dynamically linked with both libc and
4103 # libC (AIX C++ library), which obviously doesn't included in libraries
4104 # list by gcc. This cause undefined symbols with -static flags.
4105 # This hack allows C programs to be linked with "-static -ldl", but
4106 # not sure about C++ programs.
4107 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4110 # FIXME: we need at least 68020 code to build shared libraries, but
4111 # adding the `-m68020' flag to GCC prevents building anything better,
4113 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4115 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4116 # PIC is the default for these OSes.
4118 darwin* | rhapsody*)
4119 # PIC is the default on this platform
4120 # Common symbols not allowed in MH_DYLIB files
4121 lt_cv_prog_cc_pic='-fno-common'
4123 cygwin* | mingw* | pw32* | os2*)
4124 # This hack is so that the source file can tell whether it is being
4125 # built for inclusion in a dll (and should export symbols for example).
4126 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4129 if test -d /usr/nec; then
4130 lt_cv_prog_cc_pic=-Kconform_pic
4134 lt_cv_prog_cc_pic='-fPIC'
4138 # PORTME Check for PIC flags for the system compiler.
4140 aix3* | aix4* | aix5*)
4141 lt_cv_prog_cc_wl='-Wl,'
4142 # All AIX code is PIC.
4143 if test "$host_cpu" = ia64; then
4144 # AIX 5 now supports IA64 processor
4145 lt_cv_prog_cc_static='-Bstatic'
4147 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4151 hpux9* | hpux10* | hpux11*)
4152 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4153 lt_cv_prog_cc_wl='-Wl,'
4154 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4155 lt_cv_prog_cc_pic='+Z'
4159 lt_cv_prog_cc_wl='-Wl,'
4160 lt_cv_prog_cc_static='-non_shared'
4161 # PIC (with -KPIC) is the default.
4164 cygwin* | mingw* | pw32* | os2*)
4165 # This hack is so that the source file can tell whether it is being
4166 # built for inclusion in a dll (and should export symbols for example).
4167 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4171 lt_cv_prog_cc_pic='-KPIC'
4172 lt_cv_prog_cc_static='-Bstatic'
4175 osf3* | osf4* | osf5*)
4176 # All OSF/1 code is PIC.
4177 lt_cv_prog_cc_wl='-Wl,'
4178 lt_cv_prog_cc_static='-non_shared'
4182 lt_cv_prog_cc_pic='-Kpic'
4183 lt_cv_prog_cc_static='-dn'
4184 lt_cv_prog_cc_shlib='-belf'
4188 lt_cv_prog_cc_pic='-KPIC'
4189 lt_cv_prog_cc_static='-Bstatic'
4190 lt_cv_prog_cc_wl='-Wl,'
4194 lt_cv_prog_cc_pic='-PIC'
4195 lt_cv_prog_cc_static='-Bstatic'
4196 lt_cv_prog_cc_wl='-Qoption ld '
4199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4200 lt_cv_prog_cc_pic='-KPIC'
4201 lt_cv_prog_cc_static='-Bstatic'
4202 if test "x$host_vendor" = xsni; then
4203 lt_cv_prog_cc_wl='-LD'
4205 lt_cv_prog_cc_wl='-Wl,'
4210 lt_cv_prog_cc_pic='-pic'
4211 lt_cv_prog_cc_static='-Bstatic'
4215 if test -d /usr/nec ;then
4216 lt_cv_prog_cc_pic='-Kconform_pic'
4217 lt_cv_prog_cc_static='-Bstatic'
4222 lt_cv_prog_cc_can_build_shared=no
4229 if test -z "$lt_cv_prog_cc_pic"; then
4230 echo "$as_me:4230: result: none" >&5
4231 echo "${ECHO_T}none" >&6
4233 echo "$as_me:4233: result: $lt_cv_prog_cc_pic" >&5
4234 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4236 # Check to make sure the pic_flag actually works.
4237 echo "$as_me:4237: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4238 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4239 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 save_CFLAGS="$CFLAGS"
4243 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line 4245 "configure"
4246 #include "confdefs.h"
4256 rm -f conftest.$ac_objext
4257 if { (eval echo "$as_me:4257: \"$ac_compile\"") >&5
4258 (eval $ac_compile) 2>&5
4260 echo "$as_me:4260: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:4263: \"$ac_try\"") >&5
4266 echo "$as_me:4266: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4269 hpux9* | hpux10* | hpux11*)
4270 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4271 # they create non-PIC objects. So, if there were any warnings, we
4272 # assume that PIC is not supported.
4273 if test -s conftest.err; then
4274 lt_cv_prog_cc_pic_works=no
4276 lt_cv_prog_cc_pic_works=yes
4280 lt_cv_prog_cc_pic_works=yes
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4287 lt_cv_prog_cc_pic_works=no
4290 rm -f conftest.$ac_objext conftest.$ac_ext
4291 CFLAGS="$save_CFLAGS"
4295 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4297 lt_cv_prog_cc_can_build_shared=no
4299 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4302 echo "$as_me:4302: result: $lt_cv_prog_cc_pic_works" >&5
4303 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4306 # Check for any special shared library compilation flags.
4307 if test -n "$lt_cv_prog_cc_shlib"; then
4308 { echo "$as_me:4308: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4309 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4310 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4312 { echo "$as_me:4312: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4313 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4314 lt_cv_prog_cc_can_build_shared=no
4318 echo "$as_me:4318: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4319 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4320 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 lt_cv_prog_cc_static_works=no
4324 save_LDFLAGS="$LDFLAGS"
4325 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4326 cat >conftest.$ac_ext <<_ACEOF
4327 #line 4327 "configure"
4328 #include "confdefs.h"
4338 rm -f conftest.$ac_objext conftest$ac_exeext
4339 if { (eval echo "$as_me:4339: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>&5
4342 echo "$as_me:4342: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -s conftest$ac_exeext'
4345 { (eval echo "$as_me:4345: \"$ac_try\"") >&5
4348 echo "$as_me:4348: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 lt_cv_prog_cc_static_works=yes
4352 echo "$as_me: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4356 LDFLAGS="$save_LDFLAGS"
4360 # Belt *and* braces to stop my trousers falling down:
4361 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4362 echo "$as_me:4362: result: $lt_cv_prog_cc_static_works" >&5
4363 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4365 pic_flag="$lt_cv_prog_cc_pic"
4366 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4367 wl="$lt_cv_prog_cc_wl"
4368 link_static_flag="$lt_cv_prog_cc_static"
4369 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4370 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4372 # Check to see if options -o and -c are simultaneously supported by compiler
4373 echo "$as_me:4373: checking if $compiler supports -c -o file.$ac_objext" >&5
4374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4375 if test "${lt_cv_compiler_c_o+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 $rm -r conftest 2>/dev/null
4382 echo "int some_variable = 0;" > conftest.$ac_ext
4384 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4385 # that will create temporary files in the current directory regardless of
4386 # the output directory. Thus, making CWD read-only will cause this test
4387 # to fail, enabling locking or at least warning the user not to do parallel
4390 save_CFLAGS="$CFLAGS"
4391 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4393 if { (eval echo configure:4393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4394 # The compiler can only warn and ignore the option if not recognized
4395 # So say no if there are warnings
4396 if test -s out/conftest.err; then
4397 lt_cv_compiler_c_o=no
4399 lt_cv_compiler_c_o=yes
4402 # Append any errors to the config.log.
4403 cat out/conftest.err 1>&5
4404 lt_cv_compiler_c_o=no
4406 CFLAGS="$save_CFLAGS"
4412 $rm -r conftest 2>/dev/null
4416 compiler_c_o=$lt_cv_compiler_c_o
4417 echo "$as_me:4417: result: $compiler_c_o" >&5
4418 echo "${ECHO_T}$compiler_c_o" >&6
4420 if test x"$compiler_c_o" = x"yes"; then
4421 # Check to see if we can write to a .lo
4422 echo "$as_me:4422: checking if $compiler supports -c -o file.lo" >&5
4423 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4424 if test "${lt_cv_compiler_o_lo+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 lt_cv_compiler_o_lo=no
4429 save_CFLAGS="$CFLAGS"
4430 CFLAGS="$CFLAGS -c -o conftest.lo"
4431 save_objext="$ac_objext"
4433 cat >conftest.$ac_ext <<_ACEOF
4434 #line 4434 "configure"
4435 #include "confdefs.h"
4440 int some_variable = 0;
4445 rm -f conftest.$ac_objext
4446 if { (eval echo "$as_me:4446: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>&5
4449 echo "$as_me:4449: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -s conftest.$ac_objext'
4452 { (eval echo "$as_me:4452: \"$ac_try\"") >&5
4455 echo "$as_me:4455: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 # The compiler can only warn and ignore the option if not recognized
4458 # So say no if there are warnings
4459 if test -s conftest.err; then
4460 lt_cv_compiler_o_lo=no
4462 lt_cv_compiler_o_lo=yes
4466 echo "$as_me: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4470 ac_objext="$save_objext"
4471 CFLAGS="$save_CFLAGS"
4475 compiler_o_lo=$lt_cv_compiler_o_lo
4476 echo "$as_me:4476: result: $compiler_o_lo" >&5
4477 echo "${ECHO_T}$compiler_o_lo" >&6
4482 # Check to see if we can do hard links to lock some files if needed
4483 hard_links="nottested"
4484 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4485 # do not overwrite the value of need_locks provided by the user
4486 echo "$as_me:4486: checking if we can lock with hard links" >&5
4487 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4492 ln conftest.a conftest.b 2>&5 || hard_links=no
4493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4494 echo "$as_me:4494: result: $hard_links" >&5
4495 echo "${ECHO_T}$hard_links" >&6
4496 if test "$hard_links" = no; then
4497 { echo "$as_me:4497: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4498 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4505 if test "$GCC" = yes; then
4506 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4507 echo "$as_me:4507: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4508 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4509 echo "int some_variable = 0;" > conftest.$ac_ext
4510 save_CFLAGS="$CFLAGS"
4511 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4512 compiler_rtti_exceptions=no
4513 cat >conftest.$ac_ext <<_ACEOF
4514 #line 4514 "configure"
4515 #include "confdefs.h"
4520 int some_variable = 0;
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:4526: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
4529 echo "$as_me:4529: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:4532: \"$ac_try\"") >&5
4535 echo "$as_me:4535: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 # The compiler can only warn and ignore the option if not recognized
4538 # So say no if there are warnings
4539 if test -s conftest.err; then
4540 compiler_rtti_exceptions=no
4542 compiler_rtti_exceptions=yes
4546 echo "$as_me: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4549 rm -f conftest.$ac_objext conftest.$ac_ext
4550 CFLAGS="$save_CFLAGS"
4551 echo "$as_me:4551: result: $compiler_rtti_exceptions" >&5
4552 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4554 if test "$compiler_rtti_exceptions" = "yes"; then
4555 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4557 no_builtin_flag=' -fno-builtin'
4561 # See if the linker supports building shared libraries.
4562 echo "$as_me:4562: checking whether the linker ($LD) supports shared libraries" >&5
4563 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4565 allow_undefined_flag=
4567 need_lib_prefix=unknown
4568 need_version=unknown
4569 # when you set need_version to no, make sure it does not cause -set_version
4570 # flags to be left without arguments
4572 archive_expsym_cmds=
4573 old_archive_from_new_cmds=
4574 old_archive_from_expsyms_cmds=
4575 export_dynamic_flag_spec=
4576 whole_archive_flag_spec=
4577 thread_safe_flag_spec=
4578 hardcode_into_libs=no
4579 hardcode_libdir_flag_spec=
4580 hardcode_libdir_separator=
4583 hardcode_shlibpath_var=unsupported
4585 link_all_deplibs=unknown
4586 always_export_symbols=no
4587 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4588 # include_expsyms should be a list of space-separated symbols to be *always*
4589 # included in the symbol list
4591 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4592 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4593 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4594 # as well as any symbol that contains `d'.
4595 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4596 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4597 # platforms (ab)use it in PIC code, but their linkers get confused if
4598 # the symbol is explicitly referenced. Since portable code cannot
4599 # rely on this symbol name, it's probably fine to never include it in
4600 # preloaded symbol tables.
4601 extract_expsyms_cmds=
4604 cygwin* | mingw* | pw32*)
4605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4606 # When not using gcc, we currently assume that we are using
4607 # Microsoft Visual C++.
4608 if test "$GCC" != yes; then
4618 if test "$with_gnu_ld" = yes; then
4619 # If archive_cmds runs LD, not CC, wlarc should be empty
4622 # See if GNU ld supports shared libraries.
4624 aix3* | aix4* | aix5*)
4625 # On AIX, the GNU linker is very broken
4626 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4630 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4631 *** to be unable to reliably create shared libraries on AIX.
4632 *** Therefore, libtool is disabling shared libraries support. If you
4633 *** really care for shared libraries, you may want to modify your PATH
4634 *** so that a non-GNU linker is found, and then restart.
4640 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4641 hardcode_libdir_flag_spec='-L$libdir'
4642 hardcode_minus_L=yes
4644 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4645 # that the semantics of dynamic libraries on AmigaOS, at least up
4646 # to version 4, is to share data among multiple programs linked
4647 # with the same dynamic library. Since this doesn't match the
4648 # behavior of shared libraries on other platforms, we can use
4654 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4655 allow_undefined_flag=unsupported
4656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4657 # support --undefined. This deserves some investigation. FIXME
4658 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4664 cygwin* | mingw* | pw32*)
4665 # hardcode_libdir_flag_spec is actually meaningless, as there is
4666 # no search path for DLLs.
4667 hardcode_libdir_flag_spec='-L$libdir'
4668 allow_undefined_flag=unsupported
4669 always_export_symbols=yes
4671 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4672 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4673 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4674 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4675 else $CC -o impgen impgen.c ; fi)~
4676 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4678 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4680 # cygwin and mingw dlls have different entry points and sets of symbols
4682 # FIXME: what about values for MSVC?
4683 dll_entry=__cygwin_dll_entry@12
4684 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4688 dll_entry=_DllMainCRTStartup@12
4689 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4693 # mingw and cygwin differ, and it's simplest to just exclude the union
4694 # of the two symbol sets.
4695 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4697 # recent cygwin and mingw systems supply a stub DllMain which the user
4698 # can override, but on older systems we have to supply one (in ltdll.c)
4699 if test "x$lt_cv_need_dllmain" = "xyes"; then
4700 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4701 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4702 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4708 # Extract the symbol export list from an `--export-all' def file,
4709 # then regenerate the def file from the symbol export list, so that
4710 # the compiled dll only exports the symbol export list.
4711 # Be careful not to strip the DATA tag left be newer dlltools.
4712 export_symbols_cmds="$ltdll_cmds"'
4713 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4714 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4716 # If the export-symbols file already is a .def file (1st line
4717 # is EXPORTS), use it as is.
4718 # If DATA tags from a recent dlltool are present, honour them!
4719 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4720 cp $export_symbols $output_objdir/$soname-def;
4722 echo EXPORTS > $output_objdir/$soname-def;
4724 cat $export_symbols | while read symbol; do
4727 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4728 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4730 _lt_hint=`expr 1 + \$_lt_hint`;
4734 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4735 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4736 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4737 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4738 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4742 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4743 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4746 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4747 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4752 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4756 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4757 *** create shared libraries on Solaris systems. Therefore, libtool
4758 *** is disabling shared libraries support. We urge you to upgrade GNU
4759 *** binutils to release 2.9.1 or newer. Another option is to modify
4760 *** your PATH or compiler configuration so that the native linker is
4761 *** used, and then restart.
4764 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4773 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4776 hardcode_shlibpath_var=no
4780 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4789 if test "$ld_shlibs" = yes; then
4790 runpath_var=LD_RUN_PATH
4791 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4792 export_dynamic_flag_spec='${wl}--export-dynamic'
4794 cygwin* | mingw* | pw32*)
4795 # dlltool doesn't understand --whole-archive et. al.
4796 whole_archive_flag_spec=
4799 # ancient GNU ld didn't support --whole-archive et. al.
4800 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4801 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4803 whole_archive_flag_spec=
4809 # PORTME fill in a description of your system's linker (not GNU ld)
4812 allow_undefined_flag=unsupported
4813 always_export_symbols=yes
4814 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4815 # Note: this linker hardcodes the directories in LIBPATH if there
4816 # are no directories specified by -L.
4817 hardcode_minus_L=yes
4818 if test "$GCC" = yes && test -z "$link_static_flag"; then
4819 # Neither direct hardcoding nor static linking is supported with a
4821 hardcode_direct=unsupported
4826 if test "$host_cpu" = ia64; then
4827 # On IA64, the linker does run time linking by default, so we don't
4828 # have to do anything special.
4829 aix_use_runtimelinking=no
4830 exp_sym_flag='-Bexport'
4833 aix_use_runtimelinking=no
4835 # Test if we are trying to use run time linking or normal
4836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4837 # need to do runtime linking.
4838 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4839 for ld_flag in $LDFLAGS; do
4840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4841 aix_use_runtimelinking=yes
4847 exp_sym_flag='-bexport'
4848 no_entry_flag='-bnoentry'
4851 # When large executables or shared objects are built, AIX ld can
4852 # have problems creating the table of contents. If linking a library
4853 # or program results in "error TOC overflow" add -mminimal-toc to
4854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4859 hardcode_libdir_separator=':'
4860 if test "$GCC" = yes; then
4861 case $host_os in aix4.[012]|aix4.[012].*)
4862 collect2name=`${CC} -print-prog-name=collect2`
4863 if test -f "$collect2name" && \
4864 strings "$collect2name" | grep resolve_lib_name >/dev/null
4866 # We have reworked collect2
4869 # We have old collect2
4870 hardcode_direct=unsupported
4871 # It fails to find uninstalled libraries when the uninstalled
4872 # path is not listed in the libpath. Setting hardcode_minus_L
4873 # to unsupported forces relinking
4874 hardcode_minus_L=yes
4875 hardcode_libdir_flag_spec='-L$libdir'
4876 hardcode_libdir_separator=
4880 shared_flag='-shared'
4883 if test "$host_cpu" = ia64; then
4884 shared_flag='${wl}-G'
4886 if test "$aix_use_runtimelinking" = yes; then
4887 shared_flag='${wl}-G'
4889 shared_flag='${wl}-bM:SRE'
4894 # It seems that -bexpall can do strange things, so it is better to
4895 # generate a list of symbols to export.
4896 always_export_symbols=yes
4897 if test "$aix_use_runtimelinking" = yes; then
4898 # Warning - without using the other runtime loading flags (-brtl),
4899 # -berok will link without error, but may produce a broken library.
4900 allow_undefined_flag='-berok'
4901 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4902 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4904 if test "$host_cpu" = ia64; then
4905 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4906 allow_undefined_flag="-z nodefs"
4907 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4909 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4910 # Warning - without using the other run time loading flags,
4911 # -berok will link without error, but may produce a broken library.
4912 allow_undefined_flag='${wl}-berok'
4913 # This is a bit strange, but is similar to how AIX traditionally builds
4914 # it's shared libraries.
4915 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4921 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4922 hardcode_libdir_flag_spec='-L$libdir'
4923 hardcode_minus_L=yes
4924 # see comment about different semantics on the GNU ld section
4928 cygwin* | mingw* | pw32*)
4929 # When not using gcc, we currently assume that we are using
4930 # Microsoft Visual C++.
4931 # hardcode_libdir_flag_spec is actually meaningless, as there is
4932 # no search path for DLLs.
4933 hardcode_libdir_flag_spec=' '
4934 allow_undefined_flag=unsupported
4935 # Tell ltmain to make .lib files, not .a files.
4937 # FIXME: Setting linknames here is a bad hack.
4938 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4939 # The linker will automatically build a .lib file if we build a DLL.
4940 old_archive_from_new_cmds='true'
4941 # FIXME: Should let the user specify the lib program.
4942 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4943 fix_srcfile_path='`cygpath -w "$srcfile"`'
4946 darwin* | rhapsody*)
4948 rhapsody* | darwin1.[012])
4949 allow_undefined_flag='-undefined suppress'
4952 allow_undefined_flag='-flat_namespace -undefined suppress'
4955 # FIXME: Relying on posixy $() will cause problems for
4956 # cross-compilation, but unfortunately the echo tests do not
4957 # yet detect zsh echo's removal of \ escapes.
4958 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4959 # We need to add '_' to the symbols in $export_symbols first
4960 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4962 hardcode_shlibpath_var=no
4963 whole_archive_flag_spec='-all_load $convenience'
4970 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4971 # support. Future versions do this automatically, but an explicit c++rt0.o
4972 # does not break anything, and helps significantly (at the cost of a little
4975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4976 hardcode_libdir_flag_spec='-R$libdir'
4978 hardcode_shlibpath_var=no
4981 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4985 hardcode_minus_L=yes
4986 hardcode_shlibpath_var=no
4989 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4991 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4992 hardcode_libdir_flag_spec='-R$libdir'
4994 hardcode_shlibpath_var=no
4997 hpux9* | hpux10* | hpux11*)
4999 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5000 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5003 hardcode_libdir_separator=:
5005 hardcode_minus_L=yes # Not in the search PATH, but as the default
5006 # location of the library.
5007 export_dynamic_flag_spec='${wl}-E'
5011 if test "$GCC" = yes; then
5012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5014 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5017 hardcode_libdir_separator=:
5018 link_all_deplibs=yes
5022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5025 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5027 hardcode_libdir_flag_spec='-R$libdir'
5029 hardcode_shlibpath_var=no
5033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5036 hardcode_libdir_separator=:
5037 hardcode_shlibpath_var=no
5042 hardcode_shlibpath_var=no
5043 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5046 export_dynamic_flag_spec='${wl}-E'
5049 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5051 hardcode_libdir_flag_spec='-R$libdir'
5054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5062 hardcode_libdir_flag_spec='-L$libdir'
5063 hardcode_minus_L=yes
5064 allow_undefined_flag=unsupported
5065 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5066 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5070 if test "$GCC" = yes; then
5071 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5072 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5074 allow_undefined_flag=' -expect_unresolved \*'
5075 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5078 hardcode_libdir_separator=:
5081 osf4* | osf5*) # as osf3* with the addition of -msym flag
5082 if test "$GCC" = yes; then
5083 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5084 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5087 allow_undefined_flag=' -expect_unresolved \*'
5088 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5089 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5090 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5092 #Both c and cxx compiler support -rpath directly
5093 hardcode_libdir_flag_spec='-rpath $libdir'
5095 hardcode_libdir_separator=:
5099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5100 hardcode_shlibpath_var=no
5101 runpath_var=LD_RUN_PATH
5102 hardcode_runpath_var=yes
5103 export_dynamic_flag_spec='${wl}-Bexport'
5107 # gcc --version < 3.0 without binutils cannot create self contained
5108 # shared libraries reliably, requiring libgcc.a to resolve some of
5109 # the object symbols generated in some cases. Libraries that use
5110 # assert need libgcc.a to resolve __eprintf, for example. Linking
5111 # a copy of libgcc.a into every shared library to guarantee resolving
5112 # such symbols causes other problems: According to Tim Van Holder
5113 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5114 # (to the application) exception stack for one thing.
5115 no_undefined_flag=' -z defs'
5116 if test "$GCC" = yes; then
5117 case `$CC --version 2>/dev/null` in
5121 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5122 *** create self contained shared libraries on Solaris systems, without
5123 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5124 *** -no-undefined support, which will at least allow you to build shared
5125 *** libraries. However, you may find that when you link such libraries
5126 *** into an application without using GCC, you have to manually add
5127 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5128 *** upgrade to a newer version of GCC. Another option is to rebuild your
5129 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5136 # $CC -shared without GNU ld will not create a library from C++
5137 # object files and a static libstdc++, better avoid it by now
5138 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5139 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5140 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5141 hardcode_libdir_flag_spec='-R$libdir'
5142 hardcode_shlibpath_var=no
5144 solaris2.[0-5] | solaris2.[0-5].*) ;;
5145 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5146 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5148 link_all_deplibs=yes
5152 if test "x$host_vendor" = xsequent; then
5153 # Use $CC to link under sequent, because it throws in some extra .o
5154 # files that make .init and .fini sections work.
5155 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5157 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5159 hardcode_libdir_flag_spec='-L$libdir'
5161 hardcode_minus_L=yes
5162 hardcode_shlibpath_var=no
5166 if test "x$host_vendor" = xsno; then
5167 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5168 hardcode_direct=yes # is this really true???
5170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5171 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5173 runpath_var='LD_RUN_PATH'
5174 hardcode_shlibpath_var=no
5178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5179 hardcode_shlibpath_var=no
5180 export_dynamic_flag_spec='-Bexport'
5184 no_undefined_flag=' -z text'
5185 # $CC -shared without GNU ld will not create a library from C++
5186 # object files and a static libstdc++, better avoid it by now
5187 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5188 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5189 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5190 hardcode_libdir_flag_spec=
5191 hardcode_shlibpath_var=no
5192 runpath_var='LD_RUN_PATH'
5196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5197 hardcode_libdir_flag_spec='-L$libdir'
5198 hardcode_shlibpath_var=no
5202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5203 hardcode_libdir_flag_spec='-L$libdir'
5204 hardcode_shlibpath_var=no
5208 if test -d /usr/nec; then
5209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5210 hardcode_shlibpath_var=no
5211 runpath_var=LD_RUN_PATH
5212 hardcode_runpath_var=yes
5218 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5221 hardcode_shlibpath_var=no
5222 hardcode_runpath_var=yes
5223 runpath_var=LD_RUN_PATH
5226 sysv5uw7* | unixware7*)
5227 no_undefined_flag='${wl}-z ${wl}text'
5228 if test "$GCC" = yes; then
5229 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5231 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5233 runpath_var='LD_RUN_PATH'
5234 hardcode_shlibpath_var=no
5242 echo "$as_me:5242: result: $ld_shlibs" >&5
5243 echo "${ECHO_T}$ld_shlibs" >&6
5244 test "$ld_shlibs" = no && can_build_shared=no
5246 # Check hardcoding attributes.
5247 echo "$as_me:5247: checking how to hardcode library paths into programs" >&5
5248 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5250 if test -n "$hardcode_libdir_flag_spec" || \
5251 test -n "$runpath_var"; then
5253 # We can hardcode non-existant directories.
5254 if test "$hardcode_direct" != no &&
5255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5256 # have to relink, otherwise we might link with an installed library
5257 # when we should be linking with a yet-to-be-installed one
5258 ## test "$hardcode_shlibpath_var" != no &&
5259 test "$hardcode_minus_L" != no; then
5260 # Linking always hardcodes the temporary library directory.
5261 hardcode_action=relink
5263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5264 hardcode_action=immediate
5267 # We cannot hardcode anything, or else we can only hardcode existing
5269 hardcode_action=unsupported
5271 echo "$as_me:5271: result: $hardcode_action" >&5
5272 echo "${ECHO_T}$hardcode_action" >&6
5276 echo "$as_me:5276: checking whether stripping libraries is possible" >&5
5277 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5278 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5280 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5281 echo "$as_me:5281: result: yes" >&5
5282 echo "${ECHO_T}yes" >&6
5284 echo "$as_me:5284: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5288 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5289 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5291 # PORTME Fill in your ld.so characteristics
5292 echo "$as_me:5292: checking dynamic linker characteristics" >&5
5293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5295 libname_spec='lib$name'
5302 shlibpath_overrides_runpath=unknown
5304 dynamic_linker="$host_os ld.so"
5305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5311 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5312 shlibpath_var=LIBPATH
5314 # AIX has no versioning support, so we append a major version to the name.
5315 soname_spec='${libname}${release}.so$major'
5320 if test "$host_cpu" = ia64; then
5321 # AIX 5 supports IA64
5322 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5323 shlibpath_var=LD_LIBRARY_PATH
5325 # With GCC up to 2.95.x, collect2 would create an import file
5326 # for dependence libraries. The import file would start with
5327 # the line `#! .'. This would cause the generated library to
5328 # depend on `.', always an invalid library. This was fixed in
5329 # development snapshots of GCC prior to 3.0.
5331 aix4 | aix4.[01] | aix4.[01].*)
5332 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5334 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5341 # AIX (on Power*) has no versioning support, so currently we can
5342 # not hardcode correct soname into executable. Probably we can
5343 # add versioning support to collect2, so additional links can
5344 # be useful in future.
5345 if test "$aix_use_runtimelinking" = yes; then
5346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5347 # instead of lib<name>.a to let people know that these are not
5348 # typical AIX shared libraries.
5349 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5351 # We preserve .a as extension for shared libraries through AIX4.2
5352 # and later when we are not doing run time linking.
5353 library_names_spec='${libname}${release}.a $libname.a'
5354 soname_spec='${libname}${release}.so$major'
5356 shlibpath_var=LIBPATH
5361 library_names_spec='$libname.ixlibrary $libname.a'
5362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5363 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5367 library_names_spec='${libname}.so'
5368 dynamic_linker="$host_os ld.so"
5369 shlibpath_var=LIBRARY_PATH
5375 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5376 soname_spec='${libname}${release}.so$major'
5377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5378 shlibpath_var=LD_LIBRARY_PATH
5379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5381 export_dynamic_flag_spec=-rdynamic
5382 # the default ld.so.conf also contains /usr/contrib/lib and
5383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5384 # libtool to hard-code these into programs
5387 cygwin* | mingw* | pw32*)
5388 version_type=windows
5391 case $GCC,$host_os in
5393 library_names_spec='$libname.dll.a'
5394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5395 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5396 dldir=$destdir/`dirname \$dlpath`~
5397 test -d \$dldir || mkdir -p \$dldir~
5398 $install_prog .libs/$dlname \$dldir/$dlname'
5399 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5400 dlpath=$dir/\$dldll~
5404 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5405 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5411 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5414 dynamic_linker='Win32 ld.exe'
5415 # FIXME: first we should search . and the directory the executable is in
5419 darwin* | rhapsody*)
5420 dynamic_linker="$host_os dyld"
5424 # FIXME: Relying on posixy $() will cause problems for
5425 # cross-compilation, but unfortunately the echo tests do not
5426 # yet detect zsh echo's removal of \ escapes.
5427 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5428 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5429 shlibpath_overrides_runpath=yes
5430 shlibpath_var=DYLD_LIBRARY_PATH
5438 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5439 version_type=freebsd-$objformat
5440 case $version_type in
5442 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5447 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5451 shlibpath_var=LD_LIBRARY_PATH
5454 shlibpath_overrides_runpath=yes
5457 shlibpath_overrides_runpath=no
5458 hardcode_into_libs=yes
5467 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5468 soname_spec='${libname}${release}.so$major'
5469 shlibpath_var=LD_LIBRARY_PATH
5470 hardcode_into_libs=yes
5473 hpux9* | hpux10* | hpux11*)
5474 # Give a soname corresponding to the major version so that dld.sl refuses to
5475 # link against other versions.
5476 dynamic_linker="$host_os dld.sl"
5480 shlibpath_var=SHLIB_PATH
5481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5482 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5483 soname_spec='${libname}${release}.sl$major'
5484 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5485 postinstall_cmds='chmod 555 $lib'
5492 soname_spec='${libname}${release}.so$major'
5493 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5499 case $LD in # libtool.m4 will add one of these switches to LD
5500 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5501 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5502 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5503 *) libsuff= shlibsuff= libmagic=never-match;;
5507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5508 shlibpath_overrides_runpath=no
5509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5513 # No shared lib support for Linux oldld, aout, or coff.
5514 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5518 # This must be Linux ELF.
5523 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5524 soname_spec='${libname}${release}.so$major'
5525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5526 shlibpath_var=LD_LIBRARY_PATH
5527 shlibpath_overrides_runpath=no
5528 # This implies no fast_install, which is unacceptable.
5529 # Some rework will be needed to allow for fast_install
5530 # before this can be enabled.
5531 hardcode_into_libs=yes
5533 # We used to test for /lib/ld.so.1 and disable shared libraries on
5534 # powerpc, because MkLinux only supported shared libraries with the
5535 # GNU dynamic linker. Since this was broken with cross compilers,
5536 # most powerpc-linux boxes support dynamic linking these days and
5537 # people can always --disable-shared, the test was removed, and we
5538 # assume the GNU/Linux dynamic linker is in use.
5539 dynamic_linker='GNU/Linux ld.so'
5546 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5547 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5549 dynamic_linker='NetBSD (a.out) ld.so'
5551 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5552 soname_spec='${libname}${release}.so$major'
5553 dynamic_linker='NetBSD ld.elf_so'
5555 shlibpath_var=LD_LIBRARY_PATH
5556 shlibpath_overrides_runpath=yes
5557 hardcode_into_libs=yes
5562 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5563 shlibpath_var=LD_LIBRARY_PATH
5564 shlibpath_overrides_runpath=yes
5571 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5573 openbsd2.[89] | openbsd2.[89].*)
5574 shlibpath_overrides_runpath=no
5577 shlibpath_overrides_runpath=yes
5581 shlibpath_overrides_runpath=yes
5583 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5585 shlibpath_var=LD_LIBRARY_PATH
5589 libname_spec='$name'
5591 library_names_spec='$libname.dll $libname.a'
5592 dynamic_linker='OS/2 ld.exe'
5593 shlibpath_var=LIBPATH
5596 osf3* | osf4* | osf5*)
5599 soname_spec='${libname}${release}.so'
5600 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5601 shlibpath_var=LD_LIBRARY_PATH
5602 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5603 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5608 soname_spec='${libname}${release}.so$major'
5609 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5610 shlibpath_var=LD_LIBRARY_PATH
5617 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5618 soname_spec='${libname}${release}.so$major'
5619 shlibpath_var=LD_LIBRARY_PATH
5620 shlibpath_overrides_runpath=yes
5621 hardcode_into_libs=yes
5622 # ldd complains unless libraries are executable
5623 postinstall_cmds='chmod +x $lib'
5628 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5630 shlibpath_var=LD_LIBRARY_PATH
5631 shlibpath_overrides_runpath=yes
5632 if test "$with_gnu_ld" = yes; then
5638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5640 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5641 soname_spec='${libname}${release}.so$major'
5642 shlibpath_var=LD_LIBRARY_PATH
5643 case $host_vendor in
5645 shlibpath_overrides_runpath=no
5650 shlibpath_overrides_runpath=no
5651 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5659 soname_spec='${libname}${release}.so$major'
5660 shlibpath_var=LD_LIBRARY_PATH
5667 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5668 soname_spec='${libname}${release}.so$major'
5669 shlibpath_var=LD_LIBRARY_PATH
5673 if test -d /usr/nec ;then
5675 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5676 soname_spec='$libname.so.$major'
5677 shlibpath_var=LD_LIBRARY_PATH
5685 echo "$as_me:5685: result: $dynamic_linker" >&5
5686 echo "${ECHO_T}$dynamic_linker" >&6
5687 test "$dynamic_linker" = no && can_build_shared=no
5689 # Report the final consequences.
5690 echo "$as_me:5690: checking if libtool supports shared libraries" >&5
5691 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5692 echo "$as_me:5692: result: $can_build_shared" >&5
5693 echo "${ECHO_T}$can_build_shared" >&6
5695 echo "$as_me:5695: checking whether to build shared libraries" >&5
5696 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5697 test "$can_build_shared" = "no" && enable_shared=no
5699 # On AIX, shared libraries and static libraries use the same namespace, and
5700 # are all built from PIC.
5703 test "$enable_shared" = yes && enable_static=no
5704 if test -n "$RANLIB"; then
5705 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5706 postinstall_cmds='$RANLIB $lib'
5711 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5712 test "$enable_shared" = yes && enable_static=no
5716 echo "$as_me:5716: result: $enable_shared" >&5
5717 echo "${ECHO_T}$enable_shared" >&6
5719 echo "$as_me:5719: checking whether to build static libraries" >&5
5720 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5721 # Make sure either enable_shared or enable_static is yes.
5722 test "$enable_shared" = yes || enable_static=yes
5723 echo "$as_me:5723: result: $enable_static" >&5
5724 echo "${ECHO_T}$enable_static" >&6
5726 if test "$hardcode_action" = relink; then
5727 # Fast installation is not supported
5728 enable_fast_install=no
5729 elif test "$shlibpath_overrides_runpath" = yes ||
5730 test "$enable_shared" = no; then
5731 # Fast installation is not necessary
5732 enable_fast_install=needless
5735 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5736 if test "$GCC" = yes; then
5737 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5740 if test "x$enable_dlopen" != xyes; then
5741 enable_dlopen=unknown
5742 enable_dlopen_self=unknown
5743 enable_dlopen_self_static=unknown
5750 lt_cv_dlopen="load_add_on"
5752 lt_cv_dlopen_self=yes
5755 cygwin* | mingw* | pw32*)
5756 lt_cv_dlopen="LoadLibrary"
5761 echo "$as_me:5761: checking for shl_load" >&5
5762 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5763 if test "${ac_cv_func_shl_load+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.$ac_ext <<_ACEOF
5767 #line 5767 "configure"
5768 #include "confdefs.h"
5769 /* System header to define __stub macros and hopefully few prototypes,
5770 which can conflict with char shl_load (); below. */
5772 /* Override any gcc2 internal prototype to avoid an error. */
5776 /* We use char because int might match the return type of a gcc2
5777 builtin and then its argument prototype would still apply. */
5784 /* The GNU C library defines this for functions which it implements
5785 to always fail with ENOSYS. Some functions are actually named
5786 something starting with __ and the normal name is an alias. */
5787 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (eval echo "$as_me:5798: \"$ac_link\"") >&5
5799 (eval $ac_link) 2>&5
5801 echo "$as_me:5801: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -s conftest$ac_exeext'
5804 { (eval echo "$as_me:5804: \"$ac_try\"") >&5
5807 echo "$as_me:5807: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_func_shl_load=yes
5811 echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 ac_cv_func_shl_load=no
5815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5817 echo "$as_me:5817: result: $ac_cv_func_shl_load" >&5
5818 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5819 if test $ac_cv_func_shl_load = yes; then
5820 lt_cv_dlopen="shl_load"
5822 echo "$as_me:5822: checking for shl_load in -ldld" >&5
5823 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5824 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 ac_check_lib_save_LIBS=$LIBS
5829 cat >conftest.$ac_ext <<_ACEOF
5830 #line 5830 "configure"
5831 #include "confdefs.h"
5833 /* Override any gcc2 internal prototype to avoid an error. */
5837 /* We use char because int might match the return type of a gcc2
5838 builtin and then its argument prototype would still apply. */
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (eval echo "$as_me:5849: \"$ac_link\"") >&5
5850 (eval $ac_link) 2>&5
5852 echo "$as_me:5852: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:5855: \"$ac_try\"") >&5
5858 echo "$as_me:5858: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_cv_lib_dld_shl_load=yes
5862 echo "$as_me: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5864 ac_cv_lib_dld_shl_load=no
5866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5867 LIBS=$ac_check_lib_save_LIBS
5869 echo "$as_me:5869: result: $ac_cv_lib_dld_shl_load" >&5
5870 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5871 if test $ac_cv_lib_dld_shl_load = yes; then
5872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5874 echo "$as_me:5874: checking for dlopen" >&5
5875 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5876 if test "${ac_cv_func_dlopen+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5880 #line 5880 "configure"
5881 #include "confdefs.h"
5882 /* System header to define __stub macros and hopefully few prototypes,
5883 which can conflict with char dlopen (); below. */
5885 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5897 /* The GNU C library defines this for functions which it implements
5898 to always fail with ENOSYS. Some functions are actually named
5899 something starting with __ and the normal name is an alias. */
5900 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5910 rm -f conftest.$ac_objext conftest$ac_exeext
5911 if { (eval echo "$as_me:5911: \"$ac_link\"") >&5
5912 (eval $ac_link) 2>&5
5914 echo "$as_me:5914: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -s conftest$ac_exeext'
5917 { (eval echo "$as_me:5917: \"$ac_try\"") >&5
5920 echo "$as_me:5920: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_func_dlopen=yes
5924 echo "$as_me: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5926 ac_cv_func_dlopen=no
5928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5930 echo "$as_me:5930: result: $ac_cv_func_dlopen" >&5
5931 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5932 if test $ac_cv_func_dlopen = yes; then
5933 lt_cv_dlopen="dlopen"
5935 echo "$as_me:5935: checking for dlopen in -ldl" >&5
5936 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 ac_check_lib_save_LIBS=$LIBS
5942 cat >conftest.$ac_ext <<_ACEOF
5943 #line 5943 "configure"
5944 #include "confdefs.h"
5946 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5961 rm -f conftest.$ac_objext conftest$ac_exeext
5962 if { (eval echo "$as_me:5962: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5965 echo "$as_me:5965: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -s conftest$ac_exeext'
5968 { (eval echo "$as_me:5968: \"$ac_try\"") >&5
5971 echo "$as_me:5971: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 ac_cv_lib_dl_dlopen=yes
5975 echo "$as_me: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5977 ac_cv_lib_dl_dlopen=no
5979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5980 LIBS=$ac_check_lib_save_LIBS
5982 echo "$as_me:5982: result: $ac_cv_lib_dl_dlopen" >&5
5983 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5984 if test $ac_cv_lib_dl_dlopen = yes; then
5985 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5987 echo "$as_me:5987: checking for dlopen in -lsvld" >&5
5988 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 ac_check_lib_save_LIBS=$LIBS
5994 cat >conftest.$ac_ext <<_ACEOF
5995 #line 5995 "configure"
5996 #include "confdefs.h"
5998 /* Override any gcc2 internal prototype to avoid an error. */
6002 /* We use char because int might match the return type of a gcc2
6003 builtin and then its argument prototype would still apply. */
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (eval echo "$as_me:6014: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6017 echo "$as_me:6017: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -s conftest$ac_exeext'
6020 { (eval echo "$as_me:6020: \"$ac_try\"") >&5
6023 echo "$as_me:6023: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_lib_svld_dlopen=yes
6027 echo "$as_me: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6029 ac_cv_lib_svld_dlopen=no
6031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6032 LIBS=$ac_check_lib_save_LIBS
6034 echo "$as_me:6034: result: $ac_cv_lib_svld_dlopen" >&5
6035 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6036 if test $ac_cv_lib_svld_dlopen = yes; then
6037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6039 echo "$as_me:6039: checking for dld_link in -ldld" >&5
6040 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6041 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 ac_check_lib_save_LIBS=$LIBS
6046 cat >conftest.$ac_ext <<_ACEOF
6047 #line 6047 "configure"
6048 #include "confdefs.h"
6050 /* Override any gcc2 internal prototype to avoid an error. */
6054 /* We use char because int might match the return type of a gcc2
6055 builtin and then its argument prototype would still apply. */
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (eval echo "$as_me:6066: \"$ac_link\"") >&5
6067 (eval $ac_link) 2>&5
6069 echo "$as_me:6069: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -s conftest$ac_exeext'
6072 { (eval echo "$as_me:6072: \"$ac_try\"") >&5
6075 echo "$as_me:6075: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_lib_dld_dld_link=yes
6079 echo "$as_me: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6081 ac_cv_lib_dld_dld_link=no
6083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6086 echo "$as_me:6086: result: $ac_cv_lib_dld_dld_link" >&5
6087 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6088 if test $ac_cv_lib_dld_dld_link = yes; then
6089 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6105 if test "x$lt_cv_dlopen" != xno; then
6111 case $lt_cv_dlopen in
6113 save_CPPFLAGS="$CPPFLAGS"
6114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6116 save_LDFLAGS="$LDFLAGS"
6117 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6120 LIBS="$lt_cv_dlopen_libs $LIBS"
6122 echo "$as_me:6122: checking whether a program can dlopen itself" >&5
6123 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6124 if test "${lt_cv_dlopen_self+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 if test "$cross_compiling" = yes; then :
6128 lt_cv_dlopen_self=cross
6130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6131 lt_status=$lt_dlunknown
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6143 # define LT_DLGLOBAL RTLD_GLOBAL
6146 # define LT_DLGLOBAL DL_GLOBAL
6148 # define LT_DLGLOBAL 0
6152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6153 find out it does not work in some platform. */
6154 #ifndef LT_DLLAZY_OR_NOW
6156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6159 # define LT_DLLAZY_OR_NOW DL_LAZY
6162 # define LT_DLLAZY_OR_NOW RTLD_NOW
6165 # define LT_DLLAZY_OR_NOW DL_NOW
6167 # define LT_DLLAZY_OR_NOW 0
6175 extern "C" void exit (int);
6178 void fnord() { int i=42;}
6181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6182 int status = $lt_dlunknown;
6186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6187 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6188 /* dlclose (self); */
6194 if { (eval echo "$as_me:6194: \"$ac_link\"") >&5
6195 (eval $ac_link) 2>&5
6197 echo "$as_me:6197: \$? = $ac_status" >&5
6198 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6199 (./conftest; exit; ) 2>/dev/null
6202 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6203 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6204 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6207 # compilation failed
6208 lt_cv_dlopen_self=no
6214 echo "$as_me:6214: result: $lt_cv_dlopen_self" >&5
6215 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6217 if test "x$lt_cv_dlopen_self" = xyes; then
6218 LDFLAGS="$LDFLAGS $link_static_flag"
6219 echo "$as_me:6219: checking whether a statically linked program can dlopen itself" >&5
6220 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6221 if test "${lt_cv_dlopen_self_static+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 if test "$cross_compiling" = yes; then :
6225 lt_cv_dlopen_self_static=cross
6227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6228 lt_status=$lt_dlunknown
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6230 "configure"
6231 #include "confdefs.h"
6240 # define LT_DLGLOBAL RTLD_GLOBAL
6243 # define LT_DLGLOBAL DL_GLOBAL
6245 # define LT_DLGLOBAL 0
6249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6250 find out it does not work in some platform. */
6251 #ifndef LT_DLLAZY_OR_NOW
6253 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6256 # define LT_DLLAZY_OR_NOW DL_LAZY
6259 # define LT_DLLAZY_OR_NOW RTLD_NOW
6262 # define LT_DLLAZY_OR_NOW DL_NOW
6264 # define LT_DLLAZY_OR_NOW 0
6272 extern "C" void exit (int);
6275 void fnord() { int i=42;}
6278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6279 int status = $lt_dlunknown;
6283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6285 /* dlclose (self); */
6291 if { (eval echo "$as_me:6291: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>&5
6294 echo "$as_me:6294: \$? = $ac_status" >&5
6295 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6296 (./conftest; exit; ) 2>/dev/null
6299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6301 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6304 # compilation failed
6305 lt_cv_dlopen_self_static=no
6311 echo "$as_me:6311: result: $lt_cv_dlopen_self_static" >&5
6312 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6315 CPPFLAGS="$save_CPPFLAGS"
6316 LDFLAGS="$save_LDFLAGS"
6321 case $lt_cv_dlopen_self in
6322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6323 *) enable_dlopen_self=unknown ;;
6326 case $lt_cv_dlopen_self_static in
6327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6328 *) enable_dlopen_self_static=unknown ;;
6332 if test "$enable_shared" = yes && test "$GCC" = yes; then
6333 case $archive_cmds in
6335 # FIXME: we may have to deal with multi-command sequences.
6338 # Test whether the compiler implicitly links with -lc since on some
6339 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6340 # to ld, don't add -lc before -lgcc.
6341 echo "$as_me:6341: checking whether -lc should be explicitly linked in" >&5
6342 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6343 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 echo 'static int dummy;' > conftest.$ac_ext
6349 if { (eval echo "$as_me:6349: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>&5
6352 echo "$as_me:6352: \$? = $ac_status" >&5
6353 (exit $ac_status); }; then
6356 libobjs=conftest.$ac_objext
6358 wl=$lt_cv_prog_cc_wl
6364 save_allow_undefined_flag=$allow_undefined_flag
6365 allow_undefined_flag=
6366 if { (eval echo "$as_me:6366: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6367 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6369 echo "$as_me:6369: \$? = $ac_status" >&5
6370 (exit $ac_status); }
6372 lt_cv_archive_cmds_need_lc=no
6374 lt_cv_archive_cmds_need_lc=yes
6376 allow_undefined_flag=$save_allow_undefined_flag
6378 cat conftest.err 1>&5
6382 echo "$as_me:6382: result: $lt_cv_archive_cmds_need_lc" >&5
6383 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6387 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6389 # The second clause should only fire when bootstrapping the
6390 # libtool distribution, otherwise you forgot to ship ltmain.sh
6391 # with your package, and you will get complaints that there are
6392 # no rules to generate ltmain.sh.
6393 if test -f "$ltmain"; then
6396 # If there is no Makefile yet, we rely on a make rule to execute
6397 # `config.status --recheck' to rerun these tests and create the
6398 # libtool script then.
6399 test -f Makefile && make "$ltmain"
6402 if test -f "$ltmain"; then
6403 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6406 echo creating $ofile
6408 # Now quote all the things that may contain metacharacters while being
6409 # careful not to overquote the AC_SUBSTed values. We take copies of the
6410 # variables and quote the copies for generation of the libtool script.
6411 for var in echo old_CC old_CFLAGS \
6412 AR AR_FLAGS CC LD LN_S NM SHELL \
6413 reload_flag reload_cmds wl \
6414 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6415 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6416 library_names_spec soname_spec \
6417 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6418 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6419 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6420 old_striplib striplib file_magic_cmd export_symbols_cmds \
6421 deplibs_check_method allow_undefined_flag no_undefined_flag \
6422 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6423 global_symbol_to_c_name_address \
6424 hardcode_libdir_flag_spec hardcode_libdir_separator \
6425 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6426 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6429 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6430 old_postinstall_cmds | old_postuninstall_cmds | \
6431 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6432 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6433 postinstall_cmds | postuninstall_cmds | \
6434 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6435 # Double-quote double-evaled strings.
6436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6444 cat <<__EOF__ > "${ofile}T"
6447 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6448 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6449 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6451 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6452 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6454 # This program is free software; you can redistribute it and/or modify
6455 # it under the terms of the GNU General Public License as published by
6456 # the Free Software Foundation; either version 2 of the License, or
6457 # (at your option) any later version.
6459 # This program is distributed in the hope that it will be useful, but
6460 # WITHOUT ANY WARRANTY; without even the implied warranty of
6461 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6462 # General Public License for more details.
6464 # You should have received a copy of the GNU General Public License
6465 # along with this program; if not, write to the Free Software
6466 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6468 # As a special exception to the GNU General Public License, if you
6469 # distribute this file as part of a program that contains a
6470 # configuration script generated by Autoconf, you may include it under
6471 # the same distribution terms that you use for the rest of that program.
6473 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6474 Xsed="sed -e s/^X//"
6476 # The HP-UX ksh and POSIX shell print the target directory to stdout
6478 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6480 # ### BEGIN LIBTOOL CONFIG
6482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6484 # Shell to use when invoking shell scripts.
6487 # Whether or not to build shared libraries.
6488 build_libtool_libs=$enable_shared
6490 # Whether or not to build static libraries.
6491 build_old_libs=$enable_static
6493 # Whether or not to add -lc for building shared libraries.
6494 build_libtool_need_lc=$need_lc
6496 # Whether or not to optimize for fast installation.
6497 fast_install=$enable_fast_install
6500 host_alias=$host_alias
6503 # An echo program that does not interpret backslashes.
6508 AR_FLAGS=$lt_AR_FLAGS
6510 # The default C compiler.
6513 # Is the compiler the GNU C compiler?
6516 # The linker used to build libraries.
6519 # Whether we need hard or soft links.
6522 # A BSD-compatible nm program.
6525 # A symbol stripping program
6528 # Used to examine libraries when file_magic_cmd begins "file"
6529 MAGIC_CMD=$MAGIC_CMD
6531 # Used on cygwin: DLL creation program.
6534 # Used on cygwin: object dumper.
6537 # Used on cygwin: assembler.
6540 # The name of the directory that contains temporary libtool files.
6543 # How to create reloadable object files.
6544 reload_flag=$lt_reload_flag
6545 reload_cmds=$lt_reload_cmds
6547 # How to pass a linker flag through the compiler.
6550 # Object file suffix (normally "o").
6553 # Old archive suffix (normally "a").
6556 # Executable file suffix (normally "").
6559 # Additional compiler flags for building library objects.
6560 pic_flag=$lt_pic_flag
6563 # Does compiler simultaneously support -c and -o options?
6564 compiler_c_o=$lt_compiler_c_o
6566 # Can we write directly to a .lo ?
6567 compiler_o_lo=$lt_compiler_o_lo
6569 # Must we lock files when doing compilation ?
6570 need_locks=$lt_need_locks
6572 # Do we need the lib prefix for modules?
6573 need_lib_prefix=$need_lib_prefix
6575 # Do we need a version for libraries?
6576 need_version=$need_version
6578 # Whether dlopen is supported.
6579 dlopen_support=$enable_dlopen
6581 # Whether dlopen of programs is supported.
6582 dlopen_self=$enable_dlopen_self
6584 # Whether dlopen of statically linked programs is supported.
6585 dlopen_self_static=$enable_dlopen_self_static
6587 # Compiler flag to prevent dynamic linking.
6588 link_static_flag=$lt_link_static_flag
6590 # Compiler flag to turn off builtin functions.
6591 no_builtin_flag=$lt_no_builtin_flag
6593 # Compiler flag to allow reflexive dlopens.
6594 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6596 # Compiler flag to generate shared objects directly from archives.
6597 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6599 # Compiler flag to generate thread-safe objects.
6600 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6602 # Library versioning type.
6603 version_type=$version_type
6605 # Format of library name prefix.
6606 libname_spec=$lt_libname_spec
6608 # List of archive names. First name is the real one, the rest are links.
6609 # The last name is the one that the linker finds with -lNAME.
6610 library_names_spec=$lt_library_names_spec
6612 # The coded name of the library, if different from the real name.
6613 soname_spec=$lt_soname_spec
6615 # Commands used to build and install an old-style archive.
6617 old_archive_cmds=$lt_old_archive_cmds
6618 old_postinstall_cmds=$lt_old_postinstall_cmds
6619 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6621 # Create an old-style archive from a shared archive.
6622 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6624 # Create a temporary old-style archive to link instead of a shared archive.
6625 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6627 # Commands used to build and install a shared archive.
6628 archive_cmds=$lt_archive_cmds
6629 archive_expsym_cmds=$lt_archive_expsym_cmds
6630 postinstall_cmds=$lt_postinstall_cmds
6631 postuninstall_cmds=$lt_postuninstall_cmds
6633 # Commands to strip libraries.
6634 old_striplib=$lt_old_striplib
6635 striplib=$lt_striplib
6637 # Method to check whether dependent libraries are shared objects.
6638 deplibs_check_method=$lt_deplibs_check_method
6640 # Command to use when deplibs_check_method == file_magic.
6641 file_magic_cmd=$lt_file_magic_cmd
6643 # Flag that allows shared libraries with undefined symbols to be built.
6644 allow_undefined_flag=$lt_allow_undefined_flag
6646 # Flag that forces no undefined symbols.
6647 no_undefined_flag=$lt_no_undefined_flag
6649 # Commands used to finish a libtool library installation in a directory.
6650 finish_cmds=$lt_finish_cmds
6652 # Same as above, but a single script fragment to be evaled but not shown.
6653 finish_eval=$lt_finish_eval
6655 # Take the output of nm and produce a listing of raw symbols and C names.
6656 global_symbol_pipe=$lt_global_symbol_pipe
6658 # Transform the output of nm in a proper C declaration
6659 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6661 # Transform the output of nm in a C name address pair
6662 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6664 # This is the shared library runtime path variable.
6665 runpath_var=$runpath_var
6667 # This is the shared library path variable.
6668 shlibpath_var=$shlibpath_var
6670 # Is shlibpath searched before the hard-coded library search path?
6671 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6673 # How to hardcode a shared library path into an executable.
6674 hardcode_action=$hardcode_action
6676 # Whether we should hardcode library paths into libraries.
6677 hardcode_into_libs=$hardcode_into_libs
6679 # Flag to hardcode \$libdir into a binary during linking.
6680 # This must work even if \$libdir does not exist.
6681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6683 # Whether we need a single -rpath flag with a separated argument.
6684 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6686 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6688 hardcode_direct=$hardcode_direct
6690 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6692 hardcode_minus_L=$hardcode_minus_L
6694 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6695 # the resulting binary.
6696 hardcode_shlibpath_var=$hardcode_shlibpath_var
6698 # Variables whose values should be saved in libtool wrapper scripts and
6699 # restored at relink time.
6700 variables_saved_for_relink="$variables_saved_for_relink"
6702 # Whether libtool must link a program against all its dependency libraries.
6703 link_all_deplibs=$link_all_deplibs
6705 # Compile-time system search path for libraries
6706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6708 # Run-time system search path for libraries
6709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6711 # Fix the shell variable \$srcfile for the compiler.
6712 fix_srcfile_path="$fix_srcfile_path"
6714 # Set to yes if exported symbols are required.
6715 always_export_symbols=$always_export_symbols
6717 # The commands to list exported symbols.
6718 export_symbols_cmds=$lt_export_symbols_cmds
6720 # The commands to extract the exported symbol list from a shared archive.
6721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6723 # Symbols that should not be listed in the preloaded symbols.
6724 exclude_expsyms=$lt_exclude_expsyms
6726 # Symbols that must always be exported.
6727 include_expsyms=$lt_include_expsyms
6729 # ### END LIBTOOL CONFIG
6735 cat <<\EOF >> "${ofile}T"
6737 # AIX sometimes has problems with the GCC collect2 program. For some
6738 # reason, if we set the COLLECT_NAMES environment variable, the problems
6739 # vanish in a puff of smoke.
6740 if test "X${COLLECT_NAMES+set}" != Xset; then
6742 export COLLECT_NAMES
6749 cygwin* | mingw* | pw32* | os2*)
6750 cat <<'EOF' >> "${ofile}T"
6751 # This is a source program that is used to create dlls on Windows
6752 # Don't remove nor modify the starting and closing comments
6753 # /* ltdll.c starts here */
6754 # #define WIN32_LEAN_AND_MEAN
6755 # #include <windows.h>
6756 # #undef WIN32_LEAN_AND_MEAN
6757 # #include <stdio.h>
6759 # #ifndef __CYGWIN__
6760 # # ifdef __CYGWIN32__
6761 # # define __CYGWIN__ __CYGWIN32__
6765 # #ifdef __cplusplus
6768 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6769 # #ifdef __cplusplus
6774 # #include <cygwin/cygwin_dll.h>
6775 # DECLARE_CYGWIN_DLL( DllMain );
6777 # HINSTANCE __hDllInstance_base;
6780 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6782 # __hDllInstance_base = hInst;
6785 # /* ltdll.c ends here */
6786 # This is a source program that is used to create import libraries
6787 # on Windows for dlls which lack them. Don't remove nor modify the
6788 # starting and closing comments
6789 # /* impgen.c starts here */
6790 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6792 # This file is part of GNU libtool.
6794 # This program is free software; you can redistribute it and/or modify
6795 # it under the terms of the GNU General Public License as published by
6796 # the Free Software Foundation; either version 2 of the License, or
6797 # (at your option) any later version.
6799 # This program is distributed in the hope that it will be useful,
6800 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6801 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6802 # GNU General Public License for more details.
6804 # You should have received a copy of the GNU General Public License
6805 # along with this program; if not, write to the Free Software
6806 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6809 # #include <stdio.h> /* for printf() */
6810 # #include <unistd.h> /* for open(), lseek(), read() */
6811 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6812 # #include <string.h> /* for strdup() */
6814 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6816 # #define O_BINARY 0
6819 # static unsigned int
6820 # pe_get16 (fd, offset)
6824 # unsigned char b[2];
6825 # lseek (fd, offset, SEEK_SET);
6827 # return b[0] + (b[1]<<8);
6830 # static unsigned int
6831 # pe_get32 (fd, offset)
6835 # unsigned char b[4];
6836 # lseek (fd, offset, SEEK_SET);
6838 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6841 # static unsigned int
6845 # unsigned char *b = ptr;
6846 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6855 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6856 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6857 # unsigned long name_rvas, nexp;
6858 # unsigned char *expdata, *erva;
6859 # char *filename, *dll_name;
6861 # filename = argv[1];
6863 # dll = open(filename, O_RDONLY|O_BINARY);
6867 # dll_name = filename;
6869 # for (i=0; filename[i]; i++)
6870 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6871 # dll_name = filename + i +1;
6873 # pe_header_offset = pe_get32 (dll, 0x3c);
6874 # opthdr_ofs = pe_header_offset + 4 + 20;
6875 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6877 # if (num_entries < 1) /* no exports */
6880 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6881 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6882 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6883 # secptr = (pe_header_offset + 4 + 20 +
6884 # pe_get16 (dll, pe_header_offset + 4 + 16));
6887 # for (i = 0; i < nsections; i++)
6890 # unsigned long secptr1 = secptr + 40 * i;
6891 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6892 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6893 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6894 # lseek(dll, secptr1, SEEK_SET);
6895 # read(dll, sname, 8);
6896 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6898 # expptr = fptr + (export_rva - vaddr);
6899 # if (export_rva + export_size > vaddr + vsize)
6900 # export_size = vsize - (export_rva - vaddr);
6905 # expdata = (unsigned char*)malloc(export_size);
6906 # lseek (dll, expptr, SEEK_SET);
6907 # read (dll, expdata, export_size);
6908 # erva = expdata - export_rva;
6910 # nexp = pe_as32 (expdata+24);
6911 # name_rvas = pe_as32 (expdata+32);
6913 # printf ("EXPORTS\n");
6914 # for (i = 0; i<nexp; i++)
6916 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6917 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6922 # /* impgen.c ends here */
6928 # We use sed instead of cat because bash on DJGPP gets confused if
6929 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6930 # text mode, it properly converts lines to CR/LF. This bash problem
6931 # is reportedly fixed, but why not run on old versions too?
6932 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6934 mv -f "${ofile}T" "$ofile" || \
6935 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6939 # This can be used to rebuild libtool when needed
6940 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6942 # Always use our own libtool.
6943 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6945 # Prevent multiple expansion
6948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6949 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6950 echo "$as_me:6950: checking for $ac_hdr that defines DIR" >&5
6951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 cat >conftest.$ac_ext <<_ACEOF
6956 #line 6956 "configure"
6957 #include "confdefs.h"
6958 #include <sys/types.h>
6970 rm -f conftest.$ac_objext
6971 if { (eval echo "$as_me:6971: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>&5
6974 echo "$as_me:6974: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:6977: \"$ac_try\"") >&5
6980 echo "$as_me:6980: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 eval "$as_ac_Header=yes"
6984 echo "$as_me: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 eval "$as_ac_Header=no"
6988 rm -f conftest.$ac_objext conftest.$ac_ext
6990 echo "$as_me:6990: result: `eval echo '${'$as_ac_Header'}'`" >&5
6991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6993 cat >>confdefs.h <<EOF
6994 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6997 ac_header_dirent=$ac_hdr; break
7001 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7002 if test $ac_header_dirent = dirent.h; then
7003 echo "$as_me:7003: checking for opendir in -ldir" >&5
7004 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
7005 if test "${ac_cv_lib_dir_opendir+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 ac_check_lib_save_LIBS=$LIBS
7010 cat >conftest.$ac_ext <<_ACEOF
7011 #line 7011 "configure"
7012 #include "confdefs.h"
7014 /* Override any gcc2 internal prototype to avoid an error. */
7018 /* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */
7029 rm -f conftest.$ac_objext conftest$ac_exeext
7030 if { (eval echo "$as_me:7030: \"$ac_link\"") >&5
7031 (eval $ac_link) 2>&5
7033 echo "$as_me:7033: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -s conftest$ac_exeext'
7036 { (eval echo "$as_me:7036: \"$ac_try\"") >&5
7039 echo "$as_me:7039: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_cv_lib_dir_opendir=yes
7043 echo "$as_me: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 ac_cv_lib_dir_opendir=no
7047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7050 echo "$as_me:7050: result: $ac_cv_lib_dir_opendir" >&5
7051 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
7052 if test $ac_cv_lib_dir_opendir = yes; then
7057 echo "$as_me:7057: checking for opendir in -lx" >&5
7058 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
7059 if test "${ac_cv_lib_x_opendir+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 ac_check_lib_save_LIBS=$LIBS
7064 cat >conftest.$ac_ext <<_ACEOF
7065 #line 7065 "configure"
7066 #include "confdefs.h"
7068 /* Override any gcc2 internal prototype to avoid an error. */
7072 /* We use char because int might match the return type of a gcc2
7073 builtin and then its argument prototype would still apply. */
7083 rm -f conftest.$ac_objext conftest$ac_exeext
7084 if { (eval echo "$as_me:7084: \"$ac_link\"") >&5
7085 (eval $ac_link) 2>&5
7087 echo "$as_me:7087: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try='test -s conftest$ac_exeext'
7090 { (eval echo "$as_me:7090: \"$ac_try\"") >&5
7093 echo "$as_me:7093: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_cv_lib_x_opendir=yes
7097 echo "$as_me: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7099 ac_cv_lib_x_opendir=no
7101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7102 LIBS=$ac_check_lib_save_LIBS
7104 echo "$as_me:7104: result: $ac_cv_lib_x_opendir" >&5
7105 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
7106 if test $ac_cv_lib_x_opendir = yes; then
7112 echo "$as_me:7112: checking for ANSI C header files" >&5
7113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7114 if test "${ac_cv_header_stdc+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line 7118 "configure"
7119 #include "confdefs.h"
7126 if { (eval echo "$as_me:7126: \"$ac_cpp conftest.$ac_ext\"") >&5
7127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129 egrep -v '^ *\+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:7132: \$? = $ac_status" >&5
7133 (exit $ac_status); } >/dev/null; then
7134 if test -s conftest.err; then
7135 ac_cpp_err=$ac_c_preproc_warn_flag
7142 if test -z "$ac_cpp_err"; then
7143 ac_cv_header_stdc=yes
7145 echo "$as_me: failed program was:" >&5
7146 cat conftest.$ac_ext >&5
7147 ac_cv_header_stdc=no
7149 rm -f conftest.err conftest.$ac_ext
7151 if test $ac_cv_header_stdc = yes; then
7152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7153 cat >conftest.$ac_ext <<_ACEOF
7154 #line 7154 "configure"
7155 #include "confdefs.h"
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160 egrep "memchr" >/dev/null 2>&1; then
7163 ac_cv_header_stdc=no
7169 if test $ac_cv_header_stdc = yes; then
7170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7171 cat >conftest.$ac_ext <<_ACEOF
7172 #line 7172 "configure"
7173 #include "confdefs.h"
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 egrep "free" >/dev/null 2>&1; then
7181 ac_cv_header_stdc=no
7187 if test $ac_cv_header_stdc = yes; then
7188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7189 if test "$cross_compiling" = yes; then
7192 cat >conftest.$ac_ext <<_ACEOF
7193 #line 7193 "configure"
7194 #include "confdefs.h"
7196 #if ((' ' & 0x0FF) == 0x020)
7197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7200 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7201 || ('j' <= (c) && (c) <= 'r') \
7202 || ('s' <= (c) && (c) <= 'z'))
7203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7211 for (i = 0; i < 256; i++)
7212 if (XOR (islower (i), ISLOWER (i))
7213 || toupper (i) != TOUPPER (i))
7218 rm -f conftest$ac_exeext
7219 if { (eval echo "$as_me:7219: \"$ac_link\"") >&5
7220 (eval $ac_link) 2>&5
7222 echo "$as_me:7222: \$? = $ac_status" >&5
7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224 { (eval echo "$as_me:7224: \"$ac_try\"") >&5
7227 echo "$as_me:7227: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7231 echo "$as_me: program exited with status $ac_status" >&5
7232 echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_header_stdc=no
7236 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7240 echo "$as_me:7240: result: $ac_cv_header_stdc" >&5
7241 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7242 if test $ac_cv_header_stdc = yes; then
7244 cat >>confdefs.h <<\EOF
7245 #define STDC_HEADERS 1
7250 echo "$as_me:7250: checking for sys/wait.h that is POSIX.1 compatible" >&5
7251 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7252 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line 7256 "configure"
7257 #include "confdefs.h"
7258 #include <sys/types.h>
7259 #include <sys/wait.h>
7261 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7277 rm -f conftest.$ac_objext
7278 if { (eval echo "$as_me:7278: \"$ac_compile\"") >&5
7279 (eval $ac_compile) 2>&5
7281 echo "$as_me:7281: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -s conftest.$ac_objext'
7284 { (eval echo "$as_me:7284: \"$ac_try\"") >&5
7287 echo "$as_me:7287: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 ac_cv_header_sys_wait_h=yes
7291 echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 ac_cv_header_sys_wait_h=no
7295 rm -f conftest.$ac_objext conftest.$ac_ext
7297 echo "$as_me:7297: result: $ac_cv_header_sys_wait_h" >&5
7298 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7299 if test $ac_cv_header_sys_wait_h = yes; then
7301 cat >>confdefs.h <<\EOF
7302 #define HAVE_SYS_WAIT_H 1
7307 for ac_header in errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h utmpx.h \
7308 termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \
7309 utime.h ulimit.h sys/resource.h gshadow.h shadow.h lastlog.h \
7312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7313 echo "$as_me:7313: checking for $ac_header" >&5
7314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 cat >conftest.$ac_ext <<_ACEOF
7319 #line 7319 "configure"
7320 #include "confdefs.h"
7321 #include <$ac_header>
7323 if { (eval echo "$as_me:7323: \"$ac_cpp conftest.$ac_ext\"") >&5
7324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7326 egrep -v '^ *\+' conftest.er1 >conftest.err
7328 cat conftest.err >&5
7329 echo "$as_me:7329: \$? = $ac_status" >&5
7330 (exit $ac_status); } >/dev/null; then
7331 if test -s conftest.err; then
7332 ac_cpp_err=$ac_c_preproc_warn_flag
7339 if test -z "$ac_cpp_err"; then
7340 eval "$as_ac_Header=yes"
7342 echo "$as_me: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7344 eval "$as_ac_Header=no"
7346 rm -f conftest.err conftest.$ac_ext
7348 echo "$as_me:7348: result: `eval echo '${'$as_ac_Header'}'`" >&5
7349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7351 cat >>confdefs.h <<EOF
7352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7358 for ac_func in a64l fchmod fchown fsync getgroups gethostname getspnam \
7359 gettimeofday getusershell getutent initgroups lchown lckpwdf lstat \
7360 memcpy memset mkstemp setgroups sigaction strchr updwtmp updwtmpx
7362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7363 echo "$as_me:7363: checking for $ac_func" >&5
7364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7365 if eval "test \"\${$as_ac_var+set}\" = set"; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 cat >conftest.$ac_ext <<_ACEOF
7369 #line 7369 "configure"
7370 #include "confdefs.h"
7371 /* System header to define __stub macros and hopefully few prototypes,
7372 which can conflict with char $ac_func (); below. */
7374 /* Override any gcc2 internal prototype to avoid an error. */
7378 /* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7386 /* The GNU C library defines this for functions which it implements
7387 to always fail with ENOSYS. Some functions are actually named
7388 something starting with __ and the normal name is an alias. */
7389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (eval echo "$as_me:7400: \"$ac_link\"") >&5
7401 (eval $ac_link) 2>&5
7403 echo "$as_me:7403: \$? = $ac_status" >&5
7404 (exit $ac_status); } &&
7405 { ac_try='test -s conftest$ac_exeext'
7406 { (eval echo "$as_me:7406: \"$ac_try\"") >&5
7409 echo "$as_me:7409: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 eval "$as_ac_var=yes"
7413 echo "$as_me: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7415 eval "$as_ac_var=no"
7417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7419 echo "$as_me:7419: result: `eval echo '${'$as_ac_var'}'`" >&5
7420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7421 if test `eval echo '${'$as_ac_var'}'` = yes; then
7422 cat >>confdefs.h <<EOF
7423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7429 echo "$as_me:7429: checking for $CC option to accept ANSI C" >&5
7430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 ac_cv_prog_cc_stdc=no
7436 cat >conftest.$ac_ext <<_ACEOF
7437 #line 7437 "configure"
7438 #include "confdefs.h"
7441 #include <sys/types.h>
7442 #include <sys/stat.h>
7443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7444 struct buf { int x; };
7445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7446 static char *e (p, i)
7452 static char *f (char * (*g) (char **, int), char **p, ...)
7457 s = g (p, va_arg (v,int));
7461 int test (int i, double x);
7462 struct s1 {int (*f) (int a);};
7463 struct s2 {int (*f) (double a);};
7464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7475 # Don't try gcc -ansi; that turns off useful extensions and
7476 # breaks some systems' header files.
7477 # AIX -qlanglvl=ansi
7478 # Ultrix and OSF/1 -std1
7479 # HP-UX 10.20 and later -Ae
7480 # HP-UX older versions -Aa -D_HPUX_SOURCE
7481 # SVR4 -Xc -D__EXTENSIONS__
7482 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7484 CC="$ac_save_CC $ac_arg"
7485 rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:7486: \"$ac_compile\"") >&5
7487 (eval $ac_compile) 2>&5
7489 echo "$as_me:7489: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -s conftest.$ac_objext'
7492 { (eval echo "$as_me:7492: \"$ac_try\"") >&5
7495 echo "$as_me:7495: \$? = $ac_status" >&5
7496 (exit $ac_status); }; }; then
7497 ac_cv_prog_cc_stdc=$ac_arg
7500 echo "$as_me: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7503 rm -f conftest.$ac_objext
7505 rm -f conftest.$ac_ext conftest.$ac_objext
7510 case "x$ac_cv_prog_cc_stdc" in
7512 echo "$as_me:7512: result: none needed" >&5
7513 echo "${ECHO_T}none needed" >&6 ;;
7515 echo "$as_me:7515: result: $ac_cv_prog_cc_stdc" >&5
7516 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7517 CC="$CC $ac_cv_prog_cc_stdc" ;;
7520 echo "$as_me:7520: checking for an ANSI C-conforming const" >&5
7521 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7522 if test "${ac_cv_c_const+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line 7526 "configure"
7527 #include "confdefs.h"
7532 /* FIXME: Include the comments suggested by Paul. */
7534 /* Ultrix mips cc rejects this. */
7535 typedef int charset[2];
7537 /* SunOS 4.1.1 cc rejects this. */
7538 char const *const *ccp;
7540 /* NEC SVR4.0.2 mips cc rejects this. */
7541 struct point {int x, y;};
7542 static struct point const zero = {0,0};
7543 /* AIX XL C 1.02.0.0 rejects this.
7544 It does not let you subtract one const X* pointer from another in
7545 an arm of an if-expression whose if-part is not a constant
7547 const char *g = "string";
7548 ccp = &g + (g ? g-g : 0);
7549 /* HPUX 7.0 cc rejects these. */
7552 ccp = (char const *const *) p;
7553 { /* SCO 3.2v4 cc rejects this. */
7555 char const *s = 0 ? (char *) 0 : (char const *) 0;
7559 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7561 const int *foo = &x[0];
7564 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7565 typedef const int *iptr;
7569 { /* AIX XL C 1.02.0.0 rejects this saying
7570 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7571 struct s { int j; const int *ap[3]; };
7572 struct s *b; b->j = 5;
7574 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:7584: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>&5
7587 echo "$as_me:7587: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -s conftest.$ac_objext'
7590 { (eval echo "$as_me:7590: \"$ac_try\"") >&5
7593 echo "$as_me:7593: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7597 echo "$as_me: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7601 rm -f conftest.$ac_objext conftest.$ac_ext
7603 echo "$as_me:7603: result: $ac_cv_c_const" >&5
7604 echo "${ECHO_T}$ac_cv_c_const" >&6
7605 if test $ac_cv_c_const = no; then
7607 cat >>confdefs.h <<\EOF
7613 echo "$as_me:7613: checking for uid_t in sys/types.h" >&5
7614 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7615 if test "${ac_cv_type_uid_t+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 cat >conftest.$ac_ext <<_ACEOF
7619 #line 7619 "configure"
7620 #include "confdefs.h"
7621 #include <sys/types.h>
7624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7625 egrep "uid_t" >/dev/null 2>&1; then
7626 ac_cv_type_uid_t=yes
7633 echo "$as_me:7633: result: $ac_cv_type_uid_t" >&5
7634 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7635 if test $ac_cv_type_uid_t = no; then
7637 cat >>confdefs.h <<\EOF
7641 cat >>confdefs.h <<\EOF
7647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7649 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7650 inttypes.h stdint.h unistd.h
7652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7653 echo "$as_me:7653: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 cat >conftest.$ac_ext <<_ACEOF
7659 #line 7659 "configure"
7660 #include "confdefs.h"
7661 $ac_includes_default
7662 #include <$ac_header>
7664 rm -f conftest.$ac_objext
7665 if { (eval echo "$as_me:7665: \"$ac_compile\"") >&5
7666 (eval $ac_compile) 2>&5
7668 echo "$as_me:7668: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:7671: \"$ac_try\"") >&5
7674 echo "$as_me:7674: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 eval "$as_ac_Header=yes"
7678 echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 eval "$as_ac_Header=no"
7682 rm -f conftest.$ac_objext conftest.$ac_ext
7684 echo "$as_me:7684: result: `eval echo '${'$as_ac_Header'}'`" >&5
7685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7687 cat >>confdefs.h <<EOF
7688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7694 echo "$as_me:7694: checking for off_t" >&5
7695 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7696 if test "${ac_cv_type_off_t+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 cat >conftest.$ac_ext <<_ACEOF
7700 #line 7700 "configure"
7701 #include "confdefs.h"
7702 $ac_includes_default
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:7715: \"$ac_compile\"") >&5
7716 (eval $ac_compile) 2>&5
7718 echo "$as_me:7718: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (eval echo "$as_me:7721: \"$ac_try\"") >&5
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_type_off_t=yes
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7732 rm -f conftest.$ac_objext conftest.$ac_ext
7734 echo "$as_me:7734: result: $ac_cv_type_off_t" >&5
7735 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7736 if test $ac_cv_type_off_t = yes; then
7740 cat >>confdefs.h <<EOF
7746 echo "$as_me:7746: checking for pid_t" >&5
7747 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7748 if test "${ac_cv_type_pid_t+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line 7752 "configure"
7753 #include "confdefs.h"
7754 $ac_includes_default
7766 rm -f conftest.$ac_objext
7767 if { (eval echo "$as_me:7767: \"$ac_compile\"") >&5
7768 (eval $ac_compile) 2>&5
7770 echo "$as_me:7770: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -s conftest.$ac_objext'
7773 { (eval echo "$as_me:7773: \"$ac_try\"") >&5
7776 echo "$as_me:7776: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 ac_cv_type_pid_t=yes
7780 echo "$as_me: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7784 rm -f conftest.$ac_objext conftest.$ac_ext
7786 echo "$as_me:7786: result: $ac_cv_type_pid_t" >&5
7787 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7788 if test $ac_cv_type_pid_t = yes; then
7792 cat >>confdefs.h <<EOF
7798 echo "$as_me:7798: checking for mode_t" >&5
7799 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7800 if test "${ac_cv_type_mode_t+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 cat >conftest.$ac_ext <<_ACEOF
7804 #line 7804 "configure"
7805 #include "confdefs.h"
7806 $ac_includes_default
7812 if (sizeof (mode_t))
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:7819: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>&5
7822 echo "$as_me:7822: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -s conftest.$ac_objext'
7825 { (eval echo "$as_me:7825: \"$ac_try\"") >&5
7828 echo "$as_me:7828: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_cv_type_mode_t=yes
7832 echo "$as_me: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 ac_cv_type_mode_t=no
7836 rm -f conftest.$ac_objext conftest.$ac_ext
7838 echo "$as_me:7838: result: $ac_cv_type_mode_t" >&5
7839 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7840 if test $ac_cv_type_mode_t = yes; then
7844 cat >>confdefs.h <<EOF
7850 echo "$as_me:7850: checking for struct stat.st_rdev" >&5
7851 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7852 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line 7856 "configure"
7857 #include "confdefs.h"
7858 $ac_includes_default
7862 static struct stat ac_aggr;
7863 if (ac_aggr.st_rdev)
7869 rm -f conftest.$ac_objext
7870 if { (eval echo "$as_me:7870: \"$ac_compile\"") >&5
7871 (eval $ac_compile) 2>&5
7873 echo "$as_me:7873: \$? = $ac_status" >&5
7874 (exit $ac_status); } &&
7875 { ac_try='test -s conftest.$ac_objext'
7876 { (eval echo "$as_me:7876: \"$ac_try\"") >&5
7879 echo "$as_me:7879: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 ac_cv_member_struct_stat_st_rdev=yes
7883 echo "$as_me: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7885 ac_cv_member_struct_stat_st_rdev=no
7887 rm -f conftest.$ac_objext conftest.$ac_ext
7889 echo "$as_me:7889: result: $ac_cv_member_struct_stat_st_rdev" >&5
7890 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7891 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7893 cat >>confdefs.h <<EOF
7894 #define HAVE_STRUCT_STAT_ST_RDEV 1
7897 cat >>confdefs.h <<\EOF
7898 #define HAVE_ST_RDEV 1
7903 echo "$as_me:7903: checking whether stat file-mode macros are broken" >&5
7904 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7905 if test "${ac_cv_header_stat_broken+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 cat >conftest.$ac_ext <<_ACEOF
7909 #line 7909 "configure"
7910 #include "confdefs.h"
7911 #include <sys/types.h>
7912 #include <sys/stat.h>
7914 #if defined(S_ISBLK) && defined(S_IFDIR)
7915 # if S_ISBLK (S_IFDIR)
7920 #if defined(S_ISBLK) && defined(S_IFCHR)
7921 # if S_ISBLK (S_IFCHR)
7926 #if defined(S_ISLNK) && defined(S_IFREG)
7927 # if S_ISLNK (S_IFREG)
7932 #if defined(S_ISSOCK) && defined(S_IFREG)
7933 # if S_ISSOCK (S_IFREG)
7939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7940 egrep "You lose" >/dev/null 2>&1; then
7941 ac_cv_header_stat_broken=yes
7943 ac_cv_header_stat_broken=no
7948 echo "$as_me:7948: result: $ac_cv_header_stat_broken" >&5
7949 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7950 if test $ac_cv_header_stat_broken = yes; then
7952 cat >>confdefs.h <<\EOF
7953 #define STAT_MACROS_BROKEN 1
7958 echo "$as_me:7958: checking whether time.h and sys/time.h may both be included" >&5
7959 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7960 if test "${ac_cv_header_time+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7964 #line 7964 "configure"
7965 #include "confdefs.h"
7966 #include <sys/types.h>
7967 #include <sys/time.h>
7973 if ((struct tm *) 0)
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:7980: \"$ac_compile\"") >&5
7981 (eval $ac_compile) 2>&5
7983 echo "$as_me:7983: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:7986: \"$ac_try\"") >&5
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_header_time=yes
7993 echo "$as_me: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 ac_cv_header_time=no
7997 rm -f conftest.$ac_objext conftest.$ac_ext
7999 echo "$as_me:7999: result: $ac_cv_header_time" >&5
8000 echo "${ECHO_T}$ac_cv_header_time" >&6
8001 if test $ac_cv_header_time = yes; then
8003 cat >>confdefs.h <<\EOF
8004 #define TIME_WITH_SYS_TIME 1
8009 echo "$as_me:8009: checking whether struct tm is in sys/time.h or time.h" >&5
8010 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8011 if test "${ac_cv_struct_tm+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 cat >conftest.$ac_ext <<_ACEOF
8015 #line 8015 "configure"
8016 #include "confdefs.h"
8017 #include <sys/types.h>
8023 struct tm *tp; tp->tm_sec;
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:8029: \"$ac_compile\"") >&5
8030 (eval $ac_compile) 2>&5
8032 echo "$as_me:8032: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:8035: \"$ac_try\"") >&5
8038 echo "$as_me:8038: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_struct_tm=time.h
8042 echo "$as_me: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8044 ac_cv_struct_tm=sys/time.h
8046 rm -f conftest.$ac_objext conftest.$ac_ext
8048 echo "$as_me:8048: result: $ac_cv_struct_tm" >&5
8049 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8050 if test $ac_cv_struct_tm = sys/time.h; then
8052 cat >>confdefs.h <<\EOF
8053 #define TM_IN_SYS_TIME 1
8058 echo "$as_me:8058: checking for pw_age in struct passwd" >&5
8059 echo $ECHO_N "checking for pw_age in struct passwd... $ECHO_C" >&6
8060 if test "${ac_cv_struct_passwd_pw_age+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 cat >conftest.$ac_ext <<_ACEOF
8064 #line 8064 "configure"
8065 #include "confdefs.h"
8070 struct passwd pw; pw.pw_age = "";
8075 rm -f conftest.$ac_objext
8076 if { (eval echo "$as_me:8076: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>&5
8079 echo "$as_me:8079: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:8082: \"$ac_try\"") >&5
8085 echo "$as_me:8085: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 ac_cv_struct_passwd_pw_age=yes
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 ac_cv_struct_passwd_pw_age=no
8093 rm -f conftest.$ac_objext conftest.$ac_ext
8095 echo "$as_me:8095: result: $ac_cv_struct_passwd_pw_age" >&5
8096 echo "${ECHO_T}$ac_cv_struct_passwd_pw_age" >&6
8098 if test "$ac_cv_struct_passwd_pw_age" = "yes"; then
8099 cat >>confdefs.h <<\EOF
8105 echo "$as_me:8105: checking for pw_comment in struct passwd" >&5
8106 echo $ECHO_N "checking for pw_comment in struct passwd... $ECHO_C" >&6
8107 if test "${ac_cv_struct_passwd_pw_comment+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 cat >conftest.$ac_ext <<_ACEOF
8111 #line 8111 "configure"
8112 #include "confdefs.h"
8117 struct passwd pw; pw.pw_comment = "";
8122 rm -f conftest.$ac_objext
8123 if { (eval echo "$as_me:8123: \"$ac_compile\"") >&5
8124 (eval $ac_compile) 2>&5
8126 echo "$as_me:8126: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:8129: \"$ac_try\"") >&5
8132 echo "$as_me:8132: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_struct_passwd_pw_comment=yes
8136 echo "$as_me: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8138 ac_cv_struct_passwd_pw_comment=no
8140 rm -f conftest.$ac_objext conftest.$ac_ext
8142 echo "$as_me:8142: result: $ac_cv_struct_passwd_pw_comment" >&5
8143 echo "${ECHO_T}$ac_cv_struct_passwd_pw_comment" >&6
8145 if test "$ac_cv_struct_passwd_pw_comment" = "yes"; then
8146 cat >>confdefs.h <<\EOF
8147 #define ATT_COMMENT 1
8152 echo "$as_me:8152: checking for pw_quota in struct passwd" >&5
8153 echo $ECHO_N "checking for pw_quota in struct passwd... $ECHO_C" >&6
8154 if test "${ac_cv_struct_passwd_pw_quota+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8158 #line 8158 "configure"
8159 #include "confdefs.h"
8164 struct passwd pw; pw.pw_quota = 0;
8169 rm -f conftest.$ac_objext
8170 if { (eval echo "$as_me:8170: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>&5
8173 echo "$as_me:8173: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try='test -s conftest.$ac_objext'
8176 { (eval echo "$as_me:8176: \"$ac_try\"") >&5
8179 echo "$as_me:8179: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 ac_cv_struct_passwd_pw_quota=yes
8183 echo "$as_me: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 ac_cv_struct_passwd_pw_quota=no
8187 rm -f conftest.$ac_objext conftest.$ac_ext
8189 echo "$as_me:8189: result: $ac_cv_struct_passwd_pw_quota" >&5
8190 echo "${ECHO_T}$ac_cv_struct_passwd_pw_quota" >&6
8192 if test "$ac_cv_struct_passwd_pw_quota" = "yes"; then
8193 cat >>confdefs.h <<\EOF
8199 if test "$ac_cv_header_utmp_h" = "yes"; then
8200 echo "$as_me:8200: checking for ut_host in struct utmp" >&5
8201 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
8202 if test "${ac_cv_struct_utmp_ut_host+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 cat >conftest.$ac_ext <<_ACEOF
8206 #line 8206 "configure"
8207 #include "confdefs.h"
8212 struct utmp ut; char *cp = ut.ut_host;
8217 rm -f conftest.$ac_objext
8218 if { (eval echo "$as_me:8218: \"$ac_compile\"") >&5
8219 (eval $ac_compile) 2>&5
8221 echo "$as_me:8221: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (eval echo "$as_me:8224: \"$ac_try\"") >&5
8227 echo "$as_me:8227: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_struct_utmp_ut_host=yes
8231 echo "$as_me: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 ac_cv_struct_utmp_ut_host=no
8235 rm -f conftest.$ac_objext conftest.$ac_ext
8237 echo "$as_me:8237: result: $ac_cv_struct_utmp_ut_host" >&5
8238 echo "${ECHO_T}$ac_cv_struct_utmp_ut_host" >&6
8240 if test "$ac_cv_struct_utmp_ut_host" = "yes"; then
8241 cat >>confdefs.h <<\EOF
8247 echo "$as_me:8247: checking for ut_user in struct utmp" >&5
8248 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
8249 if test "${ac_cv_struct_utmp_ut_user+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 cat >conftest.$ac_ext <<_ACEOF
8253 #line 8253 "configure"
8254 #include "confdefs.h"
8259 struct utmp ut; char *cp = ut.ut_user;
8264 rm -f conftest.$ac_objext
8265 if { (eval echo "$as_me:8265: \"$ac_compile\"") >&5
8266 (eval $ac_compile) 2>&5
8268 echo "$as_me:8268: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -s conftest.$ac_objext'
8271 { (eval echo "$as_me:8271: \"$ac_try\"") >&5
8274 echo "$as_me:8274: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276 ac_cv_struct_utmp_ut_user=yes
8278 echo "$as_me: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 ac_cv_struct_utmp_ut_user=no
8282 rm -f conftest.$ac_objext conftest.$ac_ext
8284 echo "$as_me:8284: result: $ac_cv_struct_utmp_ut_user" >&5
8285 echo "${ECHO_T}$ac_cv_struct_utmp_ut_user" >&6
8287 if test "$ac_cv_struct_utmp_ut_user" = "no"; then
8288 cat >>confdefs.h <<\EOF
8289 #define ut_user ut_name
8295 if test "$ac_cv_header_lastlog_h" = "yes"; then
8296 echo "$as_me:8296: checking for ll_host in struct lastlog" >&5
8297 echo $ECHO_N "checking for ll_host in struct lastlog... $ECHO_C" >&6
8298 if test "${ac_cv_struct_lastlog_ll_host+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.$ac_ext <<_ACEOF
8302 #line 8302 "configure"
8303 #include "confdefs.h"
8304 #include <lastlog.h>
8308 struct lastlog ll; char *cp = ll.ll_host;
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:8314: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>&5
8317 echo "$as_me:8317: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -s conftest.$ac_objext'
8320 { (eval echo "$as_me:8320: \"$ac_try\"") >&5
8323 echo "$as_me:8323: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_struct_lastlog_ll_host=yes
8327 echo "$as_me: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8329 ac_cv_struct_lastlog_ll_host=no
8331 rm -f conftest.$ac_objext conftest.$ac_ext
8333 echo "$as_me:8333: result: $ac_cv_struct_lastlog_ll_host" >&5
8334 echo "${ECHO_T}$ac_cv_struct_lastlog_ll_host" >&6
8336 if test "$ac_cv_struct_lastlog_ll_host" = "yes"; then
8337 cat >>confdefs.h <<\EOF
8338 #define HAVE_LL_HOST 1
8344 echo "$as_me:8344: checking type of array argument to getgroups" >&5
8345 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
8346 if test "${ac_cv_type_getgroups+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 if test "$cross_compiling" = yes; then
8350 ac_cv_type_getgroups=cross
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line 8353 "configure"
8354 #include "confdefs.h"
8355 /* Thanks to Mike Rendell for this test. */
8356 #include <sys/types.h>
8359 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8366 union { gid_t gval; long lval; } val;
8369 for (i = 0; i < NGID; i++)
8370 gidset[i] = val.gval;
8371 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8373 /* Exit non-zero if getgroups seems to require an array of ints. This
8374 happens when gid_t is short but getgroups modifies an array of ints. */
8375 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8378 rm -f conftest$ac_exeext
8379 if { (eval echo "$as_me:8379: \"$ac_link\"") >&5
8380 (eval $ac_link) 2>&5
8382 echo "$as_me:8382: \$? = $ac_status" >&5
8383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8384 { (eval echo "$as_me:8384: \"$ac_try\"") >&5
8387 echo "$as_me:8387: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_type_getgroups=gid_t
8391 echo "$as_me: program exited with status $ac_status" >&5
8392 echo "$as_me: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8394 ac_cv_type_getgroups=int
8396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8398 if test $ac_cv_type_getgroups = cross; then
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line 8400 "configure"
8401 #include "confdefs.h"
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8407 ac_cv_type_getgroups=gid_t
8409 ac_cv_type_getgroups=int
8415 echo "$as_me:8415: result: $ac_cv_type_getgroups" >&5
8416 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
8418 cat >>confdefs.h <<EOF
8419 #define GETGROUPS_T $ac_cv_type_getgroups
8422 if test $ac_cv_c_compiler_gnu = yes; then
8423 echo "$as_me:8423: checking whether $CC needs -traditional" >&5
8424 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
8425 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 ac_pattern="Autoconf.*'x'"
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line 8430 "configure"
8431 #include "confdefs.h"
8435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8436 egrep "$ac_pattern" >/dev/null 2>&1; then
8437 ac_cv_prog_gcc_traditional=yes
8439 ac_cv_prog_gcc_traditional=no
8443 if test $ac_cv_prog_gcc_traditional = no; then
8444 cat >conftest.$ac_ext <<_ACEOF
8445 #line 8445 "configure"
8446 #include "confdefs.h"
8450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8451 egrep "$ac_pattern" >/dev/null 2>&1; then
8452 ac_cv_prog_gcc_traditional=yes
8458 echo "$as_me:8458: result: $ac_cv_prog_gcc_traditional" >&5
8459 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
8460 if test $ac_cv_prog_gcc_traditional = yes; then
8461 CC="$CC -traditional"
8465 echo "$as_me:8465: checking return type of signal handlers" >&5
8466 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8467 if test "${ac_cv_type_signal+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line 8471 "configure"
8472 #include "confdefs.h"
8473 #include <sys/types.h>
8479 extern "C" void (*signal (int, void (*)(int)))(int);
8481 void (*signal ()) ();
8492 rm -f conftest.$ac_objext
8493 if { (eval echo "$as_me:8493: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8496 echo "$as_me:8496: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:8499: \"$ac_try\"") >&5
8502 echo "$as_me:8502: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_type_signal=void
8506 echo "$as_me: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8508 ac_cv_type_signal=int
8510 rm -f conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:8512: result: $ac_cv_type_signal" >&5
8513 echo "${ECHO_T}$ac_cv_type_signal" >&6
8515 cat >>confdefs.h <<EOF
8516 #define RETSIGTYPE $ac_cv_type_signal
8519 echo "$as_me:8519: checking whether utime accepts a null argument" >&5
8520 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
8521 if test "${ac_cv_func_utime_null+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 rm -f conftest.data; >conftest.data
8525 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
8526 if test "$cross_compiling" = yes; then
8527 ac_cv_func_utime_null=no
8529 cat >conftest.$ac_ext <<_ACEOF
8530 #line 8530 "configure"
8531 #include "confdefs.h"
8532 $ac_includes_default
8537 exit (!(stat ("conftest.data", &s) == 0
8538 && utime ("conftest.data", (long *)0) == 0
8539 && stat ("conftest.data", &t) == 0
8540 && t.st_mtime >= s.st_mtime
8541 && t.st_mtime - s.st_mtime < 120));
8546 rm -f conftest$ac_exeext
8547 if { (eval echo "$as_me:8547: \"$ac_link\"") >&5
8548 (eval $ac_link) 2>&5
8550 echo "$as_me:8550: \$? = $ac_status" >&5
8551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8552 { (eval echo "$as_me:8552: \"$ac_try\"") >&5
8555 echo "$as_me:8555: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_func_utime_null=yes
8559 echo "$as_me: program exited with status $ac_status" >&5
8560 echo "$as_me: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8562 ac_cv_func_utime_null=no
8564 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8566 rm -f core core.* *.core
8568 echo "$as_me:8568: result: $ac_cv_func_utime_null" >&5
8569 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
8570 if test $ac_cv_func_utime_null = yes; then
8572 cat >>confdefs.h <<\EOF
8573 #define HAVE_UTIME_NULL 1
8579 for ac_func in strftime
8581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8582 echo "$as_me:8582: checking for $ac_func" >&5
8583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8584 if eval "test \"\${$as_ac_var+set}\" = set"; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8588 #line 8588 "configure"
8589 #include "confdefs.h"
8590 /* System header to define __stub macros and hopefully few prototypes,
8591 which can conflict with char $ac_func (); below. */
8593 /* Override any gcc2 internal prototype to avoid an error. */
8597 /* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8605 /* The GNU C library defines this for functions which it implements
8606 to always fail with ENOSYS. Some functions are actually named
8607 something starting with __ and the normal name is an alias. */
8608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:8619: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>&5
8622 echo "$as_me:8622: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:8625: \"$ac_try\"") >&5
8628 echo "$as_me:8628: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 eval "$as_ac_var=yes"
8632 echo "$as_me: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8634 eval "$as_ac_var=no"
8636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8638 echo "$as_me:8638: result: `eval echo '${'$as_ac_var'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8640 if test `eval echo '${'$as_ac_var'}'` = yes; then
8641 cat >>confdefs.h <<EOF
8642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8646 # strftime is in -lintl on SCO UNIX.
8647 echo "$as_me:8647: checking for strftime in -lintl" >&5
8648 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
8649 if test "${ac_cv_lib_intl_strftime+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 ac_check_lib_save_LIBS=$LIBS
8654 cat >conftest.$ac_ext <<_ACEOF
8655 #line 8655 "configure"
8656 #include "confdefs.h"
8658 /* Override any gcc2 internal prototype to avoid an error. */
8662 /* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:8674: \"$ac_link\"") >&5
8675 (eval $ac_link) 2>&5
8677 echo "$as_me:8677: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -s conftest$ac_exeext'
8680 { (eval echo "$as_me:8680: \"$ac_try\"") >&5
8683 echo "$as_me:8683: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 ac_cv_lib_intl_strftime=yes
8687 echo "$as_me: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8689 ac_cv_lib_intl_strftime=no
8691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8694 echo "$as_me:8694: result: $ac_cv_lib_intl_strftime" >&5
8695 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
8696 if test $ac_cv_lib_intl_strftime = yes; then
8697 cat >>confdefs.h <<\EOF
8698 #define HAVE_STRFTIME 1
8707 for ac_func in mkdir putgrent putpwent putspent rename rmdir
8709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8710 echo "$as_me:8710: checking for $ac_func" >&5
8711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8712 if eval "test \"\${$as_ac_var+set}\" = set"; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8716 #line 8716 "configure"
8717 #include "confdefs.h"
8718 /* System header to define __stub macros and hopefully few prototypes,
8719 which can conflict with char $ac_func (); below. */
8721 /* Override any gcc2 internal prototype to avoid an error. */
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8733 /* The GNU C library defines this for functions which it implements
8734 to always fail with ENOSYS. Some functions are actually named
8735 something starting with __ and the normal name is an alias. */
8736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (eval echo "$as_me:8747: \"$ac_link\"") >&5
8748 (eval $ac_link) 2>&5
8750 echo "$as_me:8750: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -s conftest$ac_exeext'
8753 { (eval echo "$as_me:8753: \"$ac_try\"") >&5
8756 echo "$as_me:8756: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 eval "$as_ac_var=yes"
8760 echo "$as_me: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8762 eval "$as_ac_var=no"
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8766 echo "$as_me:8766: result: `eval echo '${'$as_ac_var'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8768 if test `eval echo '${'$as_ac_var'}'` = yes; then
8769 cat >>confdefs.h <<EOF
8770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8774 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8778 for ac_func in sgetgrent sgetpwent sgetspent
8780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8781 echo "$as_me:8781: checking for $ac_func" >&5
8782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8783 if eval "test \"\${$as_ac_var+set}\" = set"; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 cat >conftest.$ac_ext <<_ACEOF
8787 #line 8787 "configure"
8788 #include "confdefs.h"
8789 /* System header to define __stub macros and hopefully few prototypes,
8790 which can conflict with char $ac_func (); below. */
8792 /* Override any gcc2 internal prototype to avoid an error. */
8796 /* We use char because int might match the return type of a gcc2
8797 builtin and then its argument prototype would still apply. */
8804 /* The GNU C library defines this for functions which it implements
8805 to always fail with ENOSYS. Some functions are actually named
8806 something starting with __ and the normal name is an alias. */
8807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:8818: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>&5
8821 echo "$as_me:8821: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -s conftest$ac_exeext'
8824 { (eval echo "$as_me:8824: \"$ac_try\"") >&5
8827 echo "$as_me:8827: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 eval "$as_ac_var=yes"
8831 echo "$as_me: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 eval "$as_ac_var=no"
8835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8837 echo "$as_me:8837: result: `eval echo '${'$as_ac_var'}'`" >&5
8838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8839 if test `eval echo '${'$as_ac_var'}'` = yes; then
8840 cat >>confdefs.h <<EOF
8841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8845 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8849 for ac_func in snprintf strcasecmp strdup strerror strstr
8851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8852 echo "$as_me:8852: checking for $ac_func" >&5
8853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_var+set}\" = set"; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line 8858 "configure"
8859 #include "confdefs.h"
8860 /* System header to define __stub macros and hopefully few prototypes,
8861 which can conflict with char $ac_func (); below. */
8863 /* Override any gcc2 internal prototype to avoid an error. */
8867 /* We use char because int might match the return type of a gcc2
8868 builtin and then its argument prototype would still apply. */
8875 /* The GNU C library defines this for functions which it implements
8876 to always fail with ENOSYS. Some functions are actually named
8877 something starting with __ and the normal name is an alias. */
8878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8888 rm -f conftest.$ac_objext conftest$ac_exeext
8889 if { (eval echo "$as_me:8889: \"$ac_link\"") >&5
8890 (eval $ac_link) 2>&5
8892 echo "$as_me:8892: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try='test -s conftest$ac_exeext'
8895 { (eval echo "$as_me:8895: \"$ac_try\"") >&5
8898 echo "$as_me:8898: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 eval "$as_ac_var=yes"
8902 echo "$as_me: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8904 eval "$as_ac_var=no"
8906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8908 echo "$as_me:8908: result: `eval echo '${'$as_ac_var'}'`" >&5
8909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8910 if test `eval echo '${'$as_ac_var'}'` = yes; then
8911 cat >>confdefs.h <<EOF
8912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8916 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8920 echo "$as_me:8920: checking for setpgrp" >&5
8921 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
8922 if test "${ac_cv_func_setpgrp+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 cat >conftest.$ac_ext <<_ACEOF
8926 #line 8926 "configure"
8927 #include "confdefs.h"
8928 /* System header to define __stub macros and hopefully few prototypes,
8929 which can conflict with char setpgrp (); below. */
8931 /* Override any gcc2 internal prototype to avoid an error. */
8935 /* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8943 /* The GNU C library defines this for functions which it implements
8944 to always fail with ENOSYS. Some functions are actually named
8945 something starting with __ and the normal name is an alias. */
8946 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:8957: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>&5
8960 echo "$as_me:8960: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -s conftest$ac_exeext'
8963 { (eval echo "$as_me:8963: \"$ac_try\"") >&5
8966 echo "$as_me:8966: \$? = $ac_status" >&5
8967 (exit $ac_status); }; }; then
8968 ac_cv_func_setpgrp=yes
8970 echo "$as_me: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 ac_cv_func_setpgrp=no
8974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8976 echo "$as_me:8976: result: $ac_cv_func_setpgrp" >&5
8977 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
8979 echo "$as_me:8979: checking whether setpgrp takes no argument" >&5
8980 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
8981 if test "${ac_cv_func_setpgrp_void+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 if test "$cross_compiling" = yes; then
8985 { { echo "$as_me:8985: error: cannot check setpgrp if cross compiling" >&5
8986 echo "$as_me: error: cannot check setpgrp if cross compiling" >&2;}
8987 { (exit 1); exit 1; }; }
8989 cat >conftest.$ac_ext <<_ACEOF
8990 #line 8990 "configure"
8991 #include "confdefs.h"
8993 # include <unistd.h>
8999 /* If this system has a BSD-style setpgrp, which takes arguments, exit
9001 exit (setpgrp (1,1) == -1);
9006 rm -f conftest$ac_exeext
9007 if { (eval echo "$as_me:9007: \"$ac_link\"") >&5
9008 (eval $ac_link) 2>&5
9010 echo "$as_me:9010: \$? = $ac_status" >&5
9011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9012 { (eval echo "$as_me:9012: \"$ac_try\"") >&5
9015 echo "$as_me:9015: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_func_setpgrp_void=no
9019 echo "$as_me: program exited with status $ac_status" >&5
9020 echo "$as_me: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 ac_cv_func_setpgrp_void=yes
9024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9027 echo "$as_me:9027: result: $ac_cv_func_setpgrp_void" >&5
9028 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
9029 if test $ac_cv_func_setpgrp_void = yes; then
9031 cat >>confdefs.h <<\EOF
9032 #define SETPGRP_VOID 1
9037 if test "$ac_cv_header_shadow_h" = "yes"; then
9038 echo "$as_me:9038: checking for working shadow group support" >&5
9039 echo $ECHO_N "checking for working shadow group support... $ECHO_C" >&6
9040 if test "${ac_cv_libc_shadowgrp+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 if test "$cross_compiling" = yes; then
9044 ac_cv_libc_shadowgrp=no
9046 cat >conftest.$ac_ext <<_ACEOF
9047 #line 9047 "configure"
9048 #include "confdefs.h"
9053 struct sgrp *sg = sgetsgent("test:x::");
9054 /* NYS libc on Red Hat 3.0.3 has broken shadow group support */
9055 return !sg || !sg->sg_adm || !sg->sg_mem;
9059 rm -f conftest$ac_exeext
9060 if { (eval echo "$as_me:9060: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9063 echo "$as_me:9063: \$? = $ac_status" >&5
9064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9065 { (eval echo "$as_me:9065: \"$ac_try\"") >&5
9068 echo "$as_me:9068: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_cv_libc_shadowgrp=yes
9072 echo "$as_me: program exited with status $ac_status" >&5
9073 echo "$as_me: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9075 ac_cv_libc_shadowgrp=no
9077 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9080 echo "$as_me:9080: result: $ac_cv_libc_shadowgrp" >&5
9081 echo "${ECHO_T}$ac_cv_libc_shadowgrp" >&6
9083 if test "$ac_cv_libc_shadowgrp" = "yes"; then
9084 cat >>confdefs.h <<\EOF
9085 #define HAVE_SHADOWGRP 1
9091 echo "$as_me:9091: checking location of shared mail directory" >&5
9092 echo $ECHO_N "checking location of shared mail directory... $ECHO_C" >&6
9093 for maildir in /var/spool/mail /var/mail /usr/spool/mail /usr/mail NONE; do
9094 if test "$maildir" = "NONE"; then
9095 echo "$as_me:9095: result: None" >&5
9096 echo "${ECHO_T}None" >&6
9097 elif test -d $maildir; then
9098 cat >>confdefs.h <<EOF
9099 #define MAIL_SPOOL_DIR "$maildir"
9102 echo "$as_me:9102: result: $maildir" >&5
9103 echo "${ECHO_T}$maildir" >&6
9108 echo "$as_me:9108: checking location of user mail file" >&5
9109 echo $ECHO_N "checking location of user mail file... $ECHO_C" >&6
9110 for mailfile in Mailbox mailbox Mail mail .mail NONE; do
9111 if test "$mailfile" = "NONE"; then
9112 echo "$as_me:9112: result: None" >&5
9113 echo "${ECHO_T}None" >&6
9114 elif test -f $HOME/$mailfile; then
9115 cat >>confdefs.h <<EOF
9116 #define MAIL_SPOOL_FILE "$mailfile"
9119 echo "$as_me:9119: result: $mailfile" >&5
9120 echo "${ECHO_T}$mailfile" >&6
9125 echo "$as_me:9125: checking location of utmp" >&5
9126 echo $ECHO_N "checking location of utmp... $ECHO_C" >&6
9127 for utmpdir in /var/run /var/adm /usr/adm /etc NONE; do
9128 if test "$utmpdir" = "NONE"; then
9129 { echo "$as_me:9129: WARNING: utmp file not found" >&5
9130 echo "$as_me: WARNING: utmp file not found" >&2;}
9131 elif test -f $utmpdir/utmp; then
9132 cat >>confdefs.h <<EOF
9133 #define _UTMP_FILE "$utmpdir/utmp"
9136 echo "$as_me:9136: result: $utmpdir" >&5
9137 echo "${ECHO_T}$utmpdir" >&6
9142 echo "$as_me:9142: checking location of faillog/lastlog/wtmp" >&5
9143 echo $ECHO_N "checking location of faillog/lastlog/wtmp... $ECHO_C" >&6
9144 for logdir in /var/log /var/adm /usr/adm /etc; do
9145 if test -d $logdir; then
9146 cat >>confdefs.h <<EOF
9147 #define _WTMP_FILE "$logdir/wtmp"
9150 cat >>confdefs.h <<EOF
9151 #define LASTLOG_FILE "$logdir/lastlog"
9154 cat >>confdefs.h <<EOF
9155 #define FAILLOG_FILE "$logdir/faillog"
9158 echo "$as_me:9158: result: $logdir" >&5
9159 echo "${ECHO_T}$logdir" >&6
9164 echo "$as_me:9164: checking location of the passwd program" >&5
9165 echo $ECHO_N "checking location of the passwd program... $ECHO_C" >&6
9166 if test -f /usr/bin/passwd; then
9171 cat >>confdefs.h <<EOF
9172 #define PASSWD_PROGRAM "$passwd_dir/passwd"
9175 echo "$as_me:9175: result: $passwd_dir" >&5
9176 echo "${ECHO_T}$passwd_dir" >&6
9178 cat >>confdefs.h <<\EOF
9182 cat >>confdefs.h <<\EOF
9186 cat >>confdefs.h <<\EOF
9187 #define USE_SYSLOG 1
9190 cat >>confdefs.h <<\EOF
9194 cat >>confdefs.h <<\EOF
9198 cat >>confdefs.h <<\EOF
9199 #define getpass libshadow_getpass
9202 # Check whether --enable-desrpc or --disable-desrpc was given.
9203 if test "${enable_desrpc+set}" = set; then
9204 enableval="$enable_desrpc"
9207 # Check whether --enable-shadowgrp or --disable-shadowgrp was given.
9208 if test "${enable_shadowgrp+set}" = set; then
9209 enableval="$enable_shadowgrp"
9213 # Check whether --with-libcrack or --without-libcrack was given.
9214 if test "${with_libcrack+set}" = set; then
9215 withval="$with_libcrack"
9219 # Check whether --with-libcrypt or --without-libcrypt was given.
9220 if test "${with_libcrypt+set}" = set; then
9221 withval="$with_libcrypt"
9225 # Check whether --with-libopie or --without-libopie was given.
9226 if test "${with_libopie+set}" = set; then
9227 withval="$with_libopie"
9231 # Check whether --with-libpam or --without-libpam was given.
9232 if test "${with_libpam+set}" = set; then
9233 withval="$with_libpam"
9237 # Check whether --with-libskey or --without-libskey was given.
9238 if test "${with_libskey+set}" = set; then
9239 withval="$with_libskey"
9243 # Check whether --with-libtcfs or --without-libtcfs was given.
9244 if test "${with_libtcfs+set}" = set; then
9245 withval="$with_libtcfs"
9249 echo "$as_me:9249: checking for inet_ntoa" >&5
9250 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
9251 if test "${ac_cv_func_inet_ntoa+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 cat >conftest.$ac_ext <<_ACEOF
9255 #line 9255 "configure"
9256 #include "confdefs.h"
9257 /* System header to define __stub macros and hopefully few prototypes,
9258 which can conflict with char inet_ntoa (); below. */
9260 /* Override any gcc2 internal prototype to avoid an error. */
9264 /* We use char because int might match the return type of a gcc2
9265 builtin and then its argument prototype would still apply. */
9272 /* The GNU C library defines this for functions which it implements
9273 to always fail with ENOSYS. Some functions are actually named
9274 something starting with __ and the normal name is an alias. */
9275 #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (eval echo "$as_me:9286: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>&5
9289 echo "$as_me:9289: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:9292: \"$ac_try\"") >&5
9295 echo "$as_me:9295: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 ac_cv_func_inet_ntoa=yes
9299 echo "$as_me: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9301 ac_cv_func_inet_ntoa=no
9303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9305 echo "$as_me:9305: result: $ac_cv_func_inet_ntoa" >&5
9306 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
9307 if test $ac_cv_func_inet_ntoa = yes; then
9311 echo "$as_me:9311: checking for inet_ntoa in -linet" >&5
9312 echo $ECHO_N "checking for inet_ntoa in -linet... $ECHO_C" >&6
9313 if test "${ac_cv_lib_inet_inet_ntoa+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 ac_check_lib_save_LIBS=$LIBS
9318 cat >conftest.$ac_ext <<_ACEOF
9319 #line 9319 "configure"
9320 #include "confdefs.h"
9322 /* Override any gcc2 internal prototype to avoid an error. */
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:9338: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>&5
9341 echo "$as_me:9341: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -s conftest$ac_exeext'
9344 { (eval echo "$as_me:9344: \"$ac_try\"") >&5
9347 echo "$as_me:9347: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 ac_cv_lib_inet_inet_ntoa=yes
9351 echo "$as_me: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9353 ac_cv_lib_inet_inet_ntoa=no
9355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9356 LIBS=$ac_check_lib_save_LIBS
9358 echo "$as_me:9358: result: $ac_cv_lib_inet_inet_ntoa" >&5
9359 echo "${ECHO_T}$ac_cv_lib_inet_inet_ntoa" >&6
9360 if test $ac_cv_lib_inet_inet_ntoa = yes; then
9361 cat >>confdefs.h <<EOF
9362 #define HAVE_LIBINET 1
9371 echo "$as_me:9371: checking for socket" >&5
9372 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9373 if test "${ac_cv_func_socket+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 cat >conftest.$ac_ext <<_ACEOF
9377 #line 9377 "configure"
9378 #include "confdefs.h"
9379 /* System header to define __stub macros and hopefully few prototypes,
9380 which can conflict with char socket (); below. */
9382 /* Override any gcc2 internal prototype to avoid an error. */
9386 /* We use char because int might match the return type of a gcc2
9387 builtin and then its argument prototype would still apply. */
9394 /* The GNU C library defines this for functions which it implements
9395 to always fail with ENOSYS. Some functions are actually named
9396 something starting with __ and the normal name is an alias. */
9397 #if defined (__stub_socket) || defined (__stub___socket)
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:9408: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9411 echo "$as_me:9411: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -s conftest$ac_exeext'
9414 { (eval echo "$as_me:9414: \"$ac_try\"") >&5
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 ac_cv_func_socket=yes
9421 echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 ac_cv_func_socket=no
9425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427 echo "$as_me:9427: result: $ac_cv_func_socket" >&5
9428 echo "${ECHO_T}$ac_cv_func_socket" >&6
9429 if test $ac_cv_func_socket = yes; then
9433 echo "$as_me:9433: checking for socket in -lsocket" >&5
9434 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9435 if test "${ac_cv_lib_socket_socket+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 ac_check_lib_save_LIBS=$LIBS
9439 LIBS="-lsocket $LIBS"
9440 cat >conftest.$ac_ext <<_ACEOF
9441 #line 9441 "configure"
9442 #include "confdefs.h"
9444 /* Override any gcc2 internal prototype to avoid an error. */
9448 /* We use char because int might match the return type of a gcc2
9449 builtin and then its argument prototype would still apply. */
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:9460: \"$ac_link\"") >&5
9461 (eval $ac_link) 2>&5
9463 echo "$as_me:9463: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -s conftest$ac_exeext'
9466 { (eval echo "$as_me:9466: \"$ac_try\"") >&5
9469 echo "$as_me:9469: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_cv_lib_socket_socket=yes
9473 echo "$as_me: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9475 ac_cv_lib_socket_socket=no
9477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9478 LIBS=$ac_check_lib_save_LIBS
9480 echo "$as_me:9480: result: $ac_cv_lib_socket_socket" >&5
9481 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9482 if test $ac_cv_lib_socket_socket = yes; then
9483 cat >>confdefs.h <<EOF
9484 #define HAVE_LIBSOCKET 1
9487 LIBS="-lsocket $LIBS"
9493 echo "$as_me:9493: checking for gethostbyname" >&5
9494 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9495 if test "${ac_cv_func_gethostbyname+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9499 #line 9499 "configure"
9500 #include "confdefs.h"
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char gethostbyname (); below. */
9504 /* Override any gcc2 internal prototype to avoid an error. */
9508 /* We use char because int might match the return type of a gcc2
9509 builtin and then its argument prototype would still apply. */
9510 char gethostbyname ();
9516 /* The GNU C library defines this for functions which it implements
9517 to always fail with ENOSYS. Some functions are actually named
9518 something starting with __ and the normal name is an alias. */
9519 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (eval echo "$as_me:9530: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9533 echo "$as_me:9533: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:9536: \"$ac_try\"") >&5
9539 echo "$as_me:9539: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_func_gethostbyname=yes
9543 echo "$as_me: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 ac_cv_func_gethostbyname=no
9547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9549 echo "$as_me:9549: result: $ac_cv_func_gethostbyname" >&5
9550 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9551 if test $ac_cv_func_gethostbyname = yes; then
9555 echo "$as_me:9555: checking for gethostbyname in -lnsl" >&5
9556 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9557 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 ac_check_lib_save_LIBS=$LIBS
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line 9563 "configure"
9564 #include "confdefs.h"
9566 /* Override any gcc2 internal prototype to avoid an error. */
9570 /* We use char because int might match the return type of a gcc2
9571 builtin and then its argument prototype would still apply. */
9572 char gethostbyname ();
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (eval echo "$as_me:9582: \"$ac_link\"") >&5
9583 (eval $ac_link) 2>&5
9585 echo "$as_me:9585: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (eval echo "$as_me:9588: \"$ac_try\"") >&5
9591 echo "$as_me:9591: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_lib_nsl_gethostbyname=yes
9595 echo "$as_me: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9597 ac_cv_lib_nsl_gethostbyname=no
9599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9600 LIBS=$ac_check_lib_save_LIBS
9602 echo "$as_me:9602: result: $ac_cv_lib_nsl_gethostbyname" >&5
9603 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9604 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9605 cat >>confdefs.h <<EOF
9606 #define HAVE_LIBNSL 1
9615 if test "$enable_desrpc" != "no" -a "$ac_cv_header_rpc_key_prot_h" = "yes" ; then
9616 echo "$as_me:9616: checking for getsecretkey" >&5
9617 echo $ECHO_N "checking for getsecretkey... $ECHO_C" >&6
9618 if test "${ac_cv_func_getsecretkey+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9622 #line 9622 "configure"
9623 #include "confdefs.h"
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char getsecretkey (); below. */
9627 /* Override any gcc2 internal prototype to avoid an error. */
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9633 char getsecretkey ();
9639 /* The GNU C library defines this for functions which it implements
9640 to always fail with ENOSYS. Some functions are actually named
9641 something starting with __ and the normal name is an alias. */
9642 #if defined (__stub_getsecretkey) || defined (__stub___getsecretkey)
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (eval echo "$as_me:9653: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>&5
9656 echo "$as_me:9656: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (eval echo "$as_me:9659: \"$ac_try\"") >&5
9662 echo "$as_me:9662: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_cv_func_getsecretkey=yes
9666 echo "$as_me: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9668 ac_cv_func_getsecretkey=no
9670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9672 echo "$as_me:9672: result: $ac_cv_func_getsecretkey" >&5
9673 echo "${ECHO_T}$ac_cv_func_getsecretkey" >&6
9674 if test $ac_cv_func_getsecretkey = yes; then
9675 cat >>confdefs.h <<\EOF
9680 echo "$as_me:9680: checking for getsecretkey in -lrpcsvc" >&5
9681 echo $ECHO_N "checking for getsecretkey in -lrpcsvc... $ECHO_C" >&6
9682 if test "${ac_cv_lib_rpcsvc_getsecretkey+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 ac_check_lib_save_LIBS=$LIBS
9686 LIBS="-lrpcsvc $LIBS"
9687 cat >conftest.$ac_ext <<_ACEOF
9688 #line 9688 "configure"
9689 #include "confdefs.h"
9691 /* Override any gcc2 internal prototype to avoid an error. */
9695 /* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9697 char getsecretkey ();
9706 rm -f conftest.$ac_objext conftest$ac_exeext
9707 if { (eval echo "$as_me:9707: \"$ac_link\"") >&5
9708 (eval $ac_link) 2>&5
9710 echo "$as_me:9710: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (eval echo "$as_me:9713: \"$ac_try\"") >&5
9716 echo "$as_me:9716: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_rpcsvc_getsecretkey=yes
9720 echo "$as_me: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 ac_cv_lib_rpcsvc_getsecretkey=no
9724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9727 echo "$as_me:9727: result: $ac_cv_lib_rpcsvc_getsecretkey" >&5
9728 echo "${ECHO_T}$ac_cv_lib_rpcsvc_getsecretkey" >&6
9729 if test $ac_cv_lib_rpcsvc_getsecretkey = yes; then
9730 cat >>confdefs.h <<\EOF
9740 if test "$enable_shadowgrp" != "no"; then
9741 cat >>confdefs.h <<\EOF
9747 if test "$with_libcrypt" != "no"; then
9748 echo "$as_me:9748: checking for crypt in -lcrypt" >&5
9749 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9750 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 ac_check_lib_save_LIBS=$LIBS
9754 LIBS="-lcrypt $LIBS"
9755 cat >conftest.$ac_ext <<_ACEOF
9756 #line 9756 "configure"
9757 #include "confdefs.h"
9759 /* Override any gcc2 internal prototype to avoid an error. */
9763 /* We use char because int might match the return type of a gcc2
9764 builtin and then its argument prototype would still apply. */
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (eval echo "$as_me:9775: \"$ac_link\"") >&5
9776 (eval $ac_link) 2>&5
9778 echo "$as_me:9778: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (eval echo "$as_me:9781: \"$ac_try\"") >&5
9784 echo "$as_me:9784: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
9786 ac_cv_lib_crypt_crypt=yes
9788 echo "$as_me: failed program was:" >&5
9789 cat conftest.$ac_ext >&5
9790 ac_cv_lib_crypt_crypt=no
9792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9793 LIBS=$ac_check_lib_save_LIBS
9795 echo "$as_me:9795: result: $ac_cv_lib_crypt_crypt" >&5
9796 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9797 if test $ac_cv_lib_crypt_crypt = yes; then
9798 cat >>confdefs.h <<\EOF
9799 #define HAVE_LIBCRYPT 1
9806 if test "$with_libcrack" != "no"; then
9807 echo "checking cracklib flavour, don't be surprised by the results"
9808 echo "$as_me:9808: checking for FascistCheck in -lcrack" >&5
9809 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
9810 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-lcrack $LIBS"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line 9816 "configure"
9817 #include "confdefs.h"
9819 /* Override any gcc2 internal prototype to avoid an error. */
9823 /* We use char because int might match the return type of a gcc2
9824 builtin and then its argument prototype would still apply. */
9825 char FascistCheck ();
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:9835: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>&5
9838 echo "$as_me:9838: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (eval echo "$as_me:9841: \"$ac_try\"") >&5
9844 echo "$as_me:9844: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_lib_crack_FascistCheck=yes
9848 echo "$as_me: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9850 ac_cv_lib_crack_FascistCheck=no
9852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9855 echo "$as_me:9855: result: $ac_cv_lib_crack_FascistCheck" >&5
9856 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
9857 if test $ac_cv_lib_crack_FascistCheck = yes; then
9858 cat >>confdefs.h <<\EOF
9859 #define HAVE_LIBCRACK 1
9864 echo "$as_me:9864: checking for FascistHistory in -lcrack" >&5
9865 echo $ECHO_N "checking for FascistHistory in -lcrack... $ECHO_C" >&6
9866 if test "${ac_cv_lib_crack_FascistHistory+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 ac_check_lib_save_LIBS=$LIBS
9870 LIBS="-lcrack $LIBS"
9871 cat >conftest.$ac_ext <<_ACEOF
9872 #line 9872 "configure"
9873 #include "confdefs.h"
9875 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881 char FascistHistory ();
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:9891: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>&5
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:9897: \"$ac_try\"") >&5
9900 echo "$as_me:9900: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_lib_crack_FascistHistory=yes
9904 echo "$as_me: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 ac_cv_lib_crack_FascistHistory=no
9908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9909 LIBS=$ac_check_lib_save_LIBS
9911 echo "$as_me:9911: result: $ac_cv_lib_crack_FascistHistory" >&5
9912 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistory" >&6
9913 if test $ac_cv_lib_crack_FascistHistory = yes; then
9914 cat >>confdefs.h <<\EOF
9915 #define HAVE_LIBCRACK_HIST 1
9920 echo "$as_me:9920: checking for FascistHistoryPw in -lcrack" >&5
9921 echo $ECHO_N "checking for FascistHistoryPw in -lcrack... $ECHO_C" >&6
9922 if test "${ac_cv_lib_crack_FascistHistoryPw+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-lcrack $LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928 #line 9928 "configure"
9929 #include "confdefs.h"
9931 /* Override any gcc2 internal prototype to avoid an error. */
9935 /* We use char because int might match the return type of a gcc2
9936 builtin and then its argument prototype would still apply. */
9937 char FascistHistoryPw ();
9941 FascistHistoryPw ();
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:9947: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9950 echo "$as_me:9950: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:9953: \"$ac_try\"") >&5
9956 echo "$as_me:9956: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 ac_cv_lib_crack_FascistHistoryPw=yes
9960 echo "$as_me: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9962 ac_cv_lib_crack_FascistHistoryPw=no
9964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_lib_save_LIBS
9967 echo "$as_me:9967: result: $ac_cv_lib_crack_FascistHistoryPw" >&5
9968 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistoryPw" >&6
9969 if test $ac_cv_lib_crack_FascistHistoryPw = yes; then
9970 cat >>confdefs.h <<\EOF
9971 #define HAVE_LIBCRACK_PW 1
9978 if test "$with_libskey" = "yes"; then
9979 echo "$as_me:9979: checking for MD5Init in -lmd" >&5
9980 echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
9981 if test "${ac_cv_lib_md_MD5Init+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 ac_check_lib_save_LIBS=$LIBS
9986 cat >conftest.$ac_ext <<_ACEOF
9987 #line 9987 "configure"
9988 #include "confdefs.h"
9990 /* Override any gcc2 internal prototype to avoid an error. */
9994 /* We use char because int might match the return type of a gcc2
9995 builtin and then its argument prototype would still apply. */
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:10006: \"$ac_link\"") >&5
10007 (eval $ac_link) 2>&5
10009 echo "$as_me:10009: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:10012: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:10015: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_lib_md_MD5Init=yes
10019 echo "$as_me: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 ac_cv_lib_md_MD5Init=no
10023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10026 echo "$as_me:10026: result: $ac_cv_lib_md_MD5Init" >&5
10027 echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
10028 if test $ac_cv_lib_md_MD5Init = yes; then
10032 echo "$as_me:10032: checking for skeychallenge in -lskey" >&5
10033 echo $ECHO_N "checking for skeychallenge in -lskey... $ECHO_C" >&6
10034 if test "${ac_cv_lib_skey_skeychallenge+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 ac_check_lib_save_LIBS=$LIBS
10038 LIBS="-lskey $LIBMD $LIBCRYPT $LIBS"
10039 cat >conftest.$ac_ext <<_ACEOF
10040 #line 10040 "configure"
10041 #include "confdefs.h"
10043 /* Override any gcc2 internal prototype to avoid an error. */
10047 /* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10049 char skeychallenge ();
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (eval echo "$as_me:10059: \"$ac_link\"") >&5
10060 (eval $ac_link) 2>&5
10062 echo "$as_me:10062: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (eval echo "$as_me:10065: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10068 echo "$as_me:10068: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_lib_skey_skeychallenge=yes
10072 echo "$as_me: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10074 ac_cv_lib_skey_skeychallenge=no
10076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 echo "$as_me:10079: result: $ac_cv_lib_skey_skeychallenge" >&5
10080 echo "${ECHO_T}$ac_cv_lib_skey_skeychallenge" >&6
10081 if test $ac_cv_lib_skey_skeychallenge = yes; then
10082 cat >>confdefs.h <<\EOF
10088 elif test "$with_libopie" = "yes"; then
10089 echo "$as_me:10089: checking for opiechallenge in -lopie" >&5
10090 echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6
10091 if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 ac_check_lib_save_LIBS=$LIBS
10095 LIBS="-lopie $LIBCRYPT $LIBS"
10096 cat >conftest.$ac_ext <<_ACEOF
10097 #line 10097 "configure"
10098 #include "confdefs.h"
10100 /* Override any gcc2 internal prototype to avoid an error. */
10104 /* We use char because int might match the return type of a gcc2
10105 builtin and then its argument prototype would still apply. */
10106 char opiechallenge ();
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (eval echo "$as_me:10116: \"$ac_link\"") >&5
10117 (eval $ac_link) 2>&5
10119 echo "$as_me:10119: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (eval echo "$as_me:10122: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:10125: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_lib_opie_opiechallenge=yes
10129 echo "$as_me: failed program was:" >&5
10130 cat conftest.$ac_ext >&5
10131 ac_cv_lib_opie_opiechallenge=no
10133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10136 echo "$as_me:10136: result: $ac_cv_lib_opie_opiechallenge" >&5
10137 echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6
10138 if test $ac_cv_lib_opie_opiechallenge = yes; then
10139 cat >>confdefs.h <<\EOF
10147 if test "$with_libtcfs" = "yes"; then
10148 echo "$as_me:10148: checking for tcfs_encrypt_key in -ltcfs" >&5
10149 echo $ECHO_N "checking for tcfs_encrypt_key in -ltcfs... $ECHO_C" >&6
10150 if test "${ac_cv_lib_tcfs_tcfs_encrypt_key+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 ac_check_lib_save_LIBS=$LIBS
10154 LIBS="-ltcfs -lgdbm $LIBS"
10155 cat >conftest.$ac_ext <<_ACEOF
10156 #line 10156 "configure"
10157 #include "confdefs.h"
10159 /* Override any gcc2 internal prototype to avoid an error. */
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10165 char tcfs_encrypt_key ();
10169 tcfs_encrypt_key ();
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (eval echo "$as_me:10175: \"$ac_link\"") >&5
10176 (eval $ac_link) 2>&5
10178 echo "$as_me:10178: \$? = $ac_status" >&5
10179 (exit $ac_status); } &&
10180 { ac_try='test -s conftest$ac_exeext'
10181 { (eval echo "$as_me:10181: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:10184: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_lib_tcfs_tcfs_encrypt_key=yes
10188 echo "$as_me: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 ac_cv_lib_tcfs_tcfs_encrypt_key=no
10192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10195 echo "$as_me:10195: result: $ac_cv_lib_tcfs_tcfs_encrypt_key" >&5
10196 echo "${ECHO_T}$ac_cv_lib_tcfs_tcfs_encrypt_key" >&6
10197 if test $ac_cv_lib_tcfs_tcfs_encrypt_key = yes; then
10198 cat >>confdefs.h <<\EOF
10199 #define HAVE_TCFS 1
10201 cat >>confdefs.h <<\EOF
10202 #define TCFS_GDBM_SUPPORT 1
10204 LIBTCFS="-ltcfs -lgdbm"
10209 if test "$with_libpam" = "yes"; then
10210 echo "$as_me:10210: checking for pam_start in -lpam" >&5
10211 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
10212 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 ac_check_lib_save_LIBS=$LIBS
10217 cat >conftest.$ac_ext <<_ACEOF
10218 #line 10218 "configure"
10219 #include "confdefs.h"
10221 /* Override any gcc2 internal prototype to avoid an error. */
10225 /* We use char because int might match the return type of a gcc2
10226 builtin and then its argument prototype would still apply. */
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (eval echo "$as_me:10237: \"$ac_link\"") >&5
10238 (eval $ac_link) 2>&5
10240 echo "$as_me:10240: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -s conftest$ac_exeext'
10243 { (eval echo "$as_me:10243: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:10246: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 ac_cv_lib_pam_pam_start=yes
10250 echo "$as_me: failed program was:" >&5
10251 cat conftest.$ac_ext >&5
10252 ac_cv_lib_pam_pam_start=no
10254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10257 echo "$as_me:10257: result: $ac_cv_lib_pam_pam_start" >&5
10258 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
10259 if test $ac_cv_lib_pam_pam_start = yes; then
10260 cat >>confdefs.h <<\EOF
10265 echo "$as_me:10265: checking for main in -lpam_misc" >&5
10266 echo $ECHO_N "checking for main in -lpam_misc... $ECHO_C" >&6
10267 if test "${ac_cv_lib_pam_misc_main+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-lpam_misc { { echo "$as_me:10271: error: libpam_misc is missing" >&5
10272 echo "$as_me: error: libpam_misc is missing" >&2;}
10273 { (exit 1); exit 1; }; }
10275 cat >conftest.$ac_ext <<_ACEOF
10276 #line 10276 "configure"
10277 #include "confdefs.h"
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:10288: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>&5
10291 echo "$as_me:10291: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (eval echo "$as_me:10294: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:10297: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_lib_pam_misc_main=yes
10301 echo "$as_me: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10303 ac_cv_lib_pam_misc_main=no
10305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10306 LIBS=$ac_check_lib_save_LIBS
10308 echo "$as_me:10308: result: $ac_cv_lib_pam_misc_main" >&5
10309 echo "${ECHO_T}$ac_cv_lib_pam_misc_main" >&6
10310 if test $ac_cv_lib_pam_misc_main = yes; then
10311 LIBPAM="$LIBPAM -lpam_misc"
10314 echo "$as_me:10314: checking use login access checking if PAM not used" >&5
10315 echo $ECHO_N "checking use login access checking if PAM not used... $ECHO_C" >&6
10316 cat >>confdefs.h <<\EOF
10317 #define LOGIN_ACCESS 1
10320 echo "$as_me:10320: result: yes" >&5
10321 echo "${ECHO_T}yes" >&6
10325 echo "$as_me:10325: checking use login and su access checking if PAM not used" >&5
10326 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
10327 echo "$as_me:10327: result: no" >&5
10328 echo "${ECHO_T}no" >&6
10330 echo "$as_me:10330: checking use login and su access checking if PAM not used" >&5
10331 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
10332 cat >>confdefs.h <<\EOF
10333 #define LOGIN_ACCESS 1
10336 cat >>confdefs.h <<\EOF
10337 #define SU_ACCESS 1
10340 echo "$as_me:10340: result: yes" >&5
10341 echo "${ECHO_T}yes" >&6
10344 ALL_LINGUAS="cs el fr ja ko pl sv uk"
10345 if test -n "$ac_tool_prefix"; then
10346 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10348 echo "$as_me:10348: checking for $ac_word" >&5
10349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10350 if test "${ac_cv_prog_RANLIB+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 if test -n "$RANLIB"; then
10354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10356 ac_save_IFS=$IFS; IFS=$ac_path_separator
10358 for ac_dir in $ac_dummy; do
10360 test -z "$ac_dir" && ac_dir=.
10361 $as_executable_p "$ac_dir/$ac_word" || continue
10362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10363 echo "$as_me:10363: found $ac_dir/$ac_word" >&5
10369 RANLIB=$ac_cv_prog_RANLIB
10370 if test -n "$RANLIB"; then
10371 echo "$as_me:10371: result: $RANLIB" >&5
10372 echo "${ECHO_T}$RANLIB" >&6
10374 echo "$as_me:10374: result: no" >&5
10375 echo "${ECHO_T}no" >&6
10379 if test -z "$ac_cv_prog_RANLIB"; then
10380 ac_ct_RANLIB=$RANLIB
10381 # Extract the first word of "ranlib", so it can be a program name with args.
10382 set dummy ranlib; ac_word=$2
10383 echo "$as_me:10383: checking for $ac_word" >&5
10384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 if test -n "$ac_ct_RANLIB"; then
10389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10391 ac_save_IFS=$IFS; IFS=$ac_path_separator
10393 for ac_dir in $ac_dummy; do
10395 test -z "$ac_dir" && ac_dir=.
10396 $as_executable_p "$ac_dir/$ac_word" || continue
10397 ac_cv_prog_ac_ct_RANLIB="ranlib"
10398 echo "$as_me:10398: found $ac_dir/$ac_word" >&5
10402 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10406 if test -n "$ac_ct_RANLIB"; then
10407 echo "$as_me:10407: result: $ac_ct_RANLIB" >&5
10408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10410 echo "$as_me:10410: result: no" >&5
10411 echo "${ECHO_T}no" >&6
10414 RANLIB=$ac_ct_RANLIB
10416 RANLIB="$ac_cv_prog_RANLIB"
10419 echo "$as_me:10419: checking for inline" >&5
10420 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10421 if test "${ac_cv_c_inline+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 for ac_kw in inline __inline__ __inline; do
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line 10427 "configure"
10428 #include "confdefs.h"
10429 #ifndef __cplusplus
10430 static $ac_kw int static_foo () {return 0; }
10431 $ac_kw int foo () {return 0; }
10435 rm -f conftest.$ac_objext
10436 if { (eval echo "$as_me:10436: \"$ac_compile\"") >&5
10437 (eval $ac_compile) 2>&5
10439 echo "$as_me:10439: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
10441 { ac_try='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:10442: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10445 echo "$as_me:10445: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 ac_cv_c_inline=$ac_kw; break
10449 echo "$as_me: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10452 rm -f conftest.$ac_objext conftest.$ac_ext
10456 echo "$as_me:10456: result: $ac_cv_c_inline" >&5
10457 echo "${ECHO_T}$ac_cv_c_inline" >&6
10458 case $ac_cv_c_inline in
10461 cat >>confdefs.h <<\EOF
10465 *) cat >>confdefs.h <<EOF
10466 #define inline $ac_cv_c_inline
10471 echo "$as_me:10471: checking for size_t" >&5
10472 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10473 if test "${ac_cv_type_size_t+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line 10477 "configure"
10478 #include "confdefs.h"
10479 $ac_includes_default
10485 if (sizeof (size_t))
10491 rm -f conftest.$ac_objext
10492 if { (eval echo "$as_me:10492: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>&5
10495 echo "$as_me:10495: \$? = $ac_status" >&5
10496 (exit $ac_status); } &&
10497 { ac_try='test -s conftest.$ac_objext'
10498 { (eval echo "$as_me:10498: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10501 echo "$as_me:10501: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_type_size_t=yes
10505 echo "$as_me: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10507 ac_cv_type_size_t=no
10509 rm -f conftest.$ac_objext conftest.$ac_ext
10511 echo "$as_me:10511: result: $ac_cv_type_size_t" >&5
10512 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10513 if test $ac_cv_type_size_t = yes; then
10517 cat >>confdefs.h <<EOF
10518 #define size_t unsigned
10523 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10524 # for constant arguments. Useless!
10525 echo "$as_me:10525: checking for working alloca.h" >&5
10526 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10527 if test "${ac_cv_working_alloca_h+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10531 #line 10531 "configure"
10532 #include "confdefs.h"
10533 #include <alloca.h>
10537 char *p = (char *) alloca (2 * sizeof (int));
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (eval echo "$as_me:10543: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>&5
10546 echo "$as_me:10546: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:10549: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:10552: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_working_alloca_h=yes
10556 echo "$as_me: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 ac_cv_working_alloca_h=no
10560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10562 echo "$as_me:10562: result: $ac_cv_working_alloca_h" >&5
10563 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10564 if test $ac_cv_working_alloca_h = yes; then
10566 cat >>confdefs.h <<\EOF
10567 #define HAVE_ALLOCA_H 1
10572 echo "$as_me:10572: checking for alloca" >&5
10573 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10574 if test "${ac_cv_func_alloca_works+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line 10578 "configure"
10579 #include "confdefs.h"
10581 # define alloca __builtin_alloca
10584 # include <malloc.h>
10585 # define alloca _alloca
10588 # include <alloca.h>
10593 # ifndef alloca /* predefined by HP cc +Olibcalls */
10604 char *p = (char *) alloca (1);
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (eval echo "$as_me:10610: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>&5
10613 echo "$as_me:10613: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:10616: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:10619: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_func_alloca_works=yes
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 ac_cv_func_alloca_works=no
10627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10629 echo "$as_me:10629: result: $ac_cv_func_alloca_works" >&5
10630 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10632 if test $ac_cv_func_alloca_works = yes; then
10634 cat >>confdefs.h <<\EOF
10635 #define HAVE_ALLOCA 1
10639 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10640 # that cause trouble. Some versions do not even contain alloca or
10641 # contain a buggy version. If you still want to use their alloca,
10642 # use ar to extract alloca.o from them instead of compiling alloca.c.
10644 ALLOCA=alloca.$ac_objext
10646 cat >>confdefs.h <<\EOF
10650 echo "$as_me:10650: checking whether \`alloca.c' needs Cray hooks" >&5
10651 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10652 if test "${ac_cv_os_cray+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 cat >conftest.$ac_ext <<_ACEOF
10656 #line 10656 "configure"
10657 #include "confdefs.h"
10658 #if defined(CRAY) && ! defined(CRAY2)
10665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10666 egrep "webecray" >/dev/null 2>&1; then
10674 echo "$as_me:10674: result: $ac_cv_os_cray" >&5
10675 echo "${ECHO_T}$ac_cv_os_cray" >&6
10676 if test $ac_cv_os_cray = yes; then
10677 for ac_func in _getb67 GETB67 getb67; do
10678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10679 echo "$as_me:10679: checking for $ac_func" >&5
10680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10681 if eval "test \"\${$as_ac_var+set}\" = set"; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 cat >conftest.$ac_ext <<_ACEOF
10685 #line 10685 "configure"
10686 #include "confdefs.h"
10687 /* System header to define __stub macros and hopefully few prototypes,
10688 which can conflict with char $ac_func (); below. */
10689 #include <assert.h>
10690 /* Override any gcc2 internal prototype to avoid an error. */
10694 /* We use char because int might match the return type of a gcc2
10695 builtin and then its argument prototype would still apply. */
10702 /* The GNU C library defines this for functions which it implements
10703 to always fail with ENOSYS. Some functions are actually named
10704 something starting with __ and the normal name is an alias. */
10705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (eval echo "$as_me:10716: \"$ac_link\"") >&5
10717 (eval $ac_link) 2>&5
10719 echo "$as_me:10719: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -s conftest$ac_exeext'
10722 { (eval echo "$as_me:10722: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10725 echo "$as_me:10725: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10727 eval "$as_ac_var=yes"
10729 echo "$as_me: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10731 eval "$as_ac_var=no"
10733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10735 echo "$as_me:10735: result: `eval echo '${'$as_ac_var'}'`" >&5
10736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10737 if test `eval echo '${'$as_ac_var'}'` = yes; then
10739 cat >>confdefs.h <<EOF
10740 #define CRAY_STACKSEG_END $ac_func
10749 echo "$as_me:10749: checking stack direction for C alloca" >&5
10750 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10751 if test "${ac_cv_c_stack_direction+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 if test "$cross_compiling" = yes; then
10755 ac_cv_c_stack_direction=0
10757 cat >conftest.$ac_ext <<_ACEOF
10758 #line 10758 "configure"
10759 #include "confdefs.h"
10761 find_stack_direction ()
10763 static char *addr = 0;
10768 return find_stack_direction ();
10771 return (&dummy > addr) ? 1 : -1;
10777 exit (find_stack_direction () < 0);
10780 rm -f conftest$ac_exeext
10781 if { (eval echo "$as_me:10781: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>&5
10784 echo "$as_me:10784: \$? = $ac_status" >&5
10785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10786 { (eval echo "$as_me:10786: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:10789: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_c_stack_direction=1
10793 echo "$as_me: program exited with status $ac_status" >&5
10794 echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 ac_cv_c_stack_direction=-1
10798 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10801 echo "$as_me:10801: result: $ac_cv_c_stack_direction" >&5
10802 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10804 cat >>confdefs.h <<EOF
10805 #define STACK_DIRECTION $ac_cv_c_stack_direction
10810 for ac_header in stdlib.h unistd.h
10812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10813 echo "$as_me:10813: checking for $ac_header" >&5
10814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10819 #line 10819 "configure"
10820 #include "confdefs.h"
10821 #include <$ac_header>
10823 if { (eval echo "$as_me:10823: \"$ac_cpp conftest.$ac_ext\"") >&5
10824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10826 egrep -v '^ *\+' conftest.er1 >conftest.err
10828 cat conftest.err >&5
10829 echo "$as_me:10829: \$? = $ac_status" >&5
10830 (exit $ac_status); } >/dev/null; then
10831 if test -s conftest.err; then
10832 ac_cpp_err=$ac_c_preproc_warn_flag
10839 if test -z "$ac_cpp_err"; then
10840 eval "$as_ac_Header=yes"
10842 echo "$as_me: failed program was:" >&5
10843 cat conftest.$ac_ext >&5
10844 eval "$as_ac_Header=no"
10846 rm -f conftest.err conftest.$ac_ext
10848 echo "$as_me:10848: result: `eval echo '${'$as_ac_Header'}'`" >&5
10849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851 cat >>confdefs.h <<EOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 for ac_func in getpagesize
10860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10861 echo "$as_me:10861: checking for $ac_func" >&5
10862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10863 if eval "test \"\${$as_ac_var+set}\" = set"; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 cat >conftest.$ac_ext <<_ACEOF
10867 #line 10867 "configure"
10868 #include "confdefs.h"
10869 /* System header to define __stub macros and hopefully few prototypes,
10870 which can conflict with char $ac_func (); below. */
10871 #include <assert.h>
10872 /* Override any gcc2 internal prototype to avoid an error. */
10876 /* We use char because int might match the return type of a gcc2
10877 builtin and then its argument prototype would still apply. */
10884 /* The GNU C library defines this for functions which it implements
10885 to always fail with ENOSYS. Some functions are actually named
10886 something starting with __ and the normal name is an alias. */
10887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (eval echo "$as_me:10898: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>&5
10901 echo "$as_me:10901: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (eval echo "$as_me:10904: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:10907: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 eval "$as_ac_var=yes"
10911 echo "$as_me: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10913 eval "$as_ac_var=no"
10915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10917 echo "$as_me:10917: result: `eval echo '${'$as_ac_var'}'`" >&5
10918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10919 if test `eval echo '${'$as_ac_var'}'` = yes; then
10920 cat >>confdefs.h <<EOF
10921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927 echo "$as_me:10927: checking for working mmap" >&5
10928 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10929 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 if test "$cross_compiling" = yes; then
10933 ac_cv_func_mmap_fixed_mapped=no
10935 cat >conftest.$ac_ext <<_ACEOF
10936 #line 10936 "configure"
10937 #include "confdefs.h"
10938 $ac_includes_default
10939 /* Thanks to Mike Haertel and Jim Avera for this test.
10940 Here is a matrix of mmap possibilities:
10941 mmap private not fixed
10942 mmap private fixed at somewhere currently unmapped
10943 mmap private fixed at somewhere already mapped
10944 mmap shared not fixed
10945 mmap shared fixed at somewhere currently unmapped
10946 mmap shared fixed at somewhere already mapped
10947 For private mappings, we should verify that changes cannot be read()
10948 back from the file, nor mmap's back from the file at a different
10949 address. (There have been systems where private was not correctly
10950 implemented like the infamous i386 svr4.0, and systems where the
10951 VM page cache was not coherent with the file system buffer cache
10952 like early versions of FreeBSD and possibly contemporary NetBSD.)
10953 For shared mappings, we should conversely verify that changes get
10954 propogated back to all the places they're supposed to be.
10956 Grep wants private fixed already mapped.
10957 The main things grep needs to know about mmap are:
10958 * does it exist and is it safe to write into the mmap'd area
10959 * how to use it (BSD variants) */
10962 #include <sys/mman.h>
10964 #if !STDC_HEADERS && !HAVE_STDLIB_H
10968 /* This mess was copied from the GNU getpagesize.h. */
10969 #if !HAVE_GETPAGESIZE
10970 /* Assume that all systems that can run configure have sys/param.h. */
10971 # if !HAVE_SYS_PARAM_H
10972 # define HAVE_SYS_PARAM_H 1
10975 # ifdef _SC_PAGESIZE
10976 # define getpagesize() sysconf(_SC_PAGESIZE)
10977 # else /* no _SC_PAGESIZE */
10978 # if HAVE_SYS_PARAM_H
10979 # include <sys/param.h>
10980 # ifdef EXEC_PAGESIZE
10981 # define getpagesize() EXEC_PAGESIZE
10982 # else /* no EXEC_PAGESIZE */
10984 # define getpagesize() NBPG * CLSIZE
10987 # endif /* no CLSIZE */
10988 # else /* no NBPG */
10990 # define getpagesize() NBPC
10991 # else /* no NBPC */
10993 # define getpagesize() PAGESIZE
10994 # endif /* PAGESIZE */
10995 # endif /* no NBPC */
10996 # endif /* no NBPG */
10997 # endif /* no EXEC_PAGESIZE */
10998 # else /* no HAVE_SYS_PARAM_H */
10999 # define getpagesize() 8192 /* punt totally */
11000 # endif /* no HAVE_SYS_PARAM_H */
11001 # endif /* no _SC_PAGESIZE */
11003 #endif /* no HAVE_GETPAGESIZE */
11008 char *data, *data2, *data3;
11012 pagesize = getpagesize ();
11014 /* First, make a file with some known garbage in it. */
11015 data = (char *) malloc (pagesize);
11018 for (i = 0; i < pagesize; ++i)
11019 *(data + i) = rand ();
11021 fd = creat ("conftest.mmap", 0600);
11024 if (write (fd, data, pagesize) != pagesize)
11028 /* Next, try to mmap the file at a fixed address which already has
11029 something else allocated at it. If we can, also make sure that
11030 we see the same garbage. */
11031 fd = open ("conftest.mmap", O_RDWR);
11034 data2 = (char *) malloc (2 * pagesize);
11037 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
11038 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11039 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11041 for (i = 0; i < pagesize; ++i)
11042 if (*(data + i) != *(data2 + i))
11045 /* Finally, make sure that changes to the mapped area do not
11046 percolate back to the file as seen by read(). (This is a bug on
11047 some variants of i386 svr4.0.) */
11048 for (i = 0; i < pagesize; ++i)
11049 *(data2 + i) = *(data2 + i) + 1;
11050 data3 = (char *) malloc (pagesize);
11053 if (read (fd, data3, pagesize) != pagesize)
11055 for (i = 0; i < pagesize; ++i)
11056 if (*(data + i) != *(data3 + i))
11062 rm -f conftest$ac_exeext
11063 if { (eval echo "$as_me:11063: \"$ac_link\"") >&5
11064 (eval $ac_link) 2>&5
11066 echo "$as_me:11066: \$? = $ac_status" >&5
11067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11068 { (eval echo "$as_me:11068: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11071 echo "$as_me:11071: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 ac_cv_func_mmap_fixed_mapped=yes
11075 echo "$as_me: program exited with status $ac_status" >&5
11076 echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 ac_cv_func_mmap_fixed_mapped=no
11080 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11083 echo "$as_me:11083: result: $ac_cv_func_mmap_fixed_mapped" >&5
11084 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11085 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11087 cat >>confdefs.h <<\EOF
11088 #define HAVE_MMAP 1
11092 rm -f conftest.mmap
11094 echo "$as_me:11094: checking whether we are using the GNU C Library 2.1 or newer" >&5
11095 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11096 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 cat >conftest.$ac_ext <<_ACEOF
11100 #line 11100 "configure"
11101 #include "confdefs.h"
11103 #include <features.h>
11104 #ifdef __GNU_LIBRARY__
11105 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11112 egrep "Lucky GNU user" >/dev/null 2>&1; then
11113 ac_cv_gnu_library_2_1=yes
11115 ac_cv_gnu_library_2_1=no
11120 echo "$as_me:11120: result: $ac_cv_gnu_library_2_1" >&5
11121 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11123 GLIBC21="$ac_cv_gnu_library_2_1"
11125 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11126 stdlib.h string.h unistd.h sys/param.h
11128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11129 echo "$as_me:11129: checking for $ac_header" >&5
11130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line 11135 "configure"
11136 #include "confdefs.h"
11137 #include <$ac_header>
11139 if { (eval echo "$as_me:11139: \"$ac_cpp conftest.$ac_ext\"") >&5
11140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11142 egrep -v '^ *\+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 echo "$as_me:11145: \$? = $ac_status" >&5
11146 (exit $ac_status); } >/dev/null; then
11147 if test -s conftest.err; then
11148 ac_cpp_err=$ac_c_preproc_warn_flag
11155 if test -z "$ac_cpp_err"; then
11156 eval "$as_ac_Header=yes"
11158 echo "$as_me: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11160 eval "$as_ac_Header=no"
11162 rm -f conftest.err conftest.$ac_ext
11164 echo "$as_me:11164: result: `eval echo '${'$as_ac_Header'}'`" >&5
11165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11167 cat >>confdefs.h <<EOF
11168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11174 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
11175 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
11176 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
11178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11179 echo "$as_me:11179: checking for $ac_func" >&5
11180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11181 if eval "test \"\${$as_ac_var+set}\" = set"; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 cat >conftest.$ac_ext <<_ACEOF
11185 #line 11185 "configure"
11186 #include "confdefs.h"
11187 /* System header to define __stub macros and hopefully few prototypes,
11188 which can conflict with char $ac_func (); below. */
11189 #include <assert.h>
11190 /* Override any gcc2 internal prototype to avoid an error. */
11194 /* We use char because int might match the return type of a gcc2
11195 builtin and then its argument prototype would still apply. */
11202 /* The GNU C library defines this for functions which it implements
11203 to always fail with ENOSYS. Some functions are actually named
11204 something starting with __ and the normal name is an alias. */
11205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11215 rm -f conftest.$ac_objext conftest$ac_exeext
11216 if { (eval echo "$as_me:11216: \"$ac_link\"") >&5
11217 (eval $ac_link) 2>&5
11219 echo "$as_me:11219: \$? = $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -s conftest$ac_exeext'
11222 { (eval echo "$as_me:11222: \"$ac_try\"") >&5
11223 (eval $ac_try) 2>&5
11225 echo "$as_me:11225: \$? = $ac_status" >&5
11226 (exit $ac_status); }; }; then
11227 eval "$as_ac_var=yes"
11229 echo "$as_me: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11231 eval "$as_ac_var=no"
11233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11235 echo "$as_me:11235: result: `eval echo '${'$as_ac_var'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11237 if test `eval echo '${'$as_ac_var'}'` = yes; then
11238 cat >>confdefs.h <<EOF
11239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11245 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11246 if test "${with_libiconv_prefix+set}" = set; then
11247 withval="$with_libiconv_prefix"
11249 for dir in `echo "$withval" | tr : ' '`; do
11250 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
11251 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
11256 echo "$as_me:11256: checking for iconv" >&5
11257 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11258 if test "${am_cv_func_iconv+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 am_cv_func_iconv="no, consider installing GNU libiconv"
11264 cat >conftest.$ac_ext <<_ACEOF
11265 #line 11265 "configure"
11266 #include "confdefs.h"
11267 #include <stdlib.h>
11272 iconv_t cd = iconv_open("","");
11273 iconv(cd,NULL,NULL,NULL,NULL);
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:11280: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11283 echo "$as_me:11283: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (eval echo "$as_me:11286: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:11289: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 am_cv_func_iconv=yes
11293 echo "$as_me: failed program was:" >&5
11294 cat conftest.$ac_ext >&5
11296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11297 if test "$am_cv_func_iconv" != yes; then
11298 am_save_LIBS="$LIBS"
11299 LIBS="$LIBS -liconv"
11300 cat >conftest.$ac_ext <<_ACEOF
11301 #line 11301 "configure"
11302 #include "confdefs.h"
11303 #include <stdlib.h>
11308 iconv_t cd = iconv_open("","");
11309 iconv(cd,NULL,NULL,NULL,NULL);
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:11316: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>&5
11319 echo "$as_me:11319: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:11322: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:11325: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 am_cv_lib_iconv=yes
11328 am_cv_func_iconv=yes
11330 echo "$as_me: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11334 LIBS="$am_save_LIBS"
11338 echo "$as_me:11338: result: $am_cv_func_iconv" >&5
11339 echo "${ECHO_T}$am_cv_func_iconv" >&6
11340 if test "$am_cv_func_iconv" = yes; then
11342 cat >>confdefs.h <<\EOF
11343 #define HAVE_ICONV 1
11346 echo "$as_me:11346: checking for iconv declaration" >&5
11347 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11348 if test "${am_cv_proto_iconv+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 cat >conftest.$ac_ext <<_ACEOF
11353 #line 11353 "configure"
11354 #include "confdefs.h"
11356 #include <stdlib.h>
11362 #if defined(__STDC__) || defined(__cplusplus)
11363 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11376 rm -f conftest.$ac_objext
11377 if { (eval echo "$as_me:11377: \"$ac_compile\"") >&5
11378 (eval $ac_compile) 2>&5
11380 echo "$as_me:11380: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:11383: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:11386: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 am_cv_proto_iconv_arg1=""
11390 echo "$as_me: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392 am_cv_proto_iconv_arg1="const"
11394 rm -f conftest.$ac_objext conftest.$ac_ext
11395 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11398 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11399 echo "$as_me:11399: result: ${ac_t:-
11400 }$am_cv_proto_iconv" >&5
11401 echo "${ECHO_T}${ac_t:-
11402 }$am_cv_proto_iconv" >&6
11404 cat >>confdefs.h <<EOF
11405 #define ICONV_CONST $am_cv_proto_iconv_arg1
11410 if test "$am_cv_lib_iconv" = yes; then
11414 echo "$as_me:11414: checking for nl_langinfo and CODESET" >&5
11415 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11416 if test "${am_cv_langinfo_codeset+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 cat >conftest.$ac_ext <<_ACEOF
11420 #line 11420 "configure"
11421 #include "confdefs.h"
11422 #include <langinfo.h>
11426 char* cs = nl_langinfo(CODESET);
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (eval echo "$as_me:11432: \"$ac_link\"") >&5
11433 (eval $ac_link) 2>&5
11435 echo "$as_me:11435: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -s conftest$ac_exeext'
11438 { (eval echo "$as_me:11438: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:11441: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 am_cv_langinfo_codeset=yes
11445 echo "$as_me: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 am_cv_langinfo_codeset=no
11449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11452 echo "$as_me:11452: result: $am_cv_langinfo_codeset" >&5
11453 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11454 if test $am_cv_langinfo_codeset = yes; then
11456 cat >>confdefs.h <<\EOF
11457 #define HAVE_LANGINFO_CODESET 1
11462 if test $ac_cv_header_locale_h = yes; then
11463 echo "$as_me:11463: checking for LC_MESSAGES" >&5
11464 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11465 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 cat >conftest.$ac_ext <<_ACEOF
11469 #line 11469 "configure"
11470 #include "confdefs.h"
11471 #include <locale.h>
11480 rm -f conftest.$ac_objext conftest$ac_exeext
11481 if { (eval echo "$as_me:11481: \"$ac_link\"") >&5
11482 (eval $ac_link) 2>&5
11484 echo "$as_me:11484: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -s conftest$ac_exeext'
11487 { (eval echo "$as_me:11487: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:11490: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 am_cv_val_LC_MESSAGES=yes
11494 echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 am_cv_val_LC_MESSAGES=no
11498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11500 echo "$as_me:11500: result: $am_cv_val_LC_MESSAGES" >&5
11501 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11502 if test $am_cv_val_LC_MESSAGES = yes; then
11504 cat >>confdefs.h <<\EOF
11505 #define HAVE_LC_MESSAGES 1
11510 echo "$as_me:11510: checking whether NLS is requested" >&5
11511 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11512 # Check whether --enable-nls or --disable-nls was given.
11513 if test "${enable_nls+set}" = set; then
11514 enableval="$enable_nls"
11519 echo "$as_me:11519: result: $USE_NLS" >&5
11520 echo "${ECHO_T}$USE_NLS" >&6
11522 BUILD_INCLUDED_LIBINTL=no
11523 USE_INCLUDED_LIBINTL=no
11526 if test "$USE_NLS" = "yes"; then
11528 cat >>confdefs.h <<\EOF
11529 #define ENABLE_NLS 1
11532 echo "$as_me:11532: checking whether included gettext is requested" >&5
11533 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11535 # Check whether --with-included-gettext or --without-included-gettext was given.
11536 if test "${with_included_gettext+set}" = set; then
11537 withval="$with_included_gettext"
11538 nls_cv_force_use_gnu_gettext=$withval
11540 nls_cv_force_use_gnu_gettext=no
11542 echo "$as_me:11542: result: $nls_cv_force_use_gnu_gettext" >&5
11543 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11545 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11546 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11549 echo "$as_me:11549: checking for libintl.h" >&5
11550 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
11551 if test "${ac_cv_header_libintl_h+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 cat >conftest.$ac_ext <<_ACEOF
11555 #line 11555 "configure"
11556 #include "confdefs.h"
11557 #include <libintl.h>
11559 if { (eval echo "$as_me:11559: \"$ac_cpp conftest.$ac_ext\"") >&5
11560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11562 egrep -v '^ *\+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:11565: \$? = $ac_status" >&5
11566 (exit $ac_status); } >/dev/null; then
11567 if test -s conftest.err; then
11568 ac_cpp_err=$ac_c_preproc_warn_flag
11575 if test -z "$ac_cpp_err"; then
11576 ac_cv_header_libintl_h=yes
11578 echo "$as_me: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11580 ac_cv_header_libintl_h=no
11582 rm -f conftest.err conftest.$ac_ext
11584 echo "$as_me:11584: result: $ac_cv_header_libintl_h" >&5
11585 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
11586 if test $ac_cv_header_libintl_h = yes; then
11587 echo "$as_me:11587: checking for GNU gettext in libc" >&5
11588 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11589 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 cat >conftest.$ac_ext <<_ACEOF
11593 #line 11593 "configure"
11594 #include "confdefs.h"
11595 #include <libintl.h>
11596 extern int _nl_msg_cat_cntr;
11600 bindtextdomain ("", "");
11601 return (int) gettext ("") + _nl_msg_cat_cntr
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (eval echo "$as_me:11607: \"$ac_link\"") >&5
11608 (eval $ac_link) 2>&5
11610 echo "$as_me:11610: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (eval echo "$as_me:11613: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:11616: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 gt_cv_func_gnugettext1_libc=yes
11620 echo "$as_me: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11622 gt_cv_func_gnugettext1_libc=no
11624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11626 echo "$as_me:11626: result: $gt_cv_func_gnugettext1_libc" >&5
11627 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11629 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11630 echo "$as_me:11630: checking for GNU gettext in libintl" >&5
11631 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11632 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 gt_save_LIBS="$LIBS"
11636 LIBS="$LIBS -lintl $LIBICONV"
11637 cat >conftest.$ac_ext <<_ACEOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11640 #include <libintl.h>
11641 extern int _nl_msg_cat_cntr;
11645 bindtextdomain ("", "");
11646 return (int) gettext ("") + _nl_msg_cat_cntr
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:11652: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>&5
11655 echo "$as_me:11655: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest$ac_exeext'
11658 { (eval echo "$as_me:11658: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:11661: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 gt_cv_func_gnugettext1_libintl=yes
11665 echo "$as_me: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 gt_cv_func_gnugettext1_libintl=no
11669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11670 LIBS="$gt_save_LIBS"
11672 echo "$as_me:11672: result: $gt_cv_func_gnugettext1_libintl" >&5
11673 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11676 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11677 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11678 && test "$PACKAGE" != gettext; }; then
11680 cat >>confdefs.h <<\EOF
11681 #define HAVE_GETTEXT 1
11684 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11685 INTLLIBS="-lintl $LIBICONV"
11688 gt_save_LIBS="$LIBS"
11689 LIBS="$LIBS $INTLLIBS"
11691 for ac_func in dcgettext
11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 echo "$as_me:11694: checking for $ac_func" >&5
11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11696 if eval "test \"\${$as_ac_var+set}\" = set"; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 cat >conftest.$ac_ext <<_ACEOF
11700 #line 11700 "configure"
11701 #include "confdefs.h"
11702 /* System header to define __stub macros and hopefully few prototypes,
11703 which can conflict with char $ac_func (); below. */
11704 #include <assert.h>
11705 /* Override any gcc2 internal prototype to avoid an error. */
11709 /* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11717 /* The GNU C library defines this for functions which it implements
11718 to always fail with ENOSYS. Some functions are actually named
11719 something starting with __ and the normal name is an alias. */
11720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (eval echo "$as_me:11731: \"$ac_link\"") >&5
11732 (eval $ac_link) 2>&5
11734 echo "$as_me:11734: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:11737: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:11740: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 eval "$as_ac_var=yes"
11744 echo "$as_me: failed program was:" >&5
11745 cat conftest.$ac_ext >&5
11746 eval "$as_ac_var=no"
11748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11750 echo "$as_me:11750: result: `eval echo '${'$as_ac_var'}'`" >&5
11751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753 cat >>confdefs.h <<EOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11760 LIBS="$gt_save_LIBS"
11762 # Extract the first word of "msgfmt", so it can be a program name with args.
11763 set dummy msgfmt; ac_word=$2
11764 echo "$as_me:11764: checking for $ac_word" >&5
11765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11766 if test "${ac_cv_path_MSGFMT+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11775 for ac_dir in $PATH; do
11776 test -z "$ac_dir" && ac_dir=.
11777 if test -f $ac_dir/$ac_word; then
11778 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
11779 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11789 MSGFMT="$ac_cv_path_MSGFMT"
11790 if test "$MSGFMT" != ":"; then
11791 echo "$as_me:11791: result: $MSGFMT" >&5
11792 echo "${ECHO_T}$MSGFMT" >&6
11794 echo "$as_me:11794: result: no" >&5
11795 echo "${ECHO_T}no" >&6
11798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11799 set dummy gmsgfmt; ac_word=$2
11800 echo "$as_me:11800: checking for $ac_word" >&5
11801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11802 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11810 ac_save_IFS=$IFS; IFS=$ac_path_separator
11812 for ac_dir in $ac_dummy; do
11814 test -z "$ac_dir" && ac_dir=.
11815 if $as_executable_p "$ac_dir/$ac_word"; then
11816 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
11817 echo "$as_me:11817: found $ac_dir/$ac_word" >&5
11822 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11826 GMSGFMT=$ac_cv_path_GMSGFMT
11828 if test -n "$GMSGFMT"; then
11829 echo "$as_me:11829: result: $GMSGFMT" >&5
11830 echo "${ECHO_T}$GMSGFMT" >&6
11832 echo "$as_me:11832: result: no" >&5
11833 echo "${ECHO_T}no" >&6
11836 # Extract the first word of "xgettext", so it can be a program name with args.
11837 set dummy xgettext; ac_word=$2
11838 echo "$as_me:11838: checking for $ac_word" >&5
11839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11840 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 case "$XGETTEXT" in
11845 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11849 for ac_dir in $PATH; do
11850 test -z "$ac_dir" && ac_dir=.
11851 if test -f $ac_dir/$ac_word; then
11852 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
11853 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11859 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11863 XGETTEXT="$ac_cv_path_XGETTEXT"
11864 if test "$XGETTEXT" != ":"; then
11865 echo "$as_me:11865: result: $XGETTEXT" >&5
11866 echo "${ECHO_T}$XGETTEXT" >&6
11868 echo "$as_me:11868: result: no" >&5
11869 echo "${ECHO_T}no" >&6
11877 if test "$CATOBJEXT" = "NONE"; then
11878 nls_cv_use_gnu_gettext=yes
11882 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11883 INTLOBJS="\$(GETTOBJS)"
11884 # Extract the first word of "msgfmt", so it can be a program name with args.
11885 set dummy msgfmt; ac_word=$2
11886 echo "$as_me:11886: checking for $ac_word" >&5
11887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11888 if test "${ac_cv_path_MSGFMT+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11897 for ac_dir in $PATH; do
11898 test -z "$ac_dir" && ac_dir=.
11899 if test -f $ac_dir/$ac_word; then
11900 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
11901 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11907 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11911 MSGFMT="$ac_cv_path_MSGFMT"
11912 if test "$MSGFMT" != ":"; then
11913 echo "$as_me:11913: result: $MSGFMT" >&5
11914 echo "${ECHO_T}$MSGFMT" >&6
11916 echo "$as_me:11916: result: no" >&5
11917 echo "${ECHO_T}no" >&6
11920 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11921 set dummy gmsgfmt; ac_word=$2
11922 echo "$as_me:11922: checking for $ac_word" >&5
11923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11924 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11932 ac_save_IFS=$IFS; IFS=$ac_path_separator
11934 for ac_dir in $ac_dummy; do
11936 test -z "$ac_dir" && ac_dir=.
11937 if $as_executable_p "$ac_dir/$ac_word"; then
11938 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
11939 echo "$as_me:11939: found $ac_dir/$ac_word" >&5
11944 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11948 GMSGFMT=$ac_cv_path_GMSGFMT
11950 if test -n "$GMSGFMT"; then
11951 echo "$as_me:11951: result: $GMSGFMT" >&5
11952 echo "${ECHO_T}$GMSGFMT" >&6
11954 echo "$as_me:11954: result: no" >&5
11955 echo "${ECHO_T}no" >&6
11958 # Extract the first word of "xgettext", so it can be a program name with args.
11959 set dummy xgettext; ac_word=$2
11960 echo "$as_me:11960: checking for $ac_word" >&5
11961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11962 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 case "$XGETTEXT" in
11967 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11971 for ac_dir in $PATH; do
11972 test -z "$ac_dir" && ac_dir=.
11973 if test -f $ac_dir/$ac_word; then
11974 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
11975 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11981 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11985 XGETTEXT="$ac_cv_path_XGETTEXT"
11986 if test "$XGETTEXT" != ":"; then
11987 echo "$as_me:11987: result: $XGETTEXT" >&5
11988 echo "${ECHO_T}$XGETTEXT" >&6
11990 echo "$as_me:11990: result: no" >&5
11991 echo "${ECHO_T}no" >&6
11994 BUILD_INCLUDED_LIBINTL=yes
11995 USE_INCLUDED_LIBINTL=yes
11997 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
11998 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12001 if test "$GMSGFMT" != ":"; then
12002 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
12005 echo "$as_me:12005: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
12006 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
12011 if test "$XGETTEXT" != ":"; then
12012 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
12015 echo "$as_me:12015: result: found xgettext program is not GNU xgettext; ignore it" >&5
12016 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12023 ac_config_commands="$ac_config_commands default-2"
12025 if test "$PACKAGE" = gettext; then
12026 BUILD_INCLUDED_LIBINTL=yes
12029 for ac_prog in bison
12031 # Extract the first word of "$ac_prog", so it can be a program name with args.
12032 set dummy $ac_prog; ac_word=$2
12033 echo "$as_me:12033: checking for $ac_word" >&5
12034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12035 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 if test -n "$INTLBISON"; then
12039 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12041 ac_save_IFS=$IFS; IFS=$ac_path_separator
12043 for ac_dir in $ac_dummy; do
12045 test -z "$ac_dir" && ac_dir=.
12046 $as_executable_p "$ac_dir/$ac_word" || continue
12047 ac_cv_prog_INTLBISON="$ac_prog"
12048 echo "$as_me:12048: found $ac_dir/$ac_word" >&5
12054 INTLBISON=$ac_cv_prog_INTLBISON
12055 if test -n "$INTLBISON"; then
12056 echo "$as_me:12056: result: $INTLBISON" >&5
12057 echo "${ECHO_T}$INTLBISON" >&6
12059 echo "$as_me:12059: result: no" >&5
12060 echo "${ECHO_T}no" >&6
12063 test -n "$INTLBISON" && break
12066 if test -z "$INTLBISON"; then
12069 echo "$as_me:12069: checking version of bison" >&5
12070 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
12071 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12072 case $ac_prog_version in
12073 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12074 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12075 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12076 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12078 echo "$as_me:12078: result: $ac_prog_version" >&5
12079 echo "${ECHO_T}$ac_prog_version" >&6
12081 if test $ac_verc_fail = yes; then
12085 for lang in $ALL_LINGUAS; do
12086 GMOFILES="$GMOFILES $lang.gmo"
12087 POFILES="$POFILES $lang.po"
12090 nls_cv_header_intl=
12091 nls_cv_header_libgt=
12099 if test "x$CATOBJEXT" != "x"; then
12100 if test "x$ALL_LINGUAS" = "x"; then
12103 echo "$as_me:12103: checking for catalogs to be installed" >&5
12104 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12106 for presentlang in $ALL_LINGUAS; do
12108 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
12109 # Use the presentlang catalog if desiredlang is
12110 # a. equal to presentlang, or
12111 # b. a variant of presentlang (because in this case,
12112 # presentlang can be used as a fallback for messages
12113 # which are not translated in the desiredlang catalog).
12114 case "$desiredlang" in
12115 "$presentlang"*) useit=yes;;
12118 if test $useit = yes; then
12119 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12122 LINGUAS=$NEW_LINGUAS
12123 echo "$as_me:12123: result: $LINGUAS" >&5
12124 echo "${ECHO_T}$LINGUAS" >&6
12127 if test -n "$LINGUAS"; then
12128 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12133 if test -n "$ac_aux_dir"; then
12134 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12136 if test -z "$MKINSTALLDIRS"; then
12137 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12140 INTL_LIBTOOL_SUFFIX_PREFIX=
12142 ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in doc/Makefile man/Makefile man/hu/Makefile man/ja/Makefile man/pl/Makefile man/pt_BR/Makefile libmisc/Makefile lib/Makefile src/Makefile contrib/Makefile debian/Makefile etc/Makefile etc/pam.d/Makefile shadow-utils.spec"
12143 cat >confcache <<\_ACEOF
12144 # This file is a shell script that caches the results of configure
12145 # tests run on this system so they can be shared between configure
12146 # scripts and configure runs, see configure's option --config-cache.
12147 # It is not useful on other systems. If it contains results you don't
12148 # want to keep, you may remove or edit it.
12150 # config.status only pays attention to the cache file if you give it
12151 # the --recheck option to rerun configure.
12153 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12155 # following values.
12159 # The following way of writing the cache mishandles newlines in values,
12160 # but we know of no workaround that is simple, portable, and efficient.
12161 # So, don't put newlines in cache variables' values.
12162 # Ultrix sh set writes to stderr and can't be redirected directly,
12163 # and sets the high bit in the cache file unless we assign to the vars.
12166 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12168 # `set' does not quote correctly, so add quotes (double-quote
12169 # substitution turns \\\\ into \\, and sed turns \\ into \).
12172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12175 # `set' quotes correctly as required by POSIX, so do not add quotes.
12177 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12186 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12188 if cmp -s $cache_file confcache; then :; else
12189 if test -w $cache_file; then
12190 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12191 cat confcache >$cache_file
12193 echo "not updating unwritable cache $cache_file"
12198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12199 # Let make expand exec_prefix.
12200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12202 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12203 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12204 # trailing colons and then remove the whole line if VPATH becomes empty
12205 # (actually we leave an empty line to preserve line numbers).
12206 if test "x$srcdir" = x.; then
12207 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12208 s/:*\$(srcdir):*/:/;
12209 s/:*\${srcdir}:*/:/;
12211 s/^\([^=]*=[ ]*\):*/\1/;
12217 DEFS=-DHAVE_CONFIG_H
12219 : ${CONFIG_STATUS=./config.status}
12220 ac_clean_files_save=$ac_clean_files
12221 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12222 { echo "$as_me:12222: creating $CONFIG_STATUS" >&5
12223 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12224 cat >$CONFIG_STATUS <<_ACEOF
12226 # Generated automatically by configure.
12227 # Run this file to recreate the current configuration.
12228 # Compiler output produced by configure, useful for debugging
12229 # configure, is in config.log if it exists.
12232 SHELL=\${CONFIG_SHELL-$SHELL}
12233 ac_cs_invocation="\$0 \$@"
12237 cat >>$CONFIG_STATUS <<\_ACEOF
12238 # Be Bourne compatible
12239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12242 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12246 # Name of the executable.
12247 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12249 if expr a : '\(a\)' >/dev/null 2>&1; then
12255 rm -f conf$$ conf$$.exe conf$$.file
12257 if ln -s conf$$.file conf$$ 2>/dev/null; then
12258 # We could just check for DJGPP; but this test a) works b) is more generic
12259 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12260 if test -f conf$$.exe; then
12261 # Don't use ln at all; we don't have any links
12266 elif ln conf$$.file conf$$ 2>/dev/null; then
12271 rm -f conf$$ conf$$.exe conf$$.file
12273 as_executable_p="test -f"
12275 # Support unset when possible.
12276 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12283 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12284 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12285 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12286 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12287 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12288 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12289 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12290 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12293 # We need space, tab and new line, in precisely that order.
12299 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12305 # Files that config.status was made for.
12306 if test -n "$ac_config_files"; then
12307 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12310 if test -n "$ac_config_headers"; then
12311 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12314 if test -n "$ac_config_links"; then
12315 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12318 if test -n "$ac_config_commands"; then
12319 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12322 cat >>$CONFIG_STATUS <<\EOF
12325 \`$as_me' instantiates files from templates according to the
12326 current configuration.
12328 Usage: $0 [OPTIONS] [FILE]...
12330 -h, --help print this help, then exit
12331 -V, --version print version number, then exit
12332 -d, --debug don't remove temporary files
12333 --recheck update $as_me by reconfiguring in the same conditions
12334 --file=FILE[:TEMPLATE]
12335 instantiate the configuration file FILE
12336 --header=FILE[:TEMPLATE]
12337 instantiate the configuration header FILE
12339 Configuration files:
12342 Configuration headers:
12345 Configuration commands:
12348 Report bugs to <bug-autoconf@gnu.org>."
12351 cat >>$CONFIG_STATUS <<EOF
12354 configured by $0, generated by GNU Autoconf 2.52,
12355 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12357 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12358 Free Software Foundation, Inc.
12359 This config.status script is free software; the Free Software Foundation
12360 gives unlimited permission to copy, distribute and modify it."
12365 cat >>$CONFIG_STATUS <<\EOF
12366 # If no file are specified by the user, then we need to provide default
12367 # value. By we need to know if files were specified by the user.
12373 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12374 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12376 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12380 *) # This is not an option, so the user has probably given explicit
12382 ac_need_defaults=false;;
12386 # Handling of the options.
12388 cat >>$CONFIG_STATUS <<EOF
12389 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12390 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12391 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12393 cat >>$CONFIG_STATUS <<\EOF
12394 --version | --vers* | -V )
12395 echo "$ac_cs_version"; exit 0 ;;
12397 # Conflict between --help and --header
12398 { { echo "$as_me:12398: error: ambiguous option: $1
12399 Try \`$0 --help' for more information." >&5
12400 echo "$as_me: error: ambiguous option: $1
12401 Try \`$0 --help' for more information." >&2;}
12402 { (exit 1); exit 1; }; };;
12403 --help | --hel | -h )
12404 echo "$ac_cs_usage"; exit 0 ;;
12405 --debug | --d* | -d )
12407 --file | --fil | --fi | --f )
12409 CONFIG_FILES="$CONFIG_FILES $1"
12410 ac_need_defaults=false;;
12411 --header | --heade | --head | --hea )
12413 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12414 ac_need_defaults=false;;
12416 # This is an error.
12417 -*) { { echo "$as_me:12417: error: unrecognized option: $1
12418 Try \`$0 --help' for more information." >&5
12419 echo "$as_me: error: unrecognized option: $1
12420 Try \`$0 --help' for more information." >&2;}
12421 { (exit 1); exit 1; }; } ;;
12423 *) ac_config_targets="$ac_config_targets $1" ;;
12432 ## ----------------------- ##
12433 ## Running config.status. ##
12434 ## ----------------------- ##
12436 This file was extended by $as_me 2.52, executed with
12437 CONFIG_FILES = $CONFIG_FILES
12438 CONFIG_HEADERS = $CONFIG_HEADERS
12439 CONFIG_LINKS = $CONFIG_LINKS
12440 CONFIG_COMMANDS = $CONFIG_COMMANDS
12441 > $ac_cs_invocation
12442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12447 cat >>$CONFIG_STATUS <<EOF
12449 # INIT-COMMANDS section.
12452 AMDEP_TRUE="$AMDEP_TRUE"
12453 ac_aux_dir="$ac_aux_dir"
12457 cat >>$CONFIG_STATUS <<\EOF
12458 for ac_config_target in $ac_config_targets
12460 case "$ac_config_target" in
12461 # Handling of arguments.
12462 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12463 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12464 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12465 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12466 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12467 "man/hu/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/hu/Makefile" ;;
12468 "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
12469 "man/pl/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
12470 "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
12471 "libmisc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmisc/Makefile" ;;
12472 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12473 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12474 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
12475 "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
12476 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
12477 "etc/pam.d/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/pam.d/Makefile" ;;
12478 "shadow-utils.spec" ) CONFIG_FILES="$CONFIG_FILES shadow-utils.spec" ;;
12479 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12480 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
12481 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12482 *) { { echo "$as_me:12482: error: invalid argument: $ac_config_target" >&5
12483 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12484 { (exit 1); exit 1; }; };;
12488 # If the user did not use the arguments to specify the items to instantiate,
12489 # then the envvar interface is used. Set only those that are not.
12490 # We use the long form for the default assignment because of an extremely
12491 # bizarre bug on SunOS 4.1.3.
12492 if $ac_need_defaults; then
12493 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12494 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12495 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12498 # Create a temporary directory, and hook for its removal unless debugging.
12501 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12502 trap '{ (exit 1); exit 1; }' 1 2 13 15
12505 # Create a (secure) tmp directory for tmp files.
12508 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12509 test -n "$tmp" && test -d "$tmp"
12512 tmp=$TMPDIR/cs$$-$RANDOM
12513 (umask 077 && mkdir $tmp)
12516 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12517 { (exit 1); exit 1; }
12522 cat >>$CONFIG_STATUS <<EOF
12525 # CONFIG_FILES section.
12528 # No need to generate the scripts if there are no CONFIG_FILES.
12529 # This happens for instance when ./config.status config.h
12530 if test -n "\$CONFIG_FILES"; then
12531 # Protect against being on the right side of a sed subst in config.status.
12532 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12533 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12534 s,@SHELL@,$SHELL,;t t
12535 s,@exec_prefix@,$exec_prefix,;t t
12536 s,@prefix@,$prefix,;t t
12537 s,@program_transform_name@,$program_transform_name,;t t
12538 s,@bindir@,$bindir,;t t
12539 s,@sbindir@,$sbindir,;t t
12540 s,@libexecdir@,$libexecdir,;t t
12541 s,@datadir@,$datadir,;t t
12542 s,@sysconfdir@,$sysconfdir,;t t
12543 s,@sharedstatedir@,$sharedstatedir,;t t
12544 s,@localstatedir@,$localstatedir,;t t
12545 s,@libdir@,$libdir,;t t
12546 s,@includedir@,$includedir,;t t
12547 s,@oldincludedir@,$oldincludedir,;t t
12548 s,@infodir@,$infodir,;t t
12549 s,@mandir@,$mandir,;t t
12550 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12551 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12552 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12553 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12554 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12555 s,@build_alias@,$build_alias,;t t
12556 s,@host_alias@,$host_alias,;t t
12557 s,@target_alias@,$target_alias,;t t
12558 s,@ECHO_C@,$ECHO_C,;t t
12559 s,@ECHO_N@,$ECHO_N,;t t
12560 s,@ECHO_T@,$ECHO_T,;t t
12561 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12562 s,@DEFS@,$DEFS,;t t
12563 s,@LIBS@,$LIBS,;t t
12564 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12565 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12566 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12567 s,@PACKAGE@,$PACKAGE,;t t
12568 s,@VERSION@,$VERSION,;t t
12569 s,@EXEEXT@,$EXEEXT,;t t
12570 s,@OBJEXT@,$OBJEXT,;t t
12571 s,@ACLOCAL@,$ACLOCAL,;t t
12572 s,@AUTOCONF@,$AUTOCONF,;t t
12573 s,@AUTOMAKE@,$AUTOMAKE,;t t
12574 s,@AUTOHEADER@,$AUTOHEADER,;t t
12575 s,@MAKEINFO@,$MAKEINFO,;t t
12576 s,@AMTAR@,$AMTAR,;t t
12577 s,@install_sh@,$install_sh,;t t
12578 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12580 s,@SET_MAKE@,$SET_MAKE,;t t
12581 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12582 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12583 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12584 s,@DEPDIR@,$DEPDIR,;t t
12586 s,@CFLAGS@,$CFLAGS,;t t
12587 s,@LDFLAGS@,$LDFLAGS,;t t
12588 s,@CPPFLAGS@,$CPPFLAGS,;t t
12589 s,@ac_ct_CC@,$ac_ct_CC,;t t
12590 s,@am__include@,$am__include,;t t
12591 s,@am__quote@,$am__quote,;t t
12592 s,@CCDEPMODE@,$CCDEPMODE,;t t
12593 s,@LN_S@,$LN_S,;t t
12594 s,@YACC@,$YACC,;t t
12597 s,@ANSI2KNR@,$ANSI2KNR,;t t
12598 s,@build@,$build,;t t
12599 s,@build_cpu@,$build_cpu,;t t
12600 s,@build_vendor@,$build_vendor,;t t
12601 s,@build_os@,$build_os,;t t
12602 s,@host@,$host,;t t
12603 s,@host_cpu@,$host_cpu,;t t
12604 s,@host_vendor@,$host_vendor,;t t
12605 s,@host_os@,$host_os,;t t
12606 s,@ECHO@,$ECHO,;t t
12607 s,@RANLIB@,$RANLIB,;t t
12608 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12609 s,@STRIP@,$STRIP,;t t
12610 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12611 s,@LIBTOOL@,$LIBTOOL,;t t
12612 s,@LIBOBJS@,$LIBOBJS,;t t
12613 s,@LIBCRYPT@,$LIBCRYPT,;t t
12614 s,@LIBCRACK@,$LIBCRACK,;t t
12615 s,@LIBSKEY@,$LIBSKEY,;t t
12616 s,@LIBMD@,$LIBMD,;t t
12617 s,@LIBTCFS@,$LIBTCFS,;t t
12618 s,@LIBPAM@,$LIBPAM,;t t
12619 s,@ALLOCA@,$ALLOCA,;t t
12620 s,@GLIBC21@,$GLIBC21,;t t
12621 s,@LIBICONV@,$LIBICONV,;t t
12622 s,@USE_NLS@,$USE_NLS,;t t
12623 s,@MSGFMT@,$MSGFMT,;t t
12624 s,@GMSGFMT@,$GMSGFMT,;t t
12625 s,@XGETTEXT@,$XGETTEXT,;t t
12626 s,@INTLBISON@,$INTLBISON,;t t
12627 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12628 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12629 s,@CATALOGS@,$CATALOGS,;t t
12630 s,@CATOBJEXT@,$CATOBJEXT,;t t
12631 s,@GMOFILES@,$GMOFILES,;t t
12632 s,@INTLLIBS@,$INTLLIBS,;t t
12633 s,@INTLOBJS@,$INTLOBJS,;t t
12634 s,@POFILES@,$POFILES,;t t
12635 s,@POSUB@,$POSUB,;t t
12636 s,@DATADIRNAME@,$DATADIRNAME,;t t
12637 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12638 s,@GENCAT@,$GENCAT,;t t
12639 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12640 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12645 cat >>$CONFIG_STATUS <<\EOF
12646 # Split the substitutions into bite-sized pieces for seds with
12647 # small command number limits, like on Digital OSF/1 and HP-UX.
12648 ac_max_sed_lines=48
12649 ac_sed_frag=1 # Number of current file.
12650 ac_beg=1 # First line for current file.
12651 ac_end=$ac_max_sed_lines # Line after last line for current file.
12654 while $ac_more_lines; do
12655 if test $ac_beg -gt 1; then
12656 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12658 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12660 if test ! -s $tmp/subs.frag; then
12661 ac_more_lines=false
12663 # The purpose of the label and of the branching condition is to
12664 # speed up the sed processing (if there are no `@' at all, there
12665 # is no need to browse any of the substitutions).
12666 # These are the two extra sed commands mentioned above.
12668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12669 if test -z "$ac_sed_cmds"; then
12670 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12672 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12674 ac_sed_frag=`expr $ac_sed_frag + 1`
12676 ac_end=`expr $ac_end + $ac_max_sed_lines`
12679 if test -z "$ac_sed_cmds"; then
12682 fi # test -n "$CONFIG_FILES"
12685 cat >>$CONFIG_STATUS <<\EOF
12686 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12689 - | *:- | *:-:* ) # input from stdin
12691 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12693 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12695 * ) ac_file_in=$ac_file.in ;;
12698 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12699 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12700 X"$ac_file" : 'X\(//\)[^/]' \| \
12701 X"$ac_file" : 'X\(//\)$' \| \
12702 X"$ac_file" : 'X\(/\)' \| \
12703 . : '\(.\)' 2>/dev/null ||
12705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12707 /^X\(\/\/\)$/{ s//\1/; q; }
12708 /^X\(\/\).*/{ s//\1/; q; }
12710 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12711 { case "$ac_dir" in
12712 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12716 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12717 case $as_mkdir_dir in
12718 # Skip DOS drivespec
12719 ?:) as_incr_dir=$as_mkdir_dir ;;
12721 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12722 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12727 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12728 # A "../" for each directory in $ac_dir_suffix.
12729 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12731 ac_dir_suffix= ac_dots=
12736 if test -z "$ac_dots"; then
12739 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12741 [\\/]* | ?:[\\/]* )
12742 ac_srcdir=$srcdir$ac_dir_suffix;
12743 ac_top_srcdir=$srcdir ;;
12744 *) # Relative path.
12745 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12746 ac_top_srcdir=$ac_dots$srcdir ;;
12750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12751 *) ac_INSTALL=$ac_dots$INSTALL ;;
12754 if test x"$ac_file" != x-; then
12755 { echo "$as_me:12755: creating $ac_file" >&5
12756 echo "$as_me: creating $ac_file" >&6;}
12759 # Let's still pretend it is `configure' which instantiates (i.e., don't
12760 # use $as_me), people would be surprised to read:
12761 # /* config.h. Generated automatically by config.status. */
12762 configure_input="Generated automatically from `echo $ac_file_in |
12763 sed 's,.*/,,'` by configure."
12765 # First look for the input files in the build tree, otherwise in the
12767 ac_file_inputs=`IFS=:
12768 for f in $ac_file_in; do
12770 -) echo $tmp/stdin ;;
12772 # Absolute (can't be DOS-style, as IFS=:)
12773 test -f "$f" || { { echo "$as_me:12773: error: cannot find input file: $f" >&5
12774 echo "$as_me: error: cannot find input file: $f" >&2;}
12775 { (exit 1); exit 1; }; }
12778 if test -f "$f"; then
12781 elif test -f "$srcdir/$f"; then
12786 { { echo "$as_me:12786: error: cannot find input file: $f" >&5
12787 echo "$as_me: error: cannot find input file: $f" >&2;}
12788 { (exit 1); exit 1; }; }
12791 done` || { (exit 1); exit 1; }
12793 cat >>$CONFIG_STATUS <<EOF
12797 cat >>$CONFIG_STATUS <<\EOF
12799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12800 s,@configure_input@,$configure_input,;t t
12801 s,@srcdir@,$ac_srcdir,;t t
12802 s,@top_srcdir@,$ac_top_srcdir,;t t
12803 s,@INSTALL@,$ac_INSTALL,;t t
12804 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12806 if test x"$ac_file" != x-; then
12807 mv $tmp/out $ac_file
12815 cat >>$CONFIG_STATUS <<\EOF
12818 # CONFIG_HEADER section.
12821 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12822 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12824 # ac_d sets the value in "#define NAME VALUE" lines.
12825 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12826 ac_dB='[ ].*$,\1#\2'
12829 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12830 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12831 ac_uB='$,\1#\2define\3'
12835 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12838 - | *:- | *:-:* ) # input from stdin
12840 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12842 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12843 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12844 * ) ac_file_in=$ac_file.in ;;
12847 test x"$ac_file" != x- && { echo "$as_me:12847: creating $ac_file" >&5
12848 echo "$as_me: creating $ac_file" >&6;}
12850 # First look for the input files in the build tree, otherwise in the
12852 ac_file_inputs=`IFS=:
12853 for f in $ac_file_in; do
12855 -) echo $tmp/stdin ;;
12857 # Absolute (can't be DOS-style, as IFS=:)
12858 test -f "$f" || { { echo "$as_me:12858: error: cannot find input file: $f" >&5
12859 echo "$as_me: error: cannot find input file: $f" >&2;}
12860 { (exit 1); exit 1; }; }
12863 if test -f "$f"; then
12866 elif test -f "$srcdir/$f"; then
12871 { { echo "$as_me:12871: error: cannot find input file: $f" >&5
12872 echo "$as_me: error: cannot find input file: $f" >&2;}
12873 { (exit 1); exit 1; }; }
12876 done` || { (exit 1); exit 1; }
12877 # Remove the trailing spaces.
12878 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12882 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12883 # `conftest.undefs', that substitutes the proper values into
12884 # config.h.in to produce config.h. The first handles `#define'
12885 # templates, and the second `#undef' templates.
12886 # And first: Protect against being on the right side of a sed subst in
12887 # config.status. Protect against being in an unquoted here document
12888 # in config.status.
12889 rm -f conftest.defines conftest.undefs
12890 # Using a here document instead of a string reduces the quoting nightmare.
12891 # Putting comments in sed scripts is not portable.
12893 # `end' is used to avoid that the second main sed command (meant for
12894 # 0-ary CPP macros) applies to n-ary macro definitions.
12895 # See the Autoconf documentation for `clear'.
12896 cat >confdef2sed.sed <<\EOF
12901 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
12903 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12906 # If some macros were called several times there might be several times
12907 # the same #defines, which is useless. Nevertheless, we may not want to
12908 # sort them, since we want the *last* AC-DEFINE to be honored.
12909 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12910 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12911 rm -f confdef2sed.sed
12913 # This sed command replaces #undef with comments. This is necessary, for
12914 # example, in the case of _POSIX_SOURCE, which is predefined and required
12915 # on some systems where configure will not decide to define it.
12916 cat >>conftest.undefs <<\EOF
12917 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12920 # Break up conftest.defines because some shells have a limit on the size
12921 # of here documents, and old seds have small limits too (100 cmds).
12922 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12923 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12924 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12925 echo ' :' >>$CONFIG_STATUS
12926 rm -f conftest.tail
12927 while grep . conftest.defines >/dev/null
12929 # Write a limited-size here document to $tmp/defines.sed.
12930 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12931 # Speed up: don't consider the non `#define' lines.
12932 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12933 # Work around the forget-to-reset-the-flag bug.
12934 echo 't clr' >>$CONFIG_STATUS
12935 echo ': clr' >>$CONFIG_STATUS
12936 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12938 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12940 mv $tmp/out $tmp/in
12942 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12943 rm -f conftest.defines
12944 mv conftest.tail conftest.defines
12946 rm -f conftest.defines
12947 echo ' fi # egrep' >>$CONFIG_STATUS
12948 echo >>$CONFIG_STATUS
12950 # Break up conftest.undefs because some shells have a limit on the size
12951 # of here documents, and old seds have small limits too (100 cmds).
12952 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12953 rm -f conftest.tail
12954 while grep . conftest.undefs >/dev/null
12956 # Write a limited-size here document to $tmp/undefs.sed.
12957 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12958 # Speed up: don't consider the non `#undef'
12959 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12960 # Work around the forget-to-reset-the-flag bug.
12961 echo 't clr' >>$CONFIG_STATUS
12962 echo ': clr' >>$CONFIG_STATUS
12963 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12965 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12967 mv $tmp/out $tmp/in
12969 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12970 rm -f conftest.undefs
12971 mv conftest.tail conftest.undefs
12973 rm -f conftest.undefs
12975 cat >>$CONFIG_STATUS <<\EOF
12976 # Let's still pretend it is `configure' which instantiates (i.e., don't
12977 # use $as_me), people would be surprised to read:
12978 # /* config.h. Generated automatically by config.status. */
12979 if test x"$ac_file" = x-; then
12980 echo "/* Generated automatically by configure. */" >$tmp/config.h
12982 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
12984 cat $tmp/in >>$tmp/config.h
12986 if test x"$ac_file" != x-; then
12987 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12988 { echo "$as_me:12988: $ac_file is unchanged" >&5
12989 echo "$as_me: $ac_file is unchanged" >&6;}
12991 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12992 X"$ac_file" : 'X\(//\)[^/]' \| \
12993 X"$ac_file" : 'X\(//\)$' \| \
12994 X"$ac_file" : 'X\(/\)' \| \
12995 . : '\(.\)' 2>/dev/null ||
12997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12999 /^X\(\/\/\)$/{ s//\1/; q; }
13000 /^X\(\/\).*/{ s//\1/; q; }
13002 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13003 { case "$ac_dir" in
13004 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13008 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13009 case $as_mkdir_dir in
13010 # Skip DOS drivespec
13011 ?:) as_incr_dir=$as_mkdir_dir ;;
13013 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13014 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13021 mv $tmp/config.h $ac_file
13025 rm -f $tmp/config.h
13027 # Run the commands associated with the file.
13029 config.h ) # update the timestamp
13030 echo timestamp >"./stamp-h1"
13035 cat >>$CONFIG_STATUS <<\EOF
13038 # CONFIG_COMMANDS section.
13040 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13041 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13042 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13046 test x"$AMDEP_TRUE" != x"" ||
13047 for mf in $CONFIG_FILES; do
13049 Makefile) dirpart=.;;
13050 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
13053 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13054 # Extract the definition of DEP_FILES from the Makefile without
13056 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13057 test -z "$DEPDIR" && continue
13058 # When using ansi2knr, U may be empty or an underscore; expand it
13059 U=`sed -n -e '/^U = / s///p' < "$mf"`
13060 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13061 # We invoke sed twice because it is the simplest approach to
13062 # changing $(DEPDIR) to its actual value in the expansion.
13063 for file in `sed -n -e '
13064 /^DEP_FILES = .*\\\\$/ {
13073 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13074 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13075 # Make sure the directory exists.
13076 test -f "$dirpart/$file" && continue
13077 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
13078 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
13079 # echo "creating $dirpart/$file"
13080 echo '# dummy' > "$dirpart/$file"
13084 default-2 ) for ac_file in $CONFIG_FILES; do
13085 # Support "outfile[:infile[:infile...]]"
13087 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13089 # PO directories have a Makefile.in generated from Makefile.in.in.
13090 case "$ac_file" in */Makefile.in)
13091 # Adjust a relative srcdir.
13092 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13093 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13094 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13095 # In autoconf-2.13 it is called $ac_given_srcdir.
13096 # In autoconf-2.50 it is called $srcdir.
13097 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13098 case "$ac_given_srcdir" in
13099 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13100 /*) top_srcdir="$ac_given_srcdir" ;;
13101 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13103 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13104 rm -f "$ac_dir/POTFILES"
13105 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13106 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
13107 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13108 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13117 cat >>$CONFIG_STATUS <<\EOF
13119 { (exit 0); exit 0; }
13121 chmod +x $CONFIG_STATUS
13122 ac_clean_files=$ac_clean_files_save
13124 # configure is writing to config.log, and then calls config.status.
13125 # config.status does its own redirection, appending to config.log.
13126 # Unfortunately, on DOS this fails, as config.log is still kept open
13127 # by configure, so config.status won't be able to write to it; its
13128 # output is simply discarded. So we exec the FD to /dev/null,
13129 # effectively closing config.log, so it can be properly (re)opened and
13130 # appended to by config.status. When coming back to configure, we
13131 # need to make the FD available again.
13132 if test "$no_create" != yes; then
13135 $SHELL $CONFIG_STATUS || ac_cs_success=false
13137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13138 # would make configure fail if this is the last instruction.
13139 $ac_cs_success || { (exit 1); exit 1; }