2 # From configure.in Revision: 1.206 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="src/main/radiusd.c"
429 ac_subdirs_all="$ac_subdirs_all 'libltdl'"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE subdirs LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures this package to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 if test -n "$ac_init_help"; then
1021 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1023 --disable-largefile omit support for large files
1024 --enable-shared[=PKGS]
1025 build shared libraries [default=yes]
1026 --enable-static[=PKGS]
1027 build static libraries [default=yes]
1028 --enable-fast-install[=PKGS]
1029 optimize for fast installation [default=yes]
1030 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --enable-strict-dependencies Fail configure on lack of module dependancy.
1032 --enable-developer Enables features of interest to developers.
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-system-libtool try to use libtool installed in your system default=use our own
1038 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1039 --with-pic try to use only PIC/non-PIC objects [default=use
1042 include additional configurations [automatic]
1043 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1044 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
1045 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1046 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1047 --with-threads Use threads, if available. (default=yes)
1048 --with-snmp Compile in SNMP support. (default=yes)
1049 --with-large-files Compile in large (2G+) file support. (default=no)
1050 --with-static-modules=QUOTED-MODULE-LIST
1051 --with-experimental-modules Use experimental and unstable modules. (default=no)
1052 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1053 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1054 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1055 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1056 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1058 Some influential environment variables:
1059 CC C compiler command
1060 CFLAGS C compiler flags
1061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062 nonstandard directory <lib dir>
1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064 headers in a nonstandard directory <include dir>
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1068 CXXCPP C++ preprocessor
1069 F77 Fortran 77 compiler command
1070 FFLAGS Fortran 77 compiler flags
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1078 if test "$ac_init_help" = "recursive"; then
1079 # If there are subdirs, report their specific --help.
1081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082 test -d $ac_dir || continue
1085 if test "$ac_dir" != .; then
1086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087 # A "../" for each directory in $ac_dir_suffix.
1088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 ac_dir_suffix= ac_top_builddir=
1094 .) # No --srcdir option. We are building in place.
1096 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 [\\/]* | ?:[\\/]* ) # Absolute path.
1102 ac_srcdir=$srcdir$ac_dir_suffix;
1103 ac_top_srcdir=$srcdir ;;
1105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1110 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1111 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1112 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1113 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1116 # Check for guested configure; otherwise get Cygnus style configure.
1117 if test -f $ac_srcdir/configure.gnu; then
1119 $SHELL $ac_srcdir/configure.gnu --help=recursive
1120 elif test -f $ac_srcdir/configure; then
1122 $SHELL $ac_srcdir/configure --help=recursive
1123 elif test -f $ac_srcdir/configure.ac ||
1124 test -f $ac_srcdir/configure.in; then
1126 $ac_configure --help
1128 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1134 test -n "$ac_init_help" && exit 0
1135 if $ac_init_version; then
1138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.57. Invocation command line was
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_must_keep_next=false
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1239 -* ) ac_must_keep_next=true ;;
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1268 # The following way of writing the cache mishandles newlines in values,
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1291 for ac_var in $ac_subst_vars
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1298 if test -n "$ac_subst_files"; then
1305 for ac_var in $ac_subst_files
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1313 if test -s confdefs.h; then
1320 sed "/^$/d" confdefs.h | sort
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1327 rm -f core core.* *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1341 # Predefined preprocessor variables.
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1403 # Check that the precious variables saved in the cache have kept the same
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427 echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429 echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1446 if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1481 RADIUSD_MAJOR_VERSION=1
1482 RADIUSD_MINOR_VERSION=1.0-pre0
1483 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491 if test -n "$ac_tool_prefix"; then
1492 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1493 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$CC"; then
1500 ac_cv_prog_CC="$CC" # Let the user override the test.
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 if test -n "$CC"; then
1520 echo "$as_me:$LINENO: result: $CC" >&5
1521 echo "${ECHO_T}$CC" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1528 if test -z "$ac_cv_prog_CC"; then
1530 # Extract the first word of "gcc", so it can be a program name with args.
1531 set dummy gcc; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 if test -n "$ac_ct_CC"; then
1538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_ac_ct_CC="gcc"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1557 if test -n "$ac_ct_CC"; then
1558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1559 echo "${ECHO_T}$ac_ct_CC" >&6
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1570 if test -z "$CC"; then
1571 if test -n "$ac_tool_prefix"; then
1572 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1573 set dummy ${ac_tool_prefix}cc; ac_word=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 if test -n "$CC"; then
1580 ac_cv_prog_CC="$CC" # Let the user override the test.
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_CC="${ac_tool_prefix}cc"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 if test -n "$CC"; then
1600 echo "$as_me:$LINENO: result: $CC" >&5
1601 echo "${ECHO_T}$CC" >&6
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1608 if test -z "$ac_cv_prog_CC"; then
1610 # Extract the first word of "cc", so it can be a program name with args.
1611 set dummy cc; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 if test -n "$ac_ct_CC"; then
1618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_ac_ct_CC="cc"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1637 if test -n "$ac_ct_CC"; then
1638 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1639 echo "${ECHO_T}$ac_ct_CC" >&6
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1651 if test -z "$CC"; then
1652 # Extract the first word of "cc", so it can be a program name with args.
1653 set dummy cc; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1671 ac_prog_rejected=yes
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 if test $ac_prog_rejected = yes; then
1682 # We found a bogon in the path, so make sure we never use it.
1683 set dummy $ac_cv_prog_CC
1685 if test $# != 0; then
1686 # We chose a different compiler from the bogus one.
1687 # However, it has the same basename, so the bogon will be chosen
1688 # first if we set CC to just the basename; use the full file name.
1690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1696 if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1705 if test -z "$CC"; then
1706 if test -n "$ac_tool_prefix"; then
1709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 if test -n "$CC"; then
1717 ac_cv_prog_CC="$CC" # Let the user override the test.
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 if test -n "$CC"; then
1737 echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1744 test -n "$CC" && break
1747 if test -z "$CC"; then
1751 # Extract the first word of "$ac_prog", so it can be a program name with args.
1752 set dummy $ac_prog; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 if test -n "$ac_ct_CC"; then
1759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_ac_ct_CC="$ac_prog"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1786 test -n "$ac_ct_CC" && break
1795 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1796 See \`config.log' for more details." >&5
1797 echo "$as_me: error: no acceptable C compiler found in \$PATH
1798 See \`config.log' for more details." >&2;}
1799 { (exit 1); exit 1; }; }
1801 # Provide some information about the compiler.
1802 echo "$as_me:$LINENO:" \
1803 "checking for C compiler version" >&5
1804 ac_compiler=`set X $ac_compile; echo $2`
1805 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1806 (eval $ac_compiler --version </dev/null >&5) 2>&5
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }
1810 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1811 (eval $ac_compiler -v </dev/null >&5) 2>&5
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }
1815 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1816 (eval $ac_compiler -V </dev/null >&5) 2>&5
1818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1819 (exit $ac_status); }
1821 cat >conftest.$ac_ext <<_ACEOF
1822 #line $LINENO "configure"
1825 cat confdefs.h >>conftest.$ac_ext
1826 cat >>conftest.$ac_ext <<_ACEOF
1827 /* end confdefs.h. */
1837 ac_clean_files_save=$ac_clean_files
1838 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1839 # Try to create an executable without -o first, disregard a.out.
1840 # It will help us diagnose broken compilers, and finding out an intuition
1842 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1843 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1844 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1845 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1846 (eval $ac_link_default) 2>&5
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }; then
1850 # Find the output, starting from the most likely. This scheme is
1851 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1854 # Be careful to initialize this variable, since it used to be cached.
1855 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1857 # b.out is created by i960 compilers.
1858 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1860 test -f "$ac_file" || continue
1862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1865 # This is the source file.
1868 # We found the default executable, but exeext='' is most
1872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1873 # FIXME: I believe we export ac_cv_exeext for Libtool,
1874 # but it would be cool to find out if it's true. Does anybody
1875 # maintain Libtool? --akim.
1883 echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: C compiler cannot create executables
1889 See \`config.log' for more details." >&2;}
1890 { (exit 77); exit 77; }; }
1893 ac_exeext=$ac_cv_exeext
1894 echo "$as_me:$LINENO: result: $ac_file" >&5
1895 echo "${ECHO_T}$ac_file" >&6
1897 # Check the compiler produces executables we can run. If not, either
1898 # the compiler is broken, or we cross compile.
1899 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1900 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1901 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1902 # If not cross compiling, check that we can run a simple program.
1903 if test "$cross_compiling" != yes; then
1904 if { ac_try='./$ac_file'
1905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1912 if test "$cross_compiling" = maybe; then
1915 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1916 If you meant to cross compile, use \`--host'.
1917 See \`config.log' for more details." >&5
1918 echo "$as_me: error: cannot run C compiled programs.
1919 If you meant to cross compile, use \`--host'.
1920 See \`config.log' for more details." >&2;}
1921 { (exit 1); exit 1; }; }
1925 echo "$as_me:$LINENO: result: yes" >&5
1926 echo "${ECHO_T}yes" >&6
1928 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1929 ac_clean_files=$ac_clean_files_save
1930 # Check the compiler produces executables we can run. If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1933 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1934 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1935 echo "${ECHO_T}$cross_compiling" >&6
1937 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1938 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1940 (eval $ac_link) 2>&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1945 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1946 # work properly (i.e., refer to `conftest.exe'), while it won't with
1948 for ac_file in conftest.exe conftest conftest.*; do
1949 test -f "$ac_file" || continue
1951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1952 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1966 rm -f conftest$ac_cv_exeext
1967 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1968 echo "${ECHO_T}$ac_cv_exeext" >&6
1970 rm -f conftest.$ac_ext
1971 EXEEXT=$ac_cv_exeext
1973 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1974 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1975 if test "${ac_cv_objext+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h. */
1994 rm -f conftest.o conftest.obj
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2000 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2003 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2008 echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2014 See \`config.log' for more details." >&2;}
2015 { (exit 1); exit 1; }; }
2018 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2020 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2021 echo "${ECHO_T}$ac_cv_objext" >&6
2022 OBJEXT=$ac_cv_objext
2024 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2025 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2026 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 cat >conftest.$ac_ext <<_ACEOF
2030 #line $LINENO "configure"
2033 cat confdefs.h >>conftest.$ac_ext
2034 cat >>conftest.$ac_ext <<_ACEOF
2035 /* end confdefs.h. */
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2067 rm -f conftest.$ac_objext conftest.$ac_ext
2068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2071 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2072 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2073 GCC=`test $ac_compiler_gnu = yes && echo yes`
2074 ac_test_CFLAGS=${CFLAGS+set}
2075 ac_save_CFLAGS=$CFLAGS
2077 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2078 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2079 if test "${ac_cv_prog_cc_g+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2117 rm -f conftest.$ac_objext conftest.$ac_ext
2119 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2121 if test "$ac_test_CFLAGS" = set; then
2122 CFLAGS=$ac_save_CFLAGS
2123 elif test $ac_cv_prog_cc_g = yes; then
2124 if test "$GCC" = yes; then
2130 if test "$GCC" = yes; then
2136 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2137 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2138 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 ac_cv_prog_cc_stdc=no
2143 cat >conftest.$ac_ext <<_ACEOF
2144 #line $LINENO "configure"
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2152 #include <sys/types.h>
2153 #include <sys/stat.h>
2154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2155 struct buf { int x; };
2156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2157 static char *e (p, i)
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2168 s = g (p, va_arg (v,int));
2172 int test (int i, double x);
2173 struct s1 {int (*f) (int a);};
2174 struct s2 {int (*f) (double a);};
2175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2186 # Don't try gcc -ansi; that turns off useful extensions and
2187 # breaks some systems' header files.
2188 # AIX -qlanglvl=ansi
2189 # Ultrix and OSF/1 -std1
2190 # HP-UX 10.20 and later -Ae
2191 # HP-UX older versions -Aa -D_HPUX_SOURCE
2192 # SVR4 -Xc -D__EXTENSIONS__
2193 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2195 CC="$ac_save_CC $ac_arg"
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -s conftest.$ac_objext'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2208 ac_cv_prog_cc_stdc=$ac_arg
2211 echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2215 rm -f conftest.$ac_objext
2217 rm -f conftest.$ac_ext conftest.$ac_objext
2222 case "x$ac_cv_prog_cc_stdc" in
2224 echo "$as_me:$LINENO: result: none needed" >&5
2225 echo "${ECHO_T}none needed" >&6 ;;
2227 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2228 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2229 CC="$CC $ac_cv_prog_cc_stdc" ;;
2232 # Some people use a C++ compiler to compile C. Since we use `exit',
2233 # in C++ we need to declare it. In case someone uses the same compiler
2234 # for both compiling C and C++ we need to have the C++ compiler decide
2235 # the declaration of exit, since it's the most demanding environment.
2236 cat >conftest.$ac_ext <<_ACEOF
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); } &&
2247 { ac_try='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 for ac_declaration in \
2255 '#include <stdlib.h>' \
2256 'extern "C" void std::exit (int) throw (); using std::exit;' \
2257 'extern "C" void std::exit (int); using std::exit;' \
2258 'extern "C" void exit (int) throw ();' \
2259 'extern "C" void exit (int);' \
2262 cat >conftest.$ac_ext <<_ACEOF
2263 #line $LINENO "configure"
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2298 rm -f conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300 #line $LINENO "configure"
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2336 if test -n "$ac_declaration"; then
2337 echo '#ifdef __cplusplus' >>confdefs.h
2338 echo $ac_declaration >>confdefs.h
2339 echo '#endif' >>confdefs.h
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f conftest.$ac_objext conftest.$ac_ext
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2362 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2363 # On Suns, sometimes $CPP names a directory.
2364 if test -n "$CPP" && test -d "$CPP"; then
2367 if test -z "$CPP"; then
2368 if test "${ac_cv_prog_CPP+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 # Double quotes because CPP needs to be expanded
2372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2375 for ac_c_preproc_warn_flag in '' yes
2377 # Use a header file that comes with gcc, so configuring glibc
2378 # with a fresh cross-compiler works.
2379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2380 # <limits.h> exists even on freestanding compilers.
2381 # On the NeXT, cc -E runs the code through the compiler's parser,
2382 # not just through cpp. "Syntax error" is here to catch this case.
2383 cat >conftest.$ac_ext <<_ACEOF
2384 #line $LINENO "configure"
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2391 # include <limits.h>
2393 # include <assert.h>
2397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } >/dev/null; then
2405 if test -s conftest.err; then
2406 ac_cpp_err=$ac_c_preproc_warn_flag
2413 if test -z "$ac_cpp_err"; then
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2419 # Broken: fails on valid input.
2422 rm -f conftest.err conftest.$ac_ext
2424 # OK, works on sane cases. Now check whether non-existent headers
2425 # can be detected and how.
2426 cat >conftest.$ac_ext <<_ACEOF
2427 #line $LINENO "configure"
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2433 #include <ac_nonexistent.h>
2435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2438 grep -v '^ *+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2451 if test -z "$ac_cpp_err"; then
2452 # Broken: success on invalid input.
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2458 # Passes both tests.
2462 rm -f conftest.err conftest.$ac_ext
2465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2466 rm -f conftest.err conftest.$ac_ext
2467 if $ac_preproc_ok; then
2479 echo "$as_me:$LINENO: result: $CPP" >&5
2480 echo "${ECHO_T}$CPP" >&6
2482 for ac_c_preproc_warn_flag in '' yes
2484 # Use a header file that comes with gcc, so configuring glibc
2485 # with a fresh cross-compiler works.
2486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2487 # <limits.h> exists even on freestanding compilers.
2488 # On the NeXT, cc -E runs the code through the compiler's parser,
2489 # not just through cpp. "Syntax error" is here to catch this case.
2490 cat >conftest.$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2498 # include <limits.h>
2500 # include <assert.h>
2504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2507 grep -v '^ *+' conftest.er1 >conftest.err
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } >/dev/null; then
2512 if test -s conftest.err; then
2513 ac_cpp_err=$ac_c_preproc_warn_flag
2520 if test -z "$ac_cpp_err"; then
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 # Broken: fails on valid input.
2529 rm -f conftest.err conftest.$ac_ext
2531 # OK, works on sane cases. Now check whether non-existent headers
2532 # can be detected and how.
2533 cat >conftest.$ac_ext <<_ACEOF
2534 #line $LINENO "configure"
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2540 #include <ac_nonexistent.h>
2542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } >/dev/null; then
2550 if test -s conftest.err; then
2551 ac_cpp_err=$ac_c_preproc_warn_flag
2558 if test -z "$ac_cpp_err"; then
2559 # Broken: success on invalid input.
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 # Passes both tests.
2569 rm -f conftest.err conftest.$ac_ext
2572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2573 rm -f conftest.err conftest.$ac_ext
2574 if $ac_preproc_ok; then
2577 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2580 See \`config.log' for more details." >&2;}
2581 { (exit 1); exit 1; }; }
2585 ac_cpp='$CPP $CPPFLAGS'
2586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 echo "$as_me:$LINENO: checking for egrep" >&5
2592 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2593 if test "${ac_cv_prog_egrep+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2597 then ac_cv_prog_egrep='grep -E'
2598 else ac_cv_prog_egrep='egrep'
2601 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2602 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2603 EGREP=$ac_cv_prog_egrep
2607 echo "$as_me:$LINENO: checking for AIX" >&5
2608 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2609 cat >conftest.$ac_ext <<_ACEOF
2610 #line $LINENO "configure"
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2622 $EGREP "yes" >/dev/null 2>&1; then
2623 echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625 cat >>confdefs.h <<\_ACEOF
2626 #define _ALL_SOURCE 1
2630 echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2637 if test $ac_cv_c_compiler_gnu = yes; then
2638 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2639 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2640 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 ac_pattern="Autoconf.*'x'"
2644 cat >conftest.$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2655 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2656 ac_cv_prog_gcc_traditional=yes
2658 ac_cv_prog_gcc_traditional=no
2663 if test $ac_cv_prog_gcc_traditional = no; then
2664 cat >conftest.$ac_ext <<_ACEOF
2665 #line $LINENO "configure"
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2675 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2676 ac_cv_prog_gcc_traditional=yes
2682 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2683 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2684 if test $ac_cv_prog_gcc_traditional = yes; then
2685 CC="$CC -traditional"
2689 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2690 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2691 if test "${ac_cv_prog_suncc+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 cat > conftest.c <<EOF
2699 if { ac_try='${CC-cc} -E conftest.c'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2705 ac_cv_prog_suncc=yes
2710 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2711 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_RANLIB+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$RANLIB"; then
2721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 RANLIB=$ac_cv_prog_RANLIB
2740 if test -n "$RANLIB"; then
2741 echo "$as_me:$LINENO: result: $RANLIB" >&5
2742 echo "${ECHO_T}$RANLIB" >&6
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2749 if test -z "$ac_cv_prog_RANLIB"; then
2750 ac_ct_RANLIB=$RANLIB
2751 # Extract the first word of "ranlib", so it can be a program name with args.
2752 set dummy ranlib; ac_word=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$ac_ct_RANLIB"; then
2759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_RANLIB="ranlib"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2779 if test -n "$ac_ct_RANLIB"; then
2780 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2781 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2787 RANLIB=$ac_ct_RANLIB
2789 RANLIB="$ac_cv_prog_RANLIB"
2793 abs_top_builddir=`pwd`
2796 # Check whether --enable-largefile or --disable-largefile was given.
2797 if test "${enable_largefile+set}" = set; then
2798 enableval="$enable_largefile"
2801 if test "$enable_largefile" != no; then
2803 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2804 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2805 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 ac_cv_sys_largefile_CC=no
2809 if test "$GCC" != yes; then
2812 # IRIX 6.2 and later do not support large files by default,
2813 # so use the C compiler's -n32 option if that helps.
2814 cat >conftest.$ac_ext <<_ACEOF
2815 #line $LINENO "configure"
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2821 #include <sys/types.h>
2822 /* Check that off_t can represent 2**63 - 1 correctly.
2823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2824 since some C++ compilers masquerading as C compilers
2825 incorrectly reject 9223372036854775807. */
2826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2828 && LARGE_OFF_T % 2147483647 == 1)
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f conftest.$ac_objext
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_cv_sys_largefile_CC=' -n32'; break
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2876 rm -f conftest.$ac_objext
2880 rm -f conftest.$ac_ext
2883 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2884 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2885 if test "$ac_cv_sys_largefile_CC" != no; then
2886 CC=$CC$ac_cv_sys_largefile_CC
2889 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2890 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2891 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 ac_cv_sys_file_offset_bits=no
2896 cat >conftest.$ac_ext <<_ACEOF
2897 #line $LINENO "configure"
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2903 #include <sys/types.h>
2904 /* Check that off_t can represent 2**63 - 1 correctly.
2905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2906 since some C++ compilers masquerading as C compilers
2907 incorrectly reject 9223372036854775807. */
2908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2910 && LARGE_OFF_T % 2147483647 == 1)
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2938 rm -f conftest.$ac_objext conftest.$ac_ext
2939 cat >conftest.$ac_ext <<_ACEOF
2940 #line $LINENO "configure"
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #define _FILE_OFFSET_BITS 64
2947 #include <sys/types.h>
2948 /* Check that off_t can represent 2**63 - 1 correctly.
2949 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2950 since some C++ compilers masquerading as C compilers
2951 incorrectly reject 9223372036854775807. */
2952 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2953 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2954 && LARGE_OFF_T % 2147483647 == 1)
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_cv_sys_file_offset_bits=64; break
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2982 rm -f conftest.$ac_objext conftest.$ac_ext
2986 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2987 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2988 if test "$ac_cv_sys_file_offset_bits" != no; then
2990 cat >>confdefs.h <<_ACEOF
2991 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2996 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2997 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2998 if test "${ac_cv_sys_large_files+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_cv_sys_large_files=no
3003 cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 #include <sys/types.h>
3011 /* Check that off_t can represent 2**63 - 1 correctly.
3012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3013 since some C++ compilers masquerading as C compilers
3014 incorrectly reject 9223372036854775807. */
3015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3017 && LARGE_OFF_T % 2147483647 == 1)
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3045 rm -f conftest.$ac_objext conftest.$ac_ext
3046 cat >conftest.$ac_ext <<_ACEOF
3047 #line $LINENO "configure"
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #define _LARGE_FILES 1
3054 #include <sys/types.h>
3055 /* Check that off_t can represent 2**63 - 1 correctly.
3056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3057 since some C++ compilers masquerading as C compilers
3058 incorrectly reject 9223372036854775807. */
3059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3061 && LARGE_OFF_T % 2147483647 == 1)
3071 rm -f conftest.$ac_objext
3072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073 (eval $ac_compile) 2>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 ac_cv_sys_large_files=1; break
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f conftest.$ac_objext conftest.$ac_ext
3093 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3094 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3095 if test "$ac_cv_sys_large_files" != no; then
3097 cat >>confdefs.h <<_ACEOF
3098 #define _LARGE_FILES $ac_cv_sys_large_files
3108 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3109 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3110 if test "${ac_cv_c_bigendian+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 # See if sys/param.h defines the BYTE_ORDER macro.
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line $LINENO "configure"
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #include <sys/types.h>
3122 #include <sys/param.h>
3127 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3135 rm -f conftest.$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 # It does; now see whether it defined to BIG_ENDIAN or not.
3148 cat >conftest.$ac_ext <<_ACEOF
3149 #line $LINENO "configure"
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3155 #include <sys/types.h>
3156 #include <sys/param.h>
3161 #if BYTE_ORDER != BIG_ENDIAN
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_cv_c_bigendian=yes
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 ac_cv_c_bigendian=no
3188 rm -f conftest.$ac_objext conftest.$ac_ext
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 # It does not; compile a test program.
3194 if test "$cross_compiling" = yes; then
3195 # try to guess the endianness by grepping values into an object file
3196 ac_cv_c_bigendian=unknown
3197 cat >conftest.$ac_ext <<_ACEOF
3198 #line $LINENO "configure"
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3205 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3206 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3207 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3208 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3209 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3213 _ascii (); _ebcdic ();
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220 (eval $ac_compile) 2>&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -s conftest.$ac_objext'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3230 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3231 ac_cv_c_bigendian=yes
3233 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3234 if test "$ac_cv_c_bigendian" = unknown; then
3235 ac_cv_c_bigendian=no
3237 # finding both strings is unlikely to happen, but who knows?
3238 ac_cv_c_bigendian=unknown
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3246 rm -f conftest.$ac_objext conftest.$ac_ext
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3258 /* Are we little or big endian? From Harbison&Steele. */
3262 char c[sizeof (long)];
3265 exit (u.c[sizeof (long) - 1] == 1);
3268 rm -f conftest$ac_exeext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3270 (eval $ac_link) 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_c_bigendian=no
3281 echo "$as_me: program exited with status $ac_status" >&5
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3286 ac_cv_c_bigendian=yes
3288 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3291 rm -f conftest.$ac_objext conftest.$ac_ext
3293 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3294 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3295 case $ac_cv_c_bigendian in
3298 cat >>confdefs.h <<\_ACEOF
3299 #define WORDS_BIGENDIAN 1
3305 { { echo "$as_me:$LINENO: error: unknown endianness
3306 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3307 echo "$as_me: error: unknown endianness
3308 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3309 { (exit 1); exit 1; }; } ;;
3313 # Extract the first word of "gmake", so it can be a program name with args.
3314 set dummy gmake; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_GMAKE+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$GMAKE"; then
3321 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_GMAKE="yes"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3340 GMAKE=$ac_cv_prog_GMAKE
3341 if test -n "$GMAKE"; then
3342 echo "$as_me:$LINENO: result: $GMAKE" >&5
3343 echo "${ECHO_T}$GMAKE" >&6
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 if test $GMAKE = no; then
3350 # Extract the first word of "make", so it can be a program name with args.
3351 set dummy make; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_path_MAKE+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3380 MAKE=$ac_cv_path_MAKE
3382 if test -n "$MAKE"; then
3383 echo "$as_me:$LINENO: result: $MAKE" >&5
3384 echo "${ECHO_T}$MAKE" >&6
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3391 # Extract the first word of "gmake", so it can be a program name with args.
3392 set dummy gmake; ac_word=$2
3393 echo "$as_me:$LINENO: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395 if test "${ac_cv_path_MAKE+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3421 MAKE=$ac_cv_path_MAKE
3423 if test -n "$MAKE"; then
3424 echo "$as_me:$LINENO: result: $MAKE" >&5
3425 echo "${ECHO_T}$MAKE" >&6
3427 echo "$as_me:$LINENO: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3432 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3433 if test -z "$makever"; then
3434 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3435 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3436 echo "$as_me: error: GNU Make is not installed. Please download and install it
3437 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3438 { (exit 1); exit 1; }; }
3441 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3442 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3443 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 ac_check_lib_save_LIBS=$LIBS
3448 cat >conftest.$ac_ext <<_ACEOF
3449 #line $LINENO "configure"
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3456 /* Override any gcc2 internal prototype to avoid an error. */
3460 /* We use char because int might match the return type of a gcc2
3461 builtin and then its argument prototype would still apply. */
3471 rm -f conftest.$ac_objext conftest$ac_exeext
3472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3473 (eval $ac_link) 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -s conftest$ac_exeext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_cv_lib_ltdl_lt_dlinit=yes
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 ac_cv_lib_ltdl_lt_dlinit=no
3490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3491 LIBS=$ac_check_lib_save_LIBS
3493 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3494 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3495 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3496 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3498 if test x"$enable_ltdl_install" = xno; then
3499 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3500 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3502 enable_ltdl_install=yes
3507 if test x"$enable_ltdl_install" = x"yes"; then
3508 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3509 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3510 LTDLINCL='-I${top_srcdir}/''libltdl'
3512 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3516 # For backwards non-gettext consistent compatibility...
3520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3521 if test -f $ac_dir/install-sh; then
3523 ac_install_sh="$ac_aux_dir/install-sh -c"
3525 elif test -f $ac_dir/install.sh; then
3527 ac_install_sh="$ac_aux_dir/install.sh -c"
3529 elif test -f $ac_dir/shtool; then
3531 ac_install_sh="$ac_aux_dir/shtool install -c"
3535 if test -z "$ac_aux_dir"; then
3536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3538 { (exit 1); exit 1; }; }
3540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3546 if test x"$enable_ltdl_install" = x"yes"; then
3549 subdirs="$subdirs 'libltdl'"
3556 # Check whether --enable-shared or --disable-shared was given.
3557 if test "${enable_shared+set}" = set; then
3558 enableval="$enable_shared"
3559 p=${PACKAGE-default}
3561 yes) enable_shared=yes ;;
3562 no) enable_shared=no ;;
3565 # Look at the argument we got. We use all the common list separators.
3566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567 for pkg in $enableval; do
3569 if test "X$pkg" = "X$p"; then
3580 # Check whether --enable-static or --disable-static was given.
3581 if test "${enable_static+set}" = set; then
3582 enableval="$enable_static"
3583 p=${PACKAGE-default}
3585 yes) enable_static=yes ;;
3586 no) enable_static=no ;;
3589 # Look at the argument we got. We use all the common list separators.
3590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591 for pkg in $enableval; do
3593 if test "X$pkg" = "X$p"; then
3604 # Check whether --enable-fast-install or --disable-fast-install was given.
3605 if test "${enable_fast_install+set}" = set; then
3606 enableval="$enable_fast_install"
3607 p=${PACKAGE-default}
3609 yes) enable_fast_install=yes ;;
3610 no) enable_fast_install=no ;;
3612 enable_fast_install=no
3613 # Look at the argument we got. We use all the common list separators.
3614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3615 for pkg in $enableval; do
3617 if test "X$pkg" = "X$p"; then
3618 enable_fast_install=yes
3625 enable_fast_install=yes
3628 # Make sure we can run config.sub.
3629 $ac_config_sub sun4 >/dev/null 2>&1 ||
3630 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3631 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3632 { (exit 1); exit 1; }; }
3634 echo "$as_me:$LINENO: checking build system type" >&5
3635 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3636 if test "${ac_cv_build+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 ac_cv_build_alias=$build_alias
3640 test -z "$ac_cv_build_alias" &&
3641 ac_cv_build_alias=`$ac_config_guess`
3642 test -z "$ac_cv_build_alias" &&
3643 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3644 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3645 { (exit 1); exit 1; }; }
3646 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3647 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3648 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3649 { (exit 1); exit 1; }; }
3652 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3653 echo "${ECHO_T}$ac_cv_build" >&6
3655 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3656 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3657 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3660 echo "$as_me:$LINENO: checking host system type" >&5
3661 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3662 if test "${ac_cv_host+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 ac_cv_host_alias=$host_alias
3666 test -z "$ac_cv_host_alias" &&
3667 ac_cv_host_alias=$ac_cv_build_alias
3668 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3669 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3670 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3671 { (exit 1); exit 1; }; }
3674 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3675 echo "${ECHO_T}$ac_cv_host" >&6
3677 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3678 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3679 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3682 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3683 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3684 if test "${lt_cv_path_SED+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 # Loop through the user's path and test for sed and gsed.
3688 # Then use that list of sed's as ones to test for truncation.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for lt_ac_prog in sed gsed; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3697 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3704 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3705 # along with /bin/sed that truncates output.
3706 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3707 test ! -f $lt_ac_sed && break
3708 cat /dev/null > conftest.in
3710 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3711 # Check for GNU sed and select it if it is found.
3712 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3713 lt_cv_path_SED=$lt_ac_sed
3717 cat conftest.in conftest.in >conftest.tmp
3718 mv conftest.tmp conftest.in
3719 cp conftest.in conftest.nl
3721 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3722 cmp -s conftest.out conftest.nl || break
3723 # 10000 chars as input seems more than enough
3724 test $lt_ac_count -gt 10 && break
3725 lt_ac_count=`expr $lt_ac_count + 1`
3726 if test $lt_ac_count -gt $lt_ac_max; then
3727 lt_ac_max=$lt_ac_count
3728 lt_cv_path_SED=$lt_ac_sed
3736 echo "$as_me:$LINENO: result: $SED" >&5
3737 echo "${ECHO_T}$SED" >&6
3740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3741 if test "${with_gnu_ld+set}" = set; then
3742 withval="$with_gnu_ld"
3743 test "$withval" = no || with_gnu_ld=yes
3748 if test "$GCC" = yes; then
3749 # Check if gcc -print-prog-name=ld gives a path.
3750 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3751 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3754 # gcc leaves a trailing carriage return which upsets mingw
3755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3760 # Accept absolute paths.
3762 re_direlt='/[^/][^/]*/\.\./'
3763 # Canonicalize the pathname of ld
3764 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3765 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3766 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3768 test -z "$LD" && LD="$ac_prog"
3771 # If it fails, then pretend we aren't using GCC.
3775 # If it is relative, then search for the first ld in PATH.
3779 elif test "$with_gnu_ld" = yes; then
3780 echo "$as_me:$LINENO: checking for GNU ld" >&5
3781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3783 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3786 if test "${lt_cv_path_LD+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -z "$LD"; then
3790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3791 for ac_dir in $PATH; do
3793 test -z "$ac_dir" && ac_dir=.
3794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3795 lt_cv_path_LD="$ac_dir/$ac_prog"
3796 # Check to see if the program is GNU ld. I'd rather use --version,
3797 # but apparently some GNU ld's only accept -v.
3798 # Break only if it was the GNU/non-GNU ld that we prefer.
3799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3800 *GNU* | *'with BFD'*)
3801 test "$with_gnu_ld" != no && break
3804 test "$with_gnu_ld" != yes && break
3811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3816 if test -n "$LD"; then
3817 echo "$as_me:$LINENO: result: $LD" >&5
3818 echo "${ECHO_T}$LD" >&6
3820 echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3825 { (exit 1); exit 1; }; }
3826 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3828 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3832 case `$LD -v 2>&1 </dev/null` in
3833 *GNU* | *'with BFD'*)
3834 lt_cv_prog_gnu_ld=yes
3837 lt_cv_prog_gnu_ld=no
3841 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3843 with_gnu_ld=$lt_cv_prog_gnu_ld
3846 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3847 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3848 if test "${lt_cv_ld_reload_flag+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 lt_cv_ld_reload_flag='-r'
3853 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3854 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3855 reload_flag=$lt_cv_ld_reload_flag
3856 case $reload_flag in
3858 *) reload_flag=" $reload_flag" ;;
3860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3862 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3863 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3864 if test "${lt_cv_path_NM+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 if test -n "$NM"; then
3868 # Let the user override the test.
3871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3872 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3874 test -z "$ac_dir" && ac_dir=.
3875 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3876 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3877 # Check to see if the nm accepts a BSD-compat flag.
3878 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3879 # nm: unknown option "B" ignored
3880 # Tru64's nm complains that /dev/null is an invalid object file
3881 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3882 */dev/null* | *'Invalid file or object type'*)
3883 lt_cv_path_NM="$tmp_nm -B"
3887 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3889 lt_cv_path_NM="$tmp_nm -p"
3893 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3894 continue # so that we can try to find one that supports BSD flags
3901 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3904 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3905 echo "${ECHO_T}$lt_cv_path_NM" >&6
3908 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3909 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3911 if test "$LN_S" = "ln -s"; then
3912 echo "$as_me:$LINENO: result: yes" >&5
3913 echo "${ECHO_T}yes" >&6
3915 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3916 echo "${ECHO_T}no, using $LN_S" >&6
3919 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3920 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3921 if test "${lt_cv_deplibs_check_method+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 lt_cv_file_magic_cmd='$MAGIC_CMD'
3925 lt_cv_file_magic_test_file=
3926 lt_cv_deplibs_check_method='unknown'
3927 # Need to set the preceding variable on all platforms that support
3928 # interlibrary dependencies.
3929 # 'none' -- dependencies not supported.
3930 # `unknown' -- same as none, but documents that we really don't know.
3931 # 'pass_all' -- all dependencies passed with no checks.
3932 # 'test_compile' -- check by making test program.
3933 # 'file_magic [[regex]]' -- check by looking for files in library path
3934 # which responds to the $file_magic_cmd with a given extended regex.
3935 # If you have `file' or equivalent on your system and you're not sure
3936 # whether `pass_all' will *always* work, you probably want this one.
3940 lt_cv_deplibs_check_method=pass_all
3944 lt_cv_deplibs_check_method=pass_all
3948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3949 lt_cv_file_magic_cmd='/usr/bin/file -L'
3950 lt_cv_file_magic_test_file=/shlib/libc.so
3954 # func_win32_libid is a shell function defined in ltmain.sh
3955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3956 lt_cv_file_magic_cmd='func_win32_libid'
3960 # Base MSYS/MinGW do not provide the 'file' command needed by
3961 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3962 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3963 lt_cv_file_magic_cmd='$OBJDUMP -f'
3966 darwin* | rhapsody*)
3967 lt_cv_deplibs_check_method=pass_all
3970 freebsd* | kfreebsd*-gnu)
3971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3974 # Not sure whether the presence of OpenBSD here was a mistake.
3975 # Let's accept both of them until this is cleared up.
3976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3977 lt_cv_file_magic_cmd=/usr/bin/file
3978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3982 lt_cv_deplibs_check_method=pass_all
3987 lt_cv_deplibs_check_method=pass_all
3990 hpux10.20* | hpux11*)
3991 lt_cv_file_magic_cmd=/usr/bin/file
3994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3995 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3999 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4003 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4008 irix5* | irix6* | nonstopux*)
4010 *-32|*"-32 ") libmagic=32-bit;;
4011 *-n32|*"-n32 ") libmagic=N32;;
4012 *-64|*"-64 ") libmagic=64-bit;;
4013 *) libmagic=never-match;;
4015 lt_cv_deplibs_check_method=pass_all
4018 # This must be Linux ELF.
4020 lt_cv_deplibs_check_method=pass_all
4023 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4024 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4033 lt_cv_file_magic_cmd=/usr/bin/file
4034 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4038 lt_cv_deplibs_check_method=unknown
4042 lt_cv_file_magic_cmd=/usr/bin/file
4043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4047 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4051 osf3* | osf4* | osf5*)
4052 lt_cv_deplibs_check_method=pass_all
4056 lt_cv_deplibs_check_method=pass_all
4060 lt_cv_deplibs_check_method=pass_all
4063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4064 case $host_vendor in
4066 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]'
4067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4070 lt_cv_deplibs_check_method=pass_all
4073 lt_cv_file_magic_cmd='/bin/file'
4074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4077 lt_cv_file_magic_cmd='/bin/file'
4078 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4079 lt_cv_file_magic_test_file=/lib/libc.so
4082 lt_cv_deplibs_check_method=pass_all
4087 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4088 lt_cv_deplibs_check_method=pass_all
4093 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4094 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4095 file_magic_cmd=$lt_cv_file_magic_cmd
4096 deplibs_check_method=$lt_cv_deplibs_check_method
4097 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4102 # If no C compiler was specified, use CC.
4105 # Allow CC to be a program name with arguments.
4108 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4109 if test "${enable_libtool_lock+set}" = set; then
4110 enableval="$enable_libtool_lock"
4113 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4115 # Some flags need to be propagated to the compiler or linker for good
4119 # Find out which ABI we are using.
4120 echo 'int i;' > conftest.$ac_ext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; then
4126 case `/usr/bin/file conftest.$ac_objext` in
4138 # Find out which ABI we are using.
4139 echo '#line 4139 "configure"' > conftest.$ac_ext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; then
4145 if test "$lt_cv_prog_gnu_ld" = yes; then
4146 case `/usr/bin/file conftest.$ac_objext` in
4148 LD="${LD-ld} -melf32bsmip"
4151 LD="${LD-ld} -melf32bmipn32"
4154 LD="${LD-ld} -melf64bmip"
4158 case `/usr/bin/file conftest.$ac_objext` in
4174 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4175 # Find out which ABI we are using.
4176 echo 'int i;' > conftest.$ac_ext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178 (eval $ac_compile) 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; then
4182 case "`/usr/bin/file conftest.o`" in
4186 LD="${LD-ld} -m elf_i386"
4188 ppc64-*linux*|powerpc64-*linux*)
4189 LD="${LD-ld} -m elf32ppclinux"
4192 LD="${LD-ld} -m elf_s390"
4195 LD="${LD-ld} -m elf32_sparc"
4202 LD="${LD-ld} -m elf_x86_64"
4204 ppc*-*linux*|powerpc*-*linux*)
4205 LD="${LD-ld} -m elf64ppc"
4208 LD="${LD-ld} -m elf64_s390"
4211 LD="${LD-ld} -m elf64_sparc"
4221 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4222 SAVE_CFLAGS="$CFLAGS"
4223 CFLAGS="$CFLAGS -belf"
4224 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4225 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4226 if test "${lt_cv_cc_needs_belf+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235 cat >conftest.$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253 (eval $ac_link) 2>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -s conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 lt_cv_cc_needs_belf=yes
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 lt_cv_cc_needs_belf=no
4270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4279 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4280 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4282 CFLAGS="$SAVE_CFLAGS"
4288 need_locks="$enable_libtool_lock"
4291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4293 if test "${ac_cv_header_stdc+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -s conftest.$ac_objext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_cv_header_stdc=yes
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 ac_cv_header_stdc=no
4335 rm -f conftest.$ac_objext conftest.$ac_ext
4337 if test $ac_cv_header_stdc = yes; then
4338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4339 cat >conftest.$ac_ext <<_ACEOF
4340 #line $LINENO "configure"
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350 $EGREP "memchr" >/dev/null 2>&1; then
4353 ac_cv_header_stdc=no
4359 if test $ac_cv_header_stdc = yes; then
4360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4361 cat >conftest.$ac_ext <<_ACEOF
4362 #line $LINENO "configure"
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4372 $EGREP "free" >/dev/null 2>&1; then
4375 ac_cv_header_stdc=no
4381 if test $ac_cv_header_stdc = yes; then
4382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4383 if test "$cross_compiling" = yes; then
4386 cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4394 #if ((' ' & 0x0FF) == 0x020)
4395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4398 # define ISLOWER(c) \
4399 (('a' <= (c) && (c) <= 'i') \
4400 || ('j' <= (c) && (c) <= 'r') \
4401 || ('s' <= (c) && (c) <= 'z'))
4402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4410 for (i = 0; i < 256; i++)
4411 if (XOR (islower (i), ISLOWER (i))
4412 || toupper (i) != TOUPPER (i))
4417 rm -f conftest$ac_exeext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4419 (eval $ac_link) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4430 echo "$as_me: program exited with status $ac_status" >&5
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4435 ac_cv_header_stdc=no
4437 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4442 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4443 if test $ac_cv_header_stdc = yes; then
4445 cat >>confdefs.h <<\_ACEOF
4446 #define STDC_HEADERS 1
4451 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4461 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4462 inttypes.h stdint.h unistd.h
4464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4465 echo "$as_me:$LINENO: checking for $ac_header" >&5
4466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4479 #include <$ac_header>
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 eval "$as_ac_Header=yes"
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 eval "$as_ac_Header=no"
4500 rm -f conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4505 cat >>confdefs.h <<_ACEOF
4506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4515 for ac_header in dlfcn.h
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4527 # Is the header compilable?
4528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 $ac_includes_default
4538 #include <$ac_header>
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_header_compiler=yes
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 ac_header_compiler=no
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561 echo "${ECHO_T}$ac_header_compiler" >&6
4563 # Is the header present?
4564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #include <$ac_header>
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null; then
4583 if test -s conftest.err; then
4584 ac_cpp_err=$ac_c_preproc_warn_flag
4591 if test -z "$ac_cpp_err"; then
4592 ac_header_preproc=yes
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 ac_header_preproc=no
4599 rm -f conftest.err conftest.$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601 echo "${ECHO_T}$ac_header_preproc" >&6
4603 # So? What about this header?
4604 case $ac_header_compiler:$ac_header_preproc in
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4612 ## ------------------------------------ ##
4613 ## Report this to bug-autoconf@gnu.org. ##
4614 ## ------------------------------------ ##
4617 sed "s/^/$as_me: WARNING: /" >&2
4620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4628 ## ------------------------------------ ##
4629 ## Report this to bug-autoconf@gnu.org. ##
4630 ## ------------------------------------ ##
4633 sed "s/^/$as_me: WARNING: /" >&2
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 eval "$as_ac_Header=$ac_header_preproc"
4643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4657 ac_cpp='$CXXCPP $CPPFLAGS'
4658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4661 if test -n "$ac_tool_prefix"; then
4662 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666 echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668 if test "${ac_cv_prog_CXX+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test -n "$CXX"; then
4672 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 if test -n "$CXX"; then
4692 echo "$as_me:$LINENO: result: $CXX" >&5
4693 echo "${ECHO_T}$CXX" >&6
4695 echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4699 test -n "$CXX" && break
4702 if test -z "$CXX"; then
4704 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4706 # Extract the first word of "$ac_prog", so it can be a program name with args.
4707 set dummy $ac_prog; ac_word=$2
4708 echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test -n "$ac_ct_CXX"; then
4714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_ac_ct_CXX="$ac_prog"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4733 if test -n "$ac_ct_CXX"; then
4734 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4735 echo "${ECHO_T}$ac_ct_CXX" >&6
4737 echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4741 test -n "$ac_ct_CXX" && break
4743 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4749 # Provide some information about the compiler.
4750 echo "$as_me:$LINENO:" \
4751 "checking for C++ compiler version" >&5
4752 ac_compiler=`set X $ac_compile; echo $2`
4753 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4754 (eval $ac_compiler --version </dev/null >&5) 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }
4758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4759 (eval $ac_compiler -v </dev/null >&5) 2>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }
4763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4764 (eval $ac_compiler -V </dev/null >&5) 2>&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }
4769 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4770 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4771 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4812 rm -f conftest.$ac_objext conftest.$ac_ext
4813 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4816 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4817 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4818 GXX=`test $ac_compiler_gnu = yes && echo yes`
4819 ac_test_CXXFLAGS=${CXXFLAGS+set}
4820 ac_save_CXXFLAGS=$CXXFLAGS
4822 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4823 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4824 if test "${ac_cv_prog_cxx_g+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 cat >conftest.$ac_ext <<_ACEOF
4828 #line $LINENO "configure"
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4843 rm -f conftest.$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845 (eval $ac_compile) 2>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_prog_cxx_g=yes
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4862 rm -f conftest.$ac_objext conftest.$ac_ext
4864 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4865 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4866 if test "$ac_test_CXXFLAGS" = set; then
4867 CXXFLAGS=$ac_save_CXXFLAGS
4868 elif test $ac_cv_prog_cxx_g = yes; then
4869 if test "$GXX" = yes; then
4875 if test "$GXX" = yes; then
4881 for ac_declaration in \
4883 '#include <stdlib.h>' \
4884 'extern "C" void std::exit (int) throw (); using std::exit;' \
4885 'extern "C" void std::exit (int); using std::exit;' \
4886 'extern "C" void exit (int) throw ();' \
4887 'extern "C" void exit (int);' \
4890 cat >conftest.$ac_ext <<_ACEOF
4891 #line $LINENO "configure"
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4926 rm -f conftest.$ac_objext conftest.$ac_ext
4927 cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4943 rm -f conftest.$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4961 rm -f conftest.$ac_objext conftest.$ac_ext
4964 if test -n "$ac_declaration"; then
4965 echo '#ifdef __cplusplus' >>confdefs.h
4966 echo $ac_declaration >>confdefs.h
4967 echo '#endif' >>confdefs.h
4971 ac_cpp='$CXXCPP $CPPFLAGS'
4972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4977 ac_cpp='$CXXCPP $CPPFLAGS'
4978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4981 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4982 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4983 if test -z "$CXXCPP"; then
4984 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 # Double quotes because CXXCPP needs to be expanded
4988 for CXXCPP in "$CXX -E" "/lib/cpp"
4991 for ac_cxx_preproc_warn_flag in '' yes
4993 # Use a header file that comes with gcc, so configuring glibc
4994 # with a fresh cross-compiler works.
4995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 # <limits.h> exists even on freestanding compilers.
4997 # On the NeXT, cc -E runs the code through the compiler's parser,
4998 # not just through cpp. "Syntax error" is here to catch this case.
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5007 # include <limits.h>
5009 # include <assert.h>
5013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5016 grep -v '^ *+' conftest.er1 >conftest.err
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } >/dev/null; then
5021 if test -s conftest.err; then
5022 ac_cpp_err=$ac_cxx_preproc_warn_flag
5029 if test -z "$ac_cpp_err"; then
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5035 # Broken: fails on valid input.
5038 rm -f conftest.err conftest.$ac_ext
5040 # OK, works on sane cases. Now check whether non-existent headers
5041 # can be detected and how.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #include <ac_nonexistent.h>
5051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5054 grep -v '^ *+' conftest.er1 >conftest.err
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev/null; then
5059 if test -s conftest.err; then
5060 ac_cpp_err=$ac_cxx_preproc_warn_flag
5067 if test -z "$ac_cpp_err"; then
5068 # Broken: success on invalid input.
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 # Passes both tests.
5078 rm -f conftest.err conftest.$ac_ext
5081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5082 rm -f conftest.err conftest.$ac_ext
5083 if $ac_preproc_ok; then
5088 ac_cv_prog_CXXCPP=$CXXCPP
5091 CXXCPP=$ac_cv_prog_CXXCPP
5093 ac_cv_prog_CXXCPP=$CXXCPP
5095 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5096 echo "${ECHO_T}$CXXCPP" >&6
5098 for ac_cxx_preproc_warn_flag in '' yes
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat >conftest.$ac_ext <<_ACEOF
5107 #line $LINENO "configure"
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5114 # include <limits.h>
5116 # include <assert.h>
5120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null; then
5128 if test -s conftest.err; then
5129 ac_cpp_err=$ac_cxx_preproc_warn_flag
5136 if test -z "$ac_cpp_err"; then
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 # Broken: fails on valid input.
5145 rm -f conftest.err conftest.$ac_ext
5147 # OK, works on sane cases. Now check whether non-existent headers
5148 # can be detected and how.
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line $LINENO "configure"
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 #include <ac_nonexistent.h>
5158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } >/dev/null; then
5166 if test -s conftest.err; then
5167 ac_cpp_err=$ac_cxx_preproc_warn_flag
5174 if test -z "$ac_cpp_err"; then
5175 # Broken: success on invalid input.
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 # Passes both tests.
5185 rm -f conftest.err conftest.$ac_ext
5188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5189 rm -f conftest.err conftest.$ac_ext
5190 if $ac_preproc_ok; then
5193 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5194 See \`config.log' for more details." >&5
5195 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5196 See \`config.log' for more details." >&2;}
5197 { (exit 1); exit 1; }; }
5201 ac_cpp='$CXXCPP $CPPFLAGS'
5202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5209 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5211 if test -n "$ac_tool_prefix"; then
5212 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5216 echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_prog_F77+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 if test -n "$F77"; then
5222 ac_cv_prog_F77="$F77" # Let the user override the test.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 if test -n "$F77"; then
5242 echo "$as_me:$LINENO: result: $F77" >&5
5243 echo "${ECHO_T}$F77" >&6
5245 echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5249 test -n "$F77" && break
5252 if test -z "$F77"; then
5254 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5256 # Extract the first word of "$ac_prog", so it can be a program name with args.
5257 set dummy $ac_prog; ac_word=$2
5258 echo "$as_me:$LINENO: checking for $ac_word" >&5
5259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5260 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 if test -n "$ac_ct_F77"; then
5264 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_F77="$ac_prog"
5274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5283 if test -n "$ac_ct_F77"; then
5284 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5285 echo "${ECHO_T}$ac_ct_F77" >&6
5287 echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6
5291 test -n "$ac_ct_F77" && break
5298 # Provide some information about the compiler.
5299 echo "$as_me:5299:" \
5300 "checking for Fortran 77 compiler version" >&5
5301 ac_compiler=`set X $ac_compile; echo $2`
5302 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5303 (eval $ac_compiler --version </dev/null >&5) 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }
5307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5308 (eval $ac_compiler -v </dev/null >&5) 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }
5312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5313 (eval $ac_compiler -V </dev/null >&5) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }
5318 # If we don't use `.F' as extension, the preprocessor is not run on the
5322 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5323 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5324 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest.$ac_objext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5354 rm -f conftest.$ac_objext conftest.$ac_ext
5355 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5358 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5359 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5361 G77=`test $ac_compiler_gnu = yes && echo yes`
5362 ac_test_FFLAGS=${FFLAGS+set}
5363 ac_save_FFLAGS=$FFLAGS
5365 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5366 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5367 if test "${ac_cv_prog_f77_g+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 cat >conftest.$ac_ext <<_ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -s conftest.$ac_objext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_prog_f77_g=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5395 rm -f conftest.$ac_objext conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5399 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5400 if test "$ac_test_FFLAGS" = set; then
5401 FFLAGS=$ac_save_FFLAGS
5402 elif test $ac_cv_prog_f77_g = yes; then
5403 if test "$G77" = yes; then
5409 if test "$G77" = yes; then
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5425 # find the maximum length of command line arguments
5426 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5427 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5428 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 # On DJGPP, this test can blow up pretty badly due to problems in libc
5437 # (any single argument exceeding 2000 bytes causes a buffer overrun
5438 # during glob expansion). Even if it were fixed, the result of this
5439 # check would be larger than it should be.
5440 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5444 # Under GNU Hurd, this test is not required because there is
5445 # no limit to the length of command line arguments.
5446 # Libtool will interpret -1 as no limit whatsoever
5447 lt_cv_sys_max_cmd_len=-1;
5451 # On Win9x/ME, this test blows up -- it succeeds, but takes
5452 # about 5 minutes as the teststring grows exponentially.
5453 # Worse, since 9x/ME are not pre-emptively multitasking,
5454 # you end up with a "frozen" computer, even though with patience
5455 # the test eventually succeeds (with a max line length of 256k).
5456 # Instead, let's just punt: use the minimum linelength reported by
5457 # all of the supported platforms: 8192 (on NT/2K/XP).
5458 lt_cv_sys_max_cmd_len=8192;
5462 # On AmigaOS with pdksh, this test takes hours, literally.
5463 # So we just punt and use a minimum line length of 8192.
5464 lt_cv_sys_max_cmd_len=8192;
5468 # If test is not a shell built-in, we'll probably end up computing a
5469 # maximum length that is only half of the actual maximum length, but
5471 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5472 = "XX$teststring") >/dev/null 2>&1 &&
5473 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5474 lt_cv_sys_max_cmd_len=$new_result &&
5475 test $i != 17 # 1/2 MB should be enough
5478 teststring=$teststring$teststring
5481 # Add a significant safety factor because C++ compilers can tack on massive
5482 # amounts of additional arguments before passing them to the linker.
5483 # It appears as though 1/2 is a usable value.
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5490 if test -n $lt_cv_sys_max_cmd_len ; then
5491 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5492 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5494 echo "$as_me:$LINENO: result: none" >&5
5495 echo "${ECHO_T}none" >&6
5501 # Check for command to grab the raw symbol name followed by C symbol from nm.
5502 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 # These are sane defaults that work on at least a few old systems.
5509 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5511 # Character class describing NM global symbol codes.
5512 symcode='[BCDEGRST]'
5514 # Regexp to match symbols that can be accessed directly from C.
5515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5517 # Transform the above into a raw symbol and a C symbol.
5518 symxfrm='\1 \2\3 \3'
5520 # Transform an extracted symbol line into a proper C declaration
5521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5523 # Transform an extracted symbol line into symbol name and symbol address
5524 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5526 # Define system-specific variables.
5531 cygwin* | mingw* | pw32*)
5532 symcode='[ABCDGISTW]'
5534 hpux*) # Its linker distinguishes data from code symbols
5535 if test "$host_cpu" = ia64; then
5536 symcode='[ABCDEGRST]'
5538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5539 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5542 symcode='[BCDEGRST]'
5545 symcode='[BCDEGQRST]'
5555 # Handle CRLF in mingw tool chain
5559 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5563 # If we're using GNU nm, then use its standard symbol codes.
5564 case `$NM -V 2>&1` in
5565 *GNU* | *'with BFD'*)
5566 symcode='[ABCDGIRSTW]' ;;
5569 # Try without a prefix undercore, then with it.
5570 for ac_symprfx in "" "_"; do
5572 # Write the raw and C identifiers.
5573 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5575 # Check to see that the pipe works correctly.
5579 cat > conftest.$ac_ext <<EOF
5584 void nm_test_func(){}
5588 int main(){nm_test_var='a';nm_test_func();return(0);}
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; then
5596 # Now try to grab the symbols.
5598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && test -s "$nlist"; then
5603 # Try sorting and uniquifying the output.
5604 if sort "$nlist" | uniq > "$nlist"T; then
5605 mv -f "$nlist"T "$nlist"
5610 # Make sure that we snagged all the symbols we need.
5611 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5612 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5613 cat <<EOF > conftest.$ac_ext
5619 # Now generate the symbol file.
5620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5622 cat <<EOF >> conftest.$ac_ext
5623 #if defined (__STDC__) && __STDC__
5624 # define lt_ptr_t void *
5626 # define lt_ptr_t char *
5630 /* The mapping between symbol names and symbols. */
5635 lt_preloaded_symbols[] =
5638 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5639 cat <<\EOF >> conftest.$ac_ext
5647 # Now try linking the two files.
5648 mv conftest.$ac_objext conftstm.$ac_objext
5649 lt_save_LIBS="$LIBS"
5650 lt_save_CFLAGS="$CFLAGS"
5651 LIBS="conftstm.$ac_objext"
5652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654 (eval $ac_link) 2>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5660 LIBS="$lt_save_LIBS"
5661 CFLAGS="$lt_save_CFLAGS"
5663 echo "cannot find nm_test_func in $nlist" >&5
5666 echo "cannot find nm_test_var in $nlist" >&5
5669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5672 echo "$progname: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5675 rm -f conftest* conftst*
5677 # Do not use the global_symbol_pipe unless it works.
5678 if test "$pipe_works" = yes; then
5681 lt_cv_sys_global_symbol_pipe=
5687 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5688 lt_cv_sys_global_symbol_to_cdecl=
5690 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5691 echo "$as_me:$LINENO: result: failed" >&5
5692 echo "${ECHO_T}failed" >&6
5694 echo "$as_me:$LINENO: result: ok" >&5
5695 echo "${ECHO_T}ok" >&6
5698 echo "$as_me:$LINENO: checking for objdir" >&5
5699 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5700 if test "${lt_cv_objdir+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 rm -f .libs 2>/dev/null
5704 mkdir .libs 2>/dev/null
5705 if test -d .libs; then
5708 # MS-DOS does not allow filenames that begin with a dot.
5711 rmdir .libs 2>/dev/null
5713 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5714 echo "${ECHO_T}$lt_cv_objdir" >&6
5715 objdir=$lt_cv_objdir
5723 # AIX sometimes has problems with the GCC collect2 program. For some
5724 # reason, if we set the COLLECT_NAMES environment variable, the problems
5725 # vanish in a puff of smoke.
5726 if test "X${COLLECT_NAMES+set}" != Xset; then
5728 export COLLECT_NAMES
5733 # Sed substitution that helps us do robust quoting. It backslashifies
5734 # metacharacters that are still active within double-quoted strings.
5735 Xsed='sed -e s/^X//'
5736 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5738 # Same as above, but do not quote variable references.
5739 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5741 # Sed substitution to delay expansion of an escaped shell variable in a
5742 # double_quote_subst'ed string.
5743 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5745 # Sed substitution to avoid accidental globbing in evaled expressions
5746 no_glob_subst='s/\*/\\\*/g'
5752 default_ofile=libtool
5753 can_build_shared=yes
5755 # All known linkers require a `.a' archive for static linking (except M$VC,
5756 # which needs '.lib').
5758 ltmain="$ac_aux_dir/ltmain.sh"
5759 ofile="$default_ofile"
5760 with_gnu_ld="$lt_cv_prog_gnu_ld"
5762 if test -n "$ac_tool_prefix"; then
5763 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5764 set dummy ${ac_tool_prefix}ar; ac_word=$2
5765 echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767 if test "${ac_cv_prog_AR+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 if test -n "$AR"; then
5771 ac_cv_prog_AR="$AR" # Let the user override the test.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_AR="${ac_tool_prefix}ar"
5781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 if test -n "$AR"; then
5791 echo "$as_me:$LINENO: result: $AR" >&5
5792 echo "${ECHO_T}$AR" >&6
5794 echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5799 if test -z "$ac_cv_prog_AR"; then
5801 # Extract the first word of "ar", so it can be a program name with args.
5802 set dummy ar; ac_word=$2
5803 echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5805 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 if test -n "$ac_ct_AR"; then
5809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_ac_ct_AR="ar"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5829 if test -n "$ac_ct_AR"; then
5830 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5831 echo "${ECHO_T}$ac_ct_AR" >&6
5833 echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6
5842 if test -n "$ac_tool_prefix"; then
5843 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5845 echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847 if test "${ac_cv_prog_RANLIB+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 if test -n "$RANLIB"; then
5851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 RANLIB=$ac_cv_prog_RANLIB
5870 if test -n "$RANLIB"; then
5871 echo "$as_me:$LINENO: result: $RANLIB" >&5
5872 echo "${ECHO_T}$RANLIB" >&6
5874 echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6
5879 if test -z "$ac_cv_prog_RANLIB"; then
5880 ac_ct_RANLIB=$RANLIB
5881 # Extract the first word of "ranlib", so it can be a program name with args.
5882 set dummy ranlib; ac_word=$2
5883 echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5885 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 if test -n "$ac_ct_RANLIB"; then
5889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_prog_ac_ct_RANLIB="ranlib"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5909 if test -n "$ac_ct_RANLIB"; then
5910 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5911 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5913 echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6
5917 RANLIB=$ac_ct_RANLIB
5919 RANLIB="$ac_cv_prog_RANLIB"
5922 if test -n "$ac_tool_prefix"; then
5923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5924 set dummy ${ac_tool_prefix}strip; ac_word=$2
5925 echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927 if test "${ac_cv_prog_STRIP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 if test -n "$STRIP"; then
5931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 STRIP=$ac_cv_prog_STRIP
5950 if test -n "$STRIP"; then
5951 echo "$as_me:$LINENO: result: $STRIP" >&5
5952 echo "${ECHO_T}$STRIP" >&6
5954 echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5959 if test -z "$ac_cv_prog_STRIP"; then
5961 # Extract the first word of "strip", so it can be a program name with args.
5962 set dummy strip; ac_word=$2
5963 echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5965 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 if test -n "$ac_ct_STRIP"; then
5969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978 ac_cv_prog_ac_ct_STRIP="strip"
5979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5989 if test -n "$ac_ct_STRIP"; then
5990 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5991 echo "${ECHO_T}$ac_ct_STRIP" >&6
5993 echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5999 STRIP="$ac_cv_prog_STRIP"
6004 old_CFLAGS="$CFLAGS"
6006 # Set sane defaults for various variables
6007 test -z "$AR" && AR=ar
6008 test -z "$AR_FLAGS" && AR_FLAGS=cru
6009 test -z "$AS" && AS=as
6010 test -z "$CC" && CC=cc
6011 test -z "$LTCC" && LTCC=$CC
6012 test -z "$DLLTOOL" && DLLTOOL=dlltool
6013 test -z "$LD" && LD=ld
6014 test -z "$LN_S" && LN_S="ln -s"
6015 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6016 test -z "$NM" && NM=nm
6017 test -z "$SED" && SED=sed
6018 test -z "$OBJDUMP" && OBJDUMP=objdump
6019 test -z "$RANLIB" && RANLIB=:
6020 test -z "$STRIP" && STRIP=:
6021 test -z "$ac_objext" && ac_objext=o
6023 # Determine commands to create old-style static archives.
6024 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6025 old_postinstall_cmds='chmod 644 $oldlib'
6026 old_postuninstall_cmds=
6028 if test -n "$RANLIB"; then
6031 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6034 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6037 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6040 # Only perform the check for file, if the check method requires it
6041 case $deplibs_check_method in
6043 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6044 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6045 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6046 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6054 lt_save_MAGIC_CMD="$MAGIC_CMD"
6055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6056 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6057 for ac_dir in $ac_dummy; do
6059 test -z "$ac_dir" && ac_dir=.
6060 if test -f $ac_dir/${ac_tool_prefix}file; then
6061 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6062 if test -n "$file_magic_test_file"; then
6063 case $deplibs_check_method in
6065 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6068 $EGREP "$file_magic_regex" > /dev/null; then
6073 *** Warning: the command libtool uses to detect shared libraries,
6074 *** $file_magic_cmd, produces output that libtool cannot recognize.
6075 *** The result is that libtool may fail to recognize shared libraries
6076 *** as such. This will affect the creation of libtool libraries that
6077 *** depend on shared libraries, but programs linked with such libtool
6078 *** libraries will work regardless of this problem. Nevertheless, you
6079 *** may want to report the problem to your system manager and/or to
6080 *** bug-libtool@gnu.org
6090 MAGIC_CMD="$lt_save_MAGIC_CMD"
6095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096 if test -n "$MAGIC_CMD"; then
6097 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6098 echo "${ECHO_T}$MAGIC_CMD" >&6
6100 echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6
6104 if test -z "$lt_cv_path_MAGIC_CMD"; then
6105 if test -n "$ac_tool_prefix"; then
6106 echo "$as_me:$LINENO: checking for file" >&5
6107 echo $ECHO_N "checking for file... $ECHO_C" >&6
6108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6116 lt_save_MAGIC_CMD="$MAGIC_CMD"
6117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6119 for ac_dir in $ac_dummy; do
6121 test -z "$ac_dir" && ac_dir=.
6122 if test -f $ac_dir/file; then
6123 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6124 if test -n "$file_magic_test_file"; then
6125 case $deplibs_check_method in
6127 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6130 $EGREP "$file_magic_regex" > /dev/null; then
6135 *** Warning: the command libtool uses to detect shared libraries,
6136 *** $file_magic_cmd, produces output that libtool cannot recognize.
6137 *** The result is that libtool may fail to recognize shared libraries
6138 *** as such. This will affect the creation of libtool libraries that
6139 *** depend on shared libraries, but programs linked with such libtool
6140 *** libraries will work regardless of this problem. Nevertheless, you
6141 *** may want to report the problem to your system manager and/or to
6142 *** bug-libtool@gnu.org
6152 MAGIC_CMD="$lt_save_MAGIC_CMD"
6157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158 if test -n "$MAGIC_CMD"; then
6159 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6160 echo "${ECHO_T}$MAGIC_CMD" >&6
6162 echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6178 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6179 if test "${enable_libtool_lock+set}" = set; then
6180 enableval="$enable_libtool_lock"
6183 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6186 # Check whether --with-pic or --without-pic was given.
6187 if test "${with_pic+set}" = set; then
6193 test -z "$pic_mode" && pic_mode=default
6195 # Use C for the default configuration in the libtool script
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205 # Source file extension for C test sources.
6208 # Object file extension for compiled C test sources.
6212 # Code to be used in simple compile tests
6213 lt_simple_compile_test_code="int some_variable = 0;\n"
6215 # Code to be used in simple link tests
6216 lt_simple_link_test_code='int main(){return(0);}\n'
6219 # If no C compiler was specified, use CC.
6222 # Allow CC to be a program name with arguments.
6227 # Check for any special shared library compilation flags.
6230 if test "$GCC" = no; then
6233 lt_prog_cc_shlib='-belf'
6237 if test -n "$lt_prog_cc_shlib"; then
6238 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6239 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6240 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6242 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6243 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6244 lt_cv_prog_cc_can_build_shared=no
6250 # Check to make sure the static flag actually works.
6252 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6253 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6254 if test "${lt_prog_compiler_static_works+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 lt_prog_compiler_static_works=no
6258 save_LDFLAGS="$LDFLAGS"
6259 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6260 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6262 # The compiler can only warn and ignore the option if not recognized
6263 # So say no if there are warnings
6264 if test -s conftest.err; then
6265 # Append any errors to the config.log.
6266 cat conftest.err 1>&5
6268 lt_prog_compiler_static_works=yes
6272 LDFLAGS="$save_LDFLAGS"
6275 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6276 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6278 if test x"$lt_prog_compiler_static_works" = xyes; then
6281 lt_prog_compiler_static=
6287 lt_prog_compiler_no_builtin_flag=
6289 if test "$GCC" = yes; then
6290 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6293 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6294 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6295 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 lt_cv_prog_compiler_rtti_exceptions=no
6299 ac_outfile=conftest.$ac_objext
6300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6301 lt_compiler_flag="-fno-rtti -fno-exceptions"
6302 # Insert the option either (1) after the last *FLAGS variable, or
6303 # (2) before a word containing "conftest.", or (3) at the end.
6304 # Note that $ac_compile itself does not contain backslashes and begins
6305 # with a dollar sign (not a hyphen), so the echo should work correctly.
6306 # The option is referenced via a variable to avoid confusing sed.
6307 lt_compile=`echo "$ac_compile" | $SED \
6308 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6310 -e 's:$: $lt_compiler_flag:'`
6311 (eval echo "\"\$as_me:6311: $lt_compile\"" >&5)
6312 (eval "$lt_compile" 2>conftest.err)
6314 cat conftest.err >&5
6315 echo "$as_me:6315: \$? = $ac_status" >&5
6316 if (exit $ac_status) && test -s "$ac_outfile"; then
6317 # The compiler can only warn and ignore the option if not recognized
6318 # So say no if there are warnings
6319 if test ! -s conftest.err; then
6320 lt_cv_prog_compiler_rtti_exceptions=yes
6326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6327 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6337 lt_prog_compiler_wl=
6338 lt_prog_compiler_pic=
6339 lt_prog_compiler_static=
6341 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6342 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6344 if test "$GCC" = yes; then
6345 lt_prog_compiler_wl='-Wl,'
6346 lt_prog_compiler_static='-static'
6350 # All AIX code is PIC.
6351 if test "$host_cpu" = ia64; then
6352 # AIX 5 now supports IA64 processor
6353 lt_prog_compiler_static='-Bstatic'
6358 # FIXME: we need at least 68020 code to build shared libraries, but
6359 # adding the `-m68020' flag to GCC prevents building anything better,
6361 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6364 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6365 # PIC is the default for these OSes.
6368 mingw* | pw32* | os2*)
6369 # This hack is so that the source file can tell whether it is being
6370 # built for inclusion in a dll (and should export symbols for example).
6371 lt_prog_compiler_pic='-DDLL_EXPORT'
6374 darwin* | rhapsody*)
6375 # PIC is the default on this platform
6376 # Common symbols not allowed in MH_DYLIB files
6377 lt_prog_compiler_pic='-fno-common'
6381 # Just because we use GCC doesn't mean we suddenly get shared libraries
6382 # on systems that don't support them.
6383 lt_prog_compiler_can_build_shared=no
6388 if test -d /usr/nec; then
6389 lt_prog_compiler_pic=-Kconform_pic
6394 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6401 lt_prog_compiler_pic='-fPIC'
6407 lt_prog_compiler_pic='-fPIC'
6411 # PORTME Check for flag to pass linker flags through the system compiler.
6414 lt_prog_compiler_wl='-Wl,'
6415 if test "$host_cpu" = ia64; then
6416 # AIX 5 now supports IA64 processor
6417 lt_prog_compiler_static='-Bstatic'
6419 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6423 mingw* | pw32* | os2*)
6424 # This hack is so that the source file can tell whether it is being
6425 # built for inclusion in a dll (and should export symbols for example).
6426 lt_prog_compiler_pic='-DDLL_EXPORT'
6429 hpux9* | hpux10* | hpux11*)
6430 lt_prog_compiler_wl='-Wl,'
6431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6438 lt_prog_compiler_pic='+Z'
6441 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6442 lt_prog_compiler_static='${wl}-a ${wl}archive'
6445 irix5* | irix6* | nonstopux*)
6446 lt_prog_compiler_wl='-Wl,'
6447 # PIC (with -KPIC) is the default.
6448 lt_prog_compiler_static='-non_shared'
6452 lt_prog_compiler_pic='-KPIC'
6453 lt_prog_compiler_static='-Bstatic'
6459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-static'
6464 lt_prog_compiler_wl='-Wl,'
6465 # All Alpha code is PIC.
6466 lt_prog_compiler_static='-non_shared'
6471 osf3* | osf4* | osf5*)
6472 lt_prog_compiler_wl='-Wl,'
6473 # All OSF/1 code is PIC.
6474 lt_prog_compiler_static='-non_shared'
6478 lt_prog_compiler_pic='-Kpic'
6479 lt_prog_compiler_static='-dn'
6483 lt_prog_compiler_wl='-Wl,'
6484 lt_prog_compiler_pic='-KPIC'
6485 lt_prog_compiler_static='-Bstatic'
6489 lt_prog_compiler_wl='-Qoption ld '
6490 lt_prog_compiler_pic='-PIC'
6491 lt_prog_compiler_static='-Bstatic'
6494 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6495 lt_prog_compiler_wl='-Wl,'
6496 lt_prog_compiler_pic='-KPIC'
6497 lt_prog_compiler_static='-Bstatic'
6501 if test -d /usr/nec ;then
6502 lt_prog_compiler_pic='-Kconform_pic'
6503 lt_prog_compiler_static='-Bstatic'
6508 lt_prog_compiler_pic='-pic'
6509 lt_prog_compiler_static='-Bstatic'
6513 lt_prog_compiler_can_build_shared=no
6518 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6519 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6522 # Check to make sure the PIC flag actually works.
6524 if test -n "$lt_prog_compiler_pic"; then
6526 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6527 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6528 if test "${lt_prog_compiler_pic_works+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 lt_prog_compiler_pic_works=no
6532 ac_outfile=conftest.$ac_objext
6533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6534 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6535 # Insert the option either (1) after the last *FLAGS variable, or
6536 # (2) before a word containing "conftest.", or (3) at the end.
6537 # Note that $ac_compile itself does not contain backslashes and begins
6538 # with a dollar sign (not a hyphen), so the echo should work correctly.
6539 # The option is referenced via a variable to avoid confusing sed.
6540 lt_compile=`echo "$ac_compile" | $SED \
6541 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6543 -e 's:$: $lt_compiler_flag:'`
6544 (eval echo "\"\$as_me:6544: $lt_compile\"" >&5)
6545 (eval "$lt_compile" 2>conftest.err)
6547 cat conftest.err >&5
6548 echo "$as_me:6548: \$? = $ac_status" >&5
6549 if (exit $ac_status) && test -s "$ac_outfile"; then
6550 # The compiler can only warn and ignore the option if not recognized
6551 # So say no if there are warnings
6552 if test ! -s conftest.err; then
6553 lt_prog_compiler_pic_works=yes
6559 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6560 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6562 if test x"$lt_prog_compiler_pic_works" = xyes; then
6563 case $lt_prog_compiler_pic in
6565 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6568 lt_prog_compiler_pic=
6569 lt_prog_compiler_can_build_shared=no
6574 # For platforms which do not support PIC, -DPIC is meaningless:
6576 lt_prog_compiler_pic=
6579 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6583 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6584 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6585 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 lt_cv_prog_compiler_c_o=no
6589 $rm -r conftest 2>/dev/null
6593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6595 lt_compiler_flag="-o out/conftest2.$ac_objext"
6596 # Insert the option either (1) after the last *FLAGS variable, or
6597 # (2) before a word containing "conftest.", or (3) at the end.
6598 # Note that $ac_compile itself does not contain backslashes and begins
6599 # with a dollar sign (not a hyphen), so the echo should work correctly.
6600 lt_compile=`echo "$ac_compile" | $SED \
6601 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6603 -e 's:$: $lt_compiler_flag:'`
6604 (eval echo "\"\$as_me:6604: $lt_compile\"" >&5)
6605 (eval "$lt_compile" 2>out/conftest.err)
6607 cat out/conftest.err >&5
6608 echo "$as_me:6608: \$? = $ac_status" >&5
6609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6611 # The compiler can only warn and ignore the option if not recognized
6612 # So say no if there are warnings
6613 if test ! -s out/conftest.err; then
6614 lt_cv_prog_compiler_c_o=yes
6619 # SGI C++ compiler will create directory out/ii_files/ for
6620 # template instantiation
6621 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6622 $rm out/* && rmdir out
6628 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6629 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6632 hard_links="nottested"
6633 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6634 # do not overwrite the value of need_locks provided by the user
6635 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6636 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6641 ln conftest.a conftest.b 2>&5 || hard_links=no
6642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6643 echo "$as_me:$LINENO: result: $hard_links" >&5
6644 echo "${ECHO_T}$hard_links" >&6
6645 if test "$hard_links" = no; then
6646 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6647 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6654 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6655 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6658 allow_undefined_flag=
6659 enable_shared_with_static_runtimes=no
6661 archive_expsym_cmds=
6662 old_archive_From_new_cmds=
6663 old_archive_from_expsyms_cmds=
6664 export_dynamic_flag_spec=
6665 whole_archive_flag_spec=
6666 thread_safe_flag_spec=
6667 hardcode_libdir_flag_spec=
6668 hardcode_libdir_flag_spec_ld=
6669 hardcode_libdir_separator=
6672 hardcode_shlibpath_var=unsupported
6673 link_all_deplibs=unknown
6674 hardcode_automatic=no
6677 always_export_symbols=no
6678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6679 # include_expsyms should be a list of space-separated symbols to be *always*
6680 # included in the symbol list
6682 # exclude_expsyms can be an extended regexp of symbols to exclude
6683 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6684 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6685 # as well as any symbol that contains `d'.
6686 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6687 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6688 # platforms (ab)use it in PIC code, but their linkers get confused if
6689 # the symbol is explicitly referenced. Since portable code cannot
6690 # rely on this symbol name, it's probably fine to never include it in
6691 # preloaded symbol tables.
6692 extract_expsyms_cmds=
6695 cygwin* | mingw* | pw32*)
6696 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6697 # When not using gcc, we currently assume that we are using
6698 # Microsoft Visual C++.
6699 if test "$GCC" != yes; then
6709 if test "$with_gnu_ld" = yes; then
6710 # If archive_cmds runs LD, not CC, wlarc should be empty
6713 # See if GNU ld supports shared libraries.
6715 aix3* | aix4* | aix5*)
6716 # On AIX/PPC, the GNU linker is very broken
6717 if test "$host_cpu" != ia64; then
6721 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6722 *** to be unable to reliably create shared libraries on AIX.
6723 *** Therefore, libtool is disabling shared libraries support. If you
6724 *** really care for shared libraries, you may want to modify your PATH
6725 *** so that a non-GNU linker is found, and then restart.
6732 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)'
6733 hardcode_libdir_flag_spec='-L$libdir'
6734 hardcode_minus_L=yes
6736 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6737 # that the semantics of dynamic libraries on AmigaOS, at least up
6738 # to version 4, is to share data among multiple programs linked
6739 # with the same dynamic library. Since this doesn't match the
6740 # behavior of shared libraries on other platforms, we can't use
6746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6747 allow_undefined_flag=unsupported
6748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6749 # support --undefined. This deserves some investigation. FIXME
6750 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6756 cygwin* | mingw* | pw32*)
6757 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6758 # as there is no search path for DLLs.
6759 hardcode_libdir_flag_spec='-L$libdir'
6760 allow_undefined_flag=unsupported
6761 always_export_symbols=no
6762 enable_shared_with_static_runtimes=yes
6763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6765 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6767 # If the export-symbols file already is a .def file (1st line
6768 # is EXPORTS), use it as is; otherwise, prepend...
6769 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6770 cp $export_symbols $output_objdir/$soname.def;
6772 echo EXPORTS > $output_objdir/$soname.def;
6773 cat $export_symbols >> $output_objdir/$soname.def;
6775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6781 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6783 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6792 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6797 *** create shared libraries on Solaris systems. Therefore, libtool
6798 *** is disabling shared libraries support. We urge you to upgrade GNU
6799 *** binutils to release 2.9.1 or newer. Another option is to modify
6800 *** your PATH or compiler configuration so that the native linker is
6801 *** used, and then restart.
6804 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6813 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6816 hardcode_shlibpath_var=no
6820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6821 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6822 archive_cmds="$tmp_archive_cmds"
6823 supports_anon_versioning=no
6824 case `$LD -v 2>/dev/null` in
6825 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6826 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6827 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6828 *\ 2.11.*) ;; # other 2.11 versions
6829 *) supports_anon_versioning=yes ;;
6831 if test $supports_anon_versioning = yes; then
6832 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6834 $echo "local: *; };" >> $output_objdir/$libname.ver~
6835 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6837 archive_expsym_cmds="$tmp_archive_cmds"
6846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6855 if test "$ld_shlibs" = yes; then
6856 runpath_var=LD_RUN_PATH
6857 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6858 export_dynamic_flag_spec='${wl}--export-dynamic'
6859 # ancient GNU ld didn't support --whole-archive et. al.
6860 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6861 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6863 whole_archive_flag_spec=
6867 # PORTME fill in a description of your system's linker (not GNU ld)
6870 allow_undefined_flag=unsupported
6871 always_export_symbols=yes
6872 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'
6873 # Note: this linker hardcodes the directories in LIBPATH if there
6874 # are no directories specified by -L.
6875 hardcode_minus_L=yes
6876 if test "$GCC" = yes && test -z "$link_static_flag"; then
6877 # Neither direct hardcoding nor static linking is supported with a
6879 hardcode_direct=unsupported
6884 if test "$host_cpu" = ia64; then
6885 # On IA64, the linker does run time linking by default, so we don't
6886 # have to do anything special.
6887 aix_use_runtimelinking=no
6888 exp_sym_flag='-Bexport'
6891 # If we're using GNU nm, then we don't want the "-C" option.
6892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6893 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6894 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6896 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6898 aix_use_runtimelinking=no
6900 # Test if we are trying to use run time linking or normal
6901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6902 # need to do runtime linking.
6903 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6904 for ld_flag in $LDFLAGS; do
6905 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6906 aix_use_runtimelinking=yes
6912 exp_sym_flag='-bexport'
6913 no_entry_flag='-bnoentry'
6916 # When large executables or shared objects are built, AIX ld can
6917 # have problems creating the table of contents. If linking a library
6918 # or program results in "error TOC overflow" add -mminimal-toc to
6919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6924 hardcode_libdir_separator=':'
6925 link_all_deplibs=yes
6927 if test "$GCC" = yes; then
6928 case $host_os in aix4.012|aix4.012.*)
6929 # We only want to do this on AIX 4.2 and lower, the check
6930 # below for broken collect2 doesn't work under 4.3+
6931 collect2name=`${CC} -print-prog-name=collect2`
6932 if test -f "$collect2name" && \
6933 strings "$collect2name" | grep resolve_lib_name >/dev/null
6935 # We have reworked collect2
6938 # We have old collect2
6939 hardcode_direct=unsupported
6940 # It fails to find uninstalled libraries when the uninstalled
6941 # path is not listed in the libpath. Setting hardcode_minus_L
6942 # to unsupported forces relinking
6943 hardcode_minus_L=yes
6944 hardcode_libdir_flag_spec='-L$libdir'
6945 hardcode_libdir_separator=
6948 shared_flag='-shared'
6951 if test "$host_cpu" = ia64; then
6952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6953 # chokes on -Wl,-G. The following line is correct:
6956 if test "$aix_use_runtimelinking" = yes; then
6957 shared_flag='${wl}-G'
6959 shared_flag='${wl}-bM:SRE'
6964 # It seems that -bexpall does not export symbols beginning with
6965 # underscore (_), so it is better to generate a list of symbols to export.
6966 always_export_symbols=yes
6967 if test "$aix_use_runtimelinking" = yes; then
6968 # Warning - without using the other runtime loading flags (-brtl),
6969 # -berok will link without error, but may produce a broken library.
6970 allow_undefined_flag='-berok'
6971 # Determine the default libpath from the value encoded in an empty executable.
6972 cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -s conftest$ac_exeext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7003 # Check for a 64-bit object if we didn't find anything.
7004 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7015 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"
7017 if test "$host_cpu" = ia64; then
7018 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7019 allow_undefined_flag="-z nodefs"
7020 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7022 # Determine the default libpath from the value encoded in an empty executable.
7023 cat >conftest.$ac_ext <<_ACEOF
7024 #line $LINENO "configure"
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7054 # Check for a 64-bit object if we didn't find anything.
7055 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7066 # Warning - without using the other run time loading flags,
7067 # -berok will link without error, but may produce a broken library.
7068 no_undefined_flag=' ${wl}-bernotok'
7069 allow_undefined_flag=' ${wl}-berok'
7070 # -bexpall does not export symbols beginning with underscore (_)
7071 always_export_symbols=yes
7072 # Exported symbols can be pulled into shared objects from archives
7073 whole_archive_flag_spec=' '
7074 archive_cmds_need_lc=yes
7075 # This is similar to how AIX traditionally builds it's shared libraries.
7076 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7082 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)'
7083 hardcode_libdir_flag_spec='-L$libdir'
7084 hardcode_minus_L=yes
7085 # see comment about different semantics on the GNU ld section
7090 export_dynamic_flag_spec=-rdynamic
7093 cygwin* | mingw* | pw32*)
7094 # When not using gcc, we currently assume that we are using
7095 # Microsoft Visual C++.
7096 # hardcode_libdir_flag_spec is actually meaningless, as there is
7097 # no search path for DLLs.
7098 hardcode_libdir_flag_spec=' '
7099 allow_undefined_flag=unsupported
7100 # Tell ltmain to make .lib files, not .a files.
7102 # Tell ltmain to make .dll files, not .so files.
7104 # FIXME: Setting linknames here is a bad hack.
7105 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7106 # The linker will automatically build a .lib file if we build a DLL.
7107 old_archive_From_new_cmds='true'
7108 # FIXME: Should let the user specify the lib program.
7109 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7110 fix_srcfile_path='`cygpath -w "$srcfile"`'
7111 enable_shared_with_static_runtimes=yes
7114 darwin* | rhapsody*)
7115 if test "$GXX" = yes ; then
7116 archive_cmds_need_lc=no
7118 rhapsody* | darwin1.[012])
7119 allow_undefined_flag='-undefined suppress'
7122 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7123 allow_undefined_flag='-flat_namespace -undefined suppress'
7125 case ${MACOSX_DEPLOYMENT_TARGET} in
7127 allow_undefined_flag='-flat_namespace -undefined suppress'
7130 allow_undefined_flag='-undefined dynamic_lookup'
7136 lt_int_apple_cc_single_mod=no
7137 output_verbose_link_cmd='echo'
7138 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7139 lt_int_apple_cc_single_mod=yes
7141 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7142 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7144 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7146 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7148 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7149 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7151 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7153 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7155 hardcode_automatic=yes
7156 hardcode_shlibpath_var=unsupported
7157 whole_archive_flag_spec='-all_load $convenience'
7158 link_all_deplibs=yes
7165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7166 hardcode_libdir_flag_spec='-L$libdir'
7167 hardcode_shlibpath_var=no
7174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7175 # support. Future versions do this automatically, but an explicit c++rt0.o
7176 # does not break anything, and helps significantly (at the cost of a little
7179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7180 hardcode_libdir_flag_spec='-R$libdir'
7182 hardcode_shlibpath_var=no
7185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7189 hardcode_minus_L=yes
7190 hardcode_shlibpath_var=no
7193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7194 freebsd* | kfreebsd*-gnu)
7195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7196 hardcode_libdir_flag_spec='-R$libdir'
7198 hardcode_shlibpath_var=no
7202 if test "$GCC" = yes; then
7203 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7205 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'
7207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7208 hardcode_libdir_separator=:
7211 # hardcode_minus_L: Not really in the search PATH,
7212 # but as the default location of the library.
7213 hardcode_minus_L=yes
7214 export_dynamic_flag_spec='${wl}-E'
7218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7221 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7230 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7233 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7237 if test "$with_gnu_ld" = no; then
7240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7241 hardcode_libdir_flag_spec_ld='+b $libdir'
7242 hardcode_libdir_separator=:
7244 hardcode_shlibpath_var=no
7247 hardcode_libdir_flag_spec='-L$libdir'
7249 hardcode_shlibpath_var=no
7251 # hardcode_minus_L: Not really in the search PATH,
7252 # but as the default location of the library.
7253 hardcode_minus_L=yes
7256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7257 hardcode_libdir_separator=:
7259 export_dynamic_flag_spec='${wl}-E'
7261 # hardcode_minus_L: Not really in the search PATH,
7262 # but as the default location of the library.
7263 hardcode_minus_L=yes
7269 irix5* | irix6* | nonstopux*)
7270 if test "$GCC" = yes; then
7271 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'
7273 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'
7274 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277 hardcode_libdir_separator=:
7278 link_all_deplibs=yes
7281 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7285 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7287 hardcode_libdir_flag_spec='-R$libdir'
7289 hardcode_shlibpath_var=no
7293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7296 hardcode_libdir_separator=:
7297 hardcode_shlibpath_var=no
7302 hardcode_shlibpath_var=no
7303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7305 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7306 export_dynamic_flag_spec='${wl}-E'
7309 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7311 hardcode_libdir_flag_spec='-R$libdir'
7314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7322 hardcode_libdir_flag_spec='-L$libdir'
7323 hardcode_minus_L=yes
7324 allow_undefined_flag=unsupported
7325 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'
7326 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7330 if test "$GCC" = yes; then
7331 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7332 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'
7334 allow_undefined_flag=' -expect_unresolved \*'
7335 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'
7337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338 hardcode_libdir_separator=:
7341 osf4* | osf5*) # as osf3* with the addition of -msym flag
7342 if test "$GCC" = yes; then
7343 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7344 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'
7345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7347 allow_undefined_flag=' -expect_unresolved \*'
7348 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'
7349 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7350 $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'
7352 # Both c and cxx compiler support -rpath directly
7353 hardcode_libdir_flag_spec='-rpath $libdir'
7355 hardcode_libdir_separator=:
7359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360 hardcode_shlibpath_var=no
7361 export_dynamic_flag_spec='${wl}-Bexport'
7362 runpath_var=LD_RUN_PATH
7363 hardcode_runpath_var=yes
7367 no_undefined_flag=' -z text'
7368 if test "$GCC" = yes; then
7369 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7370 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7371 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7373 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7375 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7377 hardcode_libdir_flag_spec='-R$libdir'
7378 hardcode_shlibpath_var=no
7380 solaris2.[0-5] | solaris2.[0-5].*) ;;
7381 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7382 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7384 link_all_deplibs=yes
7388 if test "x$host_vendor" = xsequent; then
7389 # Use $CC to link under sequent, because it throws in some extra .o
7390 # files that make .init and .fini sections work.
7391 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7393 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7395 hardcode_libdir_flag_spec='-L$libdir'
7397 hardcode_minus_L=yes
7398 hardcode_shlibpath_var=no
7402 case $host_vendor in
7404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405 hardcode_direct=yes # is this really true???
7408 ## LD is ld it makes a PLAMLIB
7409 ## CC just makes a GrossModule.
7410 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7411 reload_cmds='$CC -r -o $output$reload_objs'
7415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7416 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7419 runpath_var='LD_RUN_PATH'
7420 hardcode_shlibpath_var=no
7424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7425 hardcode_shlibpath_var=no
7426 export_dynamic_flag_spec='-Bexport'
7430 if test -d /usr/nec; then
7431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432 hardcode_shlibpath_var=no
7433 runpath_var=LD_RUN_PATH
7434 hardcode_runpath_var=yes
7440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7443 hardcode_shlibpath_var=no
7444 hardcode_runpath_var=yes
7445 runpath_var=LD_RUN_PATH
7448 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7449 no_undefined_flag='${wl}-z ${wl}text'
7450 if test "$GCC" = yes; then
7451 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7453 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7455 runpath_var='LD_RUN_PATH'
7456 hardcode_shlibpath_var=no
7460 no_undefined_flag=' -z text'
7461 # $CC -shared without GNU ld will not create a library from C++
7462 # object files and a static libstdc++, better avoid it by now
7463 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7465 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7466 hardcode_libdir_flag_spec=
7467 hardcode_shlibpath_var=no
7468 runpath_var='LD_RUN_PATH'
7472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473 hardcode_libdir_flag_spec='-L$libdir'
7474 hardcode_shlibpath_var=no
7483 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7484 echo "${ECHO_T}$ld_shlibs" >&6
7485 test "$ld_shlibs" = no && can_build_shared=no
7487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7488 if test "$GCC" = yes; then
7489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7493 # Do we need to explicitly link libc?
7495 case "x$archive_cmds_need_lc" in
7497 # Assume -lc should be added
7498 archive_cmds_need_lc=yes
7500 if test "$enable_shared" = yes && test "$GCC" = yes; then
7501 case $archive_cmds in
7503 # FIXME: we may have to deal with multi-command sequences.
7506 # Test whether the compiler implicitly links with -lc since on some
7507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7508 # to ld, don't add -lc before -lgcc.
7509 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7510 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } 2>conftest.err; then
7521 libobjs=conftest.$ac_objext
7523 wl=$lt_prog_compiler_wl
7529 lt_save_allow_undefined_flag=$allow_undefined_flag
7530 allow_undefined_flag=
7531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7532 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }
7537 archive_cmds_need_lc=no
7539 archive_cmds_need_lc=yes
7541 allow_undefined_flag=$lt_save_allow_undefined_flag
7543 cat conftest.err 1>&5
7546 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7547 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7554 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7557 libname_spec='lib$name'
7565 shlibpath_overrides_runpath=unknown
7567 dynamic_linker="$host_os ld.so"
7568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7569 if test "$GCC" = yes; then
7570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7572 # if the path contains ";" then we assume it to be the separator
7573 # otherwise default to the standard path separator (i.e. ":") - it is
7574 # assumed that no part of a normal pathname contains ";" but that should
7575 # okay in the real world where ";" in dirpaths is itself problematic.
7576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7583 need_lib_prefix=unknown
7584 hardcode_into_libs=no
7586 # when you set need_version to no, make sure it does not cause -set_version
7587 # flags to be left without arguments
7588 need_version=unknown
7593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7594 shlibpath_var=LIBPATH
7596 # AIX 3 has no versioning support, so we append a major version to the name.
7597 soname_spec='${libname}${release}${shared_ext}$major'
7604 hardcode_into_libs=yes
7605 if test "$host_cpu" = ia64; then
7606 # AIX 5 supports IA64
7607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7608 shlibpath_var=LD_LIBRARY_PATH
7610 # With GCC up to 2.95.x, collect2 would create an import file
7611 # for dependence libraries. The import file would start with
7612 # the line `#! .'. This would cause the generated library to
7613 # depend on `.', always an invalid library. This was fixed in
7614 # development snapshots of GCC prior to 3.0.
7616 aix4 | aix4.[01] | aix4.[01].*)
7617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7627 # soname into executable. Probably we can add versioning support to
7628 # collect2, so additional links can be useful in future.
7629 if test "$aix_use_runtimelinking" = yes; then
7630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7631 # instead of lib<name>.a to let people know that these are not
7632 # typical AIX shared libraries.
7633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7635 # We preserve .a as extension for shared libraries through AIX4.2
7636 # and later when we are not doing run time linking.
7637 library_names_spec='${libname}${release}.a $libname.a'
7638 soname_spec='${libname}${release}${shared_ext}$major'
7640 shlibpath_var=LIBPATH
7645 library_names_spec='$libname.ixlibrary $libname.a'
7646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7647 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'
7651 library_names_spec='${libname}${shared_ext}'
7652 dynamic_linker="$host_os ld.so"
7653 shlibpath_var=LIBRARY_PATH
7659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7660 soname_spec='${libname}${release}${shared_ext}$major'
7661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7662 shlibpath_var=LD_LIBRARY_PATH
7663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7665 # the default ld.so.conf also contains /usr/contrib/lib and
7666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7667 # libtool to hard-code these into programs
7670 cygwin* | mingw* | pw32*)
7671 version_type=windows
7676 case $GCC,$host_os in
7677 yes,cygwin* | yes,mingw* | yes,pw32*)
7678 library_names_spec='$libname.dll.a'
7679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7680 postinstall_cmds='base_file=`basename \${file}`~
7681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7682 dldir=$destdir/`dirname \$dlpath`~
7683 test -d \$dldir || mkdir -p \$dldir~
7684 $install_prog $dir/$dlname \$dldir/$dlname'
7685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7686 dlpath=$dir/\$dldll~
7688 shlibpath_overrides_runpath=yes
7692 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7694 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7697 # MinGW DLLs use traditional 'lib' prefix
7698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7700 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7701 # It is most probably a Windows format PATH printed by
7702 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7703 # path with ; separators, and with drive letters. We can handle the
7704 # drive letters (cygwin fileutils understands them), so leave them,
7705 # especially as we might pass files found there to a mingw objdump,
7706 # which wouldn't understand a cygwinified path. Ahh.
7707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7713 # pw32 DLLs use 'pw' prefix rather than 'lib'
7714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7723 dynamic_linker='Win32 ld.exe'
7724 # FIXME: first we should search . and the directory the executable is in
7728 darwin* | rhapsody*)
7729 dynamic_linker="$host_os dyld"
7733 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7734 soname_spec='${libname}${release}${major}$shared_ext'
7735 shlibpath_overrides_runpath=yes
7736 shlibpath_var=DYLD_LIBRARY_PATH
7737 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7738 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7739 if test "$GCC" = yes; then
7740 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7742 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7752 soname_spec='${libname}${release}${shared_ext}$major'
7753 shlibpath_var=LD_LIBRARY_PATH
7764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7765 soname_spec='${libname}${release}${shared_ext}$major'
7766 shlibpath_var=LD_LIBRARY_PATH
7767 shlibpath_overrides_runpath=no
7768 hardcode_into_libs=yes
7769 dynamic_linker='GNU ld.so'
7773 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7774 version_type=freebsd-$objformat
7775 case $version_type in
7777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7786 shlibpath_var=LD_LIBRARY_PATH
7789 shlibpath_overrides_runpath=yes
7791 freebsd3.01* | freebsdelf3.01*)
7792 shlibpath_overrides_runpath=yes
7793 hardcode_into_libs=yes
7796 shlibpath_overrides_runpath=no
7797 hardcode_into_libs=yes
7806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7807 soname_spec='${libname}${release}${shared_ext}$major'
7808 shlibpath_var=LD_LIBRARY_PATH
7809 hardcode_into_libs=yes
7812 hpux9* | hpux10* | hpux11*)
7813 # Give a soname corresponding to the major version so that dld.sl refuses to
7814 # link against other versions.
7821 hardcode_into_libs=yes
7822 dynamic_linker="$host_os dld.so"
7823 shlibpath_var=LD_LIBRARY_PATH
7824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7826 soname_spec='${libname}${release}${shared_ext}$major'
7827 if test "X$HPUX_IA64_MODE" = X32; then
7828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7836 hardcode_into_libs=yes
7837 dynamic_linker="$host_os dld.sl"
7838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841 soname_spec='${libname}${release}${shared_ext}$major'
7842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7847 dynamic_linker="$host_os dld.sl"
7848 shlibpath_var=SHLIB_PATH
7849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7851 soname_spec='${libname}${release}${shared_ext}$major'
7854 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7855 postinstall_cmds='chmod 555 $lib'
7858 irix5* | irix6* | nonstopux*)
7860 nonstopux*) version_type=nonstopux ;;
7862 if test "$lt_cv_prog_gnu_ld" = yes; then
7870 soname_spec='${libname}${release}${shared_ext}$major'
7871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7873 irix5* | nonstopux*)
7877 case $LD in # libtool.m4 will add one of these switches to LD
7878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7879 libsuff= shlibsuff= libmagic=32-bit;;
7880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7881 libsuff=32 shlibsuff=N32 libmagic=N32;;
7882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7883 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7884 *) libsuff= shlibsuff= libmagic=never-match;;
7888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7889 shlibpath_overrides_runpath=no
7890 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7891 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7892 hardcode_into_libs=yes
7895 # No shared lib support for Linux oldld, aout, or coff.
7896 linux*oldld* | linux*aout* | linux*coff*)
7900 # This must be Linux ELF.
7905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906 soname_spec='${libname}${release}${shared_ext}$major'
7907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7908 shlibpath_var=LD_LIBRARY_PATH
7909 shlibpath_overrides_runpath=no
7910 # This implies no fast_install, which is unacceptable.
7911 # Some rework will be needed to allow for fast_install
7912 # before this can be enabled.
7913 hardcode_into_libs=yes
7915 # Append ld.so.conf contents to the search path
7916 if test -f /etc/ld.so.conf; then
7917 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7918 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7921 # We used to test for /lib/ld.so.1 and disable shared libraries on
7922 # powerpc, because MkLinux only supported shared libraries with the
7923 # GNU dynamic linker. Since this was broken with cross compilers,
7924 # most powerpc-linux boxes support dynamic linking these days and
7925 # people can always --disable-shared, the test was removed, and we
7926 # assume the GNU/Linux dynamic linker is in use.
7927 dynamic_linker='GNU/Linux ld.so'
7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7935 soname_spec='${libname}${release}${shared_ext}$major'
7936 shlibpath_var=LD_LIBRARY_PATH
7937 shlibpath_overrides_runpath=no
7938 hardcode_into_libs=yes
7939 dynamic_linker='NetBSD ld.elf_so'
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
7948 shlibpath_var=LD_LIBRARY_PATH
7949 shlibpath_overrides_runpath=no
7950 hardcode_into_libs=yes
7951 dynamic_linker='GNU ld.so'
7958 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7961 dynamic_linker='NetBSD (a.out) ld.so'
7963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7964 soname_spec='${libname}${release}${shared_ext}$major'
7965 dynamic_linker='NetBSD ld.elf_so'
7967 shlibpath_var=LD_LIBRARY_PATH
7968 shlibpath_overrides_runpath=yes
7969 hardcode_into_libs=yes
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975 shlibpath_var=LD_LIBRARY_PATH
7976 shlibpath_overrides_runpath=yes
7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7984 soname_spec='${libname}${release}${shared_ext}$major'
7985 shlibpath_var=LD_LIBRARY_PATH
7986 shlibpath_overrides_runpath=yes
7993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7995 shlibpath_var=LD_LIBRARY_PATH
7996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7998 openbsd2.[89] | openbsd2.[89].*)
7999 shlibpath_overrides_runpath=no
8002 shlibpath_overrides_runpath=yes
8006 shlibpath_overrides_runpath=yes
8011 libname_spec='$name'
8014 library_names_spec='$libname${shared_ext} $libname.a'
8015 dynamic_linker='OS/2 ld.exe'
8016 shlibpath_var=LIBPATH
8019 osf3* | osf4* | osf5*)
8023 soname_spec='${libname}${release}${shared_ext}$major'
8024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025 shlibpath_var=LD_LIBRARY_PATH
8026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8032 soname_spec='${libname}${release}${shared_ext}$major'
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8034 shlibpath_var=LD_LIBRARY_PATH
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042 soname_spec='${libname}${release}${shared_ext}$major'
8043 shlibpath_var=LD_LIBRARY_PATH
8044 shlibpath_overrides_runpath=yes
8045 hardcode_into_libs=yes
8046 # ldd complains unless libraries are executable
8047 postinstall_cmds='chmod +x $lib'
8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8054 shlibpath_var=LD_LIBRARY_PATH
8055 shlibpath_overrides_runpath=yes
8056 if test "$with_gnu_ld" = yes; then
8062 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8065 soname_spec='${libname}${release}${shared_ext}$major'
8066 shlibpath_var=LD_LIBRARY_PATH
8067 case $host_vendor in
8069 shlibpath_overrides_runpath=no
8071 export_dynamic_flag_spec='${wl}-Blargedynsym'
8072 runpath_var=LD_RUN_PATH
8080 shlibpath_overrides_runpath=no
8081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8087 if test -d /usr/nec ;then
8089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8090 soname_spec='$libname${shared_ext}.$major'
8091 shlibpath_var=LD_LIBRARY_PATH
8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098 soname_spec='${libname}${release}${shared_ext}$major'
8099 shlibpath_var=LD_LIBRARY_PATH
8106 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8107 echo "${ECHO_T}$dynamic_linker" >&6
8108 test "$dynamic_linker" = no && can_build_shared=no
8110 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8111 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8113 if test -n "$hardcode_libdir_flag_spec" || \
8114 test -n "$runpath_var " || \
8115 test "X$hardcode_automatic"="Xyes" ; then
8117 # We can hardcode non-existant directories.
8118 if test "$hardcode_direct" != no &&
8119 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8120 # have to relink, otherwise we might link with an installed library
8121 # when we should be linking with a yet-to-be-installed one
8122 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8123 test "$hardcode_minus_L" != no; then
8124 # Linking always hardcodes the temporary library directory.
8125 hardcode_action=relink
8127 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8128 hardcode_action=immediate
8131 # We cannot hardcode anything, or else we can only hardcode existing
8133 hardcode_action=unsupported
8135 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8136 echo "${ECHO_T}$hardcode_action" >&6
8138 if test "$hardcode_action" = relink; then
8139 # Fast installation is not supported
8140 enable_fast_install=no
8141 elif test "$shlibpath_overrides_runpath" = yes ||
8142 test "$enable_shared" = no; then
8143 # Fast installation is not necessary
8144 enable_fast_install=needless
8149 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8150 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8151 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8152 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8153 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8154 echo "$as_me:$LINENO: result: yes" >&5
8155 echo "${ECHO_T}yes" >&6
8157 # FIXME - insert some real tests, host_os isn't really good enough
8160 if test -n "$STRIP" ; then
8161 striplib="$STRIP -x"
8162 echo "$as_me:$LINENO: result: yes" >&5
8163 echo "${ECHO_T}yes" >&6
8165 echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8170 echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6
8176 if test "x$enable_dlopen" != xyes; then
8177 enable_dlopen=unknown
8178 enable_dlopen_self=unknown
8179 enable_dlopen_self_static=unknown
8186 lt_cv_dlopen="load_add_on"
8188 lt_cv_dlopen_self=yes
8192 lt_cv_dlopen="LoadLibrary"
8197 lt_cv_dlopen="dlopen"
8202 # if libdl is installed we need to link against it
8203 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 ac_check_lib_save_LIBS=$LIBS
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -s conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_lib_dl_dlopen=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 ac_cv_lib_dl_dlopen=no
8252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8255 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8256 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8257 if test $ac_cv_lib_dl_dlopen = yes; then
8258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8263 lt_cv_dlopen_self=yes
8270 echo "$as_me:$LINENO: checking for shl_load" >&5
8271 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8272 if test "${ac_cv_func_shl_load+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 cat >conftest.$ac_ext <<_ACEOF
8276 #line $LINENO "configure"
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char shl_load (); below.
8284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285 <limits.h> exists even on freestanding compilers. */
8287 # include <limits.h>
8289 # include <assert.h>
8291 /* Override any gcc2 internal prototype to avoid an error. */
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8299 /* The GNU C library defines this for functions which it implements
8300 to always fail with ENOSYS. Some functions are actually named
8301 something starting with __ and the normal name is an alias. */
8302 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8305 char (*f) () = shl_load;
8314 return f != shl_load;
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_cv_func_shl_load=yes
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8336 ac_cv_func_shl_load=no
8338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8341 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8342 if test $ac_cv_func_shl_load = yes; then
8343 lt_cv_dlopen="shl_load"
8345 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8346 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8347 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 ac_check_lib_save_LIBS=$LIBS
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8360 /* Override any gcc2 internal prototype to avoid an error. */
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377 (eval $ac_link) 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_lib_dld_shl_load=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 ac_cv_lib_dld_shl_load=no
8394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8395 LIBS=$ac_check_lib_save_LIBS
8397 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8398 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8399 if test $ac_cv_lib_dld_shl_load = yes; then
8400 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8402 echo "$as_me:$LINENO: checking for dlopen" >&5
8403 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8404 if test "${ac_cv_func_dlopen+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 cat >conftest.$ac_ext <<_ACEOF
8408 #line $LINENO "configure"
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 /* System header to define __stub macros and hopefully few prototypes,
8415 which can conflict with char dlopen (); below.
8416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8417 <limits.h> exists even on freestanding compilers. */
8419 # include <limits.h>
8421 # include <assert.h>
8423 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8431 /* The GNU C library defines this for functions which it implements
8432 to always fail with ENOSYS. Some functions are actually named
8433 something starting with __ and the normal name is an alias. */
8434 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8437 char (*f) () = dlopen;
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8453 (eval $ac_link) 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 ac_cv_func_dlopen=yes
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ac_cv_func_dlopen=no
8470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8472 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8473 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8474 if test $ac_cv_func_dlopen = yes; then
8475 lt_cv_dlopen="dlopen"
8477 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8478 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8479 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 ac_check_lib_save_LIBS=$LIBS
8484 cat >conftest.$ac_ext <<_ACEOF
8485 #line $LINENO "configure"
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8492 /* Override any gcc2 internal prototype to avoid an error. */
8496 /* We use char because int might match the return type of a gcc2
8497 builtin and then its argument prototype would still apply. */
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8509 (eval $ac_link) 2>&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -s conftest$ac_exeext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_lib_dl_dlopen=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_cv_lib_dl_dlopen=no
8526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8527 LIBS=$ac_check_lib_save_LIBS
8529 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8531 if test $ac_cv_lib_dl_dlopen = yes; then
8532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8534 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8535 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8536 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_check_lib_save_LIBS=$LIBS
8541 cat >conftest.$ac_ext <<_ACEOF
8542 #line $LINENO "configure"
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8549 /* Override any gcc2 internal prototype to avoid an error. */
8553 /* We use char because int might match the return type of a gcc2
8554 builtin and then its argument prototype would still apply. */
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8566 (eval $ac_link) 2>&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
8570 { ac_try='test -s conftest$ac_exeext'
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; }; then
8576 ac_cv_lib_svld_dlopen=yes
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 ac_cv_lib_svld_dlopen=no
8583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8584 LIBS=$ac_check_lib_save_LIBS
8586 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8587 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8588 if test $ac_cv_lib_svld_dlopen = yes; then
8589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8591 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8592 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8593 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 ac_check_lib_save_LIBS=$LIBS
8598 cat >conftest.$ac_ext <<_ACEOF
8599 #line $LINENO "configure"
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8606 /* Override any gcc2 internal prototype to avoid an error. */
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623 (eval $ac_link) 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_dld_dld_link=yes
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_cv_lib_dld_dld_link=no
8640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8643 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8644 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8645 if test $ac_cv_lib_dld_dld_link = yes; then
8646 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8667 if test "x$lt_cv_dlopen" != xno; then
8673 case $lt_cv_dlopen in
8675 save_CPPFLAGS="$CPPFLAGS"
8676 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8678 save_LDFLAGS="$LDFLAGS"
8679 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8682 LIBS="$lt_cv_dlopen_libs $LIBS"
8684 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8685 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8686 if test "${lt_cv_dlopen_self+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 if test "$cross_compiling" = yes; then :
8690 lt_cv_dlopen_self=cross
8692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8693 lt_status=$lt_dlunknown
8694 cat > conftest.$ac_ext <<EOF
8695 #line 8695 "configure"
8696 #include "confdefs.h"
8705 # define LT_DLGLOBAL RTLD_GLOBAL
8708 # define LT_DLGLOBAL DL_GLOBAL
8710 # define LT_DLGLOBAL 0
8714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8715 find out it does not work in some platform. */
8716 #ifndef LT_DLLAZY_OR_NOW
8718 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8721 # define LT_DLLAZY_OR_NOW DL_LAZY
8724 # define LT_DLLAZY_OR_NOW RTLD_NOW
8727 # define LT_DLLAZY_OR_NOW DL_NOW
8729 # define LT_DLLAZY_OR_NOW 0
8737 extern "C" void exit (int);
8740 void fnord() { int i=42;}
8743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8744 int status = $lt_dlunknown;
8748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8750 /* dlclose (self); */
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8761 (./conftest; exit; ) 2>/dev/null
8764 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8765 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8766 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8769 # compilation failed
8770 lt_cv_dlopen_self=no
8777 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8778 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8780 if test "x$lt_cv_dlopen_self" = xyes; then
8781 LDFLAGS="$LDFLAGS $link_static_flag"
8782 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8783 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8784 if test "${lt_cv_dlopen_self_static+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 if test "$cross_compiling" = yes; then :
8788 lt_cv_dlopen_self_static=cross
8790 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8791 lt_status=$lt_dlunknown
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8793 "configure"
8794 #include "confdefs.h"
8803 # define LT_DLGLOBAL RTLD_GLOBAL
8806 # define LT_DLGLOBAL DL_GLOBAL
8808 # define LT_DLGLOBAL 0
8812 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8813 find out it does not work in some platform. */
8814 #ifndef LT_DLLAZY_OR_NOW
8816 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8819 # define LT_DLLAZY_OR_NOW DL_LAZY
8822 # define LT_DLLAZY_OR_NOW RTLD_NOW
8825 # define LT_DLLAZY_OR_NOW DL_NOW
8827 # define LT_DLLAZY_OR_NOW 0
8835 extern "C" void exit (int);
8838 void fnord() { int i=42;}
8841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8842 int status = $lt_dlunknown;
8846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8847 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8848 /* dlclose (self); */
8854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8859 (./conftest; exit; ) 2>/dev/null
8862 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8863 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8864 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8867 # compilation failed
8868 lt_cv_dlopen_self_static=no
8875 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8876 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8879 CPPFLAGS="$save_CPPFLAGS"
8880 LDFLAGS="$save_LDFLAGS"
8885 case $lt_cv_dlopen_self in
8886 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8887 *) enable_dlopen_self=unknown ;;
8890 case $lt_cv_dlopen_self_static in
8891 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8892 *) enable_dlopen_self_static=unknown ;;
8897 # Report which librarie types wil actually be built
8898 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8899 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8900 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8901 echo "${ECHO_T}$can_build_shared" >&6
8903 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8904 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8905 test "$can_build_shared" = "no" && enable_shared=no
8907 # On AIX, shared libraries and static libraries use the same namespace, and
8908 # are all built from PIC.
8911 test "$enable_shared" = yes && enable_static=no
8912 if test -n "$RANLIB"; then
8913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8914 postinstall_cmds='$RANLIB $lib'
8919 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8920 test "$enable_shared" = yes && enable_static=no
8923 darwin* | rhapsody*)
8924 if test "$GCC" = yes; then
8925 archive_cmds_need_lc=no
8927 rhapsody* | darwin1.[012])
8928 allow_undefined_flag='-undefined suppress'
8931 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8932 allow_undefined_flag='-flat_namespace -undefined suppress'
8934 case ${MACOSX_DEPLOYMENT_TARGET} in
8936 allow_undefined_flag='-flat_namespace -undefined suppress'
8939 allow_undefined_flag='-undefined dynamic_lookup'
8945 output_verbose_link_cmd='echo'
8946 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8947 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8948 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8949 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8950 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8952 hardcode_automatic=yes
8953 hardcode_shlibpath_var=unsupported
8954 whole_archive_flag_spec='-all_load $convenience'
8955 link_all_deplibs=yes
8961 echo "$as_me:$LINENO: result: $enable_shared" >&5
8962 echo "${ECHO_T}$enable_shared" >&6
8964 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8965 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8966 # Make sure either enable_shared or enable_static is yes.
8967 test "$enable_shared" = yes || enable_static=yes
8968 echo "$as_me:$LINENO: result: $enable_static" >&5
8969 echo "${ECHO_T}$enable_static" >&6
8971 # The else clause should only fire when bootstrapping the
8972 # libtool distribution, otherwise you forgot to ship ltmain.sh
8973 # with your package, and you will get complaints that there are
8974 # no rules to generate ltmain.sh.
8975 if test -f "$ltmain"; then
8976 # See if we are running on zsh, and set the options which allow our commands through
8977 # without removal of \ escapes.
8978 if test -n "${ZSH_VERSION+set}" ; then
8979 setopt NO_GLOB_SUBST
8981 # Now quote all the things that may contain metacharacters while being
8982 # careful not to overquote the AC_SUBSTed values. We take copies of the
8983 # variables and quote the copies for generation of the libtool script.
8984 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8986 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8987 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8988 deplibs_check_method reload_flag reload_cmds need_locks \
8989 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8990 lt_cv_sys_global_symbol_to_c_name_address \
8991 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8992 old_postinstall_cmds old_postuninstall_cmds \
8996 lt_prog_compiler_wl \
8997 lt_prog_compiler_pic \
8998 lt_prog_compiler_static \
8999 lt_prog_compiler_no_builtin_flag \
9000 export_dynamic_flag_spec \
9001 thread_safe_flag_spec \
9002 whole_archive_flag_spec \
9003 enable_shared_with_static_runtimes \
9005 old_archive_from_new_cmds \
9010 compiler_lib_search_path \
9012 archive_expsym_cmds \
9014 postuninstall_cmds \
9015 old_archive_from_expsyms_cmds \
9016 allow_undefined_flag \
9018 export_symbols_cmds \
9019 hardcode_libdir_flag_spec \
9020 hardcode_libdir_flag_spec_ld \
9021 hardcode_libdir_separator \
9022 hardcode_automatic \
9024 module_expsym_cmds \
9025 lt_cv_prog_compiler_c_o \
9030 old_archive_cmds | \
9031 old_archive_from_new_cmds | \
9033 archive_expsym_cmds | \
9035 module_expsym_cmds | \
9036 old_archive_from_expsyms_cmds | \
9037 export_symbols_cmds | \
9038 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9039 postinstall_cmds | postuninstall_cmds | \
9040 old_postinstall_cmds | old_postuninstall_cmds | \
9041 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9042 # Double-quote double-evaled strings.
9043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9046 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9052 *'\$0 --fallback-echo"')
9053 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9058 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9060 { echo "$as_me:$LINENO: creating $ofile" >&5
9061 echo "$as_me: creating $ofile" >&6;}
9063 cat <<__EOF__ >> "$cfgfile"
9066 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9067 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9068 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9070 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9071 # Free Software Foundation, Inc.
9073 # This file is part of GNU Libtool:
9074 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9076 # This program is free software; you can redistribute it and/or modify
9077 # it under the terms of the GNU General Public License as published by
9078 # the Free Software Foundation; either version 2 of the License, or
9079 # (at your option) any later version.
9081 # This program is distributed in the hope that it will be useful, but
9082 # WITHOUT ANY WARRANTY; without even the implied warranty of
9083 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9084 # General Public License for more details.
9086 # You should have received a copy of the GNU General Public License
9087 # along with this program; if not, write to the Free Software
9088 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9090 # As a special exception to the GNU General Public License, if you
9091 # distribute this file as part of a program that contains a
9092 # configuration script generated by Autoconf, you may include it under
9093 # the same distribution terms that you use for the rest of that program.
9095 # A sed program that does not truncate output.
9098 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9099 Xsed="$SED -e s/^X//"
9101 # The HP-UX ksh and POSIX shell print the target directory to stdout
9103 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9105 # The names of the tagged configurations supported by this script.
9108 # ### BEGIN LIBTOOL CONFIG
9110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9112 # Shell to use when invoking shell scripts.
9115 # Whether or not to build shared libraries.
9116 build_libtool_libs=$enable_shared
9118 # Whether or not to build static libraries.
9119 build_old_libs=$enable_static
9121 # Whether or not to add -lc for building shared libraries.
9122 build_libtool_need_lc=$archive_cmds_need_lc
9124 # Whether or not to disallow shared libs when runtime libs are static
9125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9127 # Whether or not to optimize for fast installation.
9128 fast_install=$enable_fast_install
9131 host_alias=$host_alias
9134 # An echo program that does not interpret backslashes.
9139 AR_FLAGS=$lt_AR_FLAGS
9144 # A language-specific compiler.
9147 # Is the compiler the GNU C compiler?
9153 # The linker used to build libraries.
9156 # Whether we need hard or soft links.
9159 # A BSD-compatible nm program.
9162 # A symbol stripping program
9165 # Used to examine libraries when file_magic_cmd begins "file"
9166 MAGIC_CMD=$MAGIC_CMD
9168 # Used on cygwin: DLL creation program.
9171 # Used on cygwin: object dumper.
9174 # Used on cygwin: assembler.
9177 # The name of the directory that contains temporary libtool files.
9180 # How to create reloadable object files.
9181 reload_flag=$lt_reload_flag
9182 reload_cmds=$lt_reload_cmds
9184 # How to pass a linker flag through the compiler.
9185 wl=$lt_lt_prog_compiler_wl
9187 # Object file suffix (normally "o").
9190 # Old archive suffix (normally "a").
9193 # Shared library suffix (normally ".so").
9194 shrext_cmds='$shrext_cmds'
9196 # Executable file suffix (normally "").
9199 # Additional compiler flags for building library objects.
9200 pic_flag=$lt_lt_prog_compiler_pic
9203 # What is the maximum length of a command?
9204 max_cmd_len=$lt_cv_sys_max_cmd_len
9206 # Does compiler simultaneously support -c and -o options?
9207 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9209 # Must we lock files when doing compilation ?
9210 need_locks=$lt_need_locks
9212 # Do we need the lib prefix for modules?
9213 need_lib_prefix=$need_lib_prefix
9215 # Do we need a version for libraries?
9216 need_version=$need_version
9218 # Whether dlopen is supported.
9219 dlopen_support=$enable_dlopen
9221 # Whether dlopen of programs is supported.
9222 dlopen_self=$enable_dlopen_self
9224 # Whether dlopen of statically linked programs is supported.
9225 dlopen_self_static=$enable_dlopen_self_static
9227 # Compiler flag to prevent dynamic linking.
9228 link_static_flag=$lt_lt_prog_compiler_static
9230 # Compiler flag to turn off builtin functions.
9231 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9233 # Compiler flag to allow reflexive dlopens.
9234 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9236 # Compiler flag to generate shared objects directly from archives.
9237 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9239 # Compiler flag to generate thread-safe objects.
9240 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9242 # Library versioning type.
9243 version_type=$version_type
9245 # Format of library name prefix.
9246 libname_spec=$lt_libname_spec
9248 # List of archive names. First name is the real one, the rest are links.
9249 # The last name is the one that the linker finds with -lNAME.
9250 library_names_spec=$lt_library_names_spec
9252 # The coded name of the library, if different from the real name.
9253 soname_spec=$lt_soname_spec
9255 # Commands used to build and install an old-style archive.
9257 old_archive_cmds=$lt_old_archive_cmds
9258 old_postinstall_cmds=$lt_old_postinstall_cmds
9259 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9261 # Create an old-style archive from a shared archive.
9262 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9264 # Create a temporary old-style archive to link instead of a shared archive.
9265 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9267 # Commands used to build and install a shared archive.
9268 archive_cmds=$lt_archive_cmds
9269 archive_expsym_cmds=$lt_archive_expsym_cmds
9270 postinstall_cmds=$lt_postinstall_cmds
9271 postuninstall_cmds=$lt_postuninstall_cmds
9273 # Commands used to build a loadable module (assumed same as above if empty)
9274 module_cmds=$lt_module_cmds
9275 module_expsym_cmds=$lt_module_expsym_cmds
9277 # Commands to strip libraries.
9278 old_striplib=$lt_old_striplib
9279 striplib=$lt_striplib
9281 # Dependencies to place before the objects being linked to create a
9283 predep_objects=$lt_predep_objects
9285 # Dependencies to place after the objects being linked to create a
9287 postdep_objects=$lt_postdep_objects
9289 # Dependencies to place before the objects being linked to create a
9293 # Dependencies to place after the objects being linked to create a
9295 postdeps=$lt_postdeps
9297 # The library search path used internally by the compiler when linking
9299 compiler_lib_search_path=$lt_compiler_lib_search_path
9301 # Method to check whether dependent libraries are shared objects.
9302 deplibs_check_method=$lt_deplibs_check_method
9304 # Command to use when deplibs_check_method == file_magic.
9305 file_magic_cmd=$lt_file_magic_cmd
9307 # Flag that allows shared libraries with undefined symbols to be built.
9308 allow_undefined_flag=$lt_allow_undefined_flag
9310 # Flag that forces no undefined symbols.
9311 no_undefined_flag=$lt_no_undefined_flag
9313 # Commands used to finish a libtool library installation in a directory.
9314 finish_cmds=$lt_finish_cmds
9316 # Same as above, but a single script fragment to be evaled but not shown.
9317 finish_eval=$lt_finish_eval
9319 # Take the output of nm and produce a listing of raw symbols and C names.
9320 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9322 # Transform the output of nm in a proper C declaration
9323 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9325 # Transform the output of nm in a C name address pair
9326 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9328 # This is the shared library runtime path variable.
9329 runpath_var=$runpath_var
9331 # This is the shared library path variable.
9332 shlibpath_var=$shlibpath_var
9334 # Is shlibpath searched before the hard-coded library search path?
9335 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9337 # How to hardcode a shared library path into an executable.
9338 hardcode_action=$hardcode_action
9340 # Whether we should hardcode library paths into libraries.
9341 hardcode_into_libs=$hardcode_into_libs
9343 # Flag to hardcode \$libdir into a binary during linking.
9344 # This must work even if \$libdir does not exist.
9345 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9347 # If ld is used when linking, flag to hardcode \$libdir into
9348 # a binary during linking. This must work even if \$libdir does
9350 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9352 # Whether we need a single -rpath flag with a separated argument.
9353 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9355 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9357 hardcode_direct=$hardcode_direct
9359 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9361 hardcode_minus_L=$hardcode_minus_L
9363 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9364 # the resulting binary.
9365 hardcode_shlibpath_var=$hardcode_shlibpath_var
9367 # Set to yes if building a shared library automatically hardcodes DIR into the library
9368 # and all subsequent libraries and executables linked against it.
9369 hardcode_automatic=$hardcode_automatic
9371 # Variables whose values should be saved in libtool wrapper scripts and
9372 # restored at relink time.
9373 variables_saved_for_relink="$variables_saved_for_relink"
9375 # Whether libtool must link a program against all its dependency libraries.
9376 link_all_deplibs=$link_all_deplibs
9378 # Compile-time system search path for libraries
9379 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9381 # Run-time system search path for libraries
9382 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9384 # Fix the shell variable \$srcfile for the compiler.
9385 fix_srcfile_path="$fix_srcfile_path"
9387 # Set to yes if exported symbols are required.
9388 always_export_symbols=$always_export_symbols
9390 # The commands to list exported symbols.
9391 export_symbols_cmds=$lt_export_symbols_cmds
9393 # The commands to extract the exported symbol list from a shared archive.
9394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9396 # Symbols that should not be listed in the preloaded symbols.
9397 exclude_expsyms=$lt_exclude_expsyms
9399 # Symbols that must always be exported.
9400 include_expsyms=$lt_include_expsyms
9402 # ### END LIBTOOL CONFIG
9409 cat <<\EOF >> "$cfgfile"
9411 # AIX sometimes has problems with the GCC collect2 program. For some
9412 # reason, if we set the COLLECT_NAMES environment variable, the problems
9413 # vanish in a puff of smoke.
9414 if test "X${COLLECT_NAMES+set}" != Xset; then
9416 export COLLECT_NAMES
9422 # We use sed instead of cat because bash on DJGPP gets confused if
9423 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9424 # text mode, it properly converts lines to CR/LF. This bash problem
9425 # is reportedly fixed, but why not run on old versions too?
9426 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9428 mv -f "$cfgfile" "$ofile" || \
9429 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9433 # If there is no Makefile yet, we rely on a make rule to execute
9434 # `config.status --recheck' to rerun these tests and create the
9435 # libtool script then.
9436 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9437 if test -f "$ltmain_in"; then
9438 test -f Makefile && make "$ltmain"
9444 ac_cpp='$CPP $CPPFLAGS'
9445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9452 # Check whether --with-tags or --without-tags was given.
9453 if test "${with_tags+set}" = set; then
9454 withval="$with_tags"
9458 if test -f "$ltmain" && test -n "$tagnames"; then
9459 if test ! -f "${ofile}"; then
9460 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9461 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9464 if test -z "$LTCC"; then
9465 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9466 if test -z "$LTCC"; then
9467 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9468 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9471 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9475 # Extract list of available tagged configurations in $ofile.
9476 # Note that this assumes the entire list is on one line.
9477 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9480 for tagname in $tagnames; do
9482 # Check whether tagname contains only valid characters
9483 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9485 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9486 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9487 { (exit 1); exit 1; }; }
9491 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9493 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9494 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9495 { (exit 1); exit 1; }; }
9498 # Update the list of available tags.
9499 if test -n "$tagname"; then
9500 echo appending configuration tag \"$tagname\" to $ofile
9504 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9506 ac_cpp='$CXXCPP $CPPFLAGS'
9507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9514 archive_cmds_need_lc_CXX=no
9515 allow_undefined_flag_CXX=
9516 always_export_symbols_CXX=no
9517 archive_expsym_cmds_CXX=
9518 export_dynamic_flag_spec_CXX=
9519 hardcode_direct_CXX=no
9520 hardcode_libdir_flag_spec_CXX=
9521 hardcode_libdir_flag_spec_ld_CXX=
9522 hardcode_libdir_separator_CXX=
9523 hardcode_minus_L_CXX=no
9524 hardcode_automatic_CXX=no
9526 module_expsym_cmds_CXX=
9527 link_all_deplibs_CXX=unknown
9528 old_archive_cmds_CXX=$old_archive_cmds
9529 no_undefined_flag_CXX=
9530 whole_archive_flag_spec_CXX=
9531 enable_shared_with_static_runtimes_CXX=no
9533 # Dependencies to place before and after the object being linked:
9535 postdep_objects_CXX=
9538 compiler_lib_search_path_CXX=
9540 # Source file extension for C++ test sources.
9543 # Object file extension for compiled C++ test sources.
9547 # Code to be used in simple compile tests
9548 lt_simple_compile_test_code="int some_variable = 0;\n"
9550 # Code to be used in simple link tests
9551 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9553 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9555 # If no C compiler was specified, use CC.
9558 # Allow CC to be a program name with arguments.
9562 # Allow CC to be a program name with arguments.
9567 lt_save_with_gnu_ld=$with_gnu_ld
9568 lt_save_path_LD=$lt_cv_path_LD
9569 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9570 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9572 unset lt_cv_prog_gnu_ld
9574 if test -n "${lt_cv_path_LDCXX+set}"; then
9575 lt_cv_path_LD=$lt_cv_path_LDCXX
9579 test -z "${LDCXX+set}" || LD=$LDCXX
9583 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9585 # We don't want -fno-exception wen compiling C++ code, so set the
9586 # no_builtin_flag separately
9587 if test "$GXX" = yes; then
9588 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9590 lt_prog_compiler_no_builtin_flag_CXX=
9593 if test "$GXX" = yes; then
9594 # Set up default GNU C++ configuration
9597 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9598 if test "${with_gnu_ld+set}" = set; then
9599 withval="$with_gnu_ld"
9600 test "$withval" = no || with_gnu_ld=yes
9605 if test "$GCC" = yes; then
9606 # Check if gcc -print-prog-name=ld gives a path.
9607 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9608 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9611 # gcc leaves a trailing carriage return which upsets mingw
9612 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9614 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9617 # Accept absolute paths.
9619 re_direlt='/[^/][^/]*/\.\./'
9620 # Canonicalize the pathname of ld
9621 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9622 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9623 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9625 test -z "$LD" && LD="$ac_prog"
9628 # If it fails, then pretend we aren't using GCC.
9632 # If it is relative, then search for the first ld in PATH.
9636 elif test "$with_gnu_ld" = yes; then
9637 echo "$as_me:$LINENO: checking for GNU ld" >&5
9638 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9640 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9641 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9643 if test "${lt_cv_path_LD+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 if test -z "$LD"; then
9647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9648 for ac_dir in $PATH; do
9650 test -z "$ac_dir" && ac_dir=.
9651 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9652 lt_cv_path_LD="$ac_dir/$ac_prog"
9653 # Check to see if the program is GNU ld. I'd rather use --version,
9654 # but apparently some GNU ld's only accept -v.
9655 # Break only if it was the GNU/non-GNU ld that we prefer.
9656 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9657 *GNU* | *'with BFD'*)
9658 test "$with_gnu_ld" != no && break
9661 test "$with_gnu_ld" != yes && break
9668 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9673 if test -n "$LD"; then
9674 echo "$as_me:$LINENO: result: $LD" >&5
9675 echo "${ECHO_T}$LD" >&6
9677 echo "$as_me:$LINENO: result: no" >&5
9678 echo "${ECHO_T}no" >&6
9680 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9681 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9682 { (exit 1); exit 1; }; }
9683 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9684 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9685 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9689 case `$LD -v 2>&1 </dev/null` in
9690 *GNU* | *'with BFD'*)
9691 lt_cv_prog_gnu_ld=yes
9694 lt_cv_prog_gnu_ld=no
9698 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9699 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9700 with_gnu_ld=$lt_cv_prog_gnu_ld
9704 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9705 # archiving commands below assume that GNU ld is being used.
9706 if test "$with_gnu_ld" = yes; then
9707 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9710 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9713 # If archive_cmds runs LD, not CC, wlarc should be empty
9714 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9715 # investigate it a little bit more. (MM)
9718 # ancient GNU ld didn't support --whole-archive et. al.
9719 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9720 grep 'no-whole-archive' > /dev/null; then
9721 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9723 whole_archive_flag_spec_CXX=
9729 # A generic and very simple default shared library creation
9730 # command for GNU C++ for the case where it uses the native
9731 # linker, instead of GNU ld. If possible, this setting should
9732 # overridden to take advantage of the native linker features on
9733 # the platform it is being used on.
9734 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9737 # Commands to make compiler produce verbose output that lists
9738 # what "hidden" libraries, object files and flags are used when
9739 # linking a shared library.
9740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9748 # PORTME: fill in a description of your system's C++ link characteristics
9749 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9750 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9754 # FIXME: insert proper C++ library support
9758 if test "$host_cpu" = ia64; then
9759 # On IA64, the linker does run time linking by default, so we don't
9760 # have to do anything special.
9761 aix_use_runtimelinking=no
9762 exp_sym_flag='-Bexport'
9765 aix_use_runtimelinking=no
9767 # Test if we are trying to use run time linking or normal
9768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9769 # need to do runtime linking.
9770 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9771 for ld_flag in $LDFLAGS; do
9774 aix_use_runtimelinking=yes
9781 exp_sym_flag='-bexport'
9782 no_entry_flag='-bnoentry'
9785 # When large executables or shared objects are built, AIX ld can
9786 # have problems creating the table of contents. If linking a library
9787 # or program results in "error TOC overflow" add -mminimal-toc to
9788 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9789 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9792 hardcode_direct_CXX=yes
9793 hardcode_libdir_separator_CXX=':'
9794 link_all_deplibs_CXX=yes
9796 if test "$GXX" = yes; then
9797 case $host_os in aix4.012|aix4.012.*)
9798 # We only want to do this on AIX 4.2 and lower, the check
9799 # below for broken collect2 doesn't work under 4.3+
9800 collect2name=`${CC} -print-prog-name=collect2`
9801 if test -f "$collect2name" && \
9802 strings "$collect2name" | grep resolve_lib_name >/dev/null
9804 # We have reworked collect2
9805 hardcode_direct_CXX=yes
9807 # We have old collect2
9808 hardcode_direct_CXX=unsupported
9809 # It fails to find uninstalled libraries when the uninstalled
9810 # path is not listed in the libpath. Setting hardcode_minus_L
9811 # to unsupported forces relinking
9812 hardcode_minus_L_CXX=yes
9813 hardcode_libdir_flag_spec_CXX='-L$libdir'
9814 hardcode_libdir_separator_CXX=
9817 shared_flag='-shared'
9820 if test "$host_cpu" = ia64; then
9821 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9822 # chokes on -Wl,-G. The following line is correct:
9825 if test "$aix_use_runtimelinking" = yes; then
9826 shared_flag='${wl}-G'
9828 shared_flag='${wl}-bM:SRE'
9833 # It seems that -bexpall does not export symbols beginning with
9834 # underscore (_), so it is better to generate a list of symbols to export.
9835 always_export_symbols_CXX=yes
9836 if test "$aix_use_runtimelinking" = yes; then
9837 # Warning - without using the other runtime loading flags (-brtl),
9838 # -berok will link without error, but may produce a broken library.
9839 allow_undefined_flag_CXX='-berok'
9840 # Determine the default libpath from the value encoded in an empty executable.
9841 cat >conftest.$ac_ext <<_ACEOF
9842 #line $LINENO "configure"
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859 (eval $ac_link) 2>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9872 # Check for a 64-bit object if we didn't find anything.
9873 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9881 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9883 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9885 archive_expsym_cmds_CXX="\$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"
9887 if test "$host_cpu" = ia64; then
9888 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9889 allow_undefined_flag_CXX="-z nodefs"
9890 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9892 # Determine the default libpath from the value encoded in an empty executable.
9893 cat >conftest.$ac_ext <<_ACEOF
9894 #line $LINENO "configure"
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -s conftest$ac_exeext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9924 # Check for a 64-bit object if we didn't find anything.
9925 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9936 # Warning - without using the other run time loading flags,
9937 # -berok will link without error, but may produce a broken library.
9938 no_undefined_flag_CXX=' ${wl}-bernotok'
9939 allow_undefined_flag_CXX=' ${wl}-berok'
9940 # -bexpall does not export symbols beginning with underscore (_)
9941 always_export_symbols_CXX=yes
9942 # Exported symbols can be pulled into shared objects from archives
9943 whole_archive_flag_spec_CXX=' '
9944 archive_cmds_need_lc_CXX=yes
9945 # This is similar to how AIX traditionally builds it's shared libraries.
9946 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9951 case $cc_basename in
9953 # FIXME: insert proper C++ library support
9959 cygwin* | mingw* | pw32*)
9960 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9961 # as there is no search path for DLLs.
9962 hardcode_libdir_flag_spec_CXX='-L$libdir'
9963 allow_undefined_flag_CXX=unsupported
9964 always_export_symbols_CXX=no
9965 enable_shared_with_static_runtimes_CXX=yes
9967 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9968 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9969 # If the export-symbols file already is a .def file (1st line
9970 # is EXPORTS), use it as is; otherwise, prepend...
9971 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9972 cp $export_symbols $output_objdir/$soname.def;
9974 echo EXPORTS > $output_objdir/$soname.def;
9975 cat $export_symbols >> $output_objdir/$soname.def;
9977 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9983 darwin* | rhapsody*)
9984 if test "$GXX" = yes; then
9985 archive_cmds_need_lc_CXX=no
9987 rhapsody* | darwin1.[012])
9988 allow_undefined_flag_CXX='-undefined suppress'
9991 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9992 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9994 case ${MACOSX_DEPLOYMENT_TARGET} in
9996 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9999 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10005 lt_int_apple_cc_single_mod=no
10006 output_verbose_link_cmd='echo'
10007 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10008 lt_int_apple_cc_single_mod=yes
10010 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10011 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10013 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10015 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10018 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10019 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10021 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10023 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10024 hardcode_direct_CXX=no
10025 hardcode_automatic_CXX=yes
10026 hardcode_shlibpath_var_CXX=unsupported
10027 whole_archive_flag_spec_CXX='-all_load $convenience'
10028 link_all_deplibs_CXX=yes
10035 case $cc_basename in
10037 # FIXME: insert proper C++ library support
10041 # Green Hills C++ Compiler
10042 # FIXME: insert proper C++ library support
10046 # FIXME: insert proper C++ library support
10052 # C++ shared libraries reported to be fairly broken before switch to ELF
10056 archive_cmds_need_lc_CXX=no
10058 freebsd* | kfreebsd*-gnu)
10059 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10066 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10067 hardcode_libdir_separator_CXX=:
10068 export_dynamic_flag_spec_CXX='${wl}-E'
10069 hardcode_direct_CXX=yes
10070 hardcode_minus_L_CXX=yes # Not in the search PATH,
10071 # but as the default
10072 # location of the library.
10074 case $cc_basename in
10076 # FIXME: insert proper C++ library support
10080 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10081 # Commands to make compiler produce verbose output that lists
10082 # what "hidden" libraries, object files and flags are used when
10083 # linking a shared library.
10085 # There doesn't appear to be a way to prevent this compiler from
10086 # explicitly linking system object files so we need to strip them
10087 # from the output so that they don't get included in the library
10089 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10092 if test "$GXX" = yes; then
10093 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10095 # FIXME: insert proper C++ library support
10102 if test $with_gnu_ld = no; then
10103 case "$host_cpu" in
10105 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10106 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10107 hardcode_libdir_separator_CXX=:
10110 hardcode_libdir_flag_spec_CXX='-L$libdir'
10113 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10114 hardcode_libdir_separator_CXX=:
10115 export_dynamic_flag_spec_CXX='${wl}-E'
10119 case "$host_cpu" in
10121 hardcode_direct_CXX=no
10122 hardcode_shlibpath_var_CXX=no
10125 hardcode_direct_CXX=no
10126 hardcode_shlibpath_var_CXX=no
10127 hardcode_minus_L_CXX=yes # Not in the search PATH,
10128 # but as the default
10129 # location of the library.
10132 hardcode_direct_CXX=yes
10133 hardcode_minus_L_CXX=yes # Not in the search PATH,
10134 # but as the default
10135 # location of the library.
10139 case $cc_basename in
10141 # FIXME: insert proper C++ library support
10145 case "$host_cpu" in
10147 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10150 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10153 # Commands to make compiler produce verbose output that lists
10154 # what "hidden" libraries, object files and flags are used when
10155 # linking a shared library.
10157 # There doesn't appear to be a way to prevent this compiler from
10158 # explicitly linking system object files so we need to strip them
10159 # from the output so that they don't get included in the library
10161 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10164 if test "$GXX" = yes; then
10165 if test $with_gnu_ld = no; then
10166 case "$host_cpu" in
10168 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10171 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10176 # FIXME: insert proper C++ library support
10183 case $cc_basename in
10186 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10188 # Archives containing C++ object files must be created using
10189 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10190 # necessary to make sure instantiated templates are included
10192 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10195 if test "$GXX" = yes; then
10196 if test "$with_gnu_ld" = no; then
10197 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10199 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10202 link_all_deplibs_CXX=yes
10205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10206 hardcode_libdir_separator_CXX=:
10209 case $cc_basename in
10211 # Kuck and Associates, Inc. (KAI) C++ Compiler
10213 # KCC will only create a shared library if the output file
10214 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10215 # to its proper name (with version) after linking.
10216 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10217 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10218 # Commands to make compiler produce verbose output that lists
10219 # what "hidden" libraries, object files and flags are used when
10220 # linking a shared library.
10222 # There doesn't appear to be a way to prevent this compiler from
10223 # explicitly linking system object files so we need to strip them
10224 # from the output so that they don't get included in the library
10226 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10228 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10229 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10231 # Archives containing C++ object files must be created using
10232 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10233 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10238 archive_cmds_need_lc_CXX=no
10239 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10243 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10250 runpath_var=LD_RUN_PATH
10251 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10252 hardcode_libdir_separator_CXX=:
10254 # Commands to make compiler produce verbose output that lists
10255 # what "hidden" libraries, object files and flags are used when
10256 # linking a shared library.
10258 # There doesn't appear to be a way to prevent this compiler from
10259 # explicitly linking system object files so we need to strip them
10260 # from the output so that they don't get included in the library
10262 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10267 # FIXME: insert proper C++ library support
10271 # FIXME: insert proper C++ library support
10275 case $cc_basename in
10277 # FIXME: insert proper C++ library support
10281 # FIXME: insert proper C++ library support
10286 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10288 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10290 hardcode_libdir_flag_spec_CXX='-R$libdir'
10291 hardcode_direct_CXX=yes
10292 hardcode_shlibpath_var_CXX=no
10294 # Workaround some broken pre-1.5 toolchains
10295 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10298 case $cc_basename in
10300 # Kuck and Associates, Inc. (KAI) C++ Compiler
10302 # KCC will only create a shared library if the output file
10303 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10304 # to its proper name (with version) after linking.
10305 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10308 hardcode_libdir_separator_CXX=:
10310 # Archives containing C++ object files must be created using
10311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10316 # Rational C++ 2.4.1
10317 # FIXME: insert proper C++ library support
10321 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10322 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10324 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10325 hardcode_libdir_separator_CXX=:
10327 # Commands to make compiler produce verbose output that lists
10328 # what "hidden" libraries, object files and flags are used when
10329 # linking a shared library.
10331 # There doesn't appear to be a way to prevent this compiler from
10332 # explicitly linking system object files so we need to strip them
10333 # from the output so that they don't get included in the library
10335 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10338 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10339 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10340 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10343 hardcode_libdir_separator_CXX=:
10345 # Commands to make compiler produce verbose output that lists
10346 # what "hidden" libraries, object files and flags are used when
10347 # linking a shared library.
10348 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10351 # FIXME: insert proper C++ library support
10358 case $cc_basename in
10360 # Kuck and Associates, Inc. (KAI) C++ Compiler
10362 # KCC will only create a shared library if the output file
10363 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10364 # to its proper name (with version) after linking.
10365 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10368 hardcode_libdir_separator_CXX=:
10370 # Archives containing C++ object files must be created using
10371 # the KAI C++ compiler.
10372 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10375 # Rational C++ 2.4.1
10376 # FIXME: insert proper C++ library support
10380 allow_undefined_flag_CXX=' -expect_unresolved \*'
10381 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10382 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10383 echo "-hidden">> $lib.exp~
10384 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10387 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10388 hardcode_libdir_separator_CXX=:
10390 # Commands to make compiler produce verbose output that lists
10391 # what "hidden" libraries, object files and flags are used when
10392 # linking a shared library.
10394 # There doesn't appear to be a way to prevent this compiler from
10395 # explicitly linking system object files so we need to strip them
10396 # from the output so that they don't get included in the library
10398 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10401 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10402 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10403 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10406 hardcode_libdir_separator_CXX=:
10408 # Commands to make compiler produce verbose output that lists
10409 # what "hidden" libraries, object files and flags are used when
10410 # linking a shared library.
10411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10414 # FIXME: insert proper C++ library support
10421 # FIXME: insert proper C++ library support
10425 archive_cmds_need_lc_CXX=no
10426 case $cc_basename in
10428 # FIXME: insert proper C++ library support
10432 # FIXME: insert proper C++ library support
10438 case $cc_basename in
10441 # FIXME: insert proper C++ library support
10446 # FIXME: insert proper C++ library support
10450 # FIXME: insert proper C++ library support
10456 case $cc_basename in
10458 # Sun C++ 4.2, 5.x and Centerline C++
10459 no_undefined_flag_CXX=' -zdefs'
10460 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10461 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10462 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10464 hardcode_libdir_flag_spec_CXX='-R$libdir'
10465 hardcode_shlibpath_var_CXX=no
10467 solaris2.0-5 | solaris2.0-5.*) ;;
10469 # The C++ compiler is used as linker so we must use $wl
10470 # flag to pass the commands to the underlying system
10472 # Supported since Solaris 2.6 (maybe 2.5.1?)
10473 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10476 link_all_deplibs_CXX=yes
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10482 # There doesn't appear to be a way to prevent this compiler from
10483 # explicitly linking system object files so we need to strip them
10484 # from the output so that they don't get included in the library
10486 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10488 # Archives containing C++ object files must be created using
10489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10490 # necessary to make sure instantiated templates are included
10492 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10495 # Green Hills C++ Compiler
10496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10498 # The C++ compiler must be used to create the archive.
10499 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10502 # GNU C++ compiler with Solaris linker
10503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10504 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10505 if $CC --version | grep -v '^2\.7' > /dev/null; then
10506 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10507 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10508 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10510 # Commands to make compiler produce verbose output that lists
10511 # what "hidden" libraries, object files and flags are used when
10512 # linking a shared library.
10513 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10515 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10517 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10521 # Commands to make compiler produce verbose output that lists
10522 # what "hidden" libraries, object files and flags are used when
10523 # linking a shared library.
10524 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10527 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10532 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10533 archive_cmds_need_lc_CXX=no
10536 case $cc_basename in
10538 # NonStop-UX NCC 3.20
10539 # FIXME: insert proper C++ library support
10543 # FIXME: insert proper C++ library support
10549 # FIXME: insert proper C++ library support
10553 # FIXME: insert proper C++ library support
10557 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10558 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10559 test "$ld_shlibs_CXX" = no && can_build_shared=no
10565 cat > conftest.$ac_ext <<EOF
10569 Foo (void) { a = 0; }
10575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10576 (eval $ac_compile) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; then
10580 # Parse the compiler output and extract the necessary
10581 # objects, libraries and library flags.
10583 # Sentinel used to keep track of whether or not we are before
10584 # the conftest object file.
10585 pre_test_object_deps_done=no
10587 # The `*' in the case matches for architectures that use `case' in
10588 # $output_verbose_cmd can trigger glob expansion during the loop
10589 # eval without this substitution.
10590 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10592 for p in `eval $output_verbose_link_cmd`; do
10596 # Some compilers place space between "-{L,R}" and the path.
10597 # Remove the space.
10598 if test $p = "-L" \
10599 || test $p = "-R"; then
10606 if test "$pre_test_object_deps_done" = no; then
10609 # Internal compiler library paths should come after those
10610 # provided the user. The postdeps already come after the
10611 # user supplied libs so there is no need to process them.
10612 if test -z "$compiler_lib_search_path_CXX"; then
10613 compiler_lib_search_path_CXX="${prev}${p}"
10615 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10618 # The "-l" case would never come before the object being
10619 # linked, so don't bother handling this case.
10622 if test -z "$postdeps_CXX"; then
10623 postdeps_CXX="${prev}${p}"
10625 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10631 # This assumes that the test object file only shows up
10632 # once in the compiler output.
10633 if test "$p" = "conftest.$objext"; then
10634 pre_test_object_deps_done=yes
10638 if test "$pre_test_object_deps_done" = no; then
10639 if test -z "$predep_objects_CXX"; then
10640 predep_objects_CXX="$p"
10642 predep_objects_CXX="$predep_objects_CXX $p"
10645 if test -z "$postdep_objects_CXX"; then
10646 postdep_objects_CXX="$p"
10648 postdep_objects_CXX="$postdep_objects_CXX $p"
10653 *) ;; # Ignore the rest.
10661 echo "libtool.m4: error: problem compiling CXX test program"
10664 $rm -f confest.$objext
10666 case " $postdeps_CXX " in
10667 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10670 lt_prog_compiler_wl_CXX=
10671 lt_prog_compiler_pic_CXX=
10672 lt_prog_compiler_static_CXX=
10674 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10675 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10677 # C++ specific cases for pic, static, wl, etc.
10678 if test "$GXX" = yes; then
10679 lt_prog_compiler_wl_CXX='-Wl,'
10680 lt_prog_compiler_static_CXX='-static'
10684 # All AIX code is PIC.
10685 if test "$host_cpu" = ia64; then
10686 # AIX 5 now supports IA64 processor
10687 lt_prog_compiler_static_CXX='-Bstatic'
10691 # FIXME: we need at least 68020 code to build shared libraries, but
10692 # adding the `-m68020' flag to GCC prevents building anything better,
10694 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10696 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10697 # PIC is the default for these OSes.
10699 mingw* | os2* | pw32*)
10700 # This hack is so that the source file can tell whether it is being
10701 # built for inclusion in a dll (and should export symbols for example).
10702 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10704 darwin* | rhapsody*)
10705 # PIC is the default on this platform
10706 # Common symbols not allowed in MH_DYLIB files
10707 lt_prog_compiler_pic_CXX='-fno-common'
10710 # DJGPP does not support shared libraries at all
10711 lt_prog_compiler_pic_CXX=
10714 if test -d /usr/nec; then
10715 lt_prog_compiler_pic_CXX=-Kconform_pic
10719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10720 # not for PA HP-UX.
10721 case "$host_cpu" in
10725 lt_prog_compiler_pic_CXX='-fPIC'
10730 lt_prog_compiler_pic_CXX='-fPIC'
10736 # All AIX code is PIC.
10737 if test "$host_cpu" = ia64; then
10738 # AIX 5 now supports IA64 processor
10739 lt_prog_compiler_static_CXX='-Bstatic'
10741 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10745 case $cc_basename in
10747 # Green Hills C++ Compiler
10748 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10753 case $cc_basename in
10755 lt_prog_compiler_pic_CXX='-KPIC'
10758 # Green Hills C++ Compiler
10759 lt_prog_compiler_pic_CXX='-pic'
10765 freebsd* | kfreebsd*-gnu)
10766 # FreeBSD uses GNU C++
10768 hpux9* | hpux10* | hpux11*)
10769 case $cc_basename in
10771 lt_prog_compiler_wl_CXX='-Wl,'
10772 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10773 if test "$host_cpu" != ia64; then
10774 lt_prog_compiler_pic_CXX='+Z'
10778 lt_prog_compiler_wl_CXX='-Wl,'
10779 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10780 case "$host_cpu" in
10785 lt_prog_compiler_pic_CXX='+Z'
10793 irix5* | irix6* | nonstopux*)
10794 case $cc_basename in
10796 lt_prog_compiler_wl_CXX='-Wl,'
10797 lt_prog_compiler_static_CXX='-non_shared'
10798 # CC pic flag -KPIC is the default.
10805 case $cc_basename in
10808 lt_prog_compiler_wl_CXX='--backend -Wl,'
10809 lt_prog_compiler_pic_CXX='-fPIC'
10813 lt_prog_compiler_wl_CXX='-Wl,'
10814 lt_prog_compiler_pic_CXX='-KPIC'
10815 lt_prog_compiler_static_CXX='-static'
10819 # Make sure the PIC flag is empty. It appears that all Alpha
10820 # Linux and Compaq Tru64 Unix objects are PIC.
10821 lt_prog_compiler_pic_CXX=
10822 lt_prog_compiler_static_CXX='-non_shared'
10833 case $cc_basename in
10835 lt_prog_compiler_pic_CXX='-W c,exportall'
10841 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10843 osf3* | osf4* | osf5*)
10844 case $cc_basename in
10846 lt_prog_compiler_wl_CXX='--backend -Wl,'
10849 # Rational C++ 2.4.1
10850 lt_prog_compiler_pic_CXX='-pic'
10853 # Digital/Compaq C++
10854 lt_prog_compiler_wl_CXX='-Wl,'
10855 # Make sure the PIC flag is empty. It appears that all Alpha
10856 # Linux and Compaq Tru64 Unix objects are PIC.
10857 lt_prog_compiler_pic_CXX=
10858 lt_prog_compiler_static_CXX='-non_shared'
10867 case $cc_basename in
10869 lt_prog_compiler_pic_CXX='-fPIC'
10876 case $cc_basename in
10878 # Sun C++ 4.2, 5.x and Centerline C++
10879 lt_prog_compiler_pic_CXX='-KPIC'
10880 lt_prog_compiler_static_CXX='-Bstatic'
10881 lt_prog_compiler_wl_CXX='-Qoption ld '
10884 # Green Hills C++ Compiler
10885 lt_prog_compiler_pic_CXX='-PIC'
10892 case $cc_basename in
10895 lt_prog_compiler_pic_CXX='-pic'
10896 lt_prog_compiler_static_CXX='-Bstatic'
10900 lt_prog_compiler_pic_CXX='-pic'
10907 case $cc_basename in
10909 # NonStop-UX NCC 3.20
10910 lt_prog_compiler_pic_CXX='-KPIC'
10921 lt_prog_compiler_can_build_shared_CXX=no
10926 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10927 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10930 # Check to make sure the PIC flag actually works.
10932 if test -n "$lt_prog_compiler_pic_CXX"; then
10934 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10936 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 lt_prog_compiler_pic_works_CXX=no
10940 ac_outfile=conftest.$ac_objext
10941 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10942 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10943 # Insert the option either (1) after the last *FLAGS variable, or
10944 # (2) before a word containing "conftest.", or (3) at the end.
10945 # Note that $ac_compile itself does not contain backslashes and begins
10946 # with a dollar sign (not a hyphen), so the echo should work correctly.
10947 # The option is referenced via a variable to avoid confusing sed.
10948 lt_compile=`echo "$ac_compile" | $SED \
10949 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10951 -e 's:$: $lt_compiler_flag:'`
10952 (eval echo "\"\$as_me:10952: $lt_compile\"" >&5)
10953 (eval "$lt_compile" 2>conftest.err)
10955 cat conftest.err >&5
10956 echo "$as_me:10956: \$? = $ac_status" >&5
10957 if (exit $ac_status) && test -s "$ac_outfile"; then
10958 # The compiler can only warn and ignore the option if not recognized
10959 # So say no if there are warnings
10960 if test ! -s conftest.err; then
10961 lt_prog_compiler_pic_works_CXX=yes
10967 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10968 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10970 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10971 case $lt_prog_compiler_pic_CXX in
10973 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10976 lt_prog_compiler_pic_CXX=
10977 lt_prog_compiler_can_build_shared_CXX=no
10982 # For platforms which do not support PIC, -DPIC is meaningless:
10984 lt_prog_compiler_pic_CXX=
10987 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10991 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10992 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10993 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 lt_cv_prog_compiler_c_o_CXX=no
10997 $rm -r conftest 2>/dev/null
11001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11003 lt_compiler_flag="-o out/conftest2.$ac_objext"
11004 # Insert the option either (1) after the last *FLAGS variable, or
11005 # (2) before a word containing "conftest.", or (3) at the end.
11006 # Note that $ac_compile itself does not contain backslashes and begins
11007 # with a dollar sign (not a hyphen), so the echo should work correctly.
11008 lt_compile=`echo "$ac_compile" | $SED \
11009 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11011 -e 's:$: $lt_compiler_flag:'`
11012 (eval echo "\"\$as_me:11012: $lt_compile\"" >&5)
11013 (eval "$lt_compile" 2>out/conftest.err)
11015 cat out/conftest.err >&5
11016 echo "$as_me:11016: \$? = $ac_status" >&5
11017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11019 # The compiler can only warn and ignore the option if not recognized
11020 # So say no if there are warnings
11021 if test ! -s out/conftest.err; then
11022 lt_cv_prog_compiler_c_o_CXX=yes
11027 # SGI C++ compiler will create directory out/ii_files/ for
11028 # template instantiation
11029 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11030 $rm out/* && rmdir out
11036 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11037 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11040 hard_links="nottested"
11041 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11042 # do not overwrite the value of need_locks provided by the user
11043 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11044 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11049 ln conftest.a conftest.b 2>&5 || hard_links=no
11050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11051 echo "$as_me:$LINENO: result: $hard_links" >&5
11052 echo "${ECHO_T}$hard_links" >&6
11053 if test "$hard_links" = no; then
11054 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11055 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11062 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11063 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11065 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11068 # If we're using GNU nm, then we don't want the "-C" option.
11069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11070 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11071 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11073 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11077 export_symbols_cmds_CXX="$ltdll_cmds"
11080 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11083 link_all_deplibs_CXX=no
11086 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11090 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11091 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11092 test "$ld_shlibs_CXX" = no && can_build_shared=no
11094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11095 if test "$GCC" = yes; then
11096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11100 # Do we need to explicitly link libc?
11102 case "x$archive_cmds_need_lc_CXX" in
11104 # Assume -lc should be added
11105 archive_cmds_need_lc_CXX=yes
11107 if test "$enable_shared" = yes && test "$GCC" = yes; then
11108 case $archive_cmds_CXX in
11110 # FIXME: we may have to deal with multi-command sequences.
11113 # Test whether the compiler implicitly links with -lc since on some
11114 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11115 # to ld, don't add -lc before -lgcc.
11116 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11117 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11122 (eval $ac_compile) 2>&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } 2>conftest.err; then
11128 libobjs=conftest.$ac_objext
11130 wl=$lt_prog_compiler_wl_CXX
11136 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11137 allow_undefined_flag_CXX=
11138 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11139 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }
11144 archive_cmds_need_lc_CXX=no
11146 archive_cmds_need_lc_CXX=yes
11148 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11150 cat conftest.err 1>&5
11153 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11154 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11161 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11163 library_names_spec=
11164 libname_spec='lib$name'
11168 postuninstall_cmds=
11172 shlibpath_overrides_runpath=unknown
11174 dynamic_linker="$host_os ld.so"
11175 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11176 if test "$GCC" = yes; then
11177 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11178 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11179 # if the path contains ";" then we assume it to be the separator
11180 # otherwise default to the standard path separator (i.e. ":") - it is
11181 # assumed that no part of a normal pathname contains ";" but that should
11182 # okay in the real world where ";" in dirpaths is itself problematic.
11183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11190 need_lib_prefix=unknown
11191 hardcode_into_libs=no
11193 # when you set need_version to no, make sure it does not cause -set_version
11194 # flags to be left without arguments
11195 need_version=unknown
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11201 shlibpath_var=LIBPATH
11203 # AIX 3 has no versioning support, so we append a major version to the name.
11204 soname_spec='${libname}${release}${shared_ext}$major'
11211 hardcode_into_libs=yes
11212 if test "$host_cpu" = ia64; then
11213 # AIX 5 supports IA64
11214 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11215 shlibpath_var=LD_LIBRARY_PATH
11217 # With GCC up to 2.95.x, collect2 would create an import file
11218 # for dependence libraries. The import file would start with
11219 # the line `#! .'. This would cause the generated library to
11220 # depend on `.', always an invalid library. This was fixed in
11221 # development snapshots of GCC prior to 3.0.
11223 aix4 | aix4.[01] | aix4.[01].*)
11224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11226 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11229 can_build_shared=no
11233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11234 # soname into executable. Probably we can add versioning support to
11235 # collect2, so additional links can be useful in future.
11236 if test "$aix_use_runtimelinking" = yes; then
11237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11238 # instead of lib<name>.a to let people know that these are not
11239 # typical AIX shared libraries.
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242 # We preserve .a as extension for shared libraries through AIX4.2
11243 # and later when we are not doing run time linking.
11244 library_names_spec='${libname}${release}.a $libname.a'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11247 shlibpath_var=LIBPATH
11252 library_names_spec='$libname.ixlibrary $libname.a'
11253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11254 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'
11258 library_names_spec='${libname}${shared_ext}'
11259 dynamic_linker="$host_os ld.so"
11260 shlibpath_var=LIBRARY_PATH
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11272 # the default ld.so.conf also contains /usr/contrib/lib and
11273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11274 # libtool to hard-code these into programs
11277 cygwin* | mingw* | pw32*)
11278 version_type=windows
11283 case $GCC,$host_os in
11284 yes,cygwin* | yes,mingw* | yes,pw32*)
11285 library_names_spec='$libname.dll.a'
11286 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11287 postinstall_cmds='base_file=`basename \${file}`~
11288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11289 dldir=$destdir/`dirname \$dlpath`~
11290 test -d \$dldir || mkdir -p \$dldir~
11291 $install_prog $dir/$dlname \$dldir/$dlname'
11292 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11293 dlpath=$dir/\$dldll~
11295 shlibpath_overrides_runpath=yes
11299 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11300 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11301 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11304 # MinGW DLLs use traditional 'lib' prefix
11305 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11306 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11307 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11308 # It is most probably a Windows format PATH printed by
11309 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11310 # path with ; separators, and with drive letters. We can handle the
11311 # drive letters (cygwin fileutils understands them), so leave them,
11312 # especially as we might pass files found there to a mingw objdump,
11313 # which wouldn't understand a cygwinified path. Ahh.
11314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11316 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11320 # pw32 DLLs use 'pw' prefix rather than 'lib'
11321 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11330 dynamic_linker='Win32 ld.exe'
11331 # FIXME: first we should search . and the directory the executable is in
11335 darwin* | rhapsody*)
11336 dynamic_linker="$host_os dyld"
11337 version_type=darwin
11340 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11341 soname_spec='${libname}${release}${major}$shared_ext'
11342 shlibpath_overrides_runpath=yes
11343 shlibpath_var=DYLD_LIBRARY_PATH
11344 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11345 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11346 if test "$GCC" = yes; then
11347 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11349 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11351 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11360 shlibpath_var=LD_LIBRARY_PATH
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=no
11375 hardcode_into_libs=yes
11376 dynamic_linker='GNU ld.so'
11380 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11381 version_type=freebsd-$objformat
11382 case $version_type in
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11393 shlibpath_var=LD_LIBRARY_PATH
11396 shlibpath_overrides_runpath=yes
11398 freebsd3.01* | freebsdelf3.01*)
11399 shlibpath_overrides_runpath=yes
11400 hardcode_into_libs=yes
11403 shlibpath_overrides_runpath=no
11404 hardcode_into_libs=yes
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 hardcode_into_libs=yes
11419 hpux9* | hpux10* | hpux11*)
11420 # Give a soname corresponding to the major version so that dld.sl refuses to
11421 # link against other versions.
11425 case "$host_cpu" in
11428 hardcode_into_libs=yes
11429 dynamic_linker="$host_os dld.so"
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 if test "X$HPUX_IA64_MODE" = X32; then
11435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11443 hardcode_into_libs=yes
11444 dynamic_linker="$host_os dld.sl"
11445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11454 dynamic_linker="$host_os dld.sl"
11455 shlibpath_var=SHLIB_PATH
11456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458 soname_spec='${libname}${release}${shared_ext}$major'
11461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11462 postinstall_cmds='chmod 555 $lib'
11465 irix5* | irix6* | nonstopux*)
11467 nonstopux*) version_type=nonstopux ;;
11469 if test "$lt_cv_prog_gnu_ld" = yes; then
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11480 irix5* | nonstopux*)
11481 libsuff= shlibsuff=
11484 case $LD in # libtool.m4 will add one of these switches to LD
11485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11486 libsuff= shlibsuff= libmagic=32-bit;;
11487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11488 libsuff=32 shlibsuff=N32 libmagic=N32;;
11489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11491 *) libsuff= shlibsuff= libmagic=never-match;;
11495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11496 shlibpath_overrides_runpath=no
11497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11499 hardcode_into_libs=yes
11502 # No shared lib support for Linux oldld, aout, or coff.
11503 linux*oldld* | linux*aout* | linux*coff*)
11507 # This must be Linux ELF.
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=no
11517 # This implies no fast_install, which is unacceptable.
11518 # Some rework will be needed to allow for fast_install
11519 # before this can be enabled.
11520 hardcode_into_libs=yes
11522 # Append ld.so.conf contents to the search path
11523 if test -f /etc/ld.so.conf; then
11524 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11528 # We used to test for /lib/ld.so.1 and disable shared libraries on
11529 # powerpc, because MkLinux only supported shared libraries with the
11530 # GNU dynamic linker. Since this was broken with cross compilers,
11531 # most powerpc-linux boxes support dynamic linking these days and
11532 # people can always --disable-shared, the test was removed, and we
11533 # assume the GNU/Linux dynamic linker is in use.
11534 dynamic_linker='GNU/Linux ld.so'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11542 soname_spec='${libname}${release}${shared_ext}$major'
11543 shlibpath_var=LD_LIBRARY_PATH
11544 shlibpath_overrides_runpath=no
11545 hardcode_into_libs=yes
11546 dynamic_linker='NetBSD ld.elf_so'
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=no
11557 hardcode_into_libs=yes
11558 dynamic_linker='GNU ld.so'
11565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568 dynamic_linker='NetBSD (a.out) ld.so'
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 dynamic_linker='NetBSD ld.elf_so'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=yes
11576 hardcode_into_libs=yes
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=yes
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 soname_spec='${libname}${release}${shared_ext}$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=yes
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11605 openbsd2.[89] | openbsd2.[89].*)
11606 shlibpath_overrides_runpath=no
11609 shlibpath_overrides_runpath=yes
11613 shlibpath_overrides_runpath=yes
11618 libname_spec='$name'
11621 library_names_spec='$libname${shared_ext} $libname.a'
11622 dynamic_linker='OS/2 ld.exe'
11623 shlibpath_var=LIBPATH
11626 osf3* | osf4* | osf5*)
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11634 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 shlibpath_var=LD_LIBRARY_PATH
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 soname_spec='${libname}${release}${shared_ext}$major'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=yes
11652 hardcode_into_libs=yes
11653 # ldd complains unless libraries are executable
11654 postinstall_cmds='chmod +x $lib'
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 if test "$with_gnu_ld" = yes; then
11669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 case $host_vendor in
11676 shlibpath_overrides_runpath=no
11678 export_dynamic_flag_spec='${wl}-Blargedynsym'
11679 runpath_var=LD_RUN_PATH
11687 shlibpath_overrides_runpath=no
11688 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11694 if test -d /usr/nec ;then
11696 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11697 soname_spec='$libname${shared_ext}.$major'
11698 shlibpath_var=LD_LIBRARY_PATH
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 shlibpath_var=LD_LIBRARY_PATH
11713 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11714 echo "${ECHO_T}$dynamic_linker" >&6
11715 test "$dynamic_linker" = no && can_build_shared=no
11717 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11718 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11719 hardcode_action_CXX=
11720 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11721 test -n "$runpath_var CXX" || \
11722 test "X$hardcode_automatic_CXX"="Xyes" ; then
11724 # We can hardcode non-existant directories.
11725 if test "$hardcode_direct_CXX" != no &&
11726 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11727 # have to relink, otherwise we might link with an installed library
11728 # when we should be linking with a yet-to-be-installed one
11729 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11730 test "$hardcode_minus_L_CXX" != no; then
11731 # Linking always hardcodes the temporary library directory.
11732 hardcode_action_CXX=relink
11734 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11735 hardcode_action_CXX=immediate
11738 # We cannot hardcode anything, or else we can only hardcode existing
11740 hardcode_action_CXX=unsupported
11742 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11743 echo "${ECHO_T}$hardcode_action_CXX" >&6
11745 if test "$hardcode_action_CXX" = relink; then
11746 # Fast installation is not supported
11747 enable_fast_install=no
11748 elif test "$shlibpath_overrides_runpath" = yes ||
11749 test "$enable_shared" = no; then
11750 # Fast installation is not necessary
11751 enable_fast_install=needless
11756 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11757 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11758 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11759 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11760 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11761 echo "$as_me:$LINENO: result: yes" >&5
11762 echo "${ECHO_T}yes" >&6
11764 # FIXME - insert some real tests, host_os isn't really good enough
11767 if test -n "$STRIP" ; then
11768 striplib="$STRIP -x"
11769 echo "$as_me:$LINENO: result: yes" >&5
11770 echo "${ECHO_T}yes" >&6
11772 echo "$as_me:$LINENO: result: no" >&5
11773 echo "${ECHO_T}no" >&6
11777 echo "$as_me:$LINENO: result: no" >&5
11778 echo "${ECHO_T}no" >&6
11783 if test "x$enable_dlopen" != xyes; then
11784 enable_dlopen=unknown
11785 enable_dlopen_self=unknown
11786 enable_dlopen_self_static=unknown
11793 lt_cv_dlopen="load_add_on"
11795 lt_cv_dlopen_self=yes
11799 lt_cv_dlopen="LoadLibrary"
11804 lt_cv_dlopen="dlopen"
11809 # if libdl is installed we need to link against it
11810 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11811 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 ac_check_lib_save_LIBS=$LIBS
11817 cat >conftest.$ac_ext <<_ACEOF
11818 #line $LINENO "configure"
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11825 /* Override any gcc2 internal prototype to avoid an error. */
11829 /* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842 (eval $ac_link) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -s conftest$ac_exeext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_cv_lib_dl_dlopen=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_cv_lib_dl_dlopen=no
11859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11862 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11863 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11864 if test $ac_cv_lib_dl_dlopen = yes; then
11865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11868 lt_cv_dlopen="dyld"
11870 lt_cv_dlopen_self=yes
11877 echo "$as_me:$LINENO: checking for shl_load" >&5
11878 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11879 if test "${ac_cv_func_shl_load+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char shl_load (); below.
11891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11892 <limits.h> exists even on freestanding compilers. */
11894 # include <limits.h>
11896 # include <assert.h>
11898 /* Override any gcc2 internal prototype to avoid an error. */
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11912 char (*f) () = shl_load;
11921 return f != shl_load;
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 ac_cv_func_shl_load=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_cv_func_shl_load=no
11945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11947 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11948 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11949 if test $ac_cv_func_shl_load = yes; then
11950 lt_cv_dlopen="shl_load"
11952 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11953 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11954 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 ac_check_lib_save_LIBS=$LIBS
11959 cat >conftest.$ac_ext <<_ACEOF
11960 #line $LINENO "configure"
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 /* Override any gcc2 internal prototype to avoid an error. */
11971 /* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11984 (eval $ac_link) 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try='test -s conftest$ac_exeext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 ac_cv_lib_dld_shl_load=yes
11996 echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11999 ac_cv_lib_dld_shl_load=no
12001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12002 LIBS=$ac_check_lib_save_LIBS
12004 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12005 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12006 if test $ac_cv_lib_dld_shl_load = yes; then
12007 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12009 echo "$as_me:$LINENO: checking for dlopen" >&5
12010 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12011 if test "${ac_cv_func_dlopen+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 cat >conftest.$ac_ext <<_ACEOF
12015 #line $LINENO "configure"
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 /* System header to define __stub macros and hopefully few prototypes,
12022 which can conflict with char dlopen (); below.
12023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12024 <limits.h> exists even on freestanding compilers. */
12026 # include <limits.h>
12028 # include <assert.h>
12030 /* Override any gcc2 internal prototype to avoid an error. */
12035 /* We use char because int might match the return type of a gcc2
12036 builtin and then its argument prototype would still apply. */
12038 /* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
12041 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12044 char (*f) () = dlopen;
12053 return f != dlopen;
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060 (eval $ac_link) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -s conftest$ac_exeext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_cv_func_dlopen=yes
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 ac_cv_func_dlopen=no
12077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12079 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12080 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12081 if test $ac_cv_func_dlopen = yes; then
12082 lt_cv_dlopen="dlopen"
12084 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 ac_check_lib_save_LIBS=$LIBS
12091 cat >conftest.$ac_ext <<_ACEOF
12092 #line $LINENO "configure"
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12099 /* Override any gcc2 internal prototype to avoid an error. */
12103 /* We use char because int might match the return type of a gcc2
12104 builtin and then its argument prototype would still apply. */
12114 rm -f conftest.$ac_objext conftest$ac_exeext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12116 (eval $ac_link) 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -s conftest$ac_exeext'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 ac_cv_lib_dl_dlopen=yes
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_cv_lib_dl_dlopen=no
12133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12136 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12137 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12138 if test $ac_cv_lib_dl_dlopen = yes; then
12139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12141 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12142 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12143 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 ac_check_lib_save_LIBS=$LIBS
12147 LIBS="-lsvld $LIBS"
12148 cat >conftest.$ac_ext <<_ACEOF
12149 #line $LINENO "configure"
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12156 /* Override any gcc2 internal prototype to avoid an error. */
12160 /* We use char because int might match the return type of a gcc2
12161 builtin and then its argument prototype would still apply. */
12171 rm -f conftest.$ac_objext conftest$ac_exeext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12173 (eval $ac_link) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -s conftest$ac_exeext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_lib_svld_dlopen=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_lib_svld_dlopen=no
12190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12193 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12194 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12195 if test $ac_cv_lib_svld_dlopen = yes; then
12196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12198 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12199 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12200 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12203 ac_check_lib_save_LIBS=$LIBS
12205 cat >conftest.$ac_ext <<_ACEOF
12206 #line $LINENO "configure"
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12213 /* Override any gcc2 internal prototype to avoid an error. */
12217 /* We use char because int might match the return type of a gcc2
12218 builtin and then its argument prototype would still apply. */
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -s conftest$ac_exeext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_lib_dld_dld_link=yes
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 ac_cv_lib_dld_dld_link=no
12247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12251 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12252 if test $ac_cv_lib_dld_dld_link = yes; then
12253 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12274 if test "x$lt_cv_dlopen" != xno; then
12280 case $lt_cv_dlopen in
12282 save_CPPFLAGS="$CPPFLAGS"
12283 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12285 save_LDFLAGS="$LDFLAGS"
12286 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12289 LIBS="$lt_cv_dlopen_libs $LIBS"
12291 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12292 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12293 if test "${lt_cv_dlopen_self+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 if test "$cross_compiling" = yes; then :
12297 lt_cv_dlopen_self=cross
12299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12300 lt_status=$lt_dlunknown
12301 cat > conftest.$ac_ext <<EOF
12302 #line 12302 "configure"
12303 #include "confdefs.h"
12312 # define LT_DLGLOBAL RTLD_GLOBAL
12315 # define LT_DLGLOBAL DL_GLOBAL
12317 # define LT_DLGLOBAL 0
12321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12322 find out it does not work in some platform. */
12323 #ifndef LT_DLLAZY_OR_NOW
12325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12328 # define LT_DLLAZY_OR_NOW DL_LAZY
12331 # define LT_DLLAZY_OR_NOW RTLD_NOW
12334 # define LT_DLLAZY_OR_NOW DL_NOW
12336 # define LT_DLLAZY_OR_NOW 0
12344 extern "C" void exit (int);
12347 void fnord() { int i=42;}
12350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12351 int status = $lt_dlunknown;
12355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12357 /* dlclose (self); */
12363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364 (eval $ac_link) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12368 (./conftest; exit; ) 2>/dev/null
12370 case x$lt_status in
12371 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12372 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12373 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12376 # compilation failed
12377 lt_cv_dlopen_self=no
12384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12385 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12387 if test "x$lt_cv_dlopen_self" = xyes; then
12388 LDFLAGS="$LDFLAGS $link_static_flag"
12389 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12390 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12391 if test "${lt_cv_dlopen_self_static+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 if test "$cross_compiling" = yes; then :
12395 lt_cv_dlopen_self_static=cross
12397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12398 lt_status=$lt_dlunknown
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12400 "configure"
12401 #include "confdefs.h"
12410 # define LT_DLGLOBAL RTLD_GLOBAL
12413 # define LT_DLGLOBAL DL_GLOBAL
12415 # define LT_DLGLOBAL 0
12419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12420 find out it does not work in some platform. */
12421 #ifndef LT_DLLAZY_OR_NOW
12423 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12426 # define LT_DLLAZY_OR_NOW DL_LAZY
12429 # define LT_DLLAZY_OR_NOW RTLD_NOW
12432 # define LT_DLLAZY_OR_NOW DL_NOW
12434 # define LT_DLLAZY_OR_NOW 0
12442 extern "C" void exit (int);
12445 void fnord() { int i=42;}
12448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12449 int status = $lt_dlunknown;
12453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12454 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12455 /* dlclose (self); */
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12466 (./conftest; exit; ) 2>/dev/null
12468 case x$lt_status in
12469 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12470 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12471 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12474 # compilation failed
12475 lt_cv_dlopen_self_static=no
12482 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12483 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12486 CPPFLAGS="$save_CPPFLAGS"
12487 LDFLAGS="$save_LDFLAGS"
12492 case $lt_cv_dlopen_self in
12493 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12494 *) enable_dlopen_self=unknown ;;
12497 case $lt_cv_dlopen_self_static in
12498 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12499 *) enable_dlopen_self_static=unknown ;;
12504 # The else clause should only fire when bootstrapping the
12505 # libtool distribution, otherwise you forgot to ship ltmain.sh
12506 # with your package, and you will get complaints that there are
12507 # no rules to generate ltmain.sh.
12508 if test -f "$ltmain"; then
12509 # See if we are running on zsh, and set the options which allow our commands through
12510 # without removal of \ escapes.
12511 if test -n "${ZSH_VERSION+set}" ; then
12512 setopt NO_GLOB_SUBST
12514 # Now quote all the things that may contain metacharacters while being
12515 # careful not to overquote the AC_SUBSTed values. We take copies of the
12516 # variables and quote the copies for generation of the libtool script.
12517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12521 deplibs_check_method reload_flag reload_cmds need_locks \
12522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12523 lt_cv_sys_global_symbol_to_c_name_address \
12524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12525 old_postinstall_cmds old_postuninstall_cmds \
12529 lt_prog_compiler_wl_CXX \
12530 lt_prog_compiler_pic_CXX \
12531 lt_prog_compiler_static_CXX \
12532 lt_prog_compiler_no_builtin_flag_CXX \
12533 export_dynamic_flag_spec_CXX \
12534 thread_safe_flag_spec_CXX \
12535 whole_archive_flag_spec_CXX \
12536 enable_shared_with_static_runtimes_CXX \
12537 old_archive_cmds_CXX \
12538 old_archive_from_new_cmds_CXX \
12539 predep_objects_CXX \
12540 postdep_objects_CXX \
12543 compiler_lib_search_path_CXX \
12545 archive_expsym_cmds_CXX \
12546 postinstall_cmds_CXX \
12547 postuninstall_cmds_CXX \
12548 old_archive_from_expsyms_cmds_CXX \
12549 allow_undefined_flag_CXX \
12550 no_undefined_flag_CXX \
12551 export_symbols_cmds_CXX \
12552 hardcode_libdir_flag_spec_CXX \
12553 hardcode_libdir_flag_spec_ld_CXX \
12554 hardcode_libdir_separator_CXX \
12555 hardcode_automatic_CXX \
12557 module_expsym_cmds_CXX \
12558 lt_cv_prog_compiler_c_o_CXX \
12559 exclude_expsyms_CXX \
12560 include_expsyms_CXX; do
12563 old_archive_cmds_CXX | \
12564 old_archive_from_new_cmds_CXX | \
12565 archive_cmds_CXX | \
12566 archive_expsym_cmds_CXX | \
12567 module_cmds_CXX | \
12568 module_expsym_cmds_CXX | \
12569 old_archive_from_expsyms_cmds_CXX | \
12570 export_symbols_cmds_CXX | \
12571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12572 postinstall_cmds | postuninstall_cmds | \
12573 old_postinstall_cmds | old_postuninstall_cmds | \
12574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12575 # Double-quote double-evaled strings.
12576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12585 *'\$0 --fallback-echo"')
12586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12592 cat <<__EOF__ >> "$cfgfile"
12593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12597 # Shell to use when invoking shell scripts.
12600 # Whether or not to build shared libraries.
12601 build_libtool_libs=$enable_shared
12603 # Whether or not to build static libraries.
12604 build_old_libs=$enable_static
12606 # Whether or not to add -lc for building shared libraries.
12607 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12609 # Whether or not to disallow shared libs when runtime libs are static
12610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12612 # Whether or not to optimize for fast installation.
12613 fast_install=$enable_fast_install
12616 host_alias=$host_alias
12619 # An echo program that does not interpret backslashes.
12624 AR_FLAGS=$lt_AR_FLAGS
12629 # A language-specific compiler.
12630 CC=$lt_compiler_CXX
12632 # Is the compiler the GNU C compiler?
12638 # The linker used to build libraries.
12641 # Whether we need hard or soft links.
12644 # A BSD-compatible nm program.
12647 # A symbol stripping program
12650 # Used to examine libraries when file_magic_cmd begins "file"
12651 MAGIC_CMD=$MAGIC_CMD
12653 # Used on cygwin: DLL creation program.
12656 # Used on cygwin: object dumper.
12659 # Used on cygwin: assembler.
12662 # The name of the directory that contains temporary libtool files.
12665 # How to create reloadable object files.
12666 reload_flag=$lt_reload_flag
12667 reload_cmds=$lt_reload_cmds
12669 # How to pass a linker flag through the compiler.
12670 wl=$lt_lt_prog_compiler_wl_CXX
12672 # Object file suffix (normally "o").
12673 objext="$ac_objext"
12675 # Old archive suffix (normally "a").
12678 # Shared library suffix (normally ".so").
12679 shrext_cmds='$shrext_cmds'
12681 # Executable file suffix (normally "").
12684 # Additional compiler flags for building library objects.
12685 pic_flag=$lt_lt_prog_compiler_pic_CXX
12688 # What is the maximum length of a command?
12689 max_cmd_len=$lt_cv_sys_max_cmd_len
12691 # Does compiler simultaneously support -c and -o options?
12692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12694 # Must we lock files when doing compilation ?
12695 need_locks=$lt_need_locks
12697 # Do we need the lib prefix for modules?
12698 need_lib_prefix=$need_lib_prefix
12700 # Do we need a version for libraries?
12701 need_version=$need_version
12703 # Whether dlopen is supported.
12704 dlopen_support=$enable_dlopen
12706 # Whether dlopen of programs is supported.
12707 dlopen_self=$enable_dlopen_self
12709 # Whether dlopen of statically linked programs is supported.
12710 dlopen_self_static=$enable_dlopen_self_static
12712 # Compiler flag to prevent dynamic linking.
12713 link_static_flag=$lt_lt_prog_compiler_static_CXX
12715 # Compiler flag to turn off builtin functions.
12716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12718 # Compiler flag to allow reflexive dlopens.
12719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12721 # Compiler flag to generate shared objects directly from archives.
12722 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12724 # Compiler flag to generate thread-safe objects.
12725 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12727 # Library versioning type.
12728 version_type=$version_type
12730 # Format of library name prefix.
12731 libname_spec=$lt_libname_spec
12733 # List of archive names. First name is the real one, the rest are links.
12734 # The last name is the one that the linker finds with -lNAME.
12735 library_names_spec=$lt_library_names_spec
12737 # The coded name of the library, if different from the real name.
12738 soname_spec=$lt_soname_spec
12740 # Commands used to build and install an old-style archive.
12742 old_archive_cmds=$lt_old_archive_cmds_CXX
12743 old_postinstall_cmds=$lt_old_postinstall_cmds
12744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12746 # Create an old-style archive from a shared archive.
12747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12749 # Create a temporary old-style archive to link instead of a shared archive.
12750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12752 # Commands used to build and install a shared archive.
12753 archive_cmds=$lt_archive_cmds_CXX
12754 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12755 postinstall_cmds=$lt_postinstall_cmds
12756 postuninstall_cmds=$lt_postuninstall_cmds
12758 # Commands used to build a loadable module (assumed same as above if empty)
12759 module_cmds=$lt_module_cmds_CXX
12760 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12762 # Commands to strip libraries.
12763 old_striplib=$lt_old_striplib
12764 striplib=$lt_striplib
12766 # Dependencies to place before the objects being linked to create a
12768 predep_objects=$lt_predep_objects_CXX
12770 # Dependencies to place after the objects being linked to create a
12772 postdep_objects=$lt_postdep_objects_CXX
12774 # Dependencies to place before the objects being linked to create a
12776 predeps=$lt_predeps_CXX
12778 # Dependencies to place after the objects being linked to create a
12780 postdeps=$lt_postdeps_CXX
12782 # The library search path used internally by the compiler when linking
12783 # a shared library.
12784 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12786 # Method to check whether dependent libraries are shared objects.
12787 deplibs_check_method=$lt_deplibs_check_method
12789 # Command to use when deplibs_check_method == file_magic.
12790 file_magic_cmd=$lt_file_magic_cmd
12792 # Flag that allows shared libraries with undefined symbols to be built.
12793 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12795 # Flag that forces no undefined symbols.
12796 no_undefined_flag=$lt_no_undefined_flag_CXX
12798 # Commands used to finish a libtool library installation in a directory.
12799 finish_cmds=$lt_finish_cmds
12801 # Same as above, but a single script fragment to be evaled but not shown.
12802 finish_eval=$lt_finish_eval
12804 # Take the output of nm and produce a listing of raw symbols and C names.
12805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12807 # Transform the output of nm in a proper C declaration
12808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12810 # Transform the output of nm in a C name address pair
12811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12813 # This is the shared library runtime path variable.
12814 runpath_var=$runpath_var
12816 # This is the shared library path variable.
12817 shlibpath_var=$shlibpath_var
12819 # Is shlibpath searched before the hard-coded library search path?
12820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12822 # How to hardcode a shared library path into an executable.
12823 hardcode_action=$hardcode_action_CXX
12825 # Whether we should hardcode library paths into libraries.
12826 hardcode_into_libs=$hardcode_into_libs
12828 # Flag to hardcode \$libdir into a binary during linking.
12829 # This must work even if \$libdir does not exist.
12830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12832 # If ld is used when linking, flag to hardcode \$libdir into
12833 # a binary during linking. This must work even if \$libdir does
12835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12837 # Whether we need a single -rpath flag with a separated argument.
12838 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12840 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12841 # resulting binary.
12842 hardcode_direct=$hardcode_direct_CXX
12844 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12845 # resulting binary.
12846 hardcode_minus_L=$hardcode_minus_L_CXX
12848 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12849 # the resulting binary.
12850 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12852 # Set to yes if building a shared library automatically hardcodes DIR into the library
12853 # and all subsequent libraries and executables linked against it.
12854 hardcode_automatic=$hardcode_automatic_CXX
12856 # Variables whose values should be saved in libtool wrapper scripts and
12857 # restored at relink time.
12858 variables_saved_for_relink="$variables_saved_for_relink"
12860 # Whether libtool must link a program against all its dependency libraries.
12861 link_all_deplibs=$link_all_deplibs_CXX
12863 # Compile-time system search path for libraries
12864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12866 # Run-time system search path for libraries
12867 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12869 # Fix the shell variable \$srcfile for the compiler.
12870 fix_srcfile_path="$fix_srcfile_path_CXX"
12872 # Set to yes if exported symbols are required.
12873 always_export_symbols=$always_export_symbols_CXX
12875 # The commands to list exported symbols.
12876 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12878 # The commands to extract the exported symbol list from a shared archive.
12879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12881 # Symbols that should not be listed in the preloaded symbols.
12882 exclude_expsyms=$lt_exclude_expsyms_CXX
12884 # Symbols that must always be exported.
12885 include_expsyms=$lt_include_expsyms_CXX
12887 # ### END LIBTOOL TAG CONFIG: $tagname
12893 # If there is no Makefile yet, we rely on a make rule to execute
12894 # `config.status --recheck' to rerun these tests and create the
12895 # libtool script then.
12896 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12897 if test -f "$ltmain_in"; then
12898 test -f Makefile && make "$ltmain"
12904 ac_cpp='$CPP $CPPFLAGS'
12905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12913 with_gnu_ldcxx=$with_gnu_ld
12914 with_gnu_ld=$lt_save_with_gnu_ld
12915 lt_cv_path_LDCXX=$lt_cv_path_LD
12916 lt_cv_path_LD=$lt_save_path_LD
12917 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12918 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12926 if test -n "$F77" && test "X$F77" != "Xno"; then
12929 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12930 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12934 archive_cmds_need_lc_F77=no
12935 allow_undefined_flag_F77=
12936 always_export_symbols_F77=no
12937 archive_expsym_cmds_F77=
12938 export_dynamic_flag_spec_F77=
12939 hardcode_direct_F77=no
12940 hardcode_libdir_flag_spec_F77=
12941 hardcode_libdir_flag_spec_ld_F77=
12942 hardcode_libdir_separator_F77=
12943 hardcode_minus_L_F77=no
12944 hardcode_automatic_F77=no
12946 module_expsym_cmds_F77=
12947 link_all_deplibs_F77=unknown
12948 old_archive_cmds_F77=$old_archive_cmds
12949 no_undefined_flag_F77=
12950 whole_archive_flag_spec_F77=
12951 enable_shared_with_static_runtimes_F77=no
12953 # Source file extension for f77 test sources.
12956 # Object file extension for compiled f77 test sources.
12960 # Code to be used in simple compile tests
12961 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12963 # Code to be used in simple link tests
12964 lt_simple_link_test_code=" program t\n end\n"
12966 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12968 # If no C compiler was specified, use CC.
12971 # Allow CC to be a program name with arguments.
12975 # Allow CC to be a program name with arguments.
12980 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12982 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12983 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12984 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12985 echo "${ECHO_T}$can_build_shared" >&6
12987 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12988 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12989 test "$can_build_shared" = "no" && enable_shared=no
12991 # On AIX, shared libraries and static libraries use the same namespace, and
12992 # are all built from PIC.
12995 test "$enable_shared" = yes && enable_static=no
12996 if test -n "$RANLIB"; then
12997 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12998 postinstall_cmds='$RANLIB $lib'
13002 test "$enable_shared" = yes && enable_static=no
13005 echo "$as_me:$LINENO: result: $enable_shared" >&5
13006 echo "${ECHO_T}$enable_shared" >&6
13008 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13009 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13010 # Make sure either enable_shared or enable_static is yes.
13011 test "$enable_shared" = yes || enable_static=yes
13012 echo "$as_me:$LINENO: result: $enable_static" >&5
13013 echo "${ECHO_T}$enable_static" >&6
13015 test "$ld_shlibs_F77" = no && can_build_shared=no
13020 lt_prog_compiler_wl_F77=
13021 lt_prog_compiler_pic_F77=
13022 lt_prog_compiler_static_F77=
13024 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13025 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13027 if test "$GCC" = yes; then
13028 lt_prog_compiler_wl_F77='-Wl,'
13029 lt_prog_compiler_static_F77='-static'
13033 # All AIX code is PIC.
13034 if test "$host_cpu" = ia64; then
13035 # AIX 5 now supports IA64 processor
13036 lt_prog_compiler_static_F77='-Bstatic'
13041 # FIXME: we need at least 68020 code to build shared libraries, but
13042 # adding the `-m68020' flag to GCC prevents building anything better,
13044 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13047 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13048 # PIC is the default for these OSes.
13051 mingw* | pw32* | os2*)
13052 # This hack is so that the source file can tell whether it is being
13053 # built for inclusion in a dll (and should export symbols for example).
13054 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13057 darwin* | rhapsody*)
13058 # PIC is the default on this platform
13059 # Common symbols not allowed in MH_DYLIB files
13060 lt_prog_compiler_pic_F77='-fno-common'
13064 # Just because we use GCC doesn't mean we suddenly get shared libraries
13065 # on systems that don't support them.
13066 lt_prog_compiler_can_build_shared_F77=no
13071 if test -d /usr/nec; then
13072 lt_prog_compiler_pic_F77=-Kconform_pic
13077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13078 # not for PA HP-UX.
13079 case "$host_cpu" in
13084 lt_prog_compiler_pic_F77='-fPIC'
13090 lt_prog_compiler_pic_F77='-fPIC'
13094 # PORTME Check for flag to pass linker flags through the system compiler.
13097 lt_prog_compiler_wl_F77='-Wl,'
13098 if test "$host_cpu" = ia64; then
13099 # AIX 5 now supports IA64 processor
13100 lt_prog_compiler_static_F77='-Bstatic'
13102 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13106 mingw* | pw32* | os2*)
13107 # This hack is so that the source file can tell whether it is being
13108 # built for inclusion in a dll (and should export symbols for example).
13109 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13112 hpux9* | hpux10* | hpux11*)
13113 lt_prog_compiler_wl_F77='-Wl,'
13114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13115 # not for PA HP-UX.
13116 case "$host_cpu" in
13121 lt_prog_compiler_pic_F77='+Z'
13124 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13125 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13128 irix5* | irix6* | nonstopux*)
13129 lt_prog_compiler_wl_F77='-Wl,'
13130 # PIC (with -KPIC) is the default.
13131 lt_prog_compiler_static_F77='-non_shared'
13135 lt_prog_compiler_pic_F77='-KPIC'
13136 lt_prog_compiler_static_F77='-Bstatic'
13142 lt_prog_compiler_wl_F77='-Wl,'
13143 lt_prog_compiler_pic_F77='-KPIC'
13144 lt_prog_compiler_static_F77='-static'
13147 lt_prog_compiler_wl_F77='-Wl,'
13148 # All Alpha code is PIC.
13149 lt_prog_compiler_static_F77='-non_shared'
13154 osf3* | osf4* | osf5*)
13155 lt_prog_compiler_wl_F77='-Wl,'
13156 # All OSF/1 code is PIC.
13157 lt_prog_compiler_static_F77='-non_shared'
13161 lt_prog_compiler_pic_F77='-Kpic'
13162 lt_prog_compiler_static_F77='-dn'
13166 lt_prog_compiler_wl_F77='-Wl,'
13167 lt_prog_compiler_pic_F77='-KPIC'
13168 lt_prog_compiler_static_F77='-Bstatic'
13172 lt_prog_compiler_wl_F77='-Qoption ld '
13173 lt_prog_compiler_pic_F77='-PIC'
13174 lt_prog_compiler_static_F77='-Bstatic'
13177 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13178 lt_prog_compiler_wl_F77='-Wl,'
13179 lt_prog_compiler_pic_F77='-KPIC'
13180 lt_prog_compiler_static_F77='-Bstatic'
13184 if test -d /usr/nec ;then
13185 lt_prog_compiler_pic_F77='-Kconform_pic'
13186 lt_prog_compiler_static_F77='-Bstatic'
13191 lt_prog_compiler_pic_F77='-pic'
13192 lt_prog_compiler_static_F77='-Bstatic'
13196 lt_prog_compiler_can_build_shared_F77=no
13201 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13202 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13205 # Check to make sure the PIC flag actually works.
13207 if test -n "$lt_prog_compiler_pic_F77"; then
13209 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13210 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13211 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 lt_prog_compiler_pic_works_F77=no
13215 ac_outfile=conftest.$ac_objext
13216 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13217 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13218 # Insert the option either (1) after the last *FLAGS variable, or
13219 # (2) before a word containing "conftest.", or (3) at the end.
13220 # Note that $ac_compile itself does not contain backslashes and begins
13221 # with a dollar sign (not a hyphen), so the echo should work correctly.
13222 # The option is referenced via a variable to avoid confusing sed.
13223 lt_compile=`echo "$ac_compile" | $SED \
13224 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13226 -e 's:$: $lt_compiler_flag:'`
13227 (eval echo "\"\$as_me:13227: $lt_compile\"" >&5)
13228 (eval "$lt_compile" 2>conftest.err)
13230 cat conftest.err >&5
13231 echo "$as_me:13231: \$? = $ac_status" >&5
13232 if (exit $ac_status) && test -s "$ac_outfile"; then
13233 # The compiler can only warn and ignore the option if not recognized
13234 # So say no if there are warnings
13235 if test ! -s conftest.err; then
13236 lt_prog_compiler_pic_works_F77=yes
13242 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13243 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13245 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13246 case $lt_prog_compiler_pic_F77 in
13248 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13251 lt_prog_compiler_pic_F77=
13252 lt_prog_compiler_can_build_shared_F77=no
13257 # For platforms which do not support PIC, -DPIC is meaningless:
13259 lt_prog_compiler_pic_F77=
13262 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13266 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13267 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13268 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 lt_cv_prog_compiler_c_o_F77=no
13272 $rm -r conftest 2>/dev/null
13276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13278 lt_compiler_flag="-o out/conftest2.$ac_objext"
13279 # Insert the option either (1) after the last *FLAGS variable, or
13280 # (2) before a word containing "conftest.", or (3) at the end.
13281 # Note that $ac_compile itself does not contain backslashes and begins
13282 # with a dollar sign (not a hyphen), so the echo should work correctly.
13283 lt_compile=`echo "$ac_compile" | $SED \
13284 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13286 -e 's:$: $lt_compiler_flag:'`
13287 (eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
13288 (eval "$lt_compile" 2>out/conftest.err)
13290 cat out/conftest.err >&5
13291 echo "$as_me:13291: \$? = $ac_status" >&5
13292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13294 # The compiler can only warn and ignore the option if not recognized
13295 # So say no if there are warnings
13296 if test ! -s out/conftest.err; then
13297 lt_cv_prog_compiler_c_o_F77=yes
13302 # SGI C++ compiler will create directory out/ii_files/ for
13303 # template instantiation
13304 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13305 $rm out/* && rmdir out
13311 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13312 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13315 hard_links="nottested"
13316 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13317 # do not overwrite the value of need_locks provided by the user
13318 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13319 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13324 ln conftest.a conftest.b 2>&5 || hard_links=no
13325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13326 echo "$as_me:$LINENO: result: $hard_links" >&5
13327 echo "${ECHO_T}$hard_links" >&6
13328 if test "$hard_links" = no; then
13329 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13330 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13337 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13338 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13341 allow_undefined_flag_F77=
13342 enable_shared_with_static_runtimes_F77=no
13344 archive_expsym_cmds_F77=
13345 old_archive_From_new_cmds_F77=
13346 old_archive_from_expsyms_cmds_F77=
13347 export_dynamic_flag_spec_F77=
13348 whole_archive_flag_spec_F77=
13349 thread_safe_flag_spec_F77=
13350 hardcode_libdir_flag_spec_F77=
13351 hardcode_libdir_flag_spec_ld_F77=
13352 hardcode_libdir_separator_F77=
13353 hardcode_direct_F77=no
13354 hardcode_minus_L_F77=no
13355 hardcode_shlibpath_var_F77=unsupported
13356 link_all_deplibs_F77=unknown
13357 hardcode_automatic_F77=no
13359 module_expsym_cmds_F77=
13360 always_export_symbols_F77=no
13361 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13362 # include_expsyms should be a list of space-separated symbols to be *always*
13363 # included in the symbol list
13364 include_expsyms_F77=
13365 # exclude_expsyms can be an extended regexp of symbols to exclude
13366 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13367 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13368 # as well as any symbol that contains `d'.
13369 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13370 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13371 # platforms (ab)use it in PIC code, but their linkers get confused if
13372 # the symbol is explicitly referenced. Since portable code cannot
13373 # rely on this symbol name, it's probably fine to never include it in
13374 # preloaded symbol tables.
13375 extract_expsyms_cmds=
13378 cygwin* | mingw* | pw32*)
13379 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13380 # When not using gcc, we currently assume that we are using
13381 # Microsoft Visual C++.
13382 if test "$GCC" != yes; then
13392 if test "$with_gnu_ld" = yes; then
13393 # If archive_cmds runs LD, not CC, wlarc should be empty
13396 # See if GNU ld supports shared libraries.
13398 aix3* | aix4* | aix5*)
13399 # On AIX/PPC, the GNU linker is very broken
13400 if test "$host_cpu" != ia64; then
13404 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13405 *** to be unable to reliably create shared libraries on AIX.
13406 *** Therefore, libtool is disabling shared libraries support. If you
13407 *** really care for shared libraries, you may want to modify your PATH
13408 *** so that a non-GNU linker is found, and then restart.
13415 archive_cmds_F77='$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)'
13416 hardcode_libdir_flag_spec_F77='-L$libdir'
13417 hardcode_minus_L_F77=yes
13419 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13420 # that the semantics of dynamic libraries on AmigaOS, at least up
13421 # to version 4, is to share data among multiple programs linked
13422 # with the same dynamic library. Since this doesn't match the
13423 # behavior of shared libraries on other platforms, we can't use
13429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13430 allow_undefined_flag_F77=unsupported
13431 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13432 # support --undefined. This deserves some investigation. FIXME
13433 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13439 cygwin* | mingw* | pw32*)
13440 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13441 # as there is no search path for DLLs.
13442 hardcode_libdir_flag_spec_F77='-L$libdir'
13443 allow_undefined_flag_F77=unsupported
13444 always_export_symbols_F77=no
13445 enable_shared_with_static_runtimes_F77=yes
13446 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13448 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13449 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13450 # If the export-symbols file already is a .def file (1st line
13451 # is EXPORTS), use it as is; otherwise, prepend...
13452 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13453 cp $export_symbols $output_objdir/$soname.def;
13455 echo EXPORTS > $output_objdir/$soname.def;
13456 cat $export_symbols >> $output_objdir/$soname.def;
13458 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13464 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13465 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13466 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13475 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13479 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13480 *** create shared libraries on Solaris systems. Therefore, libtool
13481 *** is disabling shared libraries support. We urge you to upgrade GNU
13482 *** binutils to release 2.9.1 or newer. Another option is to modify
13483 *** your PATH or compiler configuration so that the native linker is
13484 *** used, and then restart.
13487 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13488 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13489 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13496 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_direct_F77=yes
13499 hardcode_shlibpath_var_F77=no
13503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13504 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13505 archive_cmds_F77="$tmp_archive_cmds"
13506 supports_anon_versioning=no
13507 case `$LD -v 2>/dev/null` in
13508 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13509 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13510 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13511 *\ 2.11.*) ;; # other 2.11 versions
13512 *) supports_anon_versioning=yes ;;
13514 if test $supports_anon_versioning = yes; then
13515 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13517 $echo "local: *; };" >> $output_objdir/$libname.ver~
13518 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13520 archive_expsym_cmds_F77="$tmp_archive_cmds"
13522 link_all_deplibs_F77=no
13529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13530 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13538 if test "$ld_shlibs_F77" = yes; then
13539 runpath_var=LD_RUN_PATH
13540 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13541 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13542 # ancient GNU ld didn't support --whole-archive et. al.
13543 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13544 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13546 whole_archive_flag_spec_F77=
13550 # PORTME fill in a description of your system's linker (not GNU ld)
13553 allow_undefined_flag_F77=unsupported
13554 always_export_symbols_F77=yes
13555 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13556 # Note: this linker hardcodes the directories in LIBPATH if there
13557 # are no directories specified by -L.
13558 hardcode_minus_L_F77=yes
13559 if test "$GCC" = yes && test -z "$link_static_flag"; then
13560 # Neither direct hardcoding nor static linking is supported with a
13562 hardcode_direct_F77=unsupported
13567 if test "$host_cpu" = ia64; then
13568 # On IA64, the linker does run time linking by default, so we don't
13569 # have to do anything special.
13570 aix_use_runtimelinking=no
13571 exp_sym_flag='-Bexport'
13574 # If we're using GNU nm, then we don't want the "-C" option.
13575 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13576 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13577 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13579 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13581 aix_use_runtimelinking=no
13583 # Test if we are trying to use run time linking or normal
13584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13585 # need to do runtime linking.
13586 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13587 for ld_flag in $LDFLAGS; do
13588 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13589 aix_use_runtimelinking=yes
13595 exp_sym_flag='-bexport'
13596 no_entry_flag='-bnoentry'
13599 # When large executables or shared objects are built, AIX ld can
13600 # have problems creating the table of contents. If linking a library
13601 # or program results in "error TOC overflow" add -mminimal-toc to
13602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13605 archive_cmds_F77=''
13606 hardcode_direct_F77=yes
13607 hardcode_libdir_separator_F77=':'
13608 link_all_deplibs_F77=yes
13610 if test "$GCC" = yes; then
13611 case $host_os in aix4.012|aix4.012.*)
13612 # We only want to do this on AIX 4.2 and lower, the check
13613 # below for broken collect2 doesn't work under 4.3+
13614 collect2name=`${CC} -print-prog-name=collect2`
13615 if test -f "$collect2name" && \
13616 strings "$collect2name" | grep resolve_lib_name >/dev/null
13618 # We have reworked collect2
13619 hardcode_direct_F77=yes
13621 # We have old collect2
13622 hardcode_direct_F77=unsupported
13623 # It fails to find uninstalled libraries when the uninstalled
13624 # path is not listed in the libpath. Setting hardcode_minus_L
13625 # to unsupported forces relinking
13626 hardcode_minus_L_F77=yes
13627 hardcode_libdir_flag_spec_F77='-L$libdir'
13628 hardcode_libdir_separator_F77=
13631 shared_flag='-shared'
13634 if test "$host_cpu" = ia64; then
13635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13636 # chokes on -Wl,-G. The following line is correct:
13639 if test "$aix_use_runtimelinking" = yes; then
13640 shared_flag='${wl}-G'
13642 shared_flag='${wl}-bM:SRE'
13647 # It seems that -bexpall does not export symbols beginning with
13648 # underscore (_), so it is better to generate a list of symbols to export.
13649 always_export_symbols_F77=yes
13650 if test "$aix_use_runtimelinking" = yes; then
13651 # Warning - without using the other runtime loading flags (-brtl),
13652 # -berok will link without error, but may produce a broken library.
13653 allow_undefined_flag_F77='-berok'
13654 # Determine the default libpath from the value encoded in an empty executable.
13655 cat >conftest.$ac_ext <<_ACEOF
13660 rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662 (eval $ac_link) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -s conftest$ac_exeext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13675 # Check for a 64-bit object if we didn't find anything.
13676 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13684 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13686 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13687 archive_expsym_cmds_F77="\$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"
13689 if test "$host_cpu" = ia64; then
13690 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13691 allow_undefined_flag_F77="-z nodefs"
13692 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13694 # Determine the default libpath from the value encoded in an empty executable.
13695 cat >conftest.$ac_ext <<_ACEOF
13700 rm -f conftest.$ac_objext conftest$ac_exeext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13702 (eval $ac_link) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -s conftest$ac_exeext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13715 # Check for a 64-bit object if we didn't find anything.
13716 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13726 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13727 # Warning - without using the other run time loading flags,
13728 # -berok will link without error, but may produce a broken library.
13729 no_undefined_flag_F77=' ${wl}-bernotok'
13730 allow_undefined_flag_F77=' ${wl}-berok'
13731 # -bexpall does not export symbols beginning with underscore (_)
13732 always_export_symbols_F77=yes
13733 # Exported symbols can be pulled into shared objects from archives
13734 whole_archive_flag_spec_F77=' '
13735 archive_cmds_need_lc_F77=yes
13736 # This is similar to how AIX traditionally builds it's shared libraries.
13737 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13743 archive_cmds_F77='$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)'
13744 hardcode_libdir_flag_spec_F77='-L$libdir'
13745 hardcode_minus_L_F77=yes
13746 # see comment about different semantics on the GNU ld section
13751 export_dynamic_flag_spec_F77=-rdynamic
13754 cygwin* | mingw* | pw32*)
13755 # When not using gcc, we currently assume that we are using
13756 # Microsoft Visual C++.
13757 # hardcode_libdir_flag_spec is actually meaningless, as there is
13758 # no search path for DLLs.
13759 hardcode_libdir_flag_spec_F77=' '
13760 allow_undefined_flag_F77=unsupported
13761 # Tell ltmain to make .lib files, not .a files.
13763 # Tell ltmain to make .dll files, not .so files.
13765 # FIXME: Setting linknames here is a bad hack.
13766 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13767 # The linker will automatically build a .lib file if we build a DLL.
13768 old_archive_From_new_cmds_F77='true'
13769 # FIXME: Should let the user specify the lib program.
13770 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13771 fix_srcfile_path='`cygpath -w "$srcfile"`'
13772 enable_shared_with_static_runtimes_F77=yes
13775 darwin* | rhapsody*)
13776 if test "$GXX" = yes ; then
13777 archive_cmds_need_lc_F77=no
13779 rhapsody* | darwin1.[012])
13780 allow_undefined_flag_F77='-undefined suppress'
13783 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13784 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13786 case ${MACOSX_DEPLOYMENT_TARGET} in
13788 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13791 allow_undefined_flag_F77='-undefined dynamic_lookup'
13797 lt_int_apple_cc_single_mod=no
13798 output_verbose_link_cmd='echo'
13799 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13800 lt_int_apple_cc_single_mod=yes
13802 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13803 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13805 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13807 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13808 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13809 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13810 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13812 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13814 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13815 hardcode_direct_F77=no
13816 hardcode_automatic_F77=yes
13817 hardcode_shlibpath_var_F77=unsupported
13818 whole_archive_flag_spec_F77='-all_load $convenience'
13819 link_all_deplibs_F77=yes
13826 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827 hardcode_libdir_flag_spec_F77='-L$libdir'
13828 hardcode_shlibpath_var_F77=no
13835 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13836 # support. Future versions do this automatically, but an explicit c++rt0.o
13837 # does not break anything, and helps significantly (at the cost of a little
13840 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13841 hardcode_libdir_flag_spec_F77='-R$libdir'
13842 hardcode_direct_F77=yes
13843 hardcode_shlibpath_var_F77=no
13846 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13848 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_direct_F77=yes
13850 hardcode_minus_L_F77=yes
13851 hardcode_shlibpath_var_F77=no
13854 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13855 freebsd* | kfreebsd*-gnu)
13856 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13857 hardcode_libdir_flag_spec_F77='-R$libdir'
13858 hardcode_direct_F77=yes
13859 hardcode_shlibpath_var_F77=no
13863 if test "$GCC" = yes; then
13864 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13866 archive_cmds_F77='$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'
13868 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13869 hardcode_libdir_separator_F77=:
13870 hardcode_direct_F77=yes
13872 # hardcode_minus_L: Not really in the search PATH,
13873 # but as the default location of the library.
13874 hardcode_minus_L_F77=yes
13875 export_dynamic_flag_spec_F77='${wl}-E'
13879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13880 case "$host_cpu" in
13882 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13885 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13889 case "$host_cpu" in
13891 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13894 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13898 if test "$with_gnu_ld" = no; then
13899 case "$host_cpu" in
13901 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13902 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13903 hardcode_libdir_separator_F77=:
13904 hardcode_direct_F77=no
13905 hardcode_shlibpath_var_F77=no
13908 hardcode_libdir_flag_spec_F77='-L$libdir'
13909 hardcode_direct_F77=no
13910 hardcode_shlibpath_var_F77=no
13912 # hardcode_minus_L: Not really in the search PATH,
13913 # but as the default location of the library.
13914 hardcode_minus_L_F77=yes
13917 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13918 hardcode_libdir_separator_F77=:
13919 hardcode_direct_F77=yes
13920 export_dynamic_flag_spec_F77='${wl}-E'
13922 # hardcode_minus_L: Not really in the search PATH,
13923 # but as the default location of the library.
13924 hardcode_minus_L_F77=yes
13930 irix5* | irix6* | nonstopux*)
13931 if test "$GCC" = yes; then
13932 archive_cmds_F77='$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'
13934 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13935 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13937 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13938 hardcode_libdir_separator_F77=:
13939 link_all_deplibs_F77=yes
13942 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13944 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13946 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13948 hardcode_libdir_flag_spec_F77='-R$libdir'
13949 hardcode_direct_F77=yes
13950 hardcode_shlibpath_var_F77=no
13954 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955 hardcode_direct_F77=yes
13956 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13957 hardcode_libdir_separator_F77=:
13958 hardcode_shlibpath_var_F77=no
13962 hardcode_direct_F77=yes
13963 hardcode_shlibpath_var_F77=no
13964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13965 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13966 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13967 export_dynamic_flag_spec_F77='${wl}-E'
13970 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13971 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13972 hardcode_libdir_flag_spec_F77='-R$libdir'
13975 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13976 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13983 hardcode_libdir_flag_spec_F77='-L$libdir'
13984 hardcode_minus_L_F77=yes
13985 allow_undefined_flag_F77=unsupported
13986 archive_cmds_F77='$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'
13987 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13991 if test "$GCC" = yes; then
13992 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13993 archive_cmds_F77='$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'
13995 allow_undefined_flag_F77=' -expect_unresolved \*'
13996 archive_cmds_F77='$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'
13998 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13999 hardcode_libdir_separator_F77=:
14002 osf4* | osf5*) # as osf3* with the addition of -msym flag
14003 if test "$GCC" = yes; then
14004 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14005 archive_cmds_F77='$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'
14006 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14008 allow_undefined_flag_F77=' -expect_unresolved \*'
14009 archive_cmds_F77='$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'
14010 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14011 $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'
14013 # Both c and cxx compiler support -rpath directly
14014 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14016 hardcode_libdir_separator_F77=:
14020 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021 hardcode_shlibpath_var_F77=no
14022 export_dynamic_flag_spec_F77='${wl}-Bexport'
14023 runpath_var=LD_RUN_PATH
14024 hardcode_runpath_var=yes
14028 no_undefined_flag_F77=' -z text'
14029 if test "$GCC" = yes; then
14030 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14031 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14032 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14034 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14035 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14036 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14038 hardcode_libdir_flag_spec_F77='-R$libdir'
14039 hardcode_shlibpath_var_F77=no
14041 solaris2.[0-5] | solaris2.[0-5].*) ;;
14042 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14043 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14045 link_all_deplibs_F77=yes
14049 if test "x$host_vendor" = xsequent; then
14050 # Use $CC to link under sequent, because it throws in some extra .o
14051 # files that make .init and .fini sections work.
14052 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14054 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14056 hardcode_libdir_flag_spec_F77='-L$libdir'
14057 hardcode_direct_F77=yes
14058 hardcode_minus_L_F77=yes
14059 hardcode_shlibpath_var_F77=no
14063 case $host_vendor in
14065 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14066 hardcode_direct_F77=yes # is this really true???
14069 ## LD is ld it makes a PLAMLIB
14070 ## CC just makes a GrossModule.
14071 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14072 reload_cmds_F77='$CC -r -o $output$reload_objs'
14073 hardcode_direct_F77=no
14076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14077 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14080 runpath_var='LD_RUN_PATH'
14081 hardcode_shlibpath_var_F77=no
14085 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14086 hardcode_shlibpath_var_F77=no
14087 export_dynamic_flag_spec_F77='-Bexport'
14091 if test -d /usr/nec; then
14092 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14093 hardcode_shlibpath_var_F77=no
14094 runpath_var=LD_RUN_PATH
14095 hardcode_runpath_var=yes
14101 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14102 hardcode_direct_F77=yes
14103 hardcode_minus_L_F77=no
14104 hardcode_shlibpath_var_F77=no
14105 hardcode_runpath_var=yes
14106 runpath_var=LD_RUN_PATH
14109 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14110 no_undefined_flag_F77='${wl}-z ${wl}text'
14111 if test "$GCC" = yes; then
14112 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14114 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14116 runpath_var='LD_RUN_PATH'
14117 hardcode_shlibpath_var_F77=no
14121 no_undefined_flag_F77=' -z text'
14122 # $CC -shared without GNU ld will not create a library from C++
14123 # object files and a static libstdc++, better avoid it by now
14124 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14125 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14126 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14127 hardcode_libdir_flag_spec_F77=
14128 hardcode_shlibpath_var_F77=no
14129 runpath_var='LD_RUN_PATH'
14133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14134 hardcode_libdir_flag_spec_F77='-L$libdir'
14135 hardcode_shlibpath_var_F77=no
14144 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14145 echo "${ECHO_T}$ld_shlibs_F77" >&6
14146 test "$ld_shlibs_F77" = no && can_build_shared=no
14148 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14149 if test "$GCC" = yes; then
14150 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14154 # Do we need to explicitly link libc?
14156 case "x$archive_cmds_need_lc_F77" in
14158 # Assume -lc should be added
14159 archive_cmds_need_lc_F77=yes
14161 if test "$enable_shared" = yes && test "$GCC" = yes; then
14162 case $archive_cmds_F77 in
14164 # FIXME: we may have to deal with multi-command sequences.
14167 # Test whether the compiler implicitly links with -lc since on some
14168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14169 # to ld, don't add -lc before -lgcc.
14170 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14171 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } 2>conftest.err; then
14182 libobjs=conftest.$ac_objext
14184 wl=$lt_prog_compiler_wl_F77
14190 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14191 allow_undefined_flag_F77=
14192 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14193 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }
14198 archive_cmds_need_lc_F77=no
14200 archive_cmds_need_lc_F77=yes
14202 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14204 cat conftest.err 1>&5
14207 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14208 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14215 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14216 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14217 library_names_spec=
14218 libname_spec='lib$name'
14222 postuninstall_cmds=
14226 shlibpath_overrides_runpath=unknown
14228 dynamic_linker="$host_os ld.so"
14229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14230 if test "$GCC" = yes; then
14231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14232 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14233 # if the path contains ";" then we assume it to be the separator
14234 # otherwise default to the standard path separator (i.e. ":") - it is
14235 # assumed that no part of a normal pathname contains ";" but that should
14236 # okay in the real world where ";" in dirpaths is itself problematic.
14237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14242 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14244 need_lib_prefix=unknown
14245 hardcode_into_libs=no
14247 # when you set need_version to no, make sure it does not cause -set_version
14248 # flags to be left without arguments
14249 need_version=unknown
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14255 shlibpath_var=LIBPATH
14257 # AIX 3 has no versioning support, so we append a major version to the name.
14258 soname_spec='${libname}${release}${shared_ext}$major'
14265 hardcode_into_libs=yes
14266 if test "$host_cpu" = ia64; then
14267 # AIX 5 supports IA64
14268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14269 shlibpath_var=LD_LIBRARY_PATH
14271 # With GCC up to 2.95.x, collect2 would create an import file
14272 # for dependence libraries. The import file would start with
14273 # the line `#! .'. This would cause the generated library to
14274 # depend on `.', always an invalid library. This was fixed in
14275 # development snapshots of GCC prior to 3.0.
14277 aix4 | aix4.[01] | aix4.[01].*)
14278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14280 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14283 can_build_shared=no
14287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14288 # soname into executable. Probably we can add versioning support to
14289 # collect2, so additional links can be useful in future.
14290 if test "$aix_use_runtimelinking" = yes; then
14291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14292 # instead of lib<name>.a to let people know that these are not
14293 # typical AIX shared libraries.
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14296 # We preserve .a as extension for shared libraries through AIX4.2
14297 # and later when we are not doing run time linking.
14298 library_names_spec='${libname}${release}.a $libname.a'
14299 soname_spec='${libname}${release}${shared_ext}$major'
14301 shlibpath_var=LIBPATH
14306 library_names_spec='$libname.ixlibrary $libname.a'
14307 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14308 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'
14312 library_names_spec='${libname}${shared_ext}'
14313 dynamic_linker="$host_os ld.so"
14314 shlibpath_var=LIBRARY_PATH
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14321 soname_spec='${libname}${release}${shared_ext}$major'
14322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14323 shlibpath_var=LD_LIBRARY_PATH
14324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14326 # the default ld.so.conf also contains /usr/contrib/lib and
14327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14328 # libtool to hard-code these into programs
14331 cygwin* | mingw* | pw32*)
14332 version_type=windows
14337 case $GCC,$host_os in
14338 yes,cygwin* | yes,mingw* | yes,pw32*)
14339 library_names_spec='$libname.dll.a'
14340 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14341 postinstall_cmds='base_file=`basename \${file}`~
14342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14343 dldir=$destdir/`dirname \$dlpath`~
14344 test -d \$dldir || mkdir -p \$dldir~
14345 $install_prog $dir/$dlname \$dldir/$dlname'
14346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14347 dlpath=$dir/\$dldll~
14349 shlibpath_overrides_runpath=yes
14353 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14354 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14355 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14358 # MinGW DLLs use traditional 'lib' prefix
14359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14360 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14361 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14362 # It is most probably a Windows format PATH printed by
14363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14364 # path with ; separators, and with drive letters. We can handle the
14365 # drive letters (cygwin fileutils understands them), so leave them,
14366 # especially as we might pass files found there to a mingw objdump,
14367 # which wouldn't understand a cygwinified path. Ahh.
14368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14374 # pw32 DLLs use 'pw' prefix rather than 'lib'
14375 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14384 dynamic_linker='Win32 ld.exe'
14385 # FIXME: first we should search . and the directory the executable is in
14389 darwin* | rhapsody*)
14390 dynamic_linker="$host_os dyld"
14391 version_type=darwin
14394 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14395 soname_spec='${libname}${release}${major}$shared_ext'
14396 shlibpath_overrides_runpath=yes
14397 shlibpath_var=DYLD_LIBRARY_PATH
14398 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14399 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14400 if test "$GCC" = yes; then
14401 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14403 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 shlibpath_var=LD_LIBRARY_PATH
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14426 soname_spec='${libname}${release}${shared_ext}$major'
14427 shlibpath_var=LD_LIBRARY_PATH
14428 shlibpath_overrides_runpath=no
14429 hardcode_into_libs=yes
14430 dynamic_linker='GNU ld.so'
14434 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14435 version_type=freebsd-$objformat
14436 case $version_type in
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14447 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14452 freebsd3.01* | freebsdelf3.01*)
14453 shlibpath_overrides_runpath=yes
14454 hardcode_into_libs=yes
14457 shlibpath_overrides_runpath=no
14458 hardcode_into_libs=yes
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 hardcode_into_libs=yes
14473 hpux9* | hpux10* | hpux11*)
14474 # Give a soname corresponding to the major version so that dld.sl refuses to
14475 # link against other versions.
14479 case "$host_cpu" in
14482 hardcode_into_libs=yes
14483 dynamic_linker="$host_os dld.so"
14484 shlibpath_var=LD_LIBRARY_PATH
14485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 if test "X$HPUX_IA64_MODE" = X32; then
14489 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14491 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14497 hardcode_into_libs=yes
14498 dynamic_linker="$host_os dld.sl"
14499 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 soname_spec='${libname}${release}${shared_ext}$major'
14503 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14508 dynamic_linker="$host_os dld.sl"
14509 shlibpath_var=SHLIB_PATH
14510 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14515 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14516 postinstall_cmds='chmod 555 $lib'
14519 irix5* | irix6* | nonstopux*)
14521 nonstopux*) version_type=nonstopux ;;
14523 if test "$lt_cv_prog_gnu_ld" = yes; then
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14534 irix5* | nonstopux*)
14535 libsuff= shlibsuff=
14538 case $LD in # libtool.m4 will add one of these switches to LD
14539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14540 libsuff= shlibsuff= libmagic=32-bit;;
14541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14542 libsuff=32 shlibsuff=N32 libmagic=N32;;
14543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14544 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14545 *) libsuff= shlibsuff= libmagic=never-match;;
14549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14550 shlibpath_overrides_runpath=no
14551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14553 hardcode_into_libs=yes
14556 # No shared lib support for Linux oldld, aout, or coff.
14557 linux*oldld* | linux*aout* | linux*coff*)
14561 # This must be Linux ELF.
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567 soname_spec='${libname}${release}${shared_ext}$major'
14568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 shlibpath_overrides_runpath=no
14571 # This implies no fast_install, which is unacceptable.
14572 # Some rework will be needed to allow for fast_install
14573 # before this can be enabled.
14574 hardcode_into_libs=yes
14576 # Append ld.so.conf contents to the search path
14577 if test -f /etc/ld.so.conf; then
14578 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14582 # We used to test for /lib/ld.so.1 and disable shared libraries on
14583 # powerpc, because MkLinux only supported shared libraries with the
14584 # GNU dynamic linker. Since this was broken with cross compilers,
14585 # most powerpc-linux boxes support dynamic linking these days and
14586 # people can always --disable-shared, the test was removed, and we
14587 # assume the GNU/Linux dynamic linker is in use.
14588 dynamic_linker='GNU/Linux ld.so'
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 shlibpath_var=LD_LIBRARY_PATH
14598 shlibpath_overrides_runpath=no
14599 hardcode_into_libs=yes
14600 dynamic_linker='NetBSD ld.elf_so'
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=no
14611 hardcode_into_libs=yes
14612 dynamic_linker='GNU ld.so'
14619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14622 dynamic_linker='NetBSD (a.out) ld.so'
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 dynamic_linker='NetBSD ld.elf_so'
14628 shlibpath_var=LD_LIBRARY_PATH
14629 shlibpath_overrides_runpath=yes
14630 hardcode_into_libs=yes
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645 soname_spec='${libname}${release}${shared_ext}$major'
14646 shlibpath_var=LD_LIBRARY_PATH
14647 shlibpath_overrides_runpath=yes
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14659 openbsd2.[89] | openbsd2.[89].*)
14660 shlibpath_overrides_runpath=no
14663 shlibpath_overrides_runpath=yes
14667 shlibpath_overrides_runpath=yes
14672 libname_spec='$name'
14675 library_names_spec='$libname${shared_ext} $libname.a'
14676 dynamic_linker='OS/2 ld.exe'
14677 shlibpath_var=LIBPATH
14680 osf3* | osf4* | osf5*)
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 shlibpath_var=LD_LIBRARY_PATH
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=yes
14706 hardcode_into_libs=yes
14707 # ldd complains unless libraries are executable
14708 postinstall_cmds='chmod +x $lib'
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 shlibpath_overrides_runpath=yes
14717 if test "$with_gnu_ld" = yes; then
14723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 case $host_vendor in
14730 shlibpath_overrides_runpath=no
14732 export_dynamic_flag_spec='${wl}-Blargedynsym'
14733 runpath_var=LD_RUN_PATH
14741 shlibpath_overrides_runpath=no
14742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14748 if test -d /usr/nec ;then
14750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14751 soname_spec='$libname${shared_ext}.$major'
14752 shlibpath_var=LD_LIBRARY_PATH
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14767 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14768 echo "${ECHO_T}$dynamic_linker" >&6
14769 test "$dynamic_linker" = no && can_build_shared=no
14771 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14773 hardcode_action_F77=
14774 if test -n "$hardcode_libdir_flag_spec_F77" || \
14775 test -n "$runpath_var F77" || \
14776 test "X$hardcode_automatic_F77"="Xyes" ; then
14778 # We can hardcode non-existant directories.
14779 if test "$hardcode_direct_F77" != no &&
14780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14781 # have to relink, otherwise we might link with an installed library
14782 # when we should be linking with a yet-to-be-installed one
14783 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14784 test "$hardcode_minus_L_F77" != no; then
14785 # Linking always hardcodes the temporary library directory.
14786 hardcode_action_F77=relink
14788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14789 hardcode_action_F77=immediate
14792 # We cannot hardcode anything, or else we can only hardcode existing
14794 hardcode_action_F77=unsupported
14796 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14797 echo "${ECHO_T}$hardcode_action_F77" >&6
14799 if test "$hardcode_action_F77" = relink; then
14800 # Fast installation is not supported
14801 enable_fast_install=no
14802 elif test "$shlibpath_overrides_runpath" = yes ||
14803 test "$enable_shared" = no; then
14804 # Fast installation is not necessary
14805 enable_fast_install=needless
14810 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14811 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14812 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14815 echo "$as_me:$LINENO: result: yes" >&5
14816 echo "${ECHO_T}yes" >&6
14818 # FIXME - insert some real tests, host_os isn't really good enough
14821 if test -n "$STRIP" ; then
14822 striplib="$STRIP -x"
14823 echo "$as_me:$LINENO: result: yes" >&5
14824 echo "${ECHO_T}yes" >&6
14826 echo "$as_me:$LINENO: result: no" >&5
14827 echo "${ECHO_T}no" >&6
14831 echo "$as_me:$LINENO: result: no" >&5
14832 echo "${ECHO_T}no" >&6
14839 # The else clause should only fire when bootstrapping the
14840 # libtool distribution, otherwise you forgot to ship ltmain.sh
14841 # with your package, and you will get complaints that there are
14842 # no rules to generate ltmain.sh.
14843 if test -f "$ltmain"; then
14844 # See if we are running on zsh, and set the options which allow our commands through
14845 # without removal of \ escapes.
14846 if test -n "${ZSH_VERSION+set}" ; then
14847 setopt NO_GLOB_SUBST
14849 # Now quote all the things that may contain metacharacters while being
14850 # careful not to overquote the AC_SUBSTed values. We take copies of the
14851 # variables and quote the copies for generation of the libtool script.
14852 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14855 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14856 deplibs_check_method reload_flag reload_cmds need_locks \
14857 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14858 lt_cv_sys_global_symbol_to_c_name_address \
14859 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14860 old_postinstall_cmds old_postuninstall_cmds \
14864 lt_prog_compiler_wl_F77 \
14865 lt_prog_compiler_pic_F77 \
14866 lt_prog_compiler_static_F77 \
14867 lt_prog_compiler_no_builtin_flag_F77 \
14868 export_dynamic_flag_spec_F77 \
14869 thread_safe_flag_spec_F77 \
14870 whole_archive_flag_spec_F77 \
14871 enable_shared_with_static_runtimes_F77 \
14872 old_archive_cmds_F77 \
14873 old_archive_from_new_cmds_F77 \
14874 predep_objects_F77 \
14875 postdep_objects_F77 \
14878 compiler_lib_search_path_F77 \
14880 archive_expsym_cmds_F77 \
14881 postinstall_cmds_F77 \
14882 postuninstall_cmds_F77 \
14883 old_archive_from_expsyms_cmds_F77 \
14884 allow_undefined_flag_F77 \
14885 no_undefined_flag_F77 \
14886 export_symbols_cmds_F77 \
14887 hardcode_libdir_flag_spec_F77 \
14888 hardcode_libdir_flag_spec_ld_F77 \
14889 hardcode_libdir_separator_F77 \
14890 hardcode_automatic_F77 \
14892 module_expsym_cmds_F77 \
14893 lt_cv_prog_compiler_c_o_F77 \
14894 exclude_expsyms_F77 \
14895 include_expsyms_F77; do
14898 old_archive_cmds_F77 | \
14899 old_archive_from_new_cmds_F77 | \
14900 archive_cmds_F77 | \
14901 archive_expsym_cmds_F77 | \
14902 module_cmds_F77 | \
14903 module_expsym_cmds_F77 | \
14904 old_archive_from_expsyms_cmds_F77 | \
14905 export_symbols_cmds_F77 | \
14906 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14907 postinstall_cmds | postuninstall_cmds | \
14908 old_postinstall_cmds | old_postuninstall_cmds | \
14909 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14910 # Double-quote double-evaled strings.
14911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14914 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14920 *'\$0 --fallback-echo"')
14921 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14927 cat <<__EOF__ >> "$cfgfile"
14928 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14932 # Shell to use when invoking shell scripts.
14935 # Whether or not to build shared libraries.
14936 build_libtool_libs=$enable_shared
14938 # Whether or not to build static libraries.
14939 build_old_libs=$enable_static
14941 # Whether or not to add -lc for building shared libraries.
14942 build_libtool_need_lc=$archive_cmds_need_lc_F77
14944 # Whether or not to disallow shared libs when runtime libs are static
14945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14947 # Whether or not to optimize for fast installation.
14948 fast_install=$enable_fast_install
14951 host_alias=$host_alias
14954 # An echo program that does not interpret backslashes.
14959 AR_FLAGS=$lt_AR_FLAGS
14964 # A language-specific compiler.
14965 CC=$lt_compiler_F77
14967 # Is the compiler the GNU C compiler?
14973 # The linker used to build libraries.
14976 # Whether we need hard or soft links.
14979 # A BSD-compatible nm program.
14982 # A symbol stripping program
14985 # Used to examine libraries when file_magic_cmd begins "file"
14986 MAGIC_CMD=$MAGIC_CMD
14988 # Used on cygwin: DLL creation program.
14991 # Used on cygwin: object dumper.
14994 # Used on cygwin: assembler.
14997 # The name of the directory that contains temporary libtool files.
15000 # How to create reloadable object files.
15001 reload_flag=$lt_reload_flag
15002 reload_cmds=$lt_reload_cmds
15004 # How to pass a linker flag through the compiler.
15005 wl=$lt_lt_prog_compiler_wl_F77
15007 # Object file suffix (normally "o").
15008 objext="$ac_objext"
15010 # Old archive suffix (normally "a").
15013 # Shared library suffix (normally ".so").
15014 shrext_cmds='$shrext_cmds'
15016 # Executable file suffix (normally "").
15019 # Additional compiler flags for building library objects.
15020 pic_flag=$lt_lt_prog_compiler_pic_F77
15023 # What is the maximum length of a command?
15024 max_cmd_len=$lt_cv_sys_max_cmd_len
15026 # Does compiler simultaneously support -c and -o options?
15027 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15029 # Must we lock files when doing compilation ?
15030 need_locks=$lt_need_locks
15032 # Do we need the lib prefix for modules?
15033 need_lib_prefix=$need_lib_prefix
15035 # Do we need a version for libraries?
15036 need_version=$need_version
15038 # Whether dlopen is supported.
15039 dlopen_support=$enable_dlopen
15041 # Whether dlopen of programs is supported.
15042 dlopen_self=$enable_dlopen_self
15044 # Whether dlopen of statically linked programs is supported.
15045 dlopen_self_static=$enable_dlopen_self_static
15047 # Compiler flag to prevent dynamic linking.
15048 link_static_flag=$lt_lt_prog_compiler_static_F77
15050 # Compiler flag to turn off builtin functions.
15051 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15053 # Compiler flag to allow reflexive dlopens.
15054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15056 # Compiler flag to generate shared objects directly from archives.
15057 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15059 # Compiler flag to generate thread-safe objects.
15060 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15062 # Library versioning type.
15063 version_type=$version_type
15065 # Format of library name prefix.
15066 libname_spec=$lt_libname_spec
15068 # List of archive names. First name is the real one, the rest are links.
15069 # The last name is the one that the linker finds with -lNAME.
15070 library_names_spec=$lt_library_names_spec
15072 # The coded name of the library, if different from the real name.
15073 soname_spec=$lt_soname_spec
15075 # Commands used to build and install an old-style archive.
15077 old_archive_cmds=$lt_old_archive_cmds_F77
15078 old_postinstall_cmds=$lt_old_postinstall_cmds
15079 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15081 # Create an old-style archive from a shared archive.
15082 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15084 # Create a temporary old-style archive to link instead of a shared archive.
15085 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15087 # Commands used to build and install a shared archive.
15088 archive_cmds=$lt_archive_cmds_F77
15089 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15090 postinstall_cmds=$lt_postinstall_cmds
15091 postuninstall_cmds=$lt_postuninstall_cmds
15093 # Commands used to build a loadable module (assumed same as above if empty)
15094 module_cmds=$lt_module_cmds_F77
15095 module_expsym_cmds=$lt_module_expsym_cmds_F77
15097 # Commands to strip libraries.
15098 old_striplib=$lt_old_striplib
15099 striplib=$lt_striplib
15101 # Dependencies to place before the objects being linked to create a
15103 predep_objects=$lt_predep_objects_F77
15105 # Dependencies to place after the objects being linked to create a
15107 postdep_objects=$lt_postdep_objects_F77
15109 # Dependencies to place before the objects being linked to create a
15111 predeps=$lt_predeps_F77
15113 # Dependencies to place after the objects being linked to create a
15115 postdeps=$lt_postdeps_F77
15117 # The library search path used internally by the compiler when linking
15118 # a shared library.
15119 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15121 # Method to check whether dependent libraries are shared objects.
15122 deplibs_check_method=$lt_deplibs_check_method
15124 # Command to use when deplibs_check_method == file_magic.
15125 file_magic_cmd=$lt_file_magic_cmd
15127 # Flag that allows shared libraries with undefined symbols to be built.
15128 allow_undefined_flag=$lt_allow_undefined_flag_F77
15130 # Flag that forces no undefined symbols.
15131 no_undefined_flag=$lt_no_undefined_flag_F77
15133 # Commands used to finish a libtool library installation in a directory.
15134 finish_cmds=$lt_finish_cmds
15136 # Same as above, but a single script fragment to be evaled but not shown.
15137 finish_eval=$lt_finish_eval
15139 # Take the output of nm and produce a listing of raw symbols and C names.
15140 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15142 # Transform the output of nm in a proper C declaration
15143 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15145 # Transform the output of nm in a C name address pair
15146 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15148 # This is the shared library runtime path variable.
15149 runpath_var=$runpath_var
15151 # This is the shared library path variable.
15152 shlibpath_var=$shlibpath_var
15154 # Is shlibpath searched before the hard-coded library search path?
15155 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15157 # How to hardcode a shared library path into an executable.
15158 hardcode_action=$hardcode_action_F77
15160 # Whether we should hardcode library paths into libraries.
15161 hardcode_into_libs=$hardcode_into_libs
15163 # Flag to hardcode \$libdir into a binary during linking.
15164 # This must work even if \$libdir does not exist.
15165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15167 # If ld is used when linking, flag to hardcode \$libdir into
15168 # a binary during linking. This must work even if \$libdir does
15170 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15172 # Whether we need a single -rpath flag with a separated argument.
15173 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15175 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15176 # resulting binary.
15177 hardcode_direct=$hardcode_direct_F77
15179 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15180 # resulting binary.
15181 hardcode_minus_L=$hardcode_minus_L_F77
15183 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15184 # the resulting binary.
15185 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15187 # Set to yes if building a shared library automatically hardcodes DIR into the library
15188 # and all subsequent libraries and executables linked against it.
15189 hardcode_automatic=$hardcode_automatic_F77
15191 # Variables whose values should be saved in libtool wrapper scripts and
15192 # restored at relink time.
15193 variables_saved_for_relink="$variables_saved_for_relink"
15195 # Whether libtool must link a program against all its dependency libraries.
15196 link_all_deplibs=$link_all_deplibs_F77
15198 # Compile-time system search path for libraries
15199 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15201 # Run-time system search path for libraries
15202 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15204 # Fix the shell variable \$srcfile for the compiler.
15205 fix_srcfile_path="$fix_srcfile_path_F77"
15207 # Set to yes if exported symbols are required.
15208 always_export_symbols=$always_export_symbols_F77
15210 # The commands to list exported symbols.
15211 export_symbols_cmds=$lt_export_symbols_cmds_F77
15213 # The commands to extract the exported symbol list from a shared archive.
15214 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15216 # Symbols that should not be listed in the preloaded symbols.
15217 exclude_expsyms=$lt_exclude_expsyms_F77
15219 # Symbols that must always be exported.
15220 include_expsyms=$lt_include_expsyms_F77
15222 # ### END LIBTOOL TAG CONFIG: $tagname
15228 # If there is no Makefile yet, we rely on a make rule to execute
15229 # `config.status --recheck' to rerun these tests and create the
15230 # libtool script then.
15231 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15232 if test -f "$ltmain_in"; then
15233 test -f Makefile && make "$ltmain"
15239 ac_cpp='$CPP $CPPFLAGS'
15240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15252 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15256 # Source file extension for Java test sources.
15259 # Object file extension for compiled Java test sources.
15263 # Code to be used in simple compile tests
15264 lt_simple_compile_test_code="class foo {}\n"
15266 # Code to be used in simple link tests
15267 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15269 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15271 # If no C compiler was specified, use CC.
15274 # Allow CC to be a program name with arguments.
15278 # Allow CC to be a program name with arguments.
15284 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15285 archive_cmds_need_lc_GCJ=no
15288 lt_prog_compiler_no_builtin_flag_GCJ=
15290 if test "$GCC" = yes; then
15291 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15294 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15295 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15296 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 lt_cv_prog_compiler_rtti_exceptions=no
15300 ac_outfile=conftest.$ac_objext
15301 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15302 lt_compiler_flag="-fno-rtti -fno-exceptions"
15303 # Insert the option either (1) after the last *FLAGS variable, or
15304 # (2) before a word containing "conftest.", or (3) at the end.
15305 # Note that $ac_compile itself does not contain backslashes and begins
15306 # with a dollar sign (not a hyphen), so the echo should work correctly.
15307 # The option is referenced via a variable to avoid confusing sed.
15308 lt_compile=`echo "$ac_compile" | $SED \
15309 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15311 -e 's:$: $lt_compiler_flag:'`
15312 (eval echo "\"\$as_me:15312: $lt_compile\"" >&5)
15313 (eval "$lt_compile" 2>conftest.err)
15315 cat conftest.err >&5
15316 echo "$as_me:15316: \$? = $ac_status" >&5
15317 if (exit $ac_status) && test -s "$ac_outfile"; then
15318 # The compiler can only warn and ignore the option if not recognized
15319 # So say no if there are warnings
15320 if test ! -s conftest.err; then
15321 lt_cv_prog_compiler_rtti_exceptions=yes
15327 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15328 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15330 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15331 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15338 lt_prog_compiler_wl_GCJ=
15339 lt_prog_compiler_pic_GCJ=
15340 lt_prog_compiler_static_GCJ=
15342 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15345 if test "$GCC" = yes; then
15346 lt_prog_compiler_wl_GCJ='-Wl,'
15347 lt_prog_compiler_static_GCJ='-static'
15351 # All AIX code is PIC.
15352 if test "$host_cpu" = ia64; then
15353 # AIX 5 now supports IA64 processor
15354 lt_prog_compiler_static_GCJ='-Bstatic'
15359 # FIXME: we need at least 68020 code to build shared libraries, but
15360 # adding the `-m68020' flag to GCC prevents building anything better,
15362 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15365 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15366 # PIC is the default for these OSes.
15369 mingw* | pw32* | os2*)
15370 # This hack is so that the source file can tell whether it is being
15371 # built for inclusion in a dll (and should export symbols for example).
15372 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15375 darwin* | rhapsody*)
15376 # PIC is the default on this platform
15377 # Common symbols not allowed in MH_DYLIB files
15378 lt_prog_compiler_pic_GCJ='-fno-common'
15382 # Just because we use GCC doesn't mean we suddenly get shared libraries
15383 # on systems that don't support them.
15384 lt_prog_compiler_can_build_shared_GCJ=no
15389 if test -d /usr/nec; then
15390 lt_prog_compiler_pic_GCJ=-Kconform_pic
15395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15396 # not for PA HP-UX.
15397 case "$host_cpu" in
15402 lt_prog_compiler_pic_GCJ='-fPIC'
15408 lt_prog_compiler_pic_GCJ='-fPIC'
15412 # PORTME Check for flag to pass linker flags through the system compiler.
15415 lt_prog_compiler_wl_GCJ='-Wl,'
15416 if test "$host_cpu" = ia64; then
15417 # AIX 5 now supports IA64 processor
15418 lt_prog_compiler_static_GCJ='-Bstatic'
15420 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15424 mingw* | pw32* | os2*)
15425 # This hack is so that the source file can tell whether it is being
15426 # built for inclusion in a dll (and should export symbols for example).
15427 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15430 hpux9* | hpux10* | hpux11*)
15431 lt_prog_compiler_wl_GCJ='-Wl,'
15432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15433 # not for PA HP-UX.
15434 case "$host_cpu" in
15439 lt_prog_compiler_pic_GCJ='+Z'
15442 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15443 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15446 irix5* | irix6* | nonstopux*)
15447 lt_prog_compiler_wl_GCJ='-Wl,'
15448 # PIC (with -KPIC) is the default.
15449 lt_prog_compiler_static_GCJ='-non_shared'
15453 lt_prog_compiler_pic_GCJ='-KPIC'
15454 lt_prog_compiler_static_GCJ='-Bstatic'
15460 lt_prog_compiler_wl_GCJ='-Wl,'
15461 lt_prog_compiler_pic_GCJ='-KPIC'
15462 lt_prog_compiler_static_GCJ='-static'
15465 lt_prog_compiler_wl_GCJ='-Wl,'
15466 # All Alpha code is PIC.
15467 lt_prog_compiler_static_GCJ='-non_shared'
15472 osf3* | osf4* | osf5*)
15473 lt_prog_compiler_wl_GCJ='-Wl,'
15474 # All OSF/1 code is PIC.
15475 lt_prog_compiler_static_GCJ='-non_shared'
15479 lt_prog_compiler_pic_GCJ='-Kpic'
15480 lt_prog_compiler_static_GCJ='-dn'
15484 lt_prog_compiler_wl_GCJ='-Wl,'
15485 lt_prog_compiler_pic_GCJ='-KPIC'
15486 lt_prog_compiler_static_GCJ='-Bstatic'
15490 lt_prog_compiler_wl_GCJ='-Qoption ld '
15491 lt_prog_compiler_pic_GCJ='-PIC'
15492 lt_prog_compiler_static_GCJ='-Bstatic'
15495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15496 lt_prog_compiler_wl_GCJ='-Wl,'
15497 lt_prog_compiler_pic_GCJ='-KPIC'
15498 lt_prog_compiler_static_GCJ='-Bstatic'
15502 if test -d /usr/nec ;then
15503 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15504 lt_prog_compiler_static_GCJ='-Bstatic'
15509 lt_prog_compiler_pic_GCJ='-pic'
15510 lt_prog_compiler_static_GCJ='-Bstatic'
15514 lt_prog_compiler_can_build_shared_GCJ=no
15519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15520 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15523 # Check to make sure the PIC flag actually works.
15525 if test -n "$lt_prog_compiler_pic_GCJ"; then
15527 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15528 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15529 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 lt_prog_compiler_pic_works_GCJ=no
15533 ac_outfile=conftest.$ac_objext
15534 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15535 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15536 # Insert the option either (1) after the last *FLAGS variable, or
15537 # (2) before a word containing "conftest.", or (3) at the end.
15538 # Note that $ac_compile itself does not contain backslashes and begins
15539 # with a dollar sign (not a hyphen), so the echo should work correctly.
15540 # The option is referenced via a variable to avoid confusing sed.
15541 lt_compile=`echo "$ac_compile" | $SED \
15542 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15544 -e 's:$: $lt_compiler_flag:'`
15545 (eval echo "\"\$as_me:15545: $lt_compile\"" >&5)
15546 (eval "$lt_compile" 2>conftest.err)
15548 cat conftest.err >&5
15549 echo "$as_me:15549: \$? = $ac_status" >&5
15550 if (exit $ac_status) && test -s "$ac_outfile"; then
15551 # The compiler can only warn and ignore the option if not recognized
15552 # So say no if there are warnings
15553 if test ! -s conftest.err; then
15554 lt_prog_compiler_pic_works_GCJ=yes
15560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15561 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15563 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15564 case $lt_prog_compiler_pic_GCJ in
15566 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15569 lt_prog_compiler_pic_GCJ=
15570 lt_prog_compiler_can_build_shared_GCJ=no
15575 # For platforms which do not support PIC, -DPIC is meaningless:
15577 lt_prog_compiler_pic_GCJ=
15580 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15586 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 lt_cv_prog_compiler_c_o_GCJ=no
15590 $rm -r conftest 2>/dev/null
15594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15596 lt_compiler_flag="-o out/conftest2.$ac_objext"
15597 # Insert the option either (1) after the last *FLAGS variable, or
15598 # (2) before a word containing "conftest.", or (3) at the end.
15599 # Note that $ac_compile itself does not contain backslashes and begins
15600 # with a dollar sign (not a hyphen), so the echo should work correctly.
15601 lt_compile=`echo "$ac_compile" | $SED \
15602 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15604 -e 's:$: $lt_compiler_flag:'`
15605 (eval echo "\"\$as_me:15605: $lt_compile\"" >&5)
15606 (eval "$lt_compile" 2>out/conftest.err)
15608 cat out/conftest.err >&5
15609 echo "$as_me:15609: \$? = $ac_status" >&5
15610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15612 # The compiler can only warn and ignore the option if not recognized
15613 # So say no if there are warnings
15614 if test ! -s out/conftest.err; then
15615 lt_cv_prog_compiler_c_o_GCJ=yes
15620 # SGI C++ compiler will create directory out/ii_files/ for
15621 # template instantiation
15622 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15623 $rm out/* && rmdir out
15629 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15633 hard_links="nottested"
15634 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15635 # do not overwrite the value of need_locks provided by the user
15636 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15637 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15642 ln conftest.a conftest.b 2>&5 || hard_links=no
15643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15644 echo "$as_me:$LINENO: result: $hard_links" >&5
15645 echo "${ECHO_T}$hard_links" >&6
15646 if test "$hard_links" = no; then
15647 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15648 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15655 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15656 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15659 allow_undefined_flag_GCJ=
15660 enable_shared_with_static_runtimes_GCJ=no
15662 archive_expsym_cmds_GCJ=
15663 old_archive_From_new_cmds_GCJ=
15664 old_archive_from_expsyms_cmds_GCJ=
15665 export_dynamic_flag_spec_GCJ=
15666 whole_archive_flag_spec_GCJ=
15667 thread_safe_flag_spec_GCJ=
15668 hardcode_libdir_flag_spec_GCJ=
15669 hardcode_libdir_flag_spec_ld_GCJ=
15670 hardcode_libdir_separator_GCJ=
15671 hardcode_direct_GCJ=no
15672 hardcode_minus_L_GCJ=no
15673 hardcode_shlibpath_var_GCJ=unsupported
15674 link_all_deplibs_GCJ=unknown
15675 hardcode_automatic_GCJ=no
15677 module_expsym_cmds_GCJ=
15678 always_export_symbols_GCJ=no
15679 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15680 # include_expsyms should be a list of space-separated symbols to be *always*
15681 # included in the symbol list
15682 include_expsyms_GCJ=
15683 # exclude_expsyms can be an extended regexp of symbols to exclude
15684 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15685 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15686 # as well as any symbol that contains `d'.
15687 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15689 # platforms (ab)use it in PIC code, but their linkers get confused if
15690 # the symbol is explicitly referenced. Since portable code cannot
15691 # rely on this symbol name, it's probably fine to never include it in
15692 # preloaded symbol tables.
15693 extract_expsyms_cmds=
15696 cygwin* | mingw* | pw32*)
15697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15698 # When not using gcc, we currently assume that we are using
15699 # Microsoft Visual C++.
15700 if test "$GCC" != yes; then
15710 if test "$with_gnu_ld" = yes; then
15711 # If archive_cmds runs LD, not CC, wlarc should be empty
15714 # See if GNU ld supports shared libraries.
15716 aix3* | aix4* | aix5*)
15717 # On AIX/PPC, the GNU linker is very broken
15718 if test "$host_cpu" != ia64; then
15722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15723 *** to be unable to reliably create shared libraries on AIX.
15724 *** Therefore, libtool is disabling shared libraries support. If you
15725 *** really care for shared libraries, you may want to modify your PATH
15726 *** so that a non-GNU linker is found, and then restart.
15733 archive_cmds_GCJ='$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)'
15734 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15735 hardcode_minus_L_GCJ=yes
15737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15738 # that the semantics of dynamic libraries on AmigaOS, at least up
15739 # to version 4, is to share data among multiple programs linked
15740 # with the same dynamic library. Since this doesn't match the
15741 # behavior of shared libraries on other platforms, we can't use
15747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15748 allow_undefined_flag_GCJ=unsupported
15749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15750 # support --undefined. This deserves some investigation. FIXME
15751 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757 cygwin* | mingw* | pw32*)
15758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15759 # as there is no search path for DLLs.
15760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761 allow_undefined_flag_GCJ=unsupported
15762 always_export_symbols_GCJ=no
15763 enable_shared_with_static_runtimes_GCJ=yes
15764 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15767 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15768 # If the export-symbols file already is a .def file (1st line
15769 # is EXPORTS), use it as is; otherwise, prepend...
15770 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15771 cp $export_symbols $output_objdir/$soname.def;
15773 echo EXPORTS > $output_objdir/$soname.def;
15774 cat $export_symbols >> $output_objdir/$soname.def;
15776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15782 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15784 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15787 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15788 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15793 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15798 *** create shared libraries on Solaris systems. Therefore, libtool
15799 *** is disabling shared libraries support. We urge you to upgrade GNU
15800 *** binutils to release 2.9.1 or newer. Another option is to modify
15801 *** your PATH or compiler configuration so that the native linker is
15802 *** used, and then restart.
15805 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15807 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15814 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_direct_GCJ=yes
15817 hardcode_shlibpath_var_GCJ=no
15821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15822 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15823 archive_cmds_GCJ="$tmp_archive_cmds"
15824 supports_anon_versioning=no
15825 case `$LD -v 2>/dev/null` in
15826 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15829 *\ 2.11.*) ;; # other 2.11 versions
15830 *) supports_anon_versioning=yes ;;
15832 if test $supports_anon_versioning = yes; then
15833 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15835 $echo "local: *; };" >> $output_objdir/$libname.ver~
15836 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15838 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15840 link_all_deplibs_GCJ=no
15847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15848 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15849 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15856 if test "$ld_shlibs_GCJ" = yes; then
15857 runpath_var=LD_RUN_PATH
15858 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15859 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15860 # ancient GNU ld didn't support --whole-archive et. al.
15861 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15862 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15864 whole_archive_flag_spec_GCJ=
15868 # PORTME fill in a description of your system's linker (not GNU ld)
15871 allow_undefined_flag_GCJ=unsupported
15872 always_export_symbols_GCJ=yes
15873 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15874 # Note: this linker hardcodes the directories in LIBPATH if there
15875 # are no directories specified by -L.
15876 hardcode_minus_L_GCJ=yes
15877 if test "$GCC" = yes && test -z "$link_static_flag"; then
15878 # Neither direct hardcoding nor static linking is supported with a
15880 hardcode_direct_GCJ=unsupported
15885 if test "$host_cpu" = ia64; then
15886 # On IA64, the linker does run time linking by default, so we don't
15887 # have to do anything special.
15888 aix_use_runtimelinking=no
15889 exp_sym_flag='-Bexport'
15892 # If we're using GNU nm, then we don't want the "-C" option.
15893 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15894 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15895 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15897 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15899 aix_use_runtimelinking=no
15901 # Test if we are trying to use run time linking or normal
15902 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15903 # need to do runtime linking.
15904 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15905 for ld_flag in $LDFLAGS; do
15906 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15907 aix_use_runtimelinking=yes
15913 exp_sym_flag='-bexport'
15914 no_entry_flag='-bnoentry'
15917 # When large executables or shared objects are built, AIX ld can
15918 # have problems creating the table of contents. If linking a library
15919 # or program results in "error TOC overflow" add -mminimal-toc to
15920 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15921 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15923 archive_cmds_GCJ=''
15924 hardcode_direct_GCJ=yes
15925 hardcode_libdir_separator_GCJ=':'
15926 link_all_deplibs_GCJ=yes
15928 if test "$GCC" = yes; then
15929 case $host_os in aix4.012|aix4.012.*)
15930 # We only want to do this on AIX 4.2 and lower, the check
15931 # below for broken collect2 doesn't work under 4.3+
15932 collect2name=`${CC} -print-prog-name=collect2`
15933 if test -f "$collect2name" && \
15934 strings "$collect2name" | grep resolve_lib_name >/dev/null
15936 # We have reworked collect2
15937 hardcode_direct_GCJ=yes
15939 # We have old collect2
15940 hardcode_direct_GCJ=unsupported
15941 # It fails to find uninstalled libraries when the uninstalled
15942 # path is not listed in the libpath. Setting hardcode_minus_L
15943 # to unsupported forces relinking
15944 hardcode_minus_L_GCJ=yes
15945 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15946 hardcode_libdir_separator_GCJ=
15949 shared_flag='-shared'
15952 if test "$host_cpu" = ia64; then
15953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15954 # chokes on -Wl,-G. The following line is correct:
15957 if test "$aix_use_runtimelinking" = yes; then
15958 shared_flag='${wl}-G'
15960 shared_flag='${wl}-bM:SRE'
15965 # It seems that -bexpall does not export symbols beginning with
15966 # underscore (_), so it is better to generate a list of symbols to export.
15967 always_export_symbols_GCJ=yes
15968 if test "$aix_use_runtimelinking" = yes; then
15969 # Warning - without using the other runtime loading flags (-brtl),
15970 # -berok will link without error, but may produce a broken library.
15971 allow_undefined_flag_GCJ='-berok'
15972 # Determine the default libpath from the value encoded in an empty executable.
15973 cat >conftest.$ac_ext <<_ACEOF
15974 #line $LINENO "configure"
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15991 (eval $ac_link) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
15995 { ac_try='test -s conftest$ac_exeext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16004 # Check for a 64-bit object if we didn't find anything.
16005 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16015 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16016 archive_expsym_cmds_GCJ="\$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"
16018 if test "$host_cpu" = ia64; then
16019 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16020 allow_undefined_flag_GCJ="-z nodefs"
16021 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16023 # Determine the default libpath from the value encoded in an empty executable.
16024 cat >conftest.$ac_ext <<_ACEOF
16025 #line $LINENO "configure"
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16042 (eval $ac_link) 2>&5
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } &&
16046 { ac_try='test -s conftest$ac_exeext'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16055 # Check for a 64-bit object if we didn't find anything.
16056 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16066 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16067 # Warning - without using the other run time loading flags,
16068 # -berok will link without error, but may produce a broken library.
16069 no_undefined_flag_GCJ=' ${wl}-bernotok'
16070 allow_undefined_flag_GCJ=' ${wl}-berok'
16071 # -bexpall does not export symbols beginning with underscore (_)
16072 always_export_symbols_GCJ=yes
16073 # Exported symbols can be pulled into shared objects from archives
16074 whole_archive_flag_spec_GCJ=' '
16075 archive_cmds_need_lc_GCJ=yes
16076 # This is similar to how AIX traditionally builds it's shared libraries.
16077 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16083 archive_cmds_GCJ='$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)'
16084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16085 hardcode_minus_L_GCJ=yes
16086 # see comment about different semantics on the GNU ld section
16091 export_dynamic_flag_spec_GCJ=-rdynamic
16094 cygwin* | mingw* | pw32*)
16095 # When not using gcc, we currently assume that we are using
16096 # Microsoft Visual C++.
16097 # hardcode_libdir_flag_spec is actually meaningless, as there is
16098 # no search path for DLLs.
16099 hardcode_libdir_flag_spec_GCJ=' '
16100 allow_undefined_flag_GCJ=unsupported
16101 # Tell ltmain to make .lib files, not .a files.
16103 # Tell ltmain to make .dll files, not .so files.
16105 # FIXME: Setting linknames here is a bad hack.
16106 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16107 # The linker will automatically build a .lib file if we build a DLL.
16108 old_archive_From_new_cmds_GCJ='true'
16109 # FIXME: Should let the user specify the lib program.
16110 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16111 fix_srcfile_path='`cygpath -w "$srcfile"`'
16112 enable_shared_with_static_runtimes_GCJ=yes
16115 darwin* | rhapsody*)
16116 if test "$GXX" = yes ; then
16117 archive_cmds_need_lc_GCJ=no
16119 rhapsody* | darwin1.[012])
16120 allow_undefined_flag_GCJ='-undefined suppress'
16123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16124 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16126 case ${MACOSX_DEPLOYMENT_TARGET} in
16128 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16131 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16137 lt_int_apple_cc_single_mod=no
16138 output_verbose_link_cmd='echo'
16139 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16140 lt_int_apple_cc_single_mod=yes
16142 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16143 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16145 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16147 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16149 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16150 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16152 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16154 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16155 hardcode_direct_GCJ=no
16156 hardcode_automatic_GCJ=yes
16157 hardcode_shlibpath_var_GCJ=unsupported
16158 whole_archive_flag_spec_GCJ='-all_load $convenience'
16159 link_all_deplibs_GCJ=yes
16166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16168 hardcode_shlibpath_var_GCJ=no
16175 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16176 # support. Future versions do this automatically, but an explicit c++rt0.o
16177 # does not break anything, and helps significantly (at the cost of a little
16180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16181 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16182 hardcode_direct_GCJ=yes
16183 hardcode_shlibpath_var_GCJ=no
16186 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16188 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_direct_GCJ=yes
16190 hardcode_minus_L_GCJ=yes
16191 hardcode_shlibpath_var_GCJ=no
16194 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16195 freebsd* | kfreebsd*-gnu)
16196 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16197 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16198 hardcode_direct_GCJ=yes
16199 hardcode_shlibpath_var_GCJ=no
16203 if test "$GCC" = yes; then
16204 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16206 archive_cmds_GCJ='$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'
16208 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16209 hardcode_libdir_separator_GCJ=:
16210 hardcode_direct_GCJ=yes
16212 # hardcode_minus_L: Not really in the search PATH,
16213 # but as the default location of the library.
16214 hardcode_minus_L_GCJ=yes
16215 export_dynamic_flag_spec_GCJ='${wl}-E'
16219 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16220 case "$host_cpu" in
16222 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16229 case "$host_cpu" in
16231 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16234 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16238 if test "$with_gnu_ld" = no; then
16239 case "$host_cpu" in
16241 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16242 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16243 hardcode_libdir_separator_GCJ=:
16244 hardcode_direct_GCJ=no
16245 hardcode_shlibpath_var_GCJ=no
16248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16249 hardcode_direct_GCJ=no
16250 hardcode_shlibpath_var_GCJ=no
16252 # hardcode_minus_L: Not really in the search PATH,
16253 # but as the default location of the library.
16254 hardcode_minus_L_GCJ=yes
16257 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16258 hardcode_libdir_separator_GCJ=:
16259 hardcode_direct_GCJ=yes
16260 export_dynamic_flag_spec_GCJ='${wl}-E'
16262 # hardcode_minus_L: Not really in the search PATH,
16263 # but as the default location of the library.
16264 hardcode_minus_L_GCJ=yes
16270 irix5* | irix6* | nonstopux*)
16271 if test "$GCC" = yes; then
16272 archive_cmds_GCJ='$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'
16274 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16275 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16277 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16278 hardcode_libdir_separator_GCJ=:
16279 link_all_deplibs_GCJ=yes
16282 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16284 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16286 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16288 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16289 hardcode_direct_GCJ=yes
16290 hardcode_shlibpath_var_GCJ=no
16294 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16295 hardcode_direct_GCJ=yes
16296 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16297 hardcode_libdir_separator_GCJ=:
16298 hardcode_shlibpath_var_GCJ=no
16302 hardcode_direct_GCJ=yes
16303 hardcode_shlibpath_var_GCJ=no
16304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16305 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16307 export_dynamic_flag_spec_GCJ='${wl}-E'
16310 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16311 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16312 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16315 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16316 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324 hardcode_minus_L_GCJ=yes
16325 allow_undefined_flag_GCJ=unsupported
16326 archive_cmds_GCJ='$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'
16327 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16331 if test "$GCC" = yes; then
16332 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16333 archive_cmds_GCJ='$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'
16335 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16336 archive_cmds_GCJ='$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'
16338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16339 hardcode_libdir_separator_GCJ=:
16342 osf4* | osf5*) # as osf3* with the addition of -msym flag
16343 if test "$GCC" = yes; then
16344 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16345 archive_cmds_GCJ='$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'
16346 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16348 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16349 archive_cmds_GCJ='$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'
16350 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16351 $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'
16353 # Both c and cxx compiler support -rpath directly
16354 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16356 hardcode_libdir_separator_GCJ=:
16360 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16361 hardcode_shlibpath_var_GCJ=no
16362 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16363 runpath_var=LD_RUN_PATH
16364 hardcode_runpath_var=yes
16368 no_undefined_flag_GCJ=' -z text'
16369 if test "$GCC" = yes; then
16370 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16371 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16372 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16374 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16375 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16379 hardcode_shlibpath_var_GCJ=no
16381 solaris2.[0-5] | solaris2.[0-5].*) ;;
16382 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16383 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16385 link_all_deplibs_GCJ=yes
16389 if test "x$host_vendor" = xsequent; then
16390 # Use $CC to link under sequent, because it throws in some extra .o
16391 # files that make .init and .fini sections work.
16392 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16394 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16397 hardcode_direct_GCJ=yes
16398 hardcode_minus_L_GCJ=yes
16399 hardcode_shlibpath_var_GCJ=no
16403 case $host_vendor in
16405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16406 hardcode_direct_GCJ=yes # is this really true???
16409 ## LD is ld it makes a PLAMLIB
16410 ## CC just makes a GrossModule.
16411 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16412 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16413 hardcode_direct_GCJ=no
16416 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16417 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16420 runpath_var='LD_RUN_PATH'
16421 hardcode_shlibpath_var_GCJ=no
16425 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16426 hardcode_shlibpath_var_GCJ=no
16427 export_dynamic_flag_spec_GCJ='-Bexport'
16431 if test -d /usr/nec; then
16432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16433 hardcode_shlibpath_var_GCJ=no
16434 runpath_var=LD_RUN_PATH
16435 hardcode_runpath_var=yes
16441 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16442 hardcode_direct_GCJ=yes
16443 hardcode_minus_L_GCJ=no
16444 hardcode_shlibpath_var_GCJ=no
16445 hardcode_runpath_var=yes
16446 runpath_var=LD_RUN_PATH
16449 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16450 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16451 if test "$GCC" = yes; then
16452 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16456 runpath_var='LD_RUN_PATH'
16457 hardcode_shlibpath_var_GCJ=no
16461 no_undefined_flag_GCJ=' -z text'
16462 # $CC -shared without GNU ld will not create a library from C++
16463 # object files and a static libstdc++, better avoid it by now
16464 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16467 hardcode_libdir_flag_spec_GCJ=
16468 hardcode_shlibpath_var_GCJ=no
16469 runpath_var='LD_RUN_PATH'
16473 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16475 hardcode_shlibpath_var_GCJ=no
16484 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16485 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16486 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16488 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16489 if test "$GCC" = yes; then
16490 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16494 # Do we need to explicitly link libc?
16496 case "x$archive_cmds_need_lc_GCJ" in
16498 # Assume -lc should be added
16499 archive_cmds_need_lc_GCJ=yes
16501 if test "$enable_shared" = yes && test "$GCC" = yes; then
16502 case $archive_cmds_GCJ in
16504 # FIXME: we may have to deal with multi-command sequences.
16507 # Test whether the compiler implicitly links with -lc since on some
16508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16509 # to ld, don't add -lc before -lgcc.
16510 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16511 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16513 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16516 (eval $ac_compile) 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); } 2>conftest.err; then
16522 libobjs=conftest.$ac_objext
16524 wl=$lt_prog_compiler_wl_GCJ
16530 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16531 allow_undefined_flag_GCJ=
16532 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16533 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }
16538 archive_cmds_need_lc_GCJ=no
16540 archive_cmds_need_lc_GCJ=yes
16542 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16544 cat conftest.err 1>&5
16547 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16548 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16555 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16556 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16557 library_names_spec=
16558 libname_spec='lib$name'
16562 postuninstall_cmds=
16566 shlibpath_overrides_runpath=unknown
16568 dynamic_linker="$host_os ld.so"
16569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16570 if test "$GCC" = yes; then
16571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16572 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16573 # if the path contains ";" then we assume it to be the separator
16574 # otherwise default to the standard path separator (i.e. ":") - it is
16575 # assumed that no part of a normal pathname contains ";" but that should
16576 # okay in the real world where ";" in dirpaths is itself problematic.
16577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16582 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16584 need_lib_prefix=unknown
16585 hardcode_into_libs=no
16587 # when you set need_version to no, make sure it does not cause -set_version
16588 # flags to be left without arguments
16589 need_version=unknown
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16595 shlibpath_var=LIBPATH
16597 # AIX 3 has no versioning support, so we append a major version to the name.
16598 soname_spec='${libname}${release}${shared_ext}$major'
16605 hardcode_into_libs=yes
16606 if test "$host_cpu" = ia64; then
16607 # AIX 5 supports IA64
16608 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16609 shlibpath_var=LD_LIBRARY_PATH
16611 # With GCC up to 2.95.x, collect2 would create an import file
16612 # for dependence libraries. The import file would start with
16613 # the line `#! .'. This would cause the generated library to
16614 # depend on `.', always an invalid library. This was fixed in
16615 # development snapshots of GCC prior to 3.0.
16617 aix4 | aix4.[01] | aix4.[01].*)
16618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16620 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16623 can_build_shared=no
16627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16628 # soname into executable. Probably we can add versioning support to
16629 # collect2, so additional links can be useful in future.
16630 if test "$aix_use_runtimelinking" = yes; then
16631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16632 # instead of lib<name>.a to let people know that these are not
16633 # typical AIX shared libraries.
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16636 # We preserve .a as extension for shared libraries through AIX4.2
16637 # and later when we are not doing run time linking.
16638 library_names_spec='${libname}${release}.a $libname.a'
16639 soname_spec='${libname}${release}${shared_ext}$major'
16641 shlibpath_var=LIBPATH
16646 library_names_spec='$libname.ixlibrary $libname.a'
16647 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16648 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'
16652 library_names_spec='${libname}${shared_ext}'
16653 dynamic_linker="$host_os ld.so"
16654 shlibpath_var=LIBRARY_PATH
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16665 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16666 # the default ld.so.conf also contains /usr/contrib/lib and
16667 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16668 # libtool to hard-code these into programs
16671 cygwin* | mingw* | pw32*)
16672 version_type=windows
16677 case $GCC,$host_os in
16678 yes,cygwin* | yes,mingw* | yes,pw32*)
16679 library_names_spec='$libname.dll.a'
16680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16681 postinstall_cmds='base_file=`basename \${file}`~
16682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16683 dldir=$destdir/`dirname \$dlpath`~
16684 test -d \$dldir || mkdir -p \$dldir~
16685 $install_prog $dir/$dlname \$dldir/$dlname'
16686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16687 dlpath=$dir/\$dldll~
16689 shlibpath_overrides_runpath=yes
16693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16694 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16695 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16698 # MinGW DLLs use traditional 'lib' prefix
16699 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16701 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16702 # It is most probably a Windows format PATH printed by
16703 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16704 # path with ; separators, and with drive letters. We can handle the
16705 # drive letters (cygwin fileutils understands them), so leave them,
16706 # especially as we might pass files found there to a mingw objdump,
16707 # which wouldn't understand a cygwinified path. Ahh.
16708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16714 # pw32 DLLs use 'pw' prefix rather than 'lib'
16715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16721 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16724 dynamic_linker='Win32 ld.exe'
16725 # FIXME: first we should search . and the directory the executable is in
16729 darwin* | rhapsody*)
16730 dynamic_linker="$host_os dyld"
16731 version_type=darwin
16734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16735 soname_spec='${libname}${release}${major}$shared_ext'
16736 shlibpath_overrides_runpath=yes
16737 shlibpath_var=DYLD_LIBRARY_PATH
16738 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16740 if test "$GCC" = yes; then
16741 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16743 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 shlibpath_var=LD_LIBRARY_PATH
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 shlibpath_var=LD_LIBRARY_PATH
16768 shlibpath_overrides_runpath=no
16769 hardcode_into_libs=yes
16770 dynamic_linker='GNU ld.so'
16774 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16775 version_type=freebsd-$objformat
16776 case $version_type in
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16787 shlibpath_var=LD_LIBRARY_PATH
16790 shlibpath_overrides_runpath=yes
16792 freebsd3.01* | freebsdelf3.01*)
16793 shlibpath_overrides_runpath=yes
16794 hardcode_into_libs=yes
16797 shlibpath_overrides_runpath=no
16798 hardcode_into_libs=yes
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 hardcode_into_libs=yes
16813 hpux9* | hpux10* | hpux11*)
16814 # Give a soname corresponding to the major version so that dld.sl refuses to
16815 # link against other versions.
16819 case "$host_cpu" in
16822 hardcode_into_libs=yes
16823 dynamic_linker="$host_os dld.so"
16824 shlibpath_var=LD_LIBRARY_PATH
16825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 if test "X$HPUX_IA64_MODE" = X32; then
16829 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16831 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16837 hardcode_into_libs=yes
16838 dynamic_linker="$host_os dld.sl"
16839 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16848 dynamic_linker="$host_os dld.sl"
16849 shlibpath_var=SHLIB_PATH
16850 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16855 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16856 postinstall_cmds='chmod 555 $lib'
16859 irix5* | irix6* | nonstopux*)
16861 nonstopux*) version_type=nonstopux ;;
16863 if test "$lt_cv_prog_gnu_ld" = yes; then
16871 soname_spec='${libname}${release}${shared_ext}$major'
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16874 irix5* | nonstopux*)
16875 libsuff= shlibsuff=
16878 case $LD in # libtool.m4 will add one of these switches to LD
16879 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16880 libsuff= shlibsuff= libmagic=32-bit;;
16881 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16882 libsuff=32 shlibsuff=N32 libmagic=N32;;
16883 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16884 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16885 *) libsuff= shlibsuff= libmagic=never-match;;
16889 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16890 shlibpath_overrides_runpath=no
16891 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16892 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16893 hardcode_into_libs=yes
16896 # No shared lib support for Linux oldld, aout, or coff.
16897 linux*oldld* | linux*aout* | linux*coff*)
16901 # This must be Linux ELF.
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907 soname_spec='${libname}${release}${shared_ext}$major'
16908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16909 shlibpath_var=LD_LIBRARY_PATH
16910 shlibpath_overrides_runpath=no
16911 # This implies no fast_install, which is unacceptable.
16912 # Some rework will be needed to allow for fast_install
16913 # before this can be enabled.
16914 hardcode_into_libs=yes
16916 # Append ld.so.conf contents to the search path
16917 if test -f /etc/ld.so.conf; then
16918 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16922 # We used to test for /lib/ld.so.1 and disable shared libraries on
16923 # powerpc, because MkLinux only supported shared libraries with the
16924 # GNU dynamic linker. Since this was broken with cross compilers,
16925 # most powerpc-linux boxes support dynamic linking these days and
16926 # people can always --disable-shared, the test was removed, and we
16927 # assume the GNU/Linux dynamic linker is in use.
16928 dynamic_linker='GNU/Linux ld.so'
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16936 soname_spec='${libname}${release}${shared_ext}$major'
16937 shlibpath_var=LD_LIBRARY_PATH
16938 shlibpath_overrides_runpath=no
16939 hardcode_into_libs=yes
16940 dynamic_linker='NetBSD ld.elf_so'
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16948 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LD_LIBRARY_PATH
16950 shlibpath_overrides_runpath=no
16951 hardcode_into_libs=yes
16952 dynamic_linker='GNU ld.so'
16959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16962 dynamic_linker='NetBSD (a.out) ld.so'
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 dynamic_linker='NetBSD ld.elf_so'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 shlibpath_overrides_runpath=yes
16970 hardcode_into_libs=yes
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 shlibpath_overrides_runpath=yes
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16985 soname_spec='${libname}${release}${shared_ext}$major'
16986 shlibpath_var=LD_LIBRARY_PATH
16987 shlibpath_overrides_runpath=yes
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16999 openbsd2.[89] | openbsd2.[89].*)
17000 shlibpath_overrides_runpath=no
17003 shlibpath_overrides_runpath=yes
17007 shlibpath_overrides_runpath=yes
17012 libname_spec='$name'
17015 library_names_spec='$libname${shared_ext} $libname.a'
17016 dynamic_linker='OS/2 ld.exe'
17017 shlibpath_var=LIBPATH
17020 osf3* | osf4* | osf5*)
17024 soname_spec='${libname}${release}${shared_ext}$major'
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026 shlibpath_var=LD_LIBRARY_PATH
17027 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17028 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 shlibpath_var=LD_LIBRARY_PATH
17042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 shlibpath_var=LD_LIBRARY_PATH
17045 shlibpath_overrides_runpath=yes
17046 hardcode_into_libs=yes
17047 # ldd complains unless libraries are executable
17048 postinstall_cmds='chmod +x $lib'
17053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17055 shlibpath_var=LD_LIBRARY_PATH
17056 shlibpath_overrides_runpath=yes
17057 if test "$with_gnu_ld" = yes; then
17063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066 soname_spec='${libname}${release}${shared_ext}$major'
17067 shlibpath_var=LD_LIBRARY_PATH
17068 case $host_vendor in
17070 shlibpath_overrides_runpath=no
17072 export_dynamic_flag_spec='${wl}-Blargedynsym'
17073 runpath_var=LD_RUN_PATH
17081 shlibpath_overrides_runpath=no
17082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17088 if test -d /usr/nec ;then
17090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17091 soname_spec='$libname${shared_ext}.$major'
17092 shlibpath_var=LD_LIBRARY_PATH
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 shlibpath_var=LD_LIBRARY_PATH
17107 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17108 echo "${ECHO_T}$dynamic_linker" >&6
17109 test "$dynamic_linker" = no && can_build_shared=no
17111 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17112 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17113 hardcode_action_GCJ=
17114 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17115 test -n "$runpath_var GCJ" || \
17116 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17118 # We can hardcode non-existant directories.
17119 if test "$hardcode_direct_GCJ" != no &&
17120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17121 # have to relink, otherwise we might link with an installed library
17122 # when we should be linking with a yet-to-be-installed one
17123 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17124 test "$hardcode_minus_L_GCJ" != no; then
17125 # Linking always hardcodes the temporary library directory.
17126 hardcode_action_GCJ=relink
17128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17129 hardcode_action_GCJ=immediate
17132 # We cannot hardcode anything, or else we can only hardcode existing
17134 hardcode_action_GCJ=unsupported
17136 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17137 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17139 if test "$hardcode_action_GCJ" = relink; then
17140 # Fast installation is not supported
17141 enable_fast_install=no
17142 elif test "$shlibpath_overrides_runpath" = yes ||
17143 test "$enable_shared" = no; then
17144 # Fast installation is not necessary
17145 enable_fast_install=needless
17150 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17151 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17152 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17153 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17154 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17155 echo "$as_me:$LINENO: result: yes" >&5
17156 echo "${ECHO_T}yes" >&6
17158 # FIXME - insert some real tests, host_os isn't really good enough
17161 if test -n "$STRIP" ; then
17162 striplib="$STRIP -x"
17163 echo "$as_me:$LINENO: result: yes" >&5
17164 echo "${ECHO_T}yes" >&6
17166 echo "$as_me:$LINENO: result: no" >&5
17167 echo "${ECHO_T}no" >&6
17171 echo "$as_me:$LINENO: result: no" >&5
17172 echo "${ECHO_T}no" >&6
17177 if test "x$enable_dlopen" != xyes; then
17178 enable_dlopen=unknown
17179 enable_dlopen_self=unknown
17180 enable_dlopen_self_static=unknown
17187 lt_cv_dlopen="load_add_on"
17189 lt_cv_dlopen_self=yes
17193 lt_cv_dlopen="LoadLibrary"
17198 lt_cv_dlopen="dlopen"
17203 # if libdl is installed we need to link against it
17204 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 ac_check_lib_save_LIBS=$LIBS
17211 cat >conftest.$ac_ext <<_ACEOF
17212 #line $LINENO "configure"
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17219 /* Override any gcc2 internal prototype to avoid an error. */
17223 /* We use char because int might match the return type of a gcc2
17224 builtin and then its argument prototype would still apply. */
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try='test -s conftest$ac_exeext'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
17246 ac_cv_lib_dl_dlopen=yes
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 ac_cv_lib_dl_dlopen=no
17253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17254 LIBS=$ac_check_lib_save_LIBS
17256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17258 if test $ac_cv_lib_dl_dlopen = yes; then
17259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17262 lt_cv_dlopen="dyld"
17264 lt_cv_dlopen_self=yes
17271 echo "$as_me:$LINENO: checking for shl_load" >&5
17272 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17273 if test "${ac_cv_func_shl_load+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17277 #line $LINENO "configure"
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 /* System header to define __stub macros and hopefully few prototypes,
17284 which can conflict with char shl_load (); below.
17285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17286 <limits.h> exists even on freestanding compilers. */
17288 # include <limits.h>
17290 # include <assert.h>
17292 /* Override any gcc2 internal prototype to avoid an error. */
17297 /* We use char because int might match the return type of a gcc2
17298 builtin and then its argument prototype would still apply. */
17300 /* The GNU C library defines this for functions which it implements
17301 to always fail with ENOSYS. Some functions are actually named
17302 something starting with __ and the normal name is an alias. */
17303 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17306 char (*f) () = shl_load;
17315 return f != shl_load;
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17322 (eval $ac_link) 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try='test -s conftest$ac_exeext'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_cv_func_shl_load=yes
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17337 ac_cv_func_shl_load=no
17339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17341 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17342 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17343 if test $ac_cv_func_shl_load = yes; then
17344 lt_cv_dlopen="shl_load"
17346 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17347 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17348 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17349 echo $ECHO_N "(cached) $ECHO_C" >&6
17351 ac_check_lib_save_LIBS=$LIBS
17353 cat >conftest.$ac_ext <<_ACEOF
17354 #line $LINENO "configure"
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17361 /* Override any gcc2 internal prototype to avoid an error. */
17365 /* We use char because int might match the return type of a gcc2
17366 builtin and then its argument prototype would still apply. */
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17378 (eval $ac_link) 2>&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
17382 { ac_try='test -s conftest$ac_exeext'
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17388 ac_cv_lib_dld_shl_load=yes
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17393 ac_cv_lib_dld_shl_load=no
17395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17396 LIBS=$ac_check_lib_save_LIBS
17398 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17399 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17400 if test $ac_cv_lib_dld_shl_load = yes; then
17401 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17403 echo "$as_me:$LINENO: checking for dlopen" >&5
17404 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17405 if test "${ac_cv_func_dlopen+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 cat >conftest.$ac_ext <<_ACEOF
17409 #line $LINENO "configure"
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 /* System header to define __stub macros and hopefully few prototypes,
17416 which can conflict with char dlopen (); below.
17417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17418 <limits.h> exists even on freestanding compilers. */
17420 # include <limits.h>
17422 # include <assert.h>
17424 /* Override any gcc2 internal prototype to avoid an error. */
17429 /* We use char because int might match the return type of a gcc2
17430 builtin and then its argument prototype would still apply. */
17432 /* The GNU C library defines this for functions which it implements
17433 to always fail with ENOSYS. Some functions are actually named
17434 something starting with __ and the normal name is an alias. */
17435 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17438 char (*f) () = dlopen;
17447 return f != dlopen;
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454 (eval $ac_link) 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 ac_cv_func_dlopen=yes
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_func_dlopen=no
17471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17473 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17474 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17475 if test $ac_cv_func_dlopen = yes; then
17476 lt_cv_dlopen="dlopen"
17478 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17481 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 ac_check_lib_save_LIBS=$LIBS
17485 cat >conftest.$ac_ext <<_ACEOF
17486 #line $LINENO "configure"
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17493 /* Override any gcc2 internal prototype to avoid an error. */
17497 /* We use char because int might match the return type of a gcc2
17498 builtin and then its argument prototype would still apply. */
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510 (eval $ac_link) 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try='test -s conftest$ac_exeext'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_cv_lib_dl_dlopen=yes
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_cv_lib_dl_dlopen=no
17527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17528 LIBS=$ac_check_lib_save_LIBS
17530 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17532 if test $ac_cv_lib_dl_dlopen = yes; then
17533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17535 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17536 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17537 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17540 ac_check_lib_save_LIBS=$LIBS
17541 LIBS="-lsvld $LIBS"
17542 cat >conftest.$ac_ext <<_ACEOF
17543 #line $LINENO "configure"
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17550 /* Override any gcc2 internal prototype to avoid an error. */
17554 /* We use char because int might match the return type of a gcc2
17555 builtin and then its argument prototype would still apply. */
17565 rm -f conftest.$ac_objext conftest$ac_exeext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17567 (eval $ac_link) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_cv_lib_svld_dlopen=yes
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_cv_lib_svld_dlopen=no
17584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17585 LIBS=$ac_check_lib_save_LIBS
17587 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17588 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17589 if test $ac_cv_lib_svld_dlopen = yes; then
17590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17592 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17593 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17594 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 ac_check_lib_save_LIBS=$LIBS
17599 cat >conftest.$ac_ext <<_ACEOF
17600 #line $LINENO "configure"
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17607 /* Override any gcc2 internal prototype to avoid an error. */
17611 /* We use char because int might match the return type of a gcc2
17612 builtin and then its argument prototype would still apply. */
17622 rm -f conftest.$ac_objext conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624 (eval $ac_link) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_lib_dld_dld_link=yes
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_cv_lib_dld_dld_link=no
17641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17642 LIBS=$ac_check_lib_save_LIBS
17644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17645 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17646 if test $ac_cv_lib_dld_dld_link = yes; then
17647 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17668 if test "x$lt_cv_dlopen" != xno; then
17674 case $lt_cv_dlopen in
17676 save_CPPFLAGS="$CPPFLAGS"
17677 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17679 save_LDFLAGS="$LDFLAGS"
17680 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17683 LIBS="$lt_cv_dlopen_libs $LIBS"
17685 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17686 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17687 if test "${lt_cv_dlopen_self+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 if test "$cross_compiling" = yes; then :
17691 lt_cv_dlopen_self=cross
17693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17694 lt_status=$lt_dlunknown
17695 cat > conftest.$ac_ext <<EOF
17696 #line 17696 "configure"
17697 #include "confdefs.h"
17706 # define LT_DLGLOBAL RTLD_GLOBAL
17709 # define LT_DLGLOBAL DL_GLOBAL
17711 # define LT_DLGLOBAL 0
17715 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17716 find out it does not work in some platform. */
17717 #ifndef LT_DLLAZY_OR_NOW
17719 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17722 # define LT_DLLAZY_OR_NOW DL_LAZY
17725 # define LT_DLLAZY_OR_NOW RTLD_NOW
17728 # define LT_DLLAZY_OR_NOW DL_NOW
17730 # define LT_DLLAZY_OR_NOW 0
17738 extern "C" void exit (int);
17741 void fnord() { int i=42;}
17744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17745 int status = $lt_dlunknown;
17749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17751 /* dlclose (self); */
17757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17758 (eval $ac_link) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17762 (./conftest; exit; ) 2>/dev/null
17764 case x$lt_status in
17765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17767 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17770 # compilation failed
17771 lt_cv_dlopen_self=no
17778 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17781 if test "x$lt_cv_dlopen_self" = xyes; then
17782 LDFLAGS="$LDFLAGS $link_static_flag"
17783 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17785 if test "${lt_cv_dlopen_self_static+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 if test "$cross_compiling" = yes; then :
17789 lt_cv_dlopen_self_static=cross
17791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17792 lt_status=$lt_dlunknown
17793 cat > conftest.$ac_ext <<EOF
17794 #line 17794 "configure"
17795 #include "confdefs.h"
17804 # define LT_DLGLOBAL RTLD_GLOBAL
17807 # define LT_DLGLOBAL DL_GLOBAL
17809 # define LT_DLGLOBAL 0
17813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17814 find out it does not work in some platform. */
17815 #ifndef LT_DLLAZY_OR_NOW
17817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17820 # define LT_DLLAZY_OR_NOW DL_LAZY
17823 # define LT_DLLAZY_OR_NOW RTLD_NOW
17826 # define LT_DLLAZY_OR_NOW DL_NOW
17828 # define LT_DLLAZY_OR_NOW 0
17836 extern "C" void exit (int);
17839 void fnord() { int i=42;}
17842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17843 int status = $lt_dlunknown;
17847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17848 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17849 /* dlclose (self); */
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856 (eval $ac_link) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17860 (./conftest; exit; ) 2>/dev/null
17862 case x$lt_status in
17863 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17864 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17865 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17868 # compilation failed
17869 lt_cv_dlopen_self_static=no
17876 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17877 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17880 CPPFLAGS="$save_CPPFLAGS"
17881 LDFLAGS="$save_LDFLAGS"
17886 case $lt_cv_dlopen_self in
17887 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17888 *) enable_dlopen_self=unknown ;;
17891 case $lt_cv_dlopen_self_static in
17892 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17893 *) enable_dlopen_self_static=unknown ;;
17898 # The else clause should only fire when bootstrapping the
17899 # libtool distribution, otherwise you forgot to ship ltmain.sh
17900 # with your package, and you will get complaints that there are
17901 # no rules to generate ltmain.sh.
17902 if test -f "$ltmain"; then
17903 # See if we are running on zsh, and set the options which allow our commands through
17904 # without removal of \ escapes.
17905 if test -n "${ZSH_VERSION+set}" ; then
17906 setopt NO_GLOB_SUBST
17908 # Now quote all the things that may contain metacharacters while being
17909 # careful not to overquote the AC_SUBSTed values. We take copies of the
17910 # variables and quote the copies for generation of the libtool script.
17911 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17913 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17914 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17915 deplibs_check_method reload_flag reload_cmds need_locks \
17916 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17917 lt_cv_sys_global_symbol_to_c_name_address \
17918 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17919 old_postinstall_cmds old_postuninstall_cmds \
17923 lt_prog_compiler_wl_GCJ \
17924 lt_prog_compiler_pic_GCJ \
17925 lt_prog_compiler_static_GCJ \
17926 lt_prog_compiler_no_builtin_flag_GCJ \
17927 export_dynamic_flag_spec_GCJ \
17928 thread_safe_flag_spec_GCJ \
17929 whole_archive_flag_spec_GCJ \
17930 enable_shared_with_static_runtimes_GCJ \
17931 old_archive_cmds_GCJ \
17932 old_archive_from_new_cmds_GCJ \
17933 predep_objects_GCJ \
17934 postdep_objects_GCJ \
17937 compiler_lib_search_path_GCJ \
17939 archive_expsym_cmds_GCJ \
17940 postinstall_cmds_GCJ \
17941 postuninstall_cmds_GCJ \
17942 old_archive_from_expsyms_cmds_GCJ \
17943 allow_undefined_flag_GCJ \
17944 no_undefined_flag_GCJ \
17945 export_symbols_cmds_GCJ \
17946 hardcode_libdir_flag_spec_GCJ \
17947 hardcode_libdir_flag_spec_ld_GCJ \
17948 hardcode_libdir_separator_GCJ \
17949 hardcode_automatic_GCJ \
17951 module_expsym_cmds_GCJ \
17952 lt_cv_prog_compiler_c_o_GCJ \
17953 exclude_expsyms_GCJ \
17954 include_expsyms_GCJ; do
17957 old_archive_cmds_GCJ | \
17958 old_archive_from_new_cmds_GCJ | \
17959 archive_cmds_GCJ | \
17960 archive_expsym_cmds_GCJ | \
17961 module_cmds_GCJ | \
17962 module_expsym_cmds_GCJ | \
17963 old_archive_from_expsyms_cmds_GCJ | \
17964 export_symbols_cmds_GCJ | \
17965 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17966 postinstall_cmds | postuninstall_cmds | \
17967 old_postinstall_cmds | old_postuninstall_cmds | \
17968 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17969 # Double-quote double-evaled strings.
17970 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17979 *'\$0 --fallback-echo"')
17980 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17986 cat <<__EOF__ >> "$cfgfile"
17987 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17989 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17991 # Shell to use when invoking shell scripts.
17994 # Whether or not to build shared libraries.
17995 build_libtool_libs=$enable_shared
17997 # Whether or not to build static libraries.
17998 build_old_libs=$enable_static
18000 # Whether or not to add -lc for building shared libraries.
18001 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18003 # Whether or not to disallow shared libs when runtime libs are static
18004 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18006 # Whether or not to optimize for fast installation.
18007 fast_install=$enable_fast_install
18010 host_alias=$host_alias
18013 # An echo program that does not interpret backslashes.
18018 AR_FLAGS=$lt_AR_FLAGS
18023 # A language-specific compiler.
18024 CC=$lt_compiler_GCJ
18026 # Is the compiler the GNU C compiler?
18032 # The linker used to build libraries.
18035 # Whether we need hard or soft links.
18038 # A BSD-compatible nm program.
18041 # A symbol stripping program
18044 # Used to examine libraries when file_magic_cmd begins "file"
18045 MAGIC_CMD=$MAGIC_CMD
18047 # Used on cygwin: DLL creation program.
18050 # Used on cygwin: object dumper.
18053 # Used on cygwin: assembler.
18056 # The name of the directory that contains temporary libtool files.
18059 # How to create reloadable object files.
18060 reload_flag=$lt_reload_flag
18061 reload_cmds=$lt_reload_cmds
18063 # How to pass a linker flag through the compiler.
18064 wl=$lt_lt_prog_compiler_wl_GCJ
18066 # Object file suffix (normally "o").
18067 objext="$ac_objext"
18069 # Old archive suffix (normally "a").
18072 # Shared library suffix (normally ".so").
18073 shrext_cmds='$shrext_cmds'
18075 # Executable file suffix (normally "").
18078 # Additional compiler flags for building library objects.
18079 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18082 # What is the maximum length of a command?
18083 max_cmd_len=$lt_cv_sys_max_cmd_len
18085 # Does compiler simultaneously support -c and -o options?
18086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18088 # Must we lock files when doing compilation ?
18089 need_locks=$lt_need_locks
18091 # Do we need the lib prefix for modules?
18092 need_lib_prefix=$need_lib_prefix
18094 # Do we need a version for libraries?
18095 need_version=$need_version
18097 # Whether dlopen is supported.
18098 dlopen_support=$enable_dlopen
18100 # Whether dlopen of programs is supported.
18101 dlopen_self=$enable_dlopen_self
18103 # Whether dlopen of statically linked programs is supported.
18104 dlopen_self_static=$enable_dlopen_self_static
18106 # Compiler flag to prevent dynamic linking.
18107 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18109 # Compiler flag to turn off builtin functions.
18110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18112 # Compiler flag to allow reflexive dlopens.
18113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18115 # Compiler flag to generate shared objects directly from archives.
18116 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18118 # Compiler flag to generate thread-safe objects.
18119 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18121 # Library versioning type.
18122 version_type=$version_type
18124 # Format of library name prefix.
18125 libname_spec=$lt_libname_spec
18127 # List of archive names. First name is the real one, the rest are links.
18128 # The last name is the one that the linker finds with -lNAME.
18129 library_names_spec=$lt_library_names_spec
18131 # The coded name of the library, if different from the real name.
18132 soname_spec=$lt_soname_spec
18134 # Commands used to build and install an old-style archive.
18136 old_archive_cmds=$lt_old_archive_cmds_GCJ
18137 old_postinstall_cmds=$lt_old_postinstall_cmds
18138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18140 # Create an old-style archive from a shared archive.
18141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18143 # Create a temporary old-style archive to link instead of a shared archive.
18144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18146 # Commands used to build and install a shared archive.
18147 archive_cmds=$lt_archive_cmds_GCJ
18148 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18149 postinstall_cmds=$lt_postinstall_cmds
18150 postuninstall_cmds=$lt_postuninstall_cmds
18152 # Commands used to build a loadable module (assumed same as above if empty)
18153 module_cmds=$lt_module_cmds_GCJ
18154 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18156 # Commands to strip libraries.
18157 old_striplib=$lt_old_striplib
18158 striplib=$lt_striplib
18160 # Dependencies to place before the objects being linked to create a
18162 predep_objects=$lt_predep_objects_GCJ
18164 # Dependencies to place after the objects being linked to create a
18166 postdep_objects=$lt_postdep_objects_GCJ
18168 # Dependencies to place before the objects being linked to create a
18170 predeps=$lt_predeps_GCJ
18172 # Dependencies to place after the objects being linked to create a
18174 postdeps=$lt_postdeps_GCJ
18176 # The library search path used internally by the compiler when linking
18177 # a shared library.
18178 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18180 # Method to check whether dependent libraries are shared objects.
18181 deplibs_check_method=$lt_deplibs_check_method
18183 # Command to use when deplibs_check_method == file_magic.
18184 file_magic_cmd=$lt_file_magic_cmd
18186 # Flag that allows shared libraries with undefined symbols to be built.
18187 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18189 # Flag that forces no undefined symbols.
18190 no_undefined_flag=$lt_no_undefined_flag_GCJ
18192 # Commands used to finish a libtool library installation in a directory.
18193 finish_cmds=$lt_finish_cmds
18195 # Same as above, but a single script fragment to be evaled but not shown.
18196 finish_eval=$lt_finish_eval
18198 # Take the output of nm and produce a listing of raw symbols and C names.
18199 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18201 # Transform the output of nm in a proper C declaration
18202 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18204 # Transform the output of nm in a C name address pair
18205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18207 # This is the shared library runtime path variable.
18208 runpath_var=$runpath_var
18210 # This is the shared library path variable.
18211 shlibpath_var=$shlibpath_var
18213 # Is shlibpath searched before the hard-coded library search path?
18214 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18216 # How to hardcode a shared library path into an executable.
18217 hardcode_action=$hardcode_action_GCJ
18219 # Whether we should hardcode library paths into libraries.
18220 hardcode_into_libs=$hardcode_into_libs
18222 # Flag to hardcode \$libdir into a binary during linking.
18223 # This must work even if \$libdir does not exist.
18224 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18226 # If ld is used when linking, flag to hardcode \$libdir into
18227 # a binary during linking. This must work even if \$libdir does
18229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18231 # Whether we need a single -rpath flag with a separated argument.
18232 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18234 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18235 # resulting binary.
18236 hardcode_direct=$hardcode_direct_GCJ
18238 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18239 # resulting binary.
18240 hardcode_minus_L=$hardcode_minus_L_GCJ
18242 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18243 # the resulting binary.
18244 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18246 # Set to yes if building a shared library automatically hardcodes DIR into the library
18247 # and all subsequent libraries and executables linked against it.
18248 hardcode_automatic=$hardcode_automatic_GCJ
18250 # Variables whose values should be saved in libtool wrapper scripts and
18251 # restored at relink time.
18252 variables_saved_for_relink="$variables_saved_for_relink"
18254 # Whether libtool must link a program against all its dependency libraries.
18255 link_all_deplibs=$link_all_deplibs_GCJ
18257 # Compile-time system search path for libraries
18258 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18260 # Run-time system search path for libraries
18261 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18263 # Fix the shell variable \$srcfile for the compiler.
18264 fix_srcfile_path="$fix_srcfile_path_GCJ"
18266 # Set to yes if exported symbols are required.
18267 always_export_symbols=$always_export_symbols_GCJ
18269 # The commands to list exported symbols.
18270 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18272 # The commands to extract the exported symbol list from a shared archive.
18273 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18275 # Symbols that should not be listed in the preloaded symbols.
18276 exclude_expsyms=$lt_exclude_expsyms_GCJ
18278 # Symbols that must always be exported.
18279 include_expsyms=$lt_include_expsyms_GCJ
18281 # ### END LIBTOOL TAG CONFIG: $tagname
18287 # If there is no Makefile yet, we rely on a make rule to execute
18288 # `config.status --recheck' to rerun these tests and create the
18289 # libtool script then.
18290 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18291 if test -f "$ltmain_in"; then
18292 test -f Makefile && make "$ltmain"
18298 ac_cpp='$CPP $CPPFLAGS'
18299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18314 # Source file extension for RC test sources.
18317 # Object file extension for compiled RC test sources.
18321 # Code to be used in simple compile tests
18322 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18324 # Code to be used in simple link tests
18325 lt_simple_link_test_code="$lt_simple_compile_test_code"
18327 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18329 # If no C compiler was specified, use CC.
18332 # Allow CC to be a program name with arguments.
18336 # Allow CC to be a program name with arguments.
18341 lt_cv_prog_compiler_c_o_RC=yes
18343 # The else clause should only fire when bootstrapping the
18344 # libtool distribution, otherwise you forgot to ship ltmain.sh
18345 # with your package, and you will get complaints that there are
18346 # no rules to generate ltmain.sh.
18347 if test -f "$ltmain"; then
18348 # See if we are running on zsh, and set the options which allow our commands through
18349 # without removal of \ escapes.
18350 if test -n "${ZSH_VERSION+set}" ; then
18351 setopt NO_GLOB_SUBST
18353 # Now quote all the things that may contain metacharacters while being
18354 # careful not to overquote the AC_SUBSTed values. We take copies of the
18355 # variables and quote the copies for generation of the libtool script.
18356 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18358 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18359 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18360 deplibs_check_method reload_flag reload_cmds need_locks \
18361 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18362 lt_cv_sys_global_symbol_to_c_name_address \
18363 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18364 old_postinstall_cmds old_postuninstall_cmds \
18368 lt_prog_compiler_wl_RC \
18369 lt_prog_compiler_pic_RC \
18370 lt_prog_compiler_static_RC \
18371 lt_prog_compiler_no_builtin_flag_RC \
18372 export_dynamic_flag_spec_RC \
18373 thread_safe_flag_spec_RC \
18374 whole_archive_flag_spec_RC \
18375 enable_shared_with_static_runtimes_RC \
18376 old_archive_cmds_RC \
18377 old_archive_from_new_cmds_RC \
18378 predep_objects_RC \
18379 postdep_objects_RC \
18382 compiler_lib_search_path_RC \
18384 archive_expsym_cmds_RC \
18385 postinstall_cmds_RC \
18386 postuninstall_cmds_RC \
18387 old_archive_from_expsyms_cmds_RC \
18388 allow_undefined_flag_RC \
18389 no_undefined_flag_RC \
18390 export_symbols_cmds_RC \
18391 hardcode_libdir_flag_spec_RC \
18392 hardcode_libdir_flag_spec_ld_RC \
18393 hardcode_libdir_separator_RC \
18394 hardcode_automatic_RC \
18396 module_expsym_cmds_RC \
18397 lt_cv_prog_compiler_c_o_RC \
18398 exclude_expsyms_RC \
18399 include_expsyms_RC; do
18402 old_archive_cmds_RC | \
18403 old_archive_from_new_cmds_RC | \
18404 archive_cmds_RC | \
18405 archive_expsym_cmds_RC | \
18407 module_expsym_cmds_RC | \
18408 old_archive_from_expsyms_cmds_RC | \
18409 export_symbols_cmds_RC | \
18410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18411 postinstall_cmds | postuninstall_cmds | \
18412 old_postinstall_cmds | old_postuninstall_cmds | \
18413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18414 # Double-quote double-evaled strings.
18415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18424 *'\$0 --fallback-echo"')
18425 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18431 cat <<__EOF__ >> "$cfgfile"
18432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18436 # Shell to use when invoking shell scripts.
18439 # Whether or not to build shared libraries.
18440 build_libtool_libs=$enable_shared
18442 # Whether or not to build static libraries.
18443 build_old_libs=$enable_static
18445 # Whether or not to add -lc for building shared libraries.
18446 build_libtool_need_lc=$archive_cmds_need_lc_RC
18448 # Whether or not to disallow shared libs when runtime libs are static
18449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18451 # Whether or not to optimize for fast installation.
18452 fast_install=$enable_fast_install
18455 host_alias=$host_alias
18458 # An echo program that does not interpret backslashes.
18463 AR_FLAGS=$lt_AR_FLAGS
18468 # A language-specific compiler.
18471 # Is the compiler the GNU C compiler?
18477 # The linker used to build libraries.
18480 # Whether we need hard or soft links.
18483 # A BSD-compatible nm program.
18486 # A symbol stripping program
18489 # Used to examine libraries when file_magic_cmd begins "file"
18490 MAGIC_CMD=$MAGIC_CMD
18492 # Used on cygwin: DLL creation program.
18495 # Used on cygwin: object dumper.
18498 # Used on cygwin: assembler.
18501 # The name of the directory that contains temporary libtool files.
18504 # How to create reloadable object files.
18505 reload_flag=$lt_reload_flag
18506 reload_cmds=$lt_reload_cmds
18508 # How to pass a linker flag through the compiler.
18509 wl=$lt_lt_prog_compiler_wl_RC
18511 # Object file suffix (normally "o").
18512 objext="$ac_objext"
18514 # Old archive suffix (normally "a").
18517 # Shared library suffix (normally ".so").
18518 shrext_cmds='$shrext_cmds'
18520 # Executable file suffix (normally "").
18523 # Additional compiler flags for building library objects.
18524 pic_flag=$lt_lt_prog_compiler_pic_RC
18527 # What is the maximum length of a command?
18528 max_cmd_len=$lt_cv_sys_max_cmd_len
18530 # Does compiler simultaneously support -c and -o options?
18531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18533 # Must we lock files when doing compilation ?
18534 need_locks=$lt_need_locks
18536 # Do we need the lib prefix for modules?
18537 need_lib_prefix=$need_lib_prefix
18539 # Do we need a version for libraries?
18540 need_version=$need_version
18542 # Whether dlopen is supported.
18543 dlopen_support=$enable_dlopen
18545 # Whether dlopen of programs is supported.
18546 dlopen_self=$enable_dlopen_self
18548 # Whether dlopen of statically linked programs is supported.
18549 dlopen_self_static=$enable_dlopen_self_static
18551 # Compiler flag to prevent dynamic linking.
18552 link_static_flag=$lt_lt_prog_compiler_static_RC
18554 # Compiler flag to turn off builtin functions.
18555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18557 # Compiler flag to allow reflexive dlopens.
18558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18560 # Compiler flag to generate shared objects directly from archives.
18561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18563 # Compiler flag to generate thread-safe objects.
18564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18566 # Library versioning type.
18567 version_type=$version_type
18569 # Format of library name prefix.
18570 libname_spec=$lt_libname_spec
18572 # List of archive names. First name is the real one, the rest are links.
18573 # The last name is the one that the linker finds with -lNAME.
18574 library_names_spec=$lt_library_names_spec
18576 # The coded name of the library, if different from the real name.
18577 soname_spec=$lt_soname_spec
18579 # Commands used to build and install an old-style archive.
18581 old_archive_cmds=$lt_old_archive_cmds_RC
18582 old_postinstall_cmds=$lt_old_postinstall_cmds
18583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18585 # Create an old-style archive from a shared archive.
18586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18588 # Create a temporary old-style archive to link instead of a shared archive.
18589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18591 # Commands used to build and install a shared archive.
18592 archive_cmds=$lt_archive_cmds_RC
18593 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18594 postinstall_cmds=$lt_postinstall_cmds
18595 postuninstall_cmds=$lt_postuninstall_cmds
18597 # Commands used to build a loadable module (assumed same as above if empty)
18598 module_cmds=$lt_module_cmds_RC
18599 module_expsym_cmds=$lt_module_expsym_cmds_RC
18601 # Commands to strip libraries.
18602 old_striplib=$lt_old_striplib
18603 striplib=$lt_striplib
18605 # Dependencies to place before the objects being linked to create a
18607 predep_objects=$lt_predep_objects_RC
18609 # Dependencies to place after the objects being linked to create a
18611 postdep_objects=$lt_postdep_objects_RC
18613 # Dependencies to place before the objects being linked to create a
18615 predeps=$lt_predeps_RC
18617 # Dependencies to place after the objects being linked to create a
18619 postdeps=$lt_postdeps_RC
18621 # The library search path used internally by the compiler when linking
18622 # a shared library.
18623 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18625 # Method to check whether dependent libraries are shared objects.
18626 deplibs_check_method=$lt_deplibs_check_method
18628 # Command to use when deplibs_check_method == file_magic.
18629 file_magic_cmd=$lt_file_magic_cmd
18631 # Flag that allows shared libraries with undefined symbols to be built.
18632 allow_undefined_flag=$lt_allow_undefined_flag_RC
18634 # Flag that forces no undefined symbols.
18635 no_undefined_flag=$lt_no_undefined_flag_RC
18637 # Commands used to finish a libtool library installation in a directory.
18638 finish_cmds=$lt_finish_cmds
18640 # Same as above, but a single script fragment to be evaled but not shown.
18641 finish_eval=$lt_finish_eval
18643 # Take the output of nm and produce a listing of raw symbols and C names.
18644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18646 # Transform the output of nm in a proper C declaration
18647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18649 # Transform the output of nm in a C name address pair
18650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18652 # This is the shared library runtime path variable.
18653 runpath_var=$runpath_var
18655 # This is the shared library path variable.
18656 shlibpath_var=$shlibpath_var
18658 # Is shlibpath searched before the hard-coded library search path?
18659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18661 # How to hardcode a shared library path into an executable.
18662 hardcode_action=$hardcode_action_RC
18664 # Whether we should hardcode library paths into libraries.
18665 hardcode_into_libs=$hardcode_into_libs
18667 # Flag to hardcode \$libdir into a binary during linking.
18668 # This must work even if \$libdir does not exist.
18669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18671 # If ld is used when linking, flag to hardcode \$libdir into
18672 # a binary during linking. This must work even if \$libdir does
18674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18676 # Whether we need a single -rpath flag with a separated argument.
18677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18680 # resulting binary.
18681 hardcode_direct=$hardcode_direct_RC
18683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18684 # resulting binary.
18685 hardcode_minus_L=$hardcode_minus_L_RC
18687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18688 # the resulting binary.
18689 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18691 # Set to yes if building a shared library automatically hardcodes DIR into the library
18692 # and all subsequent libraries and executables linked against it.
18693 hardcode_automatic=$hardcode_automatic_RC
18695 # Variables whose values should be saved in libtool wrapper scripts and
18696 # restored at relink time.
18697 variables_saved_for_relink="$variables_saved_for_relink"
18699 # Whether libtool must link a program against all its dependency libraries.
18700 link_all_deplibs=$link_all_deplibs_RC
18702 # Compile-time system search path for libraries
18703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18705 # Run-time system search path for libraries
18706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18708 # Fix the shell variable \$srcfile for the compiler.
18709 fix_srcfile_path="$fix_srcfile_path_RC"
18711 # Set to yes if exported symbols are required.
18712 always_export_symbols=$always_export_symbols_RC
18714 # The commands to list exported symbols.
18715 export_symbols_cmds=$lt_export_symbols_cmds_RC
18717 # The commands to extract the exported symbol list from a shared archive.
18718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18720 # Symbols that should not be listed in the preloaded symbols.
18721 exclude_expsyms=$lt_exclude_expsyms_RC
18723 # Symbols that must always be exported.
18724 include_expsyms=$lt_include_expsyms_RC
18726 # ### END LIBTOOL TAG CONFIG: $tagname
18732 # If there is no Makefile yet, we rely on a make rule to execute
18733 # `config.status --recheck' to rerun these tests and create the
18734 # libtool script then.
18735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18736 if test -f "$ltmain_in"; then
18737 test -f Makefile && make "$ltmain"
18743 ac_cpp='$CPP $CPPFLAGS'
18744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18753 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18754 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18755 { (exit 1); exit 1; }; }
18759 # Append the new tag name to the list of available tags.
18760 if test -n "$tagname" ; then
18761 available_tags="$available_tags $tagname"
18767 # Now substitute the updated list of available tags.
18768 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18769 mv "${ofile}T" "$ofile"
18773 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18774 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18775 { (exit 1); exit 1; }; }
18781 # This can be used to rebuild libtool when needed
18782 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18784 # Always use our own libtool.
18785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18787 # Prevent multiple expansion
18800 # Check whether --with-system-libtool or --without-system-libtool was given.
18801 if test "${with_system_libtool+set}" = set; then
18802 withval="$with_system_libtool"
18803 # Extract the first word of "libtool", so it can be a program name with args.
18804 set dummy libtool; ac_word=$2
18805 echo "$as_me:$LINENO: checking for $ac_word" >&5
18806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18807 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18816 as_dummy="$PATH:/usr/local/bin"
18817 for as_dir in $as_dummy
18820 test -z "$as_dir" && as_dir=.
18821 for ac_exec_ext in '' $ac_executable_extensions; do
18822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18823 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18833 LIBTOOL=$ac_cv_path_LIBTOOL
18835 if test -n "$LIBTOOL"; then
18836 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18837 echo "${ECHO_T}$LIBTOOL" >&6
18839 echo "$as_me:$LINENO: result: no" >&5
18840 echo "${ECHO_T}no" >&6
18845 LIBTOOL="`pwd`/libtool"
18864 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18865 if test "${enable_strict_dependencies+set}" = set; then
18866 enableval="$enable_strict_dependencies"
18870 logdir='${localstatedir}/log/radius'
18871 echo "$as_me:$LINENO: checking logdir" >&5
18872 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18874 # Check whether --with-logdir or --without-logdir was given.
18875 if test "${with_logdir+set}" = set; then
18876 withval="$with_logdir"
18879 { { echo "$as_me:$LINENO: error: Need logdir" >&5
18880 echo "$as_me: error: Need logdir" >&2;}
18881 { (exit 1); exit 1; }; }
18892 echo "$as_me:$LINENO: result: $logdir" >&5
18893 echo "${ECHO_T}$logdir" >&6
18895 radacctdir='${logdir}/radacct'
18896 echo "$as_me:$LINENO: checking radacctdir" >&5
18897 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18899 # Check whether --with-radacctdir or --without-radacctdir was given.
18900 if test "${with_radacctdir+set}" = set; then
18901 withval="$with_radacctdir"
18904 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18905 echo "$as_me: error: Need radacctdir" >&2;}
18906 { (exit 1); exit 1; }; }
18911 radacctdir="$withval"
18917 echo "$as_me:$LINENO: result: $radacctdir" >&5
18918 echo "${ECHO_T}$radacctdir" >&6
18920 raddbdir='${sysconfdir}/raddb'
18921 echo "$as_me:$LINENO: checking raddbdir" >&5
18922 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18924 # Check whether --with-raddbdir or --without-raddbdir was given.
18925 if test "${with_raddbdir+set}" = set; then
18926 withval="$with_raddbdir"
18929 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18930 echo "$as_me: error: Need raddbdir" >&2;}
18931 { (exit 1); exit 1; }; }
18936 raddbdir="$withval"
18942 echo "$as_me:$LINENO: result: $raddbdir" >&5
18943 echo "${ECHO_T}$raddbdir" >&6
18947 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18948 if test "${with_ascend_binary+set}" = set; then
18949 withval="$with_ascend_binary"
18958 if test "X$ASCEND_BINARY" = "Xyes"; then
18960 cat >>confdefs.h <<\_ACEOF
18961 #define ASCEND_BINARY
18968 # Check whether --with-threads or --without-threads was given.
18969 if test "${with_threads+set}" = set; then
18970 withval="$with_threads"
18982 # Check whether --with-snmp or --without-snmp was given.
18983 if test "${with_snmp+set}" = set; then
18984 withval="$with_snmp"
18994 rad_enable_largefiles=no
18996 # Check whether --with-large-files or --without-large-files was given.
18997 if test "${with_large_files+set}" = set; then
18998 withval="$with_large_files"
19001 rad_enable_largefiles=yes
19013 # Check whether --with-static_modules or --without-static_modules was given.
19014 if test "${with_static_modules+set}" = set; then
19015 withval="$with_static_modules"
19017 for i in $withval; do
19018 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19023 # Check whether --enable-developer or --disable-developer was given.
19024 if test "${enable_developer+set}" = set; then
19025 enableval="$enable_developer"
19026 case "$enableval" in
19036 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19042 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19043 if test "${with_experimental_modules+set}" = set; then
19044 withval="$with_experimental_modules"
19055 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19056 if test "${with_openssl_includes+set}" = set; then
19057 withval="$with_openssl_includes"
19059 *) OPENSSL_INCLUDE_DIR="$withval"
19066 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19067 if test "${with_openssl_libraries+set}" = set; then
19068 withval="$with_openssl_libraries"
19070 *) OPENSSL_LIB_DIR="$withval"
19078 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19079 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19080 withval="$with_rlm_FOO_lib_dir"
19089 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19090 if test "${with_rlm_FOO_include_dir+set}" = set; then
19091 withval="$with_rlm_FOO_include_dir"
19102 # Check whether --with-udpfromto or --without-udpfromto was given.
19103 if test "${with_udpfromto+set}" = set; then
19104 withval="$with_udpfromto"
19115 if test "x$WITH_UDPFROMTO" = "xyes"; then
19117 cat >>confdefs.h <<\_ACEOF
19118 #define WITH_UDPFROMTO
19124 CHECKRAD=checkrad.pl
19125 # Extract the first word of "perl", so it can be a program name with args.
19126 set dummy perl; ac_word=$2
19127 echo "$as_me:$LINENO: checking for $ac_word" >&5
19128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19129 if test "${ac_cv_path_PERL+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138 for as_dir in $PATH
19141 test -z "$as_dir" && as_dir=.
19142 for ac_exec_ext in '' $ac_executable_extensions; do
19143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19144 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19151 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19155 PERL=$ac_cv_path_PERL
19157 if test -n "$PERL"; then
19158 echo "$as_me:$LINENO: result: $PERL" >&5
19159 echo "${ECHO_T}$PERL" >&6
19161 echo "$as_me:$LINENO: result: no" >&5
19162 echo "${ECHO_T}no" >&6
19165 if test "x$ac_cv_path_PERL" = "x"; then
19166 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19167 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19169 # Extract the first word of "snmpget", so it can be a program name with args.
19170 set dummy snmpget; ac_word=$2
19171 echo "$as_me:$LINENO: checking for $ac_word" >&5
19172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19173 if test "${ac_cv_path_SNMPGET+set}" = set; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182 for as_dir in $PATH
19185 test -z "$as_dir" && as_dir=.
19186 for ac_exec_ext in '' $ac_executable_extensions; do
19187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19188 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19198 SNMPGET=$ac_cv_path_SNMPGET
19200 if test -n "$SNMPGET"; then
19201 echo "$as_me:$LINENO: result: $SNMPGET" >&5
19202 echo "${ECHO_T}$SNMPGET" >&6
19204 echo "$as_me:$LINENO: result: no" >&5
19205 echo "${ECHO_T}no" >&6
19208 if test "x$ac_cv_path_SNMPGET" = "x"; then
19209 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19210 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19213 # Extract the first word of "snmpwalk", so it can be a program name with args.
19214 set dummy snmpwalk; ac_word=$2
19215 echo "$as_me:$LINENO: checking for $ac_word" >&5
19216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19217 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19226 for as_dir in $PATH
19229 test -z "$as_dir" && as_dir=.
19230 for ac_exec_ext in '' $ac_executable_extensions; do
19231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19232 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19242 SNMPWALK=$ac_cv_path_SNMPWALK
19244 if test -n "$SNMPWALK"; then
19245 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19246 echo "${ECHO_T}$SNMPWALK" >&6
19248 echo "$as_me:$LINENO: result: no" >&5
19249 echo "${ECHO_T}no" >&6
19252 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19253 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19254 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19257 # Extract the first word of "rusers", so it can be a program name with args.
19258 set dummy rusers; ac_word=$2
19259 echo "$as_me:$LINENO: checking for $ac_word" >&5
19260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19261 if test "${ac_cv_path_RUSERS+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270 for as_dir in $PATH
19273 test -z "$as_dir" && as_dir=.
19274 for ac_exec_ext in '' $ac_executable_extensions; do
19275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19276 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19283 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19287 RUSERS=$ac_cv_path_RUSERS
19289 if test -n "$RUSERS"; then
19290 echo "$as_me:$LINENO: result: $RUSERS" >&5
19291 echo "${ECHO_T}$RUSERS" >&6
19293 echo "$as_me:$LINENO: result: no" >&5
19294 echo "${ECHO_T}no" >&6
19298 missing_dir=`cd $ac_aux_dir && pwd`
19299 echo "$as_me:$LINENO: checking for working aclocal" >&5
19300 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
19301 # Run test in a subshell; some versions of sh will print an error if
19302 # an executable is not found, even if stderr is redirected.
19303 # Redirect stdin to placate older versions of autoconf. Sigh.
19304 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19306 echo "$as_me:$LINENO: result: found" >&5
19307 echo "${ECHO_T}found" >&6
19309 ACLOCAL="$missing_dir/missing aclocal"
19310 echo "$as_me:$LINENO: result: missing" >&5
19311 echo "${ECHO_T}missing" >&6
19314 echo "$as_me:$LINENO: checking for working autoconf" >&5
19315 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19316 # Run test in a subshell; some versions of sh will print an error if
19317 # an executable is not found, even if stderr is redirected.
19318 # Redirect stdin to placate older versions of autoconf. Sigh.
19319 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19321 echo "$as_me:$LINENO: result: found" >&5
19322 echo "${ECHO_T}found" >&6
19324 AUTOCONF="$missing_dir/missing autoconf"
19325 echo "$as_me:$LINENO: result: missing" >&5
19326 echo "${ECHO_T}missing" >&6
19329 echo "$as_me:$LINENO: checking for working autoheader" >&5
19330 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19331 # Run test in a subshell; some versions of sh will print an error if
19332 # an executable is not found, even if stderr is redirected.
19333 # Redirect stdin to placate older versions of autoconf. Sigh.
19334 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19335 AUTOHEADER=autoheader
19336 echo "$as_me:$LINENO: result: found" >&5
19337 echo "${ECHO_T}found" >&6
19339 AUTOHEADER="$missing_dir/missing autoheader"
19340 echo "$as_me:$LINENO: result: missing" >&5
19341 echo "${ECHO_T}missing" >&6
19345 # Extract the first word of "locate", so it can be a program name with args.
19346 set dummy locate; ac_word=$2
19347 echo "$as_me:$LINENO: checking for $ac_word" >&5
19348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19349 if test "${ac_cv_path_LOCATE+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19358 for as_dir in $PATH
19361 test -z "$as_dir" && as_dir=.
19362 for ac_exec_ext in '' $ac_executable_extensions; do
19363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19364 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19374 LOCATE=$ac_cv_path_LOCATE
19376 if test -n "$LOCATE"; then
19377 echo "$as_me:$LINENO: result: $LOCATE" >&5
19378 echo "${ECHO_T}$LOCATE" >&6
19380 echo "$as_me:$LINENO: result: no" >&5
19381 echo "${ECHO_T}no" >&6
19384 # Extract the first word of "dirname", so it can be a program name with args.
19385 set dummy dirname; ac_word=$2
19386 echo "$as_me:$LINENO: checking for $ac_word" >&5
19387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19388 if test "${ac_cv_path_DIRNAME+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19397 for as_dir in $PATH
19400 test -z "$as_dir" && as_dir=.
19401 for ac_exec_ext in '' $ac_executable_extensions; do
19402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19403 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19413 DIRNAME=$ac_cv_path_DIRNAME
19415 if test -n "$DIRNAME"; then
19416 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19417 echo "${ECHO_T}$DIRNAME" >&6
19419 echo "$as_me:$LINENO: result: no" >&5
19420 echo "${ECHO_T}no" >&6
19423 # Extract the first word of "grep", so it can be a program name with args.
19424 set dummy grep; ac_word=$2
19425 echo "$as_me:$LINENO: checking for $ac_word" >&5
19426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19427 if test "${ac_cv_path_GREP+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19432 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19436 for as_dir in $PATH
19439 test -z "$as_dir" && as_dir=.
19440 for ac_exec_ext in '' $ac_executable_extensions; do
19441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19442 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19452 GREP=$ac_cv_path_GREP
19454 if test -n "$GREP"; then
19455 echo "$as_me:$LINENO: result: $GREP" >&5
19456 echo "${ECHO_T}$GREP" >&6
19458 echo "$as_me:$LINENO: result: no" >&5
19459 echo "${ECHO_T}no" >&6
19465 if test "x$WITH_THREADS" = "xyes"; then
19466 if test $ac_cv_prog_suncc = "yes"; then
19467 CFLAGS="$CFLAGS -mt"
19471 for ac_header in pthread.h
19473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19475 echo "$as_me:$LINENO: checking for $ac_header" >&5
19476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19483 # Is the header compilable?
19484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19486 cat >conftest.$ac_ext <<_ACEOF
19487 #line $LINENO "configure"
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19493 $ac_includes_default
19494 #include <$ac_header>
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498 (eval $ac_compile) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -s conftest.$ac_objext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_header_compiler=yes
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_header_compiler=no
19515 rm -f conftest.$ac_objext conftest.$ac_ext
19516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19517 echo "${ECHO_T}$ac_header_compiler" >&6
19519 # Is the header present?
19520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19522 cat >conftest.$ac_ext <<_ACEOF
19523 #line $LINENO "configure"
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #include <$ac_header>
19531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19534 grep -v '^ *+' conftest.er1 >conftest.err
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } >/dev/null; then
19539 if test -s conftest.err; then
19540 ac_cpp_err=$ac_c_preproc_warn_flag
19547 if test -z "$ac_cpp_err"; then
19548 ac_header_preproc=yes
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_header_preproc=no
19555 rm -f conftest.err conftest.$ac_ext
19556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19557 echo "${ECHO_T}$ac_header_preproc" >&6
19559 # So? What about this header?
19560 case $ac_header_compiler:$ac_header_preproc in
19562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19568 ## ------------------------------------ ##
19569 ## Report this to bug-autoconf@gnu.org. ##
19570 ## ------------------------------------ ##
19573 sed "s/^/$as_me: WARNING: /" >&2
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19584 ## ------------------------------------ ##
19585 ## Report this to bug-autoconf@gnu.org. ##
19586 ## ------------------------------------ ##
19589 sed "s/^/$as_me: WARNING: /" >&2
19592 echo "$as_me:$LINENO: checking for $ac_header" >&5
19593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 eval "$as_ac_Header=$ac_header_preproc"
19599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19604 cat >>confdefs.h <<_ACEOF
19605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19615 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19616 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19617 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 ac_check_lib_save_LIBS=$LIBS
19621 LIBS="-lpthread $LIBS"
19622 cat >conftest.$ac_ext <<_ACEOF
19623 #line $LINENO "configure"
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19630 /* Override any gcc2 internal prototype to avoid an error. */
19634 /* We use char because int might match the return type of a gcc2
19635 builtin and then its argument prototype would still apply. */
19636 char pthread_create ();
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19647 (eval $ac_link) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } &&
19651 { ac_try='test -s conftest$ac_exeext'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_cv_lib_pthread_pthread_create=yes
19659 echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19662 ac_cv_lib_pthread_pthread_create=no
19664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_lib_save_LIBS
19667 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19668 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19669 if test $ac_cv_lib_pthread_pthread_create = yes; then
19670 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19671 LIBS="$LIBS -lpthread"
19673 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19674 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19675 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 ac_check_lib_save_LIBS=$LIBS
19680 cat >conftest.$ac_ext <<_ACEOF
19681 #line $LINENO "configure"
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 /* Override any gcc2 internal prototype to avoid an error. */
19692 /* We use char because int might match the return type of a gcc2
19693 builtin and then its argument prototype would still apply. */
19694 char pthread_create ();
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -s conftest$ac_exeext'
19710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711 (eval $ac_try) 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; }; then
19715 ac_cv_lib_c_r_pthread_create=yes
19717 echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 ac_cv_lib_c_r_pthread_create=no
19722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19725 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19726 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19727 if test $ac_cv_lib_c_r_pthread_create = yes; then
19728 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19739 if test "x$WITH_THREADS" != "xyes"; then
19741 ac_cv_header_pthread_h="no"
19745 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19746 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19747 if test "${ac_cv_search_sem_init+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 ac_func_search_save_LIBS=$LIBS
19751 ac_cv_search_sem_init=no
19752 cat >conftest.$ac_ext <<_ACEOF
19753 #line $LINENO "configure"
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19760 /* Override any gcc2 internal prototype to avoid an error. */
19764 /* We use char because int might match the return type of a gcc2
19765 builtin and then its argument prototype would still apply. */
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777 (eval $ac_link) 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -s conftest$ac_exeext'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_cv_search_sem_init="none required"
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19794 if test "$ac_cv_search_sem_init" = no; then
19795 for ac_lib in pthread sem posix4 rt; do
19796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19797 cat >conftest.$ac_ext <<_ACEOF
19798 #line $LINENO "configure"
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19805 /* Override any gcc2 internal prototype to avoid an error. */
19809 /* We use char because int might match the return type of a gcc2
19810 builtin and then its argument prototype would still apply. */
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19822 (eval $ac_link) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } &&
19826 { ac_try='test -s conftest$ac_exeext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_search_sem_init="-l$ac_lib"
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19842 LIBS=$ac_func_search_save_LIBS
19844 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19845 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19846 if test "$ac_cv_search_sem_init" != no; then
19847 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19850 { { echo "$as_me:$LINENO: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
19851 echo "$as_me: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
19852 { (exit 1); exit 1; }; }
19859 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19860 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19861 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 ac_check_lib_save_LIBS=$LIBS
19865 LIBS="-lsocket $LIBS"
19866 cat >conftest.$ac_ext <<_ACEOF
19867 #line $LINENO "configure"
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19874 /* Override any gcc2 internal prototype to avoid an error. */
19878 /* We use char because int might match the return type of a gcc2
19879 builtin and then its argument prototype would still apply. */
19880 char getsockname ();
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19891 (eval $ac_link) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -s conftest$ac_exeext'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_cv_lib_socket_getsockname=yes
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906 ac_cv_lib_socket_getsockname=no
19908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19911 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19912 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19913 if test $ac_cv_lib_socket_getsockname = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_LIBSOCKET 1
19918 LIBS="-lsocket $LIBS"
19924 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19925 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19926 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 ac_check_lib_save_LIBS=$LIBS
19930 LIBS="-lresolv $LIBS"
19931 cat >conftest.$ac_ext <<_ACEOF
19932 #line $LINENO "configure"
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19939 /* Override any gcc2 internal prototype to avoid an error. */
19943 /* We use char because int might match the return type of a gcc2
19944 builtin and then its argument prototype would still apply. */
19954 rm -f conftest.$ac_objext conftest$ac_exeext
19955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19956 (eval $ac_link) 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try='test -s conftest$ac_exeext'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
19966 ac_cv_lib_resolv_inet_aton=yes
19968 echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 ac_cv_lib_resolv_inet_aton=no
19973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19976 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19977 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19978 if test $ac_cv_lib_resolv_inet_aton = yes; then
19979 cat >>confdefs.h <<_ACEOF
19980 #define HAVE_LIBRESOLV 1
19983 LIBS="-lresolv $LIBS"
19989 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19990 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19991 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 ac_check_lib_save_LIBS=$LIBS
19996 cat >conftest.$ac_ext <<_ACEOF
19997 #line $LINENO "configure"
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20004 /* Override any gcc2 internal prototype to avoid an error. */
20008 /* We use char because int might match the return type of a gcc2
20009 builtin and then its argument prototype would still apply. */
20019 rm -f conftest.$ac_objext conftest$ac_exeext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021 (eval $ac_link) 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
20025 { ac_try='test -s conftest$ac_exeext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_lib_nsl_inet_ntoa=yes
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_cv_lib_nsl_inet_ntoa=no
20038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20039 LIBS=$ac_check_lib_save_LIBS
20041 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20042 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20043 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20044 cat >>confdefs.h <<_ACEOF
20045 #define HAVE_LIBNSL 1
20056 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20065 ac_header_dirent=no
20066 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20067 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20068 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20069 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20071 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 cat >conftest.$ac_ext <<_ACEOF
20074 #line $LINENO "configure"
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 #include <sys/types.h>
20092 rm -f conftest.$ac_objext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20094 (eval $ac_compile) 2>&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } &&
20098 { ac_try='test -s conftest.$ac_objext'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
20104 eval "$as_ac_Header=yes"
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 eval "$as_ac_Header=no"
20111 rm -f conftest.$ac_objext conftest.$ac_ext
20113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20116 cat >>confdefs.h <<_ACEOF
20117 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20120 ac_header_dirent=$ac_hdr; break
20124 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20125 if test $ac_header_dirent = dirent.h; then
20126 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20128 if test "${ac_cv_search_opendir+set}" = set; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20131 ac_func_search_save_LIBS=$LIBS
20132 ac_cv_search_opendir=no
20133 cat >conftest.$ac_ext <<_ACEOF
20134 #line $LINENO "configure"
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20141 /* Override any gcc2 internal prototype to avoid an error. */
20145 /* We use char because int might match the return type of a gcc2
20146 builtin and then its argument prototype would still apply. */
20156 rm -f conftest.$ac_objext conftest$ac_exeext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20158 (eval $ac_link) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -s conftest$ac_exeext'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 ac_cv_search_opendir="none required"
20170 echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20175 if test "$ac_cv_search_opendir" = no; then
20176 for ac_lib in dir; do
20177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20178 cat >conftest.$ac_ext <<_ACEOF
20179 #line $LINENO "configure"
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20186 /* Override any gcc2 internal prototype to avoid an error. */
20190 /* We use char because int might match the return type of a gcc2
20191 builtin and then its argument prototype would still apply. */
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20203 (eval $ac_link) 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_search_opendir="-l$ac_lib"
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20223 LIBS=$ac_func_search_save_LIBS
20225 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20226 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20227 if test "$ac_cv_search_opendir" != no; then
20228 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20233 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20234 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20235 if test "${ac_cv_search_opendir+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 ac_func_search_save_LIBS=$LIBS
20239 ac_cv_search_opendir=no
20240 cat >conftest.$ac_ext <<_ACEOF
20241 #line $LINENO "configure"
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20248 /* Override any gcc2 internal prototype to avoid an error. */
20252 /* We use char because int might match the return type of a gcc2
20253 builtin and then its argument prototype would still apply. */
20263 rm -f conftest.$ac_objext conftest$ac_exeext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20265 (eval $ac_link) 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } &&
20269 { ac_try='test -s conftest$ac_exeext'
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 ac_cv_search_opendir="none required"
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20282 if test "$ac_cv_search_opendir" = no; then
20283 for ac_lib in x; do
20284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20285 cat >conftest.$ac_ext <<_ACEOF
20286 #line $LINENO "configure"
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20293 /* Override any gcc2 internal prototype to avoid an error. */
20297 /* We use char because int might match the return type of a gcc2
20298 builtin and then its argument prototype would still apply. */
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20310 (eval $ac_link) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } &&
20314 { ac_try='test -s conftest$ac_exeext'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_cv_search_opendir="-l$ac_lib"
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20330 LIBS=$ac_func_search_save_LIBS
20332 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20333 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20334 if test "$ac_cv_search_opendir" != no; then
20335 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20343 if test "${ac_cv_header_stdc+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 cat >conftest.$ac_ext <<_ACEOF
20347 #line $LINENO "configure"
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20353 #include <stdlib.h>
20354 #include <stdarg.h>
20355 #include <string.h>
20366 rm -f conftest.$ac_objext
20367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20368 (eval $ac_compile) 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -s conftest.$ac_objext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_header_stdc=yes
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20383 ac_cv_header_stdc=no
20385 rm -f conftest.$ac_objext conftest.$ac_ext
20387 if test $ac_cv_header_stdc = yes; then
20388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20389 cat >conftest.$ac_ext <<_ACEOF
20390 #line $LINENO "configure"
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 #include <string.h>
20399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20400 $EGREP "memchr" >/dev/null 2>&1; then
20403 ac_cv_header_stdc=no
20409 if test $ac_cv_header_stdc = yes; then
20410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20411 cat >conftest.$ac_ext <<_ACEOF
20412 #line $LINENO "configure"
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20418 #include <stdlib.h>
20421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20422 $EGREP "free" >/dev/null 2>&1; then
20425 ac_cv_header_stdc=no
20431 if test $ac_cv_header_stdc = yes; then
20432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20433 if test "$cross_compiling" = yes; then
20436 cat >conftest.$ac_ext <<_ACEOF
20437 #line $LINENO "configure"
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20444 #if ((' ' & 0x0FF) == 0x020)
20445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20448 # define ISLOWER(c) \
20449 (('a' <= (c) && (c) <= 'i') \
20450 || ('j' <= (c) && (c) <= 'r') \
20451 || ('s' <= (c) && (c) <= 'z'))
20452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20460 for (i = 0; i < 256; i++)
20461 if (XOR (islower (i), ISLOWER (i))
20462 || toupper (i) != TOUPPER (i))
20467 rm -f conftest$ac_exeext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20469 (eval $ac_link) 2>&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20480 echo "$as_me: program exited with status $ac_status" >&5
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 ( exit $ac_status )
20485 ac_cv_header_stdc=no
20487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20491 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20492 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20493 if test $ac_cv_header_stdc = yes; then
20495 cat >>confdefs.h <<\_ACEOF
20496 #define STDC_HEADERS 1
20501 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20502 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20503 if test "${ac_cv_header_time+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 cat >conftest.$ac_ext <<_ACEOF
20507 #line $LINENO "configure"
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 #include <sys/types.h>
20514 #include <sys/time.h>
20520 if ((struct tm *) 0)
20526 rm -f conftest.$ac_objext
20527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20528 (eval $ac_compile) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } &&
20532 { ac_try='test -s conftest.$ac_objext'
20533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534 (eval $ac_try) 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 ac_cv_header_time=yes
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ac_cv_header_time=no
20545 rm -f conftest.$ac_objext conftest.$ac_ext
20547 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20548 echo "${ECHO_T}$ac_cv_header_time" >&6
20549 if test $ac_cv_header_time = yes; then
20551 cat >>confdefs.h <<\_ACEOF
20552 #define TIME_WITH_SYS_TIME 1
20557 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20558 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20559 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 cat >conftest.$ac_ext <<_ACEOF
20563 #line $LINENO "configure"
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 #include <sys/types.h>
20570 #include <sys/wait.h>
20571 #ifndef WEXITSTATUS
20572 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20575 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20583 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590 (eval $ac_compile) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
20594 { ac_try='test -s conftest.$ac_objext'
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 ac_cv_header_sys_wait_h=yes
20602 echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_cv_header_sys_wait_h=no
20607 rm -f conftest.$ac_objext conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20610 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20611 if test $ac_cv_header_sys_wait_h = yes; then
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_SYS_WAIT_H 1
20679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20681 echo "$as_me:$LINENO: checking for $ac_header" >&5
20682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20689 # Is the header compilable?
20690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20692 cat >conftest.$ac_ext <<_ACEOF
20693 #line $LINENO "configure"
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 $ac_includes_default
20700 #include <$ac_header>
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704 (eval $ac_compile) 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
20708 { ac_try='test -s conftest.$ac_objext'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 ac_header_compiler=yes
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_header_compiler=no
20721 rm -f conftest.$ac_objext conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6
20725 # Is the header present?
20726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20729 #line $LINENO "configure"
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735 #include <$ac_header>
20737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } >/dev/null; then
20745 if test -s conftest.err; then
20746 ac_cpp_err=$ac_c_preproc_warn_flag
20753 if test -z "$ac_cpp_err"; then
20754 ac_header_preproc=yes
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_header_preproc=no
20761 rm -f conftest.err conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20763 echo "${ECHO_T}$ac_header_preproc" >&6
20765 # So? What about this header?
20766 case $ac_header_compiler:$ac_header_preproc in
20768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20774 ## ------------------------------------ ##
20775 ## Report this to bug-autoconf@gnu.org. ##
20776 ## ------------------------------------ ##
20779 sed "s/^/$as_me: WARNING: /" >&2
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20790 ## ------------------------------------ ##
20791 ## Report this to bug-autoconf@gnu.org. ##
20792 ## ------------------------------------ ##
20795 sed "s/^/$as_me: WARNING: /" >&2
20798 echo "$as_me:$LINENO: checking for $ac_header" >&5
20799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20801 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 eval "$as_ac_Header=$ac_header_preproc"
20805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810 cat >>confdefs.h <<_ACEOF
20811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20820 if test "${ac_cv_header_regex_h+set}" = set; then
20821 echo "$as_me:$LINENO: checking for regex.h" >&5
20822 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20823 if test "${ac_cv_header_regex_h+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20827 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20829 # Is the header compilable?
20830 echo "$as_me:$LINENO: checking regex.h usability" >&5
20831 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20832 cat >conftest.$ac_ext <<_ACEOF
20833 #line $LINENO "configure"
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20842 rm -f conftest.$ac_objext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20844 (eval $ac_compile) 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } &&
20848 { ac_try='test -s conftest.$ac_objext'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 ac_header_compiler=yes
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20859 ac_header_compiler=no
20861 rm -f conftest.$ac_objext conftest.$ac_ext
20862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20863 echo "${ECHO_T}$ac_header_compiler" >&6
20865 # Is the header present?
20866 echo "$as_me:$LINENO: checking regex.h presence" >&5
20867 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20869 #line $LINENO "configure"
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } >/dev/null; then
20885 if test -s conftest.err; then
20886 ac_cpp_err=$ac_c_preproc_warn_flag
20893 if test -z "$ac_cpp_err"; then
20894 ac_header_preproc=yes
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899 ac_header_preproc=no
20901 rm -f conftest.err conftest.$ac_ext
20902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20903 echo "${ECHO_T}$ac_header_preproc" >&6
20905 # So? What about this header?
20906 case $ac_header_compiler:$ac_header_preproc in
20908 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20909 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20911 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20914 ## ------------------------------------ ##
20915 ## Report this to bug-autoconf@gnu.org. ##
20916 ## ------------------------------------ ##
20919 sed "s/^/$as_me: WARNING: /" >&2
20922 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20923 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20924 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20925 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20927 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20930 ## ------------------------------------ ##
20931 ## Report this to bug-autoconf@gnu.org. ##
20932 ## ------------------------------------ ##
20935 sed "s/^/$as_me: WARNING: /" >&2
20938 echo "$as_me:$LINENO: checking for regex.h" >&5
20939 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20940 if test "${ac_cv_header_regex_h+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_cv_header_regex_h=$ac_header_preproc
20945 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20946 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20949 if test $ac_cv_header_regex_h = yes; then
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_REGEX_H
20958 if test "x$ac_cv_header_regex_h" = "xyes"; then
20961 cat >conftest.$ac_ext <<_ACEOF
20962 #line $LINENO "configure"
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20969 #ifdef REG_EXTENDED
20974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20975 $EGREP "yes" >/dev/null 2>&1; then
20977 cat >>confdefs.h <<\_ACEOF
20978 #define HAVE_REG_EXTENDED
20988 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
20991 cat >>confdefs.h <<\_ACEOF
20997 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21000 cat >>confdefs.h <<\_ACEOF
21006 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21007 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21010 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21011 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21012 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21017 old_CFLAGS="$CFLAGS"
21018 cat >conftest.$ac_ext <<_ACEOF
21019 #line $LINENO "configure"
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21026 #include <openssl/ssl.h>
21035 rm -f conftest.$ac_objext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21037 (eval $ac_compile) 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } &&
21041 { ac_try='test -s conftest.$ac_objext'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21054 rm -f conftest.$ac_objext conftest.$ac_ext
21056 if test "x$smart_include" = "x"; then
21059 if test "x$LOCATE" != "x"; then
21063 for x in `${LOCATE} $file 2>/dev/null`; do
21064 base=`echo $x | sed "s%/${file}%%"`
21065 if test "x$x" = "x$base"; then
21069 dir=`${DIRNAME} $x 2>/dev/null`
21070 exclude=`echo ${dir} | ${GREP} /home`
21071 if test "x$exclude" != "x"; then
21075 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21076 if test "x$already" = "x"; then
21082 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21085 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21086 CFLAGS="$old_CFLAGS -I$try"
21088 cat >conftest.$ac_ext <<_ACEOF
21089 #line $LINENO "configure"
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21096 #include <openssl/ssl.h>
21105 rm -f conftest.$ac_objext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107 (eval $ac_compile) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
21111 { ac_try='test -s conftest.$ac_objext'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; }; then
21117 smart_include="-I$try"
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21124 rm -f conftest.$ac_objext conftest.$ac_ext
21126 if test "x$smart_include" != "x"; then
21130 CFLAGS="$old_CFLAGS"
21133 if test "x$smart_include" != "x"; then
21134 echo "$as_me:$LINENO: result: yes" >&5
21135 echo "${ECHO_T}yes" >&6
21136 eval "ac_cv_header_$ac_safe=yes"
21137 CFLAGS="$old_CFLAGS $smart_include"
21138 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21140 echo "$as_me:$LINENO: result: no" >&5
21141 echo "${ECHO_T}no" >&6
21146 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_OPENSSL_SSL_H
21152 old_CPPFLAGS="$CPPFLAGS"
21153 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21154 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21169 echo "$as_me:$LINENO: checking for $ac_header" >&5
21170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21177 # Is the header compilable?
21178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21180 cat >conftest.$ac_ext <<_ACEOF
21181 #line $LINENO "configure"
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 $ac_includes_default
21188 #include <$ac_header>
21190 rm -f conftest.$ac_objext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21192 (eval $ac_compile) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } &&
21196 { ac_try='test -s conftest.$ac_objext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_header_compiler=yes
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_header_compiler=no
21209 rm -f conftest.$ac_objext conftest.$ac_ext
21210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21211 echo "${ECHO_T}$ac_header_compiler" >&6
21213 # Is the header present?
21214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21216 cat >conftest.$ac_ext <<_ACEOF
21217 #line $LINENO "configure"
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <$ac_header>
21225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21228 grep -v '^ *+' conftest.er1 >conftest.err
21230 cat conftest.err >&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } >/dev/null; then
21233 if test -s conftest.err; then
21234 ac_cpp_err=$ac_c_preproc_warn_flag
21241 if test -z "$ac_cpp_err"; then
21242 ac_header_preproc=yes
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_header_preproc=no
21249 rm -f conftest.err conftest.$ac_ext
21250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21251 echo "${ECHO_T}$ac_header_preproc" >&6
21253 # So? What about this header?
21254 case $ac_header_compiler:$ac_header_preproc in
21256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21262 ## ------------------------------------ ##
21263 ## Report this to bug-autoconf@gnu.org. ##
21264 ## ------------------------------------ ##
21267 sed "s/^/$as_me: WARNING: /" >&2
21270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21278 ## ------------------------------------ ##
21279 ## Report this to bug-autoconf@gnu.org. ##
21280 ## ------------------------------------ ##
21283 sed "s/^/$as_me: WARNING: /" >&2
21286 echo "$as_me:$LINENO: checking for $ac_header" >&5
21287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 eval "$as_ac_Header=$ac_header_preproc"
21293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21298 cat >>confdefs.h <<_ACEOF
21299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21306 CPPFLAGS="$old_CPPFLAGS"
21308 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21309 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21310 old_CPPFLAGS=$CPPFLAGS
21312 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21313 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
21315 cat >conftest.$ac_ext <<_ACEOF
21316 #line $LINENO "configure"
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 #include <openssl/crypto.h>
21323 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21329 $EGREP "yes" >/dev/null 2>&1; then
21334 if test "x$goodssl" != "xyes"; then
21335 echo "$as_me:$LINENO: result: no" >&5
21336 echo "${ECHO_T}no" >&6
21340 echo "$as_me:$LINENO: result: yes" >&5
21341 echo "${ECHO_T}yes" >&6
21343 # Look for the OpenSSL libraries.
21344 smart_try_dir=$OPENSSL_LIB_DIR
21347 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
21348 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
21349 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21350 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
21356 LIBS="$LIBS -lcrypto"
21357 cat >conftest.$ac_ext <<_ACEOF
21358 #line $LINENO "configure"
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21364 extern char DH_new();
21373 rm -f conftest.$ac_objext conftest$ac_exeext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21375 (eval $ac_link) 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } &&
21379 { ac_try='test -s conftest$ac_exeext'
21380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381 (eval $ac_try) 2>&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
21385 smart_lib="-lcrypto"
21387 echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21393 if test "x$smart_lib" = "x"; then
21396 if test "x$LOCATE" != "x"; then
21398 file=libcrypto${libltdl_cv_shlibext}
21400 for x in `${LOCATE} $file 2>/dev/null`; do
21401 base=`echo $x | sed "s%/${file}%%"`
21402 if test "x$x" = "x$base"; then
21406 dir=`${DIRNAME} $x 2>/dev/null`
21407 exclude=`echo ${dir} | ${GREP} /home`
21408 if test "x$exclude" != "x"; then
21412 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21413 if test "x$already" = "x"; then
21419 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21423 if test "x$LOCATE" != "x"; then
21427 for x in `${LOCATE} $file 2>/dev/null`; do
21428 base=`echo $x | sed "s%/${file}%%"`
21429 if test "x$x" = "x$base"; then
21433 dir=`${DIRNAME} $x 2>/dev/null`
21434 exclude=`echo ${dir} | ${GREP} /home`
21435 if test "x$exclude" != "x"; then
21439 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21440 if test "x$already" = "x"; then
21446 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21449 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21450 LIBS="$old_LIBS -L$try -lcrypto"
21452 cat >conftest.$ac_ext <<_ACEOF
21453 #line $LINENO "configure"
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 extern char DH_new();
21468 rm -f conftest.$ac_objext conftest$ac_exeext
21469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21470 (eval $ac_link) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } &&
21474 { ac_try='test -s conftest$ac_exeext'
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; }; then
21480 smart_lib="-L$try -lcrypto"
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21487 if test "x$smart_lib" != "x"; then
21494 if test "x$smart_lib" != "x"; then
21495 echo "$as_me:$LINENO: result: yes" >&5
21496 echo "${ECHO_T}yes" >&6
21497 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21498 LIBS="$old_LIBS $smart_lib"
21499 SMART_LIBS="$SMART_LIBS $smart_lib"
21501 echo "$as_me:$LINENO: result: no" >&5
21502 echo "${ECHO_T}no" >&6
21505 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
21508 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
21509 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
21510 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21511 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
21518 cat >conftest.$ac_ext <<_ACEOF
21519 #line $LINENO "configure"
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21525 extern char SSL_new();
21534 rm -f conftest.$ac_objext conftest$ac_exeext
21535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21536 (eval $ac_link) 2>&5
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
21540 { ac_try='test -s conftest$ac_exeext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21554 if test "x$smart_lib" = "x"; then
21557 if test "x$LOCATE" != "x"; then
21559 file=libssl${libltdl_cv_shlibext}
21561 for x in `${LOCATE} $file 2>/dev/null`; do
21562 base=`echo $x | sed "s%/${file}%%"`
21563 if test "x$x" = "x$base"; then
21567 dir=`${DIRNAME} $x 2>/dev/null`
21568 exclude=`echo ${dir} | ${GREP} /home`
21569 if test "x$exclude" != "x"; then
21573 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21574 if test "x$already" = "x"; then
21580 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21584 if test "x$LOCATE" != "x"; then
21588 for x in `${LOCATE} $file 2>/dev/null`; do
21589 base=`echo $x | sed "s%/${file}%%"`
21590 if test "x$x" = "x$base"; then
21594 dir=`${DIRNAME} $x 2>/dev/null`
21595 exclude=`echo ${dir} | ${GREP} /home`
21596 if test "x$exclude" != "x"; then
21600 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21601 if test "x$already" = "x"; then
21607 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21610 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21611 LIBS="$old_LIBS -L$try -lssl"
21613 cat >conftest.$ac_ext <<_ACEOF
21614 #line $LINENO "configure"
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 extern char SSL_new();
21629 rm -f conftest.$ac_objext conftest$ac_exeext
21630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21631 (eval $ac_link) 2>&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -s conftest$ac_exeext'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
21641 smart_lib="-L$try -lssl"
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21648 if test "x$smart_lib" != "x"; then
21655 if test "x$smart_lib" != "x"; then
21656 echo "$as_me:$LINENO: result: yes" >&5
21657 echo "${ECHO_T}yes" >&6
21658 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21659 LIBS="$old_LIBS $smart_lib"
21660 SMART_LIBS="$SMART_LIBS $smart_lib"
21662 echo "$as_me:$LINENO: result: no" >&5
21663 echo "${ECHO_T}no" >&6
21666 if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
21667 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21668 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
21670 if test "x$OPENSSL_LIB_DIR" != "x"; then
21671 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21673 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21680 CPPFLAGS=$old_CPPFLAGS
21685 export OPENSSL_LIBS
21688 echo "$as_me:$LINENO: checking for off_t" >&5
21689 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21690 if test "${ac_cv_type_off_t+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 cat >conftest.$ac_ext <<_ACEOF
21694 #line $LINENO "configure"
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 $ac_includes_default
21706 if (sizeof (off_t))
21712 rm -f conftest.$ac_objext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714 (eval $ac_compile) 2>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } &&
21718 { ac_try='test -s conftest.$ac_objext'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 ac_cv_type_off_t=yes
21726 echo "$as_me: failed program was:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 ac_cv_type_off_t=no
21731 rm -f conftest.$ac_objext conftest.$ac_ext
21733 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21734 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21735 if test $ac_cv_type_off_t = yes; then
21739 cat >>confdefs.h <<_ACEOF
21745 echo "$as_me:$LINENO: checking for pid_t" >&5
21746 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21747 if test "${ac_cv_type_pid_t+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 cat >conftest.$ac_ext <<_ACEOF
21751 #line $LINENO "configure"
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 $ac_includes_default
21763 if (sizeof (pid_t))
21769 rm -f conftest.$ac_objext
21770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21771 (eval $ac_compile) 2>&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } &&
21775 { ac_try='test -s conftest.$ac_objext'
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; }; then
21781 ac_cv_type_pid_t=yes
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21786 ac_cv_type_pid_t=no
21788 rm -f conftest.$ac_objext conftest.$ac_ext
21790 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21791 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21792 if test $ac_cv_type_pid_t = yes; then
21796 cat >>confdefs.h <<_ACEOF
21802 echo "$as_me:$LINENO: checking for size_t" >&5
21803 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21804 if test "${ac_cv_type_size_t+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 cat >conftest.$ac_ext <<_ACEOF
21808 #line $LINENO "configure"
21811 cat confdefs.h >>conftest.$ac_ext
21812 cat >>conftest.$ac_ext <<_ACEOF
21813 /* end confdefs.h. */
21814 $ac_includes_default
21820 if (sizeof (size_t))
21826 rm -f conftest.$ac_objext
21827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21828 (eval $ac_compile) 2>&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
21832 { ac_try='test -s conftest.$ac_objext'
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; }; then
21838 ac_cv_type_size_t=yes
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 ac_cv_type_size_t=no
21845 rm -f conftest.$ac_objext conftest.$ac_ext
21847 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21848 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21849 if test $ac_cv_type_size_t = yes; then
21853 cat >>confdefs.h <<_ACEOF
21854 #define size_t unsigned
21859 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21860 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21861 if test "${ac_cv_type_uid_t+set}" = set; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 cat >conftest.$ac_ext <<_ACEOF
21865 #line $LINENO "configure"
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <sys/types.h>
21874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21875 $EGREP "uid_t" >/dev/null 2>&1; then
21876 ac_cv_type_uid_t=yes
21878 ac_cv_type_uid_t=no
21883 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21884 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21885 if test $ac_cv_type_uid_t = no; then
21887 cat >>confdefs.h <<\_ACEOF
21892 cat >>confdefs.h <<\_ACEOF
21900 echo "$as_me:$LINENO: checking for socklen_t" >&5
21901 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21902 if test "${ac_cv_type_socklen_t+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21905 ac_cv_type_socklen_t=no
21906 cat >conftest.$ac_ext <<_ACEOF
21907 #line $LINENO "configure"
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 #ifdef HAVE_SYS_TYPES_H
21914 #include <sys/types.h>
21916 #ifdef HAVE_SYS_SOCKET_H
21917 #include <sys/socket.h>
21928 rm -f conftest.$ac_objext
21929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21930 (eval $ac_compile) 2>&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } &&
21934 { ac_try='test -s conftest.$ac_objext'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_type_socklen_t=yes
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21946 rm -f conftest.$ac_objext conftest.$ac_ext
21950 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21951 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21953 if test "$ac_cv_type_socklen_t" != "yes"; then
21955 cat >>confdefs.h <<\_ACEOF
21956 #define socklen_t int
21963 echo "$as_me:$LINENO: checking for uint8_t" >&5
21964 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21965 if test "${ac_cv_type_uint8_t+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 ac_cv_type_uint8_t=no
21969 cat >conftest.$ac_ext <<_ACEOF
21970 #line $LINENO "configure"
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 #ifdef HAVE_INTTYPES_H
21977 #include <inttypes.h>
21979 #ifdef HAVE_STDINT_H
21980 #include <stdint.h>
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993 (eval $ac_compile) 2>&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
21997 { ac_try='test -s conftest.$ac_objext'
21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999 (eval $ac_try) 2>&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); }; }; then
22003 ac_cv_type_uint8_t=yes
22005 echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22009 rm -f conftest.$ac_objext conftest.$ac_ext
22013 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22014 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22016 if test "$ac_cv_type_uint8_t" != "yes"; then
22018 cat >>confdefs.h <<\_ACEOF
22019 #define uint8_t unsigned char
22026 echo "$as_me:$LINENO: checking for uint16_t" >&5
22027 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22028 if test "${ac_cv_type_uint16_t+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 ac_cv_type_uint16_t=no
22032 cat >conftest.$ac_ext <<_ACEOF
22033 #line $LINENO "configure"
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 #ifdef HAVE_INTTYPES_H
22040 #include <inttypes.h>
22042 #ifdef HAVE_STDINT_H
22043 #include <stdint.h>
22054 rm -f conftest.$ac_objext
22055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22056 (eval $ac_compile) 2>&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } &&
22060 { ac_try='test -s conftest.$ac_objext'
22061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 ac_cv_type_uint16_t=yes
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22072 rm -f conftest.$ac_objext conftest.$ac_ext
22076 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22077 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22079 if test "$ac_cv_type_uint16_t" != "yes"; then
22081 cat >>confdefs.h <<\_ACEOF
22082 #define uint16_t unsigned short
22089 echo "$as_me:$LINENO: checking for uint32_t" >&5
22090 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22091 if test "${ac_cv_type_uint32_t+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22094 ac_cv_type_uint32_t=no
22095 cat >conftest.$ac_ext <<_ACEOF
22096 #line $LINENO "configure"
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 #ifdef HAVE_INTTYPES_H
22103 #include <inttypes.h>
22105 #ifdef HAVE_STDINT_H
22106 #include <stdint.h>
22117 rm -f conftest.$ac_objext
22118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22119 (eval $ac_compile) 2>&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } &&
22123 { ac_try='test -s conftest.$ac_objext'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 ac_cv_type_uint32_t=yes
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22135 rm -f conftest.$ac_objext conftest.$ac_ext
22139 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22140 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22142 if test "$ac_cv_type_uint32_t" != "yes"; then
22144 cat >>confdefs.h <<\_ACEOF
22145 #define uint32_t unsigned int
22200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22201 echo "$as_me:$LINENO: checking for $ac_func" >&5
22202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22203 if eval "test \"\${$as_ac_var+set}\" = set"; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 cat >conftest.$ac_ext <<_ACEOF
22207 #line $LINENO "configure"
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22213 /* System header to define __stub macros and hopefully few prototypes,
22214 which can conflict with char $ac_func (); below.
22215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216 <limits.h> exists even on freestanding compilers. */
22218 # include <limits.h>
22220 # include <assert.h>
22222 /* Override any gcc2 internal prototype to avoid an error. */
22227 /* We use char because int might match the return type of a gcc2
22228 builtin and then its argument prototype would still apply. */
22230 /* The GNU C library defines this for functions which it implements
22231 to always fail with ENOSYS. Some functions are actually named
22232 something starting with __ and the normal name is an alias. */
22233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22236 char (*f) () = $ac_func;
22245 return f != $ac_func;
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22252 (eval $ac_link) 2>&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } &&
22256 { ac_try='test -s conftest$ac_exeext'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; }; then
22262 eval "$as_ac_var=yes"
22264 echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 eval "$as_ac_var=no"
22269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22273 if test `eval echo '${'$as_ac_var'}'` = yes; then
22274 cat >>confdefs.h <<_ACEOF
22275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22292 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22293 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
22294 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22297 cat >conftest.$ac_ext <<_ACEOF
22298 #line $LINENO "configure"
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h. */
22306 #include <string.h>
22307 #ifdef HAVE_UNISTD_H
22308 #include <unistd.h>
22310 #ifdef HAVE_CRYPT_H
22313 #ifdef HAVE_ERRNO_H
22316 #ifdef HAVE_RESOURCE_H
22317 #include <resource.h>
22319 #ifdef HAVE_GETOPT_H
22320 #include <getopt.h>
22322 #ifdef HAVE_MALLOC_H
22323 #include <malloc.h>
22328 #ifdef HAVE_UTMPX_H
22331 #ifdef HAVE_SYS_SELECT_H
22332 #include <sys/select.h>
22334 #ifdef HAVE_DLFCN_H
22337 #ifdef HAVE_REGEX_H
22340 #ifdef HAVE_SYSLOG_H
22341 #include <syslog.h>
22343 #ifdef HAVE_INTTYPES_H
22344 #include <inttypes.h>
22346 #ifdef HAVE_STDINT_H
22347 #include <stdint.h>
22349 #ifdef HAVE_ARPA_INET_H
22350 #include <arpa/inet.h>
22356 char *(*pfn) = (char *(*)) $ac_func
22361 rm -f conftest.$ac_objext
22362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363 (eval $ac_compile) 2>&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } &&
22367 { ac_try='test -s conftest.$ac_objext'
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; }; then
22373 eval "radius_cv_decl_needed_$ac_func=no"
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22378 eval "radius_cv_decl_needed_$ac_func=yes"
22380 rm -f conftest.$ac_objext conftest.$ac_ext
22383 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22384 echo "$as_me:$LINENO: result: yes" >&5
22385 echo "${ECHO_T}yes" >&6
22386 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22387 cat >>confdefs.h <<_ACEOF
22388 #define $radius_tr_decl 1
22392 echo "$as_me:$LINENO: result: no" >&5
22393 echo "${ECHO_T}no" >&6
22399 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22400 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22401 if test "${ac_cv_type_signal+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 cat >conftest.$ac_ext <<_ACEOF
22405 #line $LINENO "configure"
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <sys/types.h>
22412 #include <signal.h>
22417 extern "C" void (*signal (int, void (*)(int)))(int);
22419 void (*signal ()) ();
22430 rm -f conftest.$ac_objext
22431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22432 (eval $ac_compile) 2>&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } &&
22436 { ac_try='test -s conftest.$ac_objext'
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; }; then
22442 ac_cv_type_signal=void
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 ac_cv_type_signal=int
22449 rm -f conftest.$ac_objext conftest.$ac_ext
22451 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22452 echo "${ECHO_T}$ac_cv_type_signal" >&6
22454 cat >>confdefs.h <<_ACEOF
22455 #define RETSIGTYPE $ac_cv_type_signal
22460 if test "x$ac_cv_header_utmpx_h" = "xyes"
22463 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22464 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22467 cat >conftest.$ac_ext <<_ACEOF
22468 #line $LINENO "configure"
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22477 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22483 int foo = offsetof(struct utmpx, ut_xtime)
22488 rm -f conftest.$ac_objext
22489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22490 (eval $ac_compile) 2>&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } &&
22494 { ac_try='test -s conftest.$ac_objext'
22495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496 (eval $ac_try) 2>&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; }; then
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22507 rm -f conftest.$ac_objext conftest.$ac_ext
22509 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22510 if test "x$has_element" != "x"; then
22511 echo "$as_me:$LINENO: result: yes" >&5
22512 echo "${ECHO_T}yes" >&6
22513 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22515 echo "$as_me:$LINENO: result: no" >&5
22516 echo "${ECHO_T}no" >&6
22517 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22520 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22523 cat >>confdefs.h <<\_ACEOF
22524 #define ut_xtime ut_tv.tv_sec
22531 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22532 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22535 cat >conftest.$ac_ext <<_ACEOF
22536 #line $LINENO "configure"
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h. */
22543 #include <netinet/in.h>
22545 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22551 int foo = offsetof(struct in_pktinfo, ipi_addr)
22556 rm -f conftest.$ac_objext
22557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558 (eval $ac_compile) 2>&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } &&
22562 { ac_try='test -s conftest.$ac_objext'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22575 rm -f conftest.$ac_objext conftest.$ac_ext
22577 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22578 if test "x$has_element" != "x"; then
22579 echo "$as_me:$LINENO: result: yes" >&5
22580 echo "${ECHO_T}yes" >&6
22581 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22583 echo "$as_me:$LINENO: result: no" >&5
22584 echo "${ECHO_T}no" >&6
22585 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22588 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22591 cat >>confdefs.h <<\_ACEOF
22592 #define HAVE_IP_PKTINFO
22598 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22599 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22600 if test "${ac_cv_c_const+set}" = set; then
22601 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 cat >conftest.$ac_ext <<_ACEOF
22604 #line $LINENO "configure"
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22614 /* FIXME: Include the comments suggested by Paul. */
22615 #ifndef __cplusplus
22616 /* Ultrix mips cc rejects this. */
22617 typedef int charset[2];
22619 /* SunOS 4.1.1 cc rejects this. */
22620 char const *const *ccp;
22622 /* NEC SVR4.0.2 mips cc rejects this. */
22623 struct point {int x, y;};
22624 static struct point const zero = {0,0};
22625 /* AIX XL C 1.02.0.0 rejects this.
22626 It does not let you subtract one const X* pointer from another in
22627 an arm of an if-expression whose if-part is not a constant
22629 const char *g = "string";
22630 ccp = &g + (g ? g-g : 0);
22631 /* HPUX 7.0 cc rejects these. */
22634 ccp = (char const *const *) p;
22635 { /* SCO 3.2v4 cc rejects this. */
22637 char const *s = 0 ? (char *) 0 : (char const *) 0;
22641 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22642 int x[] = {25, 17};
22643 const int *foo = &x[0];
22646 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22647 typedef const int *iptr;
22651 { /* AIX XL C 1.02.0.0 rejects this saying
22652 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22653 struct s { int j; const int *ap[3]; };
22654 struct s *b; b->j = 5;
22656 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22657 const int foo = 10;
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667 (eval $ac_compile) 2>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } &&
22671 { ac_try='test -s conftest.$ac_objext'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }; then
22679 echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22684 rm -f conftest.$ac_objext conftest.$ac_ext
22686 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22687 echo "${ECHO_T}$ac_cv_c_const" >&6
22688 if test $ac_cv_c_const = no; then
22690 cat >>confdefs.h <<\_ACEOF
22697 echo "$as_me:$LINENO: checking type of OS" >&5
22698 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22700 echo "$as_me:$LINENO: result: $OS" >&5
22701 echo "${ECHO_T}$OS" >&6
22702 if test "$OS" = "OS/2"; then
22709 if test "x$GCC" = "xyes"; then
22710 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22713 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22714 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22715 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22716 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22717 CFLAGS="$CFLAGS $devflags"
22719 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22720 echo "${ECHO_T}yes. Using $devflags" >&6
22723 CFLAGS="$CFLAGS -DNDEBUG"
22725 echo "$as_me:$LINENO: result: no." >&5
22726 echo "${ECHO_T}no." >&6
22730 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22731 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22732 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22733 echo $ECHO_N "(cached) $ECHO_C" >&6
22735 ac_check_lib_save_LIBS=$LIBS
22736 LIBS="-lcrypt $LIBS"
22737 cat >conftest.$ac_ext <<_ACEOF
22738 #line $LINENO "configure"
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22745 /* Override any gcc2 internal prototype to avoid an error. */
22749 /* We use char because int might match the return type of a gcc2
22750 builtin and then its argument prototype would still apply. */
22760 rm -f conftest.$ac_objext conftest$ac_exeext
22761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22762 (eval $ac_link) 2>&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } &&
22766 { ac_try='test -s conftest$ac_exeext'
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; }; then
22772 ac_cv_lib_crypt_crypt=yes
22774 echo "$as_me: failed program was:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22777 ac_cv_lib_crypt_crypt=no
22779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22780 LIBS=$ac_check_lib_save_LIBS
22782 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22783 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22784 if test $ac_cv_lib_crypt_crypt = yes; then
22789 if test "$CRYPTLIB" != ""; then
22791 cat >>confdefs.h <<\_ACEOF
22796 echo "$as_me:$LINENO: checking for crypt" >&5
22797 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22798 if test "${ac_cv_func_crypt+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 cat >conftest.$ac_ext <<_ACEOF
22802 #line $LINENO "configure"
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 /* System header to define __stub macros and hopefully few prototypes,
22809 which can conflict with char crypt (); below.
22810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22811 <limits.h> exists even on freestanding compilers. */
22813 # include <limits.h>
22815 # include <assert.h>
22817 /* Override any gcc2 internal prototype to avoid an error. */
22822 /* We use char because int might match the return type of a gcc2
22823 builtin and then its argument prototype would still apply. */
22825 /* The GNU C library defines this for functions which it implements
22826 to always fail with ENOSYS. Some functions are actually named
22827 something starting with __ and the normal name is an alias. */
22828 #if defined (__stub_crypt) || defined (__stub___crypt)
22831 char (*f) () = crypt;
22845 rm -f conftest.$ac_objext conftest$ac_exeext
22846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22847 (eval $ac_link) 2>&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } &&
22851 { ac_try='test -s conftest$ac_exeext'
22852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853 (eval $ac_try) 2>&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }; then
22857 ac_cv_func_crypt=yes
22859 echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22862 ac_cv_func_crypt=no
22864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22866 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22867 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22868 if test $ac_cv_func_crypt = yes; then
22870 cat >>confdefs.h <<\_ACEOF
22878 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22879 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22880 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22883 ac_check_lib_save_LIBS=$LIBS
22884 LIBS="-lcipher $LIBS"
22885 cat >conftest.$ac_ext <<_ACEOF
22886 #line $LINENO "configure"
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h. */
22893 /* Override any gcc2 internal prototype to avoid an error. */
22897 /* We use char because int might match the return type of a gcc2
22898 builtin and then its argument prototype would still apply. */
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22910 (eval $ac_link) 2>&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } &&
22914 { ac_try='test -s conftest$ac_exeext'
22915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; }; then
22920 ac_cv_lib_cipher_setkey=yes
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 ac_cv_lib_cipher_setkey=no
22927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22928 LIBS=$ac_check_lib_save_LIBS
22930 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22931 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22932 if test $ac_cv_lib_cipher_setkey = yes; then
22933 CRYPTLIB="${CRYPTLIB} -lcipher"
22939 if test "x$WITH_SNMP" = "xyes"; then
22944 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22945 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22947 cat >conftest.$ac_ext <<_ACEOF
22948 #line $LINENO "configure"
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22955 #ifdef HAVE_SYS_TYPES_H
22956 #include <sys/types.h>
22958 #ifdef HAVE_STDINT_H
22959 #include <stdint.h>
22961 #ifdef HAVE_STDIO_H
22964 #ifdef HAVE_NETDB_H
22967 #ifdef HAVE_UNISTD_H
22968 #include <unistd.h>
22970 #include <ucd-snmp/ucd-snmp-config.h>
22971 #include <ucd-snmp/asn1.h>
22972 #include <ucd-snmp/snmp.h>
22973 #include <ucd-snmp/snmp_impl.h>
22982 rm -f conftest.$ac_objext
22983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22984 (eval $ac_compile) 2>&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } &&
22988 { ac_try='test -s conftest.$ac_objext'
22989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; }; then
22994 SNMP_INCLUDE="";ucdsnmp=yes
22996 echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
23001 rm -f conftest.$ac_objext conftest.$ac_ext
23003 if test "x$ucdsnmp" = "x"; then
23004 old_CFLAGS="$CFLAGS"
23005 for try in /usr/include /usr/local/include $snmp_include_dir; do
23006 CFLAGS="$old_CFLAGS -I$try"
23007 cat >conftest.$ac_ext <<_ACEOF
23008 #line $LINENO "configure"
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23015 #ifdef HAVE_SYS_TYPES_H
23016 #include <sys/types.h>
23018 #ifdef HAVE_STDINT_H
23019 #include <stdint.h>
23021 #ifdef HAVE_STDIO_H
23024 #ifdef HAVE_NETDB_H
23027 #ifdef HAVE_UNISTD_H
23028 #include <unistd.h>
23030 #include <ucd-snmp/ucd-snmp-config.h>
23031 #include <ucd-snmp/asn1.h>
23032 #include <ucd-snmp/snmp.h>
23033 #include <ucd-snmp/snmp_impl.h>
23042 rm -f conftest.$ac_objext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23044 (eval $ac_compile) 2>&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } &&
23048 { ac_try='test -s conftest.$ac_objext'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23054 SNMP_INCLUDE="-I$try";ucdsnmp=yes
23056 echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23061 rm -f conftest.$ac_objext conftest.$ac_ext
23062 if test "x$ucdsnmp" != "x"; then
23066 CFLAGS="$old_CFLAGS"
23069 if test "x$ucdsnmp" = "x"; then
23070 old_CFLAGS="$CFLAGS"
23071 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23072 CFLAGS="$old_CFLAGS -I$try"
23073 cat >conftest.$ac_ext <<_ACEOF
23074 #line $LINENO "configure"
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h. */
23081 #ifdef HAVE_SYS_TYPES_H
23082 #include <sys/types.h>
23084 #ifdef HAVE_STDINT_H
23085 #include <stdint.h>
23087 #ifdef HAVE_STDIO_H
23090 #ifdef HAVE_NETDB_H
23093 #ifdef HAVE_UNISTD_H
23094 #include <unistd.h>
23098 #include <snmp_impl.h>
23107 rm -f conftest.$ac_objext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23109 (eval $ac_compile) 2>&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } &&
23113 { ac_try='test -s conftest.$ac_objext'
23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115 (eval $ac_try) 2>&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 SNMP_INCLUDE="";ucdsnmp=no
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23126 rm -f conftest.$ac_objext conftest.$ac_ext
23127 if test "x$ucdsnmp" != "x"; then
23131 CFLAGS="$old_CFLAGS"
23134 if test "x$ucdsnmp" = "x"; then
23135 old_CFLAGS="$CFLAGS"
23136 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23137 CFLAGS="$old_CFLAGS -I$try"
23138 cat >conftest.$ac_ext <<_ACEOF
23139 #line $LINENO "configure"
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23146 #ifdef HAVE_SYS_TYPES_H
23147 #include <sys/types.h>
23149 #ifdef HAVE_STDINT_H
23150 #include <stdint.h>
23152 #ifdef HAVE_STDIO_H
23155 #ifdef HAVE_NETDB_H
23158 #ifdef HAVE_UNISTD_H
23159 #include <unistd.h>
23163 #include <snmp_impl.h>
23172 rm -f conftest.$ac_objext
23173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23174 (eval $ac_compile) 2>&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
23178 { ac_try='test -s conftest.$ac_objext'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 SNMP_INCLUDE="-I$try";ucdsnmp=no
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23191 rm -f conftest.$ac_objext conftest.$ac_ext
23192 if test "x$ucdsnmp" != "x"; then
23196 CFLAGS="$old_CFLAGS"
23199 if test "x$ucdsnmp" = "x"; then
23200 echo "$as_me:$LINENO: result: no" >&5
23201 echo "${ECHO_T}no" >&6
23203 if test "x$ucdsnmp" = "xyes"; then
23204 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23205 echo "${ECHO_T}(ucd-snmp)yes" >&6
23207 cat >>confdefs.h <<\_ACEOF
23208 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
23212 echo "$as_me:$LINENO: result: yes" >&5
23213 echo "${ECHO_T}yes" >&6
23215 cat >>confdefs.h <<\_ACEOF
23216 #define HAVE_ASN1_SNMP_SNMPIMPL_H
23220 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23221 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
23224 LIBS="$old_LIBS -lsnmp"
23225 cat >conftest.$ac_ext <<_ACEOF
23226 #line $LINENO "configure"
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 extern char snmp_build_var_op();
23236 snmp_build_var_op()
23241 rm -f conftest.$ac_objext conftest$ac_exeext
23242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23243 (eval $ac_link) 2>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } &&
23247 { ac_try='test -s conftest$ac_exeext'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; }; then
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23262 if test "x$SNMP_LIBS" = "x"; then
23263 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23264 LIBS="$old_LIBS -L$try -lsnmp"
23265 cat >conftest.$ac_ext <<_ACEOF
23266 #line $LINENO "configure"
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 extern char snmp_build_var_op();
23276 snmp_build_var_op()
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283 (eval $ac_link) 2>&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
23287 { ac_try='test -s conftest$ac_exeext'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23293 SNMP_LIBS="-L$try -lsnmp"
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23301 if test "x$SNMP_LIBS" != "x"; then
23304 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23305 cat >conftest.$ac_ext <<_ACEOF
23306 #line $LINENO "configure"
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 extern char snmp_build_var_op();
23316 snmp_build_var_op()
23321 rm -f conftest.$ac_objext conftest$ac_exeext
23322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23323 (eval $ac_link) 2>&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } &&
23327 { ac_try='test -s conftest$ac_exeext'
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; }; then
23333 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23335 echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23341 if test "x$SNMP_LIBS" != "x"; then
23344 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23345 cat >conftest.$ac_ext <<_ACEOF
23346 #line $LINENO "configure"
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23352 extern char snmp_build_var_op();
23356 snmp_build_var_op()
23361 rm -f conftest.$ac_objext conftest$ac_exeext
23362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23363 (eval $ac_link) 2>&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } &&
23367 { ac_try='test -s conftest$ac_exeext'
23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23375 echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23381 if test "x$SNMP_LIBS" != "x"; then
23388 CFLAGS="$old_CFLAGS"
23389 if test "x$SNMP_LIBS" = "x"; then
23390 echo "$as_me:$LINENO: result: no" >&5
23391 echo "${ECHO_T}no" >&6
23394 echo "$as_me:$LINENO: result: yes" >&5
23395 echo "${ECHO_T}yes" >&6
23397 cat >>confdefs.h <<\_ACEOF
23402 cat >>confdefs.h <<\_ACEOF
23403 #define HAVE_LIBSNMP
23412 cat >>confdefs.h <<\_ACEOF
23417 cat >>confdefs.h <<\_ACEOF
23418 #define SYSVSTYLE 2
23422 cat >>confdefs.h <<\_ACEOF
23426 gethostbyaddrrstyle=""
23427 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23428 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23432 cat >>confdefs.h <<\_ACEOF
23433 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23436 gethostbyaddrrstyle=BSD
23437 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23438 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23441 if test "x$gethostbyaddrrstyle" = "x"; then
23442 cat >conftest.$ac_ext <<_ACEOF
23443 #line $LINENO "configure"
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23456 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23461 rm -f conftest.$ac_objext conftest$ac_exeext
23462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23463 (eval $ac_link) 2>&5
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); } &&
23467 { ac_try='test -s conftest$ac_exeext'
23468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469 (eval $ac_try) 2>&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
23475 cat >>confdefs.h <<\_ACEOF
23476 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23479 gethostbyaddrrstyle=GNU
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23488 if test "x$gethostbyaddrrstyle" = "x"; then
23489 cat >conftest.$ac_ext <<_ACEOF
23490 #line $LINENO "configure"
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23503 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510 (eval $ac_link) 2>&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
23514 { ac_try='test -s conftest$ac_exeext'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; }; then
23522 cat >>confdefs.h <<\_ACEOF
23523 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23526 gethostbyaddrrstyle=SYSV
23529 echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23535 if test "x$gethostbyaddrrstyle" = "x"; then
23536 cat >conftest.$ac_ext <<_ACEOF
23537 #line $LINENO "configure"
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23550 gethostbyaddr(NULL, 0, 0)
23555 rm -f conftest.$ac_objext conftest$ac_exeext
23556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23557 (eval $ac_link) 2>&5
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } &&
23561 { ac_try='test -s conftest$ac_exeext'
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23569 cat >>confdefs.h <<\_ACEOF
23570 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23573 gethostbyaddrrstyle=BSD
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23583 if test "x$gethostbyaddrrstyle" = "x"; then
23584 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23585 echo "${ECHO_T}none! It must not exist, here." >&6
23587 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23588 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23591 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23592 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23593 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23596 gethostbynamerstyle=""
23597 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23598 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23599 cat >conftest.$ac_ext <<_ACEOF
23600 #line $LINENO "configure"
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23613 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23618 rm -f conftest.$ac_objext conftest$ac_exeext
23619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23620 (eval $ac_link) 2>&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } &&
23624 { ac_try='test -s conftest$ac_exeext'
23625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626 (eval $ac_try) 2>&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); }; }; then
23632 cat >>confdefs.h <<\_ACEOF
23633 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23636 gethostbynamerstyle=GNU
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23644 if test "x$gethostbynamerstyle" = "x"; then
23645 cat >conftest.$ac_ext <<_ACEOF
23646 #line $LINENO "configure"
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h. */
23659 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23664 rm -f conftest.$ac_objext conftest$ac_exeext
23665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23666 (eval $ac_link) 2>&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } &&
23670 { ac_try='test -s conftest$ac_exeext'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; }; then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23682 gethostbynamerstyle=SYSV
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23691 if test "x$gethostbynamerstyle" = "x"; then
23692 cat >conftest.$ac_ext <<_ACEOF
23693 #line $LINENO "configure"
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h. */
23706 gethostbyname(NULL)
23711 rm -f conftest.$ac_objext conftest$ac_exeext
23712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23713 (eval $ac_link) 2>&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); } &&
23717 { ac_try='test -s conftest$ac_exeext'
23718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719 (eval $ac_try) 2>&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); }; }; then
23725 cat >>confdefs.h <<\_ACEOF
23726 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23729 gethostbynamerstyle=BSD
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23739 if test "x$gethostbynamerstyle" = "x"; then
23740 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23741 echo "${ECHO_T}none! It must not exist, here." >&6
23743 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23744 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23747 if test "x$gethostbynamerstyle" = "xBSD"; then
23748 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23749 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23753 cat >>confdefs.h <<\_ACEOF
23754 #define POSIXSTYLE 1
23758 cat >>confdefs.h <<\_ACEOF
23759 #define SOLARISSTYLE 2
23763 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23764 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23765 cat >conftest.$ac_ext <<_ACEOF
23766 #line $LINENO "configure"
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23778 ctime_r(NULL, NULL, 0)
23783 rm -f conftest.$ac_objext conftest$ac_exeext
23784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23785 (eval $ac_link) 2>&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } &&
23789 { ac_try='test -s conftest$ac_exeext'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
23797 cat >>confdefs.h <<\_ACEOF
23798 #define CTIMERSTYLE SOLARISSTYLE
23801 ctimerstyle="SOLARIS"
23804 echo "$as_me: failed program was:" >&5
23805 sed 's/^/| /' conftest.$ac_ext >&5
23808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23809 if test "x$ctimerstyle" = "x"; then
23810 cat >conftest.$ac_ext <<_ACEOF
23811 #line $LINENO "configure"
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23823 ctime_r(NULL, NULL)
23828 rm -f conftest.$ac_objext conftest$ac_exeext
23829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23830 (eval $ac_link) 2>&5
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); } &&
23834 { ac_try='test -s conftest$ac_exeext'
23835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23836 (eval $ac_try) 2>&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); }; }; then
23842 cat >>confdefs.h <<\_ACEOF
23843 #define CTIMERSTYLE POSIXSTYLE
23846 ctimerstyle="POSIX"
23849 echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23856 if test "x$ctimerstyle" = "x"; then
23857 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23858 echo "${ECHO_T}none! It must not exist, here." >&6
23860 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23861 echo "${ECHO_T}${ctimerstyle}-style" >&6
23869 export top_builddir
23870 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23871 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23875 if test "x$INCLTDL" != "x";then
23876 INCLTDL='-I${top_builddir}/''libltdl'
23882 if test "x$EXPERIMENTAL" = "xyes"; then
23883 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23884 mysubdirs=`echo $bar`
23886 for bar in `cat src/modules/stable`; do
23887 if test -f src/modules/$bar/configure; then
23888 mysubdirs="$mysubdirs src/modules/$bar"
23894 if test "x$EXPERIMENTAL" = "xyes"; then
23895 for foo in `ls -1 src/modules | grep rlm_`; do
23896 MODULES="$MODULES $foo"
23899 for foo in `cat src/modules/stable`; do
23900 MODULES="$MODULES $foo"
23906 subdirs="$subdirs $mysubdirs"
23911 ac_config_commands="$ac_config_commands stamp-h"
23913 ac_config_commands="$ac_config_commands build-radpaths-h"
23915 ac_config_commands="$ac_config_commands main-chmod"
23917 ac_config_commands="$ac_config_commands scripts-chmod"
23923 USE_SHARED_LIBS=$enable_shared
23925 USE_STATIC_LIBS=$enable_static
23933 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
23934 cat >confcache <<\_ACEOF
23935 # This file is a shell script that caches the results of configure
23936 # tests run on this system so they can be shared between configure
23937 # scripts and configure runs, see configure's option --config-cache.
23938 # It is not useful on other systems. If it contains results you don't
23939 # want to keep, you may remove or edit it.
23941 # config.status only pays attention to the cache file if you give it
23942 # the --recheck option to rerun configure.
23944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23946 # following values.
23950 # The following way of writing the cache mishandles newlines in values,
23951 # but we know of no workaround that is simple, portable, and efficient.
23952 # So, don't put newlines in cache variables' values.
23953 # Ultrix sh set writes to stderr and can't be redirected directly,
23954 # and sets the high bit in the cache file unless we assign to the vars.
23957 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23959 # `set' does not quote correctly, so add quotes (double-quote
23960 # substitution turns \\\\ into \\, and sed turns \\ into \).
23963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23966 # `set' quotes correctly as required by POSIX, so do not add quotes.
23968 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23977 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23979 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23980 if test -w $cache_file; then
23981 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23982 cat confcache >$cache_file
23984 echo "not updating unwritable cache $cache_file"
23989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23990 # Let make expand exec_prefix.
23991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23993 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23994 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23995 # trailing colons and then remove the whole line if VPATH becomes empty
23996 # (actually we leave an empty line to preserve line numbers).
23997 if test "x$srcdir" = x.; then
23998 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23999 s/:*\$(srcdir):*/:/;
24000 s/:*\${srcdir}:*/:/;
24002 s/^\([^=]*=[ ]*\):*/\1/;
24008 DEFS=-DHAVE_CONFIG_H
24012 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24013 # 1. Remove the extension, and $U if already installed.
24014 ac_i=`echo "$ac_i" |
24015 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24017 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24018 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24020 LIBOBJS=$ac_libobjs
24022 LTLIBOBJS=$ac_ltlibobjs
24026 : ${CONFIG_STATUS=./config.status}
24027 ac_clean_files_save=$ac_clean_files
24028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24029 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24030 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24031 cat >$CONFIG_STATUS <<_ACEOF
24033 # Generated by $as_me.
24034 # Run this file to recreate the current configuration.
24035 # Compiler output produced by configure, useful for debugging
24036 # configure, is in config.log if it exists.
24039 ac_cs_recheck=false
24041 SHELL=\${CONFIG_SHELL-$SHELL}
24044 cat >>$CONFIG_STATUS <<\_ACEOF
24045 ## --------------------- ##
24046 ## M4sh Initialization. ##
24047 ## --------------------- ##
24049 # Be Bourne compatible
24050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24053 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24054 # is contrary to our usage. Disable this feature.
24055 alias -g '${1+"$@"}'='"$@"'
24056 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24060 # Support unset when possible.
24061 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24068 # Work around bugs in pre-3.0 UWIN ksh.
24069 $as_unset ENV MAIL MAILPATH
24076 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24077 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24078 LC_TELEPHONE LC_TIME
24080 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
24081 eval $as_var=C; export $as_var
24087 # Required to use basename.
24088 if expr a : '\(a\)' >/dev/null 2>&1; then
24094 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24095 as_basename=basename
24101 # Name of the executable.
24102 as_me=`$as_basename "$0" ||
24103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24104 X"$0" : 'X\(//\)$' \| \
24105 X"$0" : 'X\(/\)$' \| \
24106 . : '\(.\)' 2>/dev/null ||
24108 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24109 /^X\/\(\/\/\)$/{ s//\1/; q; }
24110 /^X\/\(\/\).*/{ s//\1/; q; }
24114 # PATH needs CR, and LINENO needs CR and PATH.
24115 # Avoid depending upon Character Ranges.
24116 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24117 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24118 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24119 as_cr_digits='0123456789'
24120 as_cr_alnum=$as_cr_Letters$as_cr_digits
24122 # The user is always right.
24123 if test "${PATH_SEPARATOR+set}" != set; then
24124 echo "#! /bin/sh" >conf$$.sh
24125 echo "exit 0" >>conf$$.sh
24127 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24136 as_lineno_1=$LINENO
24137 as_lineno_2=$LINENO
24138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24139 test "x$as_lineno_1" != "x$as_lineno_2" &&
24140 test "x$as_lineno_3" = "x$as_lineno_2" || {
24141 # Find who we are. Look in the path if we contain no path at all
24144 *[\\/]* ) as_myself=$0 ;;
24145 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24146 for as_dir in $PATH
24149 test -z "$as_dir" && as_dir=.
24150 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24155 # We did not find ourselves, most probably we were run as `sh COMMAND'
24156 # in which case we are not to be found in the path.
24157 if test "x$as_myself" = x; then
24160 if test ! -f "$as_myself"; then
24161 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24162 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24163 { (exit 1); exit 1; }; }
24165 case $CONFIG_SHELL in
24167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24168 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24171 test -z "$as_dir" && as_dir=.
24172 for as_base in sh bash ksh sh5; do
24175 if ("$as_dir/$as_base" -c '
24176 as_lineno_1=$LINENO
24177 as_lineno_2=$LINENO
24178 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24179 test "x$as_lineno_1" != "x$as_lineno_2" &&
24180 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24181 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24182 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24183 CONFIG_SHELL=$as_dir/$as_base
24184 export CONFIG_SHELL
24185 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24193 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24194 # uniformly replaced by the line number. The first 'sed' inserts a
24195 # line-number line before each line; the second 'sed' does the real
24196 # work. The second script uses 'N' to pair each line-number line
24197 # with the numbered line, and appends trailing '-' during
24198 # substitution so that $LINENO is not a special case at line end.
24199 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24200 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24201 sed '=' <$as_myself |
24206 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24209 s,^['$as_cr_digits']*\n,,
24210 ' >$as_me.lineno &&
24211 chmod +x $as_me.lineno ||
24212 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24213 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24214 { (exit 1); exit 1; }; }
24216 # Don't try to exec as it changes $[0], causing all sort of problems
24217 # (the dirname of $[0] is not the place where we might find the
24218 # original and so on. Autoconf is especially sensible to this).
24220 # Exit status is that of the last command.
24225 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24226 *c*,-n*) ECHO_N= ECHO_C='
24228 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24229 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24232 if expr a : '\(a\)' >/dev/null 2>&1; then
24238 rm -f conf$$ conf$$.exe conf$$.file
24240 if ln -s conf$$.file conf$$ 2>/dev/null; then
24241 # We could just check for DJGPP; but this test a) works b) is more generic
24242 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24243 if test -f conf$$.exe; then
24244 # Don't use ln at all; we don't have any links
24249 elif ln conf$$.file conf$$ 2>/dev/null; then
24254 rm -f conf$$ conf$$.exe conf$$.file
24256 if mkdir -p . 2>/dev/null; then
24262 as_executable_p="test -f"
24264 # Sed expression to map a string onto a valid CPP name.
24265 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24267 # Sed expression to map a string onto a valid variable name.
24268 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24272 # We need space, tab and new line, in precisely that order.
24282 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24283 # report actual input values of CONFIG_FILES etc. instead of their
24284 # values after options handling. Logging --version etc. is OK.
24288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24289 ## Running $as_me. ##
24294 This file was extended by $as_me, which was
24295 generated by GNU Autoconf 2.57. Invocation command line was
24297 CONFIG_FILES = $CONFIG_FILES
24298 CONFIG_HEADERS = $CONFIG_HEADERS
24299 CONFIG_LINKS = $CONFIG_LINKS
24300 CONFIG_COMMANDS = $CONFIG_COMMANDS
24304 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24308 # Files that config.status was made for.
24309 if test -n "$ac_config_files"; then
24310 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24313 if test -n "$ac_config_headers"; then
24314 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24317 if test -n "$ac_config_links"; then
24318 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24321 if test -n "$ac_config_commands"; then
24322 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24328 \`$as_me' instantiates files from templates according to the
24329 current configuration.
24331 Usage: $0 [OPTIONS] [FILE]...
24333 -h, --help print this help, then exit
24334 -V, --version print version number, then exit
24335 -q, --quiet do not print progress messages
24336 -d, --debug don't remove temporary files
24337 --recheck update $as_me by reconfiguring in the same conditions
24338 --file=FILE[:TEMPLATE]
24339 instantiate the configuration file FILE
24340 --header=FILE[:TEMPLATE]
24341 instantiate the configuration header FILE
24343 Configuration files:
24346 Configuration headers:
24349 Configuration commands:
24352 Report bugs to <bug-autoconf@gnu.org>."
24355 cat >>$CONFIG_STATUS <<_ACEOF
24358 configured by $0, generated by GNU Autoconf 2.57,
24359 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24361 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24362 Free Software Foundation, Inc.
24363 This config.status script is free software; the Free Software Foundation
24364 gives unlimited permission to copy, distribute and modify it."
24368 cat >>$CONFIG_STATUS <<\_ACEOF
24369 # If no file are specified by the user, then we need to provide default
24370 # value. By we need to know if files were specified by the user.
24376 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24377 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24385 *) # This is not an option, so the user has probably given explicit
24388 ac_need_defaults=false;;
24392 # Handling of the options.
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24397 --version | --vers* | -V )
24398 echo "$ac_cs_version"; exit 0 ;;
24400 # Conflict between --help and --header
24401 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24402 Try \`$0 --help' for more information." >&5
24403 echo "$as_me: error: ambiguous option: $1
24404 Try \`$0 --help' for more information." >&2;}
24405 { (exit 1); exit 1; }; };;
24406 --help | --hel | -h )
24407 echo "$ac_cs_usage"; exit 0 ;;
24408 --debug | --d* | -d )
24410 --file | --fil | --fi | --f )
24412 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24413 ac_need_defaults=false;;
24414 --header | --heade | --head | --hea )
24416 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24417 ac_need_defaults=false;;
24418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24419 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24422 # This is an error.
24423 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24424 Try \`$0 --help' for more information." >&5
24425 echo "$as_me: error: unrecognized option: $1
24426 Try \`$0 --help' for more information." >&2;}
24427 { (exit 1); exit 1; }; } ;;
24429 *) ac_config_targets="$ac_config_targets $1" ;;
24435 ac_configure_extra_args=
24437 if $ac_cs_silent; then
24439 ac_configure_extra_args="$ac_configure_extra_args --silent"
24443 cat >>$CONFIG_STATUS <<_ACEOF
24444 if \$ac_cs_recheck; then
24445 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24446 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24455 cat >>$CONFIG_STATUS <<\_ACEOF
24456 for ac_config_target in $ac_config_targets
24458 case "$ac_config_target" in
24459 # Handling of arguments.
24460 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24461 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24462 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24463 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24464 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24465 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24466 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24467 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24468 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24469 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24470 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24471 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24472 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24473 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24474 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
24475 "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
24476 "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
24477 "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
24478 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24479 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24480 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24481 { (exit 1); exit 1; }; };;
24485 # If the user did not use the arguments to specify the items to instantiate,
24486 # then the envvar interface is used. Set only those that are not.
24487 # We use the long form for the default assignment because of an extremely
24488 # bizarre bug on SunOS 4.1.3.
24489 if $ac_need_defaults; then
24490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24492 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24495 # Have a temporary directory for convenience. Make it in the build tree
24496 # simply because there is no reason to put it here, and in addition,
24497 # creating and moving files from /tmp can sometimes cause problems.
24498 # Create a temporary directory, and hook for its removal unless debugging.
24501 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24502 trap '{ (exit 1); exit 1; }' 1 2 13 15
24505 # Create a (secure) tmp directory for tmp files.
24508 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24509 test -n "$tmp" && test -d "$tmp"
24512 tmp=./confstat$$-$RANDOM
24513 (umask 077 && mkdir $tmp)
24516 echo "$me: cannot create a temporary directory in ." >&2
24517 { (exit 1); exit 1; }
24522 cat >>$CONFIG_STATUS <<_ACEOF
24525 # CONFIG_FILES section.
24528 # No need to generate the scripts if there are no CONFIG_FILES.
24529 # This happens for instance when ./config.status config.h
24530 if test -n "\$CONFIG_FILES"; then
24531 # Protect against being on the right side of a sed subst in config.status.
24532 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24533 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24534 s,@SHELL@,$SHELL,;t t
24535 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24536 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24537 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24538 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24539 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24540 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24541 s,@exec_prefix@,$exec_prefix,;t t
24542 s,@prefix@,$prefix,;t t
24543 s,@program_transform_name@,$program_transform_name,;t t
24544 s,@bindir@,$bindir,;t t
24545 s,@sbindir@,$sbindir,;t t
24546 s,@libexecdir@,$libexecdir,;t t
24547 s,@datadir@,$datadir,;t t
24548 s,@sysconfdir@,$sysconfdir,;t t
24549 s,@sharedstatedir@,$sharedstatedir,;t t
24550 s,@localstatedir@,$localstatedir,;t t
24551 s,@libdir@,$libdir,;t t
24552 s,@includedir@,$includedir,;t t
24553 s,@oldincludedir@,$oldincludedir,;t t
24554 s,@infodir@,$infodir,;t t
24555 s,@mandir@,$mandir,;t t
24556 s,@build_alias@,$build_alias,;t t
24557 s,@host_alias@,$host_alias,;t t
24558 s,@target_alias@,$target_alias,;t t
24559 s,@DEFS@,$DEFS,;t t
24560 s,@ECHO_C@,$ECHO_C,;t t
24561 s,@ECHO_N@,$ECHO_N,;t t
24562 s,@ECHO_T@,$ECHO_T,;t t
24563 s,@LIBS@,$LIBS,;t t
24565 s,@CFLAGS@,$CFLAGS,;t t
24566 s,@LDFLAGS@,$LDFLAGS,;t t
24567 s,@CPPFLAGS@,$CPPFLAGS,;t t
24568 s,@ac_ct_CC@,$ac_ct_CC,;t t
24569 s,@EXEEXT@,$EXEEXT,;t t
24570 s,@OBJEXT@,$OBJEXT,;t t
24572 s,@EGREP@,$EGREP,;t t
24573 s,@RANLIB@,$RANLIB,;t t
24574 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24575 s,@abs_top_builddir@,$abs_top_builddir,;t t
24576 s,@GMAKE@,$GMAKE,;t t
24577 s,@MAKE@,$MAKE,;t t
24578 s,@subdirs@,$subdirs,;t t
24579 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
24580 s,@LIBTOOL@,$LIBTOOL,;t t
24581 s,@build@,$build,;t t
24582 s,@build_cpu@,$build_cpu,;t t
24583 s,@build_vendor@,$build_vendor,;t t
24584 s,@build_os@,$build_os,;t t
24585 s,@host@,$host,;t t
24586 s,@host_cpu@,$host_cpu,;t t
24587 s,@host_vendor@,$host_vendor,;t t
24588 s,@host_os@,$host_os,;t t
24589 s,@LN_S@,$LN_S,;t t
24590 s,@ECHO@,$ECHO,;t t
24592 s,@ac_ct_AR@,$ac_ct_AR,;t t
24593 s,@STRIP@,$STRIP,;t t
24594 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24596 s,@CXXFLAGS@,$CXXFLAGS,;t t
24597 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24598 s,@CXXCPP@,$CXXCPP,;t t
24600 s,@FFLAGS@,$FFLAGS,;t t
24601 s,@ac_ct_F77@,$ac_ct_F77,;t t
24602 s,@logdir@,$logdir,;t t
24603 s,@radacctdir@,$radacctdir,;t t
24604 s,@raddbdir@,$raddbdir,;t t
24605 s,@PERL@,$PERL,;t t
24606 s,@SNMPGET@,$SNMPGET,;t t
24607 s,@SNMPWALK@,$SNMPWALK,;t t
24608 s,@RUSERS@,$RUSERS,;t t
24609 s,@ACLOCAL@,$ACLOCAL,;t t
24610 s,@AUTOCONF@,$AUTOCONF,;t t
24611 s,@AUTOHEADER@,$AUTOHEADER,;t t
24612 s,@LOCATE@,$LOCATE,;t t
24613 s,@DIRNAME@,$DIRNAME,;t t
24614 s,@GREP@,$GREP,;t t
24615 s,@REGEX@,$REGEX,;t t
24616 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24617 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24618 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24619 s,@LIBPREFIX@,$LIBPREFIX,;t t
24620 s,@CRYPTLIB@,$CRYPTLIB,;t t
24621 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24622 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24623 s,@HOSTINFO@,$HOSTINFO,;t t
24624 s,@LIBLTDL@,$LIBLTDL,;t t
24625 s,@INCLTDL@,$INCLTDL,;t t
24626 s,@MODULES@,$MODULES,;t t
24627 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24628 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24629 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24630 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24631 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24632 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24633 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24634 s,@LIBOBJS@,$LIBOBJS,;t t
24635 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24640 cat >>$CONFIG_STATUS <<\_ACEOF
24641 # Split the substitutions into bite-sized pieces for seds with
24642 # small command number limits, like on Digital OSF/1 and HP-UX.
24643 ac_max_sed_lines=48
24644 ac_sed_frag=1 # Number of current file.
24645 ac_beg=1 # First line for current file.
24646 ac_end=$ac_max_sed_lines # Line after last line for current file.
24649 while $ac_more_lines; do
24650 if test $ac_beg -gt 1; then
24651 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24653 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24655 if test ! -s $tmp/subs.frag; then
24656 ac_more_lines=false
24658 # The purpose of the label and of the branching condition is to
24659 # speed up the sed processing (if there are no `@' at all, there
24660 # is no need to browse any of the substitutions).
24661 # These are the two extra sed commands mentioned above.
24663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24664 if test -z "$ac_sed_cmds"; then
24665 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24667 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24669 ac_sed_frag=`expr $ac_sed_frag + 1`
24671 ac_end=`expr $ac_end + $ac_max_sed_lines`
24674 if test -z "$ac_sed_cmds"; then
24677 fi # test -n "$CONFIG_FILES"
24680 cat >>$CONFIG_STATUS <<\_ACEOF
24681 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24684 - | *:- | *:-:* ) # input from stdin
24686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24690 * ) ac_file_in=$ac_file.in ;;
24693 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24696 X"$ac_file" : 'X\(//\)[^/]' \| \
24697 X"$ac_file" : 'X\(//\)$' \| \
24698 X"$ac_file" : 'X\(/\)' \| \
24699 . : '\(.\)' 2>/dev/null ||
24701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24703 /^X\(\/\/\)$/{ s//\1/; q; }
24704 /^X\(\/\).*/{ s//\1/; q; }
24706 { if $as_mkdir_p; then
24711 while test ! -d "$as_dir"; do
24712 as_dirs="$as_dir $as_dirs"
24713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24715 X"$as_dir" : 'X\(//\)[^/]' \| \
24716 X"$as_dir" : 'X\(//\)$' \| \
24717 X"$as_dir" : 'X\(/\)' \| \
24718 . : '\(.\)' 2>/dev/null ||
24720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24722 /^X\(\/\/\)$/{ s//\1/; q; }
24723 /^X\(\/\).*/{ s//\1/; q; }
24726 test ! -n "$as_dirs" || mkdir $as_dirs
24727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24729 { (exit 1); exit 1; }; }; }
24733 if test "$ac_dir" != .; then
24734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24735 # A "../" for each directory in $ac_dir_suffix.
24736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24738 ac_dir_suffix= ac_top_builddir=
24742 .) # No --srcdir option. We are building in place.
24744 if test -z "$ac_top_builddir"; then
24747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24749 [\\/]* | ?:[\\/]* ) # Absolute path.
24750 ac_srcdir=$srcdir$ac_dir_suffix;
24751 ac_top_srcdir=$srcdir ;;
24752 *) # Relative path.
24753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24756 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24758 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24759 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24760 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24761 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24765 if test x"$ac_file" != x-; then
24766 { echo "$as_me:$LINENO: creating $ac_file" >&5
24767 echo "$as_me: creating $ac_file" >&6;}
24770 # Let's still pretend it is `configure' which instantiates (i.e., don't
24771 # use $as_me), people would be surprised to read:
24772 # /* config.h. Generated by config.status. */
24773 if test x"$ac_file" = x-; then
24776 configure_input="$ac_file. "
24778 configure_input=$configure_input"Generated from `echo $ac_file_in |
24779 sed 's,.*/,,'` by configure."
24781 # First look for the input files in the build tree, otherwise in the
24783 ac_file_inputs=`IFS=:
24784 for f in $ac_file_in; do
24786 -) echo $tmp/stdin ;;
24788 # Absolute (can't be DOS-style, as IFS=:)
24789 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24790 echo "$as_me: error: cannot find input file: $f" >&2;}
24791 { (exit 1); exit 1; }; }
24794 if test -f "$f"; then
24797 elif test -f "$srcdir/$f"; then
24802 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24803 echo "$as_me: error: cannot find input file: $f" >&2;}
24804 { (exit 1); exit 1; }; }
24807 done` || { (exit 1); exit 1; }
24809 cat >>$CONFIG_STATUS <<_ACEOF
24813 cat >>$CONFIG_STATUS <<\_ACEOF
24815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24816 s,@configure_input@,$configure_input,;t t
24817 s,@srcdir@,$ac_srcdir,;t t
24818 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24819 s,@top_srcdir@,$ac_top_srcdir,;t t
24820 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24821 s,@builddir@,$ac_builddir,;t t
24822 s,@abs_builddir@,$ac_abs_builddir,;t t
24823 s,@top_builddir@,$ac_top_builddir,;t t
24824 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24825 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24827 if test x"$ac_file" != x-; then
24828 mv $tmp/out $ac_file
24836 cat >>$CONFIG_STATUS <<\_ACEOF
24839 # CONFIG_HEADER section.
24842 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24843 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24845 # ac_d sets the value in "#define NAME VALUE" lines.
24846 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24847 ac_dB='[ ].*$,\1#\2'
24850 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24851 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24852 ac_uB='$,\1#\2define\3'
24856 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24859 - | *:- | *:-:* ) # input from stdin
24861 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24863 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24864 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24865 * ) ac_file_in=$ac_file.in ;;
24868 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24869 echo "$as_me: creating $ac_file" >&6;}
24871 # First look for the input files in the build tree, otherwise in the
24873 ac_file_inputs=`IFS=:
24874 for f in $ac_file_in; do
24876 -) echo $tmp/stdin ;;
24878 # Absolute (can't be DOS-style, as IFS=:)
24879 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24880 echo "$as_me: error: cannot find input file: $f" >&2;}
24881 { (exit 1); exit 1; }; }
24884 if test -f "$f"; then
24887 elif test -f "$srcdir/$f"; then
24892 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24893 echo "$as_me: error: cannot find input file: $f" >&2;}
24894 { (exit 1); exit 1; }; }
24897 done` || { (exit 1); exit 1; }
24898 # Remove the trailing spaces.
24899 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24903 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24904 # `conftest.undefs', that substitutes the proper values into
24905 # config.h.in to produce config.h. The first handles `#define'
24906 # templates, and the second `#undef' templates.
24907 # And first: Protect against being on the right side of a sed subst in
24908 # config.status. Protect against being in an unquoted here document
24909 # in config.status.
24910 rm -f conftest.defines conftest.undefs
24911 # Using a here document instead of a string reduces the quoting nightmare.
24912 # Putting comments in sed scripts is not portable.
24914 # `end' is used to avoid that the second main sed command (meant for
24915 # 0-ary CPP macros) applies to n-ary macro definitions.
24916 # See the Autoconf documentation for `clear'.
24917 cat >confdef2sed.sed <<\_ACEOF
24922 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24924 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24927 # If some macros were called several times there might be several times
24928 # the same #defines, which is useless. Nevertheless, we may not want to
24929 # sort them, since we want the *last* AC-DEFINE to be honored.
24930 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24931 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24932 rm -f confdef2sed.sed
24934 # This sed command replaces #undef with comments. This is necessary, for
24935 # example, in the case of _POSIX_SOURCE, which is predefined and required
24936 # on some systems where configure will not decide to define it.
24937 cat >>conftest.undefs <<\_ACEOF
24938 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24941 # Break up conftest.defines because some shells have a limit on the size
24942 # of here documents, and old seds have small limits too (100 cmds).
24943 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24944 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24945 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24946 echo ' :' >>$CONFIG_STATUS
24947 rm -f conftest.tail
24948 while grep . conftest.defines >/dev/null
24950 # Write a limited-size here document to $tmp/defines.sed.
24951 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24952 # Speed up: don't consider the non `#define' lines.
24953 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24954 # Work around the forget-to-reset-the-flag bug.
24955 echo 't clr' >>$CONFIG_STATUS
24956 echo ': clr' >>$CONFIG_STATUS
24957 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24959 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24961 mv $tmp/out $tmp/in
24963 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24964 rm -f conftest.defines
24965 mv conftest.tail conftest.defines
24967 rm -f conftest.defines
24968 echo ' fi # grep' >>$CONFIG_STATUS
24969 echo >>$CONFIG_STATUS
24971 # Break up conftest.undefs because some shells have a limit on the size
24972 # of here documents, and old seds have small limits too (100 cmds).
24973 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24974 rm -f conftest.tail
24975 while grep . conftest.undefs >/dev/null
24977 # Write a limited-size here document to $tmp/undefs.sed.
24978 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24979 # Speed up: don't consider the non `#undef'
24980 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24981 # Work around the forget-to-reset-the-flag bug.
24982 echo 't clr' >>$CONFIG_STATUS
24983 echo ': clr' >>$CONFIG_STATUS
24984 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24986 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24988 mv $tmp/out $tmp/in
24990 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24991 rm -f conftest.undefs
24992 mv conftest.tail conftest.undefs
24994 rm -f conftest.undefs
24996 cat >>$CONFIG_STATUS <<\_ACEOF
24997 # Let's still pretend it is `configure' which instantiates (i.e., don't
24998 # use $as_me), people would be surprised to read:
24999 # /* config.h. Generated by config.status. */
25000 if test x"$ac_file" = x-; then
25001 echo "/* Generated by configure. */" >$tmp/config.h
25003 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25005 cat $tmp/in >>$tmp/config.h
25007 if test x"$ac_file" != x-; then
25008 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25009 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25010 echo "$as_me: $ac_file is unchanged" >&6;}
25012 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25014 X"$ac_file" : 'X\(//\)[^/]' \| \
25015 X"$ac_file" : 'X\(//\)$' \| \
25016 X"$ac_file" : 'X\(/\)' \| \
25017 . : '\(.\)' 2>/dev/null ||
25019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25021 /^X\(\/\/\)$/{ s//\1/; q; }
25022 /^X\(\/\).*/{ s//\1/; q; }
25024 { if $as_mkdir_p; then
25029 while test ! -d "$as_dir"; do
25030 as_dirs="$as_dir $as_dirs"
25031 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25033 X"$as_dir" : 'X\(//\)[^/]' \| \
25034 X"$as_dir" : 'X\(//\)$' \| \
25035 X"$as_dir" : 'X\(/\)' \| \
25036 . : '\(.\)' 2>/dev/null ||
25038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25040 /^X\(\/\/\)$/{ s//\1/; q; }
25041 /^X\(\/\).*/{ s//\1/; q; }
25044 test ! -n "$as_dirs" || mkdir $as_dirs
25045 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25046 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25047 { (exit 1); exit 1; }; }; }
25050 mv $tmp/config.h $ac_file
25054 rm -f $tmp/config.h
25058 cat >>$CONFIG_STATUS <<\_ACEOF
25061 # CONFIG_COMMANDS section.
25063 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25064 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25065 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25066 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25067 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25068 X"$ac_dest" : 'X\(//\)[^/]' \| \
25069 X"$ac_dest" : 'X\(//\)$' \| \
25070 X"$ac_dest" : 'X\(/\)' \| \
25071 . : '\(.\)' 2>/dev/null ||
25073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25075 /^X\(\/\/\)$/{ s//\1/; q; }
25076 /^X\(\/\).*/{ s//\1/; q; }
25080 if test "$ac_dir" != .; then
25081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25082 # A "../" for each directory in $ac_dir_suffix.
25083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25085 ac_dir_suffix= ac_top_builddir=
25089 .) # No --srcdir option. We are building in place.
25091 if test -z "$ac_top_builddir"; then
25094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25096 [\\/]* | ?:[\\/]* ) # Absolute path.
25097 ac_srcdir=$srcdir$ac_dir_suffix;
25098 ac_top_srcdir=$srcdir ;;
25099 *) # Relative path.
25100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25103 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25105 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25106 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25107 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25108 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25111 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25112 echo "$as_me: executing $ac_dest commands" >&6;}
25114 stamp-h ) echo timestamp > src/include/stamp-h ;;
25115 build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25116 main-chmod ) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
25117 scripts-chmod ) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25122 cat >>$CONFIG_STATUS <<\_ACEOF
25124 { (exit 0); exit 0; }
25126 chmod +x $CONFIG_STATUS
25127 ac_clean_files=$ac_clean_files_save
25130 # configure is writing to config.log, and then calls config.status.
25131 # config.status does its own redirection, appending to config.log.
25132 # Unfortunately, on DOS this fails, as config.log is still kept open
25133 # by configure, so config.status won't be able to write to it; its
25134 # output is simply discarded. So we exec the FD to /dev/null,
25135 # effectively closing config.log, so it can be properly (re)opened and
25136 # appended to by config.status. When coming back to configure, we
25137 # need to make the FD available again.
25138 if test "$no_create" != yes; then
25140 ac_config_status_args=
25141 test "$silent" = yes &&
25142 ac_config_status_args="$ac_config_status_args --quiet"
25144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25147 # would make configure fail if this is the last instruction.
25148 $ac_cs_success || { (exit 1); exit 1; }
25152 # CONFIG_SUBDIRS section.
25154 if test "$no_recursion" != yes; then
25156 # Remove --cache-file and --srcdir arguments so they do not pile up.
25157 ac_sub_configure_args=
25159 for ac_arg in $ac_configure_args; do
25160 if test -n "$ac_prev"; then
25165 -cache-file | --cache-file | --cache-fil | --cache-fi \
25166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25167 ac_prev=cache_file ;;
25168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25172 --config-cache | -C)
25174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25182 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25186 # Always prepend --prefix to ensure using the same prefix
25187 # in subdir configurations.
25188 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25191 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25193 # Do not complain, so a configure script can configure whichever
25194 # parts of a large source tree are present.
25195 test -d $srcdir/$ac_dir || continue
25197 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25198 echo "$as_me: configuring in $ac_dir" >&6;}
25199 { if $as_mkdir_p; then
25204 while test ! -d "$as_dir"; do
25205 as_dirs="$as_dir $as_dirs"
25206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25208 X"$as_dir" : 'X\(//\)[^/]' \| \
25209 X"$as_dir" : 'X\(//\)$' \| \
25210 X"$as_dir" : 'X\(/\)' \| \
25211 . : '\(.\)' 2>/dev/null ||
25213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25215 /^X\(\/\/\)$/{ s//\1/; q; }
25216 /^X\(\/\).*/{ s//\1/; q; }
25219 test ! -n "$as_dirs" || mkdir $as_dirs
25220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25222 { (exit 1); exit 1; }; }; }
25226 if test "$ac_dir" != .; then
25227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25228 # A "../" for each directory in $ac_dir_suffix.
25229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25231 ac_dir_suffix= ac_top_builddir=
25235 .) # No --srcdir option. We are building in place.
25237 if test -z "$ac_top_builddir"; then
25240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25242 [\\/]* | ?:[\\/]* ) # Absolute path.
25243 ac_srcdir=$srcdir$ac_dir_suffix;
25244 ac_top_srcdir=$srcdir ;;
25245 *) # Relative path.
25246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25249 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25251 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25252 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25253 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25254 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25259 # Check for guested configure; otherwise get Cygnus style configure.
25260 if test -f $ac_srcdir/configure.gnu; then
25261 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25262 elif test -f $ac_srcdir/configure; then
25263 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25264 elif test -f $ac_srcdir/configure.in; then
25265 ac_sub_configure=$ac_configure
25267 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25268 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25272 # The recursion is here.
25273 if test -n "$ac_sub_configure"; then
25274 # Make the cache file name correct relative to the subdirectory.
25275 case $cache_file in
25276 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25277 *) # Relative path.
25278 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25281 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25282 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25283 # The eval makes quoting arguments work.
25284 eval $ac_sub_configure $ac_sub_configure_args \
25285 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25286 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25287 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25288 { (exit 1); exit 1; }; }