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 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 usersec.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
9190 cat >>confdefs.h <<\EOF
9191 #define USE_SYSLOG 1
9194 cat >>confdefs.h <<\EOF
9198 cat >>confdefs.h <<\EOF
9202 cat >>confdefs.h <<\EOF
9203 #define getpass libshadow_getpass
9206 # Check whether --enable-desrpc or --disable-desrpc was given.
9207 if test "${enable_desrpc+set}" = set; then
9208 enableval="$enable_desrpc"
9211 # Check whether --enable-shadowgrp or --disable-shadowgrp was given.
9212 if test "${enable_shadowgrp+set}" = set; then
9213 enableval="$enable_shadowgrp"
9217 # Check whether --with-libcrack or --without-libcrack was given.
9218 if test "${with_libcrack+set}" = set; then
9219 withval="$with_libcrack"
9223 # Check whether --with-libcrypt or --without-libcrypt was given.
9224 if test "${with_libcrypt+set}" = set; then
9225 withval="$with_libcrypt"
9229 # Check whether --with-libopie or --without-libopie was given.
9230 if test "${with_libopie+set}" = set; then
9231 withval="$with_libopie"
9235 # Check whether --with-libpam or --without-libpam was given.
9236 if test "${with_libpam+set}" = set; then
9237 withval="$with_libpam"
9241 # Check whether --with-libskey or --without-libskey was given.
9242 if test "${with_libskey+set}" = set; then
9243 withval="$with_libskey"
9247 # Check whether --with-libtcfs or --without-libtcfs was given.
9248 if test "${with_libtcfs+set}" = set; then
9249 withval="$with_libtcfs"
9253 echo "$as_me:9253: checking for inet_ntoa" >&5
9254 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
9255 if test "${ac_cv_func_inet_ntoa+set}" = set; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 cat >conftest.$ac_ext <<_ACEOF
9259 #line 9259 "configure"
9260 #include "confdefs.h"
9261 /* System header to define __stub macros and hopefully few prototypes,
9262 which can conflict with char inet_ntoa (); below. */
9264 /* Override any gcc2 internal prototype to avoid an error. */
9268 /* We use char because int might match the return type of a gcc2
9269 builtin and then its argument prototype would still apply. */
9276 /* The GNU C library defines this for functions which it implements
9277 to always fail with ENOSYS. Some functions are actually named
9278 something starting with __ and the normal name is an alias. */
9279 #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:9290: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>&5
9293 echo "$as_me:9293: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:9296: \"$ac_try\"") >&5
9299 echo "$as_me:9299: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 ac_cv_func_inet_ntoa=yes
9303 echo "$as_me: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9305 ac_cv_func_inet_ntoa=no
9307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9309 echo "$as_me:9309: result: $ac_cv_func_inet_ntoa" >&5
9310 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
9311 if test $ac_cv_func_inet_ntoa = yes; then
9315 echo "$as_me:9315: checking for inet_ntoa in -linet" >&5
9316 echo $ECHO_N "checking for inet_ntoa in -linet... $ECHO_C" >&6
9317 if test "${ac_cv_lib_inet_inet_ntoa+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 ac_check_lib_save_LIBS=$LIBS
9322 cat >conftest.$ac_ext <<_ACEOF
9323 #line 9323 "configure"
9324 #include "confdefs.h"
9326 /* Override any gcc2 internal prototype to avoid an error. */
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (eval echo "$as_me:9342: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>&5
9345 echo "$as_me:9345: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -s conftest$ac_exeext'
9348 { (eval echo "$as_me:9348: \"$ac_try\"") >&5
9351 echo "$as_me:9351: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 ac_cv_lib_inet_inet_ntoa=yes
9355 echo "$as_me: failed program was:" >&5
9356 cat conftest.$ac_ext >&5
9357 ac_cv_lib_inet_inet_ntoa=no
9359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9360 LIBS=$ac_check_lib_save_LIBS
9362 echo "$as_me:9362: result: $ac_cv_lib_inet_inet_ntoa" >&5
9363 echo "${ECHO_T}$ac_cv_lib_inet_inet_ntoa" >&6
9364 if test $ac_cv_lib_inet_inet_ntoa = yes; then
9365 cat >>confdefs.h <<EOF
9366 #define HAVE_LIBINET 1
9375 echo "$as_me:9375: checking for socket" >&5
9376 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9377 if test "${ac_cv_func_socket+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9383 /* System header to define __stub macros and hopefully few prototypes,
9384 which can conflict with char socket (); below. */
9386 /* Override any gcc2 internal prototype to avoid an error. */
9390 /* We use char because int might match the return type of a gcc2
9391 builtin and then its argument prototype would still apply. */
9398 /* The GNU C library defines this for functions which it implements
9399 to always fail with ENOSYS. Some functions are actually named
9400 something starting with __ and the normal name is an alias. */
9401 #if defined (__stub_socket) || defined (__stub___socket)
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:9412: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>&5
9415 echo "$as_me:9415: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -s conftest$ac_exeext'
9418 { (eval echo "$as_me:9418: \"$ac_try\"") >&5
9421 echo "$as_me:9421: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_cv_func_socket=yes
9425 echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 ac_cv_func_socket=no
9429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9431 echo "$as_me:9431: result: $ac_cv_func_socket" >&5
9432 echo "${ECHO_T}$ac_cv_func_socket" >&6
9433 if test $ac_cv_func_socket = yes; then
9437 echo "$as_me:9437: checking for socket in -lsocket" >&5
9438 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9439 if test "${ac_cv_lib_socket_socket+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 ac_check_lib_save_LIBS=$LIBS
9443 LIBS="-lsocket $LIBS"
9444 cat >conftest.$ac_ext <<_ACEOF
9445 #line 9445 "configure"
9446 #include "confdefs.h"
9448 /* Override any gcc2 internal prototype to avoid an error. */
9452 /* We use char because int might match the return type of a gcc2
9453 builtin and then its argument prototype would still apply. */
9463 rm -f conftest.$ac_objext conftest$ac_exeext
9464 if { (eval echo "$as_me:9464: \"$ac_link\"") >&5
9465 (eval $ac_link) 2>&5
9467 echo "$as_me:9467: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -s conftest$ac_exeext'
9470 { (eval echo "$as_me:9470: \"$ac_try\"") >&5
9473 echo "$as_me:9473: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 ac_cv_lib_socket_socket=yes
9477 echo "$as_me: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 ac_cv_lib_socket_socket=no
9481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_check_lib_save_LIBS
9484 echo "$as_me:9484: result: $ac_cv_lib_socket_socket" >&5
9485 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9486 if test $ac_cv_lib_socket_socket = yes; then
9487 cat >>confdefs.h <<EOF
9488 #define HAVE_LIBSOCKET 1
9491 LIBS="-lsocket $LIBS"
9497 echo "$as_me:9497: checking for gethostbyname" >&5
9498 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9499 if test "${ac_cv_func_gethostbyname+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 cat >conftest.$ac_ext <<_ACEOF
9503 #line 9503 "configure"
9504 #include "confdefs.h"
9505 /* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char gethostbyname (); below. */
9508 /* Override any gcc2 internal prototype to avoid an error. */
9512 /* We use char because int might match the return type of a gcc2
9513 builtin and then its argument prototype would still apply. */
9514 char gethostbyname ();
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:9534: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>&5
9537 echo "$as_me:9537: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -s conftest$ac_exeext'
9540 { (eval echo "$as_me:9540: \"$ac_try\"") >&5
9543 echo "$as_me:9543: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_func_gethostbyname=yes
9547 echo "$as_me: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9549 ac_cv_func_gethostbyname=no
9551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9553 echo "$as_me:9553: result: $ac_cv_func_gethostbyname" >&5
9554 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9555 if test $ac_cv_func_gethostbyname = yes; then
9559 echo "$as_me:9559: checking for gethostbyname in -lnsl" >&5
9560 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9561 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 ac_check_lib_save_LIBS=$LIBS
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line 9567 "configure"
9568 #include "confdefs.h"
9570 /* Override any gcc2 internal prototype to avoid an error. */
9574 /* We use char because int might match the return type of a gcc2
9575 builtin and then its argument prototype would still apply. */
9576 char gethostbyname ();
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (eval echo "$as_me:9586: \"$ac_link\"") >&5
9587 (eval $ac_link) 2>&5
9589 echo "$as_me:9589: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -s conftest$ac_exeext'
9592 { (eval echo "$as_me:9592: \"$ac_try\"") >&5
9595 echo "$as_me:9595: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 ac_cv_lib_nsl_gethostbyname=yes
9599 echo "$as_me: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9601 ac_cv_lib_nsl_gethostbyname=no
9603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9606 echo "$as_me:9606: result: $ac_cv_lib_nsl_gethostbyname" >&5
9607 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9608 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9609 cat >>confdefs.h <<EOF
9610 #define HAVE_LIBNSL 1
9619 if test "$enable_desrpc" != "no" -a "$ac_cv_header_rpc_key_prot_h" = "yes" ; then
9620 echo "$as_me:9620: checking for getsecretkey" >&5
9621 echo $ECHO_N "checking for getsecretkey... $ECHO_C" >&6
9622 if test "${ac_cv_func_getsecretkey+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 cat >conftest.$ac_ext <<_ACEOF
9626 #line 9626 "configure"
9627 #include "confdefs.h"
9628 /* System header to define __stub macros and hopefully few prototypes,
9629 which can conflict with char getsecretkey (); below. */
9631 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9637 char getsecretkey ();
9643 /* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646 #if defined (__stub_getsecretkey) || defined (__stub___getsecretkey)
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:9657: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>&5
9660 echo "$as_me:9660: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:9663: \"$ac_try\"") >&5
9666 echo "$as_me:9666: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_func_getsecretkey=yes
9670 echo "$as_me: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 ac_cv_func_getsecretkey=no
9674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9676 echo "$as_me:9676: result: $ac_cv_func_getsecretkey" >&5
9677 echo "${ECHO_T}$ac_cv_func_getsecretkey" >&6
9678 if test $ac_cv_func_getsecretkey = yes; then
9679 cat >>confdefs.h <<\EOF
9684 echo "$as_me:9684: checking for getsecretkey in -lrpcsvc" >&5
9685 echo $ECHO_N "checking for getsecretkey in -lrpcsvc... $ECHO_C" >&6
9686 if test "${ac_cv_lib_rpcsvc_getsecretkey+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-lrpcsvc $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 #line 9692 "configure"
9693 #include "confdefs.h"
9695 /* Override any gcc2 internal prototype to avoid an error. */
9699 /* We use char because int might match the return type of a gcc2
9700 builtin and then its argument prototype would still apply. */
9701 char getsecretkey ();
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:9711: \"$ac_link\"") >&5
9712 (eval $ac_link) 2>&5
9714 echo "$as_me:9714: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (eval echo "$as_me:9717: \"$ac_try\"") >&5
9720 echo "$as_me:9720: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9722 ac_cv_lib_rpcsvc_getsecretkey=yes
9724 echo "$as_me: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9726 ac_cv_lib_rpcsvc_getsecretkey=no
9728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9729 LIBS=$ac_check_lib_save_LIBS
9731 echo "$as_me:9731: result: $ac_cv_lib_rpcsvc_getsecretkey" >&5
9732 echo "${ECHO_T}$ac_cv_lib_rpcsvc_getsecretkey" >&6
9733 if test $ac_cv_lib_rpcsvc_getsecretkey = yes; then
9734 cat >>confdefs.h <<\EOF
9744 if test "$enable_shadowgrp" != "no"; then
9745 cat >>confdefs.h <<\EOF
9751 if test "$with_libcrypt" != "no"; then
9752 echo "$as_me:9752: checking for crypt in -lcrypt" >&5
9753 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9754 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 ac_check_lib_save_LIBS=$LIBS
9758 LIBS="-lcrypt $LIBS"
9759 cat >conftest.$ac_ext <<_ACEOF
9760 #line 9760 "configure"
9761 #include "confdefs.h"
9763 /* Override any gcc2 internal prototype to avoid an error. */
9767 /* We use char because int might match the return type of a gcc2
9768 builtin and then its argument prototype would still apply. */
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (eval echo "$as_me:9779: \"$ac_link\"") >&5
9780 (eval $ac_link) 2>&5
9782 echo "$as_me:9782: \$? = $ac_status" >&5
9783 (exit $ac_status); } &&
9784 { ac_try='test -s conftest$ac_exeext'
9785 { (eval echo "$as_me:9785: \"$ac_try\"") >&5
9788 echo "$as_me:9788: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_cv_lib_crypt_crypt=yes
9792 echo "$as_me: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9794 ac_cv_lib_crypt_crypt=no
9796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9797 LIBS=$ac_check_lib_save_LIBS
9799 echo "$as_me:9799: result: $ac_cv_lib_crypt_crypt" >&5
9800 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9801 if test $ac_cv_lib_crypt_crypt = yes; then
9802 cat >>confdefs.h <<\EOF
9803 #define HAVE_LIBCRYPT 1
9810 if test "$with_libcrack" != "no"; then
9811 echo "checking cracklib flavour, don't be surprised by the results"
9812 echo "$as_me:9812: checking for FascistCheck in -lcrack" >&5
9813 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
9814 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 ac_check_lib_save_LIBS=$LIBS
9818 LIBS="-lcrack $LIBS"
9819 cat >conftest.$ac_ext <<_ACEOF
9820 #line 9820 "configure"
9821 #include "confdefs.h"
9823 /* Override any gcc2 internal prototype to avoid an error. */
9827 /* We use char because int might match the return type of a gcc2
9828 builtin and then its argument prototype would still apply. */
9829 char FascistCheck ();
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:9839: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>&5
9842 echo "$as_me:9842: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (eval echo "$as_me:9845: \"$ac_try\"") >&5
9848 echo "$as_me:9848: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_lib_crack_FascistCheck=yes
9852 echo "$as_me: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 ac_cv_lib_crack_FascistCheck=no
9856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9859 echo "$as_me:9859: result: $ac_cv_lib_crack_FascistCheck" >&5
9860 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
9861 if test $ac_cv_lib_crack_FascistCheck = yes; then
9862 cat >>confdefs.h <<\EOF
9863 #define HAVE_LIBCRACK 1
9868 echo "$as_me:9868: checking for FascistHistory in -lcrack" >&5
9869 echo $ECHO_N "checking for FascistHistory in -lcrack... $ECHO_C" >&6
9870 if test "${ac_cv_lib_crack_FascistHistory+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 ac_check_lib_save_LIBS=$LIBS
9874 LIBS="-lcrack $LIBS"
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line 9876 "configure"
9877 #include "confdefs.h"
9879 /* Override any gcc2 internal prototype to avoid an error. */
9883 /* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9885 char FascistHistory ();
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:9895: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>&5
9898 echo "$as_me:9898: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (eval echo "$as_me:9901: \"$ac_try\"") >&5
9904 echo "$as_me:9904: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_lib_crack_FascistHistory=yes
9908 echo "$as_me: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 ac_cv_lib_crack_FascistHistory=no
9912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9913 LIBS=$ac_check_lib_save_LIBS
9915 echo "$as_me:9915: result: $ac_cv_lib_crack_FascistHistory" >&5
9916 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistory" >&6
9917 if test $ac_cv_lib_crack_FascistHistory = yes; then
9918 cat >>confdefs.h <<\EOF
9919 #define HAVE_LIBCRACK_HIST 1
9924 echo "$as_me:9924: checking for FascistHistoryPw in -lcrack" >&5
9925 echo $ECHO_N "checking for FascistHistoryPw in -lcrack... $ECHO_C" >&6
9926 if test "${ac_cv_lib_crack_FascistHistoryPw+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 ac_check_lib_save_LIBS=$LIBS
9930 LIBS="-lcrack $LIBS"
9931 cat >conftest.$ac_ext <<_ACEOF
9932 #line 9932 "configure"
9933 #include "confdefs.h"
9935 /* Override any gcc2 internal prototype to avoid an error. */
9939 /* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9941 char FascistHistoryPw ();
9945 FascistHistoryPw ();
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:9951: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>&5
9954 echo "$as_me:9954: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:9957: \"$ac_try\"") >&5
9960 echo "$as_me:9960: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 ac_cv_lib_crack_FascistHistoryPw=yes
9964 echo "$as_me: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 ac_cv_lib_crack_FascistHistoryPw=no
9968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9969 LIBS=$ac_check_lib_save_LIBS
9971 echo "$as_me:9971: result: $ac_cv_lib_crack_FascistHistoryPw" >&5
9972 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistoryPw" >&6
9973 if test $ac_cv_lib_crack_FascistHistoryPw = yes; then
9974 cat >>confdefs.h <<\EOF
9975 #define HAVE_LIBCRACK_PW 1
9982 if test "$with_libskey" = "yes"; then
9983 echo "$as_me:9983: checking for MD5Init in -lmd" >&5
9984 echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
9985 if test "${ac_cv_lib_md_MD5Init+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 ac_check_lib_save_LIBS=$LIBS
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line 9991 "configure"
9992 #include "confdefs.h"
9994 /* Override any gcc2 internal prototype to avoid an error. */
9998 /* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (eval echo "$as_me:10010: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10013 echo "$as_me:10013: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:10016: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:10019: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_md_MD5Init=yes
10023 echo "$as_me: failed program was:" >&5
10024 cat conftest.$ac_ext >&5
10025 ac_cv_lib_md_MD5Init=no
10027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10028 LIBS=$ac_check_lib_save_LIBS
10030 echo "$as_me:10030: result: $ac_cv_lib_md_MD5Init" >&5
10031 echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
10032 if test $ac_cv_lib_md_MD5Init = yes; then
10036 echo "$as_me:10036: checking for skeychallenge in -lskey" >&5
10037 echo $ECHO_N "checking for skeychallenge in -lskey... $ECHO_C" >&6
10038 if test "${ac_cv_lib_skey_skeychallenge+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-lskey $LIBMD $LIBCRYPT $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10047 /* Override any gcc2 internal prototype to avoid an error. */
10051 /* We use char because int might match the return type of a gcc2
10052 builtin and then its argument prototype would still apply. */
10053 char skeychallenge ();
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (eval echo "$as_me:10063: \"$ac_link\"") >&5
10064 (eval $ac_link) 2>&5
10066 echo "$as_me:10066: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:10069: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:10072: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_lib_skey_skeychallenge=yes
10076 echo "$as_me: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 ac_cv_lib_skey_skeychallenge=no
10080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10081 LIBS=$ac_check_lib_save_LIBS
10083 echo "$as_me:10083: result: $ac_cv_lib_skey_skeychallenge" >&5
10084 echo "${ECHO_T}$ac_cv_lib_skey_skeychallenge" >&6
10085 if test $ac_cv_lib_skey_skeychallenge = yes; then
10086 cat >>confdefs.h <<\EOF
10092 elif test "$with_libopie" = "yes"; then
10093 echo "$as_me:10093: checking for opiechallenge in -lopie" >&5
10094 echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6
10095 if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 ac_check_lib_save_LIBS=$LIBS
10099 LIBS="-lopie $LIBCRYPT $LIBS"
10100 cat >conftest.$ac_ext <<_ACEOF
10101 #line 10101 "configure"
10102 #include "confdefs.h"
10104 /* Override any gcc2 internal prototype to avoid an error. */
10108 /* We use char because int might match the return type of a gcc2
10109 builtin and then its argument prototype would still apply. */
10110 char opiechallenge ();
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (eval echo "$as_me:10120: \"$ac_link\"") >&5
10121 (eval $ac_link) 2>&5
10123 echo "$as_me:10123: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -s conftest$ac_exeext'
10126 { (eval echo "$as_me:10126: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:10129: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ac_cv_lib_opie_opiechallenge=yes
10133 echo "$as_me: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10135 ac_cv_lib_opie_opiechallenge=no
10137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 echo "$as_me:10140: result: $ac_cv_lib_opie_opiechallenge" >&5
10141 echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6
10142 if test $ac_cv_lib_opie_opiechallenge = yes; then
10143 cat >>confdefs.h <<\EOF
10151 if test "$with_libtcfs" = "yes"; then
10152 echo "$as_me:10152: checking for tcfs_encrypt_key in -ltcfs" >&5
10153 echo $ECHO_N "checking for tcfs_encrypt_key in -ltcfs... $ECHO_C" >&6
10154 if test "${ac_cv_lib_tcfs_tcfs_encrypt_key+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-ltcfs -lgdbm $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line 10160 "configure"
10161 #include "confdefs.h"
10163 /* Override any gcc2 internal prototype to avoid an error. */
10167 /* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10169 char tcfs_encrypt_key ();
10173 tcfs_encrypt_key ();
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (eval echo "$as_me:10179: \"$ac_link\"") >&5
10180 (eval $ac_link) 2>&5
10182 echo "$as_me:10182: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (eval echo "$as_me:10185: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:10188: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 ac_cv_lib_tcfs_tcfs_encrypt_key=yes
10192 echo "$as_me: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10194 ac_cv_lib_tcfs_tcfs_encrypt_key=no
10196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10197 LIBS=$ac_check_lib_save_LIBS
10199 echo "$as_me:10199: result: $ac_cv_lib_tcfs_tcfs_encrypt_key" >&5
10200 echo "${ECHO_T}$ac_cv_lib_tcfs_tcfs_encrypt_key" >&6
10201 if test $ac_cv_lib_tcfs_tcfs_encrypt_key = yes; then
10202 cat >>confdefs.h <<\EOF
10203 #define HAVE_TCFS 1
10205 cat >>confdefs.h <<\EOF
10206 #define TCFS_GDBM_SUPPORT 1
10208 LIBTCFS="-ltcfs -lgdbm"
10213 if test "$with_libpam" = "yes"; then
10214 echo "$as_me:10214: checking for pam_start in -lpam" >&5
10215 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
10216 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 ac_check_lib_save_LIBS=$LIBS
10221 cat >conftest.$ac_ext <<_ACEOF
10222 #line 10222 "configure"
10223 #include "confdefs.h"
10225 /* Override any gcc2 internal prototype to avoid an error. */
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:10241: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>&5
10244 echo "$as_me:10244: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try='test -s conftest$ac_exeext'
10247 { (eval echo "$as_me:10247: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10250 echo "$as_me:10250: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 ac_cv_lib_pam_pam_start=yes
10254 echo "$as_me: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 ac_cv_lib_pam_pam_start=no
10258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10261 echo "$as_me:10261: result: $ac_cv_lib_pam_pam_start" >&5
10262 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
10263 if test $ac_cv_lib_pam_pam_start = yes; then
10264 cat >>confdefs.h <<\EOF
10269 echo "$as_me:10269: checking for main in -lpam_misc" >&5
10270 echo $ECHO_N "checking for main in -lpam_misc... $ECHO_C" >&6
10271 if test "${ac_cv_lib_pam_misc_main+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 ac_check_lib_save_LIBS=$LIBS
10275 LIBS="-lpam_misc { { echo "$as_me:10275: error: libpam_misc is missing" >&5
10276 echo "$as_me: error: libpam_misc is missing" >&2;}
10277 { (exit 1); exit 1; }; }
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line 10280 "configure"
10281 #include "confdefs.h"
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (eval echo "$as_me:10292: \"$ac_link\"") >&5
10293 (eval $ac_link) 2>&5
10295 echo "$as_me:10295: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:10298: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:10301: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_lib_pam_misc_main=yes
10305 echo "$as_me: failed program was:" >&5
10306 cat conftest.$ac_ext >&5
10307 ac_cv_lib_pam_misc_main=no
10309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10312 echo "$as_me:10312: result: $ac_cv_lib_pam_misc_main" >&5
10313 echo "${ECHO_T}$ac_cv_lib_pam_misc_main" >&6
10314 if test $ac_cv_lib_pam_misc_main = yes; then
10315 LIBPAM="$LIBPAM -lpam_misc"
10318 echo "$as_me:10318: checking use login access checking if PAM not used" >&5
10319 echo $ECHO_N "checking use login access checking if PAM not used... $ECHO_C" >&6
10320 cat >>confdefs.h <<\EOF
10321 #define LOGIN_ACCESS 1
10324 echo "$as_me:10324: result: yes" >&5
10325 echo "${ECHO_T}yes" >&6
10329 echo "$as_me:10329: checking use login and su access checking if PAM not used" >&5
10330 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
10331 echo "$as_me:10331: result: no" >&5
10332 echo "${ECHO_T}no" >&6
10334 echo "$as_me:10334: checking use login and su access checking if PAM not used" >&5
10335 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
10336 cat >>confdefs.h <<\EOF
10337 #define LOGIN_ACCESS 1
10340 cat >>confdefs.h <<\EOF
10341 #define SU_ACCESS 1
10344 echo "$as_me:10344: result: yes" >&5
10345 echo "${ECHO_T}yes" >&6
10348 ALL_LINGUAS="cs el fr pl sv uk"
10349 if test -n "$ac_tool_prefix"; then
10350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10352 echo "$as_me:10352: checking for $ac_word" >&5
10353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10354 if test "${ac_cv_prog_RANLIB+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 if test -n "$RANLIB"; then
10358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10360 ac_save_IFS=$IFS; IFS=$ac_path_separator
10362 for ac_dir in $ac_dummy; do
10364 test -z "$ac_dir" && ac_dir=.
10365 $as_executable_p "$ac_dir/$ac_word" || continue
10366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10367 echo "$as_me:10367: found $ac_dir/$ac_word" >&5
10373 RANLIB=$ac_cv_prog_RANLIB
10374 if test -n "$RANLIB"; then
10375 echo "$as_me:10375: result: $RANLIB" >&5
10376 echo "${ECHO_T}$RANLIB" >&6
10378 echo "$as_me:10378: result: no" >&5
10379 echo "${ECHO_T}no" >&6
10383 if test -z "$ac_cv_prog_RANLIB"; then
10384 ac_ct_RANLIB=$RANLIB
10385 # Extract the first word of "ranlib", so it can be a program name with args.
10386 set dummy ranlib; ac_word=$2
10387 echo "$as_me:10387: checking for $ac_word" >&5
10388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 if test -n "$ac_ct_RANLIB"; then
10393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10395 ac_save_IFS=$IFS; IFS=$ac_path_separator
10397 for ac_dir in $ac_dummy; do
10399 test -z "$ac_dir" && ac_dir=.
10400 $as_executable_p "$ac_dir/$ac_word" || continue
10401 ac_cv_prog_ac_ct_RANLIB="ranlib"
10402 echo "$as_me:10402: found $ac_dir/$ac_word" >&5
10406 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10410 if test -n "$ac_ct_RANLIB"; then
10411 echo "$as_me:10411: result: $ac_ct_RANLIB" >&5
10412 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10414 echo "$as_me:10414: result: no" >&5
10415 echo "${ECHO_T}no" >&6
10418 RANLIB=$ac_ct_RANLIB
10420 RANLIB="$ac_cv_prog_RANLIB"
10423 echo "$as_me:10423: checking for inline" >&5
10424 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10425 if test "${ac_cv_c_inline+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 for ac_kw in inline __inline__ __inline; do
10430 cat >conftest.$ac_ext <<_ACEOF
10431 #line 10431 "configure"
10432 #include "confdefs.h"
10433 #ifndef __cplusplus
10434 static $ac_kw int static_foo () {return 0; }
10435 $ac_kw int foo () {return 0; }
10439 rm -f conftest.$ac_objext
10440 if { (eval echo "$as_me:10440: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10443 echo "$as_me:10443: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -s conftest.$ac_objext'
10446 { (eval echo "$as_me:10446: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:10449: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
10451 ac_cv_c_inline=$ac_kw; break
10453 echo "$as_me: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10456 rm -f conftest.$ac_objext conftest.$ac_ext
10460 echo "$as_me:10460: result: $ac_cv_c_inline" >&5
10461 echo "${ECHO_T}$ac_cv_c_inline" >&6
10462 case $ac_cv_c_inline in
10465 cat >>confdefs.h <<\EOF
10469 *) cat >>confdefs.h <<EOF
10470 #define inline $ac_cv_c_inline
10475 echo "$as_me:10475: checking for size_t" >&5
10476 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10477 if test "${ac_cv_type_size_t+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 cat >conftest.$ac_ext <<_ACEOF
10481 #line 10481 "configure"
10482 #include "confdefs.h"
10483 $ac_includes_default
10489 if (sizeof (size_t))
10495 rm -f conftest.$ac_objext
10496 if { (eval echo "$as_me:10496: \"$ac_compile\"") >&5
10497 (eval $ac_compile) 2>&5
10499 echo "$as_me:10499: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:10502: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 echo "$as_me:10505: \$? = $ac_status" >&5
10506 (exit $ac_status); }; }; then
10507 ac_cv_type_size_t=yes
10509 echo "$as_me: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 ac_cv_type_size_t=no
10513 rm -f conftest.$ac_objext conftest.$ac_ext
10515 echo "$as_me:10515: result: $ac_cv_type_size_t" >&5
10516 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10517 if test $ac_cv_type_size_t = yes; then
10521 cat >>confdefs.h <<EOF
10522 #define size_t unsigned
10527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10528 # for constant arguments. Useless!
10529 echo "$as_me:10529: checking for working alloca.h" >&5
10530 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10531 if test "${ac_cv_working_alloca_h+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 cat >conftest.$ac_ext <<_ACEOF
10535 #line 10535 "configure"
10536 #include "confdefs.h"
10537 #include <alloca.h>
10541 char *p = (char *) alloca (2 * sizeof (int));
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (eval echo "$as_me:10547: \"$ac_link\"") >&5
10548 (eval $ac_link) 2>&5
10550 echo "$as_me:10550: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -s conftest$ac_exeext'
10553 { (eval echo "$as_me:10553: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10556 echo "$as_me:10556: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 ac_cv_working_alloca_h=yes
10560 echo "$as_me: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 ac_cv_working_alloca_h=no
10564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10566 echo "$as_me:10566: result: $ac_cv_working_alloca_h" >&5
10567 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10568 if test $ac_cv_working_alloca_h = yes; then
10570 cat >>confdefs.h <<\EOF
10571 #define HAVE_ALLOCA_H 1
10576 echo "$as_me:10576: checking for alloca" >&5
10577 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10578 if test "${ac_cv_func_alloca_works+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line 10582 "configure"
10583 #include "confdefs.h"
10585 # define alloca __builtin_alloca
10588 # include <malloc.h>
10589 # define alloca _alloca
10592 # include <alloca.h>
10597 # ifndef alloca /* predefined by HP cc +Olibcalls */
10608 char *p = (char *) alloca (1);
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (eval echo "$as_me:10614: \"$ac_link\"") >&5
10615 (eval $ac_link) 2>&5
10617 echo "$as_me:10617: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -s conftest$ac_exeext'
10620 { (eval echo "$as_me:10620: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10623 echo "$as_me:10623: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625 ac_cv_func_alloca_works=yes
10627 echo "$as_me: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10629 ac_cv_func_alloca_works=no
10631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10633 echo "$as_me:10633: result: $ac_cv_func_alloca_works" >&5
10634 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10636 if test $ac_cv_func_alloca_works = yes; then
10638 cat >>confdefs.h <<\EOF
10639 #define HAVE_ALLOCA 1
10643 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10644 # that cause trouble. Some versions do not even contain alloca or
10645 # contain a buggy version. If you still want to use their alloca,
10646 # use ar to extract alloca.o from them instead of compiling alloca.c.
10648 ALLOCA=alloca.$ac_objext
10650 cat >>confdefs.h <<\EOF
10654 echo "$as_me:10654: checking whether \`alloca.c' needs Cray hooks" >&5
10655 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10656 if test "${ac_cv_os_cray+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 cat >conftest.$ac_ext <<_ACEOF
10660 #line 10660 "configure"
10661 #include "confdefs.h"
10662 #if defined(CRAY) && ! defined(CRAY2)
10669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10670 egrep "webecray" >/dev/null 2>&1; then
10678 echo "$as_me:10678: result: $ac_cv_os_cray" >&5
10679 echo "${ECHO_T}$ac_cv_os_cray" >&6
10680 if test $ac_cv_os_cray = yes; then
10681 for ac_func in _getb67 GETB67 getb67; do
10682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10683 echo "$as_me:10683: checking for $ac_func" >&5
10684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10685 if eval "test \"\${$as_ac_var+set}\" = set"; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 cat >conftest.$ac_ext <<_ACEOF
10689 #line 10689 "configure"
10690 #include "confdefs.h"
10691 /* System header to define __stub macros and hopefully few prototypes,
10692 which can conflict with char $ac_func (); below. */
10693 #include <assert.h>
10694 /* Override any gcc2 internal prototype to avoid an error. */
10698 /* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10706 /* The GNU C library defines this for functions which it implements
10707 to always fail with ENOSYS. Some functions are actually named
10708 something starting with __ and the normal name is an alias. */
10709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10719 rm -f conftest.$ac_objext conftest$ac_exeext
10720 if { (eval echo "$as_me:10720: \"$ac_link\"") >&5
10721 (eval $ac_link) 2>&5
10723 echo "$as_me:10723: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try='test -s conftest$ac_exeext'
10726 { (eval echo "$as_me:10726: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10729 echo "$as_me:10729: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 eval "$as_ac_var=yes"
10733 echo "$as_me: failed program was:" >&5
10734 cat conftest.$ac_ext >&5
10735 eval "$as_ac_var=no"
10737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10739 echo "$as_me:10739: result: `eval echo '${'$as_ac_var'}'`" >&5
10740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10741 if test `eval echo '${'$as_ac_var'}'` = yes; then
10743 cat >>confdefs.h <<EOF
10744 #define CRAY_STACKSEG_END $ac_func
10753 echo "$as_me:10753: checking stack direction for C alloca" >&5
10754 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10755 if test "${ac_cv_c_stack_direction+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 if test "$cross_compiling" = yes; then
10759 ac_cv_c_stack_direction=0
10761 cat >conftest.$ac_ext <<_ACEOF
10762 #line 10762 "configure"
10763 #include "confdefs.h"
10765 find_stack_direction ()
10767 static char *addr = 0;
10772 return find_stack_direction ();
10775 return (&dummy > addr) ? 1 : -1;
10781 exit (find_stack_direction () < 0);
10784 rm -f conftest$ac_exeext
10785 if { (eval echo "$as_me:10785: \"$ac_link\"") >&5
10786 (eval $ac_link) 2>&5
10788 echo "$as_me:10788: \$? = $ac_status" >&5
10789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10790 { (eval echo "$as_me:10790: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:10793: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_c_stack_direction=1
10797 echo "$as_me: program exited with status $ac_status" >&5
10798 echo "$as_me: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10800 ac_cv_c_stack_direction=-1
10802 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10805 echo "$as_me:10805: result: $ac_cv_c_stack_direction" >&5
10806 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10808 cat >>confdefs.h <<EOF
10809 #define STACK_DIRECTION $ac_cv_c_stack_direction
10814 for ac_header in stdlib.h unistd.h
10816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10817 echo "$as_me:10817: checking for $ac_header" >&5
10818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10823 #line 10823 "configure"
10824 #include "confdefs.h"
10825 #include <$ac_header>
10827 if { (eval echo "$as_me:10827: \"$ac_cpp conftest.$ac_ext\"") >&5
10828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10830 egrep -v '^ *\+' conftest.er1 >conftest.err
10832 cat conftest.err >&5
10833 echo "$as_me:10833: \$? = $ac_status" >&5
10834 (exit $ac_status); } >/dev/null; then
10835 if test -s conftest.err; then
10836 ac_cpp_err=$ac_c_preproc_warn_flag
10843 if test -z "$ac_cpp_err"; then
10844 eval "$as_ac_Header=yes"
10846 echo "$as_me: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 eval "$as_ac_Header=no"
10850 rm -f conftest.err conftest.$ac_ext
10852 echo "$as_me:10852: result: `eval echo '${'$as_ac_Header'}'`" >&5
10853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10855 cat >>confdefs.h <<EOF
10856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10862 for ac_func in getpagesize
10864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10865 echo "$as_me:10865: checking for $ac_func" >&5
10866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10867 if eval "test \"\${$as_ac_var+set}\" = set"; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 cat >conftest.$ac_ext <<_ACEOF
10871 #line 10871 "configure"
10872 #include "confdefs.h"
10873 /* System header to define __stub macros and hopefully few prototypes,
10874 which can conflict with char $ac_func (); below. */
10875 #include <assert.h>
10876 /* Override any gcc2 internal prototype to avoid an error. */
10880 /* We use char because int might match the return type of a gcc2
10881 builtin and then its argument prototype would still apply. */
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:10902: \"$ac_link\"") >&5
10903 (eval $ac_link) 2>&5
10905 echo "$as_me:10905: \$? = $ac_status" >&5
10906 (exit $ac_status); } &&
10907 { ac_try='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:10908: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:10911: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 eval "$as_ac_var=yes"
10915 echo "$as_me: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10917 eval "$as_ac_var=no"
10919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10921 echo "$as_me:10921: result: `eval echo '${'$as_ac_var'}'`" >&5
10922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<EOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10931 echo "$as_me:10931: checking for working mmap" >&5
10932 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
10933 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 if test "$cross_compiling" = yes; then
10937 ac_cv_func_mmap_fixed_mapped=no
10939 cat >conftest.$ac_ext <<_ACEOF
10940 #line 10940 "configure"
10941 #include "confdefs.h"
10942 $ac_includes_default
10943 /* Thanks to Mike Haertel and Jim Avera for this test.
10944 Here is a matrix of mmap possibilities:
10945 mmap private not fixed
10946 mmap private fixed at somewhere currently unmapped
10947 mmap private fixed at somewhere already mapped
10948 mmap shared not fixed
10949 mmap shared fixed at somewhere currently unmapped
10950 mmap shared fixed at somewhere already mapped
10951 For private mappings, we should verify that changes cannot be read()
10952 back from the file, nor mmap's back from the file at a different
10953 address. (There have been systems where private was not correctly
10954 implemented like the infamous i386 svr4.0, and systems where the
10955 VM page cache was not coherent with the file system buffer cache
10956 like early versions of FreeBSD and possibly contemporary NetBSD.)
10957 For shared mappings, we should conversely verify that changes get
10958 propogated back to all the places they're supposed to be.
10960 Grep wants private fixed already mapped.
10961 The main things grep needs to know about mmap are:
10962 * does it exist and is it safe to write into the mmap'd area
10963 * how to use it (BSD variants) */
10966 #include <sys/mman.h>
10968 #if !STDC_HEADERS && !HAVE_STDLIB_H
10972 /* This mess was copied from the GNU getpagesize.h. */
10973 #if !HAVE_GETPAGESIZE
10974 /* Assume that all systems that can run configure have sys/param.h. */
10975 # if !HAVE_SYS_PARAM_H
10976 # define HAVE_SYS_PARAM_H 1
10979 # ifdef _SC_PAGESIZE
10980 # define getpagesize() sysconf(_SC_PAGESIZE)
10981 # else /* no _SC_PAGESIZE */
10982 # if HAVE_SYS_PARAM_H
10983 # include <sys/param.h>
10984 # ifdef EXEC_PAGESIZE
10985 # define getpagesize() EXEC_PAGESIZE
10986 # else /* no EXEC_PAGESIZE */
10988 # define getpagesize() NBPG * CLSIZE
10991 # endif /* no CLSIZE */
10992 # else /* no NBPG */
10994 # define getpagesize() NBPC
10995 # else /* no NBPC */
10997 # define getpagesize() PAGESIZE
10998 # endif /* PAGESIZE */
10999 # endif /* no NBPC */
11000 # endif /* no NBPG */
11001 # endif /* no EXEC_PAGESIZE */
11002 # else /* no HAVE_SYS_PARAM_H */
11003 # define getpagesize() 8192 /* punt totally */
11004 # endif /* no HAVE_SYS_PARAM_H */
11005 # endif /* no _SC_PAGESIZE */
11007 #endif /* no HAVE_GETPAGESIZE */
11012 char *data, *data2, *data3;
11016 pagesize = getpagesize ();
11018 /* First, make a file with some known garbage in it. */
11019 data = (char *) malloc (pagesize);
11022 for (i = 0; i < pagesize; ++i)
11023 *(data + i) = rand ();
11025 fd = creat ("conftest.mmap", 0600);
11028 if (write (fd, data, pagesize) != pagesize)
11032 /* Next, try to mmap the file at a fixed address which already has
11033 something else allocated at it. If we can, also make sure that
11034 we see the same garbage. */
11035 fd = open ("conftest.mmap", O_RDWR);
11038 data2 = (char *) malloc (2 * pagesize);
11041 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
11042 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11043 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11045 for (i = 0; i < pagesize; ++i)
11046 if (*(data + i) != *(data2 + i))
11049 /* Finally, make sure that changes to the mapped area do not
11050 percolate back to the file as seen by read(). (This is a bug on
11051 some variants of i386 svr4.0.) */
11052 for (i = 0; i < pagesize; ++i)
11053 *(data2 + i) = *(data2 + i) + 1;
11054 data3 = (char *) malloc (pagesize);
11057 if (read (fd, data3, pagesize) != pagesize)
11059 for (i = 0; i < pagesize; ++i)
11060 if (*(data + i) != *(data3 + i))
11066 rm -f conftest$ac_exeext
11067 if { (eval echo "$as_me:11067: \"$ac_link\"") >&5
11068 (eval $ac_link) 2>&5
11070 echo "$as_me:11070: \$? = $ac_status" >&5
11071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11072 { (eval echo "$as_me:11072: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_cv_func_mmap_fixed_mapped=yes
11079 echo "$as_me: program exited with status $ac_status" >&5
11080 echo "$as_me: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11082 ac_cv_func_mmap_fixed_mapped=no
11084 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11087 echo "$as_me:11087: result: $ac_cv_func_mmap_fixed_mapped" >&5
11088 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
11089 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11091 cat >>confdefs.h <<\EOF
11092 #define HAVE_MMAP 1
11096 rm -f conftest.mmap
11098 echo "$as_me:11098: checking whether we are using the GNU C Library 2.1 or newer" >&5
11099 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
11100 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11104 #line 11104 "configure"
11105 #include "confdefs.h"
11107 #include <features.h>
11108 #ifdef __GNU_LIBRARY__
11109 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11116 egrep "Lucky GNU user" >/dev/null 2>&1; then
11117 ac_cv_gnu_library_2_1=yes
11119 ac_cv_gnu_library_2_1=no
11124 echo "$as_me:11124: result: $ac_cv_gnu_library_2_1" >&5
11125 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
11127 GLIBC21="$ac_cv_gnu_library_2_1"
11129 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11130 stdlib.h string.h unistd.h sys/param.h
11132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11133 echo "$as_me:11133: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 cat >conftest.$ac_ext <<_ACEOF
11139 #line 11139 "configure"
11140 #include "confdefs.h"
11141 #include <$ac_header>
11143 if { (eval echo "$as_me:11143: \"$ac_cpp conftest.$ac_ext\"") >&5
11144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11146 egrep -v '^ *\+' conftest.er1 >conftest.err
11148 cat conftest.err >&5
11149 echo "$as_me:11149: \$? = $ac_status" >&5
11150 (exit $ac_status); } >/dev/null; then
11151 if test -s conftest.err; then
11152 ac_cpp_err=$ac_c_preproc_warn_flag
11159 if test -z "$ac_cpp_err"; then
11160 eval "$as_ac_Header=yes"
11162 echo "$as_me: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11164 eval "$as_ac_Header=no"
11166 rm -f conftest.err conftest.$ac_ext
11168 echo "$as_me:11168: result: `eval echo '${'$as_ac_Header'}'`" >&5
11169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11171 cat >>confdefs.h <<EOF
11172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11178 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
11179 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
11180 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
11182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11183 echo "$as_me:11183: checking for $ac_func" >&5
11184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11185 if eval "test \"\${$as_ac_var+set}\" = set"; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cat >conftest.$ac_ext <<_ACEOF
11189 #line 11189 "configure"
11190 #include "confdefs.h"
11191 /* System header to define __stub macros and hopefully few prototypes,
11192 which can conflict with char $ac_func (); below. */
11193 #include <assert.h>
11194 /* Override any gcc2 internal prototype to avoid an error. */
11198 /* We use char because int might match the return type of a gcc2
11199 builtin and then its argument prototype would still apply. */
11206 /* The GNU C library defines this for functions which it implements
11207 to always fail with ENOSYS. Some functions are actually named
11208 something starting with __ and the normal name is an alias. */
11209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (eval echo "$as_me:11220: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>&5
11223 echo "$as_me:11223: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -s conftest$ac_exeext'
11226 { (eval echo "$as_me:11226: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11229 echo "$as_me:11229: \$? = $ac_status" >&5
11230 (exit $ac_status); }; }; then
11231 eval "$as_ac_var=yes"
11233 echo "$as_me: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11235 eval "$as_ac_var=no"
11237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11239 echo "$as_me:11239: result: `eval echo '${'$as_ac_var'}'`" >&5
11240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11241 if test `eval echo '${'$as_ac_var'}'` = yes; then
11242 cat >>confdefs.h <<EOF
11243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11249 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11250 if test "${with_libiconv_prefix+set}" = set; then
11251 withval="$with_libiconv_prefix"
11253 for dir in `echo "$withval" | tr : ' '`; do
11254 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
11255 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
11260 echo "$as_me:11260: checking for iconv" >&5
11261 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11262 if test "${am_cv_func_iconv+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 am_cv_func_iconv="no, consider installing GNU libiconv"
11268 cat >conftest.$ac_ext <<_ACEOF
11269 #line 11269 "configure"
11270 #include "confdefs.h"
11271 #include <stdlib.h>
11276 iconv_t cd = iconv_open("","");
11277 iconv(cd,NULL,NULL,NULL,NULL);
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (eval echo "$as_me:11284: \"$ac_link\"") >&5
11285 (eval $ac_link) 2>&5
11287 echo "$as_me:11287: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -s conftest$ac_exeext'
11290 { (eval echo "$as_me:11290: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11293 echo "$as_me:11293: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 am_cv_func_iconv=yes
11297 echo "$as_me: failed program was:" >&5
11298 cat conftest.$ac_ext >&5
11300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11301 if test "$am_cv_func_iconv" != yes; then
11302 am_save_LIBS="$LIBS"
11303 LIBS="$LIBS -liconv"
11304 cat >conftest.$ac_ext <<_ACEOF
11305 #line 11305 "configure"
11306 #include "confdefs.h"
11307 #include <stdlib.h>
11312 iconv_t cd = iconv_open("","");
11313 iconv(cd,NULL,NULL,NULL,NULL);
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:11320: \"$ac_link\"") >&5
11321 (eval $ac_link) 2>&5
11323 echo "$as_me:11323: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -s conftest$ac_exeext'
11326 { (eval echo "$as_me:11326: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:11329: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 am_cv_lib_iconv=yes
11332 am_cv_func_iconv=yes
11334 echo "$as_me: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11338 LIBS="$am_save_LIBS"
11342 echo "$as_me:11342: result: $am_cv_func_iconv" >&5
11343 echo "${ECHO_T}$am_cv_func_iconv" >&6
11344 if test "$am_cv_func_iconv" = yes; then
11346 cat >>confdefs.h <<\EOF
11347 #define HAVE_ICONV 1
11350 echo "$as_me:11350: checking for iconv declaration" >&5
11351 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11352 if test "${am_cv_proto_iconv+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11357 #line 11357 "configure"
11358 #include "confdefs.h"
11360 #include <stdlib.h>
11366 #if defined(__STDC__) || defined(__cplusplus)
11367 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11380 rm -f conftest.$ac_objext
11381 if { (eval echo "$as_me:11381: \"$ac_compile\"") >&5
11382 (eval $ac_compile) 2>&5
11384 echo "$as_me:11384: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (eval echo "$as_me:11387: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:11390: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 am_cv_proto_iconv_arg1=""
11394 echo "$as_me: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11396 am_cv_proto_iconv_arg1="const"
11398 rm -f conftest.$ac_objext conftest.$ac_ext
11399 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);"
11402 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11403 echo "$as_me:11403: result: ${ac_t:-
11404 }$am_cv_proto_iconv" >&5
11405 echo "${ECHO_T}${ac_t:-
11406 }$am_cv_proto_iconv" >&6
11408 cat >>confdefs.h <<EOF
11409 #define ICONV_CONST $am_cv_proto_iconv_arg1
11414 if test "$am_cv_lib_iconv" = yes; then
11418 echo "$as_me:11418: checking for nl_langinfo and CODESET" >&5
11419 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11420 if test "${am_cv_langinfo_codeset+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11424 #line 11424 "configure"
11425 #include "confdefs.h"
11426 #include <langinfo.h>
11430 char* cs = nl_langinfo(CODESET);
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (eval echo "$as_me:11436: \"$ac_link\"") >&5
11437 (eval $ac_link) 2>&5
11439 echo "$as_me:11439: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -s conftest$ac_exeext'
11442 { (eval echo "$as_me:11442: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11445 echo "$as_me:11445: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11447 am_cv_langinfo_codeset=yes
11449 echo "$as_me: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11451 am_cv_langinfo_codeset=no
11453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11456 echo "$as_me:11456: result: $am_cv_langinfo_codeset" >&5
11457 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11458 if test $am_cv_langinfo_codeset = yes; then
11460 cat >>confdefs.h <<\EOF
11461 #define HAVE_LANGINFO_CODESET 1
11466 if test $ac_cv_header_locale_h = yes; then
11467 echo "$as_me:11467: checking for LC_MESSAGES" >&5
11468 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11469 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 cat >conftest.$ac_ext <<_ACEOF
11473 #line 11473 "configure"
11474 #include "confdefs.h"
11475 #include <locale.h>
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (eval echo "$as_me:11485: \"$ac_link\"") >&5
11486 (eval $ac_link) 2>&5
11488 echo "$as_me:11488: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -s conftest$ac_exeext'
11491 { (eval echo "$as_me:11491: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11494 echo "$as_me:11494: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 am_cv_val_LC_MESSAGES=yes
11498 echo "$as_me: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11500 am_cv_val_LC_MESSAGES=no
11502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11504 echo "$as_me:11504: result: $am_cv_val_LC_MESSAGES" >&5
11505 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11506 if test $am_cv_val_LC_MESSAGES = yes; then
11508 cat >>confdefs.h <<\EOF
11509 #define HAVE_LC_MESSAGES 1
11514 echo "$as_me:11514: checking whether NLS is requested" >&5
11515 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11516 # Check whether --enable-nls or --disable-nls was given.
11517 if test "${enable_nls+set}" = set; then
11518 enableval="$enable_nls"
11523 echo "$as_me:11523: result: $USE_NLS" >&5
11524 echo "${ECHO_T}$USE_NLS" >&6
11526 BUILD_INCLUDED_LIBINTL=no
11527 USE_INCLUDED_LIBINTL=no
11530 if test "$USE_NLS" = "yes"; then
11532 cat >>confdefs.h <<\EOF
11533 #define ENABLE_NLS 1
11536 echo "$as_me:11536: checking whether included gettext is requested" >&5
11537 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11539 # Check whether --with-included-gettext or --without-included-gettext was given.
11540 if test "${with_included_gettext+set}" = set; then
11541 withval="$with_included_gettext"
11542 nls_cv_force_use_gnu_gettext=$withval
11544 nls_cv_force_use_gnu_gettext=no
11546 echo "$as_me:11546: result: $nls_cv_force_use_gnu_gettext" >&5
11547 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11549 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11550 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11553 echo "$as_me:11553: checking for libintl.h" >&5
11554 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
11555 if test "${ac_cv_header_libintl_h+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 cat >conftest.$ac_ext <<_ACEOF
11559 #line 11559 "configure"
11560 #include "confdefs.h"
11561 #include <libintl.h>
11563 if { (eval echo "$as_me:11563: \"$ac_cpp conftest.$ac_ext\"") >&5
11564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11566 egrep -v '^ *\+' conftest.er1 >conftest.err
11568 cat conftest.err >&5
11569 echo "$as_me:11569: \$? = $ac_status" >&5
11570 (exit $ac_status); } >/dev/null; then
11571 if test -s conftest.err; then
11572 ac_cpp_err=$ac_c_preproc_warn_flag
11579 if test -z "$ac_cpp_err"; then
11580 ac_cv_header_libintl_h=yes
11582 echo "$as_me: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 ac_cv_header_libintl_h=no
11586 rm -f conftest.err conftest.$ac_ext
11588 echo "$as_me:11588: result: $ac_cv_header_libintl_h" >&5
11589 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
11590 if test $ac_cv_header_libintl_h = yes; then
11591 echo "$as_me:11591: checking for GNU gettext in libc" >&5
11592 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11593 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 cat >conftest.$ac_ext <<_ACEOF
11597 #line 11597 "configure"
11598 #include "confdefs.h"
11599 #include <libintl.h>
11600 extern int _nl_msg_cat_cntr;
11604 bindtextdomain ("", "");
11605 return (int) gettext ("") + _nl_msg_cat_cntr
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:11611: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11614 echo "$as_me:11614: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:11617: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:11620: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 gt_cv_func_gnugettext1_libc=yes
11624 echo "$as_me: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11626 gt_cv_func_gnugettext1_libc=no
11628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630 echo "$as_me:11630: result: $gt_cv_func_gnugettext1_libc" >&5
11631 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11633 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11634 echo "$as_me:11634: checking for GNU gettext in libintl" >&5
11635 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11636 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 gt_save_LIBS="$LIBS"
11640 LIBS="$LIBS -lintl $LIBICONV"
11641 cat >conftest.$ac_ext <<_ACEOF
11642 #line 11642 "configure"
11643 #include "confdefs.h"
11644 #include <libintl.h>
11645 extern int _nl_msg_cat_cntr;
11649 bindtextdomain ("", "");
11650 return (int) gettext ("") + _nl_msg_cat_cntr
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (eval echo "$as_me:11656: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>&5
11659 echo "$as_me:11659: \$? = $ac_status" >&5
11660 (exit $ac_status); } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (eval echo "$as_me:11662: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:11665: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 gt_cv_func_gnugettext1_libintl=yes
11669 echo "$as_me: failed program was:" >&5
11670 cat conftest.$ac_ext >&5
11671 gt_cv_func_gnugettext1_libintl=no
11673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11674 LIBS="$gt_save_LIBS"
11676 echo "$as_me:11676: result: $gt_cv_func_gnugettext1_libintl" >&5
11677 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11680 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11681 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11682 && test "$PACKAGE" != gettext; }; then
11684 cat >>confdefs.h <<\EOF
11685 #define HAVE_GETTEXT 1
11688 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11689 INTLLIBS="-lintl $LIBICONV"
11692 gt_save_LIBS="$LIBS"
11693 LIBS="$LIBS $INTLLIBS"
11695 for ac_func in dcgettext
11697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 echo "$as_me:11698: checking for $ac_func" >&5
11699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11700 if eval "test \"\${$as_ac_var+set}\" = set"; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 cat >conftest.$ac_ext <<_ACEOF
11704 #line 11704 "configure"
11705 #include "confdefs.h"
11706 /* System header to define __stub macros and hopefully few prototypes,
11707 which can conflict with char $ac_func (); below. */
11708 #include <assert.h>
11709 /* Override any gcc2 internal prototype to avoid an error. */
11713 /* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11721 /* The GNU C library defines this for functions which it implements
11722 to always fail with ENOSYS. Some functions are actually named
11723 something starting with __ and the normal name is an alias. */
11724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (eval echo "$as_me:11735: \"$ac_link\"") >&5
11736 (eval $ac_link) 2>&5
11738 echo "$as_me:11738: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -s conftest$ac_exeext'
11741 { (eval echo "$as_me:11741: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11744 echo "$as_me:11744: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 eval "$as_ac_var=yes"
11748 echo "$as_me: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 eval "$as_ac_var=no"
11752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11754 echo "$as_me:11754: result: `eval echo '${'$as_ac_var'}'`" >&5
11755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11756 if test `eval echo '${'$as_ac_var'}'` = yes; then
11757 cat >>confdefs.h <<EOF
11758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11764 LIBS="$gt_save_LIBS"
11766 # Extract the first word of "msgfmt", so it can be a program name with args.
11767 set dummy msgfmt; ac_word=$2
11768 echo "$as_me:11768: checking for $ac_word" >&5
11769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11770 if test "${ac_cv_path_MSGFMT+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11779 for ac_dir in $PATH; do
11780 test -z "$ac_dir" && ac_dir=.
11781 if test -f $ac_dir/$ac_word; then
11782 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11783 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11789 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11793 MSGFMT="$ac_cv_path_MSGFMT"
11794 if test -n "$MSGFMT"; then
11795 echo "$as_me:11795: result: $MSGFMT" >&5
11796 echo "${ECHO_T}$MSGFMT" >&6
11798 echo "$as_me:11798: result: no" >&5
11799 echo "${ECHO_T}no" >&6
11801 if test "$MSGFMT" != "no"; then
11802 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11803 set dummy gmsgfmt; ac_word=$2
11804 echo "$as_me:11804: checking for $ac_word" >&5
11805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11806 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11814 ac_save_IFS=$IFS; IFS=$ac_path_separator
11816 for ac_dir in $ac_dummy; do
11818 test -z "$ac_dir" && ac_dir=.
11819 if $as_executable_p "$ac_dir/$ac_word"; then
11820 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
11821 echo "$as_me:11821: found $ac_dir/$ac_word" >&5
11826 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11830 GMSGFMT=$ac_cv_path_GMSGFMT
11832 if test -n "$GMSGFMT"; then
11833 echo "$as_me:11833: result: $GMSGFMT" >&5
11834 echo "${ECHO_T}$GMSGFMT" >&6
11836 echo "$as_me:11836: result: no" >&5
11837 echo "${ECHO_T}no" >&6
11842 # Extract the first word of "xgettext", so it can be a program name with args.
11843 set dummy xgettext; ac_word=$2
11844 echo "$as_me:11844: checking for $ac_word" >&5
11845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11846 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 case "$XGETTEXT" in
11851 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11855 for ac_dir in $PATH; do
11856 test -z "$ac_dir" && ac_dir=.
11857 if test -f $ac_dir/$ac_word; then
11858 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11859 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11865 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11869 XGETTEXT="$ac_cv_path_XGETTEXT"
11870 if test -n "$XGETTEXT"; then
11871 echo "$as_me:11871: result: $XGETTEXT" >&5
11872 echo "${ECHO_T}$XGETTEXT" >&6
11874 echo "$as_me:11874: result: no" >&5
11875 echo "${ECHO_T}no" >&6
11883 if test "$CATOBJEXT" = "NONE"; then
11884 nls_cv_use_gnu_gettext=yes
11888 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11889 INTLOBJS="\$(GETTOBJS)"
11890 # Extract the first word of "msgfmt", so it can be a program name with args.
11891 set dummy msgfmt; ac_word=$2
11892 echo "$as_me:11892: checking for $ac_word" >&5
11893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11894 if test "${ac_cv_path_MSGFMT+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11903 for ac_dir in $PATH; do
11904 test -z "$ac_dir" && ac_dir=.
11905 if test -f $ac_dir/$ac_word; then
11906 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11907 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11913 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
11917 MSGFMT="$ac_cv_path_MSGFMT"
11918 if test -n "$MSGFMT"; then
11919 echo "$as_me:11919: result: $MSGFMT" >&5
11920 echo "${ECHO_T}$MSGFMT" >&6
11922 echo "$as_me:11922: result: no" >&5
11923 echo "${ECHO_T}no" >&6
11926 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11927 set dummy gmsgfmt; ac_word=$2
11928 echo "$as_me:11928: checking for $ac_word" >&5
11929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11938 ac_save_IFS=$IFS; IFS=$ac_path_separator
11940 for ac_dir in $ac_dummy; do
11942 test -z "$ac_dir" && ac_dir=.
11943 if $as_executable_p "$ac_dir/$ac_word"; then
11944 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
11945 echo "$as_me:11945: found $ac_dir/$ac_word" >&5
11950 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11954 GMSGFMT=$ac_cv_path_GMSGFMT
11956 if test -n "$GMSGFMT"; then
11957 echo "$as_me:11957: result: $GMSGFMT" >&5
11958 echo "${ECHO_T}$GMSGFMT" >&6
11960 echo "$as_me:11960: result: no" >&5
11961 echo "${ECHO_T}no" >&6
11964 # Extract the first word of "xgettext", so it can be a program name with args.
11965 set dummy xgettext; ac_word=$2
11966 echo "$as_me:11966: checking for $ac_word" >&5
11967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11968 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 case "$XGETTEXT" in
11973 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11977 for ac_dir in $PATH; do
11978 test -z "$ac_dir" && ac_dir=.
11979 if test -f $ac_dir/$ac_word; then
11980 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11981 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11987 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11991 XGETTEXT="$ac_cv_path_XGETTEXT"
11992 if test -n "$XGETTEXT"; then
11993 echo "$as_me:11993: result: $XGETTEXT" >&5
11994 echo "${ECHO_T}$XGETTEXT" >&6
11996 echo "$as_me:11996: result: no" >&5
11997 echo "${ECHO_T}no" >&6
12000 BUILD_INCLUDED_LIBINTL=yes
12001 USE_INCLUDED_LIBINTL=yes
12003 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
12004 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12007 if test "$XGETTEXT" != ":"; then
12008 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12011 echo "$as_me:12011: result: found xgettext program is not GNU xgettext; ignore it" >&5
12012 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12019 ac_config_commands="$ac_config_commands default-2"
12021 if test "$PACKAGE" = gettext; then
12022 BUILD_INCLUDED_LIBINTL=yes
12025 for ac_prog in bison
12027 # Extract the first word of "$ac_prog", so it can be a program name with args.
12028 set dummy $ac_prog; ac_word=$2
12029 echo "$as_me:12029: checking for $ac_word" >&5
12030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12031 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 if test -n "$INTLBISON"; then
12035 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12037 ac_save_IFS=$IFS; IFS=$ac_path_separator
12039 for ac_dir in $ac_dummy; do
12041 test -z "$ac_dir" && ac_dir=.
12042 $as_executable_p "$ac_dir/$ac_word" || continue
12043 ac_cv_prog_INTLBISON="$ac_prog"
12044 echo "$as_me:12044: found $ac_dir/$ac_word" >&5
12050 INTLBISON=$ac_cv_prog_INTLBISON
12051 if test -n "$INTLBISON"; then
12052 echo "$as_me:12052: result: $INTLBISON" >&5
12053 echo "${ECHO_T}$INTLBISON" >&6
12055 echo "$as_me:12055: result: no" >&5
12056 echo "${ECHO_T}no" >&6
12059 test -n "$INTLBISON" && break
12062 if test -z "$INTLBISON"; then
12065 echo "$as_me:12065: checking version of bison" >&5
12066 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
12067 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12068 case $ac_prog_version in
12069 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12070 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12071 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12072 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12074 echo "$as_me:12074: result: $ac_prog_version" >&5
12075 echo "${ECHO_T}$ac_prog_version" >&6
12077 if test $ac_verc_fail = yes; then
12081 for lang in $ALL_LINGUAS; do
12082 GMOFILES="$GMOFILES $lang.gmo"
12083 POFILES="$POFILES $lang.po"
12086 nls_cv_header_intl=
12087 nls_cv_header_libgt=
12095 if test "x$CATOBJEXT" != "x"; then
12096 if test "x$ALL_LINGUAS" = "x"; then
12099 echo "$as_me:12099: checking for catalogs to be installed" >&5
12100 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12102 for presentlang in $ALL_LINGUAS; do
12104 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
12105 # Use the presentlang catalog if desiredlang is
12106 # a. equal to presentlang, or
12107 # b. a variant of presentlang (because in this case,
12108 # presentlang can be used as a fallback for messages
12109 # which are not translated in the desiredlang catalog).
12110 case "$desiredlang" in
12111 "$presentlang"*) useit=yes;;
12114 if test $useit = yes; then
12115 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12118 LINGUAS=$NEW_LINGUAS
12119 echo "$as_me:12119: result: $LINGUAS" >&5
12120 echo "${ECHO_T}$LINGUAS" >&6
12123 if test -n "$LINGUAS"; then
12124 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12129 if test -n "$ac_aux_dir"; then
12130 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12132 if test -z "$MKINSTALLDIRS"; then
12133 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12136 INTL_LIBTOOL_SUFFIX_PREFIX=
12138 ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in doc/Makefile man/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"
12139 cat >confcache <<\_ACEOF
12140 # This file is a shell script that caches the results of configure
12141 # tests run on this system so they can be shared between configure
12142 # scripts and configure runs, see configure's option --config-cache.
12143 # It is not useful on other systems. If it contains results you don't
12144 # want to keep, you may remove or edit it.
12146 # config.status only pays attention to the cache file if you give it
12147 # the --recheck option to rerun configure.
12149 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12151 # following values.
12155 # The following way of writing the cache mishandles newlines in values,
12156 # but we know of no workaround that is simple, portable, and efficient.
12157 # So, don't put newlines in cache variables' values.
12158 # Ultrix sh set writes to stderr and can't be redirected directly,
12159 # and sets the high bit in the cache file unless we assign to the vars.
12162 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12164 # `set' does not quote correctly, so add quotes (double-quote
12165 # substitution turns \\\\ into \\, and sed turns \\ into \).
12168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12171 # `set' quotes correctly as required by POSIX, so do not add quotes.
12173 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12180 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12182 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12184 if cmp -s $cache_file confcache; then :; else
12185 if test -w $cache_file; then
12186 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12187 cat confcache >$cache_file
12189 echo "not updating unwritable cache $cache_file"
12194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12195 # Let make expand exec_prefix.
12196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12198 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12199 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12200 # trailing colons and then remove the whole line if VPATH becomes empty
12201 # (actually we leave an empty line to preserve line numbers).
12202 if test "x$srcdir" = x.; then
12203 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12204 s/:*\$(srcdir):*/:/;
12205 s/:*\${srcdir}:*/:/;
12207 s/^\([^=]*=[ ]*\):*/\1/;
12213 DEFS=-DHAVE_CONFIG_H
12215 : ${CONFIG_STATUS=./config.status}
12216 ac_clean_files_save=$ac_clean_files
12217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12218 { echo "$as_me:12218: creating $CONFIG_STATUS" >&5
12219 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12220 cat >$CONFIG_STATUS <<_ACEOF
12222 # Generated automatically by configure.
12223 # Run this file to recreate the current configuration.
12224 # Compiler output produced by configure, useful for debugging
12225 # configure, is in config.log if it exists.
12228 SHELL=\${CONFIG_SHELL-$SHELL}
12229 ac_cs_invocation="\$0 \$@"
12233 cat >>$CONFIG_STATUS <<\_ACEOF
12234 # Be Bourne compatible
12235 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12238 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12242 # Name of the executable.
12243 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12245 if expr a : '\(a\)' >/dev/null 2>&1; then
12251 rm -f conf$$ conf$$.exe conf$$.file
12253 if ln -s conf$$.file conf$$ 2>/dev/null; then
12254 # We could just check for DJGPP; but this test a) works b) is more generic
12255 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12256 if test -f conf$$.exe; then
12257 # Don't use ln at all; we don't have any links
12262 elif ln conf$$.file conf$$ 2>/dev/null; then
12267 rm -f conf$$ conf$$.exe conf$$.file
12269 as_executable_p="test -f"
12271 # Support unset when possible.
12272 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12279 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12280 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12281 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12282 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12283 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12284 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12285 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12286 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12289 # We need space, tab and new line, in precisely that order.
12295 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12301 # Files that config.status was made for.
12302 if test -n "$ac_config_files"; then
12303 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12306 if test -n "$ac_config_headers"; then
12307 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12310 if test -n "$ac_config_links"; then
12311 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12314 if test -n "$ac_config_commands"; then
12315 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12318 cat >>$CONFIG_STATUS <<\EOF
12321 \`$as_me' instantiates files from templates according to the
12322 current configuration.
12324 Usage: $0 [OPTIONS] [FILE]...
12326 -h, --help print this help, then exit
12327 -V, --version print version number, then exit
12328 -d, --debug don't remove temporary files
12329 --recheck update $as_me by reconfiguring in the same conditions
12330 --file=FILE[:TEMPLATE]
12331 instantiate the configuration file FILE
12332 --header=FILE[:TEMPLATE]
12333 instantiate the configuration header FILE
12335 Configuration files:
12338 Configuration headers:
12341 Configuration commands:
12344 Report bugs to <bug-autoconf@gnu.org>."
12347 cat >>$CONFIG_STATUS <<EOF
12350 configured by $0, generated by GNU Autoconf 2.52,
12351 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12353 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12354 Free Software Foundation, Inc.
12355 This config.status script is free software; the Free Software Foundation
12356 gives unlimited permission to copy, distribute and modify it."
12361 cat >>$CONFIG_STATUS <<\EOF
12362 # If no file are specified by the user, then we need to provide default
12363 # value. By we need to know if files were specified by the user.
12369 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12370 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12372 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12376 *) # This is not an option, so the user has probably given explicit
12378 ac_need_defaults=false;;
12382 # Handling of the options.
12384 cat >>$CONFIG_STATUS <<EOF
12385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12386 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12387 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12389 cat >>$CONFIG_STATUS <<\EOF
12390 --version | --vers* | -V )
12391 echo "$ac_cs_version"; exit 0 ;;
12393 # Conflict between --help and --header
12394 { { echo "$as_me:12394: error: ambiguous option: $1
12395 Try \`$0 --help' for more information." >&5
12396 echo "$as_me: error: ambiguous option: $1
12397 Try \`$0 --help' for more information." >&2;}
12398 { (exit 1); exit 1; }; };;
12399 --help | --hel | -h )
12400 echo "$ac_cs_usage"; exit 0 ;;
12401 --debug | --d* | -d )
12403 --file | --fil | --fi | --f )
12405 CONFIG_FILES="$CONFIG_FILES $1"
12406 ac_need_defaults=false;;
12407 --header | --heade | --head | --hea )
12409 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12410 ac_need_defaults=false;;
12412 # This is an error.
12413 -*) { { echo "$as_me:12413: error: unrecognized option: $1
12414 Try \`$0 --help' for more information." >&5
12415 echo "$as_me: error: unrecognized option: $1
12416 Try \`$0 --help' for more information." >&2;}
12417 { (exit 1); exit 1; }; } ;;
12419 *) ac_config_targets="$ac_config_targets $1" ;;
12428 ## ----------------------- ##
12429 ## Running config.status. ##
12430 ## ----------------------- ##
12432 This file was extended by $as_me 2.52, executed with
12433 CONFIG_FILES = $CONFIG_FILES
12434 CONFIG_HEADERS = $CONFIG_HEADERS
12435 CONFIG_LINKS = $CONFIG_LINKS
12436 CONFIG_COMMANDS = $CONFIG_COMMANDS
12437 > $ac_cs_invocation
12438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12443 cat >>$CONFIG_STATUS <<EOF
12445 # INIT-COMMANDS section.
12448 AMDEP_TRUE="$AMDEP_TRUE"
12449 ac_aux_dir="$ac_aux_dir"
12453 cat >>$CONFIG_STATUS <<\EOF
12454 for ac_config_target in $ac_config_targets
12456 case "$ac_config_target" in
12457 # Handling of arguments.
12458 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12459 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12460 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12461 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12462 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12463 "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
12464 "man/pl/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
12465 "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
12466 "libmisc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmisc/Makefile" ;;
12467 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12468 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12469 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
12470 "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
12471 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
12472 "etc/pam.d/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/pam.d/Makefile" ;;
12473 "shadow-utils.spec" ) CONFIG_FILES="$CONFIG_FILES shadow-utils.spec" ;;
12474 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12475 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
12476 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12477 *) { { echo "$as_me:12477: error: invalid argument: $ac_config_target" >&5
12478 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12479 { (exit 1); exit 1; }; };;
12483 # If the user did not use the arguments to specify the items to instantiate,
12484 # then the envvar interface is used. Set only those that are not.
12485 # We use the long form for the default assignment because of an extremely
12486 # bizarre bug on SunOS 4.1.3.
12487 if $ac_need_defaults; then
12488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12493 # Create a temporary directory, and hook for its removal unless debugging.
12496 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12497 trap '{ (exit 1); exit 1; }' 1 2 13 15
12500 # Create a (secure) tmp directory for tmp files.
12503 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12504 test -n "$tmp" && test -d "$tmp"
12507 tmp=$TMPDIR/cs$$-$RANDOM
12508 (umask 077 && mkdir $tmp)
12511 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12512 { (exit 1); exit 1; }
12517 cat >>$CONFIG_STATUS <<EOF
12520 # CONFIG_FILES section.
12523 # No need to generate the scripts if there are no CONFIG_FILES.
12524 # This happens for instance when ./config.status config.h
12525 if test -n "\$CONFIG_FILES"; then
12526 # Protect against being on the right side of a sed subst in config.status.
12527 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12528 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12529 s,@SHELL@,$SHELL,;t t
12530 s,@exec_prefix@,$exec_prefix,;t t
12531 s,@prefix@,$prefix,;t t
12532 s,@program_transform_name@,$program_transform_name,;t t
12533 s,@bindir@,$bindir,;t t
12534 s,@sbindir@,$sbindir,;t t
12535 s,@libexecdir@,$libexecdir,;t t
12536 s,@datadir@,$datadir,;t t
12537 s,@sysconfdir@,$sysconfdir,;t t
12538 s,@sharedstatedir@,$sharedstatedir,;t t
12539 s,@localstatedir@,$localstatedir,;t t
12540 s,@libdir@,$libdir,;t t
12541 s,@includedir@,$includedir,;t t
12542 s,@oldincludedir@,$oldincludedir,;t t
12543 s,@infodir@,$infodir,;t t
12544 s,@mandir@,$mandir,;t t
12545 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12546 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12547 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12548 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12549 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12550 s,@build_alias@,$build_alias,;t t
12551 s,@host_alias@,$host_alias,;t t
12552 s,@target_alias@,$target_alias,;t t
12553 s,@ECHO_C@,$ECHO_C,;t t
12554 s,@ECHO_N@,$ECHO_N,;t t
12555 s,@ECHO_T@,$ECHO_T,;t t
12556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12557 s,@DEFS@,$DEFS,;t t
12558 s,@LIBS@,$LIBS,;t t
12559 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12560 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12561 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12562 s,@PACKAGE@,$PACKAGE,;t t
12563 s,@VERSION@,$VERSION,;t t
12564 s,@EXEEXT@,$EXEEXT,;t t
12565 s,@OBJEXT@,$OBJEXT,;t t
12566 s,@ACLOCAL@,$ACLOCAL,;t t
12567 s,@AUTOCONF@,$AUTOCONF,;t t
12568 s,@AUTOMAKE@,$AUTOMAKE,;t t
12569 s,@AUTOHEADER@,$AUTOHEADER,;t t
12570 s,@MAKEINFO@,$MAKEINFO,;t t
12571 s,@AMTAR@,$AMTAR,;t t
12572 s,@install_sh@,$install_sh,;t t
12573 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12575 s,@SET_MAKE@,$SET_MAKE,;t t
12576 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12577 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12578 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12579 s,@DEPDIR@,$DEPDIR,;t t
12581 s,@CFLAGS@,$CFLAGS,;t t
12582 s,@LDFLAGS@,$LDFLAGS,;t t
12583 s,@CPPFLAGS@,$CPPFLAGS,;t t
12584 s,@ac_ct_CC@,$ac_ct_CC,;t t
12585 s,@am__include@,$am__include,;t t
12586 s,@am__quote@,$am__quote,;t t
12587 s,@CCDEPMODE@,$CCDEPMODE,;t t
12588 s,@LN_S@,$LN_S,;t t
12589 s,@YACC@,$YACC,;t t
12592 s,@ANSI2KNR@,$ANSI2KNR,;t t
12593 s,@build@,$build,;t t
12594 s,@build_cpu@,$build_cpu,;t t
12595 s,@build_vendor@,$build_vendor,;t t
12596 s,@build_os@,$build_os,;t t
12597 s,@host@,$host,;t t
12598 s,@host_cpu@,$host_cpu,;t t
12599 s,@host_vendor@,$host_vendor,;t t
12600 s,@host_os@,$host_os,;t t
12601 s,@ECHO@,$ECHO,;t t
12602 s,@RANLIB@,$RANLIB,;t t
12603 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12604 s,@STRIP@,$STRIP,;t t
12605 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12606 s,@LIBTOOL@,$LIBTOOL,;t t
12607 s,@LIBOBJS@,$LIBOBJS,;t t
12608 s,@LIBCRYPT@,$LIBCRYPT,;t t
12609 s,@LIBCRACK@,$LIBCRACK,;t t
12610 s,@LIBSKEY@,$LIBSKEY,;t t
12611 s,@LIBMD@,$LIBMD,;t t
12612 s,@LIBTCFS@,$LIBTCFS,;t t
12613 s,@LIBPAM@,$LIBPAM,;t t
12614 s,@ALLOCA@,$ALLOCA,;t t
12615 s,@GLIBC21@,$GLIBC21,;t t
12616 s,@LIBICONV@,$LIBICONV,;t t
12617 s,@USE_NLS@,$USE_NLS,;t t
12618 s,@MSGFMT@,$MSGFMT,;t t
12619 s,@GMSGFMT@,$GMSGFMT,;t t
12620 s,@XGETTEXT@,$XGETTEXT,;t t
12621 s,@INTLBISON@,$INTLBISON,;t t
12622 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12623 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12624 s,@CATALOGS@,$CATALOGS,;t t
12625 s,@CATOBJEXT@,$CATOBJEXT,;t t
12626 s,@GMOFILES@,$GMOFILES,;t t
12627 s,@INTLLIBS@,$INTLLIBS,;t t
12628 s,@INTLOBJS@,$INTLOBJS,;t t
12629 s,@POFILES@,$POFILES,;t t
12630 s,@POSUB@,$POSUB,;t t
12631 s,@DATADIRNAME@,$DATADIRNAME,;t t
12632 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12633 s,@GENCAT@,$GENCAT,;t t
12634 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12635 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12640 cat >>$CONFIG_STATUS <<\EOF
12641 # Split the substitutions into bite-sized pieces for seds with
12642 # small command number limits, like on Digital OSF/1 and HP-UX.
12643 ac_max_sed_lines=48
12644 ac_sed_frag=1 # Number of current file.
12645 ac_beg=1 # First line for current file.
12646 ac_end=$ac_max_sed_lines # Line after last line for current file.
12649 while $ac_more_lines; do
12650 if test $ac_beg -gt 1; then
12651 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12653 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12655 if test ! -s $tmp/subs.frag; then
12656 ac_more_lines=false
12658 # The purpose of the label and of the branching condition is to
12659 # speed up the sed processing (if there are no `@' at all, there
12660 # is no need to browse any of the substitutions).
12661 # These are the two extra sed commands mentioned above.
12663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12664 if test -z "$ac_sed_cmds"; then
12665 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12667 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12669 ac_sed_frag=`expr $ac_sed_frag + 1`
12671 ac_end=`expr $ac_end + $ac_max_sed_lines`
12674 if test -z "$ac_sed_cmds"; then
12677 fi # test -n "$CONFIG_FILES"
12680 cat >>$CONFIG_STATUS <<\EOF
12681 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12684 - | *:- | *:-:* ) # input from stdin
12686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12690 * ) ac_file_in=$ac_file.in ;;
12693 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12694 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12695 X"$ac_file" : 'X\(//\)[^/]' \| \
12696 X"$ac_file" : 'X\(//\)$' \| \
12697 X"$ac_file" : 'X\(/\)' \| \
12698 . : '\(.\)' 2>/dev/null ||
12700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12702 /^X\(\/\/\)$/{ s//\1/; q; }
12703 /^X\(\/\).*/{ s//\1/; q; }
12705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12706 { case "$ac_dir" in
12707 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12711 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12712 case $as_mkdir_dir in
12713 # Skip DOS drivespec
12714 ?:) as_incr_dir=$as_mkdir_dir ;;
12716 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12717 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12722 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12723 # A "../" for each directory in $ac_dir_suffix.
12724 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12726 ac_dir_suffix= ac_dots=
12731 if test -z "$ac_dots"; then
12734 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12736 [\\/]* | ?:[\\/]* )
12737 ac_srcdir=$srcdir$ac_dir_suffix;
12738 ac_top_srcdir=$srcdir ;;
12739 *) # Relative path.
12740 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12741 ac_top_srcdir=$ac_dots$srcdir ;;
12745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12746 *) ac_INSTALL=$ac_dots$INSTALL ;;
12749 if test x"$ac_file" != x-; then
12750 { echo "$as_me:12750: creating $ac_file" >&5
12751 echo "$as_me: creating $ac_file" >&6;}
12754 # Let's still pretend it is `configure' which instantiates (i.e., don't
12755 # use $as_me), people would be surprised to read:
12756 # /* config.h. Generated automatically by config.status. */
12757 configure_input="Generated automatically from `echo $ac_file_in |
12758 sed 's,.*/,,'` by configure."
12760 # First look for the input files in the build tree, otherwise in the
12762 ac_file_inputs=`IFS=:
12763 for f in $ac_file_in; do
12765 -) echo $tmp/stdin ;;
12767 # Absolute (can't be DOS-style, as IFS=:)
12768 test -f "$f" || { { echo "$as_me:12768: error: cannot find input file: $f" >&5
12769 echo "$as_me: error: cannot find input file: $f" >&2;}
12770 { (exit 1); exit 1; }; }
12773 if test -f "$f"; then
12776 elif test -f "$srcdir/$f"; then
12781 { { echo "$as_me:12781: error: cannot find input file: $f" >&5
12782 echo "$as_me: error: cannot find input file: $f" >&2;}
12783 { (exit 1); exit 1; }; }
12786 done` || { (exit 1); exit 1; }
12788 cat >>$CONFIG_STATUS <<EOF
12792 cat >>$CONFIG_STATUS <<\EOF
12794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12795 s,@configure_input@,$configure_input,;t t
12796 s,@srcdir@,$ac_srcdir,;t t
12797 s,@top_srcdir@,$ac_top_srcdir,;t t
12798 s,@INSTALL@,$ac_INSTALL,;t t
12799 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12801 if test x"$ac_file" != x-; then
12802 mv $tmp/out $ac_file
12810 cat >>$CONFIG_STATUS <<\EOF
12813 # CONFIG_HEADER section.
12816 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12817 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12819 # ac_d sets the value in "#define NAME VALUE" lines.
12820 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12821 ac_dB='[ ].*$,\1#\2'
12824 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12825 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12826 ac_uB='$,\1#\2define\3'
12830 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12833 - | *:- | *:-:* ) # input from stdin
12835 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12836 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12837 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12839 * ) ac_file_in=$ac_file.in ;;
12842 test x"$ac_file" != x- && { echo "$as_me:12842: creating $ac_file" >&5
12843 echo "$as_me: creating $ac_file" >&6;}
12845 # First look for the input files in the build tree, otherwise in the
12847 ac_file_inputs=`IFS=:
12848 for f in $ac_file_in; do
12850 -) echo $tmp/stdin ;;
12852 # Absolute (can't be DOS-style, as IFS=:)
12853 test -f "$f" || { { echo "$as_me:12853: error: cannot find input file: $f" >&5
12854 echo "$as_me: error: cannot find input file: $f" >&2;}
12855 { (exit 1); exit 1; }; }
12858 if test -f "$f"; then
12861 elif test -f "$srcdir/$f"; then
12866 { { echo "$as_me:12866: error: cannot find input file: $f" >&5
12867 echo "$as_me: error: cannot find input file: $f" >&2;}
12868 { (exit 1); exit 1; }; }
12871 done` || { (exit 1); exit 1; }
12872 # Remove the trailing spaces.
12873 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12877 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12878 # `conftest.undefs', that substitutes the proper values into
12879 # config.h.in to produce config.h. The first handles `#define'
12880 # templates, and the second `#undef' templates.
12881 # And first: Protect against being on the right side of a sed subst in
12882 # config.status. Protect against being in an unquoted here document
12883 # in config.status.
12884 rm -f conftest.defines conftest.undefs
12885 # Using a here document instead of a string reduces the quoting nightmare.
12886 # Putting comments in sed scripts is not portable.
12888 # `end' is used to avoid that the second main sed command (meant for
12889 # 0-ary CPP macros) applies to n-ary macro definitions.
12890 # See the Autoconf documentation for `clear'.
12891 cat >confdef2sed.sed <<\EOF
12896 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
12898 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12901 # If some macros were called several times there might be several times
12902 # the same #defines, which is useless. Nevertheless, we may not want to
12903 # sort them, since we want the *last* AC-DEFINE to be honored.
12904 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12905 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12906 rm -f confdef2sed.sed
12908 # This sed command replaces #undef with comments. This is necessary, for
12909 # example, in the case of _POSIX_SOURCE, which is predefined and required
12910 # on some systems where configure will not decide to define it.
12911 cat >>conftest.undefs <<\EOF
12912 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12915 # Break up conftest.defines because some shells have a limit on the size
12916 # of here documents, and old seds have small limits too (100 cmds).
12917 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12918 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12919 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12920 echo ' :' >>$CONFIG_STATUS
12921 rm -f conftest.tail
12922 while grep . conftest.defines >/dev/null
12924 # Write a limited-size here document to $tmp/defines.sed.
12925 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12926 # Speed up: don't consider the non `#define' lines.
12927 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12928 # Work around the forget-to-reset-the-flag bug.
12929 echo 't clr' >>$CONFIG_STATUS
12930 echo ': clr' >>$CONFIG_STATUS
12931 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12933 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12935 mv $tmp/out $tmp/in
12937 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12938 rm -f conftest.defines
12939 mv conftest.tail conftest.defines
12941 rm -f conftest.defines
12942 echo ' fi # egrep' >>$CONFIG_STATUS
12943 echo >>$CONFIG_STATUS
12945 # Break up conftest.undefs because some shells have a limit on the size
12946 # of here documents, and old seds have small limits too (100 cmds).
12947 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12948 rm -f conftest.tail
12949 while grep . conftest.undefs >/dev/null
12951 # Write a limited-size here document to $tmp/undefs.sed.
12952 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12953 # Speed up: don't consider the non `#undef'
12954 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12955 # Work around the forget-to-reset-the-flag bug.
12956 echo 't clr' >>$CONFIG_STATUS
12957 echo ': clr' >>$CONFIG_STATUS
12958 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12960 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12962 mv $tmp/out $tmp/in
12964 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12965 rm -f conftest.undefs
12966 mv conftest.tail conftest.undefs
12968 rm -f conftest.undefs
12970 cat >>$CONFIG_STATUS <<\EOF
12971 # Let's still pretend it is `configure' which instantiates (i.e., don't
12972 # use $as_me), people would be surprised to read:
12973 # /* config.h. Generated automatically by config.status. */
12974 if test x"$ac_file" = x-; then
12975 echo "/* Generated automatically by configure. */" >$tmp/config.h
12977 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
12979 cat $tmp/in >>$tmp/config.h
12981 if test x"$ac_file" != x-; then
12982 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12983 { echo "$as_me:12983: $ac_file is unchanged" >&5
12984 echo "$as_me: $ac_file is unchanged" >&6;}
12986 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12987 X"$ac_file" : 'X\(//\)[^/]' \| \
12988 X"$ac_file" : 'X\(//\)$' \| \
12989 X"$ac_file" : 'X\(/\)' \| \
12990 . : '\(.\)' 2>/dev/null ||
12992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12994 /^X\(\/\/\)$/{ s//\1/; q; }
12995 /^X\(\/\).*/{ s//\1/; q; }
12997 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12998 { case "$ac_dir" in
12999 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13003 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13004 case $as_mkdir_dir in
13005 # Skip DOS drivespec
13006 ?:) as_incr_dir=$as_mkdir_dir ;;
13008 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13009 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13016 mv $tmp/config.h $ac_file
13020 rm -f $tmp/config.h
13022 # Run the commands associated with the file.
13024 config.h ) # update the timestamp
13025 echo timestamp >"./stamp-h1"
13030 cat >>$CONFIG_STATUS <<\EOF
13033 # CONFIG_COMMANDS section.
13035 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13036 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13037 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13041 test x"$AMDEP_TRUE" != x"" ||
13042 for mf in $CONFIG_FILES; do
13044 Makefile) dirpart=.;;
13045 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
13048 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13049 # Extract the definition of DEP_FILES from the Makefile without
13051 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13052 test -z "$DEPDIR" && continue
13053 # When using ansi2knr, U may be empty or an underscore; expand it
13054 U=`sed -n -e '/^U = / s///p' < "$mf"`
13055 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13056 # We invoke sed twice because it is the simplest approach to
13057 # changing $(DEPDIR) to its actual value in the expansion.
13058 for file in `sed -n -e '
13059 /^DEP_FILES = .*\\\\$/ {
13068 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13069 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13070 # Make sure the directory exists.
13071 test -f "$dirpart/$file" && continue
13072 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
13073 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
13074 # echo "creating $dirpart/$file"
13075 echo '# dummy' > "$dirpart/$file"
13079 default-2 ) for ac_file in $CONFIG_FILES; do
13080 # Support "outfile[:infile[:infile...]]"
13082 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13084 # PO directories have a Makefile.in generated from Makefile.in.in.
13085 case "$ac_file" in */Makefile.in)
13086 # Adjust a relative srcdir.
13087 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13088 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13089 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13091 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13092 /*) top_srcdir="$srcdir" ;;
13093 *) top_srcdir="$ac_dots$srcdir" ;;
13095 if test -f "$srcdir/$ac_dir/POTFILES.in"; then
13096 rm -f "$ac_dir/POTFILES"
13097 echo creating "$ac_dir/POTFILES"
13098 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
13099 echo creating "$ac_dir/Makefile"
13100 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13109 cat >>$CONFIG_STATUS <<\EOF
13111 { (exit 0); exit 0; }
13113 chmod +x $CONFIG_STATUS
13114 ac_clean_files=$ac_clean_files_save
13116 # configure is writing to config.log, and then calls config.status.
13117 # config.status does its own redirection, appending to config.log.
13118 # Unfortunately, on DOS this fails, as config.log is still kept open
13119 # by configure, so config.status won't be able to write to it; its
13120 # output is simply discarded. So we exec the FD to /dev/null,
13121 # effectively closing config.log, so it can be properly (re)opened and
13122 # appended to by config.status. When coming back to configure, we
13123 # need to make the FD available again.
13124 if test "$no_create" != yes; then
13127 $SHELL $CONFIG_STATUS || ac_cs_success=false
13129 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13130 # would make configure fail if this is the last instruction.
13131 $ac_cs_success || { (exit 1); exit 1; }