2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for webcit 6.80.
5 # Report bugs to <uncensored.citadel.org>.
7 # Copyright (C) 2003 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
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='webcit'
425 PACKAGE_TARNAME='webcit'
426 PACKAGE_VERSION='6.80'
427 PACKAGE_STRING='webcit 6.80'
428 PACKAGE_BUGREPORT='uncensored.citadel.org'
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_default_prefix=/usr/local/webcit
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PROG_SUBDIRS SED PTHREAD_DEFS LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB SETUP_LIBS staticdir editordir 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 webcit 6.80 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 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of webcit 6.80:";;
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-dependency-tracking speeds up one-time build
1037 --enable-dependency-tracking do not reject slow dependency extractors
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --disable-nls do not use Native Language Support
1040 --disable-rpath do not hardcode runtime library paths
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1049 include additional configurations [automatic]
1050 --with-newt use newt window library
1051 --with-gnu-ld assume the C compiler uses GNU ld default=no
1052 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1053 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1054 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1055 --without-libintl-prefix don't search for libintl in includedir and libdir
1056 --with-rundir=DIR where to find the citadel servers sockets (overridable by -h at runtime.)
1057 --with-staticdir=DIR where to put datafiles
1058 --with-staticrundir=DIR where to search datafiles at runtime
1059 --with-editordir=DIR where to search the editor at runtime
1061 Some influential environment variables:
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
1069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
1071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 Report bugs to <uncensored.citadel.org>.
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 ac_dir_suffix= ac_top_builddir=
1098 .) # No --srcdir option. We are building in place.
1100 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1116 .) ac_abs_builddir="$ac_dir";;
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1163 $ac_configure --help
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1174 webcit configure 6.80
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by webcit $as_me 6.80, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_must_keep_next=false
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 -* ) ac_must_keep_next=true ;;
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1306 # The following way of writing the cache mishandles newlines in values,
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1329 for ac_var in $ac_subst_vars
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -n "$ac_subst_files"; then
1343 for ac_var in $ac_subst_files
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1351 if test -s confdefs.h; then
1358 sed "/^$/d" confdefs.h | sort
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1441 # Check that the precious variables saved in the cache have kept the same
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 cat >>confdefs.h <<\_ACEOF
1526 #define _GNU_SOURCE 1
1530 am__api_version="1.9"
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533 if test -f $ac_dir/install-sh; then
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 elif test -f $ac_dir/install.sh; then
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 elif test -f $ac_dir/shtool; then
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 if test -z "$ac_aux_dir"; then
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550 { (exit 1); exit 1; }; }
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556 # Find a good install program. We prefer a C program (faster),
1557 # so one script is as good as another. But avoid the broken or
1558 # incompatible versions:
1559 # SysV /etc/install, /usr/sbin/install
1560 # SunOS /usr/etc/install
1561 # IRIX /sbin/install
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567 # OS/2's system install, which has a completely different semantic
1568 # ./install, which can be erroneously created by make from ./install.sh.
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1571 if test -z "$INSTALL"; then
1572 if test "${ac_cv_path_install+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir=.
1580 # Account for people who put trailing slashes in PATH elements.
1582 ./ | .// | /cC/* | \
1583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1587 # OSF1 and SCO ODT 3.0 have their own names for install.
1588 # Don't use installbsd from OSF since it installs stuff as root
1590 for ac_prog in ginstall scoinst install; do
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1593 if test $ac_prog = install &&
1594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595 # AIX install. It has an incompatible calling convention.
1597 elif test $ac_prog = install &&
1598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599 # program-specific install script used by HP pwplus--don't use.
1602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614 if test "${ac_cv_path_install+set}" = set; then
1615 INSTALL=$ac_cv_path_install
1617 # As a last resort, use the slow shell script. We don't cache a
1618 # path for INSTALL within a source directory, because that will
1619 # break other packages using the cache if that directory is
1620 # removed, or if the path is relative.
1621 INSTALL=$ac_install_sh
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
1625 echo "${ECHO_T}$INSTALL" >&6
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1639 echo timestamp > conftest.file
1640 # Do `set' in a subshell so we don't clobber the current shell's
1641 # arguments. Must try -L first in case configure is actually a
1642 # symlink; some systems play weird games with the mod time of symlinks
1643 # (eg FreeBSD returns the mod time of the symlink's containing
1646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1647 if test "$*" = "X"; then
1649 set X `ls -t $srcdir/configure conftest.file`
1652 if test "$*" != "X $srcdir/configure conftest.file" \
1653 && test "$*" != "X conftest.file $srcdir/configure"; then
1655 # If neither matched, then we have a broken ls. This can happen
1656 # if, for instance, CONFIG_SHELL is bash and it inherits a
1657 # broken ls alias from the environment. This has actually
1658 # happened. Such a system could not be considered "sane".
1659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1660 alias in your environment" >&5
1661 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1662 alias in your environment" >&2;}
1663 { (exit 1); exit 1; }; }
1666 test "$2" = conftest.file
1672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1673 Check your system clock" >&5
1674 echo "$as_me: error: newly created file is older than distributed files!
1675 Check your system clock" >&2;}
1676 { (exit 1); exit 1; }; }
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 test "$program_prefix" != NONE &&
1681 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $. echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1693 # expand $ac_aux_dir to an absolute path
1694 am_aux_dir=`cd $ac_aux_dir && pwd`
1696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1697 # Use eval to expand $SHELL
1698 if eval "$MISSING --run true"; then
1699 am_missing_run="$MISSING --run "
1702 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1707 # We used to keeping the `.' as first argument, in order to
1708 # allow $(mkdir_p) to be used without argument. As in
1709 # $(mkdir_p) $(somedir)
1710 # where $(somedir) is conditionally defined. However this is wrong
1712 # 1. if the package is installed by a user who cannot write `.'
1713 # make install will fail,
1714 # 2. the above comment should most certainly read
1715 # $(mkdir_p) $(DESTDIR)$(somedir)
1716 # so it does not work when $(somedir) is undefined and
1717 # $(DESTDIR) is not.
1718 # To support the latter case, we have to write
1719 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1720 # so the `.' trick is pointless.
1721 mkdir_p='mkdir -p --'
1723 # On NextStep and OpenStep, the `mkdir' command does not
1724 # recognize any option. It will interpret all options as
1725 # directories to create, and then abort because `.' already
1727 for d in ./-p ./--version;
1729 test -d $d && rmdir $d
1731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732 if test -f "$ac_aux_dir/mkinstalldirs"; then
1733 mkdir_p='$(mkinstalldirs)'
1735 mkdir_p='$(install_sh) -d'
1739 for ac_prog in gawk mawk nawk awk
1741 # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$AWK"; then
1749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_AWK="$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$AWK"; then
1769 echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$AWK" && break
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 cat >conftest.make <<\_ACEOF
1787 @echo 'ac_maketemp="$(MAKE)"'
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792 eval ac_cv_prog_make_${ac_make}_set=yes
1794 eval ac_cv_prog_make_${ac_make}_set=no
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799 echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 SET_MAKE="MAKE=${MAKE-make}"
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1815 rmdir .tst 2>/dev/null
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819 test -f $srcdir/config.status; then
1820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822 { (exit 1); exit 1; }; }
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827 if (cygpath --version) >/dev/null 2>/dev/null; then
1828 CYGPATH_W='cygpath -w'
1835 # Define the identity of the package.
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE "$PACKAGE"
1845 cat >>confdefs.h <<_ACEOF
1846 #define VERSION "$VERSION"
1849 # Some tools Automake needs.
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1867 # Installed binaries are usually stripped using `strip' when the user
1868 # run `make install-strip'. However `strip' might not be the right
1869 # tool to use in cross-compilation environments, therefore Automake
1870 # will honor the `STRIP' environment variable to overrule this program.
1871 if test "$cross_compiling" != no; then
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_STRIP+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$STRIP"; then
1881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 STRIP=$ac_cv_prog_STRIP
1900 if test -n "$STRIP"; then
1901 echo "$as_me:$LINENO: result: $STRIP" >&5
1902 echo "${ECHO_T}$STRIP" >&6
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1909 if test -z "$ac_cv_prog_STRIP"; then
1911 # Extract the first word of "strip", so it can be a program name with args.
1912 set dummy strip; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$ac_ct_STRIP"; then
1919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_ac_ct_STRIP="strip"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1939 if test -n "$ac_ct_STRIP"; then
1940 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1941 echo "${ECHO_T}$ac_ct_STRIP" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1949 STRIP="$ac_cv_prog_STRIP"
1953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1955 # We need awk for the "check" target. The system "awk" is bad on
1957 # Always define AMTAR for backward compatibility.
1959 AMTAR=${AMTAR-"${am_missing_run}tar"}
1961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1967 ac_config_headers="$ac_config_headers config.h"
1969 # Check whether --enable-shared or --disable-shared was given.
1970 if test "${enable_shared+set}" = set; then
1971 enableval="$enable_shared"
1972 p=${PACKAGE-default}
1974 yes) enable_shared=yes ;;
1975 no) enable_shared=no ;;
1978 # Look at the argument we got. We use all the common list separators.
1979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1980 for pkg in $enableval; do
1982 if test "X$pkg" = "X$p"; then
1993 # Check whether --enable-static or --disable-static was given.
1994 if test "${enable_static+set}" = set; then
1995 enableval="$enable_static"
1996 p=${PACKAGE-default}
1998 yes) enable_static=yes ;;
1999 no) enable_static=no ;;
2002 # Look at the argument we got. We use all the common list separators.
2003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2004 for pkg in $enableval; do
2006 if test "X$pkg" = "X$p"; then
2017 # Check whether --enable-fast-install or --disable-fast-install was given.
2018 if test "${enable_fast_install+set}" = set; then
2019 enableval="$enable_fast_install"
2020 p=${PACKAGE-default}
2022 yes) enable_fast_install=yes ;;
2023 no) enable_fast_install=no ;;
2025 enable_fast_install=no
2026 # Look at the argument we got. We use all the common list separators.
2027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2028 for pkg in $enableval; do
2030 if test "X$pkg" = "X$p"; then
2031 enable_fast_install=yes
2038 enable_fast_install=yes
2041 # Make sure we can run config.sub.
2042 $ac_config_sub sun4 >/dev/null 2>&1 ||
2043 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2044 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2045 { (exit 1); exit 1; }; }
2047 echo "$as_me:$LINENO: checking build system type" >&5
2048 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2049 if test "${ac_cv_build+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 ac_cv_build_alias=$build_alias
2053 test -z "$ac_cv_build_alias" &&
2054 ac_cv_build_alias=`$ac_config_guess`
2055 test -z "$ac_cv_build_alias" &&
2056 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2057 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2058 { (exit 1); exit 1; }; }
2059 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2060 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2061 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2062 { (exit 1); exit 1; }; }
2065 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2066 echo "${ECHO_T}$ac_cv_build" >&6
2068 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2069 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2070 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2073 echo "$as_me:$LINENO: checking host system type" >&5
2074 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2075 if test "${ac_cv_host+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 ac_cv_host_alias=$host_alias
2079 test -z "$ac_cv_host_alias" &&
2080 ac_cv_host_alias=$ac_cv_build_alias
2081 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2082 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2083 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2084 { (exit 1); exit 1; }; }
2087 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2088 echo "${ECHO_T}$ac_cv_host" >&6
2090 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2091 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2092 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2095 DEPDIR="${am__leading_dot}deps"
2097 ac_config_commands="$ac_config_commands depfiles"
2100 am_make=${MAKE-make}
2101 cat > confinc << 'END'
2106 # If we don't find an include directive, just comment out the code.
2107 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2108 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2112 # First try GNU make style include.
2113 echo "include confinc" > confmf
2114 # We grep out `Entering directory' and `Leaving directory'
2115 # messages which can occur if `w' ends up in MAKEFLAGS.
2116 # In particular we don't look at `^make:' because GNU make might
2117 # be invoked under some other name (usually "gmake"), in which
2118 # case it prints its new name instead of `make'.
2119 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2124 # Now try BSD make style include.
2125 if test "$am__include" = "#"; then
2126 echo '.include "confinc"' > confmf
2127 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2128 am__include=.include
2135 echo "$as_me:$LINENO: result: $_am_result" >&5
2136 echo "${ECHO_T}$_am_result" >&6
2137 rm -f confinc confmf
2139 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2140 if test "${enable_dependency_tracking+set}" = set; then
2141 enableval="$enable_dependency_tracking"
2144 if test "x$enable_dependency_tracking" != xno; then
2145 am_depcomp="$ac_aux_dir/depcomp"
2150 if test "x$enable_dependency_tracking" != xno; then
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2202 if test -z "$ac_cv_prog_CC"; then
2204 # Extract the first word of "gcc", so it can be a program name with args.
2205 set dummy gcc; ac_word=$2
2206 echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 if test -n "$ac_ct_CC"; then
2212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 ac_cv_prog_ac_ct_CC="gcc"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2231 if test -n "$ac_ct_CC"; then
2232 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233 echo "${ECHO_T}$ac_ct_CC" >&6
2235 echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6
2244 if test -z "$CC"; then
2245 if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}cc; ac_word=$2
2248 echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263 ac_cv_prog_CC="${ac_tool_prefix}cc"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 if test -n "$CC"; then
2274 echo "$as_me:$LINENO: result: $CC" >&5
2275 echo "${ECHO_T}$CC" >&6
2277 echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6
2282 if test -z "$ac_cv_prog_CC"; then
2284 # Extract the first word of "cc", so it can be a program name with args.
2285 set dummy cc; ac_word=$2
2286 echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 if test -n "$ac_ct_CC"; then
2292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301 ac_cv_prog_ac_ct_CC="cc"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6
2315 echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2325 if test -z "$CC"; then
2326 # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345 ac_prog_rejected=yes
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 if test $ac_prog_rejected = yes; then
2356 # We found a bogon in the path, so make sure we never use it.
2357 set dummy $ac_cv_prog_CC
2359 if test $# != 0; then
2360 # We chose a different compiler from the bogus one.
2361 # However, it has the same basename, so the bogon will be chosen
2362 # first if we set CC to just the basename; use the full file name.
2364 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2370 if test -n "$CC"; then
2371 echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6
2374 echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2379 if test -z "$CC"; then
2380 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 if test -n "$CC"; then
2411 echo "$as_me:$LINENO: result: $CC" >&5
2412 echo "${ECHO_T}$CC" >&6
2414 echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2418 test -n "$CC" && break
2421 if test -z "$CC"; then
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 ac_cv_prog_ac_ct_CC="$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454 echo "${ECHO_T}$ac_ct_CC" >&6
2456 echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6
2460 test -n "$ac_ct_CC" && break
2469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2475 # Provide some information about the compiler.
2476 echo "$as_me:$LINENO:" \
2477 "checking for C compiler version" >&5
2478 ac_compiler=`set X $ac_compile; echo $2`
2479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2480 (eval $ac_compiler --version </dev/null >&5) 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2485 (eval $ac_compiler -v </dev/null >&5) 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2490 (eval $ac_compiler -V </dev/null >&5) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }
2495 cat >conftest.$ac_ext <<_ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 ac_clean_files_save=$ac_clean_files
2511 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2512 # Try to create an executable without -o first, disregard a.out.
2513 # It will help us diagnose broken compilers, and finding out an intuition
2515 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2516 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2517 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2518 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2519 (eval $ac_link_default) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; then
2523 # Find the output, starting from the most likely. This scheme is
2524 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2527 # Be careful to initialize this variable, since it used to be cached.
2528 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2530 # b.out is created by i960 compilers.
2531 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2533 test -f "$ac_file" || continue
2535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2538 # This is the source file.
2541 # We found the default executable, but exeext='' is most
2545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 # FIXME: I believe we export ac_cv_exeext for Libtool,
2547 # but it would be cool to find out if it's true. Does anybody
2548 # maintain Libtool? --akim.
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&2;}
2563 { (exit 77); exit 77; }; }
2566 ac_exeext=$ac_cv_exeext
2567 echo "$as_me:$LINENO: result: $ac_file" >&5
2568 echo "${ECHO_T}$ac_file" >&6
2570 # Check the compiler produces executables we can run. If not, either
2571 # the compiler is broken, or we cross compile.
2572 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2573 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2574 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2575 # If not cross compiling, check that we can run a simple program.
2576 if test "$cross_compiling" != yes; then
2577 if { ac_try='./$ac_file'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 if test "$cross_compiling" = maybe; then
2588 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&2;}
2594 { (exit 1); exit 1; }; }
2598 echo "$as_me:$LINENO: result: yes" >&5
2599 echo "${ECHO_T}yes" >&6
2601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2602 ac_clean_files=$ac_clean_files_save
2603 # Check the compiler produces executables we can run. If not, either
2604 # the compiler is broken, or we cross compile.
2605 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2607 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2608 echo "${ECHO_T}$cross_compiling" >&6
2610 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2613 (eval $ac_link) 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; then
2617 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2618 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2619 # work properly (i.e., refer to `conftest.exe'), while it won't with
2621 for ac_file in conftest.exe conftest conftest.*; do
2622 test -f "$ac_file" || continue
2624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2625 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2632 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2633 See \`config.log' for more details." >&5
2634 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&2;}
2636 { (exit 1); exit 1; }; }
2639 rm -f conftest$ac_cv_exeext
2640 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2641 echo "${ECHO_T}$ac_cv_exeext" >&6
2643 rm -f conftest.$ac_ext
2644 EXEEXT=$ac_cv_exeext
2646 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2647 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2648 if test "${ac_cv_objext+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 rm -f conftest.o conftest.obj
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2683 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&2;}
2687 { (exit 1); exit 1; }; }
2690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2692 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2693 echo "${ECHO_T}$ac_cv_objext" >&6
2694 OBJEXT=$ac_cv_objext
2696 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2723 grep -v '^ *+' conftest.er1 >conftest.err
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2752 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2753 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2754 GCC=`test $ac_compiler_gnu = yes && echo yes`
2755 ac_test_CFLAGS=${CFLAGS+set}
2756 ac_save_CFLAGS=$CFLAGS
2758 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812 CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2820 if test "$GCC" = yes; then
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_prog_cc_stdc=no
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2857 s = g (p, va_arg (v,int));
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std1 is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std1. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX -qlanglvl=ansi
2888 # Ultrix and OSF/1 -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions -Aa -D_HPUX_SOURCE
2891 # SVR4 -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -z "$ac_c_werror_flag"
2905 || test ! -s conftest.err'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_prog_cc_stdc=$ac_arg
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2924 rm -f conftest.err conftest.$ac_objext
2926 rm -f conftest.$ac_ext conftest.$ac_objext
2931 case "x$ac_cv_prog_cc_stdc" in
2933 echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6 ;;
2936 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2938 CC="$CC $ac_cv_prog_cc_stdc" ;;
2941 # Some people use a C++ compiler to compile C. Since we use `exit',
2942 # in C++ we need to declare it. In case someone uses the same compiler
2943 # for both compiling C and C++ we need to have the C++ compiler decide
2944 # the declaration of exit, since it's the most demanding environment.
2945 cat >conftest.$ac_ext <<_ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952 (eval $ac_compile) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_c_werror_flag"
2960 || test ! -s conftest.err'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 for ac_declaration in \
2974 'extern "C" void std::exit (int) throw (); using std::exit;' \
2975 'extern "C" void std::exit (int); using std::exit;' \
2976 'extern "C" void exit (int) throw ();' \
2977 'extern "C" void exit (int);' \
2980 cat >conftest.$ac_ext <<_ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag"
3006 || test ! -s conftest.err'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -z "$ac_c_werror_flag"
3051 || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 if test -n "$ac_declaration"; then
3073 echo '#ifdef __cplusplus' >>confdefs.h
3074 echo $ac_declaration >>confdefs.h
3075 echo '#endif' >>confdefs.h
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 depcc="$CC" am_compiler_list=
3092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098 # We make a subdir and do the tests there. Otherwise we can end up
3099 # making bogus files that we don't know about and never remove. For
3100 # instance it was reported that on HP-UX the gcc test will end up
3101 # making a dummy file named `D' -- because `-MD' means `put the output
3104 # Copy depcomp to subdir because otherwise we won't find it if we're
3105 # using a relative directory.
3106 cp "$am_depcomp" conftest.dir
3108 # We will build objects and dependencies in a subdirectory because
3109 # it helps to detect inapplicable dependency modes. For instance
3110 # both Tru64's cc and ICC support -MD to output dependencies as a
3111 # side effect of compilation, but ICC will put the dependencies in
3112 # the current directory while Tru64 will put them in the object
3116 am_cv_CC_dependencies_compiler_type=none
3117 if test "$am_compiler_list" = ""; then
3118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3120 for depmode in $am_compiler_list; do
3121 # Setup a source with many dependencies, because some compilers
3122 # like to wrap large dependency lists on column 80 (with \), and
3123 # we should not choose a depcomp mode which is confused by this.
3125 # We need to recreate these files for each test, as the compiler may
3126 # overwrite some of them when testing with obscure command lines.
3127 # This happens at least with the AIX C compiler.
3129 for i in 1 2 3 4 5 6; do
3130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3132 # Solaris 8's {/usr,}/bin/sh.
3133 touch sub/conftst$i.h
3135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3139 # after this tag, mechanisms are not by side-effect, so they'll
3140 # only be used when explicitly requested
3141 if test "x$enable_dependency_tracking" = xyes; then
3149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3150 # mode. It turns out that the SunPro C++ compiler does not properly
3151 # handle `-M -o', and we need to detect this.
3152 if depmode=$depmode \
3153 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3155 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3156 >/dev/null 2>conftest.err &&
3157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3158 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3160 # icc doesn't choke on unknown options, it will just issue warnings
3161 # or remarks (even with -Werror). So we grep stderr for any message
3162 # that says an option was ignored or not supported.
3163 # When given -MP, icc 7.0 and 7.1 complain thusly:
3164 # icc: Command line warning: ignoring option '-M'; no argument required
3165 # The diagnosis changed in icc 8.0:
3166 # icc: Command line remark: option '-MP' not supported
3167 if (grep 'ignoring option' conftest.err ||
3168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3169 am_cv_CC_dependencies_compiler_type=$depmode
3178 am_cv_CC_dependencies_compiler_type=none
3182 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3189 test "x$enable_dependency_tracking" != xno \
3190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3192 am__fastdepCC_FALSE='#'
3194 am__fastdepCC_TRUE='#'
3195 am__fastdepCC_FALSE=
3199 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3200 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3201 if test "${lt_cv_path_SED+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 # Loop through the user's path and test for sed and gsed.
3205 # Then use that list of sed's as ones to test for truncation.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for lt_ac_prog in sed gsed; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3214 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3222 # along with /bin/sed that truncates output.
3223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3224 test ! -f $lt_ac_sed && break
3225 cat /dev/null > conftest.in
3227 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3228 # Check for GNU sed and select it if it is found.
3229 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3230 lt_cv_path_SED=$lt_ac_sed
3234 cat conftest.in conftest.in >conftest.tmp
3235 mv conftest.tmp conftest.in
3236 cp conftest.in conftest.nl
3238 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3239 cmp -s conftest.out conftest.nl || break
3240 # 10000 chars as input seems more than enough
3241 test $lt_ac_count -gt 10 && break
3242 lt_ac_count=`expr $lt_ac_count + 1`
3243 if test $lt_ac_count -gt $lt_ac_max; then
3244 lt_ac_max=$lt_ac_count
3245 lt_cv_path_SED=$lt_ac_sed
3253 echo "$as_me:$LINENO: result: $SED" >&5
3254 echo "${ECHO_T}$SED" >&6
3256 echo "$as_me:$LINENO: checking for egrep" >&5
3257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3258 if test "${ac_cv_prog_egrep+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3262 then ac_cv_prog_egrep='grep -E'
3263 else ac_cv_prog_egrep='egrep'
3266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3268 EGREP=$ac_cv_prog_egrep
3272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3273 if test "${with_gnu_ld+set}" = set; then
3274 withval="$with_gnu_ld"
3275 test "$withval" = no || with_gnu_ld=yes
3280 if test "$GCC" = yes; then
3281 # Check if gcc -print-prog-name=ld gives a path.
3282 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3286 # gcc leaves a trailing carriage return which upsets mingw
3287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3292 # Accept absolute paths.
3294 re_direlt='/[^/][^/]*/\.\./'
3295 # Canonicalize the pathname of ld
3296 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3297 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3298 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3300 test -z "$LD" && LD="$ac_prog"
3303 # If it fails, then pretend we aren't using GCC.
3307 # If it is relative, then search for the first ld in PATH.
3311 elif test "$with_gnu_ld" = yes; then
3312 echo "$as_me:$LINENO: checking for GNU ld" >&5
3313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3315 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3318 if test "${lt_cv_path_LD+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -z "$LD"; then
3322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3323 for ac_dir in $PATH; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3327 lt_cv_path_LD="$ac_dir/$ac_prog"
3328 # Check to see if the program is GNU ld. I'd rather use --version,
3329 # but apparently some GNU ld's only accept -v.
3330 # Break only if it was the GNU/non-GNU ld that we prefer.
3331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3332 *GNU* | *'with BFD'*)
3333 test "$with_gnu_ld" != no && break
3336 test "$with_gnu_ld" != yes && break
3343 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3348 if test -n "$LD"; then
3349 echo "$as_me:$LINENO: result: $LD" >&5
3350 echo "${ECHO_T}$LD" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3357 { (exit 1); exit 1; }; }
3358 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3364 case `$LD -v 2>&1 </dev/null` in
3365 *GNU* | *'with BFD'*)
3366 lt_cv_prog_gnu_ld=yes
3369 lt_cv_prog_gnu_ld=no
3373 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3375 with_gnu_ld=$lt_cv_prog_gnu_ld
3378 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3380 if test "${lt_cv_ld_reload_flag+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 lt_cv_ld_reload_flag='-r'
3385 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3387 reload_flag=$lt_cv_ld_reload_flag
3388 case $reload_flag in
3390 *) reload_flag=" $reload_flag" ;;
3392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3394 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3395 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3396 if test "${lt_cv_path_NM+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 if test -n "$NM"; then
3400 # Let the user override the test.
3403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3404 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3406 test -z "$ac_dir" && ac_dir=.
3407 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3408 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3409 # Check to see if the nm accepts a BSD-compat flag.
3410 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3411 # nm: unknown option "B" ignored
3412 # Tru64's nm complains that /dev/null is an invalid object file
3413 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3414 */dev/null* | *'Invalid file or object type'*)
3415 lt_cv_path_NM="$tmp_nm -B"
3419 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3421 lt_cv_path_NM="$tmp_nm -p"
3425 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3426 continue # so that we can try to find one that supports BSD flags
3433 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3436 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3437 echo "${ECHO_T}$lt_cv_path_NM" >&6
3440 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3441 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3443 if test "$LN_S" = "ln -s"; then
3444 echo "$as_me:$LINENO: result: yes" >&5
3445 echo "${ECHO_T}yes" >&6
3447 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3448 echo "${ECHO_T}no, using $LN_S" >&6
3451 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3452 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3453 if test "${lt_cv_deplibs_check_method+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 lt_cv_file_magic_cmd='$MAGIC_CMD'
3457 lt_cv_file_magic_test_file=
3458 lt_cv_deplibs_check_method='unknown'
3459 # Need to set the preceding variable on all platforms that support
3460 # interlibrary dependencies.
3461 # 'none' -- dependencies not supported.
3462 # `unknown' -- same as none, but documents that we really don't know.
3463 # 'pass_all' -- all dependencies passed with no checks.
3464 # 'test_compile' -- check by making test program.
3465 # 'file_magic [[regex]]' -- check by looking for files in library path
3466 # which responds to the $file_magic_cmd with a given extended regex.
3467 # If you have `file' or equivalent on your system and you're not sure
3468 # whether `pass_all' will *always* work, you probably want this one.
3472 lt_cv_deplibs_check_method=pass_all
3476 lt_cv_deplibs_check_method=pass_all
3480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3481 lt_cv_file_magic_cmd='/usr/bin/file -L'
3482 lt_cv_file_magic_test_file=/shlib/libc.so
3486 # func_win32_libid is a shell function defined in ltmain.sh
3487 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3488 lt_cv_file_magic_cmd='func_win32_libid'
3492 # Base MSYS/MinGW do not provide the 'file' command needed by
3493 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3494 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3495 lt_cv_file_magic_cmd='$OBJDUMP -f'
3498 darwin* | rhapsody*)
3499 lt_cv_deplibs_check_method=pass_all
3502 freebsd* | kfreebsd*-gnu)
3503 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3506 # Not sure whether the presence of OpenBSD here was a mistake.
3507 # Let's accept both of them until this is cleared up.
3508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3509 lt_cv_file_magic_cmd=/usr/bin/file
3510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3514 lt_cv_deplibs_check_method=pass_all
3519 lt_cv_deplibs_check_method=pass_all
3522 hpux10.20* | hpux11*)
3523 lt_cv_file_magic_cmd=/usr/bin/file
3526 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3527 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3530 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]'
3531 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3540 irix5* | irix6* | nonstopux*)
3542 *-32|*"-32 ") libmagic=32-bit;;
3543 *-n32|*"-n32 ") libmagic=N32;;
3544 *-64|*"-64 ") libmagic=64-bit;;
3545 *) libmagic=never-match;;
3547 lt_cv_deplibs_check_method=pass_all
3550 # This must be Linux ELF.
3553 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3554 lt_cv_deplibs_check_method=pass_all ;;
3556 # glibc up to 2.1.1 does not perform some relocations on ARM
3557 # this will be overridden with pass_all, but let us keep it just in case
3558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3560 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3561 lt_cv_deplibs_check_method=pass_all
3565 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3574 lt_cv_file_magic_cmd=/usr/bin/file
3575 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3579 lt_cv_deplibs_check_method=unknown
3583 lt_cv_file_magic_cmd=/usr/bin/file
3584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3588 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3592 osf3* | osf4* | osf5*)
3593 lt_cv_deplibs_check_method=pass_all
3597 lt_cv_deplibs_check_method=pass_all
3601 lt_cv_deplibs_check_method=pass_all
3604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3605 case $host_vendor in
3607 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]'
3608 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3611 lt_cv_deplibs_check_method=pass_all
3614 lt_cv_file_magic_cmd='/bin/file'
3615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3618 lt_cv_file_magic_cmd='/bin/file'
3619 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3620 lt_cv_file_magic_test_file=/lib/libc.so
3623 lt_cv_deplibs_check_method=pass_all
3628 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3629 lt_cv_deplibs_check_method=pass_all
3634 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3635 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3636 file_magic_cmd=$lt_cv_file_magic_cmd
3637 deplibs_check_method=$lt_cv_deplibs_check_method
3638 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3643 # If no C compiler was specified, use CC.
3646 # Allow CC to be a program name with arguments.
3650 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3651 if test "${enable_libtool_lock+set}" = set; then
3652 enableval="$enable_libtool_lock"
3655 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3657 # Some flags need to be propagated to the compiler or linker for good
3661 # Find out which ABI we are using.
3662 echo 'int i;' > conftest.$ac_ext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; then
3668 case `/usr/bin/file conftest.$ac_objext` in
3680 # Find out which ABI we are using.
3681 echo '#line 3681 "configure"' > conftest.$ac_ext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; then
3687 if test "$lt_cv_prog_gnu_ld" = yes; then
3688 case `/usr/bin/file conftest.$ac_objext` in
3690 LD="${LD-ld} -melf32bsmip"
3693 LD="${LD-ld} -melf32bmipn32"
3696 LD="${LD-ld} -melf64bmip"
3700 case `/usr/bin/file conftest.$ac_objext` in
3716 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3717 # Find out which ABI we are using.
3718 echo 'int i;' > conftest.$ac_ext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; then
3724 case "`/usr/bin/file conftest.o`" in
3728 LD="${LD-ld} -m elf_i386"
3730 ppc64-*linux*|powerpc64-*linux*)
3731 LD="${LD-ld} -m elf32ppclinux"
3734 LD="${LD-ld} -m elf_s390"
3737 LD="${LD-ld} -m elf32_sparc"
3744 LD="${LD-ld} -m elf_x86_64"
3746 ppc*-*linux*|powerpc*-*linux*)
3747 LD="${LD-ld} -m elf64ppc"
3750 LD="${LD-ld} -m elf64_s390"
3753 LD="${LD-ld} -m elf64_sparc"
3763 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3764 SAVE_CFLAGS="$CFLAGS"
3765 CFLAGS="$CFLAGS -belf"
3766 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3767 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3768 if test "${lt_cv_cc_needs_belf+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3792 rm -f conftest.$ac_objext conftest$ac_exeext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3794 (eval $ac_link) 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag"
3802 || test ! -s conftest.err'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; } &&
3808 { ac_try='test -s conftest$ac_exeext'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; }; then
3814 lt_cv_cc_needs_belf=yes
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 lt_cv_cc_needs_belf=no
3821 rm -f conftest.err conftest.$ac_objext \
3822 conftest$ac_exeext conftest.$ac_ext
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3831 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3832 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3833 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3834 CFLAGS="$SAVE_CFLAGS"
3840 need_locks="$enable_libtool_lock"
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3849 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3850 # On Suns, sometimes $CPP names a directory.
3851 if test -n "$CPP" && test -d "$CPP"; then
3854 if test -z "$CPP"; then
3855 if test "${ac_cv_prog_CPP+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 # Double quotes because CPP needs to be expanded
3859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3862 for ac_c_preproc_warn_flag in '' yes
3864 # Use a header file that comes with gcc, so configuring glibc
3865 # with a fresh cross-compiler works.
3866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3867 # <limits.h> exists even on freestanding compilers.
3868 # On the NeXT, cc -E runs the code through the compiler's parser,
3869 # not just through cpp. "Syntax error" is here to catch this case.
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3877 # include <limits.h>
3879 # include <assert.h>
3883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } >/dev/null; then
3891 if test -s conftest.err; then
3892 ac_cpp_err=$ac_c_preproc_warn_flag
3893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3900 if test -z "$ac_cpp_err"; then
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3906 # Broken: fails on valid input.
3909 rm -f conftest.err conftest.$ac_ext
3911 # OK, works on sane cases. Now check whether non-existent headers
3912 # can be detected and how.
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <ac_nonexistent.h>
3921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3924 grep -v '^ *+' conftest.er1 >conftest.err
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } >/dev/null; then
3929 if test -s conftest.err; then
3930 ac_cpp_err=$ac_c_preproc_warn_flag
3931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3938 if test -z "$ac_cpp_err"; then
3939 # Broken: success on invalid input.
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Passes both tests.
3949 rm -f conftest.err conftest.$ac_ext
3952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3953 rm -f conftest.err conftest.$ac_ext
3954 if $ac_preproc_ok; then
3966 echo "$as_me:$LINENO: result: $CPP" >&5
3967 echo "${ECHO_T}$CPP" >&6
3969 for ac_c_preproc_warn_flag in '' yes
3971 # Use a header file that comes with gcc, so configuring glibc
3972 # with a fresh cross-compiler works.
3973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974 # <limits.h> exists even on freestanding compilers.
3975 # On the NeXT, cc -E runs the code through the compiler's parser,
3976 # not just through cpp. "Syntax error" is here to catch this case.
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3984 # include <limits.h>
3986 # include <assert.h>
3990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3993 grep -v '^ *+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } >/dev/null; then
3998 if test -s conftest.err; then
3999 ac_cpp_err=$ac_c_preproc_warn_flag
4000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4007 if test -z "$ac_cpp_err"; then
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 # Broken: fails on valid input.
4016 rm -f conftest.err conftest.$ac_ext
4018 # OK, works on sane cases. Now check whether non-existent headers
4019 # can be detected and how.
4020 cat >conftest.$ac_ext <<_ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <ac_nonexistent.h>
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4045 if test -z "$ac_cpp_err"; then
4046 # Broken: success on invalid input.
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 # Passes both tests.
4056 rm -f conftest.err conftest.$ac_ext
4059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4060 rm -f conftest.err conftest.$ac_ext
4061 if $ac_preproc_ok; then
4064 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4065 See \`config.log' for more details." >&5
4066 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4067 See \`config.log' for more details." >&2;}
4068 { (exit 1); exit 1; }; }
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4079 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4080 if test "${ac_cv_header_stdc+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104 (eval $ac_compile) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_header_stdc=yes
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 ac_cv_header_stdc=no
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133 if test $ac_cv_header_stdc = yes; then
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4145 $EGREP "memchr" >/dev/null 2>&1; then
4148 ac_cv_header_stdc=no
4154 if test $ac_cv_header_stdc = yes; then
4155 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166 $EGREP "free" >/dev/null 2>&1; then
4169 ac_cv_header_stdc=no
4175 if test $ac_cv_header_stdc = yes; then
4176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4177 if test "$cross_compiling" = yes; then
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4187 #if ((' ' & 0x0FF) == 0x020)
4188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191 # define ISLOWER(c) \
4192 (('a' <= (c) && (c) <= 'i') \
4193 || ('j' <= (c) && (c) <= 'r') \
4194 || ('s' <= (c) && (c) <= 'z'))
4195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4203 for (i = 0; i < 256; i++)
4204 if (XOR (islower (i), ISLOWER (i))
4205 || toupper (i) != TOUPPER (i))
4210 rm -f conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4223 echo "$as_me: program exited with status $ac_status" >&5
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4228 ac_cv_header_stdc=no
4230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4234 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4235 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4236 if test $ac_cv_header_stdc = yes; then
4238 cat >>confdefs.h <<\_ACEOF
4239 #define STDC_HEADERS 1
4244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4255 inttypes.h stdint.h unistd.h
4257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4258 echo "$as_me:$LINENO: checking for $ac_header" >&5
4259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 cat >conftest.$ac_ext <<_ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 $ac_includes_default
4271 #include <$ac_header>
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag"
4283 || test ! -s conftest.err'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 eval "$as_ac_Header=yes"
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 eval "$as_ac_Header=no"
4302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 for ac_header in dlfcn.h
4319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321 echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 # Is the header compilable?
4330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 $ac_includes_default
4339 #include <$ac_header>
4341 rm -f conftest.$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_header_compiler=yes
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 ac_header_compiler=no
4370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4372 echo "${ECHO_T}$ac_header_compiler" >&6
4374 # Is the header present?
4375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <$ac_header>
4385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } >/dev/null; then
4393 if test -s conftest.err; then
4394 ac_cpp_err=$ac_c_preproc_warn_flag
4395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4402 if test -z "$ac_cpp_err"; then
4403 ac_header_preproc=yes
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_header_preproc=no
4410 rm -f conftest.err conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4412 echo "${ECHO_T}$ac_header_preproc" >&6
4414 # So? What about this header?
4415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4421 ac_header_preproc=yes
4424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4438 ## ------------------------------------- ##
4439 ## Report this to uncensored.citadel.org ##
4440 ## ------------------------------------- ##
4443 sed "s/^/$as_me: WARNING: /" >&2
4446 echo "$as_me:$LINENO: checking for $ac_header" >&5
4447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 eval "$as_ac_Header=\$ac_header_preproc"
4453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4458 cat >>confdefs.h <<_ACEOF
4459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4467 ac_cpp='$CXXCPP $CPPFLAGS'
4468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4471 if test -n "$ac_tool_prefix"; then
4472 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_prog_CXX+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 if test -n "$CXX"; then
4482 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 if test -n "$CXX"; then
4502 echo "$as_me:$LINENO: result: $CXX" >&5
4503 echo "${ECHO_T}$CXX" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 test -n "$CXX" && break
4512 if test -z "$CXX"; then
4514 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4516 # Extract the first word of "$ac_prog", so it can be a program name with args.
4517 set dummy $ac_prog; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 if test -n "$ac_ct_CXX"; then
4524 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_ac_ct_CXX="$ac_prog"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4543 if test -n "$ac_ct_CXX"; then
4544 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4545 echo "${ECHO_T}$ac_ct_CXX" >&6
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4551 test -n "$ac_ct_CXX" && break
4553 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4559 # Provide some information about the compiler.
4560 echo "$as_me:$LINENO:" \
4561 "checking for C++ compiler version" >&5
4562 ac_compiler=`set X $ac_compile; echo $2`
4563 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4564 (eval $ac_compiler --version </dev/null >&5) 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }
4568 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4569 (eval $ac_compiler -v </dev/null >&5) 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }
4573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4574 (eval $ac_compiler -V </dev/null >&5) 2>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }
4579 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4580 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4581 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 cat >conftest.$ac_ext <<_ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_cxx_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4635 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4636 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4637 GXX=`test $ac_compiler_gnu = yes && echo yes`
4638 ac_test_CXXFLAGS=${CXXFLAGS+set}
4639 ac_save_CXXFLAGS=$CXXFLAGS
4641 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4642 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4643 if test "${ac_cv_prog_cxx_g+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_cxx_werror_flag"
4671 || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest.$ac_objext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_cv_prog_cxx_g=yes
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4693 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4694 if test "$ac_test_CXXFLAGS" = set; then
4695 CXXFLAGS=$ac_save_CXXFLAGS
4696 elif test $ac_cv_prog_cxx_g = yes; then
4697 if test "$GXX" = yes; then
4703 if test "$GXX" = yes; then
4709 for ac_declaration in \
4711 'extern "C" void std::exit (int) throw (); using std::exit;' \
4712 'extern "C" void std::exit (int); using std::exit;' \
4713 'extern "C" void exit (int) throw ();' \
4714 'extern "C" void exit (int);' \
4717 cat >conftest.$ac_ext <<_ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1 >conftest.err
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>conftest.er1
4782 grep -v '^ *+' conftest.er1 >conftest.err
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -z "$ac_cxx_werror_flag"
4788 || test ! -s conftest.err'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4809 if test -n "$ac_declaration"; then
4810 echo '#ifdef __cplusplus' >>confdefs.h
4811 echo $ac_declaration >>confdefs.h
4812 echo '#endif' >>confdefs.h
4816 ac_cpp='$CXXCPP $CPPFLAGS'
4817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4821 depcc="$CXX" am_compiler_list=
4823 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4824 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4825 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4829 # We make a subdir and do the tests there. Otherwise we can end up
4830 # making bogus files that we don't know about and never remove. For
4831 # instance it was reported that on HP-UX the gcc test will end up
4832 # making a dummy file named `D' -- because `-MD' means `put the output
4835 # Copy depcomp to subdir because otherwise we won't find it if we're
4836 # using a relative directory.
4837 cp "$am_depcomp" conftest.dir
4839 # We will build objects and dependencies in a subdirectory because
4840 # it helps to detect inapplicable dependency modes. For instance
4841 # both Tru64's cc and ICC support -MD to output dependencies as a
4842 # side effect of compilation, but ICC will put the dependencies in
4843 # the current directory while Tru64 will put them in the object
4847 am_cv_CXX_dependencies_compiler_type=none
4848 if test "$am_compiler_list" = ""; then
4849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4851 for depmode in $am_compiler_list; do
4852 # Setup a source with many dependencies, because some compilers
4853 # like to wrap large dependency lists on column 80 (with \), and
4854 # we should not choose a depcomp mode which is confused by this.
4856 # We need to recreate these files for each test, as the compiler may
4857 # overwrite some of them when testing with obscure command lines.
4858 # This happens at least with the AIX C compiler.
4860 for i in 1 2 3 4 5 6; do
4861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4862 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4863 # Solaris 8's {/usr,}/bin/sh.
4864 touch sub/conftst$i.h
4866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4870 # after this tag, mechanisms are not by side-effect, so they'll
4871 # only be used when explicitly requested
4872 if test "x$enable_dependency_tracking" = xyes; then
4880 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4881 # mode. It turns out that the SunPro C++ compiler does not properly
4882 # handle `-M -o', and we need to detect this.
4883 if depmode=$depmode \
4884 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4885 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4886 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4887 >/dev/null 2>conftest.err &&
4888 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4889 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4890 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4891 # icc doesn't choke on unknown options, it will just issue warnings
4892 # or remarks (even with -Werror). So we grep stderr for any message
4893 # that says an option was ignored or not supported.
4894 # When given -MP, icc 7.0 and 7.1 complain thusly:
4895 # icc: Command line warning: ignoring option '-M'; no argument required
4896 # The diagnosis changed in icc 8.0:
4897 # icc: Command line remark: option '-MP' not supported
4898 if (grep 'ignoring option' conftest.err ||
4899 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4900 am_cv_CXX_dependencies_compiler_type=$depmode
4909 am_cv_CXX_dependencies_compiler_type=none
4913 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4914 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4915 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4920 test "x$enable_dependency_tracking" != xno \
4921 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4922 am__fastdepCXX_TRUE=
4923 am__fastdepCXX_FALSE='#'
4925 am__fastdepCXX_TRUE='#'
4926 am__fastdepCXX_FALSE=
4931 ac_cpp='$CXXCPP $CPPFLAGS'
4932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4935 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4936 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4937 if test -z "$CXXCPP"; then
4938 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 # Double quotes because CXXCPP needs to be expanded
4942 for CXXCPP in "$CXX -E" "/lib/cpp"
4945 for ac_cxx_preproc_warn_flag in '' yes
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4950 # <limits.h> exists even on freestanding compilers.
4951 # On the NeXT, cc -E runs the code through the compiler's parser,
4952 # not just through cpp. "Syntax error" is here to catch this case.
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4960 # include <limits.h>
4962 # include <assert.h>
4966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null; then
4974 if test -s conftest.err; then
4975 ac_cpp_err=$ac_cxx_preproc_warn_flag
4976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4983 if test -z "$ac_cpp_err"; then
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 # Broken: fails on valid input.
4992 rm -f conftest.err conftest.$ac_ext
4994 # OK, works on sane cases. Now check whether non-existent headers
4995 # can be detected and how.
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 #include <ac_nonexistent.h>
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_cxx_preproc_warn_flag
5014 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5021 if test -z "$ac_cpp_err"; then
5022 # Broken: success on invalid input.
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5028 # Passes both tests.
5032 rm -f conftest.err conftest.$ac_ext
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.$ac_ext
5037 if $ac_preproc_ok; then
5042 ac_cv_prog_CXXCPP=$CXXCPP
5045 CXXCPP=$ac_cv_prog_CXXCPP
5047 ac_cv_prog_CXXCPP=$CXXCPP
5049 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5050 echo "${ECHO_T}$CXXCPP" >&6
5052 for ac_cxx_preproc_warn_flag in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat >conftest.$ac_ext <<_ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5067 # include <limits.h>
5069 # include <assert.h>
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5076 grep -v '^ *+' conftest.er1 >conftest.err
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_cxx_preproc_warn_flag
5083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5090 if test -z "$ac_cpp_err"; then
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 # Broken: fails on valid input.
5099 rm -f conftest.err conftest.$ac_ext
5101 # OK, works on sane cases. Now check whether non-existent headers
5102 # can be detected and how.
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <ac_nonexistent.h>
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_cxx_preproc_warn_flag
5121 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5128 if test -z "$ac_cpp_err"; then
5129 # Broken: success on invalid input.
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 # Passes both tests.
5139 rm -f conftest.err conftest.$ac_ext
5142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143 rm -f conftest.err conftest.$ac_ext
5144 if $ac_preproc_ok; then
5147 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150 See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; }
5155 ac_cpp='$CXXCPP $CPPFLAGS'
5156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5162 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5163 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5165 if test -n "$ac_tool_prefix"; then
5166 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_F77+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 if test -n "$F77"; then
5176 ac_cv_prog_F77="$F77" # Let the user override the test.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 if test -n "$F77"; then
5196 echo "$as_me:$LINENO: result: $F77" >&5
5197 echo "${ECHO_T}$F77" >&6
5199 echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5203 test -n "$F77" && break
5206 if test -z "$F77"; then
5208 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211 set dummy $ac_prog; ac_word=$2
5212 echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5214 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 if test -n "$ac_ct_F77"; then
5218 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_F77="$ac_prog"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5237 if test -n "$ac_ct_F77"; then
5238 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5239 echo "${ECHO_T}$ac_ct_F77" >&6
5241 echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6
5245 test -n "$ac_ct_F77" && break
5252 # Provide some information about the compiler.
5253 echo "$as_me:5253:" \
5254 "checking for Fortran 77 compiler version" >&5
5255 ac_compiler=`set X $ac_compile; echo $2`
5256 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5257 (eval $ac_compiler --version </dev/null >&5) 2>&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5262 (eval $ac_compiler -v </dev/null >&5) 2>&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }
5266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5267 (eval $ac_compiler -V </dev/null >&5) 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }
5273 # If we don't use `.F' as extension, the preprocessor is not run on the
5274 # input file. (Note that this only needs to work for GNU compilers.)
5277 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5278 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5279 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 cat >conftest.$ac_ext <<_ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_f77_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5320 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5323 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5324 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5326 ac_test_FFLAGS=${FFLAGS+set}
5327 ac_save_FFLAGS=$FFLAGS
5329 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5330 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5331 if test "${ac_cv_prog_f77_g+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 cat >conftest.$ac_ext <<_ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_f77_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_cv_prog_f77_g=yes
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5372 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5373 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5374 if test "$ac_test_FFLAGS" = set; then
5375 FFLAGS=$ac_save_FFLAGS
5376 elif test $ac_cv_prog_f77_g = yes; then
5377 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5383 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5390 G77=`test $ac_compiler_gnu = yes && echo yes`
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5401 # find the maximum length of command line arguments
5402 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5403 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5404 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 # On DJGPP, this test can blow up pretty badly due to problems in libc
5413 # (any single argument exceeding 2000 bytes causes a buffer overrun
5414 # during glob expansion). Even if it were fixed, the result of this
5415 # check would be larger than it should be.
5416 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5420 # Under GNU Hurd, this test is not required because there is
5421 # no limit to the length of command line arguments.
5422 # Libtool will interpret -1 as no limit whatsoever
5423 lt_cv_sys_max_cmd_len=-1;
5427 # On Win9x/ME, this test blows up -- it succeeds, but takes
5428 # about 5 minutes as the teststring grows exponentially.
5429 # Worse, since 9x/ME are not pre-emptively multitasking,
5430 # you end up with a "frozen" computer, even though with patience
5431 # the test eventually succeeds (with a max line length of 256k).
5432 # Instead, let's just punt: use the minimum linelength reported by
5433 # all of the supported platforms: 8192 (on NT/2K/XP).
5434 lt_cv_sys_max_cmd_len=8192;
5438 # On AmigaOS with pdksh, this test takes hours, literally.
5439 # So we just punt and use a minimum line length of 8192.
5440 lt_cv_sys_max_cmd_len=8192;
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5447 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5448 = "XX$teststring") >/dev/null 2>&1 &&
5449 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5450 lt_cv_sys_max_cmd_len=$new_result &&
5451 test $i != 17 # 1/2 MB should be enough
5454 teststring=$teststring$teststring
5457 # Add a significant safety factor because C++ compilers can tack on massive
5458 # amounts of additional arguments before passing them to the linker.
5459 # It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5466 if test -n $lt_cv_sys_max_cmd_len ; then
5467 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5468 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5470 echo "$as_me:$LINENO: result: none" >&5
5471 echo "${ECHO_T}none" >&6
5477 # Check for command to grab the raw symbol name followed by C symbol from nm.
5478 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 # These are sane defaults that work on at least a few old systems.
5485 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5487 # Character class describing NM global symbol codes.
5488 symcode='[BCDEGRST]'
5490 # Regexp to match symbols that can be accessed directly from C.
5491 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5493 # Transform the above into a raw symbol and a C symbol.
5494 symxfrm='\1 \2\3 \3'
5496 # Transform an extracted symbol line into a proper C declaration
5497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5499 # Transform an extracted symbol line into symbol name and symbol address
5500 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'"
5502 # Define system-specific variables.
5507 cygwin* | mingw* | pw32*)
5508 symcode='[ABCDGISTW]'
5510 hpux*) # Its linker distinguishes data from code symbols
5511 if test "$host_cpu" = ia64; then
5512 symcode='[ABCDEGRST]'
5514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5515 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'"
5518 symcode='[BCDEGRST]'
5521 symcode='[BCDEGQRST]'
5531 # Handle CRLF in mingw tool chain
5535 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5539 # If we're using GNU nm, then use its standard symbol codes.
5540 case `$NM -V 2>&1` in
5541 *GNU* | *'with BFD'*)
5542 symcode='[ABCDGIRSTW]' ;;
5545 # Try without a prefix undercore, then with it.
5546 for ac_symprfx in "" "_"; do
5548 # Write the raw and C identifiers.
5549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5551 # Check to see that the pipe works correctly.
5555 cat > conftest.$ac_ext <<EOF
5560 void nm_test_func(){}
5564 int main(){nm_test_var='a';nm_test_func();return(0);}
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; then
5572 # Now try to grab the symbols.
5574 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5575 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && test -s "$nlist"; then
5579 # Try sorting and uniquifying the output.
5580 if sort "$nlist" | uniq > "$nlist"T; then
5581 mv -f "$nlist"T "$nlist"
5586 # Make sure that we snagged all the symbols we need.
5587 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5588 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5589 cat <<EOF > conftest.$ac_ext
5595 # Now generate the symbol file.
5596 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5598 cat <<EOF >> conftest.$ac_ext
5599 #if defined (__STDC__) && __STDC__
5600 # define lt_ptr_t void *
5602 # define lt_ptr_t char *
5606 /* The mapping between symbol names and symbols. */
5611 lt_preloaded_symbols[] =
5614 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5615 cat <<\EOF >> conftest.$ac_ext
5623 # Now try linking the two files.
5624 mv conftest.$ac_objext conftstm.$ac_objext
5625 lt_save_LIBS="$LIBS"
5626 lt_save_CFLAGS="$CFLAGS"
5627 LIBS="conftstm.$ac_objext"
5628 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630 (eval $ac_link) 2>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5636 LIBS="$lt_save_LIBS"
5637 CFLAGS="$lt_save_CFLAGS"
5639 echo "cannot find nm_test_func in $nlist" >&5
5642 echo "cannot find nm_test_var in $nlist" >&5
5645 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5648 echo "$progname: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 rm -f conftest* conftst*
5653 # Do not use the global_symbol_pipe unless it works.
5654 if test "$pipe_works" = yes; then
5657 lt_cv_sys_global_symbol_pipe=
5663 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664 lt_cv_sys_global_symbol_to_cdecl=
5666 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667 echo "$as_me:$LINENO: result: failed" >&5
5668 echo "${ECHO_T}failed" >&6
5670 echo "$as_me:$LINENO: result: ok" >&5
5671 echo "${ECHO_T}ok" >&6
5674 echo "$as_me:$LINENO: checking for objdir" >&5
5675 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5676 if test "${lt_cv_objdir+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 rm -f .libs 2>/dev/null
5680 mkdir .libs 2>/dev/null
5681 if test -d .libs; then
5684 # MS-DOS does not allow filenames that begin with a dot.
5687 rmdir .libs 2>/dev/null
5689 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5690 echo "${ECHO_T}$lt_cv_objdir" >&6
5691 objdir=$lt_cv_objdir
5699 # AIX sometimes has problems with the GCC collect2 program. For some
5700 # reason, if we set the COLLECT_NAMES environment variable, the problems
5701 # vanish in a puff of smoke.
5702 if test "X${COLLECT_NAMES+set}" != Xset; then
5704 export COLLECT_NAMES
5709 # Sed substitution that helps us do robust quoting. It backslashifies
5710 # metacharacters that are still active within double-quoted strings.
5711 Xsed='sed -e s/^X//'
5712 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5714 # Same as above, but do not quote variable references.
5715 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5717 # Sed substitution to delay expansion of an escaped shell variable in a
5718 # double_quote_subst'ed string.
5719 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5721 # Sed substitution to avoid accidental globbing in evaled expressions
5722 no_glob_subst='s/\*/\\\*/g'
5728 default_ofile=libtool
5729 can_build_shared=yes
5731 # All known linkers require a `.a' archive for static linking (except M$VC,
5732 # which needs '.lib').
5734 ltmain="$ac_aux_dir/ltmain.sh"
5735 ofile="$default_ofile"
5736 with_gnu_ld="$lt_cv_prog_gnu_ld"
5738 if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5740 set dummy ${ac_tool_prefix}ar; ac_word=$2
5741 echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743 if test "${ac_cv_prog_AR+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 if test -n "$AR"; then
5747 ac_cv_prog_AR="$AR" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_AR="${ac_tool_prefix}ar"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 if test -n "$AR"; then
5767 echo "$as_me:$LINENO: result: $AR" >&5
5768 echo "${ECHO_T}$AR" >&6
5770 echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5775 if test -z "$ac_cv_prog_AR"; then
5777 # Extract the first word of "ar", so it can be a program name with args.
5778 set dummy ar; ac_word=$2
5779 echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 if test -n "$ac_ct_AR"; then
5785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_AR="ar"
5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5804 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5805 if test -n "$ac_ct_AR"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5807 echo "${ECHO_T}$ac_ct_AR" >&6
5809 echo "$as_me:$LINENO: result: no" >&5
5810 echo "${ECHO_T}no" >&6
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821 echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823 if test "${ac_cv_prog_RANLIB+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 if test -n "$RANLIB"; then
5827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 RANLIB=$ac_cv_prog_RANLIB
5846 if test -n "$RANLIB"; then
5847 echo "$as_me:$LINENO: result: $RANLIB" >&5
5848 echo "${ECHO_T}$RANLIB" >&6
5850 echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6
5855 if test -z "$ac_cv_prog_RANLIB"; then
5856 ac_ct_RANLIB=$RANLIB
5857 # Extract the first word of "ranlib", so it can be a program name with args.
5858 set dummy ranlib; ac_word=$2
5859 echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 if test -n "$ac_ct_RANLIB"; then
5865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_ac_ct_RANLIB="ranlib"
5875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885 if test -n "$ac_ct_RANLIB"; then
5886 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5887 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5889 echo "$as_me:$LINENO: result: no" >&5
5890 echo "${ECHO_T}no" >&6
5893 RANLIB=$ac_ct_RANLIB
5895 RANLIB="$ac_cv_prog_RANLIB"
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}strip; ac_word=$2
5901 echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903 if test "${ac_cv_prog_STRIP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 if test -n "$STRIP"; then
5907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 STRIP=$ac_cv_prog_STRIP
5926 if test -n "$STRIP"; then
5927 echo "$as_me:$LINENO: result: $STRIP" >&5
5928 echo "${ECHO_T}$STRIP" >&6
5930 echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6
5935 if test -z "$ac_cv_prog_STRIP"; then
5937 # Extract the first word of "strip", so it can be a program name with args.
5938 set dummy strip; ac_word=$2
5939 echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 if test -n "$ac_ct_STRIP"; then
5945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_STRIP="strip"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5965 if test -n "$ac_ct_STRIP"; then
5966 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5967 echo "${ECHO_T}$ac_ct_STRIP" >&6
5969 echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6
5975 STRIP="$ac_cv_prog_STRIP"
5980 old_CFLAGS="$CFLAGS"
5982 # Set sane defaults for various variables
5983 test -z "$AR" && AR=ar
5984 test -z "$AR_FLAGS" && AR_FLAGS=cru
5985 test -z "$AS" && AS=as
5986 test -z "$CC" && CC=cc
5987 test -z "$LTCC" && LTCC=$CC
5988 test -z "$DLLTOOL" && DLLTOOL=dlltool
5989 test -z "$LD" && LD=ld
5990 test -z "$LN_S" && LN_S="ln -s"
5991 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5992 test -z "$NM" && NM=nm
5993 test -z "$SED" && SED=sed
5994 test -z "$OBJDUMP" && OBJDUMP=objdump
5995 test -z "$RANLIB" && RANLIB=:
5996 test -z "$STRIP" && STRIP=:
5997 test -z "$ac_objext" && ac_objext=o
5999 # Determine commands to create old-style static archives.
6000 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6001 old_postinstall_cmds='chmod 644 $oldlib'
6002 old_postuninstall_cmds=
6004 if test -n "$RANLIB"; then
6007 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6010 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6016 # Only perform the check for file, if the check method requires it
6017 case $deplibs_check_method in
6019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6021 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6022 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6030 lt_save_MAGIC_CMD="$MAGIC_CMD"
6031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6033 for ac_dir in $ac_dummy; do
6035 test -z "$ac_dir" && ac_dir=.
6036 if test -f $ac_dir/${ac_tool_prefix}file; then
6037 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6038 if test -n "$file_magic_test_file"; then
6039 case $deplibs_check_method in
6041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6044 $EGREP "$file_magic_regex" > /dev/null; then
6049 *** Warning: the command libtool uses to detect shared libraries,
6050 *** $file_magic_cmd, produces output that libtool cannot recognize.
6051 *** The result is that libtool may fail to recognize shared libraries
6052 *** as such. This will affect the creation of libtool libraries that
6053 *** depend on shared libraries, but programs linked with such libtool
6054 *** libraries will work regardless of this problem. Nevertheless, you
6055 *** may want to report the problem to your system manager and/or to
6056 *** bug-libtool@gnu.org
6066 MAGIC_CMD="$lt_save_MAGIC_CMD"
6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072 if test -n "$MAGIC_CMD"; then
6073 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6074 echo "${ECHO_T}$MAGIC_CMD" >&6
6076 echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6080 if test -z "$lt_cv_path_MAGIC_CMD"; then
6081 if test -n "$ac_tool_prefix"; then
6082 echo "$as_me:$LINENO: checking for file" >&5
6083 echo $ECHO_N "checking for file... $ECHO_C" >&6
6084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6092 lt_save_MAGIC_CMD="$MAGIC_CMD"
6093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6095 for ac_dir in $ac_dummy; do
6097 test -z "$ac_dir" && ac_dir=.
6098 if test -f $ac_dir/file; then
6099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6100 if test -n "$file_magic_test_file"; then
6101 case $deplibs_check_method in
6103 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6106 $EGREP "$file_magic_regex" > /dev/null; then
6111 *** Warning: the command libtool uses to detect shared libraries,
6112 *** $file_magic_cmd, produces output that libtool cannot recognize.
6113 *** The result is that libtool may fail to recognize shared libraries
6114 *** as such. This will affect the creation of libtool libraries that
6115 *** depend on shared libraries, but programs linked with such libtool
6116 *** libraries will work regardless of this problem. Nevertheless, you
6117 *** may want to report the problem to your system manager and/or to
6118 *** bug-libtool@gnu.org
6128 MAGIC_CMD="$lt_save_MAGIC_CMD"
6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134 if test -n "$MAGIC_CMD"; then
6135 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6136 echo "${ECHO_T}$MAGIC_CMD" >&6
6138 echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6
6154 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6155 if test "${enable_libtool_lock+set}" = set; then
6156 enableval="$enable_libtool_lock"
6159 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6162 # Check whether --with-pic or --without-pic was given.
6163 if test "${with_pic+set}" = set; then
6169 test -z "$pic_mode" && pic_mode=default
6171 # Use C for the default configuration in the libtool script
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6181 # Source file extension for C test sources.
6184 # Object file extension for compiled C test sources.
6188 # Code to be used in simple compile tests
6189 lt_simple_compile_test_code="int some_variable = 0;\n"
6191 # Code to be used in simple link tests
6192 lt_simple_link_test_code='int main(){return(0);}\n'
6195 # If no C compiler was specified, use CC.
6198 # Allow CC to be a program name with arguments.
6203 # Check for any special shared library compilation flags.
6206 if test "$GCC" = no; then
6209 lt_prog_cc_shlib='-belf'
6213 if test -n "$lt_prog_cc_shlib"; then
6214 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6215 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6216 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6218 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6219 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6220 lt_cv_prog_cc_can_build_shared=no
6226 # Check to make sure the static flag actually works.
6228 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6229 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6230 if test "${lt_prog_compiler_static_works+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 lt_prog_compiler_static_works=no
6234 save_LDFLAGS="$LDFLAGS"
6235 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6236 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6238 # The compiler can only warn and ignore the option if not recognized
6239 # So say no if there are warnings
6240 if test -s conftest.err; then
6241 # Append any errors to the config.log.
6242 cat conftest.err 1>&5
6244 lt_prog_compiler_static_works=yes
6248 LDFLAGS="$save_LDFLAGS"
6251 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6252 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6254 if test x"$lt_prog_compiler_static_works" = xyes; then
6257 lt_prog_compiler_static=
6263 lt_prog_compiler_no_builtin_flag=
6265 if test "$GCC" = yes; then
6266 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6269 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6270 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6271 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 lt_cv_prog_compiler_rtti_exceptions=no
6275 ac_outfile=conftest.$ac_objext
6276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6277 lt_compiler_flag="-fno-rtti -fno-exceptions"
6278 # Insert the option either (1) after the last *FLAGS variable, or
6279 # (2) before a word containing "conftest.", or (3) at the end.
6280 # Note that $ac_compile itself does not contain backslashes and begins
6281 # with a dollar sign (not a hyphen), so the echo should work correctly.
6282 # The option is referenced via a variable to avoid confusing sed.
6283 lt_compile=`echo "$ac_compile" | $SED \
6284 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6286 -e 's:$: $lt_compiler_flag:'`
6287 (eval echo "\"\$as_me:6287: $lt_compile\"" >&5)
6288 (eval "$lt_compile" 2>conftest.err)
6290 cat conftest.err >&5
6291 echo "$as_me:6291: \$? = $ac_status" >&5
6292 if (exit $ac_status) && test -s "$ac_outfile"; then
6293 # The compiler can only warn and ignore the option if not recognized
6294 # So say no if there are warnings
6295 if test ! -s conftest.err; then
6296 lt_cv_prog_compiler_rtti_exceptions=yes
6302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6303 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6305 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6306 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6313 lt_prog_compiler_wl=
6314 lt_prog_compiler_pic=
6315 lt_prog_compiler_static=
6317 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6318 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6320 if test "$GCC" = yes; then
6321 lt_prog_compiler_wl='-Wl,'
6322 lt_prog_compiler_static='-static'
6326 # All AIX code is PIC.
6327 if test "$host_cpu" = ia64; then
6328 # AIX 5 now supports IA64 processor
6329 lt_prog_compiler_static='-Bstatic'
6334 # FIXME: we need at least 68020 code to build shared libraries, but
6335 # adding the `-m68020' flag to GCC prevents building anything better,
6337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6340 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6341 # PIC is the default for these OSes.
6344 mingw* | pw32* | os2*)
6345 # This hack is so that the source file can tell whether it is being
6346 # built for inclusion in a dll (and should export symbols for example).
6347 lt_prog_compiler_pic='-DDLL_EXPORT'
6350 darwin* | rhapsody*)
6351 # PIC is the default on this platform
6352 # Common symbols not allowed in MH_DYLIB files
6353 lt_prog_compiler_pic='-fno-common'
6357 # Just because we use GCC doesn't mean we suddenly get shared libraries
6358 # on systems that don't support them.
6359 lt_prog_compiler_can_build_shared=no
6364 if test -d /usr/nec; then
6365 lt_prog_compiler_pic=-Kconform_pic
6370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6377 lt_prog_compiler_pic='-fPIC'
6383 lt_prog_compiler_pic='-fPIC'
6387 # PORTME Check for flag to pass linker flags through the system compiler.
6390 lt_prog_compiler_wl='-Wl,'
6391 if test "$host_cpu" = ia64; then
6392 # AIX 5 now supports IA64 processor
6393 lt_prog_compiler_static='-Bstatic'
6395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6399 mingw* | pw32* | os2*)
6400 # This hack is so that the source file can tell whether it is being
6401 # built for inclusion in a dll (and should export symbols for example).
6402 lt_prog_compiler_pic='-DDLL_EXPORT'
6405 hpux9* | hpux10* | hpux11*)
6406 lt_prog_compiler_wl='-Wl,'
6407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6414 lt_prog_compiler_pic='+Z'
6417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6418 lt_prog_compiler_static='${wl}-a ${wl}archive'
6421 irix5* | irix6* | nonstopux*)
6422 lt_prog_compiler_wl='-Wl,'
6423 # PIC (with -KPIC) is the default.
6424 lt_prog_compiler_static='-non_shared'
6428 lt_prog_compiler_pic='-KPIC'
6429 lt_prog_compiler_static='-Bstatic'
6435 lt_prog_compiler_wl='-Wl,'
6436 lt_prog_compiler_pic='-KPIC'
6437 lt_prog_compiler_static='-static'
6440 lt_prog_compiler_wl='-Wl,'
6441 # All Alpha code is PIC.
6442 lt_prog_compiler_static='-non_shared'
6447 osf3* | osf4* | osf5*)
6448 lt_prog_compiler_wl='-Wl,'
6449 # All OSF/1 code is PIC.
6450 lt_prog_compiler_static='-non_shared'
6454 lt_prog_compiler_pic='-Kpic'
6455 lt_prog_compiler_static='-dn'
6459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
6465 lt_prog_compiler_wl='-Qoption ld '
6466 lt_prog_compiler_pic='-PIC'
6467 lt_prog_compiler_static='-Bstatic'
6470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6471 lt_prog_compiler_wl='-Wl,'
6472 lt_prog_compiler_pic='-KPIC'
6473 lt_prog_compiler_static='-Bstatic'
6477 if test -d /usr/nec ;then
6478 lt_prog_compiler_pic='-Kconform_pic'
6479 lt_prog_compiler_static='-Bstatic'
6484 lt_prog_compiler_pic='-pic'
6485 lt_prog_compiler_static='-Bstatic'
6489 lt_prog_compiler_can_build_shared=no
6494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6495 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6498 # Check to make sure the PIC flag actually works.
6500 if test -n "$lt_prog_compiler_pic"; then
6502 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6503 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6504 if test "${lt_prog_compiler_pic_works+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 lt_prog_compiler_pic_works=no
6508 ac_outfile=conftest.$ac_objext
6509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6510 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6511 # Insert the option either (1) after the last *FLAGS variable, or
6512 # (2) before a word containing "conftest.", or (3) at the end.
6513 # Note that $ac_compile itself does not contain backslashes and begins
6514 # with a dollar sign (not a hyphen), so the echo should work correctly.
6515 # The option is referenced via a variable to avoid confusing sed.
6516 lt_compile=`echo "$ac_compile" | $SED \
6517 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6519 -e 's:$: $lt_compiler_flag:'`
6520 (eval echo "\"\$as_me:6520: $lt_compile\"" >&5)
6521 (eval "$lt_compile" 2>conftest.err)
6523 cat conftest.err >&5
6524 echo "$as_me:6524: \$? = $ac_status" >&5
6525 if (exit $ac_status) && test -s "$ac_outfile"; then
6526 # The compiler can only warn and ignore the option if not recognized
6527 # So say no if there are warnings
6528 if test ! -s conftest.err; then
6529 lt_prog_compiler_pic_works=yes
6535 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6536 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6538 if test x"$lt_prog_compiler_pic_works" = xyes; then
6539 case $lt_prog_compiler_pic in
6541 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6544 lt_prog_compiler_pic=
6545 lt_prog_compiler_can_build_shared=no
6550 # For platforms which do not support PIC, -DPIC is meaningless:
6552 lt_prog_compiler_pic=
6555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6559 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6560 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6561 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 lt_cv_prog_compiler_c_o=no
6565 $rm -r conftest 2>/dev/null
6569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6571 lt_compiler_flag="-o out/conftest2.$ac_objext"
6572 # Insert the option either (1) after the last *FLAGS variable, or
6573 # (2) before a word containing "conftest.", or (3) at the end.
6574 # Note that $ac_compile itself does not contain backslashes and begins
6575 # with a dollar sign (not a hyphen), so the echo should work correctly.
6576 lt_compile=`echo "$ac_compile" | $SED \
6577 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6579 -e 's:$: $lt_compiler_flag:'`
6580 (eval echo "\"\$as_me:6580: $lt_compile\"" >&5)
6581 (eval "$lt_compile" 2>out/conftest.err)
6583 cat out/conftest.err >&5
6584 echo "$as_me:6584: \$? = $ac_status" >&5
6585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6587 # The compiler can only warn and ignore the option if not recognized
6588 # So say no if there are warnings
6589 if test ! -s out/conftest.err; then
6590 lt_cv_prog_compiler_c_o=yes
6595 # SGI C++ compiler will create directory out/ii_files/ for
6596 # template instantiation
6597 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6598 $rm out/* && rmdir out
6604 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6605 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6608 hard_links="nottested"
6609 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6610 # do not overwrite the value of need_locks provided by the user
6611 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6612 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6617 ln conftest.a conftest.b 2>&5 || hard_links=no
6618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6619 echo "$as_me:$LINENO: result: $hard_links" >&5
6620 echo "${ECHO_T}$hard_links" >&6
6621 if test "$hard_links" = no; then
6622 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6623 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6630 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6631 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6634 allow_undefined_flag=
6635 enable_shared_with_static_runtimes=no
6637 archive_expsym_cmds=
6638 old_archive_From_new_cmds=
6639 old_archive_from_expsyms_cmds=
6640 export_dynamic_flag_spec=
6641 whole_archive_flag_spec=
6642 thread_safe_flag_spec=
6643 hardcode_libdir_flag_spec=
6644 hardcode_libdir_flag_spec_ld=
6645 hardcode_libdir_separator=
6648 hardcode_shlibpath_var=unsupported
6649 link_all_deplibs=unknown
6650 hardcode_automatic=no
6653 always_export_symbols=no
6654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6655 # include_expsyms should be a list of space-separated symbols to be *always*
6656 # included in the symbol list
6658 # exclude_expsyms can be an extended regexp of symbols to exclude
6659 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6660 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6661 # as well as any symbol that contains `d'.
6662 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6663 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6664 # platforms (ab)use it in PIC code, but their linkers get confused if
6665 # the symbol is explicitly referenced. Since portable code cannot
6666 # rely on this symbol name, it's probably fine to never include it in
6667 # preloaded symbol tables.
6668 extract_expsyms_cmds=
6671 cygwin* | mingw* | pw32*)
6672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6673 # When not using gcc, we currently assume that we are using
6674 # Microsoft Visual C++.
6675 if test "$GCC" != yes; then
6685 if test "$with_gnu_ld" = yes; then
6686 # If archive_cmds runs LD, not CC, wlarc should be empty
6689 # See if GNU ld supports shared libraries.
6691 aix3* | aix4* | aix5*)
6692 # On AIX/PPC, the GNU linker is very broken
6693 if test "$host_cpu" != ia64; then
6697 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6698 *** to be unable to reliably create shared libraries on AIX.
6699 *** Therefore, libtool is disabling shared libraries support. If you
6700 *** really care for shared libraries, you may want to modify your PATH
6701 *** so that a non-GNU linker is found, and then restart.
6708 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)'
6709 hardcode_libdir_flag_spec='-L$libdir'
6710 hardcode_minus_L=yes
6712 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6713 # that the semantics of dynamic libraries on AmigaOS, at least up
6714 # to version 4, is to share data among multiple programs linked
6715 # with the same dynamic library. Since this doesn't match the
6716 # behavior of shared libraries on other platforms, we can't use
6722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6723 allow_undefined_flag=unsupported
6724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6725 # support --undefined. This deserves some investigation. FIXME
6726 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6732 cygwin* | mingw* | pw32*)
6733 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6734 # as there is no search path for DLLs.
6735 hardcode_libdir_flag_spec='-L$libdir'
6736 allow_undefined_flag=unsupported
6737 always_export_symbols=no
6738 enable_shared_with_static_runtimes=yes
6739 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6741 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6743 # If the export-symbols file already is a .def file (1st line
6744 # is EXPORTS), use it as is; otherwise, prepend...
6745 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6746 cp $export_symbols $output_objdir/$soname.def;
6748 echo EXPORTS > $output_objdir/$soname.def;
6749 cat $export_symbols >> $output_objdir/$soname.def;
6751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6768 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6772 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6773 *** create shared libraries on Solaris systems. Therefore, libtool
6774 *** is disabling shared libraries support. We urge you to upgrade GNU
6775 *** binutils to release 2.9.1 or newer. Another option is to modify
6776 *** your PATH or compiler configuration so that the native linker is
6777 *** used, and then restart.
6780 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6789 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6792 hardcode_shlibpath_var=no
6796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6797 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798 archive_cmds="$tmp_archive_cmds"
6799 supports_anon_versioning=no
6800 case `$LD -v 2>/dev/null` in
6801 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804 *\ 2.11.*) ;; # other 2.11 versions
6805 *) supports_anon_versioning=yes ;;
6807 if test $supports_anon_versioning = yes; then
6808 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6810 $echo "local: *; };" >> $output_objdir/$libname.ver~
6811 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6813 archive_expsym_cmds="$tmp_archive_cmds"
6821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6830 if test "$ld_shlibs" = yes; then
6831 runpath_var=LD_RUN_PATH
6832 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6833 export_dynamic_flag_spec='${wl}--export-dynamic'
6834 # ancient GNU ld didn't support --whole-archive et. al.
6835 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6836 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6838 whole_archive_flag_spec=
6842 # PORTME fill in a description of your system's linker (not GNU ld)
6845 allow_undefined_flag=unsupported
6846 always_export_symbols=yes
6847 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'
6848 # Note: this linker hardcodes the directories in LIBPATH if there
6849 # are no directories specified by -L.
6850 hardcode_minus_L=yes
6851 if test "$GCC" = yes && test -z "$link_static_flag"; then
6852 # Neither direct hardcoding nor static linking is supported with a
6854 hardcode_direct=unsupported
6859 if test "$host_cpu" = ia64; then
6860 # On IA64, the linker does run time linking by default, so we don't
6861 # have to do anything special.
6862 aix_use_runtimelinking=no
6863 exp_sym_flag='-Bexport'
6866 # If we're using GNU nm, then we don't want the "-C" option.
6867 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6868 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6869 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'
6871 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'
6873 aix_use_runtimelinking=no
6875 # Test if we are trying to use run time linking or normal
6876 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6877 # need to do runtime linking.
6878 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6879 for ld_flag in $LDFLAGS; do
6880 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6881 aix_use_runtimelinking=yes
6887 exp_sym_flag='-bexport'
6888 no_entry_flag='-bnoentry'
6891 # When large executables or shared objects are built, AIX ld can
6892 # have problems creating the table of contents. If linking a library
6893 # or program results in "error TOC overflow" add -mminimal-toc to
6894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6899 hardcode_libdir_separator=':'
6900 link_all_deplibs=yes
6902 if test "$GCC" = yes; then
6903 case $host_os in aix4.012|aix4.012.*)
6904 # We only want to do this on AIX 4.2 and lower, the check
6905 # below for broken collect2 doesn't work under 4.3+
6906 collect2name=`${CC} -print-prog-name=collect2`
6907 if test -f "$collect2name" && \
6908 strings "$collect2name" | grep resolve_lib_name >/dev/null
6910 # We have reworked collect2
6913 # We have old collect2
6914 hardcode_direct=unsupported
6915 # It fails to find uninstalled libraries when the uninstalled
6916 # path is not listed in the libpath. Setting hardcode_minus_L
6917 # to unsupported forces relinking
6918 hardcode_minus_L=yes
6919 hardcode_libdir_flag_spec='-L$libdir'
6920 hardcode_libdir_separator=
6923 shared_flag='-shared'
6926 if test "$host_cpu" = ia64; then
6927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6928 # chokes on -Wl,-G. The following line is correct:
6931 if test "$aix_use_runtimelinking" = yes; then
6932 shared_flag='${wl}-G'
6934 shared_flag='${wl}-bM:SRE'
6939 # It seems that -bexpall does not export symbols beginning with
6940 # underscore (_), so it is better to generate a list of symbols to export.
6941 always_export_symbols=yes
6942 if test "$aix_use_runtimelinking" = yes; then
6943 # Warning - without using the other runtime loading flags (-brtl),
6944 # -berok will link without error, but may produce a broken library.
6945 allow_undefined_flag='-berok'
6946 # Determine the default libpath from the value encoded in an empty executable.
6947 cat >conftest.$ac_ext <<_ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -z "$ac_c_werror_flag"
6972 || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6987 # Check for a 64-bit object if we didn't find anything.
6988 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; }
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6995 rm -f conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
6997 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7000 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"
7002 if test "$host_cpu" = ia64; then
7003 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7004 allow_undefined_flag="-z nodefs"
7005 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"
7007 # Determine the default libpath from the value encoded in an empty executable.
7008 cat >conftest.$ac_ext <<_ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7023 rm -f conftest.$ac_objext conftest$ac_exeext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025 (eval $ac_link) 2>conftest.er1
7027 grep -v '^ *+' conftest.er1 >conftest.err
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -z "$ac_c_werror_flag"
7033 || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try='test -s conftest$ac_exeext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7048 # Check for a 64-bit object if we didn't find anything.
7049 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; }
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7056 rm -f conftest.err conftest.$ac_objext \
7057 conftest$ac_exeext conftest.$ac_ext
7058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7061 # Warning - without using the other run time loading flags,
7062 # -berok will link without error, but may produce a broken library.
7063 no_undefined_flag=' ${wl}-bernotok'
7064 allow_undefined_flag=' ${wl}-berok'
7065 # -bexpall does not export symbols beginning with underscore (_)
7066 always_export_symbols=yes
7067 # Exported symbols can be pulled into shared objects from archives
7068 whole_archive_flag_spec=' '
7069 archive_cmds_need_lc=yes
7070 # This is similar to how AIX traditionally builds it's shared libraries.
7071 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'
7077 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)'
7078 hardcode_libdir_flag_spec='-L$libdir'
7079 hardcode_minus_L=yes
7080 # see comment about different semantics on the GNU ld section
7085 export_dynamic_flag_spec=-rdynamic
7088 cygwin* | mingw* | pw32*)
7089 # When not using gcc, we currently assume that we are using
7090 # Microsoft Visual C++.
7091 # hardcode_libdir_flag_spec is actually meaningless, as there is
7092 # no search path for DLLs.
7093 hardcode_libdir_flag_spec=' '
7094 allow_undefined_flag=unsupported
7095 # Tell ltmain to make .lib files, not .a files.
7097 # Tell ltmain to make .dll files, not .so files.
7099 # FIXME: Setting linknames here is a bad hack.
7100 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7101 # The linker will automatically build a .lib file if we build a DLL.
7102 old_archive_From_new_cmds='true'
7103 # FIXME: Should let the user specify the lib program.
7104 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7105 fix_srcfile_path='`cygpath -w "$srcfile"`'
7106 enable_shared_with_static_runtimes=yes
7109 darwin* | rhapsody*)
7110 if test "$GXX" = yes ; then
7111 archive_cmds_need_lc=no
7113 rhapsody* | darwin1.[012])
7114 allow_undefined_flag='-undefined suppress'
7117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7118 allow_undefined_flag='-flat_namespace -undefined suppress'
7120 case ${MACOSX_DEPLOYMENT_TARGET} in
7122 allow_undefined_flag='-flat_namespace -undefined suppress'
7125 allow_undefined_flag='-undefined dynamic_lookup'
7131 lt_int_apple_cc_single_mod=no
7132 output_verbose_link_cmd='echo'
7133 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7134 lt_int_apple_cc_single_mod=yes
7136 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7137 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7139 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'
7141 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7142 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7143 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7144 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}'
7146 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}'
7148 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}'
7150 hardcode_automatic=yes
7151 hardcode_shlibpath_var=unsupported
7152 whole_archive_flag_spec='-all_load $convenience'
7153 link_all_deplibs=yes
7160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7161 hardcode_libdir_flag_spec='-L$libdir'
7162 hardcode_shlibpath_var=no
7169 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7170 # support. Future versions do this automatically, but an explicit c++rt0.o
7171 # does not break anything, and helps significantly (at the cost of a little
7174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7175 hardcode_libdir_flag_spec='-R$libdir'
7177 hardcode_shlibpath_var=no
7180 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7184 hardcode_minus_L=yes
7185 hardcode_shlibpath_var=no
7188 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7189 freebsd* | kfreebsd*-gnu)
7190 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7191 hardcode_libdir_flag_spec='-R$libdir'
7193 hardcode_shlibpath_var=no
7197 if test "$GCC" = yes; then
7198 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'
7200 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'
7202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7203 hardcode_libdir_separator=:
7206 # hardcode_minus_L: Not really in the search PATH,
7207 # but as the default location of the library.
7208 hardcode_minus_L=yes
7209 export_dynamic_flag_spec='${wl}-E'
7213 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7216 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7219 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7225 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7232 if test "$with_gnu_ld" = no; then
7235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7236 hardcode_libdir_flag_spec_ld='+b $libdir'
7237 hardcode_libdir_separator=:
7239 hardcode_shlibpath_var=no
7242 hardcode_libdir_flag_spec='-L$libdir'
7244 hardcode_shlibpath_var=no
7246 # hardcode_minus_L: Not really in the search PATH,
7247 # but as the default location of the library.
7248 hardcode_minus_L=yes
7251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7252 hardcode_libdir_separator=:
7254 export_dynamic_flag_spec='${wl}-E'
7256 # hardcode_minus_L: Not really in the search PATH,
7257 # but as the default location of the library.
7258 hardcode_minus_L=yes
7264 irix5* | irix6* | nonstopux*)
7265 if test "$GCC" = yes; then
7266 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'
7268 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'
7269 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7272 hardcode_libdir_separator=:
7273 link_all_deplibs=yes
7277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7280 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7282 hardcode_libdir_flag_spec='-R$libdir'
7284 hardcode_shlibpath_var=no
7288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7291 hardcode_libdir_separator=:
7292 hardcode_shlibpath_var=no
7297 hardcode_shlibpath_var=no
7298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7300 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7301 export_dynamic_flag_spec='${wl}-E'
7304 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_libdir_flag_spec='-R$libdir'
7309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7317 hardcode_libdir_flag_spec='-L$libdir'
7318 hardcode_minus_L=yes
7319 allow_undefined_flag=unsupported
7320 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'
7321 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7325 if test "$GCC" = yes; then
7326 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7327 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'
7329 allow_undefined_flag=' -expect_unresolved \*'
7330 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'
7332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7333 hardcode_libdir_separator=:
7336 osf4* | osf5*) # as osf3* with the addition of -msym flag
7337 if test "$GCC" = yes; then
7338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7339 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'
7340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7342 allow_undefined_flag=' -expect_unresolved \*'
7343 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'
7344 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7345 $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'
7347 # Both c and cxx compiler support -rpath directly
7348 hardcode_libdir_flag_spec='-rpath $libdir'
7350 hardcode_libdir_separator=:
7354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355 hardcode_shlibpath_var=no
7356 export_dynamic_flag_spec='${wl}-Bexport'
7357 runpath_var=LD_RUN_PATH
7358 hardcode_runpath_var=yes
7362 no_undefined_flag=' -z text'
7363 if test "$GCC" = yes; then
7364 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7365 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7368 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7370 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7372 hardcode_libdir_flag_spec='-R$libdir'
7373 hardcode_shlibpath_var=no
7375 solaris2.[0-5] | solaris2.[0-5].*) ;;
7376 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7377 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7379 link_all_deplibs=yes
7383 if test "x$host_vendor" = xsequent; then
7384 # Use $CC to link under sequent, because it throws in some extra .o
7385 # files that make .init and .fini sections work.
7386 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7388 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7390 hardcode_libdir_flag_spec='-L$libdir'
7392 hardcode_minus_L=yes
7393 hardcode_shlibpath_var=no
7397 case $host_vendor in
7399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_direct=yes # is this really true???
7403 ## LD is ld it makes a PLAMLIB
7404 ## CC just makes a GrossModule.
7405 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7406 reload_cmds='$CC -r -o $output$reload_objs'
7410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7414 runpath_var='LD_RUN_PATH'
7415 hardcode_shlibpath_var=no
7419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420 hardcode_shlibpath_var=no
7421 export_dynamic_flag_spec='-Bexport'
7425 if test -d /usr/nec; then
7426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7427 hardcode_shlibpath_var=no
7428 runpath_var=LD_RUN_PATH
7429 hardcode_runpath_var=yes
7435 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_shlibpath_var=no
7439 hardcode_runpath_var=yes
7440 runpath_var=LD_RUN_PATH
7443 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7444 no_undefined_flag='${wl}-z ${wl}text'
7445 if test "$GCC" = yes; then
7446 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7448 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7450 runpath_var='LD_RUN_PATH'
7451 hardcode_shlibpath_var=no
7455 no_undefined_flag=' -z text'
7456 # $CC -shared without GNU ld will not create a library from C++
7457 # object files and a static libstdc++, better avoid it by now
7458 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7460 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7461 hardcode_libdir_flag_spec=
7462 hardcode_shlibpath_var=no
7463 runpath_var='LD_RUN_PATH'
7467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468 hardcode_libdir_flag_spec='-L$libdir'
7469 hardcode_shlibpath_var=no
7478 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7479 echo "${ECHO_T}$ld_shlibs" >&6
7480 test "$ld_shlibs" = no && can_build_shared=no
7482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7483 if test "$GCC" = yes; then
7484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7488 # Do we need to explicitly link libc?
7490 case "x$archive_cmds_need_lc" in
7492 # Assume -lc should be added
7493 archive_cmds_need_lc=yes
7495 if test "$enable_shared" = yes && test "$GCC" = yes; then
7496 case $archive_cmds in
7498 # FIXME: we may have to deal with multi-command sequences.
7501 # Test whether the compiler implicitly links with -lc since on some
7502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7503 # to ld, don't add -lc before -lgcc.
7504 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7505 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } 2>conftest.err; then
7516 libobjs=conftest.$ac_objext
7518 wl=$lt_prog_compiler_wl
7524 lt_save_allow_undefined_flag=$allow_undefined_flag
7525 allow_undefined_flag=
7526 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7527 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }
7532 archive_cmds_need_lc=no
7534 archive_cmds_need_lc=yes
7536 allow_undefined_flag=$lt_save_allow_undefined_flag
7538 cat conftest.err 1>&5
7541 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7542 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7549 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7550 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7552 libname_spec='lib$name'
7560 shlibpath_overrides_runpath=unknown
7562 dynamic_linker="$host_os ld.so"
7563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7564 if test "$GCC" = yes; then
7565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7566 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7567 # if the path contains ";" then we assume it to be the separator
7568 # otherwise default to the standard path separator (i.e. ":") - it is
7569 # assumed that no part of a normal pathname contains ";" but that should
7570 # okay in the real world where ";" in dirpaths is itself problematic.
7571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7578 need_lib_prefix=unknown
7579 hardcode_into_libs=no
7581 # when you set need_version to no, make sure it does not cause -set_version
7582 # flags to be left without arguments
7583 need_version=unknown
7588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7589 shlibpath_var=LIBPATH
7591 # AIX 3 has no versioning support, so we append a major version to the name.
7592 soname_spec='${libname}${release}${shared_ext}$major'
7599 hardcode_into_libs=yes
7600 if test "$host_cpu" = ia64; then
7601 # AIX 5 supports IA64
7602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7603 shlibpath_var=LD_LIBRARY_PATH
7605 # With GCC up to 2.95.x, collect2 would create an import file
7606 # for dependence libraries. The import file would start with
7607 # the line `#! .'. This would cause the generated library to
7608 # depend on `.', always an invalid library. This was fixed in
7609 # development snapshots of GCC prior to 3.0.
7611 aix4 | aix4.[01] | aix4.[01].*)
7612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7614 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7622 # soname into executable. Probably we can add versioning support to
7623 # collect2, so additional links can be useful in future.
7624 if test "$aix_use_runtimelinking" = yes; then
7625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7626 # instead of lib<name>.a to let people know that these are not
7627 # typical AIX shared libraries.
7628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7630 # We preserve .a as extension for shared libraries through AIX4.2
7631 # and later when we are not doing run time linking.
7632 library_names_spec='${libname}${release}.a $libname.a'
7633 soname_spec='${libname}${release}${shared_ext}$major'
7635 shlibpath_var=LIBPATH
7640 library_names_spec='$libname.ixlibrary $libname.a'
7641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7642 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'
7646 library_names_spec='${libname}${shared_ext}'
7647 dynamic_linker="$host_os ld.so"
7648 shlibpath_var=LIBRARY_PATH
7654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7655 soname_spec='${libname}${release}${shared_ext}$major'
7656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7657 shlibpath_var=LD_LIBRARY_PATH
7658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7660 # the default ld.so.conf also contains /usr/contrib/lib and
7661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7662 # libtool to hard-code these into programs
7665 cygwin* | mingw* | pw32*)
7666 version_type=windows
7671 case $GCC,$host_os in
7672 yes,cygwin* | yes,mingw* | yes,pw32*)
7673 library_names_spec='$libname.dll.a'
7674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7675 postinstall_cmds='base_file=`basename \${file}`~
7676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7677 dldir=$destdir/`dirname \$dlpath`~
7678 test -d \$dldir || mkdir -p \$dldir~
7679 $install_prog $dir/$dlname \$dldir/$dlname'
7680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7681 dlpath=$dir/\$dldll~
7683 shlibpath_overrides_runpath=yes
7687 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7692 # MinGW DLLs use traditional 'lib' prefix
7693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7695 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7696 # It is most probably a Windows format PATH printed by
7697 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7698 # path with ; separators, and with drive letters. We can handle the
7699 # drive letters (cygwin fileutils understands them), so leave them,
7700 # especially as we might pass files found there to a mingw objdump,
7701 # which wouldn't understand a cygwinified path. Ahh.
7702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7708 # pw32 DLLs use 'pw' prefix rather than 'lib'
7709 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7718 dynamic_linker='Win32 ld.exe'
7719 # FIXME: first we should search . and the directory the executable is in
7723 darwin* | rhapsody*)
7724 dynamic_linker="$host_os dyld"
7728 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7729 soname_spec='${libname}${release}${major}$shared_ext'
7730 shlibpath_overrides_runpath=yes
7731 shlibpath_var=DYLD_LIBRARY_PATH
7732 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7733 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7734 if test "$GCC" = yes; then
7735 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"`
7737 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7747 soname_spec='${libname}${release}${shared_ext}$major'
7748 shlibpath_var=LD_LIBRARY_PATH
7759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7760 soname_spec='${libname}${release}${shared_ext}$major'
7761 shlibpath_var=LD_LIBRARY_PATH
7762 shlibpath_overrides_runpath=no
7763 hardcode_into_libs=yes
7764 dynamic_linker='GNU ld.so'
7768 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7769 version_type=freebsd-$objformat
7770 case $version_type in
7772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7781 shlibpath_var=LD_LIBRARY_PATH
7784 shlibpath_overrides_runpath=yes
7786 freebsd3.01* | freebsdelf3.01*)
7787 shlibpath_overrides_runpath=yes
7788 hardcode_into_libs=yes
7791 shlibpath_overrides_runpath=no
7792 hardcode_into_libs=yes
7801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7802 soname_spec='${libname}${release}${shared_ext}$major'
7803 shlibpath_var=LD_LIBRARY_PATH
7804 hardcode_into_libs=yes
7807 hpux9* | hpux10* | hpux11*)
7808 # Give a soname corresponding to the major version so that dld.sl refuses to
7809 # link against other versions.
7816 hardcode_into_libs=yes
7817 dynamic_linker="$host_os dld.so"
7818 shlibpath_var=LD_LIBRARY_PATH
7819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7821 soname_spec='${libname}${release}${shared_ext}$major'
7822 if test "X$HPUX_IA64_MODE" = X32; then
7823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7831 hardcode_into_libs=yes
7832 dynamic_linker="$host_os dld.sl"
7833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836 soname_spec='${libname}${release}${shared_ext}$major'
7837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7842 dynamic_linker="$host_os dld.sl"
7843 shlibpath_var=SHLIB_PATH
7844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846 soname_spec='${libname}${release}${shared_ext}$major'
7849 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7850 postinstall_cmds='chmod 555 $lib'
7853 irix5* | irix6* | nonstopux*)
7855 nonstopux*) version_type=nonstopux ;;
7857 if test "$lt_cv_prog_gnu_ld" = yes; then
7865 soname_spec='${libname}${release}${shared_ext}$major'
7866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7868 irix5* | nonstopux*)
7872 case $LD in # libtool.m4 will add one of these switches to LD
7873 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7874 libsuff= shlibsuff= libmagic=32-bit;;
7875 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7876 libsuff=32 shlibsuff=N32 libmagic=N32;;
7877 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7878 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7879 *) libsuff= shlibsuff= libmagic=never-match;;
7883 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7884 shlibpath_overrides_runpath=no
7885 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7886 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7887 hardcode_into_libs=yes
7890 # No shared lib support for Linux oldld, aout, or coff.
7891 linux*oldld* | linux*aout* | linux*coff*)
7895 # This must be Linux ELF.
7900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901 soname_spec='${libname}${release}${shared_ext}$major'
7902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7903 shlibpath_var=LD_LIBRARY_PATH
7904 shlibpath_overrides_runpath=no
7905 # This implies no fast_install, which is unacceptable.
7906 # Some rework will be needed to allow for fast_install
7907 # before this can be enabled.
7908 hardcode_into_libs=yes
7910 # find out which ABI we are using
7913 x86_64*|s390x*|powerpc64*)
7914 echo '#line 7914 "configure"' > conftest.$ac_ext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; then
7920 case `/usr/bin/file conftest.$ac_objext` in
7923 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7931 # Append ld.so.conf contents to the search path
7932 if test -f /etc/ld.so.conf; then
7933 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7934 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7937 # We used to test for /lib/ld.so.1 and disable shared libraries on
7938 # powerpc, because MkLinux only supported shared libraries with the
7939 # GNU dynamic linker. Since this was broken with cross compilers,
7940 # most powerpc-linux boxes support dynamic linking these days and
7941 # people can always --disable-shared, the test was removed, and we
7942 # assume the GNU/Linux dynamic linker is in use.
7943 dynamic_linker='GNU/Linux ld.so'
7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7951 soname_spec='${libname}${release}${shared_ext}$major'
7952 shlibpath_var=LD_LIBRARY_PATH
7953 shlibpath_overrides_runpath=no
7954 hardcode_into_libs=yes
7955 dynamic_linker='GNU ld.so'
7962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7965 dynamic_linker='NetBSD (a.out) ld.so'
7967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7968 soname_spec='${libname}${release}${shared_ext}$major'
7969 dynamic_linker='NetBSD ld.elf_so'
7971 shlibpath_var=LD_LIBRARY_PATH
7972 shlibpath_overrides_runpath=yes
7973 hardcode_into_libs=yes
7978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7979 shlibpath_var=LD_LIBRARY_PATH
7980 shlibpath_overrides_runpath=yes
7987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7988 soname_spec='${libname}${release}${shared_ext}$major'
7989 shlibpath_var=LD_LIBRARY_PATH
7990 shlibpath_overrides_runpath=yes
7997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7999 shlibpath_var=LD_LIBRARY_PATH
8000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8002 openbsd2.[89] | openbsd2.[89].*)
8003 shlibpath_overrides_runpath=no
8006 shlibpath_overrides_runpath=yes
8010 shlibpath_overrides_runpath=yes
8015 libname_spec='$name'
8018 library_names_spec='$libname${shared_ext} $libname.a'
8019 dynamic_linker='OS/2 ld.exe'
8020 shlibpath_var=LIBPATH
8023 osf3* | osf4* | osf5*)
8027 soname_spec='${libname}${release}${shared_ext}$major'
8028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8029 shlibpath_var=LD_LIBRARY_PATH
8030 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8031 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8036 soname_spec='${libname}${release}${shared_ext}$major'
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8038 shlibpath_var=LD_LIBRARY_PATH
8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046 soname_spec='${libname}${release}${shared_ext}$major'
8047 shlibpath_var=LD_LIBRARY_PATH
8048 shlibpath_overrides_runpath=yes
8049 hardcode_into_libs=yes
8050 # ldd complains unless libraries are executable
8051 postinstall_cmds='chmod +x $lib'
8056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8058 shlibpath_var=LD_LIBRARY_PATH
8059 shlibpath_overrides_runpath=yes
8060 if test "$with_gnu_ld" = yes; then
8066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 shlibpath_var=LD_LIBRARY_PATH
8071 case $host_vendor in
8073 shlibpath_overrides_runpath=no
8075 export_dynamic_flag_spec='${wl}-Blargedynsym'
8076 runpath_var=LD_RUN_PATH
8084 shlibpath_overrides_runpath=no
8085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8091 if test -d /usr/nec ;then
8093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8094 soname_spec='$libname${shared_ext}.$major'
8095 shlibpath_var=LD_LIBRARY_PATH
8101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102 soname_spec='${libname}${release}${shared_ext}$major'
8103 shlibpath_var=LD_LIBRARY_PATH
8110 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8111 echo "${ECHO_T}$dynamic_linker" >&6
8112 test "$dynamic_linker" = no && can_build_shared=no
8114 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8115 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8117 if test -n "$hardcode_libdir_flag_spec" || \
8118 test -n "$runpath_var " || \
8119 test "X$hardcode_automatic"="Xyes" ; then
8121 # We can hardcode non-existant directories.
8122 if test "$hardcode_direct" != no &&
8123 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8124 # have to relink, otherwise we might link with an installed library
8125 # when we should be linking with a yet-to-be-installed one
8126 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8127 test "$hardcode_minus_L" != no; then
8128 # Linking always hardcodes the temporary library directory.
8129 hardcode_action=relink
8131 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8132 hardcode_action=immediate
8135 # We cannot hardcode anything, or else we can only hardcode existing
8137 hardcode_action=unsupported
8139 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8140 echo "${ECHO_T}$hardcode_action" >&6
8142 if test "$hardcode_action" = relink; then
8143 # Fast installation is not supported
8144 enable_fast_install=no
8145 elif test "$shlibpath_overrides_runpath" = yes ||
8146 test "$enable_shared" = no; then
8147 # Fast installation is not necessary
8148 enable_fast_install=needless
8153 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8154 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8155 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8156 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8157 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8158 echo "$as_me:$LINENO: result: yes" >&5
8159 echo "${ECHO_T}yes" >&6
8161 # FIXME - insert some real tests, host_os isn't really good enough
8164 if test -n "$STRIP" ; then
8165 striplib="$STRIP -x"
8166 echo "$as_me:$LINENO: result: yes" >&5
8167 echo "${ECHO_T}yes" >&6
8169 echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6
8174 echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8180 if test "x$enable_dlopen" != xyes; then
8181 enable_dlopen=unknown
8182 enable_dlopen_self=unknown
8183 enable_dlopen_self_static=unknown
8190 lt_cv_dlopen="load_add_on"
8192 lt_cv_dlopen_self=yes
8196 lt_cv_dlopen="LoadLibrary"
8201 lt_cv_dlopen="dlopen"
8206 # if libdl is installed we need to link against it
8207 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8208 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 ac_check_lib_save_LIBS=$LIBS
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8221 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238 (eval $ac_link) 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag"
8246 || test ! -s conftest.err'
8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); }; } &&
8252 { ac_try='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_lib_dl_dlopen=yes
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ac_cv_lib_dl_dlopen=no
8265 rm -f conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext conftest.$ac_ext
8267 LIBS=$ac_check_lib_save_LIBS
8269 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8270 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8271 if test $ac_cv_lib_dl_dlopen = yes; then
8272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8277 lt_cv_dlopen_self=yes
8284 echo "$as_me:$LINENO: checking for shl_load" >&5
8285 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8286 if test "${ac_cv_func_shl_load+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8297 #define shl_load innocuous_shl_load
8299 /* System header to define __stub macros and hopefully few prototypes,
8300 which can conflict with char shl_load (); below.
8301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8302 <limits.h> exists even on freestanding compilers. */
8305 # include <limits.h>
8307 # include <assert.h>
8312 /* Override any gcc2 internal prototype to avoid an error. */
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8320 /* The GNU C library defines this for functions which it implements
8321 to always fail with ENOSYS. Some functions are actually named
8322 something starting with __ and the normal name is an alias. */
8323 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8326 char (*f) () = shl_load;
8335 return f != shl_load;
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>conftest.er1
8344 grep -v '^ *+' conftest.er1 >conftest.err
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag"
8350 || test ! -s conftest.err'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_func_shl_load=yes
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 ac_cv_func_shl_load=no
8369 rm -f conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8373 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8374 if test $ac_cv_func_shl_load = yes; then
8375 lt_cv_dlopen="shl_load"
8377 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8378 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8379 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 ac_check_lib_save_LIBS=$LIBS
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8391 /* Override any gcc2 internal prototype to avoid an error. */
8395 /* We use char because int might match the return type of a gcc2
8396 builtin and then its argument prototype would still apply. */
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408 (eval $ac_link) 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } &&
8415 { ac_try='test -z "$ac_c_werror_flag"
8416 || test ! -s conftest.err'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_lib_dld_shl_load=yes
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 ac_cv_lib_dld_shl_load=no
8435 rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 LIBS=$ac_check_lib_save_LIBS
8439 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8440 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8441 if test $ac_cv_lib_dld_shl_load = yes; then
8442 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8444 echo "$as_me:$LINENO: checking for dlopen" >&5
8445 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8446 if test "${ac_cv_func_dlopen+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8457 #define dlopen innocuous_dlopen
8459 /* System header to define __stub macros and hopefully few prototypes,
8460 which can conflict with char dlopen (); below.
8461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8462 <limits.h> exists even on freestanding compilers. */
8465 # include <limits.h>
8467 # include <assert.h>
8472 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8480 /* The GNU C library defines this for functions which it implements
8481 to always fail with ENOSYS. Some functions are actually named
8482 something starting with __ and the normal name is an alias. */
8483 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8486 char (*f) () = dlopen;
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502 (eval $ac_link) 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -z "$ac_c_werror_flag"
8510 || test ! -s conftest.err'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
8522 ac_cv_func_dlopen=yes
8524 echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8527 ac_cv_func_dlopen=no
8529 rm -f conftest.err conftest.$ac_objext \
8530 conftest$ac_exeext conftest.$ac_ext
8532 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8533 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8534 if test $ac_cv_func_dlopen = yes; then
8535 lt_cv_dlopen="dlopen"
8537 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 ac_check_lib_save_LIBS=$LIBS
8544 cat >conftest.$ac_ext <<_ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8551 /* Override any gcc2 internal prototype to avoid an error. */
8555 /* We use char because int might match the return type of a gcc2
8556 builtin and then its argument prototype would still apply. */
8566 rm -f conftest.$ac_objext conftest$ac_exeext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8568 (eval $ac_link) 2>conftest.er1
8570 grep -v '^ *+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -z "$ac_c_werror_flag"
8576 || test ! -s conftest.err'
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_cv_lib_dl_dlopen=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_cv_lib_dl_dlopen=no
8595 rm -f conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597 LIBS=$ac_check_lib_save_LIBS
8599 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8600 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8601 if test $ac_cv_lib_dl_dlopen = yes; then
8602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8604 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8605 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8606 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 ac_check_lib_save_LIBS=$LIBS
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8618 /* Override any gcc2 internal prototype to avoid an error. */
8622 /* We use char because int might match the return type of a gcc2
8623 builtin and then its argument prototype would still apply. */
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635 (eval $ac_link) 2>conftest.er1
8637 grep -v '^ *+' conftest.er1 >conftest.err
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag"
8643 || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_lib_svld_dlopen=yes
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_cv_lib_svld_dlopen=no
8662 rm -f conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8667 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8668 if test $ac_cv_lib_svld_dlopen = yes; then
8669 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8671 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8672 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8673 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 ac_check_lib_save_LIBS=$LIBS
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8685 /* Override any gcc2 internal prototype to avoid an error. */
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_cv_lib_dld_dld_link=yes
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 ac_cv_lib_dld_dld_link=no
8729 rm -f conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731 LIBS=$ac_check_lib_save_LIBS
8733 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8734 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8735 if test $ac_cv_lib_dld_dld_link = yes; then
8736 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8757 if test "x$lt_cv_dlopen" != xno; then
8763 case $lt_cv_dlopen in
8765 save_CPPFLAGS="$CPPFLAGS"
8766 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8768 save_LDFLAGS="$LDFLAGS"
8769 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8772 LIBS="$lt_cv_dlopen_libs $LIBS"
8774 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8775 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8776 if test "${lt_cv_dlopen_self+set}" = set; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 if test "$cross_compiling" = yes; then :
8780 lt_cv_dlopen_self=cross
8782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8783 lt_status=$lt_dlunknown
8784 cat > conftest.$ac_ext <<EOF
8785 #line 8785 "configure"
8786 #include "confdefs.h"
8795 # define LT_DLGLOBAL RTLD_GLOBAL
8798 # define LT_DLGLOBAL DL_GLOBAL
8800 # define LT_DLGLOBAL 0
8804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8805 find out it does not work in some platform. */
8806 #ifndef LT_DLLAZY_OR_NOW
8808 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8811 # define LT_DLLAZY_OR_NOW DL_LAZY
8814 # define LT_DLLAZY_OR_NOW RTLD_NOW
8817 # define LT_DLLAZY_OR_NOW DL_NOW
8819 # define LT_DLLAZY_OR_NOW 0
8827 extern "C" void exit (int);
8830 void fnord() { int i=42;}
8833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8834 int status = $lt_dlunknown;
8838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8839 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8840 /* dlclose (self); */
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8851 (./conftest; exit; ) 2>/dev/null
8854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8856 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8859 # compilation failed
8860 lt_cv_dlopen_self=no
8867 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8868 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8870 if test "x$lt_cv_dlopen_self" = xyes; then
8871 LDFLAGS="$LDFLAGS $link_static_flag"
8872 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8873 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8874 if test "${lt_cv_dlopen_self_static+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 if test "$cross_compiling" = yes; then :
8878 lt_cv_dlopen_self_static=cross
8880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8881 lt_status=$lt_dlunknown
8882 cat > conftest.$ac_ext <<EOF
8883 #line 8883 "configure"
8884 #include "confdefs.h"
8893 # define LT_DLGLOBAL RTLD_GLOBAL
8896 # define LT_DLGLOBAL DL_GLOBAL
8898 # define LT_DLGLOBAL 0
8902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8903 find out it does not work in some platform. */
8904 #ifndef LT_DLLAZY_OR_NOW
8906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8909 # define LT_DLLAZY_OR_NOW DL_LAZY
8912 # define LT_DLLAZY_OR_NOW RTLD_NOW
8915 # define LT_DLLAZY_OR_NOW DL_NOW
8917 # define LT_DLLAZY_OR_NOW 0
8925 extern "C" void exit (int);
8928 void fnord() { int i=42;}
8931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8932 int status = $lt_dlunknown;
8936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8937 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8938 /* dlclose (self); */
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945 (eval $ac_link) 2>&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8949 (./conftest; exit; ) 2>/dev/null
8952 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8953 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8954 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8957 # compilation failed
8958 lt_cv_dlopen_self_static=no
8965 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8966 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8969 CPPFLAGS="$save_CPPFLAGS"
8970 LDFLAGS="$save_LDFLAGS"
8975 case $lt_cv_dlopen_self in
8976 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8977 *) enable_dlopen_self=unknown ;;
8980 case $lt_cv_dlopen_self_static in
8981 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8982 *) enable_dlopen_self_static=unknown ;;
8987 # Report which librarie types wil actually be built
8988 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8989 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8990 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8991 echo "${ECHO_T}$can_build_shared" >&6
8993 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8994 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8995 test "$can_build_shared" = "no" && enable_shared=no
8997 # On AIX, shared libraries and static libraries use the same namespace, and
8998 # are all built from PIC.
9001 test "$enable_shared" = yes && enable_static=no
9002 if test -n "$RANLIB"; then
9003 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9004 postinstall_cmds='$RANLIB $lib'
9009 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9010 test "$enable_shared" = yes && enable_static=no
9013 darwin* | rhapsody*)
9014 if test "$GCC" = yes; then
9015 archive_cmds_need_lc=no
9017 rhapsody* | darwin1.[012])
9018 allow_undefined_flag='-undefined suppress'
9021 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9022 allow_undefined_flag='-flat_namespace -undefined suppress'
9024 case ${MACOSX_DEPLOYMENT_TARGET} in
9026 allow_undefined_flag='-flat_namespace -undefined suppress'
9029 allow_undefined_flag='-undefined dynamic_lookup'
9035 output_verbose_link_cmd='echo'
9036 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9037 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9038 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9039 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}'
9040 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}'
9042 hardcode_automatic=yes
9043 hardcode_shlibpath_var=unsupported
9044 whole_archive_flag_spec='-all_load $convenience'
9045 link_all_deplibs=yes
9051 echo "$as_me:$LINENO: result: $enable_shared" >&5
9052 echo "${ECHO_T}$enable_shared" >&6
9054 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9055 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9056 # Make sure either enable_shared or enable_static is yes.
9057 test "$enable_shared" = yes || enable_static=yes
9058 echo "$as_me:$LINENO: result: $enable_static" >&5
9059 echo "${ECHO_T}$enable_static" >&6
9061 # The else clause should only fire when bootstrapping the
9062 # libtool distribution, otherwise you forgot to ship ltmain.sh
9063 # with your package, and you will get complaints that there are
9064 # no rules to generate ltmain.sh.
9065 if test -f "$ltmain"; then
9066 # See if we are running on zsh, and set the options which allow our commands through
9067 # without removal of \ escapes.
9068 if test -n "${ZSH_VERSION+set}" ; then
9069 setopt NO_GLOB_SUBST
9071 # Now quote all the things that may contain metacharacters while being
9072 # careful not to overquote the AC_SUBSTed values. We take copies of the
9073 # variables and quote the copies for generation of the libtool script.
9074 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9076 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9077 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9078 deplibs_check_method reload_flag reload_cmds need_locks \
9079 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9080 lt_cv_sys_global_symbol_to_c_name_address \
9081 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9082 old_postinstall_cmds old_postuninstall_cmds \
9086 lt_prog_compiler_wl \
9087 lt_prog_compiler_pic \
9088 lt_prog_compiler_static \
9089 lt_prog_compiler_no_builtin_flag \
9090 export_dynamic_flag_spec \
9091 thread_safe_flag_spec \
9092 whole_archive_flag_spec \
9093 enable_shared_with_static_runtimes \
9095 old_archive_from_new_cmds \
9100 compiler_lib_search_path \
9102 archive_expsym_cmds \
9104 postuninstall_cmds \
9105 old_archive_from_expsyms_cmds \
9106 allow_undefined_flag \
9108 export_symbols_cmds \
9109 hardcode_libdir_flag_spec \
9110 hardcode_libdir_flag_spec_ld \
9111 hardcode_libdir_separator \
9112 hardcode_automatic \
9114 module_expsym_cmds \
9115 lt_cv_prog_compiler_c_o \
9120 old_archive_cmds | \
9121 old_archive_from_new_cmds | \
9123 archive_expsym_cmds | \
9125 module_expsym_cmds | \
9126 old_archive_from_expsyms_cmds | \
9127 export_symbols_cmds | \
9128 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9129 postinstall_cmds | postuninstall_cmds | \
9130 old_postinstall_cmds | old_postuninstall_cmds | \
9131 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9132 # Double-quote double-evaled strings.
9133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9142 *'\$0 --fallback-echo"')
9143 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9148 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9150 { echo "$as_me:$LINENO: creating $ofile" >&5
9151 echo "$as_me: creating $ofile" >&6;}
9153 cat <<__EOF__ >> "$cfgfile"
9156 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9157 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9158 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9160 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9161 # Free Software Foundation, Inc.
9163 # This file is part of GNU Libtool:
9164 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9166 # This program is free software; you can redistribute it and/or modify
9167 # it under the terms of the GNU General Public License as published by
9168 # the Free Software Foundation; either version 2 of the License, or
9169 # (at your option) any later version.
9171 # This program is distributed in the hope that it will be useful, but
9172 # WITHOUT ANY WARRANTY; without even the implied warranty of
9173 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9174 # General Public License for more details.
9176 # You should have received a copy of the GNU General Public License
9177 # along with this program; if not, write to the Free Software
9178 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9180 # As a special exception to the GNU General Public License, if you
9181 # distribute this file as part of a program that contains a
9182 # configuration script generated by Autoconf, you may include it under
9183 # the same distribution terms that you use for the rest of that program.
9185 # A sed program that does not truncate output.
9188 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9189 Xsed="$SED -e s/^X//"
9191 # The HP-UX ksh and POSIX shell print the target directory to stdout
9193 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9195 # The names of the tagged configurations supported by this script.
9198 # ### BEGIN LIBTOOL CONFIG
9200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9202 # Shell to use when invoking shell scripts.
9205 # Whether or not to build shared libraries.
9206 build_libtool_libs=$enable_shared
9208 # Whether or not to build static libraries.
9209 build_old_libs=$enable_static
9211 # Whether or not to add -lc for building shared libraries.
9212 build_libtool_need_lc=$archive_cmds_need_lc
9214 # Whether or not to disallow shared libs when runtime libs are static
9215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9217 # Whether or not to optimize for fast installation.
9218 fast_install=$enable_fast_install
9221 host_alias=$host_alias
9224 # An echo program that does not interpret backslashes.
9229 AR_FLAGS=$lt_AR_FLAGS
9234 # A language-specific compiler.
9237 # Is the compiler the GNU C compiler?
9243 # The linker used to build libraries.
9246 # Whether we need hard or soft links.
9249 # A BSD-compatible nm program.
9252 # A symbol stripping program
9255 # Used to examine libraries when file_magic_cmd begins "file"
9256 MAGIC_CMD=$MAGIC_CMD
9258 # Used on cygwin: DLL creation program.
9261 # Used on cygwin: object dumper.
9264 # Used on cygwin: assembler.
9267 # The name of the directory that contains temporary libtool files.
9270 # How to create reloadable object files.
9271 reload_flag=$lt_reload_flag
9272 reload_cmds=$lt_reload_cmds
9274 # How to pass a linker flag through the compiler.
9275 wl=$lt_lt_prog_compiler_wl
9277 # Object file suffix (normally "o").
9280 # Old archive suffix (normally "a").
9283 # Shared library suffix (normally ".so").
9284 shrext_cmds='$shrext_cmds'
9286 # Executable file suffix (normally "").
9289 # Additional compiler flags for building library objects.
9290 pic_flag=$lt_lt_prog_compiler_pic
9293 # What is the maximum length of a command?
9294 max_cmd_len=$lt_cv_sys_max_cmd_len
9296 # Does compiler simultaneously support -c and -o options?
9297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9299 # Must we lock files when doing compilation ?
9300 need_locks=$lt_need_locks
9302 # Do we need the lib prefix for modules?
9303 need_lib_prefix=$need_lib_prefix
9305 # Do we need a version for libraries?
9306 need_version=$need_version
9308 # Whether dlopen is supported.
9309 dlopen_support=$enable_dlopen
9311 # Whether dlopen of programs is supported.
9312 dlopen_self=$enable_dlopen_self
9314 # Whether dlopen of statically linked programs is supported.
9315 dlopen_self_static=$enable_dlopen_self_static
9317 # Compiler flag to prevent dynamic linking.
9318 link_static_flag=$lt_lt_prog_compiler_static
9320 # Compiler flag to turn off builtin functions.
9321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9323 # Compiler flag to allow reflexive dlopens.
9324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9326 # Compiler flag to generate shared objects directly from archives.
9327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9329 # Compiler flag to generate thread-safe objects.
9330 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9332 # Library versioning type.
9333 version_type=$version_type
9335 # Format of library name prefix.
9336 libname_spec=$lt_libname_spec
9338 # List of archive names. First name is the real one, the rest are links.
9339 # The last name is the one that the linker finds with -lNAME.
9340 library_names_spec=$lt_library_names_spec
9342 # The coded name of the library, if different from the real name.
9343 soname_spec=$lt_soname_spec
9345 # Commands used to build and install an old-style archive.
9347 old_archive_cmds=$lt_old_archive_cmds
9348 old_postinstall_cmds=$lt_old_postinstall_cmds
9349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9351 # Create an old-style archive from a shared archive.
9352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9354 # Create a temporary old-style archive to link instead of a shared archive.
9355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9357 # Commands used to build and install a shared archive.
9358 archive_cmds=$lt_archive_cmds
9359 archive_expsym_cmds=$lt_archive_expsym_cmds
9360 postinstall_cmds=$lt_postinstall_cmds
9361 postuninstall_cmds=$lt_postuninstall_cmds
9363 # Commands used to build a loadable module (assumed same as above if empty)
9364 module_cmds=$lt_module_cmds
9365 module_expsym_cmds=$lt_module_expsym_cmds
9367 # Commands to strip libraries.
9368 old_striplib=$lt_old_striplib
9369 striplib=$lt_striplib
9371 # Dependencies to place before the objects being linked to create a
9373 predep_objects=$lt_predep_objects
9375 # Dependencies to place after the objects being linked to create a
9377 postdep_objects=$lt_postdep_objects
9379 # Dependencies to place before the objects being linked to create a
9383 # Dependencies to place after the objects being linked to create a
9385 postdeps=$lt_postdeps
9387 # The library search path used internally by the compiler when linking
9389 compiler_lib_search_path=$lt_compiler_lib_search_path
9391 # Method to check whether dependent libraries are shared objects.
9392 deplibs_check_method=$lt_deplibs_check_method
9394 # Command to use when deplibs_check_method == file_magic.
9395 file_magic_cmd=$lt_file_magic_cmd
9397 # Flag that allows shared libraries with undefined symbols to be built.
9398 allow_undefined_flag=$lt_allow_undefined_flag
9400 # Flag that forces no undefined symbols.
9401 no_undefined_flag=$lt_no_undefined_flag
9403 # Commands used to finish a libtool library installation in a directory.
9404 finish_cmds=$lt_finish_cmds
9406 # Same as above, but a single script fragment to be evaled but not shown.
9407 finish_eval=$lt_finish_eval
9409 # Take the output of nm and produce a listing of raw symbols and C names.
9410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9412 # Transform the output of nm in a proper C declaration
9413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9415 # Transform the output of nm in a C name address pair
9416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9418 # This is the shared library runtime path variable.
9419 runpath_var=$runpath_var
9421 # This is the shared library path variable.
9422 shlibpath_var=$shlibpath_var
9424 # Is shlibpath searched before the hard-coded library search path?
9425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9427 # How to hardcode a shared library path into an executable.
9428 hardcode_action=$hardcode_action
9430 # Whether we should hardcode library paths into libraries.
9431 hardcode_into_libs=$hardcode_into_libs
9433 # Flag to hardcode \$libdir into a binary during linking.
9434 # This must work even if \$libdir does not exist.
9435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9437 # If ld is used when linking, flag to hardcode \$libdir into
9438 # a binary during linking. This must work even if \$libdir does
9440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9442 # Whether we need a single -rpath flag with a separated argument.
9443 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9447 hardcode_direct=$hardcode_direct
9449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9451 hardcode_minus_L=$hardcode_minus_L
9453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9454 # the resulting binary.
9455 hardcode_shlibpath_var=$hardcode_shlibpath_var
9457 # Set to yes if building a shared library automatically hardcodes DIR into the library
9458 # and all subsequent libraries and executables linked against it.
9459 hardcode_automatic=$hardcode_automatic
9461 # Variables whose values should be saved in libtool wrapper scripts and
9462 # restored at relink time.
9463 variables_saved_for_relink="$variables_saved_for_relink"
9465 # Whether libtool must link a program against all its dependency libraries.
9466 link_all_deplibs=$link_all_deplibs
9468 # Compile-time system search path for libraries
9469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9471 # Run-time system search path for libraries
9472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9474 # Fix the shell variable \$srcfile for the compiler.
9475 fix_srcfile_path="$fix_srcfile_path"
9477 # Set to yes if exported symbols are required.
9478 always_export_symbols=$always_export_symbols
9480 # The commands to list exported symbols.
9481 export_symbols_cmds=$lt_export_symbols_cmds
9483 # The commands to extract the exported symbol list from a shared archive.
9484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9486 # Symbols that should not be listed in the preloaded symbols.
9487 exclude_expsyms=$lt_exclude_expsyms
9489 # Symbols that must always be exported.
9490 include_expsyms=$lt_include_expsyms
9492 # ### END LIBTOOL CONFIG
9499 cat <<\EOF >> "$cfgfile"
9501 # AIX sometimes has problems with the GCC collect2 program. For some
9502 # reason, if we set the COLLECT_NAMES environment variable, the problems
9503 # vanish in a puff of smoke.
9504 if test "X${COLLECT_NAMES+set}" != Xset; then
9506 export COLLECT_NAMES
9512 # We use sed instead of cat because bash on DJGPP gets confused if
9513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9514 # text mode, it properly converts lines to CR/LF. This bash problem
9515 # is reportedly fixed, but why not run on old versions too?
9516 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9518 mv -f "$cfgfile" "$ofile" || \
9519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9523 # If there is no Makefile yet, we rely on a make rule to execute
9524 # `config.status --recheck' to rerun these tests and create the
9525 # libtool script then.
9526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9527 if test -f "$ltmain_in"; then
9528 test -f Makefile && make "$ltmain"
9534 ac_cpp='$CPP $CPPFLAGS'
9535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542 # Check whether --with-tags or --without-tags was given.
9543 if test "${with_tags+set}" = set; then
9544 withval="$with_tags"
9548 if test -f "$ltmain" && test -n "$tagnames"; then
9549 if test ! -f "${ofile}"; then
9550 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9551 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9554 if test -z "$LTCC"; then
9555 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9556 if test -z "$LTCC"; then
9557 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9558 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9561 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9565 # Extract list of available tagged configurations in $ofile.
9566 # Note that this assumes the entire list is on one line.
9567 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9570 for tagname in $tagnames; do
9572 # Check whether tagname contains only valid characters
9573 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9575 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9576 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9577 { (exit 1); exit 1; }; }
9581 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9583 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9584 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9585 { (exit 1); exit 1; }; }
9588 # Update the list of available tags.
9589 if test -n "$tagname"; then
9590 echo appending configuration tag \"$tagname\" to $ofile
9594 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9596 ac_cpp='$CXXCPP $CPPFLAGS'
9597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9604 archive_cmds_need_lc_CXX=no
9605 allow_undefined_flag_CXX=
9606 always_export_symbols_CXX=no
9607 archive_expsym_cmds_CXX=
9608 export_dynamic_flag_spec_CXX=
9609 hardcode_direct_CXX=no
9610 hardcode_libdir_flag_spec_CXX=
9611 hardcode_libdir_flag_spec_ld_CXX=
9612 hardcode_libdir_separator_CXX=
9613 hardcode_minus_L_CXX=no
9614 hardcode_automatic_CXX=no
9616 module_expsym_cmds_CXX=
9617 link_all_deplibs_CXX=unknown
9618 old_archive_cmds_CXX=$old_archive_cmds
9619 no_undefined_flag_CXX=
9620 whole_archive_flag_spec_CXX=
9621 enable_shared_with_static_runtimes_CXX=no
9623 # Dependencies to place before and after the object being linked:
9625 postdep_objects_CXX=
9628 compiler_lib_search_path_CXX=
9630 # Source file extension for C++ test sources.
9633 # Object file extension for compiled C++ test sources.
9637 # Code to be used in simple compile tests
9638 lt_simple_compile_test_code="int some_variable = 0;\n"
9640 # Code to be used in simple link tests
9641 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9645 # If no C compiler was specified, use CC.
9648 # Allow CC to be a program name with arguments.
9652 # Allow CC to be a program name with arguments.
9657 lt_save_with_gnu_ld=$with_gnu_ld
9658 lt_save_path_LD=$lt_cv_path_LD
9659 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9660 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9662 unset lt_cv_prog_gnu_ld
9664 if test -n "${lt_cv_path_LDCXX+set}"; then
9665 lt_cv_path_LD=$lt_cv_path_LDCXX
9669 test -z "${LDCXX+set}" || LD=$LDCXX
9673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9675 # We don't want -fno-exception wen compiling C++ code, so set the
9676 # no_builtin_flag separately
9677 if test "$GXX" = yes; then
9678 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9680 lt_prog_compiler_no_builtin_flag_CXX=
9683 if test "$GXX" = yes; then
9684 # Set up default GNU C++ configuration
9687 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9688 if test "${with_gnu_ld+set}" = set; then
9689 withval="$with_gnu_ld"
9690 test "$withval" = no || with_gnu_ld=yes
9695 if test "$GCC" = yes; then
9696 # Check if gcc -print-prog-name=ld gives a path.
9697 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9701 # gcc leaves a trailing carriage return which upsets mingw
9702 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9704 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9707 # Accept absolute paths.
9709 re_direlt='/[^/][^/]*/\.\./'
9710 # Canonicalize the pathname of ld
9711 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9712 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9713 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9715 test -z "$LD" && LD="$ac_prog"
9718 # If it fails, then pretend we aren't using GCC.
9722 # If it is relative, then search for the first ld in PATH.
9726 elif test "$with_gnu_ld" = yes; then
9727 echo "$as_me:$LINENO: checking for GNU ld" >&5
9728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9730 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9733 if test "${lt_cv_path_LD+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 if test -z "$LD"; then
9737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9738 for ac_dir in $PATH; do
9740 test -z "$ac_dir" && ac_dir=.
9741 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9742 lt_cv_path_LD="$ac_dir/$ac_prog"
9743 # Check to see if the program is GNU ld. I'd rather use --version,
9744 # but apparently some GNU ld's only accept -v.
9745 # Break only if it was the GNU/non-GNU ld that we prefer.
9746 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9747 *GNU* | *'with BFD'*)
9748 test "$with_gnu_ld" != no && break
9751 test "$with_gnu_ld" != yes && break
9758 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9763 if test -n "$LD"; then
9764 echo "$as_me:$LINENO: result: $LD" >&5
9765 echo "${ECHO_T}$LD" >&6
9767 echo "$as_me:$LINENO: result: no" >&5
9768 echo "${ECHO_T}no" >&6
9770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9772 { (exit 1); exit 1; }; }
9773 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9779 case `$LD -v 2>&1 </dev/null` in
9780 *GNU* | *'with BFD'*)
9781 lt_cv_prog_gnu_ld=yes
9784 lt_cv_prog_gnu_ld=no
9788 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9790 with_gnu_ld=$lt_cv_prog_gnu_ld
9794 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9795 # archiving commands below assume that GNU ld is being used.
9796 if test "$with_gnu_ld" = yes; then
9797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 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'
9800 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9803 # If archive_cmds runs LD, not CC, wlarc should be empty
9804 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9805 # investigate it a little bit more. (MM)
9808 # ancient GNU ld didn't support --whole-archive et. al.
9809 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9810 grep 'no-whole-archive' > /dev/null; then
9811 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9813 whole_archive_flag_spec_CXX=
9819 # A generic and very simple default shared library creation
9820 # command for GNU C++ for the case where it uses the native
9821 # linker, instead of GNU ld. If possible, this setting should
9822 # overridden to take advantage of the native linker features on
9823 # the platform it is being used on.
9824 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9827 # Commands to make compiler produce verbose output that lists
9828 # what "hidden" libraries, object files and flags are used when
9829 # linking a shared library.
9830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9838 # PORTME: fill in a description of your system's C++ link characteristics
9839 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9840 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9844 # FIXME: insert proper C++ library support
9848 if test "$host_cpu" = ia64; then
9849 # On IA64, the linker does run time linking by default, so we don't
9850 # have to do anything special.
9851 aix_use_runtimelinking=no
9852 exp_sym_flag='-Bexport'
9855 aix_use_runtimelinking=no
9857 # Test if we are trying to use run time linking or normal
9858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9859 # need to do runtime linking.
9860 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9861 for ld_flag in $LDFLAGS; do
9864 aix_use_runtimelinking=yes
9871 exp_sym_flag='-bexport'
9872 no_entry_flag='-bnoentry'
9875 # When large executables or shared objects are built, AIX ld can
9876 # have problems creating the table of contents. If linking a library
9877 # or program results in "error TOC overflow" add -mminimal-toc to
9878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9882 hardcode_direct_CXX=yes
9883 hardcode_libdir_separator_CXX=':'
9884 link_all_deplibs_CXX=yes
9886 if test "$GXX" = yes; then
9887 case $host_os in aix4.012|aix4.012.*)
9888 # We only want to do this on AIX 4.2 and lower, the check
9889 # below for broken collect2 doesn't work under 4.3+
9890 collect2name=`${CC} -print-prog-name=collect2`
9891 if test -f "$collect2name" && \
9892 strings "$collect2name" | grep resolve_lib_name >/dev/null
9894 # We have reworked collect2
9895 hardcode_direct_CXX=yes
9897 # We have old collect2
9898 hardcode_direct_CXX=unsupported
9899 # It fails to find uninstalled libraries when the uninstalled
9900 # path is not listed in the libpath. Setting hardcode_minus_L
9901 # to unsupported forces relinking
9902 hardcode_minus_L_CXX=yes
9903 hardcode_libdir_flag_spec_CXX='-L$libdir'
9904 hardcode_libdir_separator_CXX=
9907 shared_flag='-shared'
9910 if test "$host_cpu" = ia64; then
9911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9912 # chokes on -Wl,-G. The following line is correct:
9915 if test "$aix_use_runtimelinking" = yes; then
9916 shared_flag='${wl}-G'
9918 shared_flag='${wl}-bM:SRE'
9923 # It seems that -bexpall does not export symbols beginning with
9924 # underscore (_), so it is better to generate a list of symbols to export.
9925 always_export_symbols_CXX=yes
9926 if test "$aix_use_runtimelinking" = yes; then
9927 # Warning - without using the other runtime loading flags (-brtl),
9928 # -berok will link without error, but may produce a broken library.
9929 allow_undefined_flag_CXX='-berok'
9930 # Determine the default libpath from the value encoded in an empty executable.
9931 cat >conftest.$ac_ext <<_ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_cxx_werror_flag"
9956 || test ! -s conftest.err'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest$ac_exeext'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9971 # Check for a 64-bit object if we didn't find anything.
9972 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; }
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9979 rm -f conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9983 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9985 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"
9987 if test "$host_cpu" = ia64; then
9988 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9989 allow_undefined_flag_CXX="-z nodefs"
9990 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"
9992 # Determine the default libpath from the value encoded in an empty executable.
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010 (eval $ac_link) 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_cxx_werror_flag"
10018 || test ! -s conftest.err'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest$ac_exeext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10033 # Check for a 64-bit object if we didn't find anything.
10034 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; }
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10041 rm -f conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10045 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10046 # Warning - without using the other run time loading flags,
10047 # -berok will link without error, but may produce a broken library.
10048 no_undefined_flag_CXX=' ${wl}-bernotok'
10049 allow_undefined_flag_CXX=' ${wl}-berok'
10050 # -bexpall does not export symbols beginning with underscore (_)
10051 always_export_symbols_CXX=yes
10052 # Exported symbols can be pulled into shared objects from archives
10053 whole_archive_flag_spec_CXX=' '
10054 archive_cmds_need_lc_CXX=yes
10055 # This is similar to how AIX traditionally builds it's shared libraries.
10056 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'
10061 case $cc_basename in
10063 # FIXME: insert proper C++ library support
10069 cygwin* | mingw* | pw32*)
10070 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10071 # as there is no search path for DLLs.
10072 hardcode_libdir_flag_spec_CXX='-L$libdir'
10073 allow_undefined_flag_CXX=unsupported
10074 always_export_symbols_CXX=no
10075 enable_shared_with_static_runtimes_CXX=yes
10077 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10078 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'
10079 # If the export-symbols file already is a .def file (1st line
10080 # is EXPORTS), use it as is; otherwise, prepend...
10081 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10082 cp $export_symbols $output_objdir/$soname.def;
10084 echo EXPORTS > $output_objdir/$soname.def;
10085 cat $export_symbols >> $output_objdir/$soname.def;
10087 $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'
10093 darwin* | rhapsody*)
10094 if test "$GXX" = yes; then
10095 archive_cmds_need_lc_CXX=no
10097 rhapsody* | darwin1.[012])
10098 allow_undefined_flag_CXX='-undefined suppress'
10101 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10102 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10104 case ${MACOSX_DEPLOYMENT_TARGET} in
10106 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10109 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10115 lt_int_apple_cc_single_mod=no
10116 output_verbose_link_cmd='echo'
10117 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10118 lt_int_apple_cc_single_mod=yes
10120 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10121 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10123 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'
10125 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10127 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10128 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10129 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}'
10131 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}'
10133 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}'
10134 hardcode_direct_CXX=no
10135 hardcode_automatic_CXX=yes
10136 hardcode_shlibpath_var_CXX=unsupported
10137 whole_archive_flag_spec_CXX='-all_load $convenience'
10138 link_all_deplibs_CXX=yes
10145 case $cc_basename in
10147 # FIXME: insert proper C++ library support
10151 # Green Hills C++ Compiler
10152 # FIXME: insert proper C++ library support
10156 # FIXME: insert proper C++ library support
10162 # C++ shared libraries reported to be fairly broken before switch to ELF
10166 archive_cmds_need_lc_CXX=no
10168 freebsd* | kfreebsd*-gnu)
10169 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10176 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10177 hardcode_libdir_separator_CXX=:
10178 export_dynamic_flag_spec_CXX='${wl}-E'
10179 hardcode_direct_CXX=yes
10180 hardcode_minus_L_CXX=yes # Not in the search PATH,
10181 # but as the default
10182 # location of the library.
10184 case $cc_basename in
10186 # FIXME: insert proper C++ library support
10190 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'
10191 # Commands to make compiler produce verbose output that lists
10192 # what "hidden" libraries, object files and flags are used when
10193 # linking a shared library.
10195 # There doesn't appear to be a way to prevent this compiler from
10196 # explicitly linking system object files so we need to strip them
10197 # from the output so that they don't get included in the library
10199 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'
10202 if test "$GXX" = yes; then
10203 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'
10205 # FIXME: insert proper C++ library support
10212 if test $with_gnu_ld = no; then
10213 case "$host_cpu" in
10215 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10216 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10217 hardcode_libdir_separator_CXX=:
10220 hardcode_libdir_flag_spec_CXX='-L$libdir'
10223 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10224 hardcode_libdir_separator_CXX=:
10225 export_dynamic_flag_spec_CXX='${wl}-E'
10229 case "$host_cpu" in
10231 hardcode_direct_CXX=no
10232 hardcode_shlibpath_var_CXX=no
10235 hardcode_direct_CXX=no
10236 hardcode_shlibpath_var_CXX=no
10237 hardcode_minus_L_CXX=yes # Not in the search PATH,
10238 # but as the default
10239 # location of the library.
10242 hardcode_direct_CXX=yes
10243 hardcode_minus_L_CXX=yes # Not in the search PATH,
10244 # but as the default
10245 # location of the library.
10249 case $cc_basename in
10251 # FIXME: insert proper C++ library support
10255 case "$host_cpu" in
10257 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10260 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10263 # Commands to make compiler produce verbose output that lists
10264 # what "hidden" libraries, object files and flags are used when
10265 # linking a shared library.
10267 # There doesn't appear to be a way to prevent this compiler from
10268 # explicitly linking system object files so we need to strip them
10269 # from the output so that they don't get included in the library
10271 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'
10274 if test "$GXX" = yes; then
10275 if test $with_gnu_ld = no; then
10276 case "$host_cpu" in
10278 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10281 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'
10286 # FIXME: insert proper C++ library support
10293 case $cc_basename in
10296 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'
10298 # Archives containing C++ object files must be created using
10299 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10300 # necessary to make sure instantiated templates are included
10302 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10305 if test "$GXX" = yes; then
10306 if test "$with_gnu_ld" = no; then
10307 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'
10309 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'
10312 link_all_deplibs_CXX=yes
10315 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10316 hardcode_libdir_separator_CXX=:
10319 case $cc_basename in
10321 # Kuck and Associates, Inc. (KAI) C++ Compiler
10323 # KCC will only create a shared library if the output file
10324 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10325 # to its proper name (with version) after linking.
10326 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'
10327 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'
10328 # Commands to make compiler produce verbose output that lists
10329 # what "hidden" libraries, object files and flags are used when
10330 # linking a shared library.
10332 # There doesn't appear to be a way to prevent this compiler from
10333 # explicitly linking system object files so we need to strip them
10334 # from the output so that they don't get included in the library
10336 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'
10338 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10339 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10341 # Archives containing C++ object files must be created using
10342 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10343 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10348 archive_cmds_need_lc_CXX=no
10349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10350 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'
10351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10353 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10358 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'
10360 runpath_var=LD_RUN_PATH
10361 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10362 hardcode_libdir_separator_CXX=:
10364 # Commands to make compiler produce verbose output that lists
10365 # what "hidden" libraries, object files and flags are used when
10366 # linking a shared library.
10368 # There doesn't appear to be a way to prevent this compiler from
10369 # explicitly linking system object files so we need to strip them
10370 # from the output so that they don't get included in the library
10372 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'
10377 # FIXME: insert proper C++ library support
10381 # FIXME: insert proper C++ library support
10385 case $cc_basename in
10387 # FIXME: insert proper C++ library support
10391 # FIXME: insert proper C++ library support
10397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10398 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10400 hardcode_libdir_flag_spec_CXX='-R$libdir'
10401 hardcode_direct_CXX=yes
10402 hardcode_shlibpath_var_CXX=no
10404 # Workaround some broken pre-1.5 toolchains
10405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10408 case $cc_basename in
10410 # Kuck and Associates, Inc. (KAI) C++ Compiler
10412 # KCC will only create a shared library if the output file
10413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10414 # to its proper name (with version) after linking.
10415 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'
10417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10418 hardcode_libdir_separator_CXX=:
10420 # Archives containing C++ object files must be created using
10421 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10422 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10426 # Rational C++ 2.4.1
10427 # FIXME: insert proper C++ library support
10431 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10432 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'
10434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10435 hardcode_libdir_separator_CXX=:
10437 # Commands to make compiler produce verbose output that lists
10438 # what "hidden" libraries, object files and flags are used when
10439 # linking a shared library.
10441 # There doesn't appear to be a way to prevent this compiler from
10442 # explicitly linking system object files so we need to strip them
10443 # from the output so that they don't get included in the library
10445 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'
10448 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10449 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10450 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'
10452 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10453 hardcode_libdir_separator_CXX=:
10455 # Commands to make compiler produce verbose output that lists
10456 # what "hidden" libraries, object files and flags are used when
10457 # linking a shared library.
10458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10461 # FIXME: insert proper C++ library support
10468 case $cc_basename in
10470 # Kuck and Associates, Inc. (KAI) C++ Compiler
10472 # KCC will only create a shared library if the output file
10473 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10474 # to its proper name (with version) after linking.
10475 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'
10477 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10478 hardcode_libdir_separator_CXX=:
10480 # Archives containing C++ object files must be created using
10481 # the KAI C++ compiler.
10482 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10485 # Rational C++ 2.4.1
10486 # FIXME: insert proper C++ library support
10490 allow_undefined_flag_CXX=' -expect_unresolved \*'
10491 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'
10492 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10493 echo "-hidden">> $lib.exp~
10494 $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~
10497 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10498 hardcode_libdir_separator_CXX=:
10500 # Commands to make compiler produce verbose output that lists
10501 # what "hidden" libraries, object files and flags are used when
10502 # linking a shared library.
10504 # There doesn't appear to be a way to prevent this compiler from
10505 # explicitly linking system object files so we need to strip them
10506 # from the output so that they don't get included in the library
10508 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'
10511 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10512 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10513 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'
10515 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10516 hardcode_libdir_separator_CXX=:
10518 # Commands to make compiler produce verbose output that lists
10519 # what "hidden" libraries, object files and flags are used when
10520 # linking a shared library.
10521 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10524 # FIXME: insert proper C++ library support
10531 # FIXME: insert proper C++ library support
10535 archive_cmds_need_lc_CXX=no
10536 case $cc_basename in
10538 # FIXME: insert proper C++ library support
10542 # FIXME: insert proper C++ library support
10548 case $cc_basename in
10551 # FIXME: insert proper C++ library support
10556 # FIXME: insert proper C++ library support
10560 # FIXME: insert proper C++ library support
10566 case $cc_basename in
10568 # Sun C++ 4.2, 5.x and Centerline C++
10569 no_undefined_flag_CXX=' -zdefs'
10570 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10571 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10572 $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'
10574 hardcode_libdir_flag_spec_CXX='-R$libdir'
10575 hardcode_shlibpath_var_CXX=no
10577 solaris2.0-5 | solaris2.0-5.*) ;;
10579 # The C++ compiler is used as linker so we must use $wl
10580 # flag to pass the commands to the underlying system
10582 # Supported since Solaris 2.6 (maybe 2.5.1?)
10583 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10586 link_all_deplibs_CXX=yes
10588 # Commands to make compiler produce verbose output that lists
10589 # what "hidden" libraries, object files and flags are used when
10590 # linking a shared library.
10592 # There doesn't appear to be a way to prevent this compiler from
10593 # explicitly linking system object files so we need to strip them
10594 # from the output so that they don't get included in the library
10596 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'
10598 # Archives containing C++ object files must be created using
10599 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10600 # necessary to make sure instantiated templates are included
10602 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10605 # Green Hills C++ Compiler
10606 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10608 # The C++ compiler must be used to create the archive.
10609 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10612 # GNU C++ compiler with Solaris linker
10613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10614 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10615 if $CC --version | grep -v '^2\.7' > /dev/null; then
10616 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10617 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10618 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10620 # Commands to make compiler produce verbose output that lists
10621 # what "hidden" libraries, object files and flags are used when
10622 # linking a shared library.
10623 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10625 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10627 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10628 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10629 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10631 # Commands to make compiler produce verbose output that lists
10632 # what "hidden" libraries, object files and flags are used when
10633 # linking a shared library.
10634 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10637 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10642 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10643 archive_cmds_need_lc_CXX=no
10646 case $cc_basename in
10648 # NonStop-UX NCC 3.20
10649 # FIXME: insert proper C++ library support
10653 # FIXME: insert proper C++ library support
10659 # FIXME: insert proper C++ library support
10663 # FIXME: insert proper C++ library support
10667 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10668 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10669 test "$ld_shlibs_CXX" = no && can_build_shared=no
10675 cat > conftest.$ac_ext <<EOF
10679 Foo (void) { a = 0; }
10685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686 (eval $ac_compile) 2>&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; then
10690 # Parse the compiler output and extract the necessary
10691 # objects, libraries and library flags.
10693 # Sentinel used to keep track of whether or not we are before
10694 # the conftest object file.
10695 pre_test_object_deps_done=no
10697 # The `*' in the case matches for architectures that use `case' in
10698 # $output_verbose_cmd can trigger glob expansion during the loop
10699 # eval without this substitution.
10700 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10702 for p in `eval $output_verbose_link_cmd`; do
10706 # Some compilers place space between "-{L,R}" and the path.
10707 # Remove the space.
10708 if test $p = "-L" \
10709 || test $p = "-R"; then
10716 if test "$pre_test_object_deps_done" = no; then
10719 # Internal compiler library paths should come after those
10720 # provided the user. The postdeps already come after the
10721 # user supplied libs so there is no need to process them.
10722 if test -z "$compiler_lib_search_path_CXX"; then
10723 compiler_lib_search_path_CXX="${prev}${p}"
10725 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10728 # The "-l" case would never come before the object being
10729 # linked, so don't bother handling this case.
10732 if test -z "$postdeps_CXX"; then
10733 postdeps_CXX="${prev}${p}"
10735 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10741 # This assumes that the test object file only shows up
10742 # once in the compiler output.
10743 if test "$p" = "conftest.$objext"; then
10744 pre_test_object_deps_done=yes
10748 if test "$pre_test_object_deps_done" = no; then
10749 if test -z "$predep_objects_CXX"; then
10750 predep_objects_CXX="$p"
10752 predep_objects_CXX="$predep_objects_CXX $p"
10755 if test -z "$postdep_objects_CXX"; then
10756 postdep_objects_CXX="$p"
10758 postdep_objects_CXX="$postdep_objects_CXX $p"
10763 *) ;; # Ignore the rest.
10771 echo "libtool.m4: error: problem compiling CXX test program"
10774 $rm -f confest.$objext
10776 case " $postdeps_CXX " in
10777 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10780 lt_prog_compiler_wl_CXX=
10781 lt_prog_compiler_pic_CXX=
10782 lt_prog_compiler_static_CXX=
10784 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10785 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10787 # C++ specific cases for pic, static, wl, etc.
10788 if test "$GXX" = yes; then
10789 lt_prog_compiler_wl_CXX='-Wl,'
10790 lt_prog_compiler_static_CXX='-static'
10794 # All AIX code is PIC.
10795 if test "$host_cpu" = ia64; then
10796 # AIX 5 now supports IA64 processor
10797 lt_prog_compiler_static_CXX='-Bstatic'
10801 # FIXME: we need at least 68020 code to build shared libraries, but
10802 # adding the `-m68020' flag to GCC prevents building anything better,
10804 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10806 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10807 # PIC is the default for these OSes.
10809 mingw* | os2* | pw32*)
10810 # This hack is so that the source file can tell whether it is being
10811 # built for inclusion in a dll (and should export symbols for example).
10812 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10814 darwin* | rhapsody*)
10815 # PIC is the default on this platform
10816 # Common symbols not allowed in MH_DYLIB files
10817 lt_prog_compiler_pic_CXX='-fno-common'
10820 # DJGPP does not support shared libraries at all
10821 lt_prog_compiler_pic_CXX=
10824 if test -d /usr/nec; then
10825 lt_prog_compiler_pic_CXX=-Kconform_pic
10829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10830 # not for PA HP-UX.
10831 case "$host_cpu" in
10835 lt_prog_compiler_pic_CXX='-fPIC'
10840 lt_prog_compiler_pic_CXX='-fPIC'
10846 # All AIX code is PIC.
10847 if test "$host_cpu" = ia64; then
10848 # AIX 5 now supports IA64 processor
10849 lt_prog_compiler_static_CXX='-Bstatic'
10851 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10855 case $cc_basename in
10857 # Green Hills C++ Compiler
10858 # _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"
10863 case $cc_basename in
10865 lt_prog_compiler_pic_CXX='-KPIC'
10868 # Green Hills C++ Compiler
10869 lt_prog_compiler_pic_CXX='-pic'
10875 freebsd* | kfreebsd*-gnu)
10876 # FreeBSD uses GNU C++
10878 hpux9* | hpux10* | hpux11*)
10879 case $cc_basename in
10881 lt_prog_compiler_wl_CXX='-Wl,'
10882 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10883 if test "$host_cpu" != ia64; then
10884 lt_prog_compiler_pic_CXX='+Z'
10888 lt_prog_compiler_wl_CXX='-Wl,'
10889 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10890 case "$host_cpu" in
10895 lt_prog_compiler_pic_CXX='+Z'
10903 irix5* | irix6* | nonstopux*)
10904 case $cc_basename in
10906 lt_prog_compiler_wl_CXX='-Wl,'
10907 lt_prog_compiler_static_CXX='-non_shared'
10908 # CC pic flag -KPIC is the default.
10915 case $cc_basename in
10918 lt_prog_compiler_wl_CXX='--backend -Wl,'
10919 lt_prog_compiler_pic_CXX='-fPIC'
10923 lt_prog_compiler_wl_CXX='-Wl,'
10924 lt_prog_compiler_pic_CXX='-KPIC'
10925 lt_prog_compiler_static_CXX='-static'
10929 # Make sure the PIC flag is empty. It appears that all Alpha
10930 # Linux and Compaq Tru64 Unix objects are PIC.
10931 lt_prog_compiler_pic_CXX=
10932 lt_prog_compiler_static_CXX='-non_shared'
10943 case $cc_basename in
10945 lt_prog_compiler_pic_CXX='-W c,exportall'
10953 osf3* | osf4* | osf5*)
10954 case $cc_basename in
10956 lt_prog_compiler_wl_CXX='--backend -Wl,'
10959 # Rational C++ 2.4.1
10960 lt_prog_compiler_pic_CXX='-pic'
10963 # Digital/Compaq C++
10964 lt_prog_compiler_wl_CXX='-Wl,'
10965 # Make sure the PIC flag is empty. It appears that all Alpha
10966 # Linux and Compaq Tru64 Unix objects are PIC.
10967 lt_prog_compiler_pic_CXX=
10968 lt_prog_compiler_static_CXX='-non_shared'
10977 case $cc_basename in
10979 lt_prog_compiler_pic_CXX='-fPIC'
10986 case $cc_basename in
10988 # Sun C++ 4.2, 5.x and Centerline C++
10989 lt_prog_compiler_pic_CXX='-KPIC'
10990 lt_prog_compiler_static_CXX='-Bstatic'
10991 lt_prog_compiler_wl_CXX='-Qoption ld '
10994 # Green Hills C++ Compiler
10995 lt_prog_compiler_pic_CXX='-PIC'
11002 case $cc_basename in
11005 lt_prog_compiler_pic_CXX='-pic'
11006 lt_prog_compiler_static_CXX='-Bstatic'
11010 lt_prog_compiler_pic_CXX='-pic'
11017 case $cc_basename in
11019 # NonStop-UX NCC 3.20
11020 lt_prog_compiler_pic_CXX='-KPIC'
11031 lt_prog_compiler_can_build_shared_CXX=no
11036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11037 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11040 # Check to make sure the PIC flag actually works.
11042 if test -n "$lt_prog_compiler_pic_CXX"; then
11044 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11045 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11046 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 lt_prog_compiler_pic_works_CXX=no
11050 ac_outfile=conftest.$ac_objext
11051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11052 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11053 # Insert the option either (1) after the last *FLAGS variable, or
11054 # (2) before a word containing "conftest.", or (3) at the end.
11055 # Note that $ac_compile itself does not contain backslashes and begins
11056 # with a dollar sign (not a hyphen), so the echo should work correctly.
11057 # The option is referenced via a variable to avoid confusing sed.
11058 lt_compile=`echo "$ac_compile" | $SED \
11059 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11061 -e 's:$: $lt_compiler_flag:'`
11062 (eval echo "\"\$as_me:11062: $lt_compile\"" >&5)
11063 (eval "$lt_compile" 2>conftest.err)
11065 cat conftest.err >&5
11066 echo "$as_me:11066: \$? = $ac_status" >&5
11067 if (exit $ac_status) && test -s "$ac_outfile"; then
11068 # The compiler can only warn and ignore the option if not recognized
11069 # So say no if there are warnings
11070 if test ! -s conftest.err; then
11071 lt_prog_compiler_pic_works_CXX=yes
11077 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11078 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11080 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11081 case $lt_prog_compiler_pic_CXX in
11083 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11086 lt_prog_compiler_pic_CXX=
11087 lt_prog_compiler_can_build_shared_CXX=no
11092 # For platforms which do not support PIC, -DPIC is meaningless:
11094 lt_prog_compiler_pic_CXX=
11097 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11101 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11103 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 lt_cv_prog_compiler_c_o_CXX=no
11107 $rm -r conftest 2>/dev/null
11111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11113 lt_compiler_flag="-o out/conftest2.$ac_objext"
11114 # Insert the option either (1) after the last *FLAGS variable, or
11115 # (2) before a word containing "conftest.", or (3) at the end.
11116 # Note that $ac_compile itself does not contain backslashes and begins
11117 # with a dollar sign (not a hyphen), so the echo should work correctly.
11118 lt_compile=`echo "$ac_compile" | $SED \
11119 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11121 -e 's:$: $lt_compiler_flag:'`
11122 (eval echo "\"\$as_me:11122: $lt_compile\"" >&5)
11123 (eval "$lt_compile" 2>out/conftest.err)
11125 cat out/conftest.err >&5
11126 echo "$as_me:11126: \$? = $ac_status" >&5
11127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11129 # The compiler can only warn and ignore the option if not recognized
11130 # So say no if there are warnings
11131 if test ! -s out/conftest.err; then
11132 lt_cv_prog_compiler_c_o_CXX=yes
11137 # SGI C++ compiler will create directory out/ii_files/ for
11138 # template instantiation
11139 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11140 $rm out/* && rmdir out
11146 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11150 hard_links="nottested"
11151 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11152 # do not overwrite the value of need_locks provided by the user
11153 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11154 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11159 ln conftest.a conftest.b 2>&5 || hard_links=no
11160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11161 echo "$as_me:$LINENO: result: $hard_links" >&5
11162 echo "${ECHO_T}$hard_links" >&6
11163 if test "$hard_links" = no; then
11164 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11165 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11172 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11173 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11175 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11178 # If we're using GNU nm, then we don't want the "-C" option.
11179 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11180 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11181 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'
11183 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'
11187 export_symbols_cmds_CXX="$ltdll_cmds"
11190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11193 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11197 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11198 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11199 test "$ld_shlibs_CXX" = no && can_build_shared=no
11201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11202 if test "$GCC" = yes; then
11203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11207 # Do we need to explicitly link libc?
11209 case "x$archive_cmds_need_lc_CXX" in
11211 # Assume -lc should be added
11212 archive_cmds_need_lc_CXX=yes
11214 if test "$enable_shared" = yes && test "$GCC" = yes; then
11215 case $archive_cmds_CXX in
11217 # FIXME: we may have to deal with multi-command sequences.
11220 # Test whether the compiler implicitly links with -lc since on some
11221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11222 # to ld, don't add -lc before -lgcc.
11223 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11224 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } 2>conftest.err; then
11235 libobjs=conftest.$ac_objext
11237 wl=$lt_prog_compiler_wl_CXX
11243 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11244 allow_undefined_flag_CXX=
11245 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11246 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }
11251 archive_cmds_need_lc_CXX=no
11253 archive_cmds_need_lc_CXX=yes
11255 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11257 cat conftest.err 1>&5
11260 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11261 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11268 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11269 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11270 library_names_spec=
11271 libname_spec='lib$name'
11275 postuninstall_cmds=
11279 shlibpath_overrides_runpath=unknown
11281 dynamic_linker="$host_os ld.so"
11282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11283 if test "$GCC" = yes; then
11284 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11285 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11286 # if the path contains ";" then we assume it to be the separator
11287 # otherwise default to the standard path separator (i.e. ":") - it is
11288 # assumed that no part of a normal pathname contains ";" but that should
11289 # okay in the real world where ";" in dirpaths is itself problematic.
11290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11295 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11297 need_lib_prefix=unknown
11298 hardcode_into_libs=no
11300 # when you set need_version to no, make sure it does not cause -set_version
11301 # flags to be left without arguments
11302 need_version=unknown
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11308 shlibpath_var=LIBPATH
11310 # AIX 3 has no versioning support, so we append a major version to the name.
11311 soname_spec='${libname}${release}${shared_ext}$major'
11318 hardcode_into_libs=yes
11319 if test "$host_cpu" = ia64; then
11320 # AIX 5 supports IA64
11321 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11322 shlibpath_var=LD_LIBRARY_PATH
11324 # With GCC up to 2.95.x, collect2 would create an import file
11325 # for dependence libraries. The import file would start with
11326 # the line `#! .'. This would cause the generated library to
11327 # depend on `.', always an invalid library. This was fixed in
11328 # development snapshots of GCC prior to 3.0.
11330 aix4 | aix4.[01] | aix4.[01].*)
11331 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11333 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11336 can_build_shared=no
11340 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11341 # soname into executable. Probably we can add versioning support to
11342 # collect2, so additional links can be useful in future.
11343 if test "$aix_use_runtimelinking" = yes; then
11344 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11345 # instead of lib<name>.a to let people know that these are not
11346 # typical AIX shared libraries.
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 # We preserve .a as extension for shared libraries through AIX4.2
11350 # and later when we are not doing run time linking.
11351 library_names_spec='${libname}${release}.a $libname.a'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11354 shlibpath_var=LIBPATH
11359 library_names_spec='$libname.ixlibrary $libname.a'
11360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11361 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'
11365 library_names_spec='${libname}${shared_ext}'
11366 dynamic_linker="$host_os ld.so"
11367 shlibpath_var=LIBRARY_PATH
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11376 shlibpath_var=LD_LIBRARY_PATH
11377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11379 # the default ld.so.conf also contains /usr/contrib/lib and
11380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11381 # libtool to hard-code these into programs
11384 cygwin* | mingw* | pw32*)
11385 version_type=windows
11390 case $GCC,$host_os in
11391 yes,cygwin* | yes,mingw* | yes,pw32*)
11392 library_names_spec='$libname.dll.a'
11393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11394 postinstall_cmds='base_file=`basename \${file}`~
11395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11396 dldir=$destdir/`dirname \$dlpath`~
11397 test -d \$dldir || mkdir -p \$dldir~
11398 $install_prog $dir/$dlname \$dldir/$dlname'
11399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11400 dlpath=$dir/\$dldll~
11402 shlibpath_overrides_runpath=yes
11406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11407 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11411 # MinGW DLLs use traditional 'lib' prefix
11412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11415 # It is most probably a Windows format PATH printed by
11416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11417 # path with ; separators, and with drive letters. We can handle the
11418 # drive letters (cygwin fileutils understands them), so leave them,
11419 # especially as we might pass files found there to a mingw objdump,
11420 # which wouldn't understand a cygwinified path. Ahh.
11421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11427 # pw32 DLLs use 'pw' prefix rather than 'lib'
11428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11437 dynamic_linker='Win32 ld.exe'
11438 # FIXME: first we should search . and the directory the executable is in
11442 darwin* | rhapsody*)
11443 dynamic_linker="$host_os dyld"
11444 version_type=darwin
11447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11448 soname_spec='${libname}${release}${major}$shared_ext'
11449 shlibpath_overrides_runpath=yes
11450 shlibpath_var=DYLD_LIBRARY_PATH
11451 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11453 if test "$GCC" = yes; then
11454 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"`
11456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 shlibpath_var=LD_LIBRARY_PATH
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=no
11482 hardcode_into_libs=yes
11483 dynamic_linker='GNU ld.so'
11487 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11488 version_type=freebsd-$objformat
11489 case $version_type in
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11500 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11505 freebsd3.01* | freebsdelf3.01*)
11506 shlibpath_overrides_runpath=yes
11507 hardcode_into_libs=yes
11510 shlibpath_overrides_runpath=no
11511 hardcode_into_libs=yes
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 hardcode_into_libs=yes
11526 hpux9* | hpux10* | hpux11*)
11527 # Give a soname corresponding to the major version so that dld.sl refuses to
11528 # link against other versions.
11532 case "$host_cpu" in
11535 hardcode_into_libs=yes
11536 dynamic_linker="$host_os dld.so"
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 if test "X$HPUX_IA64_MODE" = X32; then
11542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11550 hardcode_into_libs=yes
11551 dynamic_linker="$host_os dld.sl"
11552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11561 dynamic_linker="$host_os dld.sl"
11562 shlibpath_var=SHLIB_PATH
11563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565 soname_spec='${libname}${release}${shared_ext}$major'
11568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11569 postinstall_cmds='chmod 555 $lib'
11572 irix5* | irix6* | nonstopux*)
11574 nonstopux*) version_type=nonstopux ;;
11576 if test "$lt_cv_prog_gnu_ld" = yes; then
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11587 irix5* | nonstopux*)
11588 libsuff= shlibsuff=
11591 case $LD in # libtool.m4 will add one of these switches to LD
11592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11593 libsuff= shlibsuff= libmagic=32-bit;;
11594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11595 libsuff=32 shlibsuff=N32 libmagic=N32;;
11596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11598 *) libsuff= shlibsuff= libmagic=never-match;;
11602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11603 shlibpath_overrides_runpath=no
11604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11606 hardcode_into_libs=yes
11609 # No shared lib support for Linux oldld, aout, or coff.
11610 linux*oldld* | linux*aout* | linux*coff*)
11614 # This must be Linux ELF.
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=no
11624 # This implies no fast_install, which is unacceptable.
11625 # Some rework will be needed to allow for fast_install
11626 # before this can be enabled.
11627 hardcode_into_libs=yes
11629 # find out which ABI we are using
11631 case "$host_cpu" in
11632 x86_64*|s390x*|powerpc64*)
11633 echo '#line 11633 "configure"' > conftest.$ac_ext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635 (eval $ac_compile) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; then
11639 case `/usr/bin/file conftest.$ac_objext` in
11642 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11650 # Append ld.so.conf contents to the search path
11651 if test -f /etc/ld.so.conf; then
11652 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11653 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11656 # We used to test for /lib/ld.so.1 and disable shared libraries on
11657 # powerpc, because MkLinux only supported shared libraries with the
11658 # GNU dynamic linker. Since this was broken with cross compilers,
11659 # most powerpc-linux boxes support dynamic linking these days and
11660 # people can always --disable-shared, the test was removed, and we
11661 # assume the GNU/Linux dynamic linker is in use.
11662 dynamic_linker='GNU/Linux ld.so'
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=no
11673 hardcode_into_libs=yes
11674 dynamic_linker='GNU ld.so'
11681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11684 dynamic_linker='NetBSD (a.out) ld.so'
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11687 soname_spec='${libname}${release}${shared_ext}$major'
11688 dynamic_linker='NetBSD ld.elf_so'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=yes
11692 hardcode_into_libs=yes
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 shlibpath_var=LD_LIBRARY_PATH
11699 shlibpath_overrides_runpath=yes
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11721 openbsd2.[89] | openbsd2.[89].*)
11722 shlibpath_overrides_runpath=no
11725 shlibpath_overrides_runpath=yes
11729 shlibpath_overrides_runpath=yes
11734 libname_spec='$name'
11737 library_names_spec='$libname${shared_ext} $libname.a'
11738 dynamic_linker='OS/2 ld.exe'
11739 shlibpath_var=LIBPATH
11742 osf3* | osf4* | osf5*)
11746 soname_spec='${libname}${release}${shared_ext}$major'
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11750 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757 shlibpath_var=LD_LIBRARY_PATH
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11766 shlibpath_var=LD_LIBRARY_PATH
11767 shlibpath_overrides_runpath=yes
11768 hardcode_into_libs=yes
11769 # ldd complains unless libraries are executable
11770 postinstall_cmds='chmod +x $lib'
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=yes
11779 if test "$with_gnu_ld" = yes; then
11785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 case $host_vendor in
11792 shlibpath_overrides_runpath=no
11794 export_dynamic_flag_spec='${wl}-Blargedynsym'
11795 runpath_var=LD_RUN_PATH
11803 shlibpath_overrides_runpath=no
11804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11810 if test -d /usr/nec ;then
11812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11813 soname_spec='$libname${shared_ext}.$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821 soname_spec='${libname}${release}${shared_ext}$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11829 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11830 echo "${ECHO_T}$dynamic_linker" >&6
11831 test "$dynamic_linker" = no && can_build_shared=no
11833 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11835 hardcode_action_CXX=
11836 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11837 test -n "$runpath_var CXX" || \
11838 test "X$hardcode_automatic_CXX"="Xyes" ; then
11840 # We can hardcode non-existant directories.
11841 if test "$hardcode_direct_CXX" != no &&
11842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11843 # have to relink, otherwise we might link with an installed library
11844 # when we should be linking with a yet-to-be-installed one
11845 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11846 test "$hardcode_minus_L_CXX" != no; then
11847 # Linking always hardcodes the temporary library directory.
11848 hardcode_action_CXX=relink
11850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11851 hardcode_action_CXX=immediate
11854 # We cannot hardcode anything, or else we can only hardcode existing
11856 hardcode_action_CXX=unsupported
11858 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11859 echo "${ECHO_T}$hardcode_action_CXX" >&6
11861 if test "$hardcode_action_CXX" = relink; then
11862 # Fast installation is not supported
11863 enable_fast_install=no
11864 elif test "$shlibpath_overrides_runpath" = yes ||
11865 test "$enable_shared" = no; then
11866 # Fast installation is not necessary
11867 enable_fast_install=needless
11872 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11873 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11874 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11877 echo "$as_me:$LINENO: result: yes" >&5
11878 echo "${ECHO_T}yes" >&6
11880 # FIXME - insert some real tests, host_os isn't really good enough
11883 if test -n "$STRIP" ; then
11884 striplib="$STRIP -x"
11885 echo "$as_me:$LINENO: result: yes" >&5
11886 echo "${ECHO_T}yes" >&6
11888 echo "$as_me:$LINENO: result: no" >&5
11889 echo "${ECHO_T}no" >&6
11893 echo "$as_me:$LINENO: result: no" >&5
11894 echo "${ECHO_T}no" >&6
11899 if test "x$enable_dlopen" != xyes; then
11900 enable_dlopen=unknown
11901 enable_dlopen_self=unknown
11902 enable_dlopen_self_static=unknown
11909 lt_cv_dlopen="load_add_on"
11911 lt_cv_dlopen_self=yes
11915 lt_cv_dlopen="LoadLibrary"
11920 lt_cv_dlopen="dlopen"
11925 # if libdl is installed we need to link against it
11926 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11927 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11928 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 ac_check_lib_save_LIBS=$LIBS
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11940 /* Override any gcc2 internal prototype to avoid an error. */
11944 /* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_cxx_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_dl_dlopen=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_cv_lib_dl_dlopen=no
11984 rm -f conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11988 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11989 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11990 if test $ac_cv_lib_dl_dlopen = yes; then
11991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11994 lt_cv_dlopen="dyld"
11996 lt_cv_dlopen_self=yes
12003 echo "$as_me:$LINENO: checking for shl_load" >&5
12004 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12005 if test "${ac_cv_func_shl_load+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 cat >conftest.$ac_ext <<_ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12016 #define shl_load innocuous_shl_load
12018 /* System header to define __stub macros and hopefully few prototypes,
12019 which can conflict with char shl_load (); below.
12020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021 <limits.h> exists even on freestanding compilers. */
12024 # include <limits.h>
12026 # include <assert.h>
12031 /* Override any gcc2 internal prototype to avoid an error. */
12036 /* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12039 /* The GNU C library defines this for functions which it implements
12040 to always fail with ENOSYS. Some functions are actually named
12041 something starting with __ and the normal name is an alias. */
12042 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12045 char (*f) () = shl_load;
12054 return f != shl_load;
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_cxx_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_func_shl_load=yes
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 ac_cv_func_shl_load=no
12088 rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12091 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12092 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12093 if test $ac_cv_func_shl_load = yes; then
12094 lt_cv_dlopen="shl_load"
12096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12097 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12098 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 ac_check_lib_save_LIBS=$LIBS
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12110 /* Override any gcc2 internal prototype to avoid an error. */
12114 /* We use char because int might match the return type of a gcc2
12115 builtin and then its argument prototype would still apply. */
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127 (eval $ac_link) 2>conftest.er1
12129 grep -v '^ *+' conftest.er1 >conftest.err
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_cxx_werror_flag"
12135 || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_lib_dld_shl_load=yes
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ac_cv_lib_dld_shl_load=no
12154 rm -f conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12160 if test $ac_cv_lib_dld_shl_load = yes; then
12161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12163 echo "$as_me:$LINENO: checking for dlopen" >&5
12164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12165 if test "${ac_cv_func_dlopen+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12176 #define dlopen innocuous_dlopen
12178 /* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char dlopen (); below.
12180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181 <limits.h> exists even on freestanding compilers. */
12184 # include <limits.h>
12186 # include <assert.h>
12191 /* Override any gcc2 internal prototype to avoid an error. */
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12205 char (*f) () = dlopen;
12214 return f != dlopen;
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_cxx_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_func_dlopen=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_func_dlopen=no
12248 rm -f conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12251 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12252 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12253 if test $ac_cv_func_dlopen = yes; then
12254 lt_cv_dlopen="dlopen"
12256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 ac_check_lib_save_LIBS=$LIBS
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12270 /* Override any gcc2 internal prototype to avoid an error. */
12274 /* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_cxx_werror_flag"
12295 || test ! -s conftest.err'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_lib_dl_dlopen=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_lib_dl_dlopen=no
12314 rm -f conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12318 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12319 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12320 if test $ac_cv_lib_dl_dlopen = yes; then
12321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12323 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12324 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12325 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-lsvld $LIBS"
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12337 /* Override any gcc2 internal prototype to avoid an error. */
12341 /* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_cxx_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_lib_svld_dlopen=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_cv_lib_svld_dlopen=no
12381 rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12385 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12386 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12387 if test $ac_cv_lib_svld_dlopen = yes; then
12388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12390 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12391 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12392 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 ac_check_lib_save_LIBS=$LIBS
12397 cat >conftest.$ac_ext <<_ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12404 /* Override any gcc2 internal prototype to avoid an error. */
12408 /* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421 (eval $ac_link) 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_cxx_werror_flag"
12429 || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest$ac_exeext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_cv_lib_dld_dld_link=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_cv_lib_dld_dld_link=no
12448 rm -f conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12453 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12454 if test $ac_cv_lib_dld_dld_link = yes; then
12455 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12476 if test "x$lt_cv_dlopen" != xno; then
12482 case $lt_cv_dlopen in
12484 save_CPPFLAGS="$CPPFLAGS"
12485 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12487 save_LDFLAGS="$LDFLAGS"
12488 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12491 LIBS="$lt_cv_dlopen_libs $LIBS"
12493 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12494 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12495 if test "${lt_cv_dlopen_self+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 if test "$cross_compiling" = yes; then :
12499 lt_cv_dlopen_self=cross
12501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12502 lt_status=$lt_dlunknown
12503 cat > conftest.$ac_ext <<EOF
12504 #line 12504 "configure"
12505 #include "confdefs.h"
12514 # define LT_DLGLOBAL RTLD_GLOBAL
12517 # define LT_DLGLOBAL DL_GLOBAL
12519 # define LT_DLGLOBAL 0
12523 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12524 find out it does not work in some platform. */
12525 #ifndef LT_DLLAZY_OR_NOW
12527 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12530 # define LT_DLLAZY_OR_NOW DL_LAZY
12533 # define LT_DLLAZY_OR_NOW RTLD_NOW
12536 # define LT_DLLAZY_OR_NOW DL_NOW
12538 # define LT_DLLAZY_OR_NOW 0
12546 extern "C" void exit (int);
12549 void fnord() { int i=42;}
12552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553 int status = $lt_dlunknown;
12557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559 /* dlclose (self); */
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12570 (./conftest; exit; ) 2>/dev/null
12572 case x$lt_status in
12573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12575 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12578 # compilation failed
12579 lt_cv_dlopen_self=no
12586 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12587 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12589 if test "x$lt_cv_dlopen_self" = xyes; then
12590 LDFLAGS="$LDFLAGS $link_static_flag"
12591 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12592 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12593 if test "${lt_cv_dlopen_self_static+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 if test "$cross_compiling" = yes; then :
12597 lt_cv_dlopen_self_static=cross
12599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12600 lt_status=$lt_dlunknown
12601 cat > conftest.$ac_ext <<EOF
12602 #line 12602 "configure"
12603 #include "confdefs.h"
12612 # define LT_DLGLOBAL RTLD_GLOBAL
12615 # define LT_DLGLOBAL DL_GLOBAL
12617 # define LT_DLGLOBAL 0
12621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12622 find out it does not work in some platform. */
12623 #ifndef LT_DLLAZY_OR_NOW
12625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12628 # define LT_DLLAZY_OR_NOW DL_LAZY
12631 # define LT_DLLAZY_OR_NOW RTLD_NOW
12634 # define LT_DLLAZY_OR_NOW DL_NOW
12636 # define LT_DLLAZY_OR_NOW 0
12644 extern "C" void exit (int);
12647 void fnord() { int i=42;}
12650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12651 int status = $lt_dlunknown;
12655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12657 /* dlclose (self); */
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12668 (./conftest; exit; ) 2>/dev/null
12670 case x$lt_status in
12671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12673 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12676 # compilation failed
12677 lt_cv_dlopen_self_static=no
12684 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12685 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12688 CPPFLAGS="$save_CPPFLAGS"
12689 LDFLAGS="$save_LDFLAGS"
12694 case $lt_cv_dlopen_self in
12695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12696 *) enable_dlopen_self=unknown ;;
12699 case $lt_cv_dlopen_self_static in
12700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12701 *) enable_dlopen_self_static=unknown ;;
12706 # The else clause should only fire when bootstrapping the
12707 # libtool distribution, otherwise you forgot to ship ltmain.sh
12708 # with your package, and you will get complaints that there are
12709 # no rules to generate ltmain.sh.
12710 if test -f "$ltmain"; then
12711 # See if we are running on zsh, and set the options which allow our commands through
12712 # without removal of \ escapes.
12713 if test -n "${ZSH_VERSION+set}" ; then
12714 setopt NO_GLOB_SUBST
12716 # Now quote all the things that may contain metacharacters while being
12717 # careful not to overquote the AC_SUBSTed values. We take copies of the
12718 # variables and quote the copies for generation of the libtool script.
12719 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12721 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12722 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12723 deplibs_check_method reload_flag reload_cmds need_locks \
12724 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12725 lt_cv_sys_global_symbol_to_c_name_address \
12726 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12727 old_postinstall_cmds old_postuninstall_cmds \
12731 lt_prog_compiler_wl_CXX \
12732 lt_prog_compiler_pic_CXX \
12733 lt_prog_compiler_static_CXX \
12734 lt_prog_compiler_no_builtin_flag_CXX \
12735 export_dynamic_flag_spec_CXX \
12736 thread_safe_flag_spec_CXX \
12737 whole_archive_flag_spec_CXX \
12738 enable_shared_with_static_runtimes_CXX \
12739 old_archive_cmds_CXX \
12740 old_archive_from_new_cmds_CXX \
12741 predep_objects_CXX \
12742 postdep_objects_CXX \
12745 compiler_lib_search_path_CXX \
12747 archive_expsym_cmds_CXX \
12748 postinstall_cmds_CXX \
12749 postuninstall_cmds_CXX \
12750 old_archive_from_expsyms_cmds_CXX \
12751 allow_undefined_flag_CXX \
12752 no_undefined_flag_CXX \
12753 export_symbols_cmds_CXX \
12754 hardcode_libdir_flag_spec_CXX \
12755 hardcode_libdir_flag_spec_ld_CXX \
12756 hardcode_libdir_separator_CXX \
12757 hardcode_automatic_CXX \
12759 module_expsym_cmds_CXX \
12760 lt_cv_prog_compiler_c_o_CXX \
12761 exclude_expsyms_CXX \
12762 include_expsyms_CXX; do
12765 old_archive_cmds_CXX | \
12766 old_archive_from_new_cmds_CXX | \
12767 archive_cmds_CXX | \
12768 archive_expsym_cmds_CXX | \
12769 module_cmds_CXX | \
12770 module_expsym_cmds_CXX | \
12771 old_archive_from_expsyms_cmds_CXX | \
12772 export_symbols_cmds_CXX | \
12773 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12774 postinstall_cmds | postuninstall_cmds | \
12775 old_postinstall_cmds | old_postuninstall_cmds | \
12776 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12777 # Double-quote double-evaled strings.
12778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12787 *'\$0 --fallback-echo"')
12788 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12794 cat <<__EOF__ >> "$cfgfile"
12795 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12797 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12799 # Shell to use when invoking shell scripts.
12802 # Whether or not to build shared libraries.
12803 build_libtool_libs=$enable_shared
12805 # Whether or not to build static libraries.
12806 build_old_libs=$enable_static
12808 # Whether or not to add -lc for building shared libraries.
12809 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12811 # Whether or not to disallow shared libs when runtime libs are static
12812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12814 # Whether or not to optimize for fast installation.
12815 fast_install=$enable_fast_install
12818 host_alias=$host_alias
12821 # An echo program that does not interpret backslashes.
12826 AR_FLAGS=$lt_AR_FLAGS
12831 # A language-specific compiler.
12832 CC=$lt_compiler_CXX
12834 # Is the compiler the GNU C compiler?
12840 # The linker used to build libraries.
12843 # Whether we need hard or soft links.
12846 # A BSD-compatible nm program.
12849 # A symbol stripping program
12852 # Used to examine libraries when file_magic_cmd begins "file"
12853 MAGIC_CMD=$MAGIC_CMD
12855 # Used on cygwin: DLL creation program.
12858 # Used on cygwin: object dumper.
12861 # Used on cygwin: assembler.
12864 # The name of the directory that contains temporary libtool files.
12867 # How to create reloadable object files.
12868 reload_flag=$lt_reload_flag
12869 reload_cmds=$lt_reload_cmds
12871 # How to pass a linker flag through the compiler.
12872 wl=$lt_lt_prog_compiler_wl_CXX
12874 # Object file suffix (normally "o").
12875 objext="$ac_objext"
12877 # Old archive suffix (normally "a").
12880 # Shared library suffix (normally ".so").
12881 shrext_cmds='$shrext_cmds'
12883 # Executable file suffix (normally "").
12886 # Additional compiler flags for building library objects.
12887 pic_flag=$lt_lt_prog_compiler_pic_CXX
12890 # What is the maximum length of a command?
12891 max_cmd_len=$lt_cv_sys_max_cmd_len
12893 # Does compiler simultaneously support -c and -o options?
12894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12896 # Must we lock files when doing compilation ?
12897 need_locks=$lt_need_locks
12899 # Do we need the lib prefix for modules?
12900 need_lib_prefix=$need_lib_prefix
12902 # Do we need a version for libraries?
12903 need_version=$need_version
12905 # Whether dlopen is supported.
12906 dlopen_support=$enable_dlopen
12908 # Whether dlopen of programs is supported.
12909 dlopen_self=$enable_dlopen_self
12911 # Whether dlopen of statically linked programs is supported.
12912 dlopen_self_static=$enable_dlopen_self_static
12914 # Compiler flag to prevent dynamic linking.
12915 link_static_flag=$lt_lt_prog_compiler_static_CXX
12917 # Compiler flag to turn off builtin functions.
12918 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12920 # Compiler flag to allow reflexive dlopens.
12921 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12923 # Compiler flag to generate shared objects directly from archives.
12924 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12926 # Compiler flag to generate thread-safe objects.
12927 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12929 # Library versioning type.
12930 version_type=$version_type
12932 # Format of library name prefix.
12933 libname_spec=$lt_libname_spec
12935 # List of archive names. First name is the real one, the rest are links.
12936 # The last name is the one that the linker finds with -lNAME.
12937 library_names_spec=$lt_library_names_spec
12939 # The coded name of the library, if different from the real name.
12940 soname_spec=$lt_soname_spec
12942 # Commands used to build and install an old-style archive.
12944 old_archive_cmds=$lt_old_archive_cmds_CXX
12945 old_postinstall_cmds=$lt_old_postinstall_cmds
12946 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12948 # Create an old-style archive from a shared archive.
12949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12951 # Create a temporary old-style archive to link instead of a shared archive.
12952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12954 # Commands used to build and install a shared archive.
12955 archive_cmds=$lt_archive_cmds_CXX
12956 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12957 postinstall_cmds=$lt_postinstall_cmds
12958 postuninstall_cmds=$lt_postuninstall_cmds
12960 # Commands used to build a loadable module (assumed same as above if empty)
12961 module_cmds=$lt_module_cmds_CXX
12962 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12964 # Commands to strip libraries.
12965 old_striplib=$lt_old_striplib
12966 striplib=$lt_striplib
12968 # Dependencies to place before the objects being linked to create a
12970 predep_objects=$lt_predep_objects_CXX
12972 # Dependencies to place after the objects being linked to create a
12974 postdep_objects=$lt_postdep_objects_CXX
12976 # Dependencies to place before the objects being linked to create a
12978 predeps=$lt_predeps_CXX
12980 # Dependencies to place after the objects being linked to create a
12982 postdeps=$lt_postdeps_CXX
12984 # The library search path used internally by the compiler when linking
12985 # a shared library.
12986 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12988 # Method to check whether dependent libraries are shared objects.
12989 deplibs_check_method=$lt_deplibs_check_method
12991 # Command to use when deplibs_check_method == file_magic.
12992 file_magic_cmd=$lt_file_magic_cmd
12994 # Flag that allows shared libraries with undefined symbols to be built.
12995 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12997 # Flag that forces no undefined symbols.
12998 no_undefined_flag=$lt_no_undefined_flag_CXX
13000 # Commands used to finish a libtool library installation in a directory.
13001 finish_cmds=$lt_finish_cmds
13003 # Same as above, but a single script fragment to be evaled but not shown.
13004 finish_eval=$lt_finish_eval
13006 # Take the output of nm and produce a listing of raw symbols and C names.
13007 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13009 # Transform the output of nm in a proper C declaration
13010 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13012 # Transform the output of nm in a C name address pair
13013 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13015 # This is the shared library runtime path variable.
13016 runpath_var=$runpath_var
13018 # This is the shared library path variable.
13019 shlibpath_var=$shlibpath_var
13021 # Is shlibpath searched before the hard-coded library search path?
13022 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13024 # How to hardcode a shared library path into an executable.
13025 hardcode_action=$hardcode_action_CXX
13027 # Whether we should hardcode library paths into libraries.
13028 hardcode_into_libs=$hardcode_into_libs
13030 # Flag to hardcode \$libdir into a binary during linking.
13031 # This must work even if \$libdir does not exist.
13032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13034 # If ld is used when linking, flag to hardcode \$libdir into
13035 # a binary during linking. This must work even if \$libdir does
13037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13039 # Whether we need a single -rpath flag with a separated argument.
13040 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13042 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13043 # resulting binary.
13044 hardcode_direct=$hardcode_direct_CXX
13046 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13047 # resulting binary.
13048 hardcode_minus_L=$hardcode_minus_L_CXX
13050 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13051 # the resulting binary.
13052 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13054 # Set to yes if building a shared library automatically hardcodes DIR into the library
13055 # and all subsequent libraries and executables linked against it.
13056 hardcode_automatic=$hardcode_automatic_CXX
13058 # Variables whose values should be saved in libtool wrapper scripts and
13059 # restored at relink time.
13060 variables_saved_for_relink="$variables_saved_for_relink"
13062 # Whether libtool must link a program against all its dependency libraries.
13063 link_all_deplibs=$link_all_deplibs_CXX
13065 # Compile-time system search path for libraries
13066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13068 # Run-time system search path for libraries
13069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13071 # Fix the shell variable \$srcfile for the compiler.
13072 fix_srcfile_path="$fix_srcfile_path_CXX"
13074 # Set to yes if exported symbols are required.
13075 always_export_symbols=$always_export_symbols_CXX
13077 # The commands to list exported symbols.
13078 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13080 # The commands to extract the exported symbol list from a shared archive.
13081 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13083 # Symbols that should not be listed in the preloaded symbols.
13084 exclude_expsyms=$lt_exclude_expsyms_CXX
13086 # Symbols that must always be exported.
13087 include_expsyms=$lt_include_expsyms_CXX
13089 # ### END LIBTOOL TAG CONFIG: $tagname
13095 # If there is no Makefile yet, we rely on a make rule to execute
13096 # `config.status --recheck' to rerun these tests and create the
13097 # libtool script then.
13098 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13099 if test -f "$ltmain_in"; then
13100 test -f Makefile && make "$ltmain"
13106 ac_cpp='$CPP $CPPFLAGS'
13107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13115 with_gnu_ldcxx=$with_gnu_ld
13116 with_gnu_ld=$lt_save_with_gnu_ld
13117 lt_cv_path_LDCXX=$lt_cv_path_LD
13118 lt_cv_path_LD=$lt_save_path_LD
13119 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13120 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13128 if test -n "$F77" && test "X$F77" != "Xno"; then
13131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13136 archive_cmds_need_lc_F77=no
13137 allow_undefined_flag_F77=
13138 always_export_symbols_F77=no
13139 archive_expsym_cmds_F77=
13140 export_dynamic_flag_spec_F77=
13141 hardcode_direct_F77=no
13142 hardcode_libdir_flag_spec_F77=
13143 hardcode_libdir_flag_spec_ld_F77=
13144 hardcode_libdir_separator_F77=
13145 hardcode_minus_L_F77=no
13146 hardcode_automatic_F77=no
13148 module_expsym_cmds_F77=
13149 link_all_deplibs_F77=unknown
13150 old_archive_cmds_F77=$old_archive_cmds
13151 no_undefined_flag_F77=
13152 whole_archive_flag_spec_F77=
13153 enable_shared_with_static_runtimes_F77=no
13155 # Source file extension for f77 test sources.
13158 # Object file extension for compiled f77 test sources.
13162 # Code to be used in simple compile tests
13163 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13165 # Code to be used in simple link tests
13166 lt_simple_link_test_code=" program t\n end\n"
13168 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13170 # If no C compiler was specified, use CC.
13173 # Allow CC to be a program name with arguments.
13177 # Allow CC to be a program name with arguments.
13182 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13184 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13185 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13186 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13187 echo "${ECHO_T}$can_build_shared" >&6
13189 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13190 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13191 test "$can_build_shared" = "no" && enable_shared=no
13193 # On AIX, shared libraries and static libraries use the same namespace, and
13194 # are all built from PIC.
13197 test "$enable_shared" = yes && enable_static=no
13198 if test -n "$RANLIB"; then
13199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13200 postinstall_cmds='$RANLIB $lib'
13204 test "$enable_shared" = yes && enable_static=no
13207 echo "$as_me:$LINENO: result: $enable_shared" >&5
13208 echo "${ECHO_T}$enable_shared" >&6
13210 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13211 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13212 # Make sure either enable_shared or enable_static is yes.
13213 test "$enable_shared" = yes || enable_static=yes
13214 echo "$as_me:$LINENO: result: $enable_static" >&5
13215 echo "${ECHO_T}$enable_static" >&6
13217 test "$ld_shlibs_F77" = no && can_build_shared=no
13222 lt_prog_compiler_wl_F77=
13223 lt_prog_compiler_pic_F77=
13224 lt_prog_compiler_static_F77=
13226 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13229 if test "$GCC" = yes; then
13230 lt_prog_compiler_wl_F77='-Wl,'
13231 lt_prog_compiler_static_F77='-static'
13235 # All AIX code is PIC.
13236 if test "$host_cpu" = ia64; then
13237 # AIX 5 now supports IA64 processor
13238 lt_prog_compiler_static_F77='-Bstatic'
13243 # FIXME: we need at least 68020 code to build shared libraries, but
13244 # adding the `-m68020' flag to GCC prevents building anything better,
13246 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13250 # PIC is the default for these OSes.
13253 mingw* | pw32* | os2*)
13254 # This hack is so that the source file can tell whether it is being
13255 # built for inclusion in a dll (and should export symbols for example).
13256 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13259 darwin* | rhapsody*)
13260 # PIC is the default on this platform
13261 # Common symbols not allowed in MH_DYLIB files
13262 lt_prog_compiler_pic_F77='-fno-common'
13266 # Just because we use GCC doesn't mean we suddenly get shared libraries
13267 # on systems that don't support them.
13268 lt_prog_compiler_can_build_shared_F77=no
13273 if test -d /usr/nec; then
13274 lt_prog_compiler_pic_F77=-Kconform_pic
13279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13280 # not for PA HP-UX.
13281 case "$host_cpu" in
13286 lt_prog_compiler_pic_F77='-fPIC'
13292 lt_prog_compiler_pic_F77='-fPIC'
13296 # PORTME Check for flag to pass linker flags through the system compiler.
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 if test "$host_cpu" = ia64; then
13301 # AIX 5 now supports IA64 processor
13302 lt_prog_compiler_static_F77='-Bstatic'
13304 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13308 mingw* | pw32* | os2*)
13309 # This hack is so that the source file can tell whether it is being
13310 # built for inclusion in a dll (and should export symbols for example).
13311 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13314 hpux9* | hpux10* | hpux11*)
13315 lt_prog_compiler_wl_F77='-Wl,'
13316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13317 # not for PA HP-UX.
13318 case "$host_cpu" in
13323 lt_prog_compiler_pic_F77='+Z'
13326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13327 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13330 irix5* | irix6* | nonstopux*)
13331 lt_prog_compiler_wl_F77='-Wl,'
13332 # PIC (with -KPIC) is the default.
13333 lt_prog_compiler_static_F77='-non_shared'
13337 lt_prog_compiler_pic_F77='-KPIC'
13338 lt_prog_compiler_static_F77='-Bstatic'
13344 lt_prog_compiler_wl_F77='-Wl,'
13345 lt_prog_compiler_pic_F77='-KPIC'
13346 lt_prog_compiler_static_F77='-static'
13349 lt_prog_compiler_wl_F77='-Wl,'
13350 # All Alpha code is PIC.
13351 lt_prog_compiler_static_F77='-non_shared'
13356 osf3* | osf4* | osf5*)
13357 lt_prog_compiler_wl_F77='-Wl,'
13358 # All OSF/1 code is PIC.
13359 lt_prog_compiler_static_F77='-non_shared'
13363 lt_prog_compiler_pic_F77='-Kpic'
13364 lt_prog_compiler_static_F77='-dn'
13368 lt_prog_compiler_wl_F77='-Wl,'
13369 lt_prog_compiler_pic_F77='-KPIC'
13370 lt_prog_compiler_static_F77='-Bstatic'
13374 lt_prog_compiler_wl_F77='-Qoption ld '
13375 lt_prog_compiler_pic_F77='-PIC'
13376 lt_prog_compiler_static_F77='-Bstatic'
13379 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13380 lt_prog_compiler_wl_F77='-Wl,'
13381 lt_prog_compiler_pic_F77='-KPIC'
13382 lt_prog_compiler_static_F77='-Bstatic'
13386 if test -d /usr/nec ;then
13387 lt_prog_compiler_pic_F77='-Kconform_pic'
13388 lt_prog_compiler_static_F77='-Bstatic'
13393 lt_prog_compiler_pic_F77='-pic'
13394 lt_prog_compiler_static_F77='-Bstatic'
13398 lt_prog_compiler_can_build_shared_F77=no
13403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13404 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13407 # Check to make sure the PIC flag actually works.
13409 if test -n "$lt_prog_compiler_pic_F77"; then
13411 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13412 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13413 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 lt_prog_compiler_pic_works_F77=no
13417 ac_outfile=conftest.$ac_objext
13418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13419 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13420 # Insert the option either (1) after the last *FLAGS variable, or
13421 # (2) before a word containing "conftest.", or (3) at the end.
13422 # Note that $ac_compile itself does not contain backslashes and begins
13423 # with a dollar sign (not a hyphen), so the echo should work correctly.
13424 # The option is referenced via a variable to avoid confusing sed.
13425 lt_compile=`echo "$ac_compile" | $SED \
13426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13428 -e 's:$: $lt_compiler_flag:'`
13429 (eval echo "\"\$as_me:13429: $lt_compile\"" >&5)
13430 (eval "$lt_compile" 2>conftest.err)
13432 cat conftest.err >&5
13433 echo "$as_me:13433: \$? = $ac_status" >&5
13434 if (exit $ac_status) && test -s "$ac_outfile"; then
13435 # The compiler can only warn and ignore the option if not recognized
13436 # So say no if there are warnings
13437 if test ! -s conftest.err; then
13438 lt_prog_compiler_pic_works_F77=yes
13444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13445 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13447 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13448 case $lt_prog_compiler_pic_F77 in
13450 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13453 lt_prog_compiler_pic_F77=
13454 lt_prog_compiler_can_build_shared_F77=no
13459 # For platforms which do not support PIC, -DPIC is meaningless:
13461 lt_prog_compiler_pic_F77=
13464 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13468 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13469 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13470 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 lt_cv_prog_compiler_c_o_F77=no
13474 $rm -r conftest 2>/dev/null
13478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13480 lt_compiler_flag="-o out/conftest2.$ac_objext"
13481 # Insert the option either (1) after the last *FLAGS variable, or
13482 # (2) before a word containing "conftest.", or (3) at the end.
13483 # Note that $ac_compile itself does not contain backslashes and begins
13484 # with a dollar sign (not a hyphen), so the echo should work correctly.
13485 lt_compile=`echo "$ac_compile" | $SED \
13486 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488 -e 's:$: $lt_compiler_flag:'`
13489 (eval echo "\"\$as_me:13489: $lt_compile\"" >&5)
13490 (eval "$lt_compile" 2>out/conftest.err)
13492 cat out/conftest.err >&5
13493 echo "$as_me:13493: \$? = $ac_status" >&5
13494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13496 # The compiler can only warn and ignore the option if not recognized
13497 # So say no if there are warnings
13498 if test ! -s out/conftest.err; then
13499 lt_cv_prog_compiler_c_o_F77=yes
13504 # SGI C++ compiler will create directory out/ii_files/ for
13505 # template instantiation
13506 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13507 $rm out/* && rmdir out
13513 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13514 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13517 hard_links="nottested"
13518 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13519 # do not overwrite the value of need_locks provided by the user
13520 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13521 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13526 ln conftest.a conftest.b 2>&5 || hard_links=no
13527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13528 echo "$as_me:$LINENO: result: $hard_links" >&5
13529 echo "${ECHO_T}$hard_links" >&6
13530 if test "$hard_links" = no; then
13531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13532 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13539 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13540 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13543 allow_undefined_flag_F77=
13544 enable_shared_with_static_runtimes_F77=no
13546 archive_expsym_cmds_F77=
13547 old_archive_From_new_cmds_F77=
13548 old_archive_from_expsyms_cmds_F77=
13549 export_dynamic_flag_spec_F77=
13550 whole_archive_flag_spec_F77=
13551 thread_safe_flag_spec_F77=
13552 hardcode_libdir_flag_spec_F77=
13553 hardcode_libdir_flag_spec_ld_F77=
13554 hardcode_libdir_separator_F77=
13555 hardcode_direct_F77=no
13556 hardcode_minus_L_F77=no
13557 hardcode_shlibpath_var_F77=unsupported
13558 link_all_deplibs_F77=unknown
13559 hardcode_automatic_F77=no
13561 module_expsym_cmds_F77=
13562 always_export_symbols_F77=no
13563 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13564 # include_expsyms should be a list of space-separated symbols to be *always*
13565 # included in the symbol list
13566 include_expsyms_F77=
13567 # exclude_expsyms can be an extended regexp of symbols to exclude
13568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13570 # as well as any symbol that contains `d'.
13571 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13573 # platforms (ab)use it in PIC code, but their linkers get confused if
13574 # the symbol is explicitly referenced. Since portable code cannot
13575 # rely on this symbol name, it's probably fine to never include it in
13576 # preloaded symbol tables.
13577 extract_expsyms_cmds=
13580 cygwin* | mingw* | pw32*)
13581 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13582 # When not using gcc, we currently assume that we are using
13583 # Microsoft Visual C++.
13584 if test "$GCC" != yes; then
13594 if test "$with_gnu_ld" = yes; then
13595 # If archive_cmds runs LD, not CC, wlarc should be empty
13598 # See if GNU ld supports shared libraries.
13600 aix3* | aix4* | aix5*)
13601 # On AIX/PPC, the GNU linker is very broken
13602 if test "$host_cpu" != ia64; then
13606 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13607 *** to be unable to reliably create shared libraries on AIX.
13608 *** Therefore, libtool is disabling shared libraries support. If you
13609 *** really care for shared libraries, you may want to modify your PATH
13610 *** so that a non-GNU linker is found, and then restart.
13617 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)'
13618 hardcode_libdir_flag_spec_F77='-L$libdir'
13619 hardcode_minus_L_F77=yes
13621 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13622 # that the semantics of dynamic libraries on AmigaOS, at least up
13623 # to version 4, is to share data among multiple programs linked
13624 # with the same dynamic library. Since this doesn't match the
13625 # behavior of shared libraries on other platforms, we can't use
13631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13632 allow_undefined_flag_F77=unsupported
13633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13634 # support --undefined. This deserves some investigation. FIXME
13635 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13641 cygwin* | mingw* | pw32*)
13642 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13643 # as there is no search path for DLLs.
13644 hardcode_libdir_flag_spec_F77='-L$libdir'
13645 allow_undefined_flag_F77=unsupported
13646 always_export_symbols_F77=no
13647 enable_shared_with_static_runtimes_F77=yes
13648 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13650 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13652 # If the export-symbols file already is a .def file (1st line
13653 # is EXPORTS), use it as is; otherwise, prepend...
13654 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13655 cp $export_symbols $output_objdir/$soname.def;
13657 echo EXPORTS > $output_objdir/$soname.def;
13658 cat $export_symbols >> $output_objdir/$soname.def;
13660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13668 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13677 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13682 *** create shared libraries on Solaris systems. Therefore, libtool
13683 *** is disabling shared libraries support. We urge you to upgrade GNU
13684 *** binutils to release 2.9.1 or newer. Another option is to modify
13685 *** your PATH or compiler configuration so that the native linker is
13686 *** used, and then restart.
13689 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13690 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13691 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13698 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13700 hardcode_direct_F77=yes
13701 hardcode_shlibpath_var_F77=no
13705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13706 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13707 archive_cmds_F77="$tmp_archive_cmds"
13708 supports_anon_versioning=no
13709 case `$LD -v 2>/dev/null` in
13710 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13713 *\ 2.11.*) ;; # other 2.11 versions
13714 *) supports_anon_versioning=yes ;;
13716 if test $supports_anon_versioning = yes; then
13717 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13719 $echo "local: *; };" >> $output_objdir/$libname.ver~
13720 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13722 archive_expsym_cmds_F77="$tmp_archive_cmds"
13730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13731 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13732 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13739 if test "$ld_shlibs_F77" = yes; then
13740 runpath_var=LD_RUN_PATH
13741 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13742 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13743 # ancient GNU ld didn't support --whole-archive et. al.
13744 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13745 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13747 whole_archive_flag_spec_F77=
13751 # PORTME fill in a description of your system's linker (not GNU ld)
13754 allow_undefined_flag_F77=unsupported
13755 always_export_symbols_F77=yes
13756 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'
13757 # Note: this linker hardcodes the directories in LIBPATH if there
13758 # are no directories specified by -L.
13759 hardcode_minus_L_F77=yes
13760 if test "$GCC" = yes && test -z "$link_static_flag"; then
13761 # Neither direct hardcoding nor static linking is supported with a
13763 hardcode_direct_F77=unsupported
13768 if test "$host_cpu" = ia64; then
13769 # On IA64, the linker does run time linking by default, so we don't
13770 # have to do anything special.
13771 aix_use_runtimelinking=no
13772 exp_sym_flag='-Bexport'
13775 # If we're using GNU nm, then we don't want the "-C" option.
13776 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13777 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13778 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'
13780 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'
13782 aix_use_runtimelinking=no
13784 # Test if we are trying to use run time linking or normal
13785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13786 # need to do runtime linking.
13787 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13788 for ld_flag in $LDFLAGS; do
13789 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13790 aix_use_runtimelinking=yes
13796 exp_sym_flag='-bexport'
13797 no_entry_flag='-bnoentry'
13800 # When large executables or shared objects are built, AIX ld can
13801 # have problems creating the table of contents. If linking a library
13802 # or program results in "error TOC overflow" add -mminimal-toc to
13803 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13804 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13806 archive_cmds_F77=''
13807 hardcode_direct_F77=yes
13808 hardcode_libdir_separator_F77=':'
13809 link_all_deplibs_F77=yes
13811 if test "$GCC" = yes; then
13812 case $host_os in aix4.012|aix4.012.*)
13813 # We only want to do this on AIX 4.2 and lower, the check
13814 # below for broken collect2 doesn't work under 4.3+
13815 collect2name=`${CC} -print-prog-name=collect2`
13816 if test -f "$collect2name" && \
13817 strings "$collect2name" | grep resolve_lib_name >/dev/null
13819 # We have reworked collect2
13820 hardcode_direct_F77=yes
13822 # We have old collect2
13823 hardcode_direct_F77=unsupported
13824 # It fails to find uninstalled libraries when the uninstalled
13825 # path is not listed in the libpath. Setting hardcode_minus_L
13826 # to unsupported forces relinking
13827 hardcode_minus_L_F77=yes
13828 hardcode_libdir_flag_spec_F77='-L$libdir'
13829 hardcode_libdir_separator_F77=
13832 shared_flag='-shared'
13835 if test "$host_cpu" = ia64; then
13836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13837 # chokes on -Wl,-G. The following line is correct:
13840 if test "$aix_use_runtimelinking" = yes; then
13841 shared_flag='${wl}-G'
13843 shared_flag='${wl}-bM:SRE'
13848 # It seems that -bexpall does not export symbols beginning with
13849 # underscore (_), so it is better to generate a list of symbols to export.
13850 always_export_symbols_F77=yes
13851 if test "$aix_use_runtimelinking" = yes; then
13852 # Warning - without using the other runtime loading flags (-brtl),
13853 # -berok will link without error, but may produce a broken library.
13854 allow_undefined_flag_F77='-berok'
13855 # Determine the default libpath from the value encoded in an empty executable.
13856 cat >conftest.$ac_ext <<_ACEOF
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13863 (eval $ac_link) 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -z "$ac_f77_werror_flag"
13871 || test ! -s conftest.err'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } &&
13877 { ac_try='test -s conftest$ac_exeext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13886 # Check for a 64-bit object if we didn't find anything.
13887 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; }
13890 echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13894 rm -f conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13898 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13899 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"
13901 if test "$host_cpu" = ia64; then
13902 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13903 allow_undefined_flag_F77="-z nodefs"
13904 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"
13906 # Determine the default libpath from the value encoded in an empty executable.
13907 cat >conftest.$ac_ext <<_ACEOF
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13914 (eval $ac_link) 2>conftest.er1
13916 grep -v '^ *+' conftest.er1 >conftest.err
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } &&
13921 { ac_try='test -z "$ac_f77_werror_flag"
13922 || test ! -s conftest.err'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; } &&
13928 { ac_try='test -s conftest$ac_exeext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13935 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13937 # Check for a 64-bit object if we didn't find anything.
13938 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; }
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13945 rm -f conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13949 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13950 # Warning - without using the other run time loading flags,
13951 # -berok will link without error, but may produce a broken library.
13952 no_undefined_flag_F77=' ${wl}-bernotok'
13953 allow_undefined_flag_F77=' ${wl}-berok'
13954 # -bexpall does not export symbols beginning with underscore (_)
13955 always_export_symbols_F77=yes
13956 # Exported symbols can be pulled into shared objects from archives
13957 whole_archive_flag_spec_F77=' '
13958 archive_cmds_need_lc_F77=yes
13959 # This is similar to how AIX traditionally builds it's shared libraries.
13960 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'
13966 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)'
13967 hardcode_libdir_flag_spec_F77='-L$libdir'
13968 hardcode_minus_L_F77=yes
13969 # see comment about different semantics on the GNU ld section
13974 export_dynamic_flag_spec_F77=-rdynamic
13977 cygwin* | mingw* | pw32*)
13978 # When not using gcc, we currently assume that we are using
13979 # Microsoft Visual C++.
13980 # hardcode_libdir_flag_spec is actually meaningless, as there is
13981 # no search path for DLLs.
13982 hardcode_libdir_flag_spec_F77=' '
13983 allow_undefined_flag_F77=unsupported
13984 # Tell ltmain to make .lib files, not .a files.
13986 # Tell ltmain to make .dll files, not .so files.
13988 # FIXME: Setting linknames here is a bad hack.
13989 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13990 # The linker will automatically build a .lib file if we build a DLL.
13991 old_archive_From_new_cmds_F77='true'
13992 # FIXME: Should let the user specify the lib program.
13993 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13994 fix_srcfile_path='`cygpath -w "$srcfile"`'
13995 enable_shared_with_static_runtimes_F77=yes
13998 darwin* | rhapsody*)
13999 if test "$GXX" = yes ; then
14000 archive_cmds_need_lc_F77=no
14002 rhapsody* | darwin1.[012])
14003 allow_undefined_flag_F77='-undefined suppress'
14006 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14007 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14009 case ${MACOSX_DEPLOYMENT_TARGET} in
14011 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14014 allow_undefined_flag_F77='-undefined dynamic_lookup'
14020 lt_int_apple_cc_single_mod=no
14021 output_verbose_link_cmd='echo'
14022 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14023 lt_int_apple_cc_single_mod=yes
14025 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14026 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14028 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'
14030 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14031 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14032 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14033 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}'
14035 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}'
14037 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}'
14038 hardcode_direct_F77=no
14039 hardcode_automatic_F77=yes
14040 hardcode_shlibpath_var_F77=unsupported
14041 whole_archive_flag_spec_F77='-all_load $convenience'
14042 link_all_deplibs_F77=yes
14049 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14050 hardcode_libdir_flag_spec_F77='-L$libdir'
14051 hardcode_shlibpath_var_F77=no
14058 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14059 # support. Future versions do this automatically, but an explicit c++rt0.o
14060 # does not break anything, and helps significantly (at the cost of a little
14063 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14064 hardcode_libdir_flag_spec_F77='-R$libdir'
14065 hardcode_direct_F77=yes
14066 hardcode_shlibpath_var_F77=no
14069 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14071 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14072 hardcode_direct_F77=yes
14073 hardcode_minus_L_F77=yes
14074 hardcode_shlibpath_var_F77=no
14077 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14078 freebsd* | kfreebsd*-gnu)
14079 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14080 hardcode_libdir_flag_spec_F77='-R$libdir'
14081 hardcode_direct_F77=yes
14082 hardcode_shlibpath_var_F77=no
14086 if test "$GCC" = yes; then
14087 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'
14089 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'
14091 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14092 hardcode_libdir_separator_F77=:
14093 hardcode_direct_F77=yes
14095 # hardcode_minus_L: Not really in the search PATH,
14096 # but as the default location of the library.
14097 hardcode_minus_L_F77=yes
14098 export_dynamic_flag_spec_F77='${wl}-E'
14102 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14103 case "$host_cpu" in
14105 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14108 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14112 case "$host_cpu" in
14114 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14117 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14121 if test "$with_gnu_ld" = no; then
14122 case "$host_cpu" in
14124 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14125 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14126 hardcode_libdir_separator_F77=:
14127 hardcode_direct_F77=no
14128 hardcode_shlibpath_var_F77=no
14131 hardcode_libdir_flag_spec_F77='-L$libdir'
14132 hardcode_direct_F77=no
14133 hardcode_shlibpath_var_F77=no
14135 # hardcode_minus_L: Not really in the search PATH,
14136 # but as the default location of the library.
14137 hardcode_minus_L_F77=yes
14140 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14141 hardcode_libdir_separator_F77=:
14142 hardcode_direct_F77=yes
14143 export_dynamic_flag_spec_F77='${wl}-E'
14145 # hardcode_minus_L: Not really in the search PATH,
14146 # but as the default location of the library.
14147 hardcode_minus_L_F77=yes
14153 irix5* | irix6* | nonstopux*)
14154 if test "$GCC" = yes; then
14155 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'
14157 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'
14158 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14160 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161 hardcode_libdir_separator_F77=:
14162 link_all_deplibs_F77=yes
14166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14167 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14169 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14171 hardcode_libdir_flag_spec_F77='-R$libdir'
14172 hardcode_direct_F77=yes
14173 hardcode_shlibpath_var_F77=no
14177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14178 hardcode_direct_F77=yes
14179 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14180 hardcode_libdir_separator_F77=:
14181 hardcode_shlibpath_var_F77=no
14185 hardcode_direct_F77=yes
14186 hardcode_shlibpath_var_F77=no
14187 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14188 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14189 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14190 export_dynamic_flag_spec_F77='${wl}-E'
14193 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14194 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14195 hardcode_libdir_flag_spec_F77='-R$libdir'
14198 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14199 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14206 hardcode_libdir_flag_spec_F77='-L$libdir'
14207 hardcode_minus_L_F77=yes
14208 allow_undefined_flag_F77=unsupported
14209 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'
14210 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14214 if test "$GCC" = yes; then
14215 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14216 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'
14218 allow_undefined_flag_F77=' -expect_unresolved \*'
14219 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'
14221 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14222 hardcode_libdir_separator_F77=:
14225 osf4* | osf5*) # as osf3* with the addition of -msym flag
14226 if test "$GCC" = yes; then
14227 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14228 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'
14229 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14231 allow_undefined_flag_F77=' -expect_unresolved \*'
14232 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'
14233 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~
14234 $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'
14236 # Both c and cxx compiler support -rpath directly
14237 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14239 hardcode_libdir_separator_F77=:
14243 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244 hardcode_shlibpath_var_F77=no
14245 export_dynamic_flag_spec_F77='${wl}-Bexport'
14246 runpath_var=LD_RUN_PATH
14247 hardcode_runpath_var=yes
14251 no_undefined_flag_F77=' -z text'
14252 if test "$GCC" = yes; then
14253 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14254 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14255 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14257 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14258 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14259 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14261 hardcode_libdir_flag_spec_F77='-R$libdir'
14262 hardcode_shlibpath_var_F77=no
14264 solaris2.[0-5] | solaris2.[0-5].*) ;;
14265 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14266 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14268 link_all_deplibs_F77=yes
14272 if test "x$host_vendor" = xsequent; then
14273 # Use $CC to link under sequent, because it throws in some extra .o
14274 # files that make .init and .fini sections work.
14275 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14277 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14279 hardcode_libdir_flag_spec_F77='-L$libdir'
14280 hardcode_direct_F77=yes
14281 hardcode_minus_L_F77=yes
14282 hardcode_shlibpath_var_F77=no
14286 case $host_vendor in
14288 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14289 hardcode_direct_F77=yes # is this really true???
14292 ## LD is ld it makes a PLAMLIB
14293 ## CC just makes a GrossModule.
14294 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14295 reload_cmds_F77='$CC -r -o $output$reload_objs'
14296 hardcode_direct_F77=no
14299 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14300 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14303 runpath_var='LD_RUN_PATH'
14304 hardcode_shlibpath_var_F77=no
14308 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14309 hardcode_shlibpath_var_F77=no
14310 export_dynamic_flag_spec_F77='-Bexport'
14314 if test -d /usr/nec; then
14315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14316 hardcode_shlibpath_var_F77=no
14317 runpath_var=LD_RUN_PATH
14318 hardcode_runpath_var=yes
14324 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14325 hardcode_direct_F77=yes
14326 hardcode_minus_L_F77=no
14327 hardcode_shlibpath_var_F77=no
14328 hardcode_runpath_var=yes
14329 runpath_var=LD_RUN_PATH
14332 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14333 no_undefined_flag_F77='${wl}-z ${wl}text'
14334 if test "$GCC" = yes; then
14335 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14337 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 runpath_var='LD_RUN_PATH'
14340 hardcode_shlibpath_var_F77=no
14344 no_undefined_flag_F77=' -z text'
14345 # $CC -shared without GNU ld will not create a library from C++
14346 # object files and a static libstdc++, better avoid it by now
14347 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14348 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14350 hardcode_libdir_flag_spec_F77=
14351 hardcode_shlibpath_var_F77=no
14352 runpath_var='LD_RUN_PATH'
14356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14357 hardcode_libdir_flag_spec_F77='-L$libdir'
14358 hardcode_shlibpath_var_F77=no
14367 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14368 echo "${ECHO_T}$ld_shlibs_F77" >&6
14369 test "$ld_shlibs_F77" = no && can_build_shared=no
14371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14372 if test "$GCC" = yes; then
14373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14377 # Do we need to explicitly link libc?
14379 case "x$archive_cmds_need_lc_F77" in
14381 # Assume -lc should be added
14382 archive_cmds_need_lc_F77=yes
14384 if test "$enable_shared" = yes && test "$GCC" = yes; then
14385 case $archive_cmds_F77 in
14387 # FIXME: we may have to deal with multi-command sequences.
14390 # Test whether the compiler implicitly links with -lc since on some
14391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14392 # to ld, don't add -lc before -lgcc.
14393 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14394 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } 2>conftest.err; then
14405 libobjs=conftest.$ac_objext
14407 wl=$lt_prog_compiler_wl_F77
14413 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14414 allow_undefined_flag_F77=
14415 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14416 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }
14421 archive_cmds_need_lc_F77=no
14423 archive_cmds_need_lc_F77=yes
14425 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14427 cat conftest.err 1>&5
14430 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14431 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14438 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14439 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14440 library_names_spec=
14441 libname_spec='lib$name'
14445 postuninstall_cmds=
14449 shlibpath_overrides_runpath=unknown
14451 dynamic_linker="$host_os ld.so"
14452 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14453 if test "$GCC" = yes; then
14454 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14455 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14456 # if the path contains ";" then we assume it to be the separator
14457 # otherwise default to the standard path separator (i.e. ":") - it is
14458 # assumed that no part of a normal pathname contains ";" but that should
14459 # okay in the real world where ";" in dirpaths is itself problematic.
14460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14462 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14465 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14467 need_lib_prefix=unknown
14468 hardcode_into_libs=no
14470 # when you set need_version to no, make sure it does not cause -set_version
14471 # flags to be left without arguments
14472 need_version=unknown
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14478 shlibpath_var=LIBPATH
14480 # AIX 3 has no versioning support, so we append a major version to the name.
14481 soname_spec='${libname}${release}${shared_ext}$major'
14488 hardcode_into_libs=yes
14489 if test "$host_cpu" = ia64; then
14490 # AIX 5 supports IA64
14491 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14492 shlibpath_var=LD_LIBRARY_PATH
14494 # With GCC up to 2.95.x, collect2 would create an import file
14495 # for dependence libraries. The import file would start with
14496 # the line `#! .'. This would cause the generated library to
14497 # depend on `.', always an invalid library. This was fixed in
14498 # development snapshots of GCC prior to 3.0.
14500 aix4 | aix4.[01] | aix4.[01].*)
14501 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14503 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14506 can_build_shared=no
14510 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14511 # soname into executable. Probably we can add versioning support to
14512 # collect2, so additional links can be useful in future.
14513 if test "$aix_use_runtimelinking" = yes; then
14514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14515 # instead of lib<name>.a to let people know that these are not
14516 # typical AIX shared libraries.
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 # We preserve .a as extension for shared libraries through AIX4.2
14520 # and later when we are not doing run time linking.
14521 library_names_spec='${libname}${release}.a $libname.a'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14524 shlibpath_var=LIBPATH
14529 library_names_spec='$libname.ixlibrary $libname.a'
14530 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14531 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'
14535 library_names_spec='${libname}${shared_ext}'
14536 dynamic_linker="$host_os ld.so"
14537 shlibpath_var=LIBRARY_PATH
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14549 # the default ld.so.conf also contains /usr/contrib/lib and
14550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14551 # libtool to hard-code these into programs
14554 cygwin* | mingw* | pw32*)
14555 version_type=windows
14560 case $GCC,$host_os in
14561 yes,cygwin* | yes,mingw* | yes,pw32*)
14562 library_names_spec='$libname.dll.a'
14563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14564 postinstall_cmds='base_file=`basename \${file}`~
14565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14566 dldir=$destdir/`dirname \$dlpath`~
14567 test -d \$dldir || mkdir -p \$dldir~
14568 $install_prog $dir/$dlname \$dldir/$dlname'
14569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14570 dlpath=$dir/\$dldll~
14572 shlibpath_overrides_runpath=yes
14576 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14577 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14578 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14581 # MinGW DLLs use traditional 'lib' prefix
14582 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14583 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14584 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14585 # It is most probably a Windows format PATH printed by
14586 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14587 # path with ; separators, and with drive letters. We can handle the
14588 # drive letters (cygwin fileutils understands them), so leave them,
14589 # especially as we might pass files found there to a mingw objdump,
14590 # which wouldn't understand a cygwinified path. Ahh.
14591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14597 # pw32 DLLs use 'pw' prefix rather than 'lib'
14598 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14604 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14607 dynamic_linker='Win32 ld.exe'
14608 # FIXME: first we should search . and the directory the executable is in
14612 darwin* | rhapsody*)
14613 dynamic_linker="$host_os dyld"
14614 version_type=darwin
14617 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14618 soname_spec='${libname}${release}${major}$shared_ext'
14619 shlibpath_overrides_runpath=yes
14620 shlibpath_var=DYLD_LIBRARY_PATH
14621 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14622 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14623 if test "$GCC" = yes; then
14624 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"`
14626 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 shlibpath_var=LD_LIBRARY_PATH
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 shlibpath_var=LD_LIBRARY_PATH
14651 shlibpath_overrides_runpath=no
14652 hardcode_into_libs=yes
14653 dynamic_linker='GNU ld.so'
14657 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14658 version_type=freebsd-$objformat
14659 case $version_type in
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14670 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes
14675 freebsd3.01* | freebsdelf3.01*)
14676 shlibpath_overrides_runpath=yes
14677 hardcode_into_libs=yes
14680 shlibpath_overrides_runpath=no
14681 hardcode_into_libs=yes
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 hardcode_into_libs=yes
14696 hpux9* | hpux10* | hpux11*)
14697 # Give a soname corresponding to the major version so that dld.sl refuses to
14698 # link against other versions.
14702 case "$host_cpu" in
14705 hardcode_into_libs=yes
14706 dynamic_linker="$host_os dld.so"
14707 shlibpath_var=LD_LIBRARY_PATH
14708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 if test "X$HPUX_IA64_MODE" = X32; then
14712 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14714 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14720 hardcode_into_libs=yes
14721 dynamic_linker="$host_os dld.sl"
14722 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14731 dynamic_linker="$host_os dld.sl"
14732 shlibpath_var=SHLIB_PATH
14733 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 soname_spec='${libname}${release}${shared_ext}$major'
14738 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14739 postinstall_cmds='chmod 555 $lib'
14742 irix5* | irix6* | nonstopux*)
14744 nonstopux*) version_type=nonstopux ;;
14746 if test "$lt_cv_prog_gnu_ld" = yes; then
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14757 irix5* | nonstopux*)
14758 libsuff= shlibsuff=
14761 case $LD in # libtool.m4 will add one of these switches to LD
14762 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14763 libsuff= shlibsuff= libmagic=32-bit;;
14764 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14765 libsuff=32 shlibsuff=N32 libmagic=N32;;
14766 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14767 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14768 *) libsuff= shlibsuff= libmagic=never-match;;
14772 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14773 shlibpath_overrides_runpath=no
14774 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14775 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14776 hardcode_into_libs=yes
14779 # No shared lib support for Linux oldld, aout, or coff.
14780 linux*oldld* | linux*aout* | linux*coff*)
14784 # This must be Linux ELF.
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 shlibpath_overrides_runpath=no
14794 # This implies no fast_install, which is unacceptable.
14795 # Some rework will be needed to allow for fast_install
14796 # before this can be enabled.
14797 hardcode_into_libs=yes
14799 # find out which ABI we are using
14801 case "$host_cpu" in
14802 x86_64*|s390x*|powerpc64*)
14803 echo '#line 14803 "configure"' > conftest.$ac_ext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; then
14809 case `/usr/bin/file conftest.$ac_objext` in
14812 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14820 # Append ld.so.conf contents to the search path
14821 if test -f /etc/ld.so.conf; then
14822 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14823 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14826 # We used to test for /lib/ld.so.1 and disable shared libraries on
14827 # powerpc, because MkLinux only supported shared libraries with the
14828 # GNU dynamic linker. Since this was broken with cross compilers,
14829 # most powerpc-linux boxes support dynamic linking these days and
14830 # people can always --disable-shared, the test was removed, and we
14831 # assume the GNU/Linux dynamic linker is in use.
14832 dynamic_linker='GNU/Linux ld.so'
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 shlibpath_overrides_runpath=no
14843 hardcode_into_libs=yes
14844 dynamic_linker='GNU ld.so'
14851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14854 dynamic_linker='NetBSD (a.out) ld.so'
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 dynamic_linker='NetBSD ld.elf_so'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14862 hardcode_into_libs=yes
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=yes
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=yes
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14891 openbsd2.[89] | openbsd2.[89].*)
14892 shlibpath_overrides_runpath=no
14895 shlibpath_overrides_runpath=yes
14899 shlibpath_overrides_runpath=yes
14904 libname_spec='$name'
14907 library_names_spec='$libname${shared_ext} $libname.a'
14908 dynamic_linker='OS/2 ld.exe'
14909 shlibpath_var=LIBPATH
14912 osf3* | osf4* | osf5*)
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 shlibpath_var=LD_LIBRARY_PATH
14919 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14920 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 shlibpath_var=LD_LIBRARY_PATH
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 shlibpath_overrides_runpath=yes
14938 hardcode_into_libs=yes
14939 # ldd complains unless libraries are executable
14940 postinstall_cmds='chmod +x $lib'
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14946 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=yes
14949 if test "$with_gnu_ld" = yes; then
14955 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 case $host_vendor in
14962 shlibpath_overrides_runpath=no
14964 export_dynamic_flag_spec='${wl}-Blargedynsym'
14965 runpath_var=LD_RUN_PATH
14973 shlibpath_overrides_runpath=no
14974 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14980 if test -d /usr/nec ;then
14982 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14983 soname_spec='$libname${shared_ext}.$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 shlibpath_var=LD_LIBRARY_PATH
14999 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15000 echo "${ECHO_T}$dynamic_linker" >&6
15001 test "$dynamic_linker" = no && can_build_shared=no
15003 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15004 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15005 hardcode_action_F77=
15006 if test -n "$hardcode_libdir_flag_spec_F77" || \
15007 test -n "$runpath_var F77" || \
15008 test "X$hardcode_automatic_F77"="Xyes" ; then
15010 # We can hardcode non-existant directories.
15011 if test "$hardcode_direct_F77" != no &&
15012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15013 # have to relink, otherwise we might link with an installed library
15014 # when we should be linking with a yet-to-be-installed one
15015 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15016 test "$hardcode_minus_L_F77" != no; then
15017 # Linking always hardcodes the temporary library directory.
15018 hardcode_action_F77=relink
15020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15021 hardcode_action_F77=immediate
15024 # We cannot hardcode anything, or else we can only hardcode existing
15026 hardcode_action_F77=unsupported
15028 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15029 echo "${ECHO_T}$hardcode_action_F77" >&6
15031 if test "$hardcode_action_F77" = relink; then
15032 # Fast installation is not supported
15033 enable_fast_install=no
15034 elif test "$shlibpath_overrides_runpath" = yes ||
15035 test "$enable_shared" = no; then
15036 # Fast installation is not necessary
15037 enable_fast_install=needless
15042 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15043 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15044 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15045 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15046 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15047 echo "$as_me:$LINENO: result: yes" >&5
15048 echo "${ECHO_T}yes" >&6
15050 # FIXME - insert some real tests, host_os isn't really good enough
15053 if test -n "$STRIP" ; then
15054 striplib="$STRIP -x"
15055 echo "$as_me:$LINENO: result: yes" >&5
15056 echo "${ECHO_T}yes" >&6
15058 echo "$as_me:$LINENO: result: no" >&5
15059 echo "${ECHO_T}no" >&6
15063 echo "$as_me:$LINENO: result: no" >&5
15064 echo "${ECHO_T}no" >&6
15071 # The else clause should only fire when bootstrapping the
15072 # libtool distribution, otherwise you forgot to ship ltmain.sh
15073 # with your package, and you will get complaints that there are
15074 # no rules to generate ltmain.sh.
15075 if test -f "$ltmain"; then
15076 # See if we are running on zsh, and set the options which allow our commands through
15077 # without removal of \ escapes.
15078 if test -n "${ZSH_VERSION+set}" ; then
15079 setopt NO_GLOB_SUBST
15081 # Now quote all the things that may contain metacharacters while being
15082 # careful not to overquote the AC_SUBSTed values. We take copies of the
15083 # variables and quote the copies for generation of the libtool script.
15084 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15086 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15087 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15088 deplibs_check_method reload_flag reload_cmds need_locks \
15089 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15090 lt_cv_sys_global_symbol_to_c_name_address \
15091 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15092 old_postinstall_cmds old_postuninstall_cmds \
15096 lt_prog_compiler_wl_F77 \
15097 lt_prog_compiler_pic_F77 \
15098 lt_prog_compiler_static_F77 \
15099 lt_prog_compiler_no_builtin_flag_F77 \
15100 export_dynamic_flag_spec_F77 \
15101 thread_safe_flag_spec_F77 \
15102 whole_archive_flag_spec_F77 \
15103 enable_shared_with_static_runtimes_F77 \
15104 old_archive_cmds_F77 \
15105 old_archive_from_new_cmds_F77 \
15106 predep_objects_F77 \
15107 postdep_objects_F77 \
15110 compiler_lib_search_path_F77 \
15112 archive_expsym_cmds_F77 \
15113 postinstall_cmds_F77 \
15114 postuninstall_cmds_F77 \
15115 old_archive_from_expsyms_cmds_F77 \
15116 allow_undefined_flag_F77 \
15117 no_undefined_flag_F77 \
15118 export_symbols_cmds_F77 \
15119 hardcode_libdir_flag_spec_F77 \
15120 hardcode_libdir_flag_spec_ld_F77 \
15121 hardcode_libdir_separator_F77 \
15122 hardcode_automatic_F77 \
15124 module_expsym_cmds_F77 \
15125 lt_cv_prog_compiler_c_o_F77 \
15126 exclude_expsyms_F77 \
15127 include_expsyms_F77; do
15130 old_archive_cmds_F77 | \
15131 old_archive_from_new_cmds_F77 | \
15132 archive_cmds_F77 | \
15133 archive_expsym_cmds_F77 | \
15134 module_cmds_F77 | \
15135 module_expsym_cmds_F77 | \
15136 old_archive_from_expsyms_cmds_F77 | \
15137 export_symbols_cmds_F77 | \
15138 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15139 postinstall_cmds | postuninstall_cmds | \
15140 old_postinstall_cmds | old_postuninstall_cmds | \
15141 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15142 # Double-quote double-evaled strings.
15143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15152 *'\$0 --fallback-echo"')
15153 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15159 cat <<__EOF__ >> "$cfgfile"
15160 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15164 # Shell to use when invoking shell scripts.
15167 # Whether or not to build shared libraries.
15168 build_libtool_libs=$enable_shared
15170 # Whether or not to build static libraries.
15171 build_old_libs=$enable_static
15173 # Whether or not to add -lc for building shared libraries.
15174 build_libtool_need_lc=$archive_cmds_need_lc_F77
15176 # Whether or not to disallow shared libs when runtime libs are static
15177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15179 # Whether or not to optimize for fast installation.
15180 fast_install=$enable_fast_install
15183 host_alias=$host_alias
15186 # An echo program that does not interpret backslashes.
15191 AR_FLAGS=$lt_AR_FLAGS
15196 # A language-specific compiler.
15197 CC=$lt_compiler_F77
15199 # Is the compiler the GNU C compiler?
15205 # The linker used to build libraries.
15208 # Whether we need hard or soft links.
15211 # A BSD-compatible nm program.
15214 # A symbol stripping program
15217 # Used to examine libraries when file_magic_cmd begins "file"
15218 MAGIC_CMD=$MAGIC_CMD
15220 # Used on cygwin: DLL creation program.
15223 # Used on cygwin: object dumper.
15226 # Used on cygwin: assembler.
15229 # The name of the directory that contains temporary libtool files.
15232 # How to create reloadable object files.
15233 reload_flag=$lt_reload_flag
15234 reload_cmds=$lt_reload_cmds
15236 # How to pass a linker flag through the compiler.
15237 wl=$lt_lt_prog_compiler_wl_F77
15239 # Object file suffix (normally "o").
15240 objext="$ac_objext"
15242 # Old archive suffix (normally "a").
15245 # Shared library suffix (normally ".so").
15246 shrext_cmds='$shrext_cmds'
15248 # Executable file suffix (normally "").
15251 # Additional compiler flags for building library objects.
15252 pic_flag=$lt_lt_prog_compiler_pic_F77
15255 # What is the maximum length of a command?
15256 max_cmd_len=$lt_cv_sys_max_cmd_len
15258 # Does compiler simultaneously support -c and -o options?
15259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15261 # Must we lock files when doing compilation ?
15262 need_locks=$lt_need_locks
15264 # Do we need the lib prefix for modules?
15265 need_lib_prefix=$need_lib_prefix
15267 # Do we need a version for libraries?
15268 need_version=$need_version
15270 # Whether dlopen is supported.
15271 dlopen_support=$enable_dlopen
15273 # Whether dlopen of programs is supported.
15274 dlopen_self=$enable_dlopen_self
15276 # Whether dlopen of statically linked programs is supported.
15277 dlopen_self_static=$enable_dlopen_self_static
15279 # Compiler flag to prevent dynamic linking.
15280 link_static_flag=$lt_lt_prog_compiler_static_F77
15282 # Compiler flag to turn off builtin functions.
15283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15285 # Compiler flag to allow reflexive dlopens.
15286 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15288 # Compiler flag to generate shared objects directly from archives.
15289 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15291 # Compiler flag to generate thread-safe objects.
15292 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15294 # Library versioning type.
15295 version_type=$version_type
15297 # Format of library name prefix.
15298 libname_spec=$lt_libname_spec
15300 # List of archive names. First name is the real one, the rest are links.
15301 # The last name is the one that the linker finds with -lNAME.
15302 library_names_spec=$lt_library_names_spec
15304 # The coded name of the library, if different from the real name.
15305 soname_spec=$lt_soname_spec
15307 # Commands used to build and install an old-style archive.
15309 old_archive_cmds=$lt_old_archive_cmds_F77
15310 old_postinstall_cmds=$lt_old_postinstall_cmds
15311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15313 # Create an old-style archive from a shared archive.
15314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15316 # Create a temporary old-style archive to link instead of a shared archive.
15317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15319 # Commands used to build and install a shared archive.
15320 archive_cmds=$lt_archive_cmds_F77
15321 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15322 postinstall_cmds=$lt_postinstall_cmds
15323 postuninstall_cmds=$lt_postuninstall_cmds
15325 # Commands used to build a loadable module (assumed same as above if empty)
15326 module_cmds=$lt_module_cmds_F77
15327 module_expsym_cmds=$lt_module_expsym_cmds_F77
15329 # Commands to strip libraries.
15330 old_striplib=$lt_old_striplib
15331 striplib=$lt_striplib
15333 # Dependencies to place before the objects being linked to create a
15335 predep_objects=$lt_predep_objects_F77
15337 # Dependencies to place after the objects being linked to create a
15339 postdep_objects=$lt_postdep_objects_F77
15341 # Dependencies to place before the objects being linked to create a
15343 predeps=$lt_predeps_F77
15345 # Dependencies to place after the objects being linked to create a
15347 postdeps=$lt_postdeps_F77
15349 # The library search path used internally by the compiler when linking
15350 # a shared library.
15351 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15353 # Method to check whether dependent libraries are shared objects.
15354 deplibs_check_method=$lt_deplibs_check_method
15356 # Command to use when deplibs_check_method == file_magic.
15357 file_magic_cmd=$lt_file_magic_cmd
15359 # Flag that allows shared libraries with undefined symbols to be built.
15360 allow_undefined_flag=$lt_allow_undefined_flag_F77
15362 # Flag that forces no undefined symbols.
15363 no_undefined_flag=$lt_no_undefined_flag_F77
15365 # Commands used to finish a libtool library installation in a directory.
15366 finish_cmds=$lt_finish_cmds
15368 # Same as above, but a single script fragment to be evaled but not shown.
15369 finish_eval=$lt_finish_eval
15371 # Take the output of nm and produce a listing of raw symbols and C names.
15372 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15374 # Transform the output of nm in a proper C declaration
15375 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15377 # Transform the output of nm in a C name address pair
15378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15380 # This is the shared library runtime path variable.
15381 runpath_var=$runpath_var
15383 # This is the shared library path variable.
15384 shlibpath_var=$shlibpath_var
15386 # Is shlibpath searched before the hard-coded library search path?
15387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15389 # How to hardcode a shared library path into an executable.
15390 hardcode_action=$hardcode_action_F77
15392 # Whether we should hardcode library paths into libraries.
15393 hardcode_into_libs=$hardcode_into_libs
15395 # Flag to hardcode \$libdir into a binary during linking.
15396 # This must work even if \$libdir does not exist.
15397 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15399 # If ld is used when linking, flag to hardcode \$libdir into
15400 # a binary during linking. This must work even if \$libdir does
15402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15404 # Whether we need a single -rpath flag with a separated argument.
15405 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15407 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15408 # resulting binary.
15409 hardcode_direct=$hardcode_direct_F77
15411 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15412 # resulting binary.
15413 hardcode_minus_L=$hardcode_minus_L_F77
15415 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15416 # the resulting binary.
15417 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15419 # Set to yes if building a shared library automatically hardcodes DIR into the library
15420 # and all subsequent libraries and executables linked against it.
15421 hardcode_automatic=$hardcode_automatic_F77
15423 # Variables whose values should be saved in libtool wrapper scripts and
15424 # restored at relink time.
15425 variables_saved_for_relink="$variables_saved_for_relink"
15427 # Whether libtool must link a program against all its dependency libraries.
15428 link_all_deplibs=$link_all_deplibs_F77
15430 # Compile-time system search path for libraries
15431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15433 # Run-time system search path for libraries
15434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15436 # Fix the shell variable \$srcfile for the compiler.
15437 fix_srcfile_path="$fix_srcfile_path_F77"
15439 # Set to yes if exported symbols are required.
15440 always_export_symbols=$always_export_symbols_F77
15442 # The commands to list exported symbols.
15443 export_symbols_cmds=$lt_export_symbols_cmds_F77
15445 # The commands to extract the exported symbol list from a shared archive.
15446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15448 # Symbols that should not be listed in the preloaded symbols.
15449 exclude_expsyms=$lt_exclude_expsyms_F77
15451 # Symbols that must always be exported.
15452 include_expsyms=$lt_include_expsyms_F77
15454 # ### END LIBTOOL TAG CONFIG: $tagname
15460 # If there is no Makefile yet, we rely on a make rule to execute
15461 # `config.status --recheck' to rerun these tests and create the
15462 # libtool script then.
15463 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15464 if test -f "$ltmain_in"; then
15465 test -f Makefile && make "$ltmain"
15471 ac_cpp='$CPP $CPPFLAGS'
15472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15484 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15488 # Source file extension for Java test sources.
15491 # Object file extension for compiled Java test sources.
15495 # Code to be used in simple compile tests
15496 lt_simple_compile_test_code="class foo {}\n"
15498 # Code to be used in simple link tests
15499 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15503 # If no C compiler was specified, use CC.
15506 # Allow CC to be a program name with arguments.
15510 # Allow CC to be a program name with arguments.
15516 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15517 archive_cmds_need_lc_GCJ=no
15520 lt_prog_compiler_no_builtin_flag_GCJ=
15522 if test "$GCC" = yes; then
15523 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15526 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15527 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 lt_cv_prog_compiler_rtti_exceptions=no
15532 ac_outfile=conftest.$ac_objext
15533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15534 lt_compiler_flag="-fno-rtti -fno-exceptions"
15535 # Insert the option either (1) after the last *FLAGS variable, or
15536 # (2) before a word containing "conftest.", or (3) at the end.
15537 # Note that $ac_compile itself does not contain backslashes and begins
15538 # with a dollar sign (not a hyphen), so the echo should work correctly.
15539 # The option is referenced via a variable to avoid confusing sed.
15540 lt_compile=`echo "$ac_compile" | $SED \
15541 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15543 -e 's:$: $lt_compiler_flag:'`
15544 (eval echo "\"\$as_me:15544: $lt_compile\"" >&5)
15545 (eval "$lt_compile" 2>conftest.err)
15547 cat conftest.err >&5
15548 echo "$as_me:15548: \$? = $ac_status" >&5
15549 if (exit $ac_status) && test -s "$ac_outfile"; then
15550 # The compiler can only warn and ignore the option if not recognized
15551 # So say no if there are warnings
15552 if test ! -s conftest.err; then
15553 lt_cv_prog_compiler_rtti_exceptions=yes
15559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15560 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15563 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15570 lt_prog_compiler_wl_GCJ=
15571 lt_prog_compiler_pic_GCJ=
15572 lt_prog_compiler_static_GCJ=
15574 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15577 if test "$GCC" = yes; then
15578 lt_prog_compiler_wl_GCJ='-Wl,'
15579 lt_prog_compiler_static_GCJ='-static'
15583 # All AIX code is PIC.
15584 if test "$host_cpu" = ia64; then
15585 # AIX 5 now supports IA64 processor
15586 lt_prog_compiler_static_GCJ='-Bstatic'
15591 # FIXME: we need at least 68020 code to build shared libraries, but
15592 # adding the `-m68020' flag to GCC prevents building anything better,
15594 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15597 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15598 # PIC is the default for these OSes.
15601 mingw* | pw32* | os2*)
15602 # This hack is so that the source file can tell whether it is being
15603 # built for inclusion in a dll (and should export symbols for example).
15604 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15607 darwin* | rhapsody*)
15608 # PIC is the default on this platform
15609 # Common symbols not allowed in MH_DYLIB files
15610 lt_prog_compiler_pic_GCJ='-fno-common'
15614 # Just because we use GCC doesn't mean we suddenly get shared libraries
15615 # on systems that don't support them.
15616 lt_prog_compiler_can_build_shared_GCJ=no
15621 if test -d /usr/nec; then
15622 lt_prog_compiler_pic_GCJ=-Kconform_pic
15627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15628 # not for PA HP-UX.
15629 case "$host_cpu" in
15634 lt_prog_compiler_pic_GCJ='-fPIC'
15640 lt_prog_compiler_pic_GCJ='-fPIC'
15644 # PORTME Check for flag to pass linker flags through the system compiler.
15647 lt_prog_compiler_wl_GCJ='-Wl,'
15648 if test "$host_cpu" = ia64; then
15649 # AIX 5 now supports IA64 processor
15650 lt_prog_compiler_static_GCJ='-Bstatic'
15652 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15656 mingw* | pw32* | os2*)
15657 # This hack is so that the source file can tell whether it is being
15658 # built for inclusion in a dll (and should export symbols for example).
15659 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15662 hpux9* | hpux10* | hpux11*)
15663 lt_prog_compiler_wl_GCJ='-Wl,'
15664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15665 # not for PA HP-UX.
15666 case "$host_cpu" in
15671 lt_prog_compiler_pic_GCJ='+Z'
15674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15675 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15678 irix5* | irix6* | nonstopux*)
15679 lt_prog_compiler_wl_GCJ='-Wl,'
15680 # PIC (with -KPIC) is the default.
15681 lt_prog_compiler_static_GCJ='-non_shared'
15685 lt_prog_compiler_pic_GCJ='-KPIC'
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15692 lt_prog_compiler_wl_GCJ='-Wl,'
15693 lt_prog_compiler_pic_GCJ='-KPIC'
15694 lt_prog_compiler_static_GCJ='-static'
15697 lt_prog_compiler_wl_GCJ='-Wl,'
15698 # All Alpha code is PIC.
15699 lt_prog_compiler_static_GCJ='-non_shared'
15704 osf3* | osf4* | osf5*)
15705 lt_prog_compiler_wl_GCJ='-Wl,'
15706 # All OSF/1 code is PIC.
15707 lt_prog_compiler_static_GCJ='-non_shared'
15711 lt_prog_compiler_pic_GCJ='-Kpic'
15712 lt_prog_compiler_static_GCJ='-dn'
15716 lt_prog_compiler_wl_GCJ='-Wl,'
15717 lt_prog_compiler_pic_GCJ='-KPIC'
15718 lt_prog_compiler_static_GCJ='-Bstatic'
15722 lt_prog_compiler_wl_GCJ='-Qoption ld '
15723 lt_prog_compiler_pic_GCJ='-PIC'
15724 lt_prog_compiler_static_GCJ='-Bstatic'
15727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15728 lt_prog_compiler_wl_GCJ='-Wl,'
15729 lt_prog_compiler_pic_GCJ='-KPIC'
15730 lt_prog_compiler_static_GCJ='-Bstatic'
15734 if test -d /usr/nec ;then
15735 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15736 lt_prog_compiler_static_GCJ='-Bstatic'
15741 lt_prog_compiler_pic_GCJ='-pic'
15742 lt_prog_compiler_static_GCJ='-Bstatic'
15746 lt_prog_compiler_can_build_shared_GCJ=no
15751 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15752 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15755 # Check to make sure the PIC flag actually works.
15757 if test -n "$lt_prog_compiler_pic_GCJ"; then
15759 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15760 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15761 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 lt_prog_compiler_pic_works_GCJ=no
15765 ac_outfile=conftest.$ac_objext
15766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15767 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15768 # Insert the option either (1) after the last *FLAGS variable, or
15769 # (2) before a word containing "conftest.", or (3) at the end.
15770 # Note that $ac_compile itself does not contain backslashes and begins
15771 # with a dollar sign (not a hyphen), so the echo should work correctly.
15772 # The option is referenced via a variable to avoid confusing sed.
15773 lt_compile=`echo "$ac_compile" | $SED \
15774 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15776 -e 's:$: $lt_compiler_flag:'`
15777 (eval echo "\"\$as_me:15777: $lt_compile\"" >&5)
15778 (eval "$lt_compile" 2>conftest.err)
15780 cat conftest.err >&5
15781 echo "$as_me:15781: \$? = $ac_status" >&5
15782 if (exit $ac_status) && test -s "$ac_outfile"; then
15783 # The compiler can only warn and ignore the option if not recognized
15784 # So say no if there are warnings
15785 if test ! -s conftest.err; then
15786 lt_prog_compiler_pic_works_GCJ=yes
15792 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15793 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15795 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15796 case $lt_prog_compiler_pic_GCJ in
15798 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15801 lt_prog_compiler_pic_GCJ=
15802 lt_prog_compiler_can_build_shared_GCJ=no
15807 # For platforms which do not support PIC, -DPIC is meaningless:
15809 lt_prog_compiler_pic_GCJ=
15812 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15816 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15818 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 lt_cv_prog_compiler_c_o_GCJ=no
15822 $rm -r conftest 2>/dev/null
15826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15828 lt_compiler_flag="-o out/conftest2.$ac_objext"
15829 # Insert the option either (1) after the last *FLAGS variable, or
15830 # (2) before a word containing "conftest.", or (3) at the end.
15831 # Note that $ac_compile itself does not contain backslashes and begins
15832 # with a dollar sign (not a hyphen), so the echo should work correctly.
15833 lt_compile=`echo "$ac_compile" | $SED \
15834 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15836 -e 's:$: $lt_compiler_flag:'`
15837 (eval echo "\"\$as_me:15837: $lt_compile\"" >&5)
15838 (eval "$lt_compile" 2>out/conftest.err)
15840 cat out/conftest.err >&5
15841 echo "$as_me:15841: \$? = $ac_status" >&5
15842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15844 # The compiler can only warn and ignore the option if not recognized
15845 # So say no if there are warnings
15846 if test ! -s out/conftest.err; then
15847 lt_cv_prog_compiler_c_o_GCJ=yes
15852 # SGI C++ compiler will create directory out/ii_files/ for
15853 # template instantiation
15854 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15855 $rm out/* && rmdir out
15861 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15865 hard_links="nottested"
15866 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15867 # do not overwrite the value of need_locks provided by the user
15868 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15874 ln conftest.a conftest.b 2>&5 || hard_links=no
15875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15876 echo "$as_me:$LINENO: result: $hard_links" >&5
15877 echo "${ECHO_T}$hard_links" >&6
15878 if test "$hard_links" = no; then
15879 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15887 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15891 allow_undefined_flag_GCJ=
15892 enable_shared_with_static_runtimes_GCJ=no
15894 archive_expsym_cmds_GCJ=
15895 old_archive_From_new_cmds_GCJ=
15896 old_archive_from_expsyms_cmds_GCJ=
15897 export_dynamic_flag_spec_GCJ=
15898 whole_archive_flag_spec_GCJ=
15899 thread_safe_flag_spec_GCJ=
15900 hardcode_libdir_flag_spec_GCJ=
15901 hardcode_libdir_flag_spec_ld_GCJ=
15902 hardcode_libdir_separator_GCJ=
15903 hardcode_direct_GCJ=no
15904 hardcode_minus_L_GCJ=no
15905 hardcode_shlibpath_var_GCJ=unsupported
15906 link_all_deplibs_GCJ=unknown
15907 hardcode_automatic_GCJ=no
15909 module_expsym_cmds_GCJ=
15910 always_export_symbols_GCJ=no
15911 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15912 # include_expsyms should be a list of space-separated symbols to be *always*
15913 # included in the symbol list
15914 include_expsyms_GCJ=
15915 # exclude_expsyms can be an extended regexp of symbols to exclude
15916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15918 # as well as any symbol that contains `d'.
15919 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15921 # platforms (ab)use it in PIC code, but their linkers get confused if
15922 # the symbol is explicitly referenced. Since portable code cannot
15923 # rely on this symbol name, it's probably fine to never include it in
15924 # preloaded symbol tables.
15925 extract_expsyms_cmds=
15928 cygwin* | mingw* | pw32*)
15929 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15930 # When not using gcc, we currently assume that we are using
15931 # Microsoft Visual C++.
15932 if test "$GCC" != yes; then
15942 if test "$with_gnu_ld" = yes; then
15943 # If archive_cmds runs LD, not CC, wlarc should be empty
15946 # See if GNU ld supports shared libraries.
15948 aix3* | aix4* | aix5*)
15949 # On AIX/PPC, the GNU linker is very broken
15950 if test "$host_cpu" != ia64; then
15954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15955 *** to be unable to reliably create shared libraries on AIX.
15956 *** Therefore, libtool is disabling shared libraries support. If you
15957 *** really care for shared libraries, you may want to modify your PATH
15958 *** so that a non-GNU linker is found, and then restart.
15965 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)'
15966 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15967 hardcode_minus_L_GCJ=yes
15969 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15970 # that the semantics of dynamic libraries on AmigaOS, at least up
15971 # to version 4, is to share data among multiple programs linked
15972 # with the same dynamic library. Since this doesn't match the
15973 # behavior of shared libraries on other platforms, we can't use
15979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15980 allow_undefined_flag_GCJ=unsupported
15981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15982 # support --undefined. This deserves some investigation. FIXME
15983 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989 cygwin* | mingw* | pw32*)
15990 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15991 # as there is no search path for DLLs.
15992 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15993 allow_undefined_flag_GCJ=unsupported
15994 always_export_symbols_GCJ=no
15995 enable_shared_with_static_runtimes_GCJ=yes
15996 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15998 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16000 # If the export-symbols file already is a .def file (1st line
16001 # is EXPORTS), use it as is; otherwise, prepend...
16002 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16003 cp $export_symbols $output_objdir/$soname.def;
16005 echo EXPORTS > $output_objdir/$soname.def;
16006 cat $export_symbols >> $output_objdir/$soname.def;
16008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16016 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16019 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16020 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16025 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16030 *** create shared libraries on Solaris systems. Therefore, libtool
16031 *** is disabling shared libraries support. We urge you to upgrade GNU
16032 *** binutils to release 2.9.1 or newer. Another option is to modify
16033 *** your PATH or compiler configuration so that the native linker is
16034 *** used, and then restart.
16037 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16038 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16046 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16048 hardcode_direct_GCJ=yes
16049 hardcode_shlibpath_var_GCJ=no
16053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16054 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16055 archive_cmds_GCJ="$tmp_archive_cmds"
16056 supports_anon_versioning=no
16057 case `$LD -v 2>/dev/null` in
16058 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16059 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16060 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16061 *\ 2.11.*) ;; # other 2.11 versions
16062 *) supports_anon_versioning=yes ;;
16064 if test $supports_anon_versioning = yes; then
16065 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16067 $echo "local: *; };" >> $output_objdir/$libname.ver~
16068 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16070 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16079 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16080 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16087 if test "$ld_shlibs_GCJ" = yes; then
16088 runpath_var=LD_RUN_PATH
16089 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16090 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16091 # ancient GNU ld didn't support --whole-archive et. al.
16092 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16093 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16095 whole_archive_flag_spec_GCJ=
16099 # PORTME fill in a description of your system's linker (not GNU ld)
16102 allow_undefined_flag_GCJ=unsupported
16103 always_export_symbols_GCJ=yes
16104 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'
16105 # Note: this linker hardcodes the directories in LIBPATH if there
16106 # are no directories specified by -L.
16107 hardcode_minus_L_GCJ=yes
16108 if test "$GCC" = yes && test -z "$link_static_flag"; then
16109 # Neither direct hardcoding nor static linking is supported with a
16111 hardcode_direct_GCJ=unsupported
16116 if test "$host_cpu" = ia64; then
16117 # On IA64, the linker does run time linking by default, so we don't
16118 # have to do anything special.
16119 aix_use_runtimelinking=no
16120 exp_sym_flag='-Bexport'
16123 # If we're using GNU nm, then we don't want the "-C" option.
16124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16125 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16126 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'
16128 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'
16130 aix_use_runtimelinking=no
16132 # Test if we are trying to use run time linking or normal
16133 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16134 # need to do runtime linking.
16135 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16136 for ld_flag in $LDFLAGS; do
16137 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16138 aix_use_runtimelinking=yes
16144 exp_sym_flag='-bexport'
16145 no_entry_flag='-bnoentry'
16148 # When large executables or shared objects are built, AIX ld can
16149 # have problems creating the table of contents. If linking a library
16150 # or program results in "error TOC overflow" add -mminimal-toc to
16151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16154 archive_cmds_GCJ=''
16155 hardcode_direct_GCJ=yes
16156 hardcode_libdir_separator_GCJ=':'
16157 link_all_deplibs_GCJ=yes
16159 if test "$GCC" = yes; then
16160 case $host_os in aix4.012|aix4.012.*)
16161 # We only want to do this on AIX 4.2 and lower, the check
16162 # below for broken collect2 doesn't work under 4.3+
16163 collect2name=`${CC} -print-prog-name=collect2`
16164 if test -f "$collect2name" && \
16165 strings "$collect2name" | grep resolve_lib_name >/dev/null
16167 # We have reworked collect2
16168 hardcode_direct_GCJ=yes
16170 # We have old collect2
16171 hardcode_direct_GCJ=unsupported
16172 # It fails to find uninstalled libraries when the uninstalled
16173 # path is not listed in the libpath. Setting hardcode_minus_L
16174 # to unsupported forces relinking
16175 hardcode_minus_L_GCJ=yes
16176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16177 hardcode_libdir_separator_GCJ=
16180 shared_flag='-shared'
16183 if test "$host_cpu" = ia64; then
16184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16185 # chokes on -Wl,-G. The following line is correct:
16188 if test "$aix_use_runtimelinking" = yes; then
16189 shared_flag='${wl}-G'
16191 shared_flag='${wl}-bM:SRE'
16196 # It seems that -bexpall does not export symbols beginning with
16197 # underscore (_), so it is better to generate a list of symbols to export.
16198 always_export_symbols_GCJ=yes
16199 if test "$aix_use_runtimelinking" = yes; then
16200 # Warning - without using the other runtime loading flags (-brtl),
16201 # -berok will link without error, but may produce a broken library.
16202 allow_undefined_flag_GCJ='-berok'
16203 # Determine the default libpath from the value encoded in an empty executable.
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16221 (eval $ac_link) 2>conftest.er1
16223 grep -v '^ *+' conftest.er1 >conftest.err
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_c_werror_flag"
16229 || test ! -s conftest.err'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest$ac_exeext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16244 # Check for a 64-bit object if we didn't find anything.
16245 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; }
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16252 rm -f conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16256 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16257 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"
16259 if test "$host_cpu" = ia64; then
16260 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16261 allow_undefined_flag_GCJ="-z nodefs"
16262 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"
16264 # Determine the default libpath from the value encoded in an empty executable.
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282 (eval $ac_link) 2>conftest.er1
16284 grep -v '^ *+' conftest.er1 >conftest.err
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
16289 { ac_try='test -z "$ac_c_werror_flag"
16290 || test ! -s conftest.err'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest$ac_exeext'
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16305 # Check for a 64-bit object if we didn't find anything.
16306 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; }
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16313 rm -f conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16317 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16318 # Warning - without using the other run time loading flags,
16319 # -berok will link without error, but may produce a broken library.
16320 no_undefined_flag_GCJ=' ${wl}-bernotok'
16321 allow_undefined_flag_GCJ=' ${wl}-berok'
16322 # -bexpall does not export symbols beginning with underscore (_)
16323 always_export_symbols_GCJ=yes
16324 # Exported symbols can be pulled into shared objects from archives
16325 whole_archive_flag_spec_GCJ=' '
16326 archive_cmds_need_lc_GCJ=yes
16327 # This is similar to how AIX traditionally builds it's shared libraries.
16328 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'
16334 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)'
16335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16336 hardcode_minus_L_GCJ=yes
16337 # see comment about different semantics on the GNU ld section
16342 export_dynamic_flag_spec_GCJ=-rdynamic
16345 cygwin* | mingw* | pw32*)
16346 # When not using gcc, we currently assume that we are using
16347 # Microsoft Visual C++.
16348 # hardcode_libdir_flag_spec is actually meaningless, as there is
16349 # no search path for DLLs.
16350 hardcode_libdir_flag_spec_GCJ=' '
16351 allow_undefined_flag_GCJ=unsupported
16352 # Tell ltmain to make .lib files, not .a files.
16354 # Tell ltmain to make .dll files, not .so files.
16356 # FIXME: Setting linknames here is a bad hack.
16357 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16358 # The linker will automatically build a .lib file if we build a DLL.
16359 old_archive_From_new_cmds_GCJ='true'
16360 # FIXME: Should let the user specify the lib program.
16361 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16362 fix_srcfile_path='`cygpath -w "$srcfile"`'
16363 enable_shared_with_static_runtimes_GCJ=yes
16366 darwin* | rhapsody*)
16367 if test "$GXX" = yes ; then
16368 archive_cmds_need_lc_GCJ=no
16370 rhapsody* | darwin1.[012])
16371 allow_undefined_flag_GCJ='-undefined suppress'
16374 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16375 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16377 case ${MACOSX_DEPLOYMENT_TARGET} in
16379 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16382 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16388 lt_int_apple_cc_single_mod=no
16389 output_verbose_link_cmd='echo'
16390 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16391 lt_int_apple_cc_single_mod=yes
16393 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16394 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16396 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'
16398 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16400 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16401 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}'
16403 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}'
16405 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}'
16406 hardcode_direct_GCJ=no
16407 hardcode_automatic_GCJ=yes
16408 hardcode_shlibpath_var_GCJ=unsupported
16409 whole_archive_flag_spec_GCJ='-all_load $convenience'
16410 link_all_deplibs_GCJ=yes
16417 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16419 hardcode_shlibpath_var_GCJ=no
16426 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16427 # support. Future versions do this automatically, but an explicit c++rt0.o
16428 # does not break anything, and helps significantly (at the cost of a little
16431 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16432 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16433 hardcode_direct_GCJ=yes
16434 hardcode_shlibpath_var_GCJ=no
16437 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16439 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16440 hardcode_direct_GCJ=yes
16441 hardcode_minus_L_GCJ=yes
16442 hardcode_shlibpath_var_GCJ=no
16445 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16446 freebsd* | kfreebsd*-gnu)
16447 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16448 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16449 hardcode_direct_GCJ=yes
16450 hardcode_shlibpath_var_GCJ=no
16454 if test "$GCC" = yes; then
16455 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'
16457 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'
16459 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16460 hardcode_libdir_separator_GCJ=:
16461 hardcode_direct_GCJ=yes
16463 # hardcode_minus_L: Not really in the search PATH,
16464 # but as the default location of the library.
16465 hardcode_minus_L_GCJ=yes
16466 export_dynamic_flag_spec_GCJ='${wl}-E'
16470 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16471 case "$host_cpu" in
16473 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16476 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16480 case "$host_cpu" in
16482 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16485 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16489 if test "$with_gnu_ld" = no; then
16490 case "$host_cpu" in
16492 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16493 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16494 hardcode_libdir_separator_GCJ=:
16495 hardcode_direct_GCJ=no
16496 hardcode_shlibpath_var_GCJ=no
16499 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16500 hardcode_direct_GCJ=no
16501 hardcode_shlibpath_var_GCJ=no
16503 # hardcode_minus_L: Not really in the search PATH,
16504 # but as the default location of the library.
16505 hardcode_minus_L_GCJ=yes
16508 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16509 hardcode_libdir_separator_GCJ=:
16510 hardcode_direct_GCJ=yes
16511 export_dynamic_flag_spec_GCJ='${wl}-E'
16513 # hardcode_minus_L: Not really in the search PATH,
16514 # but as the default location of the library.
16515 hardcode_minus_L_GCJ=yes
16521 irix5* | irix6* | nonstopux*)
16522 if test "$GCC" = yes; then
16523 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'
16525 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'
16526 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16529 hardcode_libdir_separator_GCJ=:
16530 link_all_deplibs_GCJ=yes
16534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16535 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16537 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16539 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16540 hardcode_direct_GCJ=yes
16541 hardcode_shlibpath_var_GCJ=no
16545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16546 hardcode_direct_GCJ=yes
16547 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16548 hardcode_libdir_separator_GCJ=:
16549 hardcode_shlibpath_var_GCJ=no
16553 hardcode_direct_GCJ=yes
16554 hardcode_shlibpath_var_GCJ=no
16555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16556 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16557 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16558 export_dynamic_flag_spec_GCJ='${wl}-E'
16561 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16562 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16566 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16575 hardcode_minus_L_GCJ=yes
16576 allow_undefined_flag_GCJ=unsupported
16577 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'
16578 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16582 if test "$GCC" = yes; then
16583 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16584 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'
16586 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16587 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'
16589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16590 hardcode_libdir_separator_GCJ=:
16593 osf4* | osf5*) # as osf3* with the addition of -msym flag
16594 if test "$GCC" = yes; then
16595 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16596 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'
16597 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16599 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16600 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'
16601 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~
16602 $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'
16604 # Both c and cxx compiler support -rpath directly
16605 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16607 hardcode_libdir_separator_GCJ=:
16611 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612 hardcode_shlibpath_var_GCJ=no
16613 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16614 runpath_var=LD_RUN_PATH
16615 hardcode_runpath_var=yes
16619 no_undefined_flag_GCJ=' -z text'
16620 if test "$GCC" = yes; then
16621 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16622 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16625 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16627 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16629 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16630 hardcode_shlibpath_var_GCJ=no
16632 solaris2.[0-5] | solaris2.[0-5].*) ;;
16633 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16634 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16636 link_all_deplibs_GCJ=yes
16640 if test "x$host_vendor" = xsequent; then
16641 # Use $CC to link under sequent, because it throws in some extra .o
16642 # files that make .init and .fini sections work.
16643 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16645 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16648 hardcode_direct_GCJ=yes
16649 hardcode_minus_L_GCJ=yes
16650 hardcode_shlibpath_var_GCJ=no
16654 case $host_vendor in
16656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16657 hardcode_direct_GCJ=yes # is this really true???
16660 ## LD is ld it makes a PLAMLIB
16661 ## CC just makes a GrossModule.
16662 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16663 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16664 hardcode_direct_GCJ=no
16667 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16671 runpath_var='LD_RUN_PATH'
16672 hardcode_shlibpath_var_GCJ=no
16676 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677 hardcode_shlibpath_var_GCJ=no
16678 export_dynamic_flag_spec_GCJ='-Bexport'
16682 if test -d /usr/nec; then
16683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16684 hardcode_shlibpath_var_GCJ=no
16685 runpath_var=LD_RUN_PATH
16686 hardcode_runpath_var=yes
16692 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16693 hardcode_direct_GCJ=yes
16694 hardcode_minus_L_GCJ=no
16695 hardcode_shlibpath_var_GCJ=no
16696 hardcode_runpath_var=yes
16697 runpath_var=LD_RUN_PATH
16700 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16701 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16702 if test "$GCC" = yes; then
16703 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16705 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16707 runpath_var='LD_RUN_PATH'
16708 hardcode_shlibpath_var_GCJ=no
16712 no_undefined_flag_GCJ=' -z text'
16713 # $CC -shared without GNU ld will not create a library from C++
16714 # object files and a static libstdc++, better avoid it by now
16715 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16716 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16717 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16718 hardcode_libdir_flag_spec_GCJ=
16719 hardcode_shlibpath_var_GCJ=no
16720 runpath_var='LD_RUN_PATH'
16724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16726 hardcode_shlibpath_var_GCJ=no
16735 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16736 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16737 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16740 if test "$GCC" = yes; then
16741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16745 # Do we need to explicitly link libc?
16747 case "x$archive_cmds_need_lc_GCJ" in
16749 # Assume -lc should be added
16750 archive_cmds_need_lc_GCJ=yes
16752 if test "$enable_shared" = yes && test "$GCC" = yes; then
16753 case $archive_cmds_GCJ in
16755 # FIXME: we may have to deal with multi-command sequences.
16758 # Test whether the compiler implicitly links with -lc since on some
16759 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16760 # to ld, don't add -lc before -lgcc.
16761 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16762 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16767 (eval $ac_compile) 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } 2>conftest.err; then
16773 libobjs=conftest.$ac_objext
16775 wl=$lt_prog_compiler_wl_GCJ
16781 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16782 allow_undefined_flag_GCJ=
16783 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16784 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }
16789 archive_cmds_need_lc_GCJ=no
16791 archive_cmds_need_lc_GCJ=yes
16793 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16795 cat conftest.err 1>&5
16798 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16799 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16806 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16807 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16808 library_names_spec=
16809 libname_spec='lib$name'
16813 postuninstall_cmds=
16817 shlibpath_overrides_runpath=unknown
16819 dynamic_linker="$host_os ld.so"
16820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16821 if test "$GCC" = yes; then
16822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16823 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16824 # if the path contains ";" then we assume it to be the separator
16825 # otherwise default to the standard path separator (i.e. ":") - it is
16826 # assumed that no part of a normal pathname contains ";" but that should
16827 # okay in the real world where ";" in dirpaths is itself problematic.
16828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16835 need_lib_prefix=unknown
16836 hardcode_into_libs=no
16838 # when you set need_version to no, make sure it does not cause -set_version
16839 # flags to be left without arguments
16840 need_version=unknown
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16846 shlibpath_var=LIBPATH
16848 # AIX 3 has no versioning support, so we append a major version to the name.
16849 soname_spec='${libname}${release}${shared_ext}$major'
16856 hardcode_into_libs=yes
16857 if test "$host_cpu" = ia64; then
16858 # AIX 5 supports IA64
16859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16860 shlibpath_var=LD_LIBRARY_PATH
16862 # With GCC up to 2.95.x, collect2 would create an import file
16863 # for dependence libraries. The import file would start with
16864 # the line `#! .'. This would cause the generated library to
16865 # depend on `.', always an invalid library. This was fixed in
16866 # development snapshots of GCC prior to 3.0.
16868 aix4 | aix4.[01] | aix4.[01].*)
16869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16871 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16874 can_build_shared=no
16878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16879 # soname into executable. Probably we can add versioning support to
16880 # collect2, so additional links can be useful in future.
16881 if test "$aix_use_runtimelinking" = yes; then
16882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16883 # instead of lib<name>.a to let people know that these are not
16884 # typical AIX shared libraries.
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 # We preserve .a as extension for shared libraries through AIX4.2
16888 # and later when we are not doing run time linking.
16889 library_names_spec='${libname}${release}.a $libname.a'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16892 shlibpath_var=LIBPATH
16897 library_names_spec='$libname.ixlibrary $libname.a'
16898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16899 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'
16903 library_names_spec='${libname}${shared_ext}'
16904 dynamic_linker="$host_os ld.so"
16905 shlibpath_var=LIBRARY_PATH
16911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912 soname_spec='${libname}${release}${shared_ext}$major'
16913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16914 shlibpath_var=LD_LIBRARY_PATH
16915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16917 # the default ld.so.conf also contains /usr/contrib/lib and
16918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16919 # libtool to hard-code these into programs
16922 cygwin* | mingw* | pw32*)
16923 version_type=windows
16928 case $GCC,$host_os in
16929 yes,cygwin* | yes,mingw* | yes,pw32*)
16930 library_names_spec='$libname.dll.a'
16931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16932 postinstall_cmds='base_file=`basename \${file}`~
16933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16934 dldir=$destdir/`dirname \$dlpath`~
16935 test -d \$dldir || mkdir -p \$dldir~
16936 $install_prog $dir/$dlname \$dldir/$dlname'
16937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16938 dlpath=$dir/\$dldll~
16940 shlibpath_overrides_runpath=yes
16944 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16946 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16949 # MinGW DLLs use traditional 'lib' prefix
16950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16952 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16953 # It is most probably a Windows format PATH printed by
16954 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16955 # path with ; separators, and with drive letters. We can handle the
16956 # drive letters (cygwin fileutils understands them), so leave them,
16957 # especially as we might pass files found there to a mingw objdump,
16958 # which wouldn't understand a cygwinified path. Ahh.
16959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16965 # pw32 DLLs use 'pw' prefix rather than 'lib'
16966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16975 dynamic_linker='Win32 ld.exe'
16976 # FIXME: first we should search . and the directory the executable is in
16980 darwin* | rhapsody*)
16981 dynamic_linker="$host_os dyld"
16982 version_type=darwin
16985 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16986 soname_spec='${libname}${release}${major}$shared_ext'
16987 shlibpath_overrides_runpath=yes
16988 shlibpath_var=DYLD_LIBRARY_PATH
16989 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16990 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16991 if test "$GCC" = yes; then
16992 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"`
16994 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17004 soname_spec='${libname}${release}${shared_ext}$major'
17005 shlibpath_var=LD_LIBRARY_PATH
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17017 soname_spec='${libname}${release}${shared_ext}$major'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 shlibpath_overrides_runpath=no
17020 hardcode_into_libs=yes
17021 dynamic_linker='GNU ld.so'
17025 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17026 version_type=freebsd-$objformat
17027 case $version_type in
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17038 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17043 freebsd3.01* | freebsdelf3.01*)
17044 shlibpath_overrides_runpath=yes
17045 hardcode_into_libs=yes
17048 shlibpath_overrides_runpath=no
17049 hardcode_into_libs=yes
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 shlibpath_var=LD_LIBRARY_PATH
17061 hardcode_into_libs=yes
17064 hpux9* | hpux10* | hpux11*)
17065 # Give a soname corresponding to the major version so that dld.sl refuses to
17066 # link against other versions.
17070 case "$host_cpu" in
17073 hardcode_into_libs=yes
17074 dynamic_linker="$host_os dld.so"
17075 shlibpath_var=LD_LIBRARY_PATH
17076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 if test "X$HPUX_IA64_MODE" = X32; then
17080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17088 hardcode_into_libs=yes
17089 dynamic_linker="$host_os dld.sl"
17090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17099 dynamic_linker="$host_os dld.sl"
17100 shlibpath_var=SHLIB_PATH
17101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103 soname_spec='${libname}${release}${shared_ext}$major'
17106 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17107 postinstall_cmds='chmod 555 $lib'
17110 irix5* | irix6* | nonstopux*)
17112 nonstopux*) version_type=nonstopux ;;
17114 if test "$lt_cv_prog_gnu_ld" = yes; then
17122 soname_spec='${libname}${release}${shared_ext}$major'
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17125 irix5* | nonstopux*)
17126 libsuff= shlibsuff=
17129 case $LD in # libtool.m4 will add one of these switches to LD
17130 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17131 libsuff= shlibsuff= libmagic=32-bit;;
17132 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17133 libsuff=32 shlibsuff=N32 libmagic=N32;;
17134 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17135 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17136 *) libsuff= shlibsuff= libmagic=never-match;;
17140 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17141 shlibpath_overrides_runpath=no
17142 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17143 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17144 hardcode_into_libs=yes
17147 # No shared lib support for Linux oldld, aout, or coff.
17148 linux*oldld* | linux*aout* | linux*coff*)
17152 # This must be Linux ELF.
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath=no
17162 # This implies no fast_install, which is unacceptable.
17163 # Some rework will be needed to allow for fast_install
17164 # before this can be enabled.
17165 hardcode_into_libs=yes
17167 # find out which ABI we are using
17169 case "$host_cpu" in
17170 x86_64*|s390x*|powerpc64*)
17171 echo '#line 17171 "configure"' > conftest.$ac_ext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17173 (eval $ac_compile) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; then
17177 case `/usr/bin/file conftest.$ac_objext` in
17180 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17188 # Append ld.so.conf contents to the search path
17189 if test -f /etc/ld.so.conf; then
17190 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17191 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17194 # We used to test for /lib/ld.so.1 and disable shared libraries on
17195 # powerpc, because MkLinux only supported shared libraries with the
17196 # GNU dynamic linker. Since this was broken with cross compilers,
17197 # most powerpc-linux boxes support dynamic linking these days and
17198 # people can always --disable-shared, the test was removed, and we
17199 # assume the GNU/Linux dynamic linker is in use.
17200 dynamic_linker='GNU/Linux ld.so'
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17208 soname_spec='${libname}${release}${shared_ext}$major'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 shlibpath_overrides_runpath=no
17211 hardcode_into_libs=yes
17212 dynamic_linker='GNU ld.so'
17219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17222 dynamic_linker='NetBSD (a.out) ld.so'
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 dynamic_linker='NetBSD ld.elf_so'
17228 shlibpath_var=LD_LIBRARY_PATH
17229 shlibpath_overrides_runpath=yes
17230 hardcode_into_libs=yes
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 shlibpath_var=LD_LIBRARY_PATH
17237 shlibpath_overrides_runpath=yes
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=yes
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17259 openbsd2.[89] | openbsd2.[89].*)
17260 shlibpath_overrides_runpath=no
17263 shlibpath_overrides_runpath=yes
17267 shlibpath_overrides_runpath=yes
17272 libname_spec='$name'
17275 library_names_spec='$libname${shared_ext} $libname.a'
17276 dynamic_linker='OS/2 ld.exe'
17277 shlibpath_var=LIBPATH
17280 osf3* | osf4* | osf5*)
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17288 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 shlibpath_var=LD_LIBRARY_PATH
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=yes
17306 hardcode_into_libs=yes
17307 # ldd complains unless libraries are executable
17308 postinstall_cmds='chmod +x $lib'
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath=yes
17317 if test "$with_gnu_ld" = yes; then
17323 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326 soname_spec='${libname}${release}${shared_ext}$major'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 case $host_vendor in
17330 shlibpath_overrides_runpath=no
17332 export_dynamic_flag_spec='${wl}-Blargedynsym'
17333 runpath_var=LD_RUN_PATH
17341 shlibpath_overrides_runpath=no
17342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17348 if test -d /usr/nec ;then
17350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17351 soname_spec='$libname${shared_ext}.$major'
17352 shlibpath_var=LD_LIBRARY_PATH
17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17359 soname_spec='${libname}${release}${shared_ext}$major'
17360 shlibpath_var=LD_LIBRARY_PATH
17367 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17368 echo "${ECHO_T}$dynamic_linker" >&6
17369 test "$dynamic_linker" = no && can_build_shared=no
17371 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17372 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17373 hardcode_action_GCJ=
17374 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17375 test -n "$runpath_var GCJ" || \
17376 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17378 # We can hardcode non-existant directories.
17379 if test "$hardcode_direct_GCJ" != no &&
17380 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17381 # have to relink, otherwise we might link with an installed library
17382 # when we should be linking with a yet-to-be-installed one
17383 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17384 test "$hardcode_minus_L_GCJ" != no; then
17385 # Linking always hardcodes the temporary library directory.
17386 hardcode_action_GCJ=relink
17388 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17389 hardcode_action_GCJ=immediate
17392 # We cannot hardcode anything, or else we can only hardcode existing
17394 hardcode_action_GCJ=unsupported
17396 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17397 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17399 if test "$hardcode_action_GCJ" = relink; then
17400 # Fast installation is not supported
17401 enable_fast_install=no
17402 elif test "$shlibpath_overrides_runpath" = yes ||
17403 test "$enable_shared" = no; then
17404 # Fast installation is not necessary
17405 enable_fast_install=needless
17410 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17411 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17412 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17413 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17414 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17415 echo "$as_me:$LINENO: result: yes" >&5
17416 echo "${ECHO_T}yes" >&6
17418 # FIXME - insert some real tests, host_os isn't really good enough
17421 if test -n "$STRIP" ; then
17422 striplib="$STRIP -x"
17423 echo "$as_me:$LINENO: result: yes" >&5
17424 echo "${ECHO_T}yes" >&6
17426 echo "$as_me:$LINENO: result: no" >&5
17427 echo "${ECHO_T}no" >&6
17431 echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6
17437 if test "x$enable_dlopen" != xyes; then
17438 enable_dlopen=unknown
17439 enable_dlopen_self=unknown
17440 enable_dlopen_self_static=unknown
17447 lt_cv_dlopen="load_add_on"
17449 lt_cv_dlopen_self=yes
17453 lt_cv_dlopen="LoadLibrary"
17458 lt_cv_dlopen="dlopen"
17463 # if libdl is installed we need to link against it
17464 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17465 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17466 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17467 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 ac_check_lib_save_LIBS=$LIBS
17471 cat >conftest.$ac_ext <<_ACEOF
17474 cat confdefs.h >>conftest.$ac_ext
17475 cat >>conftest.$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17478 /* Override any gcc2 internal prototype to avoid an error. */
17482 /* We use char because int might match the return type of a gcc2
17483 builtin and then its argument prototype would still apply. */
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17495 (eval $ac_link) 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag"
17503 || test ! -s conftest.err'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest$ac_exeext'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 ac_cv_lib_dl_dlopen=yes
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 ac_cv_lib_dl_dlopen=no
17522 rm -f conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17524 LIBS=$ac_check_lib_save_LIBS
17526 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17527 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17528 if test $ac_cv_lib_dl_dlopen = yes; then
17529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17532 lt_cv_dlopen="dyld"
17534 lt_cv_dlopen_self=yes
17541 echo "$as_me:$LINENO: checking for shl_load" >&5
17542 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17543 if test "${ac_cv_func_shl_load+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17554 #define shl_load innocuous_shl_load
17556 /* System header to define __stub macros and hopefully few prototypes,
17557 which can conflict with char shl_load (); below.
17558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17559 <limits.h> exists even on freestanding compilers. */
17562 # include <limits.h>
17564 # include <assert.h>
17569 /* Override any gcc2 internal prototype to avoid an error. */
17574 /* We use char because int might match the return type of a gcc2
17575 builtin and then its argument prototype would still apply. */
17577 /* The GNU C library defines this for functions which it implements
17578 to always fail with ENOSYS. Some functions are actually named
17579 something starting with __ and the normal name is an alias. */
17580 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17583 char (*f) () = shl_load;
17592 return f != shl_load;
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17599 (eval $ac_link) 2>conftest.er1
17601 grep -v '^ *+' conftest.er1 >conftest.err
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -z "$ac_c_werror_flag"
17607 || test ! -s conftest.err'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest$ac_exeext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 ac_cv_func_shl_load=yes
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 ac_cv_func_shl_load=no
17626 rm -f conftest.err conftest.$ac_objext \
17627 conftest$ac_exeext conftest.$ac_ext
17629 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17630 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17631 if test $ac_cv_func_shl_load = yes; then
17632 lt_cv_dlopen="shl_load"
17634 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17635 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17636 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 ac_check_lib_save_LIBS=$LIBS
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17648 /* Override any gcc2 internal prototype to avoid an error. */
17652 /* We use char because int might match the return type of a gcc2
17653 builtin and then its argument prototype would still apply. */
17663 rm -f conftest.$ac_objext conftest$ac_exeext
17664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17665 (eval $ac_link) 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -z "$ac_c_werror_flag"
17673 || test ! -s conftest.err'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; } &&
17679 { ac_try='test -s conftest$ac_exeext'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 ac_cv_lib_dld_shl_load=yes
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_cv_lib_dld_shl_load=no
17692 rm -f conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17694 LIBS=$ac_check_lib_save_LIBS
17696 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17697 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17698 if test $ac_cv_lib_dld_shl_load = yes; then
17699 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17701 echo "$as_me:$LINENO: checking for dlopen" >&5
17702 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17703 if test "${ac_cv_func_dlopen+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17714 #define dlopen innocuous_dlopen
17716 /* System header to define __stub macros and hopefully few prototypes,
17717 which can conflict with char dlopen (); below.
17718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17719 <limits.h> exists even on freestanding compilers. */
17722 # include <limits.h>
17724 # include <assert.h>
17729 /* Override any gcc2 internal prototype to avoid an error. */
17734 /* We use char because int might match the return type of a gcc2
17735 builtin and then its argument prototype would still apply. */
17737 /* The GNU C library defines this for functions which it implements
17738 to always fail with ENOSYS. Some functions are actually named
17739 something starting with __ and the normal name is an alias. */
17740 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17743 char (*f) () = dlopen;
17752 return f != dlopen;
17757 rm -f conftest.$ac_objext conftest$ac_exeext
17758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17759 (eval $ac_link) 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
17766 { ac_try='test -z "$ac_c_werror_flag"
17767 || test ! -s conftest.err'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest$ac_exeext'
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 ac_cv_func_dlopen=yes
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_cv_func_dlopen=no
17786 rm -f conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
17789 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17790 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17791 if test $ac_cv_func_dlopen = yes; then
17792 lt_cv_dlopen="dlopen"
17794 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 ac_check_lib_save_LIBS=$LIBS
17801 cat >conftest.$ac_ext <<_ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17808 /* Override any gcc2 internal prototype to avoid an error. */
17812 /* We use char because int might match the return type of a gcc2
17813 builtin and then its argument prototype would still apply. */
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17825 (eval $ac_link) 2>conftest.er1
17827 grep -v '^ *+' conftest.er1 >conftest.err
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
17832 { ac_try='test -z "$ac_c_werror_flag"
17833 || test ! -s conftest.err'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; } &&
17839 { ac_try='test -s conftest$ac_exeext'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_cv_lib_dl_dlopen=yes
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 ac_cv_lib_dl_dlopen=no
17852 rm -f conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17854 LIBS=$ac_check_lib_save_LIBS
17856 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17857 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17858 if test $ac_cv_lib_dl_dlopen = yes; then
17859 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17861 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17862 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17863 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-lsvld $LIBS"
17868 cat >conftest.$ac_ext <<_ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17875 /* Override any gcc2 internal prototype to avoid an error. */
17879 /* We use char because int might match the return type of a gcc2
17880 builtin and then its argument prototype would still apply. */
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17892 (eval $ac_link) 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag"
17900 || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_lib_svld_dlopen=yes
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_cv_lib_svld_dlopen=no
17919 rm -f conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 LIBS=$ac_check_lib_save_LIBS
17923 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17924 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17925 if test $ac_cv_lib_svld_dlopen = yes; then
17926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17928 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17929 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17930 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 ac_check_lib_save_LIBS=$LIBS
17935 cat >conftest.$ac_ext <<_ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17942 /* Override any gcc2 internal prototype to avoid an error. */
17946 /* We use char because int might match the return type of a gcc2
17947 builtin and then its argument prototype would still apply. */
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17959 (eval $ac_link) 2>conftest.er1
17961 grep -v '^ *+' conftest.er1 >conftest.err
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } &&
17966 { ac_try='test -z "$ac_c_werror_flag"
17967 || test ! -s conftest.err'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; } &&
17973 { ac_try='test -s conftest$ac_exeext'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 ac_cv_lib_dld_dld_link=yes
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 ac_cv_lib_dld_dld_link=no
17986 rm -f conftest.err conftest.$ac_objext \
17987 conftest$ac_exeext conftest.$ac_ext
17988 LIBS=$ac_check_lib_save_LIBS
17990 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17991 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17992 if test $ac_cv_lib_dld_dld_link = yes; then
17993 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18014 if test "x$lt_cv_dlopen" != xno; then
18020 case $lt_cv_dlopen in
18022 save_CPPFLAGS="$CPPFLAGS"
18023 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18025 save_LDFLAGS="$LDFLAGS"
18026 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18029 LIBS="$lt_cv_dlopen_libs $LIBS"
18031 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18032 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18033 if test "${lt_cv_dlopen_self+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 if test "$cross_compiling" = yes; then :
18037 lt_cv_dlopen_self=cross
18039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18040 lt_status=$lt_dlunknown
18041 cat > conftest.$ac_ext <<EOF
18042 #line 18042 "configure"
18043 #include "confdefs.h"
18052 # define LT_DLGLOBAL RTLD_GLOBAL
18055 # define LT_DLGLOBAL DL_GLOBAL
18057 # define LT_DLGLOBAL 0
18061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18062 find out it does not work in some platform. */
18063 #ifndef LT_DLLAZY_OR_NOW
18065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18068 # define LT_DLLAZY_OR_NOW DL_LAZY
18071 # define LT_DLLAZY_OR_NOW RTLD_NOW
18074 # define LT_DLLAZY_OR_NOW DL_NOW
18076 # define LT_DLLAZY_OR_NOW 0
18084 extern "C" void exit (int);
18087 void fnord() { int i=42;}
18090 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18091 int status = $lt_dlunknown;
18095 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18096 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18097 /* dlclose (self); */
18103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104 (eval $ac_link) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18108 (./conftest; exit; ) 2>/dev/null
18110 case x$lt_status in
18111 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18112 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18113 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18116 # compilation failed
18117 lt_cv_dlopen_self=no
18124 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18125 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18127 if test "x$lt_cv_dlopen_self" = xyes; then
18128 LDFLAGS="$LDFLAGS $link_static_flag"
18129 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18130 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18131 if test "${lt_cv_dlopen_self_static+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 if test "$cross_compiling" = yes; then :
18135 lt_cv_dlopen_self_static=cross
18137 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18138 lt_status=$lt_dlunknown
18139 cat > conftest.$ac_ext <<EOF
18140 #line 18140 "configure"
18141 #include "confdefs.h"
18150 # define LT_DLGLOBAL RTLD_GLOBAL
18153 # define LT_DLGLOBAL DL_GLOBAL
18155 # define LT_DLGLOBAL 0
18159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18160 find out it does not work in some platform. */
18161 #ifndef LT_DLLAZY_OR_NOW
18163 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18166 # define LT_DLLAZY_OR_NOW DL_LAZY
18169 # define LT_DLLAZY_OR_NOW RTLD_NOW
18172 # define LT_DLLAZY_OR_NOW DL_NOW
18174 # define LT_DLLAZY_OR_NOW 0
18182 extern "C" void exit (int);
18185 void fnord() { int i=42;}
18188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18189 int status = $lt_dlunknown;
18193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18195 /* dlclose (self); */
18201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18202 (eval $ac_link) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18206 (./conftest; exit; ) 2>/dev/null
18208 case x$lt_status in
18209 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18210 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18211 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18214 # compilation failed
18215 lt_cv_dlopen_self_static=no
18222 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18223 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18226 CPPFLAGS="$save_CPPFLAGS"
18227 LDFLAGS="$save_LDFLAGS"
18232 case $lt_cv_dlopen_self in
18233 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18234 *) enable_dlopen_self=unknown ;;
18237 case $lt_cv_dlopen_self_static in
18238 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18239 *) enable_dlopen_self_static=unknown ;;
18244 # The else clause should only fire when bootstrapping the
18245 # libtool distribution, otherwise you forgot to ship ltmain.sh
18246 # with your package, and you will get complaints that there are
18247 # no rules to generate ltmain.sh.
18248 if test -f "$ltmain"; then
18249 # See if we are running on zsh, and set the options which allow our commands through
18250 # without removal of \ escapes.
18251 if test -n "${ZSH_VERSION+set}" ; then
18252 setopt NO_GLOB_SUBST
18254 # Now quote all the things that may contain metacharacters while being
18255 # careful not to overquote the AC_SUBSTed values. We take copies of the
18256 # variables and quote the copies for generation of the libtool script.
18257 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18259 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18260 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18261 deplibs_check_method reload_flag reload_cmds need_locks \
18262 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18263 lt_cv_sys_global_symbol_to_c_name_address \
18264 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18265 old_postinstall_cmds old_postuninstall_cmds \
18269 lt_prog_compiler_wl_GCJ \
18270 lt_prog_compiler_pic_GCJ \
18271 lt_prog_compiler_static_GCJ \
18272 lt_prog_compiler_no_builtin_flag_GCJ \
18273 export_dynamic_flag_spec_GCJ \
18274 thread_safe_flag_spec_GCJ \
18275 whole_archive_flag_spec_GCJ \
18276 enable_shared_with_static_runtimes_GCJ \
18277 old_archive_cmds_GCJ \
18278 old_archive_from_new_cmds_GCJ \
18279 predep_objects_GCJ \
18280 postdep_objects_GCJ \
18283 compiler_lib_search_path_GCJ \
18285 archive_expsym_cmds_GCJ \
18286 postinstall_cmds_GCJ \
18287 postuninstall_cmds_GCJ \
18288 old_archive_from_expsyms_cmds_GCJ \
18289 allow_undefined_flag_GCJ \
18290 no_undefined_flag_GCJ \
18291 export_symbols_cmds_GCJ \
18292 hardcode_libdir_flag_spec_GCJ \
18293 hardcode_libdir_flag_spec_ld_GCJ \
18294 hardcode_libdir_separator_GCJ \
18295 hardcode_automatic_GCJ \
18297 module_expsym_cmds_GCJ \
18298 lt_cv_prog_compiler_c_o_GCJ \
18299 exclude_expsyms_GCJ \
18300 include_expsyms_GCJ; do
18303 old_archive_cmds_GCJ | \
18304 old_archive_from_new_cmds_GCJ | \
18305 archive_cmds_GCJ | \
18306 archive_expsym_cmds_GCJ | \
18307 module_cmds_GCJ | \
18308 module_expsym_cmds_GCJ | \
18309 old_archive_from_expsyms_cmds_GCJ | \
18310 export_symbols_cmds_GCJ | \
18311 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18312 postinstall_cmds | postuninstall_cmds | \
18313 old_postinstall_cmds | old_postuninstall_cmds | \
18314 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18315 # Double-quote double-evaled strings.
18316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18325 *'\$0 --fallback-echo"')
18326 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18332 cat <<__EOF__ >> "$cfgfile"
18333 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18337 # Shell to use when invoking shell scripts.
18340 # Whether or not to build shared libraries.
18341 build_libtool_libs=$enable_shared
18343 # Whether or not to build static libraries.
18344 build_old_libs=$enable_static
18346 # Whether or not to add -lc for building shared libraries.
18347 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18349 # Whether or not to disallow shared libs when runtime libs are static
18350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18352 # Whether or not to optimize for fast installation.
18353 fast_install=$enable_fast_install
18356 host_alias=$host_alias
18359 # An echo program that does not interpret backslashes.
18364 AR_FLAGS=$lt_AR_FLAGS
18369 # A language-specific compiler.
18370 CC=$lt_compiler_GCJ
18372 # Is the compiler the GNU C compiler?
18378 # The linker used to build libraries.
18381 # Whether we need hard or soft links.
18384 # A BSD-compatible nm program.
18387 # A symbol stripping program
18390 # Used to examine libraries when file_magic_cmd begins "file"
18391 MAGIC_CMD=$MAGIC_CMD
18393 # Used on cygwin: DLL creation program.
18396 # Used on cygwin: object dumper.
18399 # Used on cygwin: assembler.
18402 # The name of the directory that contains temporary libtool files.
18405 # How to create reloadable object files.
18406 reload_flag=$lt_reload_flag
18407 reload_cmds=$lt_reload_cmds
18409 # How to pass a linker flag through the compiler.
18410 wl=$lt_lt_prog_compiler_wl_GCJ
18412 # Object file suffix (normally "o").
18413 objext="$ac_objext"
18415 # Old archive suffix (normally "a").
18418 # Shared library suffix (normally ".so").
18419 shrext_cmds='$shrext_cmds'
18421 # Executable file suffix (normally "").
18424 # Additional compiler flags for building library objects.
18425 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18428 # What is the maximum length of a command?
18429 max_cmd_len=$lt_cv_sys_max_cmd_len
18431 # Does compiler simultaneously support -c and -o options?
18432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18434 # Must we lock files when doing compilation ?
18435 need_locks=$lt_need_locks
18437 # Do we need the lib prefix for modules?
18438 need_lib_prefix=$need_lib_prefix
18440 # Do we need a version for libraries?
18441 need_version=$need_version
18443 # Whether dlopen is supported.
18444 dlopen_support=$enable_dlopen
18446 # Whether dlopen of programs is supported.
18447 dlopen_self=$enable_dlopen_self
18449 # Whether dlopen of statically linked programs is supported.
18450 dlopen_self_static=$enable_dlopen_self_static
18452 # Compiler flag to prevent dynamic linking.
18453 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18455 # Compiler flag to turn off builtin functions.
18456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18458 # Compiler flag to allow reflexive dlopens.
18459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18461 # Compiler flag to generate shared objects directly from archives.
18462 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18464 # Compiler flag to generate thread-safe objects.
18465 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18467 # Library versioning type.
18468 version_type=$version_type
18470 # Format of library name prefix.
18471 libname_spec=$lt_libname_spec
18473 # List of archive names. First name is the real one, the rest are links.
18474 # The last name is the one that the linker finds with -lNAME.
18475 library_names_spec=$lt_library_names_spec
18477 # The coded name of the library, if different from the real name.
18478 soname_spec=$lt_soname_spec
18480 # Commands used to build and install an old-style archive.
18482 old_archive_cmds=$lt_old_archive_cmds_GCJ
18483 old_postinstall_cmds=$lt_old_postinstall_cmds
18484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18486 # Create an old-style archive from a shared archive.
18487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18489 # Create a temporary old-style archive to link instead of a shared archive.
18490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18492 # Commands used to build and install a shared archive.
18493 archive_cmds=$lt_archive_cmds_GCJ
18494 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18495 postinstall_cmds=$lt_postinstall_cmds
18496 postuninstall_cmds=$lt_postuninstall_cmds
18498 # Commands used to build a loadable module (assumed same as above if empty)
18499 module_cmds=$lt_module_cmds_GCJ
18500 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18502 # Commands to strip libraries.
18503 old_striplib=$lt_old_striplib
18504 striplib=$lt_striplib
18506 # Dependencies to place before the objects being linked to create a
18508 predep_objects=$lt_predep_objects_GCJ
18510 # Dependencies to place after the objects being linked to create a
18512 postdep_objects=$lt_postdep_objects_GCJ
18514 # Dependencies to place before the objects being linked to create a
18516 predeps=$lt_predeps_GCJ
18518 # Dependencies to place after the objects being linked to create a
18520 postdeps=$lt_postdeps_GCJ
18522 # The library search path used internally by the compiler when linking
18523 # a shared library.
18524 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18526 # Method to check whether dependent libraries are shared objects.
18527 deplibs_check_method=$lt_deplibs_check_method
18529 # Command to use when deplibs_check_method == file_magic.
18530 file_magic_cmd=$lt_file_magic_cmd
18532 # Flag that allows shared libraries with undefined symbols to be built.
18533 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18535 # Flag that forces no undefined symbols.
18536 no_undefined_flag=$lt_no_undefined_flag_GCJ
18538 # Commands used to finish a libtool library installation in a directory.
18539 finish_cmds=$lt_finish_cmds
18541 # Same as above, but a single script fragment to be evaled but not shown.
18542 finish_eval=$lt_finish_eval
18544 # Take the output of nm and produce a listing of raw symbols and C names.
18545 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18547 # Transform the output of nm in a proper C declaration
18548 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18550 # Transform the output of nm in a C name address pair
18551 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18553 # This is the shared library runtime path variable.
18554 runpath_var=$runpath_var
18556 # This is the shared library path variable.
18557 shlibpath_var=$shlibpath_var
18559 # Is shlibpath searched before the hard-coded library search path?
18560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18562 # How to hardcode a shared library path into an executable.
18563 hardcode_action=$hardcode_action_GCJ
18565 # Whether we should hardcode library paths into libraries.
18566 hardcode_into_libs=$hardcode_into_libs
18568 # Flag to hardcode \$libdir into a binary during linking.
18569 # This must work even if \$libdir does not exist.
18570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18572 # If ld is used when linking, flag to hardcode \$libdir into
18573 # a binary during linking. This must work even if \$libdir does
18575 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18577 # Whether we need a single -rpath flag with a separated argument.
18578 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18580 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18581 # resulting binary.
18582 hardcode_direct=$hardcode_direct_GCJ
18584 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18585 # resulting binary.
18586 hardcode_minus_L=$hardcode_minus_L_GCJ
18588 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18589 # the resulting binary.
18590 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18592 # Set to yes if building a shared library automatically hardcodes DIR into the library
18593 # and all subsequent libraries and executables linked against it.
18594 hardcode_automatic=$hardcode_automatic_GCJ
18596 # Variables whose values should be saved in libtool wrapper scripts and
18597 # restored at relink time.
18598 variables_saved_for_relink="$variables_saved_for_relink"
18600 # Whether libtool must link a program against all its dependency libraries.
18601 link_all_deplibs=$link_all_deplibs_GCJ
18603 # Compile-time system search path for libraries
18604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18606 # Run-time system search path for libraries
18607 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18609 # Fix the shell variable \$srcfile for the compiler.
18610 fix_srcfile_path="$fix_srcfile_path_GCJ"
18612 # Set to yes if exported symbols are required.
18613 always_export_symbols=$always_export_symbols_GCJ
18615 # The commands to list exported symbols.
18616 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18618 # The commands to extract the exported symbol list from a shared archive.
18619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18621 # Symbols that should not be listed in the preloaded symbols.
18622 exclude_expsyms=$lt_exclude_expsyms_GCJ
18624 # Symbols that must always be exported.
18625 include_expsyms=$lt_include_expsyms_GCJ
18627 # ### END LIBTOOL TAG CONFIG: $tagname
18633 # If there is no Makefile yet, we rely on a make rule to execute
18634 # `config.status --recheck' to rerun these tests and create the
18635 # libtool script then.
18636 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18637 if test -f "$ltmain_in"; then
18638 test -f Makefile && make "$ltmain"
18644 ac_cpp='$CPP $CPPFLAGS'
18645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18660 # Source file extension for RC test sources.
18663 # Object file extension for compiled RC test sources.
18667 # Code to be used in simple compile tests
18668 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18670 # Code to be used in simple link tests
18671 lt_simple_link_test_code="$lt_simple_compile_test_code"
18673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18675 # If no C compiler was specified, use CC.
18678 # Allow CC to be a program name with arguments.
18682 # Allow CC to be a program name with arguments.
18687 lt_cv_prog_compiler_c_o_RC=yes
18689 # The else clause should only fire when bootstrapping the
18690 # libtool distribution, otherwise you forgot to ship ltmain.sh
18691 # with your package, and you will get complaints that there are
18692 # no rules to generate ltmain.sh.
18693 if test -f "$ltmain"; then
18694 # See if we are running on zsh, and set the options which allow our commands through
18695 # without removal of \ escapes.
18696 if test -n "${ZSH_VERSION+set}" ; then
18697 setopt NO_GLOB_SUBST
18699 # Now quote all the things that may contain metacharacters while being
18700 # careful not to overquote the AC_SUBSTed values. We take copies of the
18701 # variables and quote the copies for generation of the libtool script.
18702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18706 deplibs_check_method reload_flag reload_cmds need_locks \
18707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18708 lt_cv_sys_global_symbol_to_c_name_address \
18709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18710 old_postinstall_cmds old_postuninstall_cmds \
18714 lt_prog_compiler_wl_RC \
18715 lt_prog_compiler_pic_RC \
18716 lt_prog_compiler_static_RC \
18717 lt_prog_compiler_no_builtin_flag_RC \
18718 export_dynamic_flag_spec_RC \
18719 thread_safe_flag_spec_RC \
18720 whole_archive_flag_spec_RC \
18721 enable_shared_with_static_runtimes_RC \
18722 old_archive_cmds_RC \
18723 old_archive_from_new_cmds_RC \
18724 predep_objects_RC \
18725 postdep_objects_RC \
18728 compiler_lib_search_path_RC \
18730 archive_expsym_cmds_RC \
18731 postinstall_cmds_RC \
18732 postuninstall_cmds_RC \
18733 old_archive_from_expsyms_cmds_RC \
18734 allow_undefined_flag_RC \
18735 no_undefined_flag_RC \
18736 export_symbols_cmds_RC \
18737 hardcode_libdir_flag_spec_RC \
18738 hardcode_libdir_flag_spec_ld_RC \
18739 hardcode_libdir_separator_RC \
18740 hardcode_automatic_RC \
18742 module_expsym_cmds_RC \
18743 lt_cv_prog_compiler_c_o_RC \
18744 exclude_expsyms_RC \
18745 include_expsyms_RC; do
18748 old_archive_cmds_RC | \
18749 old_archive_from_new_cmds_RC | \
18750 archive_cmds_RC | \
18751 archive_expsym_cmds_RC | \
18753 module_expsym_cmds_RC | \
18754 old_archive_from_expsyms_cmds_RC | \
18755 export_symbols_cmds_RC | \
18756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18757 postinstall_cmds | postuninstall_cmds | \
18758 old_postinstall_cmds | old_postuninstall_cmds | \
18759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18760 # Double-quote double-evaled strings.
18761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18770 *'\$0 --fallback-echo"')
18771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18777 cat <<__EOF__ >> "$cfgfile"
18778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18782 # Shell to use when invoking shell scripts.
18785 # Whether or not to build shared libraries.
18786 build_libtool_libs=$enable_shared
18788 # Whether or not to build static libraries.
18789 build_old_libs=$enable_static
18791 # Whether or not to add -lc for building shared libraries.
18792 build_libtool_need_lc=$archive_cmds_need_lc_RC
18794 # Whether or not to disallow shared libs when runtime libs are static
18795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18797 # Whether or not to optimize for fast installation.
18798 fast_install=$enable_fast_install
18801 host_alias=$host_alias
18804 # An echo program that does not interpret backslashes.
18809 AR_FLAGS=$lt_AR_FLAGS
18814 # A language-specific compiler.
18817 # Is the compiler the GNU C compiler?
18823 # The linker used to build libraries.
18826 # Whether we need hard or soft links.
18829 # A BSD-compatible nm program.
18832 # A symbol stripping program
18835 # Used to examine libraries when file_magic_cmd begins "file"
18836 MAGIC_CMD=$MAGIC_CMD
18838 # Used on cygwin: DLL creation program.
18841 # Used on cygwin: object dumper.
18844 # Used on cygwin: assembler.
18847 # The name of the directory that contains temporary libtool files.
18850 # How to create reloadable object files.
18851 reload_flag=$lt_reload_flag
18852 reload_cmds=$lt_reload_cmds
18854 # How to pass a linker flag through the compiler.
18855 wl=$lt_lt_prog_compiler_wl_RC
18857 # Object file suffix (normally "o").
18858 objext="$ac_objext"
18860 # Old archive suffix (normally "a").
18863 # Shared library suffix (normally ".so").
18864 shrext_cmds='$shrext_cmds'
18866 # Executable file suffix (normally "").
18869 # Additional compiler flags for building library objects.
18870 pic_flag=$lt_lt_prog_compiler_pic_RC
18873 # What is the maximum length of a command?
18874 max_cmd_len=$lt_cv_sys_max_cmd_len
18876 # Does compiler simultaneously support -c and -o options?
18877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18879 # Must we lock files when doing compilation ?
18880 need_locks=$lt_need_locks
18882 # Do we need the lib prefix for modules?
18883 need_lib_prefix=$need_lib_prefix
18885 # Do we need a version for libraries?
18886 need_version=$need_version
18888 # Whether dlopen is supported.
18889 dlopen_support=$enable_dlopen
18891 # Whether dlopen of programs is supported.
18892 dlopen_self=$enable_dlopen_self
18894 # Whether dlopen of statically linked programs is supported.
18895 dlopen_self_static=$enable_dlopen_self_static
18897 # Compiler flag to prevent dynamic linking.
18898 link_static_flag=$lt_lt_prog_compiler_static_RC
18900 # Compiler flag to turn off builtin functions.
18901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18903 # Compiler flag to allow reflexive dlopens.
18904 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18906 # Compiler flag to generate shared objects directly from archives.
18907 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18909 # Compiler flag to generate thread-safe objects.
18910 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18912 # Library versioning type.
18913 version_type=$version_type
18915 # Format of library name prefix.
18916 libname_spec=$lt_libname_spec
18918 # List of archive names. First name is the real one, the rest are links.
18919 # The last name is the one that the linker finds with -lNAME.
18920 library_names_spec=$lt_library_names_spec
18922 # The coded name of the library, if different from the real name.
18923 soname_spec=$lt_soname_spec
18925 # Commands used to build and install an old-style archive.
18927 old_archive_cmds=$lt_old_archive_cmds_RC
18928 old_postinstall_cmds=$lt_old_postinstall_cmds
18929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18931 # Create an old-style archive from a shared archive.
18932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18934 # Create a temporary old-style archive to link instead of a shared archive.
18935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18937 # Commands used to build and install a shared archive.
18938 archive_cmds=$lt_archive_cmds_RC
18939 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18940 postinstall_cmds=$lt_postinstall_cmds
18941 postuninstall_cmds=$lt_postuninstall_cmds
18943 # Commands used to build a loadable module (assumed same as above if empty)
18944 module_cmds=$lt_module_cmds_RC
18945 module_expsym_cmds=$lt_module_expsym_cmds_RC
18947 # Commands to strip libraries.
18948 old_striplib=$lt_old_striplib
18949 striplib=$lt_striplib
18951 # Dependencies to place before the objects being linked to create a
18953 predep_objects=$lt_predep_objects_RC
18955 # Dependencies to place after the objects being linked to create a
18957 postdep_objects=$lt_postdep_objects_RC
18959 # Dependencies to place before the objects being linked to create a
18961 predeps=$lt_predeps_RC
18963 # Dependencies to place after the objects being linked to create a
18965 postdeps=$lt_postdeps_RC
18967 # The library search path used internally by the compiler when linking
18968 # a shared library.
18969 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18971 # Method to check whether dependent libraries are shared objects.
18972 deplibs_check_method=$lt_deplibs_check_method
18974 # Command to use when deplibs_check_method == file_magic.
18975 file_magic_cmd=$lt_file_magic_cmd
18977 # Flag that allows shared libraries with undefined symbols to be built.
18978 allow_undefined_flag=$lt_allow_undefined_flag_RC
18980 # Flag that forces no undefined symbols.
18981 no_undefined_flag=$lt_no_undefined_flag_RC
18983 # Commands used to finish a libtool library installation in a directory.
18984 finish_cmds=$lt_finish_cmds
18986 # Same as above, but a single script fragment to be evaled but not shown.
18987 finish_eval=$lt_finish_eval
18989 # Take the output of nm and produce a listing of raw symbols and C names.
18990 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18992 # Transform the output of nm in a proper C declaration
18993 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18995 # Transform the output of nm in a C name address pair
18996 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18998 # This is the shared library runtime path variable.
18999 runpath_var=$runpath_var
19001 # This is the shared library path variable.
19002 shlibpath_var=$shlibpath_var
19004 # Is shlibpath searched before the hard-coded library search path?
19005 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19007 # How to hardcode a shared library path into an executable.
19008 hardcode_action=$hardcode_action_RC
19010 # Whether we should hardcode library paths into libraries.
19011 hardcode_into_libs=$hardcode_into_libs
19013 # Flag to hardcode \$libdir into a binary during linking.
19014 # This must work even if \$libdir does not exist.
19015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19017 # If ld is used when linking, flag to hardcode \$libdir into
19018 # a binary during linking. This must work even if \$libdir does
19020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19022 # Whether we need a single -rpath flag with a separated argument.
19023 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19025 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19026 # resulting binary.
19027 hardcode_direct=$hardcode_direct_RC
19029 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19030 # resulting binary.
19031 hardcode_minus_L=$hardcode_minus_L_RC
19033 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19034 # the resulting binary.
19035 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19037 # Set to yes if building a shared library automatically hardcodes DIR into the library
19038 # and all subsequent libraries and executables linked against it.
19039 hardcode_automatic=$hardcode_automatic_RC
19041 # Variables whose values should be saved in libtool wrapper scripts and
19042 # restored at relink time.
19043 variables_saved_for_relink="$variables_saved_for_relink"
19045 # Whether libtool must link a program against all its dependency libraries.
19046 link_all_deplibs=$link_all_deplibs_RC
19048 # Compile-time system search path for libraries
19049 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19051 # Run-time system search path for libraries
19052 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19054 # Fix the shell variable \$srcfile for the compiler.
19055 fix_srcfile_path="$fix_srcfile_path_RC"
19057 # Set to yes if exported symbols are required.
19058 always_export_symbols=$always_export_symbols_RC
19060 # The commands to list exported symbols.
19061 export_symbols_cmds=$lt_export_symbols_cmds_RC
19063 # The commands to extract the exported symbol list from a shared archive.
19064 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19066 # Symbols that should not be listed in the preloaded symbols.
19067 exclude_expsyms=$lt_exclude_expsyms_RC
19069 # Symbols that must always be exported.
19070 include_expsyms=$lt_include_expsyms_RC
19072 # ### END LIBTOOL TAG CONFIG: $tagname
19078 # If there is no Makefile yet, we rely on a make rule to execute
19079 # `config.status --recheck' to rerun these tests and create the
19080 # libtool script then.
19081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19082 if test -f "$ltmain_in"; then
19083 test -f Makefile && make "$ltmain"
19089 ac_cpp='$CPP $CPPFLAGS'
19090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19099 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19100 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19101 { (exit 1); exit 1; }; }
19105 # Append the new tag name to the list of available tags.
19106 if test -n "$tagname" ; then
19107 available_tags="$available_tags $tagname"
19113 # Now substitute the updated list of available tags.
19114 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19115 mv "${ofile}T" "$ofile"
19119 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19120 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19121 { (exit 1); exit 1; }; }
19127 # This can be used to rebuild libtool when needed
19128 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19130 # Always use our own libtool.
19131 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19133 # Prevent multiple expansion
19156 #AC_CONFIG_HEADERS(sysdep.h)
19160 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
19161 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
19164 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
19168 # Find a good install program. We prefer a C program (faster),
19169 # so one script is as good as another. But avoid the broken or
19170 # incompatible versions:
19171 # SysV /etc/install, /usr/sbin/install
19172 # SunOS /usr/etc/install
19173 # IRIX /sbin/install
19175 # AmigaOS /C/install, which installs bootblocks on floppy discs
19176 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19177 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19178 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19179 # OS/2's system install, which has a completely different semantic
19180 # ./install, which can be erroneously created by make from ./install.sh.
19181 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19182 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19183 if test -z "$INSTALL"; then
19184 if test "${ac_cv_path_install+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188 for as_dir in $PATH
19191 test -z "$as_dir" && as_dir=.
19192 # Account for people who put trailing slashes in PATH elements.
19194 ./ | .// | /cC/* | \
19195 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19196 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19199 # OSF1 and SCO ODT 3.0 have their own names for install.
19200 # Don't use installbsd from OSF since it installs stuff as root
19202 for ac_prog in ginstall scoinst install; do
19203 for ac_exec_ext in '' $ac_executable_extensions; do
19204 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19205 if test $ac_prog = install &&
19206 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19207 # AIX install. It has an incompatible calling convention.
19209 elif test $ac_prog = install &&
19210 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19211 # program-specific install script used by HP pwplus--don't use.
19214 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19226 if test "${ac_cv_path_install+set}" = set; then
19227 INSTALL=$ac_cv_path_install
19229 # As a last resort, use the slow shell script. We don't cache a
19230 # path for INSTALL within a source directory, because that will
19231 # break other packages using the cache if that directory is
19232 # removed, or if the path is relative.
19233 INSTALL=$ac_install_sh
19236 echo "$as_me:$LINENO: result: $INSTALL" >&5
19237 echo "${ECHO_T}$INSTALL" >&6
19239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19240 # It thinks the first close brace ends the variable substitution.
19241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19247 # Extract the first word of "autoconf", so it can be a program name with args.
19248 set dummy autoconf; ac_word=$2
19249 echo "$as_me:$LINENO: checking for $ac_word" >&5
19250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19251 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 if test -n "$AUTOCONF"; then
19255 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
19257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19258 for as_dir in $PATH
19261 test -z "$as_dir" && as_dir=.
19262 for ac_exec_ext in '' $ac_executable_extensions; do
19263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19264 ac_cv_prog_AUTOCONF=""
19265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19273 AUTOCONF=$ac_cv_prog_AUTOCONF
19274 if test -n "$AUTOCONF"; then
19275 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
19276 echo "${ECHO_T}$AUTOCONF" >&6
19278 echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6
19282 # Extract the first word of "sed", so it can be a program name with args.
19283 set dummy sed; ac_word=$2
19284 echo "$as_me:$LINENO: checking for $ac_word" >&5
19285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19286 if test "${ac_cv_prog_SED+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 if test -n "$SED"; then
19290 ac_cv_prog_SED="$SED" # Let the user override the test.
19292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19293 for as_dir in $PATH
19296 test -z "$as_dir" && as_dir=.
19297 for ac_exec_ext in '' $ac_executable_extensions; do
19298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19299 ac_cv_prog_SED="sed"
19300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19306 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
19309 SED=$ac_cv_prog_SED
19310 if test -n "$SED"; then
19311 echo "$as_me:$LINENO: result: $SED" >&5
19312 echo "${ECHO_T}$SED" >&6
19314 echo "$as_me:$LINENO: result: no" >&5
19315 echo "${ECHO_T}no" >&6
19320 #AC_ARG_WITH(with_libical, [ --with-libical use libical calendaring library])
19321 #AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present])
19322 #AC_ARG_WITH(with_newt, [ --with-newt use newt window library])
19324 # [ --with-ssl=PATH Specify path to OpenSSL installation ],
19326 # if test "x$withval" != "xno" ; then
19327 # tryssldir=$withval
19331 #AC_DEFINE([HAVE_ICAL], [ --with-libical use libical calendaring library])
19333 cat >>confdefs.h <<\_ACEOF
19334 #define HAVE_OPENSSL 1
19339 PTHREAD_DEFS=-D_REENTRANT
19342 test -z "$CC" && CC=cc
19347 PTHREAD_DEFS=-D_THREAD_SAFE
19350 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
19356 ac_cpp='$CPP $CPPFLAGS'
19357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19360 if test -n "$ac_tool_prefix"; then
19361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19363 echo "$as_me:$LINENO: checking for $ac_word" >&5
19364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19365 if test "${ac_cv_prog_CC+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19368 if test -n "$CC"; then
19369 ac_cv_prog_CC="$CC" # Let the user override the test.
19371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19372 for as_dir in $PATH
19375 test -z "$as_dir" && as_dir=.
19376 for ac_exec_ext in '' $ac_executable_extensions; do
19377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19388 if test -n "$CC"; then
19389 echo "$as_me:$LINENO: result: $CC" >&5
19390 echo "${ECHO_T}$CC" >&6
19392 echo "$as_me:$LINENO: result: no" >&5
19393 echo "${ECHO_T}no" >&6
19397 if test -z "$ac_cv_prog_CC"; then
19399 # Extract the first word of "gcc", so it can be a program name with args.
19400 set dummy gcc; ac_word=$2
19401 echo "$as_me:$LINENO: checking for $ac_word" >&5
19402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 if test -n "$ac_ct_CC"; then
19407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19410 for as_dir in $PATH
19413 test -z "$as_dir" && as_dir=.
19414 for ac_exec_ext in '' $ac_executable_extensions; do
19415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19416 ac_cv_prog_ac_ct_CC="gcc"
19417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19426 if test -n "$ac_ct_CC"; then
19427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19428 echo "${ECHO_T}$ac_ct_CC" >&6
19430 echo "$as_me:$LINENO: result: no" >&5
19431 echo "${ECHO_T}no" >&6
19436 CC="$ac_cv_prog_CC"
19439 if test -z "$CC"; then
19440 if test -n "$ac_tool_prefix"; then
19441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19442 set dummy ${ac_tool_prefix}cc; ac_word=$2
19443 echo "$as_me:$LINENO: checking for $ac_word" >&5
19444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19445 if test "${ac_cv_prog_CC+set}" = set; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 if test -n "$CC"; then
19449 ac_cv_prog_CC="$CC" # Let the user override the test.
19451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19452 for as_dir in $PATH
19455 test -z "$as_dir" && as_dir=.
19456 for ac_exec_ext in '' $ac_executable_extensions; do
19457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19458 ac_cv_prog_CC="${ac_tool_prefix}cc"
19459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19468 if test -n "$CC"; then
19469 echo "$as_me:$LINENO: result: $CC" >&5
19470 echo "${ECHO_T}$CC" >&6
19472 echo "$as_me:$LINENO: result: no" >&5
19473 echo "${ECHO_T}no" >&6
19477 if test -z "$ac_cv_prog_CC"; then
19479 # Extract the first word of "cc", so it can be a program name with args.
19480 set dummy cc; ac_word=$2
19481 echo "$as_me:$LINENO: checking for $ac_word" >&5
19482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19486 if test -n "$ac_ct_CC"; then
19487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19490 for as_dir in $PATH
19493 test -z "$as_dir" && as_dir=.
19494 for ac_exec_ext in '' $ac_executable_extensions; do
19495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19496 ac_cv_prog_ac_ct_CC="cc"
19497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19506 if test -n "$ac_ct_CC"; then
19507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19508 echo "${ECHO_T}$ac_ct_CC" >&6
19510 echo "$as_me:$LINENO: result: no" >&5
19511 echo "${ECHO_T}no" >&6
19516 CC="$ac_cv_prog_CC"
19520 if test -z "$CC"; then
19521 # Extract the first word of "cc", so it can be a program name with args.
19522 set dummy cc; ac_word=$2
19523 echo "$as_me:$LINENO: checking for $ac_word" >&5
19524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19525 if test "${ac_cv_prog_CC+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 if test -n "$CC"; then
19529 ac_cv_prog_CC="$CC" # Let the user override the test.
19531 ac_prog_rejected=no
19532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19533 for as_dir in $PATH
19536 test -z "$as_dir" && as_dir=.
19537 for ac_exec_ext in '' $ac_executable_extensions; do
19538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19540 ac_prog_rejected=yes
19544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19550 if test $ac_prog_rejected = yes; then
19551 # We found a bogon in the path, so make sure we never use it.
19552 set dummy $ac_cv_prog_CC
19554 if test $# != 0; then
19555 # We chose a different compiler from the bogus one.
19556 # However, it has the same basename, so the bogon will be chosen
19557 # first if we set CC to just the basename; use the full file name.
19559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19565 if test -n "$CC"; then
19566 echo "$as_me:$LINENO: result: $CC" >&5
19567 echo "${ECHO_T}$CC" >&6
19569 echo "$as_me:$LINENO: result: no" >&5
19570 echo "${ECHO_T}no" >&6
19574 if test -z "$CC"; then
19575 if test -n "$ac_tool_prefix"; then
19578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19580 echo "$as_me:$LINENO: checking for $ac_word" >&5
19581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19582 if test "${ac_cv_prog_CC+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 if test -n "$CC"; then
19586 ac_cv_prog_CC="$CC" # Let the user override the test.
19588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in $PATH
19592 test -z "$as_dir" && as_dir=.
19593 for ac_exec_ext in '' $ac_executable_extensions; do
19594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19605 if test -n "$CC"; then
19606 echo "$as_me:$LINENO: result: $CC" >&5
19607 echo "${ECHO_T}$CC" >&6
19609 echo "$as_me:$LINENO: result: no" >&5
19610 echo "${ECHO_T}no" >&6
19613 test -n "$CC" && break
19616 if test -z "$CC"; then
19620 # Extract the first word of "$ac_prog", so it can be a program name with args.
19621 set dummy $ac_prog; ac_word=$2
19622 echo "$as_me:$LINENO: checking for $ac_word" >&5
19623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 if test -n "$ac_ct_CC"; then
19628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19631 for as_dir in $PATH
19634 test -z "$as_dir" && as_dir=.
19635 for ac_exec_ext in '' $ac_executable_extensions; do
19636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19637 ac_cv_prog_ac_ct_CC="$ac_prog"
19638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19647 if test -n "$ac_ct_CC"; then
19648 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19649 echo "${ECHO_T}$ac_ct_CC" >&6
19651 echo "$as_me:$LINENO: result: no" >&5
19652 echo "${ECHO_T}no" >&6
19655 test -n "$ac_ct_CC" && break
19664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19665 See \`config.log' for more details." >&5
19666 echo "$as_me: error: no acceptable C compiler found in \$PATH
19667 See \`config.log' for more details." >&2;}
19668 { (exit 1); exit 1; }; }
19670 # Provide some information about the compiler.
19671 echo "$as_me:$LINENO:" \
19672 "checking for C compiler version" >&5
19673 ac_compiler=`set X $ac_compile; echo $2`
19674 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19675 (eval $ac_compiler --version </dev/null >&5) 2>&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }
19679 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19680 (eval $ac_compiler -v </dev/null >&5) 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }
19684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19685 (eval $ac_compiler -V </dev/null >&5) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }
19690 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19691 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19692 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 cat >conftest.$ac_ext <<_ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19713 rm -f conftest.$ac_objext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19715 (eval $ac_compile) 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_c_werror_flag"
19723 || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_compiler_gnu=yes
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19746 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19747 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19748 GCC=`test $ac_compiler_gnu = yes && echo yes`
19749 ac_test_CFLAGS=${CFLAGS+set}
19750 ac_save_CFLAGS=$CFLAGS
19752 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19753 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19754 if test "${ac_cv_prog_cc_g+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19772 rm -f conftest.$ac_objext
19773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19774 (eval $ac_compile) 2>conftest.er1
19776 grep -v '^ *+' conftest.er1 >conftest.err
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -z "$ac_c_werror_flag"
19782 || test ! -s conftest.err'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; } &&
19788 { ac_try='test -s conftest.$ac_objext'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_cv_prog_cc_g=yes
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19804 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19805 if test "$ac_test_CFLAGS" = set; then
19806 CFLAGS=$ac_save_CFLAGS
19807 elif test $ac_cv_prog_cc_g = yes; then
19808 if test "$GCC" = yes; then
19814 if test "$GCC" = yes; then
19820 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19821 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19822 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 ac_cv_prog_cc_stdc=no
19827 cat >conftest.$ac_ext <<_ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19833 #include <stdarg.h>
19835 #include <sys/types.h>
19836 #include <sys/stat.h>
19837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19838 struct buf { int x; };
19839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19840 static char *e (p, i)
19846 static char *f (char * (*g) (char **, int), char **p, ...)
19851 s = g (p, va_arg (v,int));
19856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19857 function prototypes and stuff, but not '\xHH' hex character constants.
19858 These don't provoke an error unfortunately, instead are silently treated
19859 as 'x'. The following induces an error, until -std1 is added to get
19860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19861 array size at least. It's necessary to write '\x00'==0 to get something
19862 that's true only with -std1. */
19863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19865 int test (int i, double x);
19866 struct s1 {int (*f) (int a);};
19867 struct s2 {int (*f) (double a);};
19868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19879 # Don't try gcc -ansi; that turns off useful extensions and
19880 # breaks some systems' header files.
19881 # AIX -qlanglvl=ansi
19882 # Ultrix and OSF/1 -std1
19883 # HP-UX 10.20 and later -Ae
19884 # HP-UX older versions -Aa -D_HPUX_SOURCE
19885 # SVR4 -Xc -D__EXTENSIONS__
19886 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19888 CC="$ac_save_CC $ac_arg"
19889 rm -f conftest.$ac_objext
19890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19891 (eval $ac_compile) 2>conftest.er1
19893 grep -v '^ *+' conftest.er1 >conftest.err
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
19898 { ac_try='test -z "$ac_c_werror_flag"
19899 || test ! -s conftest.err'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; } &&
19905 { ac_try='test -s conftest.$ac_objext'
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
19911 ac_cv_prog_cc_stdc=$ac_arg
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19918 rm -f conftest.err conftest.$ac_objext
19920 rm -f conftest.$ac_ext conftest.$ac_objext
19925 case "x$ac_cv_prog_cc_stdc" in
19927 echo "$as_me:$LINENO: result: none needed" >&5
19928 echo "${ECHO_T}none needed" >&6 ;;
19930 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19931 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19932 CC="$CC $ac_cv_prog_cc_stdc" ;;
19935 # Some people use a C++ compiler to compile C. Since we use `exit',
19936 # in C++ we need to declare it. In case someone uses the same compiler
19937 # for both compiling C and C++ we need to have the C++ compiler decide
19938 # the declaration of exit, since it's the most demanding environment.
19939 cat >conftest.$ac_ext <<_ACEOF
19940 #ifndef __cplusplus
19944 rm -f conftest.$ac_objext
19945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19946 (eval $ac_compile) 2>conftest.er1
19948 grep -v '^ *+' conftest.er1 >conftest.err
19950 cat conftest.err >&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } &&
19953 { ac_try='test -z "$ac_c_werror_flag"
19954 || test ! -s conftest.err'
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
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 for ac_declaration in \
19968 'extern "C" void std::exit (int) throw (); using std::exit;' \
19969 'extern "C" void std::exit (int); using std::exit;' \
19970 'extern "C" void exit (int) throw ();' \
19971 'extern "C" void exit (int);' \
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19981 #include <stdlib.h>
19990 rm -f conftest.$ac_objext
19991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19992 (eval $ac_compile) 2>conftest.er1
19994 grep -v '^ *+' conftest.er1 >conftest.err
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
19999 { ac_try='test -z "$ac_c_werror_flag"
20000 || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20035 rm -f conftest.$ac_objext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20037 (eval $ac_compile) 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } &&
20044 { ac_try='test -z "$ac_c_werror_flag"
20045 || test ! -s conftest.err'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20066 if test -n "$ac_declaration"; then
20067 echo '#ifdef __cplusplus' >>confdefs.h
20068 echo $ac_declaration >>confdefs.h
20069 echo '#endif' >>confdefs.h
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079 ac_cpp='$CPP $CPPFLAGS'
20080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084 depcc="$CC" am_compiler_list=
20086 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20092 # We make a subdir and do the tests there. Otherwise we can end up
20093 # making bogus files that we don't know about and never remove. For
20094 # instance it was reported that on HP-UX the gcc test will end up
20095 # making a dummy file named `D' -- because `-MD' means `put the output
20098 # Copy depcomp to subdir because otherwise we won't find it if we're
20099 # using a relative directory.
20100 cp "$am_depcomp" conftest.dir
20102 # We will build objects and dependencies in a subdirectory because
20103 # it helps to detect inapplicable dependency modes. For instance
20104 # both Tru64's cc and ICC support -MD to output dependencies as a
20105 # side effect of compilation, but ICC will put the dependencies in
20106 # the current directory while Tru64 will put them in the object
20110 am_cv_CC_dependencies_compiler_type=none
20111 if test "$am_compiler_list" = ""; then
20112 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20114 for depmode in $am_compiler_list; do
20115 # Setup a source with many dependencies, because some compilers
20116 # like to wrap large dependency lists on column 80 (with \), and
20117 # we should not choose a depcomp mode which is confused by this.
20119 # We need to recreate these files for each test, as the compiler may
20120 # overwrite some of them when testing with obscure command lines.
20121 # This happens at least with the AIX C compiler.
20123 for i in 1 2 3 4 5 6; do
20124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20125 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20126 # Solaris 8's {/usr,}/bin/sh.
20127 touch sub/conftst$i.h
20129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20133 # after this tag, mechanisms are not by side-effect, so they'll
20134 # only be used when explicitly requested
20135 if test "x$enable_dependency_tracking" = xyes; then
20143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20144 # mode. It turns out that the SunPro C++ compiler does not properly
20145 # handle `-M -o', and we need to detect this.
20146 if depmode=$depmode \
20147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20150 >/dev/null 2>conftest.err &&
20151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20152 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20154 # icc doesn't choke on unknown options, it will just issue warnings
20155 # or remarks (even with -Werror). So we grep stderr for any message
20156 # that says an option was ignored or not supported.
20157 # When given -MP, icc 7.0 and 7.1 complain thusly:
20158 # icc: Command line warning: ignoring option '-M'; no argument required
20159 # The diagnosis changed in icc 8.0:
20160 # icc: Command line remark: option '-MP' not supported
20161 if (grep 'ignoring option' conftest.err ||
20162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20163 am_cv_CC_dependencies_compiler_type=$depmode
20170 rm -rf conftest.dir
20172 am_cv_CC_dependencies_compiler_type=none
20176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20183 test "x$enable_dependency_tracking" != xno \
20184 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20185 am__fastdepCC_TRUE=
20186 am__fastdepCC_FALSE='#'
20188 am__fastdepCC_TRUE='#'
20189 am__fastdepCC_FALSE=
20194 if test "$GCC" = yes; then
20197 CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
20200 CFLAGS="$CFLAGS -Wall"
20205 # missing_dir=`cd $ac_aux_dir && pwd`
20206 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
20208 if test "$LIBS" != -pthread; then
20210 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20211 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20212 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 ac_check_lib_save_LIBS=$LIBS
20216 LIBS="-lpthread $LIBS"
20217 cat >conftest.$ac_ext <<_ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h. */
20224 /* Override any gcc2 internal prototype to avoid an error. */
20228 /* We use char because int might match the return type of a gcc2
20229 builtin and then its argument prototype would still apply. */
20230 char pthread_create ();
20239 rm -f conftest.$ac_objext conftest$ac_exeext
20240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20241 (eval $ac_link) 2>conftest.er1
20243 grep -v '^ *+' conftest.er1 >conftest.err
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } &&
20248 { ac_try='test -z "$ac_c_werror_flag"
20249 || test ! -s conftest.err'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; } &&
20255 { ac_try='test -s conftest$ac_exeext'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
20261 ac_cv_lib_pthread_pthread_create=yes
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20266 ac_cv_lib_pthread_pthread_create=no
20268 rm -f conftest.err conftest.$ac_objext \
20269 conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20272 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20273 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20274 if test $ac_cv_lib_pthread_pthread_create = yes; then
20275 cat >>confdefs.h <<_ACEOF
20276 #define HAVE_LIBPTHREAD 1
20279 LIBS="-lpthread $LIBS"
20284 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20285 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20286 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 ac_check_lib_save_LIBS=$LIBS
20290 LIBS="-lpthreads $LIBS"
20291 cat >conftest.$ac_ext <<_ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20298 /* Override any gcc2 internal prototype to avoid an error. */
20302 /* We use char because int might match the return type of a gcc2
20303 builtin and then its argument prototype would still apply. */
20304 char pthread_create ();
20313 rm -f conftest.$ac_objext conftest$ac_exeext
20314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20315 (eval $ac_link) 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } &&
20322 { ac_try='test -z "$ac_c_werror_flag"
20323 || test ! -s conftest.err'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest$ac_exeext'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; }; then
20335 ac_cv_lib_pthreads_pthread_create=yes
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20340 ac_cv_lib_pthreads_pthread_create=no
20342 rm -f conftest.err conftest.$ac_objext \
20343 conftest$ac_exeext conftest.$ac_ext
20344 LIBS=$ac_check_lib_save_LIBS
20346 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20347 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20348 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20349 cat >>confdefs.h <<_ACEOF
20350 #define HAVE_LIBPTHREADS 1
20353 LIBS="-lpthreads $LIBS"
20358 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
20359 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
20360 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-liconv $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20372 /* Override any gcc2 internal prototype to avoid an error. */
20376 /* We use char because int might match the return type of a gcc2
20377 builtin and then its argument prototype would still apply. */
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20389 (eval $ac_link) 2>conftest.er1
20391 grep -v '^ *+' conftest.er1 >conftest.err
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } &&
20396 { ac_try='test -z "$ac_c_werror_flag"
20397 || test ! -s conftest.err'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; } &&
20403 { ac_try='test -s conftest$ac_exeext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_cv_lib_iconv_libiconv=yes
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20414 ac_cv_lib_iconv_libiconv=no
20416 rm -f conftest.err conftest.$ac_objext \
20417 conftest$ac_exeext conftest.$ac_ext
20418 LIBS=$ac_check_lib_save_LIBS
20420 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
20421 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
20422 if test $ac_cv_lib_iconv_libiconv = yes; then
20423 LIBS="$LIBS -liconv"
20426 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
20427 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
20428 if test "${ac_cv_search_gethostbyname+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 ac_func_search_save_LIBS=$LIBS
20432 ac_cv_search_gethostbyname=no
20433 cat >conftest.$ac_ext <<_ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20440 /* Override any gcc2 internal prototype to avoid an error. */
20444 /* We use char because int might match the return type of a gcc2
20445 builtin and then its argument prototype would still apply. */
20446 char gethostbyname ();
20455 rm -f conftest.$ac_objext conftest$ac_exeext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20457 (eval $ac_link) 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
20464 { ac_try='test -z "$ac_c_werror_flag"
20465 || test ! -s conftest.err'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest$ac_exeext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_search_gethostbyname="none required"
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20483 rm -f conftest.err conftest.$ac_objext \
20484 conftest$ac_exeext conftest.$ac_ext
20485 if test "$ac_cv_search_gethostbyname" = no; then
20486 for ac_lib in nsl; do
20487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20488 cat >conftest.$ac_ext <<_ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20495 /* Override any gcc2 internal prototype to avoid an error. */
20499 /* We use char because int might match the return type of a gcc2
20500 builtin and then its argument prototype would still apply. */
20501 char gethostbyname ();
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20512 (eval $ac_link) 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag"
20520 || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest$ac_exeext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_search_gethostbyname="-l$ac_lib"
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20539 rm -f conftest.err conftest.$ac_objext \
20540 conftest$ac_exeext conftest.$ac_ext
20543 LIBS=$ac_func_search_save_LIBS
20545 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
20546 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
20547 if test "$ac_cv_search_gethostbyname" != no; then
20548 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
20552 echo "$as_me:$LINENO: checking for library containing connect" >&5
20553 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
20554 if test "${ac_cv_search_connect+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 ac_func_search_save_LIBS=$LIBS
20558 ac_cv_search_connect=no
20559 cat >conftest.$ac_ext <<_ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20566 /* Override any gcc2 internal prototype to avoid an error. */
20570 /* We use char because int might match the return type of a gcc2
20571 builtin and then its argument prototype would still apply. */
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20583 (eval $ac_link) 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -z "$ac_c_werror_flag"
20591 || test ! -s conftest.err'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; } &&
20597 { ac_try='test -s conftest$ac_exeext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_cv_search_connect="none required"
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20609 rm -f conftest.err conftest.$ac_objext \
20610 conftest$ac_exeext conftest.$ac_ext
20611 if test "$ac_cv_search_connect" = no; then
20612 for ac_lib in socket; do
20613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20621 /* Override any gcc2 internal prototype to avoid an error. */
20625 /* We use char because int might match the return type of a gcc2
20626 builtin and then its argument prototype would still apply. */
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20638 (eval $ac_link) 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag"
20646 || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest$ac_exeext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_search_connect="-l$ac_lib"
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20665 rm -f conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20669 LIBS=$ac_func_search_save_LIBS
20671 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
20672 echo "${ECHO_T}$ac_cv_search_connect" >&6
20673 if test "$ac_cv_search_connect" != no; then
20674 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
20679 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20680 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20681 if test "${ac_cv_header_stdc+set}" = set; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 #include <stdlib.h>
20691 #include <stdarg.h>
20692 #include <string.h>
20703 rm -f conftest.$ac_objext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705 (eval $ac_compile) 2>conftest.er1
20707 grep -v '^ *+' conftest.er1 >conftest.err
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
20712 { ac_try='test -z "$ac_c_werror_flag"
20713 || test ! -s conftest.err'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest.$ac_objext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 ac_cv_header_stdc=yes
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 ac_cv_header_stdc=no
20732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20734 if test $ac_cv_header_stdc = yes; then
20735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20736 cat >conftest.$ac_ext <<_ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20742 #include <string.h>
20745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20746 $EGREP "memchr" >/dev/null 2>&1; then
20749 ac_cv_header_stdc=no
20755 if test $ac_cv_header_stdc = yes; then
20756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20757 cat >conftest.$ac_ext <<_ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 #include <stdlib.h>
20766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20767 $EGREP "free" >/dev/null 2>&1; then
20770 ac_cv_header_stdc=no
20776 if test $ac_cv_header_stdc = yes; then
20777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20778 if test "$cross_compiling" = yes; then
20781 cat >conftest.$ac_ext <<_ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20788 #if ((' ' & 0x0FF) == 0x020)
20789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20792 # define ISLOWER(c) \
20793 (('a' <= (c) && (c) <= 'i') \
20794 || ('j' <= (c) && (c) <= 'r') \
20795 || ('s' <= (c) && (c) <= 'z'))
20796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20804 for (i = 0; i < 256; i++)
20805 if (XOR (islower (i), ISLOWER (i))
20806 || toupper (i) != TOUPPER (i))
20811 rm -f conftest$ac_exeext
20812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20813 (eval $ac_link) 2>&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20824 echo "$as_me: program exited with status $ac_status" >&5
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ( exit $ac_status )
20829 ac_cv_header_stdc=no
20831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20835 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20836 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20837 if test $ac_cv_header_stdc = yes; then
20839 cat >>confdefs.h <<\_ACEOF
20840 #define STDC_HEADERS 1
20849 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20853 echo "$as_me:$LINENO: checking for $ac_header" >&5
20854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20861 # Is the header compilable?
20862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20864 cat >conftest.$ac_ext <<_ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20870 $ac_includes_default
20871 #include <$ac_header>
20873 rm -f conftest.$ac_objext
20874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20875 (eval $ac_compile) 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } &&
20882 { ac_try='test -z "$ac_c_werror_flag"
20883 || test ! -s conftest.err'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; } &&
20889 { ac_try='test -s conftest.$ac_objext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_header_compiler=yes
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_header_compiler=no
20902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20904 echo "${ECHO_T}$ac_header_compiler" >&6
20906 # Is the header present?
20907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20909 cat >conftest.$ac_ext <<_ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 #include <$ac_header>
20917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20920 grep -v '^ *+' conftest.er1 >conftest.err
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } >/dev/null; then
20925 if test -s conftest.err; then
20926 ac_cpp_err=$ac_c_preproc_warn_flag
20927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20934 if test -z "$ac_cpp_err"; then
20935 ac_header_preproc=yes
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_header_preproc=no
20942 rm -f conftest.err conftest.$ac_ext
20943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20944 echo "${ECHO_T}$ac_header_preproc" >&6
20946 # So? What about this header?
20947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20953 ac_header_preproc=yes
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20970 ## ------------------------------------- ##
20971 ## Report this to uncensored.citadel.org ##
20972 ## ------------------------------------- ##
20975 sed "s/^/$as_me: WARNING: /" >&2
20978 echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 eval "$as_ac_Header=\$ac_header_preproc"
20985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20990 cat >>confdefs.h <<_ACEOF
20991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21002 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21003 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21004 if test "${ac_cv_c_const+set}" = set; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 cat >conftest.$ac_ext <<_ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h. */
21017 /* FIXME: Include the comments suggested by Paul. */
21018 #ifndef __cplusplus
21019 /* Ultrix mips cc rejects this. */
21020 typedef int charset[2];
21022 /* SunOS 4.1.1 cc rejects this. */
21023 char const *const *ccp;
21025 /* NEC SVR4.0.2 mips cc rejects this. */
21026 struct point {int x, y;};
21027 static struct point const zero = {0,0};
21028 /* AIX XL C 1.02.0.0 rejects this.
21029 It does not let you subtract one const X* pointer from another in
21030 an arm of an if-expression whose if-part is not a constant
21032 const char *g = "string";
21033 ccp = &g + (g ? g-g : 0);
21034 /* HPUX 7.0 cc rejects these. */
21037 ccp = (char const *const *) p;
21038 { /* SCO 3.2v4 cc rejects this. */
21040 char const *s = 0 ? (char *) 0 : (char const *) 0;
21044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21045 int x[] = {25, 17};
21046 const int *foo = &x[0];
21049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21050 typedef const int *iptr;
21054 { /* AIX XL C 1.02.0.0 rejects this saying
21055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21056 struct s { int j; const int *ap[3]; };
21057 struct s *b; b->j = 5;
21059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21060 const int foo = 10;
21068 rm -f conftest.$ac_objext
21069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21070 (eval $ac_compile) 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
21077 { ac_try='test -z "$ac_c_werror_flag"
21078 || test ! -s conftest.err'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; } &&
21084 { ac_try='test -s conftest.$ac_objext'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; }; then
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21099 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21100 echo "${ECHO_T}$ac_cv_c_const" >&6
21101 if test $ac_cv_c_const = no; then
21103 cat >>confdefs.h <<\_ACEOF
21109 echo "$as_me:$LINENO: checking for off_t" >&5
21110 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21111 if test "${ac_cv_type_off_t+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 $ac_includes_default
21126 if (sizeof (off_t))
21132 rm -f conftest.$ac_objext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21134 (eval $ac_compile) 2>conftest.er1
21136 grep -v '^ *+' conftest.er1 >conftest.err
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } &&
21141 { ac_try='test -z "$ac_c_werror_flag"
21142 || test ! -s conftest.err'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; } &&
21148 { ac_try='test -s conftest.$ac_objext'
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_cv_type_off_t=yes
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_cv_type_off_t=no
21161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21163 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21164 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21165 if test $ac_cv_type_off_t = yes; then
21169 cat >>confdefs.h <<_ACEOF
21175 echo "$as_me:$LINENO: checking for size_t" >&5
21176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21177 if test "${ac_cv_type_size_t+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 cat >conftest.$ac_ext <<_ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21192 if (sizeof (size_t))
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>conftest.er1
21202 grep -v '^ *+' conftest.er1 >conftest.err
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_cv_type_size_t=yes
21222 echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21225 ac_cv_type_size_t=no
21227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21231 if test $ac_cv_type_size_t = yes; then
21235 cat >>confdefs.h <<_ACEOF
21236 #define size_t unsigned
21242 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21243 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21244 if test "${ac_cv_type_signal+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 #include <sys/types.h>
21254 #include <signal.h>
21259 extern "C" void (*signal (int, void (*)(int)))(int);
21261 void (*signal ()) ();
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274 (eval $ac_compile) 2>conftest.er1
21276 grep -v '^ *+' conftest.er1 >conftest.err
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } &&
21281 { ac_try='test -z "$ac_c_werror_flag"
21282 || test ! -s conftest.err'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; } &&
21288 { ac_try='test -s conftest.$ac_objext'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 ac_cv_type_signal=void
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_cv_type_signal=int
21301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21303 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21304 echo "${ECHO_T}$ac_cv_type_signal" >&6
21306 cat >>confdefs.h <<_ACEOF
21307 #define RETSIGTYPE $ac_cv_type_signal
21312 for ac_func in backtrace
21314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21315 echo "$as_me:$LINENO: checking for $ac_func" >&5
21316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21317 if eval "test \"\${$as_ac_var+set}\" = set"; then
21318 echo $ECHO_N "(cached) $ECHO_C" >&6
21320 cat >conftest.$ac_ext <<_ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21328 #define $ac_func innocuous_$ac_func
21330 /* System header to define __stub macros and hopefully few prototypes,
21331 which can conflict with char $ac_func (); below.
21332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21333 <limits.h> exists even on freestanding compilers. */
21336 # include <limits.h>
21338 # include <assert.h>
21343 /* Override any gcc2 internal prototype to avoid an error. */
21348 /* We use char because int might match the return type of a gcc2
21349 builtin and then its argument prototype would still apply. */
21351 /* The GNU C library defines this for functions which it implements
21352 to always fail with ENOSYS. Some functions are actually named
21353 something starting with __ and the normal name is an alias. */
21354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21357 char (*f) () = $ac_func;
21366 return f != $ac_func;
21371 rm -f conftest.$ac_objext conftest$ac_exeext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21373 (eval $ac_link) 2>conftest.er1
21375 grep -v '^ *+' conftest.er1 >conftest.err
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } &&
21380 { ac_try='test -z "$ac_c_werror_flag"
21381 || test ! -s conftest.err'
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; } &&
21387 { ac_try='test -s conftest$ac_exeext'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; }; then
21393 eval "$as_ac_var=yes"
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 eval "$as_ac_var=no"
21400 rm -f conftest.err conftest.$ac_objext \
21401 conftest$ac_exeext conftest.$ac_ext
21403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21405 if test `eval echo '${'$as_ac_var'}'` = yes; then
21406 cat >>confdefs.h <<_ACEOF
21407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21414 for ac_func in snprintf
21416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21417 echo "$as_me:$LINENO: checking for $ac_func" >&5
21418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21419 if eval "test \"\${$as_ac_var+set}\" = set"; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21422 cat >conftest.$ac_ext <<_ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21430 #define $ac_func innocuous_$ac_func
21432 /* System header to define __stub macros and hopefully few prototypes,
21433 which can conflict with char $ac_func (); below.
21434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21435 <limits.h> exists even on freestanding compilers. */
21438 # include <limits.h>
21440 # include <assert.h>
21445 /* Override any gcc2 internal prototype to avoid an error. */
21450 /* We use char because int might match the return type of a gcc2
21451 builtin and then its argument prototype would still apply. */
21453 /* The GNU C library defines this for functions which it implements
21454 to always fail with ENOSYS. Some functions are actually named
21455 something starting with __ and the normal name is an alias. */
21456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21459 char (*f) () = $ac_func;
21468 return f != $ac_func;
21473 rm -f conftest.$ac_objext conftest$ac_exeext
21474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21475 (eval $ac_link) 2>conftest.er1
21477 grep -v '^ *+' conftest.er1 >conftest.err
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } &&
21482 { ac_try='test -z "$ac_c_werror_flag"
21483 || test ! -s conftest.err'
21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; } &&
21489 { ac_try='test -s conftest$ac_exeext'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 eval "$as_ac_var=yes"
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 eval "$as_ac_var=no"
21502 rm -f conftest.err conftest.$ac_objext \
21503 conftest$ac_exeext conftest.$ac_ext
21505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21507 if test `eval echo '${'$as_ac_var'}'` = yes; then
21508 cat >>confdefs.h <<_ACEOF
21509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21514 "$ac_func.$ac_objext" | \
21515 *" $ac_func.$ac_objext" | \
21516 "$ac_func.$ac_objext "* | \
21517 *" $ac_func.$ac_objext "* ) ;;
21518 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21527 cat >>confdefs.h <<\_ACEOF
21528 #define HAVE_LIBICAL 1
21532 if test "x$with_libical" != xno ; then
21534 for ac_header in ical.h
21536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21538 echo "$as_me:$LINENO: checking for $ac_header" >&5
21539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21546 # Is the header compilable?
21547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 $ac_includes_default
21556 #include <$ac_header>
21558 rm -f conftest.$ac_objext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21560 (eval $ac_compile) 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } &&
21567 { ac_try='test -z "$ac_c_werror_flag"
21568 || test ! -s conftest.err'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; } &&
21574 { ac_try='test -s conftest.$ac_objext'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_header_compiler=yes
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_header_compiler=no
21587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21589 echo "${ECHO_T}$ac_header_compiler" >&6
21591 # Is the header present?
21592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 #include <$ac_header>
21602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21605 grep -v '^ *+' conftest.er1 >conftest.err
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } >/dev/null; then
21610 if test -s conftest.err; then
21611 ac_cpp_err=$ac_c_preproc_warn_flag
21612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21619 if test -z "$ac_cpp_err"; then
21620 ac_header_preproc=yes
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 ac_header_preproc=no
21627 rm -f conftest.err conftest.$ac_ext
21628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21629 echo "${ECHO_T}$ac_header_preproc" >&6
21631 # So? What about this header?
21632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21638 ac_header_preproc=yes
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21655 ## ------------------------------------- ##
21656 ## Report this to uncensored.citadel.org ##
21657 ## ------------------------------------- ##
21660 sed "s/^/$as_me: WARNING: /" >&2
21663 echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21666 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 eval "$as_ac_Header=\$ac_header_preproc"
21670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21675 cat >>confdefs.h <<_ACEOF
21676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21678 echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
21679 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
21680 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21683 ac_check_lib_save_LIBS=$LIBS
21684 LIBS="-lical $LIBS"
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21692 /* Override any gcc2 internal prototype to avoid an error. */
21696 /* We use char because int might match the return type of a gcc2
21697 builtin and then its argument prototype would still apply. */
21698 char icalcomponent_new ();
21702 icalcomponent_new ();
21707 rm -f conftest.$ac_objext conftest$ac_exeext
21708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21709 (eval $ac_link) 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
21716 { ac_try='test -z "$ac_c_werror_flag"
21717 || test ! -s conftest.err'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; } &&
21723 { ac_try='test -s conftest$ac_exeext'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 ac_cv_lib_ical_icalcomponent_new=yes
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_cv_lib_ical_icalcomponent_new=no
21736 rm -f conftest.err conftest.$ac_objext \
21737 conftest$ac_exeext conftest.$ac_ext
21738 LIBS=$ac_check_lib_save_LIBS
21740 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21741 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21742 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21752 if test "x$ok_libical" = xyes ; then
21754 if test "$cross_compiling" = yes; then
21755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21756 See \`config.log' for more details." >&5
21757 echo "$as_me: error: cannot run test program while cross compiling
21758 See \`config.log' for more details." >&2;}
21759 { (exit 1); exit 1; }; }
21761 cat >conftest.$ac_ext <<_ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21770 int major, minor, v;
21771 sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21772 v = 100*major + minor;
21773 printf("libical version: %i\n", v);
21775 printf("This version is ok.\n");
21778 printf("libical 0.24 or newer required.\n");
21779 printf("Citadel will be built without calendar support.\n");
21784 rm -f conftest$ac_exeext
21785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21786 (eval $ac_link) 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21796 LIBS="$LIBS -lical"
21797 cat >>confdefs.h <<\_ACEOF
21798 #define HAVE_LIBICAL 1
21804 echo "$as_me: program exited with status $ac_status" >&5
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21816 cat >>confdefs.h <<\_ACEOF
21817 #define with_zlib 1
21821 if test "x$ok_zlib" = xyes ; then
21826 # Check whether --with-ok_newt or --without-ok_newt was given.
21827 if test "${with_ok_newt+set}" = set; then
21828 withval="$with_ok_newt"
21832 for ac_header in newt.h
21834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21836 echo "$as_me:$LINENO: checking for $ac_header" >&5
21837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21844 # Is the header compilable?
21845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 $ac_includes_default
21854 #include <$ac_header>
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858 (eval $ac_compile) 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } &&
21865 { ac_try='test -z "$ac_c_werror_flag"
21866 || test ! -s conftest.err'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest.$ac_objext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 ac_header_compiler=yes
21880 echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21883 ac_header_compiler=no
21885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21887 echo "${ECHO_T}$ac_header_compiler" >&6
21889 # Is the header present?
21890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21892 cat >conftest.$ac_ext <<_ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898 #include <$ac_header>
21900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } >/dev/null; then
21908 if test -s conftest.err; then
21909 ac_cpp_err=$ac_c_preproc_warn_flag
21910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21917 if test -z "$ac_cpp_err"; then
21918 ac_header_preproc=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ac_header_preproc=no
21925 rm -f conftest.err conftest.$ac_ext
21926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21927 echo "${ECHO_T}$ac_header_preproc" >&6
21929 # So? What about this header?
21930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21936 ac_header_preproc=yes
21939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21953 ## ------------------------------------- ##
21954 ## Report this to uncensored.citadel.org ##
21955 ## ------------------------------------- ##
21958 sed "s/^/$as_me: WARNING: /" >&2
21961 echo "$as_me:$LINENO: checking for $ac_header" >&5
21962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 eval "$as_ac_Header=\$ac_header_preproc"
21968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21973 cat >>confdefs.h <<_ACEOF
21974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21976 echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21977 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21978 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21979 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 ac_check_lib_save_LIBS=$LIBS
21982 LIBS="-lnewt $LIBS"
21983 cat >conftest.$ac_ext <<_ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21990 /* Override any gcc2 internal prototype to avoid an error. */
21994 /* We use char because int might match the return type of a gcc2
21995 builtin and then its argument prototype would still apply. */
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22007 (eval $ac_link) 2>conftest.er1
22009 grep -v '^ *+' conftest.er1 >conftest.err
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } &&
22014 { ac_try='test -z "$ac_c_werror_flag"
22015 || test ! -s conftest.err'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; } &&
22021 { ac_try='test -s conftest$ac_exeext'
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
22027 ac_cv_lib_newt_newtInit=yes
22029 echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22032 ac_cv_lib_newt_newtInit=no
22034 rm -f conftest.err conftest.$ac_objext \
22035 conftest$ac_exeext conftest.$ac_ext
22036 LIBS=$ac_check_lib_save_LIBS
22038 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
22039 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
22040 if test $ac_cv_lib_newt_newtInit = yes; then
22054 if test "x$ok_newt" = xyes ; then
22055 SETUP_LIBS="-lnewt $SETUP_LIBS"
22058 # The big search for OpenSSL
22059 if test "$with_ssl" != "no"; then
22061 saved_LDFLAGS="$LDFLAGS"
22062 saved_CFLAGS="$CFLAGS"
22063 if test "x$prefix" != "xNONE"; then
22064 tryssldir="$tryssldir $prefix"
22066 echo "$as_me:$LINENO: checking for OpenSSL" >&5
22067 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
22068 if test "${ac_cv_openssldir+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22072 for ssldir in $tryssldir "" /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
22073 CFLAGS="$saved_CFLAGS"
22074 LDFLAGS="$saved_LDFLAGS"
22075 LIBS="$saved_LIBS -lssl -lcrypto"
22077 # Skip directories if they don't exist
22078 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
22081 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
22082 # Try to use $ssldir/lib if it exists, otherwise
22084 if test -d "$ssldir/lib" ; then
22085 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
22086 if test ! -z "$need_dash_r" ; then
22087 LDFLAGS="-R$ssldir/lib $LDFLAGS"
22090 LDFLAGS="-L$ssldir $saved_LDFLAGS"
22091 if test ! -z "$need_dash_r" ; then
22092 LDFLAGS="-R$ssldir $LDFLAGS"
22095 # Try to use $ssldir/include if it exists, otherwise
22097 if test -d "$ssldir/include" ; then
22098 CFLAGS="-I$ssldir/include $saved_CFLAGS"
22100 CFLAGS="-I$ssldir $saved_CFLAGS"
22104 # Basic test to check for compatible version and correct linking
22105 # *does not* test for RSA - that comes later.
22106 if test "$cross_compiling" = yes; then
22107 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22108 See \`config.log' for more details." >&5
22109 echo "$as_me: error: cannot run test program while cross compiling
22110 See \`config.log' for more details." >&2;}
22111 { (exit 1); exit 1; }; }
22113 cat >conftest.$ac_ext <<_ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22120 #include <string.h>
22121 #include <openssl/rand.h>
22125 memset(a, 0, sizeof(a));
22126 RAND_add(a, sizeof(a), sizeof(a));
22127 return(RAND_status() <= 0);
22131 rm -f conftest$ac_exeext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22133 (eval $ac_link) 2>&5
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
22147 echo "$as_me: program exited with status $ac_status" >&5
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ( exit $ac_status )
22155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22158 if test ! -z "$found_crypto" ; then
22163 if test -z "$ssldir" ; then
22167 if test ! -z "$found_crypto" ; then
22168 ac_cv_openssldir=$ssldir
22170 ac_cv_openssldir="no"
22174 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
22175 echo "${ECHO_T}$ac_cv_openssldir" >&6
22177 LDFLAGS="$saved_LDFLAGS"
22178 CFLAGS="$saved_CFLAGS"
22180 if test "x$ac_cv_openssldir" != "xno" ; then
22181 cat >>confdefs.h <<\_ACEOF
22182 #define HAVE_OPENSSL 1
22185 LIBS="-lssl -lcrypto $LIBS"
22186 ssldir=$ac_cv_openssldir
22187 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
22188 # Try to use $ssldir/lib if it exists, otherwise
22190 if test -d "$ssldir/lib" ; then
22191 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
22192 if test ! -z "$need_dash_r" ; then
22193 LDFLAGS="-R$ssldir/lib $LDFLAGS"
22196 LDFLAGS="-L$ssldir $saved_LDFLAGS"
22197 if test ! -z "$need_dash_r" ; then
22198 LDFLAGS="-R$ssldir $LDFLAGS"
22201 # Try to use $ssldir/include if it exists, otherwise
22203 if test -d "$ssldir/include" ; then
22204 CFLAGS="-I$ssldir/include $saved_CFLAGS"
22206 CFLAGS="-I$ssldir $saved_CFLAGS"
22214 cat >>confdefs.h <<\_ACEOF
22215 #define HAVE_ICONV 1
22219 if test "$ok_nls" != "no"; then
22220 echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
22221 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
22222 if test "$cross_compiling" = yes; then
22223 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22224 See \`config.log' for more details." >&5
22225 echo "$as_me: error: cannot run test program while cross compiling
22226 See \`config.log' for more details." >&2;}
22227 { (exit 1); exit 1; }; }
22229 cat >conftest.$ac_ext <<_ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22238 iconv_t ic = (iconv_t)(-1) ;
22239 ic = iconv_open("UTF-8", "us-ascii");
22245 rm -f conftest$ac_exeext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22247 (eval $ac_link) 2>&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252 (eval $ac_try) 2>&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); }; }; then
22258 echo "$as_me: program exited with status $ac_status" >&5
22259 echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22262 ( exit $ac_status )
22266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22270 if test "$ok_iconv" != "no"; then
22271 echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
22272 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
22273 cat >>confdefs.h <<\_ACEOF
22274 #define HAVE_ICONV 1
22278 echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
22279 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
22283 cat >>confdefs.h <<_ACEOF
22284 #define PREFIX "$prefix"
22291 # if we have intl/...
22295 if test -n "$ac_aux_dir"; then
22296 case "$ac_aux_dir" in
22297 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
22298 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22301 if test -z "$MKINSTALLDIRS"; then
22302 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22307 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22308 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22309 # Check whether --enable-nls or --disable-nls was given.
22310 if test "${enable_nls+set}" = set; then
22311 enableval="$enable_nls"
22316 echo "$as_me:$LINENO: result: $USE_NLS" >&5
22317 echo "${ECHO_T}$USE_NLS" >&6
22324 # Prepare PATH_SEPARATOR.
22325 # The user is always right.
22326 if test "${PATH_SEPARATOR+set}" != set; then
22327 echo "#! /bin/sh" >conf$$.sh
22328 echo "exit 0" >>conf$$.sh
22330 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22338 # Find out how to test for executable files. Don't use a zero-byte file,
22339 # as systems may use methods other than mode bits to determine executability.
22340 cat >conf$$.file <<_ASEOF
22344 chmod +x conf$$.file
22345 if test -x conf$$.file >/dev/null 2>&1; then
22346 ac_executable_p="test -x"
22348 ac_executable_p="test -f"
22352 # Extract the first word of "msgfmt", so it can be a program name with args.
22353 set dummy msgfmt; ac_word=$2
22354 echo "$as_me:$LINENO: checking for $ac_word" >&5
22355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22356 if test "${ac_cv_path_MSGFMT+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22361 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22364 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22365 for ac_dir in $PATH; do
22367 test -z "$ac_dir" && ac_dir=.
22368 for ac_exec_ext in '' $ac_executable_extensions; do
22369 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22370 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22371 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22372 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22379 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22383 MSGFMT="$ac_cv_path_MSGFMT"
22384 if test "$MSGFMT" != ":"; then
22385 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22386 echo "${ECHO_T}$MSGFMT" >&6
22388 echo "$as_me:$LINENO: result: no" >&5
22389 echo "${ECHO_T}no" >&6
22392 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22393 set dummy gmsgfmt; ac_word=$2
22394 echo "$as_me:$LINENO: checking for $ac_word" >&5
22395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22396 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22405 for as_dir in $PATH
22408 test -z "$as_dir" && as_dir=.
22409 for ac_exec_ext in '' $ac_executable_extensions; do
22410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22411 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22418 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22422 GMSGFMT=$ac_cv_path_GMSGFMT
22424 if test -n "$GMSGFMT"; then
22425 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22426 echo "${ECHO_T}$GMSGFMT" >&6
22428 echo "$as_me:$LINENO: result: no" >&5
22429 echo "${ECHO_T}no" >&6
22434 # Prepare PATH_SEPARATOR.
22435 # The user is always right.
22436 if test "${PATH_SEPARATOR+set}" != set; then
22437 echo "#! /bin/sh" >conf$$.sh
22438 echo "exit 0" >>conf$$.sh
22440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22448 # Find out how to test for executable files. Don't use a zero-byte file,
22449 # as systems may use methods other than mode bits to determine executability.
22450 cat >conf$$.file <<_ASEOF
22454 chmod +x conf$$.file
22455 if test -x conf$$.file >/dev/null 2>&1; then
22456 ac_executable_p="test -x"
22458 ac_executable_p="test -f"
22462 # Extract the first word of "xgettext", so it can be a program name with args.
22463 set dummy xgettext; ac_word=$2
22464 echo "$as_me:$LINENO: checking for $ac_word" >&5
22465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22466 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22469 case "$XGETTEXT" in
22471 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22474 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22475 for ac_dir in $PATH; do
22477 test -z "$ac_dir" && ac_dir=.
22478 for ac_exec_ext in '' $ac_executable_extensions; do
22479 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22480 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22481 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22482 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22489 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22493 XGETTEXT="$ac_cv_path_XGETTEXT"
22494 if test "$XGETTEXT" != ":"; then
22495 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22496 echo "${ECHO_T}$XGETTEXT" >&6
22498 echo "$as_me:$LINENO: result: no" >&5
22499 echo "${ECHO_T}no" >&6
22505 # Prepare PATH_SEPARATOR.
22506 # The user is always right.
22507 if test "${PATH_SEPARATOR+set}" != set; then
22508 echo "#! /bin/sh" >conf$$.sh
22509 echo "exit 0" >>conf$$.sh
22511 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22519 # Find out how to test for executable files. Don't use a zero-byte file,
22520 # as systems may use methods other than mode bits to determine executability.
22521 cat >conf$$.file <<_ASEOF
22525 chmod +x conf$$.file
22526 if test -x conf$$.file >/dev/null 2>&1; then
22527 ac_executable_p="test -x"
22529 ac_executable_p="test -f"
22533 # Extract the first word of "msgmerge", so it can be a program name with args.
22534 set dummy msgmerge; ac_word=$2
22535 echo "$as_me:$LINENO: checking for $ac_word" >&5
22536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22537 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22540 case "$MSGMERGE" in
22542 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22545 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22546 for ac_dir in $PATH; do
22548 test -z "$ac_dir" && ac_dir=.
22549 for ac_exec_ext in '' $ac_executable_extensions; do
22550 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22551 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22552 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22559 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22563 MSGMERGE="$ac_cv_path_MSGMERGE"
22564 if test "$MSGMERGE" != ":"; then
22565 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22566 echo "${ECHO_T}$MSGMERGE" >&6
22568 echo "$as_me:$LINENO: result: no" >&5
22569 echo "${ECHO_T}no" >&6
22573 if test "$GMSGFMT" != ":"; then
22574 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22575 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22578 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22579 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22580 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22585 if test "$XGETTEXT" != ":"; then
22586 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22587 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22590 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22591 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22597 ac_config_commands="$ac_config_commands default-1"
22601 if test "X$prefix" = "XNONE"; then
22602 acl_final_prefix="$ac_default_prefix"
22604 acl_final_prefix="$prefix"
22606 if test "X$exec_prefix" = "XNONE"; then
22607 acl_final_exec_prefix='${prefix}'
22609 acl_final_exec_prefix="$exec_prefix"
22611 acl_save_prefix="$prefix"
22612 prefix="$acl_final_prefix"
22613 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22614 prefix="$acl_save_prefix"
22617 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22618 if test "${with_gnu_ld+set}" = set; then
22619 withval="$with_gnu_ld"
22620 test "$withval" = no || with_gnu_ld=yes
22624 # Prepare PATH_SEPARATOR.
22625 # The user is always right.
22626 if test "${PATH_SEPARATOR+set}" != set; then
22627 echo "#! /bin/sh" >conf$$.sh
22628 echo "exit 0" >>conf$$.sh
22630 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22638 if test "$GCC" = yes; then
22639 # Check if gcc -print-prog-name=ld gives a path.
22640 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22641 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22644 # gcc leaves a trailing carriage return which upsets mingw
22645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22650 # Accept absolute paths.
22651 [\\/]* | [A-Za-z]:[\\/]*)
22652 re_direlt='/[^/][^/]*/\.\./'
22653 # Canonicalize the path of ld
22654 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22655 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22656 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22658 test -z "$LD" && LD="$ac_prog"
22661 # If it fails, then pretend we aren't using GCC.
22665 # If it is relative, then search for the first ld in PATH.
22666 with_gnu_ld=unknown
22669 elif test "$with_gnu_ld" = yes; then
22670 echo "$as_me:$LINENO: checking for GNU ld" >&5
22671 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22673 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22674 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22676 if test "${acl_cv_path_LD+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22679 if test -z "$LD"; then
22680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22681 for ac_dir in $PATH; do
22682 test -z "$ac_dir" && ac_dir=.
22683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22684 acl_cv_path_LD="$ac_dir/$ac_prog"
22685 # Check to see if the program is GNU ld. I'd rather use --version,
22686 # but apparently some GNU ld's only accept -v.
22687 # Break only if it was the GNU/non-GNU ld that we prefer.
22688 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22689 *GNU* | *'with BFD'*)
22690 test "$with_gnu_ld" != no && break ;;
22692 test "$with_gnu_ld" != yes && break ;;
22698 acl_cv_path_LD="$LD" # Let the user override the test with a path.
22702 LD="$acl_cv_path_LD"
22703 if test -n "$LD"; then
22704 echo "$as_me:$LINENO: result: $LD" >&5
22705 echo "${ECHO_T}$LD" >&6
22707 echo "$as_me:$LINENO: result: no" >&5
22708 echo "${ECHO_T}no" >&6
22710 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22711 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22712 { (exit 1); exit 1; }; }
22713 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22714 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22715 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22719 case `$LD -v 2>&1 </dev/null` in
22720 *GNU* | *'with BFD'*)
22721 acl_cv_prog_gnu_ld=yes ;;
22723 acl_cv_prog_gnu_ld=no ;;
22726 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22727 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22728 with_gnu_ld=$acl_cv_prog_gnu_ld
22732 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22733 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22734 if test "${acl_cv_rpath+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22738 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22739 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22741 rm -f ./conftest.sh
22745 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22746 echo "${ECHO_T}$acl_cv_rpath" >&6
22748 libext="$acl_cv_libext"
22749 shlibext="$acl_cv_shlibext"
22750 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22751 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22752 hardcode_direct="$acl_cv_hardcode_direct"
22753 hardcode_minus_L="$acl_cv_hardcode_minus_L"
22754 # Check whether --enable-rpath or --disable-rpath was given.
22755 if test "${enable_rpath+set}" = set; then
22756 enableval="$enable_rpath"
22770 acl_save_prefix="$prefix"
22771 prefix="$acl_final_prefix"
22772 acl_save_exec_prefix="$exec_prefix"
22773 exec_prefix="$acl_final_exec_prefix"
22775 eval additional_includedir=\"$includedir\"
22776 eval additional_libdir=\"$libdir\"
22778 exec_prefix="$acl_save_exec_prefix"
22779 prefix="$acl_save_prefix"
22782 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22783 if test "${with_libiconv_prefix+set}" = set; then
22784 withval="$with_libiconv_prefix"
22786 if test "X$withval" = "Xno"; then
22789 if test "X$withval" = "X"; then
22791 acl_save_prefix="$prefix"
22792 prefix="$acl_final_prefix"
22793 acl_save_exec_prefix="$exec_prefix"
22794 exec_prefix="$acl_final_exec_prefix"
22796 eval additional_includedir=\"$includedir\"
22797 eval additional_libdir=\"$libdir\"
22799 exec_prefix="$acl_save_exec_prefix"
22800 prefix="$acl_save_prefix"
22803 additional_includedir="$withval/include"
22804 additional_libdir="$withval/lib"
22814 names_already_handled=
22815 names_next_round='iconv '
22816 while test -n "$names_next_round"; do
22817 names_this_round="$names_next_round"
22819 for name in $names_this_round; do
22821 for n in $names_already_handled; do
22822 if test "$n" = "$name"; then
22823 already_handled=yes
22827 if test -z "$already_handled"; then
22828 names_already_handled="$names_already_handled $name"
22829 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22830 eval value=\"\$HAVE_LIB$uppername\"
22831 if test -n "$value"; then
22832 if test "$value" = yes; then
22833 eval value=\"\$LIB$uppername\"
22834 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22835 eval value=\"\$LTLIB$uppername\"
22836 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22845 if test $use_additional = yes; then
22846 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22847 found_dir="$additional_libdir"
22848 found_so="$additional_libdir/lib$name.$shlibext"
22849 if test -f "$additional_libdir/lib$name.la"; then
22850 found_la="$additional_libdir/lib$name.la"
22853 if test -f "$additional_libdir/lib$name.$libext"; then
22854 found_dir="$additional_libdir"
22855 found_a="$additional_libdir/lib$name.$libext"
22856 if test -f "$additional_libdir/lib$name.la"; then
22857 found_la="$additional_libdir/lib$name.la"
22862 if test "X$found_dir" = "X"; then
22863 for x in $LDFLAGS $LTLIBICONV; do
22865 acl_save_prefix="$prefix"
22866 prefix="$acl_final_prefix"
22867 acl_save_exec_prefix="$exec_prefix"
22868 exec_prefix="$acl_final_exec_prefix"
22870 exec_prefix="$acl_save_exec_prefix"
22871 prefix="$acl_save_prefix"
22875 dir=`echo "X$x" | sed -e 's/^X-L//'`
22876 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22878 found_so="$dir/lib$name.$shlibext"
22879 if test -f "$dir/lib$name.la"; then
22880 found_la="$dir/lib$name.la"
22883 if test -f "$dir/lib$name.$libext"; then
22885 found_a="$dir/lib$name.$libext"
22886 if test -f "$dir/lib$name.la"; then
22887 found_la="$dir/lib$name.la"
22893 if test "X$found_dir" != "X"; then
22898 if test "X$found_dir" != "X"; then
22899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22900 if test "X$found_so" != "X"; then
22901 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22902 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22905 for x in $ltrpathdirs; do
22906 if test "X$x" = "X$found_dir"; then
22911 if test -z "$haveit"; then
22912 ltrpathdirs="$ltrpathdirs $found_dir"
22914 if test "$hardcode_direct" = yes; then
22915 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22917 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22918 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22920 for x in $rpathdirs; do
22921 if test "X$x" = "X$found_dir"; then
22926 if test -z "$haveit"; then
22927 rpathdirs="$rpathdirs $found_dir"
22931 for x in $LDFLAGS $LIBICONV; do
22933 acl_save_prefix="$prefix"
22934 prefix="$acl_final_prefix"
22935 acl_save_exec_prefix="$exec_prefix"
22936 exec_prefix="$acl_final_exec_prefix"
22938 exec_prefix="$acl_save_exec_prefix"
22939 prefix="$acl_save_prefix"
22941 if test "X$x" = "X-L$found_dir"; then
22946 if test -z "$haveit"; then
22947 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22949 if test "$hardcode_minus_L" != no; then
22950 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22952 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22958 if test "X$found_a" != "X"; then
22959 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22961 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22964 additional_includedir=
22965 case "$found_dir" in
22967 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22968 additional_includedir="$basedir/include"
22971 if test "X$additional_includedir" != "X"; then
22972 if test "X$additional_includedir" != "X/usr/include"; then
22974 if test "X$additional_includedir" = "X/usr/local/include"; then
22975 if test -n "$GCC"; then
22977 linux*) haveit=yes;;
22981 if test -z "$haveit"; then
22982 for x in $CPPFLAGS $INCICONV; do
22984 acl_save_prefix="$prefix"
22985 prefix="$acl_final_prefix"
22986 acl_save_exec_prefix="$exec_prefix"
22987 exec_prefix="$acl_final_exec_prefix"
22989 exec_prefix="$acl_save_exec_prefix"
22990 prefix="$acl_save_prefix"
22992 if test "X$x" = "X-I$additional_includedir"; then
22997 if test -z "$haveit"; then
22998 if test -d "$additional_includedir"; then
22999 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
23005 if test -n "$found_la"; then
23006 save_libdir="$libdir"
23007 case "$found_la" in
23008 */* | *\\*) . "$found_la" ;;
23009 *) . "./$found_la" ;;
23011 libdir="$save_libdir"
23012 for dep in $dependency_libs; do
23015 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23016 if test "X$additional_libdir" != "X/usr/lib"; then
23018 if test "X$additional_libdir" = "X/usr/local/lib"; then
23019 if test -n "$GCC"; then
23021 linux*) haveit=yes;;
23025 if test -z "$haveit"; then
23027 for x in $LDFLAGS $LIBICONV; do
23029 acl_save_prefix="$prefix"
23030 prefix="$acl_final_prefix"
23031 acl_save_exec_prefix="$exec_prefix"
23032 exec_prefix="$acl_final_exec_prefix"
23034 exec_prefix="$acl_save_exec_prefix"
23035 prefix="$acl_save_prefix"
23037 if test "X$x" = "X-L$additional_libdir"; then
23042 if test -z "$haveit"; then
23043 if test -d "$additional_libdir"; then
23044 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
23048 for x in $LDFLAGS $LTLIBICONV; do
23050 acl_save_prefix="$prefix"
23051 prefix="$acl_final_prefix"
23052 acl_save_exec_prefix="$exec_prefix"
23053 exec_prefix="$acl_final_exec_prefix"
23055 exec_prefix="$acl_save_exec_prefix"
23056 prefix="$acl_save_prefix"
23058 if test "X$x" = "X-L$additional_libdir"; then
23063 if test -z "$haveit"; then
23064 if test -d "$additional_libdir"; then
23065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
23072 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23073 if test "$enable_rpath" != no; then
23075 for x in $rpathdirs; do
23076 if test "X$x" = "X$dir"; then
23081 if test -z "$haveit"; then
23082 rpathdirs="$rpathdirs $dir"
23085 for x in $ltrpathdirs; do
23086 if test "X$x" = "X$dir"; then
23091 if test -z "$haveit"; then
23092 ltrpathdirs="$ltrpathdirs $dir"
23097 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23100 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23103 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
23104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
23110 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23111 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
23117 if test "X$rpathdirs" != "X"; then
23118 if test -n "$hardcode_libdir_separator"; then
23120 for found_dir in $rpathdirs; do
23121 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23123 acl_save_libdir="$libdir"
23125 eval flag=\"$hardcode_libdir_flag_spec\"
23126 libdir="$acl_save_libdir"
23127 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23129 for found_dir in $rpathdirs; do
23130 acl_save_libdir="$libdir"
23131 libdir="$found_dir"
23132 eval flag=\"$hardcode_libdir_flag_spec\"
23133 libdir="$acl_save_libdir"
23134 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23138 if test "X$ltrpathdirs" != "X"; then
23139 for found_dir in $ltrpathdirs; do
23140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23145 cat >conftest.$ac_ext <<_ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23151 #include <locale.h>
23155 extern locale_t wc_locales[]
23160 rm -f conftest.$ac_objext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23162 (eval $ac_compile) 2>conftest.er1
23164 grep -v '^ *+' conftest.er1 >conftest.err
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
23169 { ac_try='test -z "$ac_c_werror_flag"
23170 || test ! -s conftest.err'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } &&
23176 { ac_try='test -s conftest.$ac_objext'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23200 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23201 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
23202 # Check whether --enable-nls or --disable-nls was given.
23203 if test "${enable_nls+set}" = set; then
23204 enableval="$enable_nls"
23209 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23210 echo "${ECHO_T}$USE_NLS" >&6
23219 if test "$USE_NLS" = "yes"; then
23220 gt_use_preinstalled_gnugettext=no
23227 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23228 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
23229 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23232 cat >conftest.$ac_ext <<_ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 #include <libintl.h>
23239 extern int _nl_msg_cat_cntr;
23240 extern int *_nl_domain_bindings;
23244 bindtextdomain ("", "");
23245 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
23250 rm -f conftest.$ac_objext conftest$ac_exeext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23252 (eval $ac_link) 2>conftest.er1
23254 grep -v '^ *+' conftest.er1 >conftest.err
23256 cat conftest.err >&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } &&
23259 { ac_try='test -z "$ac_c_werror_flag"
23260 || test ! -s conftest.err'
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; } &&
23266 { ac_try='test -s conftest$ac_exeext'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; }; then
23272 gt_cv_func_gnugettext2_libc=yes
23274 echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 gt_cv_func_gnugettext2_libc=no
23279 rm -f conftest.err conftest.$ac_objext \
23280 conftest$ac_exeext conftest.$ac_ext
23282 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
23283 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
23285 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
23291 am_save_CPPFLAGS="$CPPFLAGS"
23293 for element in $INCICONV; do
23295 for x in $CPPFLAGS; do
23297 acl_save_prefix="$prefix"
23298 prefix="$acl_final_prefix"
23299 acl_save_exec_prefix="$exec_prefix"
23300 exec_prefix="$acl_final_exec_prefix"
23302 exec_prefix="$acl_save_exec_prefix"
23303 prefix="$acl_save_prefix"
23305 if test "X$x" = "X$element"; then
23310 if test -z "$haveit"; then
23311 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23316 echo "$as_me:$LINENO: checking for iconv" >&5
23317 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23318 if test "${am_cv_func_iconv+set}" = set; then
23319 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 am_cv_func_iconv="no, consider installing GNU libiconv"
23324 cat >conftest.$ac_ext <<_ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h. */
23330 #include <stdlib.h>
23335 iconv_t cd = iconv_open("","");
23336 iconv(cd,NULL,NULL,NULL,NULL);
23342 rm -f conftest.$ac_objext conftest$ac_exeext
23343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23344 (eval $ac_link) 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
23351 { ac_try='test -z "$ac_c_werror_flag"
23352 || test ! -s conftest.err'
23353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; } &&
23358 { ac_try='test -s conftest$ac_exeext'
23359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360 (eval $ac_try) 2>&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); }; }; then
23364 am_cv_func_iconv=yes
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23370 rm -f conftest.err conftest.$ac_objext \
23371 conftest$ac_exeext conftest.$ac_ext
23372 if test "$am_cv_func_iconv" != yes; then
23373 am_save_LIBS="$LIBS"
23374 LIBS="$LIBS $LIBICONV"
23375 cat >conftest.$ac_ext <<_ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23381 #include <stdlib.h>
23386 iconv_t cd = iconv_open("","");
23387 iconv(cd,NULL,NULL,NULL,NULL);
23393 rm -f conftest.$ac_objext conftest$ac_exeext
23394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23395 (eval $ac_link) 2>conftest.er1
23397 grep -v '^ *+' conftest.er1 >conftest.err
23399 cat conftest.err >&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } &&
23402 { ac_try='test -z "$ac_c_werror_flag"
23403 || test ! -s conftest.err'
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; } &&
23409 { ac_try='test -s conftest$ac_exeext'
23410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; }; then
23415 am_cv_lib_iconv=yes
23416 am_cv_func_iconv=yes
23418 echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23422 rm -f conftest.err conftest.$ac_objext \
23423 conftest$ac_exeext conftest.$ac_ext
23424 LIBS="$am_save_LIBS"
23428 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23429 echo "${ECHO_T}$am_cv_func_iconv" >&6
23430 if test "$am_cv_func_iconv" = yes; then
23432 cat >>confdefs.h <<\_ACEOF
23433 #define HAVE_ICONV 1
23437 if test "$am_cv_lib_iconv" = yes; then
23438 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23439 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23440 echo "$as_me:$LINENO: result: $LIBICONV" >&5
23441 echo "${ECHO_T}$LIBICONV" >&6
23443 CPPFLAGS="$am_save_CPPFLAGS"
23455 acl_save_prefix="$prefix"
23456 prefix="$acl_final_prefix"
23457 acl_save_exec_prefix="$exec_prefix"
23458 exec_prefix="$acl_final_exec_prefix"
23460 eval additional_includedir=\"$includedir\"
23461 eval additional_libdir=\"$libdir\"
23463 exec_prefix="$acl_save_exec_prefix"
23464 prefix="$acl_save_prefix"
23467 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23468 if test "${with_libintl_prefix+set}" = set; then
23469 withval="$with_libintl_prefix"
23471 if test "X$withval" = "Xno"; then
23474 if test "X$withval" = "X"; then
23476 acl_save_prefix="$prefix"
23477 prefix="$acl_final_prefix"
23478 acl_save_exec_prefix="$exec_prefix"
23479 exec_prefix="$acl_final_exec_prefix"
23481 eval additional_includedir=\"$includedir\"
23482 eval additional_libdir=\"$libdir\"
23484 exec_prefix="$acl_save_exec_prefix"
23485 prefix="$acl_save_prefix"
23488 additional_includedir="$withval/include"
23489 additional_libdir="$withval/lib"
23499 names_already_handled=
23500 names_next_round='intl '
23501 while test -n "$names_next_round"; do
23502 names_this_round="$names_next_round"
23504 for name in $names_this_round; do
23506 for n in $names_already_handled; do
23507 if test "$n" = "$name"; then
23508 already_handled=yes
23512 if test -z "$already_handled"; then
23513 names_already_handled="$names_already_handled $name"
23514 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23515 eval value=\"\$HAVE_LIB$uppername\"
23516 if test -n "$value"; then
23517 if test "$value" = yes; then
23518 eval value=\"\$LIB$uppername\"
23519 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23520 eval value=\"\$LTLIB$uppername\"
23521 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23530 if test $use_additional = yes; then
23531 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23532 found_dir="$additional_libdir"
23533 found_so="$additional_libdir/lib$name.$shlibext"
23534 if test -f "$additional_libdir/lib$name.la"; then
23535 found_la="$additional_libdir/lib$name.la"
23538 if test -f "$additional_libdir/lib$name.$libext"; then
23539 found_dir="$additional_libdir"
23540 found_a="$additional_libdir/lib$name.$libext"
23541 if test -f "$additional_libdir/lib$name.la"; then
23542 found_la="$additional_libdir/lib$name.la"
23547 if test "X$found_dir" = "X"; then
23548 for x in $LDFLAGS $LTLIBINTL; do
23550 acl_save_prefix="$prefix"
23551 prefix="$acl_final_prefix"
23552 acl_save_exec_prefix="$exec_prefix"
23553 exec_prefix="$acl_final_exec_prefix"
23555 exec_prefix="$acl_save_exec_prefix"
23556 prefix="$acl_save_prefix"
23560 dir=`echo "X$x" | sed -e 's/^X-L//'`
23561 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23563 found_so="$dir/lib$name.$shlibext"
23564 if test -f "$dir/lib$name.la"; then
23565 found_la="$dir/lib$name.la"
23568 if test -f "$dir/lib$name.$libext"; then
23570 found_a="$dir/lib$name.$libext"
23571 if test -f "$dir/lib$name.la"; then
23572 found_la="$dir/lib$name.la"
23578 if test "X$found_dir" != "X"; then
23583 if test "X$found_dir" != "X"; then
23584 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23585 if test "X$found_so" != "X"; then
23586 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23587 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23590 for x in $ltrpathdirs; do
23591 if test "X$x" = "X$found_dir"; then
23596 if test -z "$haveit"; then
23597 ltrpathdirs="$ltrpathdirs $found_dir"
23599 if test "$hardcode_direct" = yes; then
23600 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23602 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23603 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23605 for x in $rpathdirs; do
23606 if test "X$x" = "X$found_dir"; then
23611 if test -z "$haveit"; then
23612 rpathdirs="$rpathdirs $found_dir"
23616 for x in $LDFLAGS $LIBINTL; do
23618 acl_save_prefix="$prefix"
23619 prefix="$acl_final_prefix"
23620 acl_save_exec_prefix="$exec_prefix"
23621 exec_prefix="$acl_final_exec_prefix"
23623 exec_prefix="$acl_save_exec_prefix"
23624 prefix="$acl_save_prefix"
23626 if test "X$x" = "X-L$found_dir"; then
23631 if test -z "$haveit"; then
23632 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23634 if test "$hardcode_minus_L" != no; then
23635 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23637 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23643 if test "X$found_a" != "X"; then
23644 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23646 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23649 additional_includedir=
23650 case "$found_dir" in
23652 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23653 additional_includedir="$basedir/include"
23656 if test "X$additional_includedir" != "X"; then
23657 if test "X$additional_includedir" != "X/usr/include"; then
23659 if test "X$additional_includedir" = "X/usr/local/include"; then
23660 if test -n "$GCC"; then
23662 linux*) haveit=yes;;
23666 if test -z "$haveit"; then
23667 for x in $CPPFLAGS $INCINTL; do
23669 acl_save_prefix="$prefix"
23670 prefix="$acl_final_prefix"
23671 acl_save_exec_prefix="$exec_prefix"
23672 exec_prefix="$acl_final_exec_prefix"
23674 exec_prefix="$acl_save_exec_prefix"
23675 prefix="$acl_save_prefix"
23677 if test "X$x" = "X-I$additional_includedir"; then
23682 if test -z "$haveit"; then
23683 if test -d "$additional_includedir"; then
23684 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23690 if test -n "$found_la"; then
23691 save_libdir="$libdir"
23692 case "$found_la" in
23693 */* | *\\*) . "$found_la" ;;
23694 *) . "./$found_la" ;;
23696 libdir="$save_libdir"
23697 for dep in $dependency_libs; do
23700 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23701 if test "X$additional_libdir" != "X/usr/lib"; then
23703 if test "X$additional_libdir" = "X/usr/local/lib"; then
23704 if test -n "$GCC"; then
23706 linux*) haveit=yes;;
23710 if test -z "$haveit"; then
23712 for x in $LDFLAGS $LIBINTL; do
23714 acl_save_prefix="$prefix"
23715 prefix="$acl_final_prefix"
23716 acl_save_exec_prefix="$exec_prefix"
23717 exec_prefix="$acl_final_exec_prefix"
23719 exec_prefix="$acl_save_exec_prefix"
23720 prefix="$acl_save_prefix"
23722 if test "X$x" = "X-L$additional_libdir"; then
23727 if test -z "$haveit"; then
23728 if test -d "$additional_libdir"; then
23729 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23733 for x in $LDFLAGS $LTLIBINTL; do
23735 acl_save_prefix="$prefix"
23736 prefix="$acl_final_prefix"
23737 acl_save_exec_prefix="$exec_prefix"
23738 exec_prefix="$acl_final_exec_prefix"
23740 exec_prefix="$acl_save_exec_prefix"
23741 prefix="$acl_save_prefix"
23743 if test "X$x" = "X-L$additional_libdir"; then
23748 if test -z "$haveit"; then
23749 if test -d "$additional_libdir"; then
23750 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23757 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23758 if test "$enable_rpath" != no; then
23760 for x in $rpathdirs; do
23761 if test "X$x" = "X$dir"; then
23766 if test -z "$haveit"; then
23767 rpathdirs="$rpathdirs $dir"
23770 for x in $ltrpathdirs; do
23771 if test "X$x" = "X$dir"; then
23776 if test -z "$haveit"; then
23777 ltrpathdirs="$ltrpathdirs $dir"
23782 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23785 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23788 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23789 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23795 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23796 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23802 if test "X$rpathdirs" != "X"; then
23803 if test -n "$hardcode_libdir_separator"; then
23805 for found_dir in $rpathdirs; do
23806 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23808 acl_save_libdir="$libdir"
23810 eval flag=\"$hardcode_libdir_flag_spec\"
23811 libdir="$acl_save_libdir"
23812 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23814 for found_dir in $rpathdirs; do
23815 acl_save_libdir="$libdir"
23816 libdir="$found_dir"
23817 eval flag=\"$hardcode_libdir_flag_spec\"
23818 libdir="$acl_save_libdir"
23819 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23823 if test "X$ltrpathdirs" != "X"; then
23824 for found_dir in $ltrpathdirs; do
23825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23829 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23830 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23831 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 gt_save_CPPFLAGS="$CPPFLAGS"
23835 CPPFLAGS="$CPPFLAGS $INCINTL"
23836 gt_save_LIBS="$LIBS"
23837 LIBS="$LIBS $LIBINTL"
23838 cat >conftest.$ac_ext <<_ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h. */
23844 #include <libintl.h>
23845 extern int _nl_msg_cat_cntr;
23850 const char *_nl_expand_alias ();
23854 bindtextdomain ("", "");
23855 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23860 rm -f conftest.$ac_objext conftest$ac_exeext
23861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23862 (eval $ac_link) 2>conftest.er1
23864 grep -v '^ *+' conftest.er1 >conftest.err
23866 cat conftest.err >&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); } &&
23869 { ac_try='test -z "$ac_c_werror_flag"
23870 || test ! -s conftest.err'
23871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23872 (eval $ac_try) 2>&5
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); }; } &&
23876 { ac_try='test -s conftest$ac_exeext'
23877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23878 (eval $ac_try) 2>&5
23880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); }; }; then
23882 gt_cv_func_gnugettext2_libintl=yes
23884 echo "$as_me: failed program was:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23887 gt_cv_func_gnugettext2_libintl=no
23889 rm -f conftest.err conftest.$ac_objext \
23890 conftest$ac_exeext conftest.$ac_ext
23891 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23892 LIBS="$LIBS $LIBICONV"
23893 cat >conftest.$ac_ext <<_ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h. */
23899 #include <libintl.h>
23900 extern int _nl_msg_cat_cntr;
23905 const char *_nl_expand_alias ();
23909 bindtextdomain ("", "");
23910 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23915 rm -f conftest.$ac_objext conftest$ac_exeext
23916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23917 (eval $ac_link) 2>conftest.er1
23919 grep -v '^ *+' conftest.er1 >conftest.err
23921 cat conftest.err >&5
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); } &&
23924 { ac_try='test -z "$ac_c_werror_flag"
23925 || test ! -s conftest.err'
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; } &&
23931 { ac_try='test -s conftest$ac_exeext'
23932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933 (eval $ac_try) 2>&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); }; }; then
23937 LIBINTL="$LIBINTL $LIBICONV"
23938 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23939 gt_cv_func_gnugettext2_libintl=yes
23942 echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23946 rm -f conftest.err conftest.$ac_objext \
23947 conftest$ac_exeext conftest.$ac_ext
23949 CPPFLAGS="$gt_save_CPPFLAGS"
23950 LIBS="$gt_save_LIBS"
23952 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23953 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23956 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23957 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23958 && test "$PACKAGE" != gettext-runtime \
23959 && test "$PACKAGE" != gettext-tools; }; then
23960 gt_use_preinstalled_gnugettext=yes
23969 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23970 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23972 cat >>confdefs.h <<\_ACEOF
23973 #define ENABLE_NLS 1
23981 echo "$as_me:$LINENO: checking whether to use NLS" >&5
23982 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23983 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23984 echo "${ECHO_T}$USE_NLS" >&6
23985 if test "$USE_NLS" = "yes"; then
23986 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23987 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23988 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23989 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23990 gt_source="external libintl"
23995 gt_source="included intl directory"
23997 echo "$as_me:$LINENO: result: $gt_source" >&5
23998 echo "${ECHO_T}$gt_source" >&6
24001 if test "$USE_NLS" = "yes"; then
24003 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24004 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
24005 echo "$as_me:$LINENO: checking how to link with libintl" >&5
24006 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
24007 echo "$as_me:$LINENO: result: $LIBINTL" >&5
24008 echo "${ECHO_T}$LIBINTL" >&6
24010 for element in $INCINTL; do
24012 for x in $CPPFLAGS; do
24014 acl_save_prefix="$prefix"
24015 prefix="$acl_final_prefix"
24016 acl_save_exec_prefix="$exec_prefix"
24017 exec_prefix="$acl_final_exec_prefix"
24019 exec_prefix="$acl_save_exec_prefix"
24020 prefix="$acl_save_prefix"
24022 if test "X$x" = "X$element"; then
24027 if test -z "$haveit"; then
24028 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24035 cat >>confdefs.h <<\_ACEOF
24036 #define HAVE_GETTEXT 1
24040 cat >>confdefs.h <<\_ACEOF
24041 #define HAVE_DCGETTEXT 1
24051 INTLLIBS="$LIBINTL"
24060 echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24080 # Check whether --with-rundir or --without-rundir was given.
24081 if test "${with_rundir+set}" = set; then
24082 withval="$with_rundir"
24085 rundir=/usr/local/citadel
24088 cat >>confdefs.h <<_ACEOF
24089 #define RUNDIR "$rundir"
24095 # Check whether --with-staticdir or --without-staticdir was given.
24096 if test "${with_staticdir+set}" = set; then
24097 withval="$with_staticdir"
24105 # Check whether --with-staticrundir or --without-staticrundir was given.
24106 if test "${with_staticrundir+set}" = set; then
24107 withval="$with_staticrundir"
24108 staticrundir=$withval
24110 staticrundir=$staticdir
24114 cat >>confdefs.h <<_ACEOF
24115 #define DATADIR "$staticrundir"
24121 # Check whether --with-editordir or --without-editordir was given.
24122 if test "${with_editordir+set}" = set; then
24123 withval="$with_editordir"
24126 editordir=$staticrundir
24130 cat >>confdefs.h <<_ACEOF
24131 #define EDITORDIR "$editordir"
24137 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
24138 cat >confcache <<\_ACEOF
24139 # This file is a shell script that caches the results of configure
24140 # tests run on this system so they can be shared between configure
24141 # scripts and configure runs, see configure's option --config-cache.
24142 # It is not useful on other systems. If it contains results you don't
24143 # want to keep, you may remove or edit it.
24145 # config.status only pays attention to the cache file if you give it
24146 # the --recheck option to rerun configure.
24148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24150 # following values.
24154 # The following way of writing the cache mishandles newlines in values,
24155 # but we know of no workaround that is simple, portable, and efficient.
24156 # So, don't put newlines in cache variables' values.
24157 # Ultrix sh set writes to stderr and can't be redirected directly,
24158 # and sets the high bit in the cache file unless we assign to the vars.
24161 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24163 # `set' does not quote correctly, so add quotes (double-quote
24164 # substitution turns \\\\ into \\, and sed turns \\ into \).
24167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24170 # `set' quotes correctly as required by POSIX, so do not add quotes.
24172 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24181 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24183 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24184 if test -w $cache_file; then
24185 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24186 cat confcache >$cache_file
24188 echo "not updating unwritable cache $cache_file"
24193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24194 # Let make expand exec_prefix.
24195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24199 # trailing colons and then remove the whole line if VPATH becomes empty
24200 # (actually we leave an empty line to preserve line numbers).
24201 if test "x$srcdir" = x.; then
24202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24203 s/:*\$(srcdir):*/:/;
24204 s/:*\${srcdir}:*/:/;
24206 s/^\([^=]*=[ ]*\):*/\1/;
24212 DEFS=-DHAVE_CONFIG_H
24216 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24217 # 1. Remove the extension, and $U if already installed.
24218 ac_i=`echo "$ac_i" |
24219 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24221 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24222 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24224 LIBOBJS=$ac_libobjs
24226 LTLIBOBJS=$ac_ltlibobjs
24229 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24230 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24231 Usually this means the macro was only invoked conditionally." >&5
24232 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24233 Usually this means the macro was only invoked conditionally." >&2;}
24234 { (exit 1); exit 1; }; }
24236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24237 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24238 Usually this means the macro was only invoked conditionally." >&5
24239 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24240 Usually this means the macro was only invoked conditionally." >&2;}
24241 { (exit 1); exit 1; }; }
24243 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24244 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24245 Usually this means the macro was only invoked conditionally." >&5
24246 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24247 Usually this means the macro was only invoked conditionally." >&2;}
24248 { (exit 1); exit 1; }; }
24250 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24251 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24252 Usually this means the macro was only invoked conditionally." >&5
24253 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24254 Usually this means the macro was only invoked conditionally." >&2;}
24255 { (exit 1); exit 1; }; }
24258 : ${CONFIG_STATUS=./config.status}
24259 ac_clean_files_save=$ac_clean_files
24260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24261 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24262 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24263 cat >$CONFIG_STATUS <<_ACEOF
24265 # Generated by $as_me.
24266 # Run this file to recreate the current configuration.
24267 # Compiler output produced by configure, useful for debugging
24268 # configure, is in config.log if it exists.
24271 ac_cs_recheck=false
24273 SHELL=\${CONFIG_SHELL-$SHELL}
24276 cat >>$CONFIG_STATUS <<\_ACEOF
24277 ## --------------------- ##
24278 ## M4sh Initialization. ##
24279 ## --------------------- ##
24281 # Be Bourne compatible
24282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24285 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24286 # is contrary to our usage. Disable this feature.
24287 alias -g '${1+"$@"}'='"$@"'
24288 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24291 DUALCASE=1; export DUALCASE # for MKS sh
24293 # Support unset when possible.
24294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24301 # Work around bugs in pre-3.0 UWIN ksh.
24302 $as_unset ENV MAIL MAILPATH
24309 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24310 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24311 LC_TELEPHONE LC_TIME
24313 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24314 eval $as_var=C; export $as_var
24320 # Required to use basename.
24321 if expr a : '\(a\)' >/dev/null 2>&1; then
24327 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24328 as_basename=basename
24334 # Name of the executable.
24335 as_me=`$as_basename "$0" ||
24336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24337 X"$0" : 'X\(//\)$' \| \
24338 X"$0" : 'X\(/\)$' \| \
24339 . : '\(.\)' 2>/dev/null ||
24341 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24342 /^X\/\(\/\/\)$/{ s//\1/; q; }
24343 /^X\/\(\/\).*/{ s//\1/; q; }
24347 # PATH needs CR, and LINENO needs CR and PATH.
24348 # Avoid depending upon Character Ranges.
24349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24352 as_cr_digits='0123456789'
24353 as_cr_alnum=$as_cr_Letters$as_cr_digits
24355 # The user is always right.
24356 if test "${PATH_SEPARATOR+set}" != set; then
24357 echo "#! /bin/sh" >conf$$.sh
24358 echo "exit 0" >>conf$$.sh
24360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24369 as_lineno_1=$LINENO
24370 as_lineno_2=$LINENO
24371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24372 test "x$as_lineno_1" != "x$as_lineno_2" &&
24373 test "x$as_lineno_3" = "x$as_lineno_2" || {
24374 # Find who we are. Look in the path if we contain no path at all
24377 *[\\/]* ) as_myself=$0 ;;
24378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24379 for as_dir in $PATH
24382 test -z "$as_dir" && as_dir=.
24383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24388 # We did not find ourselves, most probably we were run as `sh COMMAND'
24389 # in which case we are not to be found in the path.
24390 if test "x$as_myself" = x; then
24393 if test ! -f "$as_myself"; then
24394 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24395 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24396 { (exit 1); exit 1; }; }
24398 case $CONFIG_SHELL in
24400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24401 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24404 test -z "$as_dir" && as_dir=.
24405 for as_base in sh bash ksh sh5; do
24408 if ("$as_dir/$as_base" -c '
24409 as_lineno_1=$LINENO
24410 as_lineno_2=$LINENO
24411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24412 test "x$as_lineno_1" != "x$as_lineno_2" &&
24413 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24414 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24415 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24416 CONFIG_SHELL=$as_dir/$as_base
24417 export CONFIG_SHELL
24418 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24427 # uniformly replaced by the line number. The first 'sed' inserts a
24428 # line-number line before each line; the second 'sed' does the real
24429 # work. The second script uses 'N' to pair each line-number line
24430 # with the numbered line, and appends trailing '-' during
24431 # substitution so that $LINENO is not a special case at line end.
24432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24433 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24434 sed '=' <$as_myself |
24439 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24442 s,^['$as_cr_digits']*\n,,
24443 ' >$as_me.lineno &&
24444 chmod +x $as_me.lineno ||
24445 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24446 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24447 { (exit 1); exit 1; }; }
24449 # Don't try to exec as it changes $[0], causing all sort of problems
24450 # (the dirname of $[0] is not the place where we might find the
24451 # original and so on. Autoconf is especially sensible to this).
24453 # Exit status is that of the last command.
24458 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24459 *c*,-n*) ECHO_N= ECHO_C='
24461 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24462 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24465 if expr a : '\(a\)' >/dev/null 2>&1; then
24471 rm -f conf$$ conf$$.exe conf$$.file
24473 if ln -s conf$$.file conf$$ 2>/dev/null; then
24474 # We could just check for DJGPP; but this test a) works b) is more generic
24475 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24476 if test -f conf$$.exe; then
24477 # Don't use ln at all; we don't have any links
24482 elif ln conf$$.file conf$$ 2>/dev/null; then
24487 rm -f conf$$ conf$$.exe conf$$.file
24489 if mkdir -p . 2>/dev/null; then
24492 test -d ./-p && rmdir ./-p
24496 as_executable_p="test -f"
24498 # Sed expression to map a string onto a valid CPP name.
24499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24501 # Sed expression to map a string onto a valid variable name.
24502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24506 # We need space, tab and new line, in precisely that order.
24516 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24517 # report actual input values of CONFIG_FILES etc. instead of their
24518 # values after options handling. Logging --version etc. is OK.
24522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24523 ## Running $as_me. ##
24528 This file was extended by webcit $as_me 6.80, which was
24529 generated by GNU Autoconf 2.59. Invocation command line was
24531 CONFIG_FILES = $CONFIG_FILES
24532 CONFIG_HEADERS = $CONFIG_HEADERS
24533 CONFIG_LINKS = $CONFIG_LINKS
24534 CONFIG_COMMANDS = $CONFIG_COMMANDS
24538 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24542 # Files that config.status was made for.
24543 if test -n "$ac_config_files"; then
24544 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24547 if test -n "$ac_config_headers"; then
24548 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24551 if test -n "$ac_config_links"; then
24552 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24555 if test -n "$ac_config_commands"; then
24556 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24559 cat >>$CONFIG_STATUS <<\_ACEOF
24562 \`$as_me' instantiates files from templates according to the
24563 current configuration.
24565 Usage: $0 [OPTIONS] [FILE]...
24567 -h, --help print this help, then exit
24568 -V, --version print version number, then exit
24569 -q, --quiet do not print progress messages
24570 -d, --debug don't remove temporary files
24571 --recheck update $as_me by reconfiguring in the same conditions
24572 --file=FILE[:TEMPLATE]
24573 instantiate the configuration file FILE
24574 --header=FILE[:TEMPLATE]
24575 instantiate the configuration header FILE
24577 Configuration files:
24580 Configuration headers:
24583 Configuration commands:
24586 Report bugs to <bug-autoconf@gnu.org>."
24589 cat >>$CONFIG_STATUS <<_ACEOF
24591 webcit config.status 6.80
24592 configured by $0, generated by GNU Autoconf 2.59,
24593 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24595 Copyright (C) 2003 Free Software Foundation, Inc.
24596 This config.status script is free software; the Free Software Foundation
24597 gives unlimited permission to copy, distribute and modify it."
24602 cat >>$CONFIG_STATUS <<\_ACEOF
24603 # If no file are specified by the user, then we need to provide default
24604 # value. By we need to know if files were specified by the user.
24610 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24611 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24619 *) # This is not an option, so the user has probably given explicit
24622 ac_need_defaults=false;;
24626 # Handling of the options.
24628 cat >>$CONFIG_STATUS <<\_ACEOF
24629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24631 --version | --vers* | -V )
24632 echo "$ac_cs_version"; exit 0 ;;
24634 # Conflict between --help and --header
24635 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24636 Try \`$0 --help' for more information." >&5
24637 echo "$as_me: error: ambiguous option: $1
24638 Try \`$0 --help' for more information." >&2;}
24639 { (exit 1); exit 1; }; };;
24640 --help | --hel | -h )
24641 echo "$ac_cs_usage"; exit 0 ;;
24642 --debug | --d* | -d )
24644 --file | --fil | --fi | --f )
24646 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24647 ac_need_defaults=false;;
24648 --header | --heade | --head | --hea )
24650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24651 ac_need_defaults=false;;
24652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24656 # This is an error.
24657 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24658 Try \`$0 --help' for more information." >&5
24659 echo "$as_me: error: unrecognized option: $1
24660 Try \`$0 --help' for more information." >&2;}
24661 { (exit 1); exit 1; }; } ;;
24663 *) ac_config_targets="$ac_config_targets $1" ;;
24669 ac_configure_extra_args=
24671 if $ac_cs_silent; then
24673 ac_configure_extra_args="$ac_configure_extra_args --silent"
24677 cat >>$CONFIG_STATUS <<_ACEOF
24678 if \$ac_cs_recheck; then
24679 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24680 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24685 cat >>$CONFIG_STATUS <<_ACEOF
24687 # INIT-COMMANDS section.
24690 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24691 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24692 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24694 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24695 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24696 LINGUAS="${LINGUAS-%UNSET%}"
24703 cat >>$CONFIG_STATUS <<\_ACEOF
24704 for ac_config_target in $ac_config_targets
24706 case "$ac_config_target" in
24707 # Handling of arguments.
24708 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24709 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24710 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24711 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24712 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24713 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24716 { (exit 1); exit 1; }; };;
24720 # If the user did not use the arguments to specify the items to instantiate,
24721 # then the envvar interface is used. Set only those that are not.
24722 # We use the long form for the default assignment because of an extremely
24723 # bizarre bug on SunOS 4.1.3.
24724 if $ac_need_defaults; then
24725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24727 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24730 # Have a temporary directory for convenience. Make it in the build tree
24731 # simply because there is no reason to put it here, and in addition,
24732 # creating and moving files from /tmp can sometimes cause problems.
24733 # Create a temporary directory, and hook for its removal unless debugging.
24736 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24737 trap '{ (exit 1); exit 1; }' 1 2 13 15
24740 # Create a (secure) tmp directory for tmp files.
24743 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24744 test -n "$tmp" && test -d "$tmp"
24747 tmp=./confstat$$-$RANDOM
24748 (umask 077 && mkdir $tmp)
24751 echo "$me: cannot create a temporary directory in ." >&2
24752 { (exit 1); exit 1; }
24757 cat >>$CONFIG_STATUS <<_ACEOF
24760 # CONFIG_FILES section.
24763 # No need to generate the scripts if there are no CONFIG_FILES.
24764 # This happens for instance when ./config.status config.h
24765 if test -n "\$CONFIG_FILES"; then
24766 # Protect against being on the right side of a sed subst in config.status.
24767 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24768 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24769 s,@SHELL@,$SHELL,;t t
24770 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24771 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24772 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24773 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24774 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24775 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24776 s,@exec_prefix@,$exec_prefix,;t t
24777 s,@prefix@,$prefix,;t t
24778 s,@program_transform_name@,$program_transform_name,;t t
24779 s,@bindir@,$bindir,;t t
24780 s,@sbindir@,$sbindir,;t t
24781 s,@libexecdir@,$libexecdir,;t t
24782 s,@datadir@,$datadir,;t t
24783 s,@sysconfdir@,$sysconfdir,;t t
24784 s,@sharedstatedir@,$sharedstatedir,;t t
24785 s,@localstatedir@,$localstatedir,;t t
24786 s,@libdir@,$libdir,;t t
24787 s,@includedir@,$includedir,;t t
24788 s,@oldincludedir@,$oldincludedir,;t t
24789 s,@infodir@,$infodir,;t t
24790 s,@mandir@,$mandir,;t t
24791 s,@build_alias@,$build_alias,;t t
24792 s,@host_alias@,$host_alias,;t t
24793 s,@target_alias@,$target_alias,;t t
24794 s,@DEFS@,$DEFS,;t t
24795 s,@ECHO_C@,$ECHO_C,;t t
24796 s,@ECHO_N@,$ECHO_N,;t t
24797 s,@ECHO_T@,$ECHO_T,;t t
24798 s,@LIBS@,$LIBS,;t t
24799 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24800 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24801 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24802 s,@CYGPATH_W@,$CYGPATH_W,;t t
24803 s,@PACKAGE@,$PACKAGE,;t t
24804 s,@VERSION@,$VERSION,;t t
24805 s,@ACLOCAL@,$ACLOCAL,;t t
24806 s,@AUTOCONF@,$AUTOCONF,;t t
24807 s,@AUTOMAKE@,$AUTOMAKE,;t t
24808 s,@AUTOHEADER@,$AUTOHEADER,;t t
24809 s,@MAKEINFO@,$MAKEINFO,;t t
24810 s,@install_sh@,$install_sh,;t t
24811 s,@STRIP@,$STRIP,;t t
24812 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24813 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24814 s,@mkdir_p@,$mkdir_p,;t t
24816 s,@SET_MAKE@,$SET_MAKE,;t t
24817 s,@am__leading_dot@,$am__leading_dot,;t t
24818 s,@AMTAR@,$AMTAR,;t t
24819 s,@am__tar@,$am__tar,;t t
24820 s,@am__untar@,$am__untar,;t t
24821 s,@build@,$build,;t t
24822 s,@build_cpu@,$build_cpu,;t t
24823 s,@build_vendor@,$build_vendor,;t t
24824 s,@build_os@,$build_os,;t t
24825 s,@host@,$host,;t t
24826 s,@host_cpu@,$host_cpu,;t t
24827 s,@host_vendor@,$host_vendor,;t t
24828 s,@host_os@,$host_os,;t t
24830 s,@CFLAGS@,$CFLAGS,;t t
24831 s,@LDFLAGS@,$LDFLAGS,;t t
24832 s,@CPPFLAGS@,$CPPFLAGS,;t t
24833 s,@ac_ct_CC@,$ac_ct_CC,;t t
24834 s,@EXEEXT@,$EXEEXT,;t t
24835 s,@OBJEXT@,$OBJEXT,;t t
24836 s,@DEPDIR@,$DEPDIR,;t t
24837 s,@am__include@,$am__include,;t t
24838 s,@am__quote@,$am__quote,;t t
24839 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24840 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24841 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24842 s,@CCDEPMODE@,$CCDEPMODE,;t t
24843 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24844 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24845 s,@EGREP@,$EGREP,;t t
24846 s,@LN_S@,$LN_S,;t t
24847 s,@ECHO@,$ECHO,;t t
24849 s,@ac_ct_AR@,$ac_ct_AR,;t t
24850 s,@RANLIB@,$RANLIB,;t t
24851 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24854 s,@CXXFLAGS@,$CXXFLAGS,;t t
24855 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24856 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24857 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24858 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24859 s,@CXXCPP@,$CXXCPP,;t t
24861 s,@FFLAGS@,$FFLAGS,;t t
24862 s,@ac_ct_F77@,$ac_ct_F77,;t t
24863 s,@LIBTOOL@,$LIBTOOL,;t t
24864 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24866 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24867 s,@LIBOBJS@,$LIBOBJS,;t t
24868 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24869 s,@USE_NLS@,$USE_NLS,;t t
24870 s,@MSGFMT@,$MSGFMT,;t t
24871 s,@GMSGFMT@,$GMSGFMT,;t t
24872 s,@XGETTEXT@,$XGETTEXT,;t t
24873 s,@MSGMERGE@,$MSGMERGE,;t t
24874 s,@LIBICONV@,$LIBICONV,;t t
24875 s,@LTLIBICONV@,$LTLIBICONV,;t t
24876 s,@INTLLIBS@,$INTLLIBS,;t t
24877 s,@LIBINTL@,$LIBINTL,;t t
24878 s,@LTLIBINTL@,$LTLIBINTL,;t t
24879 s,@POSUB@,$POSUB,;t t
24880 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24881 s,@staticdir@,$staticdir,;t t
24882 s,@editordir@,$editordir,;t t
24883 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24888 cat >>$CONFIG_STATUS <<\_ACEOF
24889 # Split the substitutions into bite-sized pieces for seds with
24890 # small command number limits, like on Digital OSF/1 and HP-UX.
24891 ac_max_sed_lines=48
24892 ac_sed_frag=1 # Number of current file.
24893 ac_beg=1 # First line for current file.
24894 ac_end=$ac_max_sed_lines # Line after last line for current file.
24897 while $ac_more_lines; do
24898 if test $ac_beg -gt 1; then
24899 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24901 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24903 if test ! -s $tmp/subs.frag; then
24904 ac_more_lines=false
24906 # The purpose of the label and of the branching condition is to
24907 # speed up the sed processing (if there are no `@' at all, there
24908 # is no need to browse any of the substitutions).
24909 # These are the two extra sed commands mentioned above.
24911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24912 if test -z "$ac_sed_cmds"; then
24913 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24915 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24917 ac_sed_frag=`expr $ac_sed_frag + 1`
24919 ac_end=`expr $ac_end + $ac_max_sed_lines`
24922 if test -z "$ac_sed_cmds"; then
24925 fi # test -n "$CONFIG_FILES"
24928 cat >>$CONFIG_STATUS <<\_ACEOF
24929 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24932 - | *:- | *:-:* ) # input from stdin
24934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24938 * ) ac_file_in=$ac_file.in ;;
24941 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24942 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24944 X"$ac_file" : 'X\(//\)[^/]' \| \
24945 X"$ac_file" : 'X\(//\)$' \| \
24946 X"$ac_file" : 'X\(/\)' \| \
24947 . : '\(.\)' 2>/dev/null ||
24949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24951 /^X\(\/\/\)$/{ s//\1/; q; }
24952 /^X\(\/\).*/{ s//\1/; q; }
24954 { if $as_mkdir_p; then
24959 while test ! -d "$as_dir"; do
24960 as_dirs="$as_dir $as_dirs"
24961 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24963 X"$as_dir" : 'X\(//\)[^/]' \| \
24964 X"$as_dir" : 'X\(//\)$' \| \
24965 X"$as_dir" : 'X\(/\)' \| \
24966 . : '\(.\)' 2>/dev/null ||
24968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24970 /^X\(\/\/\)$/{ s//\1/; q; }
24971 /^X\(\/\).*/{ s//\1/; q; }
24974 test ! -n "$as_dirs" || mkdir $as_dirs
24975 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24976 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24977 { (exit 1); exit 1; }; }; }
24981 if test "$ac_dir" != .; then
24982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24983 # A "../" for each directory in $ac_dir_suffix.
24984 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24986 ac_dir_suffix= ac_top_builddir=
24990 .) # No --srcdir option. We are building in place.
24992 if test -z "$ac_top_builddir"; then
24995 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24997 [\\/]* | ?:[\\/]* ) # Absolute path.
24998 ac_srcdir=$srcdir$ac_dir_suffix;
24999 ac_top_srcdir=$srcdir ;;
25000 *) # Relative path.
25001 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25002 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25005 # Do not use `cd foo && pwd` to compute absolute paths, because
25006 # the directories may not exist.
25008 .) ac_abs_builddir="$ac_dir";;
25011 .) ac_abs_builddir=`pwd`;;
25012 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25013 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25016 case $ac_abs_builddir in
25017 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25019 case ${ac_top_builddir}. in
25020 .) ac_abs_top_builddir=$ac_abs_builddir;;
25021 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25022 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25025 case $ac_abs_builddir in
25026 .) ac_abs_srcdir=$ac_srcdir;;
25029 .) ac_abs_srcdir=$ac_abs_builddir;;
25030 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25031 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25034 case $ac_abs_builddir in
25035 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25037 case $ac_top_srcdir in
25038 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25039 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25040 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25047 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25050 if test x"$ac_file" != x-; then
25051 { echo "$as_me:$LINENO: creating $ac_file" >&5
25052 echo "$as_me: creating $ac_file" >&6;}
25055 # Let's still pretend it is `configure' which instantiates (i.e., don't
25056 # use $as_me), people would be surprised to read:
25057 # /* config.h. Generated by config.status. */
25058 if test x"$ac_file" = x-; then
25061 configure_input="$ac_file. "
25063 configure_input=$configure_input"Generated from `echo $ac_file_in |
25064 sed 's,.*/,,'` by configure."
25066 # First look for the input files in the build tree, otherwise in the
25068 ac_file_inputs=`IFS=:
25069 for f in $ac_file_in; do
25071 -) echo $tmp/stdin ;;
25073 # Absolute (can't be DOS-style, as IFS=:)
25074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25075 echo "$as_me: error: cannot find input file: $f" >&2;}
25076 { (exit 1); exit 1; }; }
25079 if test -f "$f"; then
25082 elif test -f "$srcdir/$f"; then
25087 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25088 echo "$as_me: error: cannot find input file: $f" >&2;}
25089 { (exit 1); exit 1; }; }
25092 done` || { (exit 1); exit 1; }
25094 cat >>$CONFIG_STATUS <<_ACEOF
25098 cat >>$CONFIG_STATUS <<\_ACEOF
25100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25101 s,@configure_input@,$configure_input,;t t
25102 s,@srcdir@,$ac_srcdir,;t t
25103 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25104 s,@top_srcdir@,$ac_top_srcdir,;t t
25105 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25106 s,@builddir@,$ac_builddir,;t t
25107 s,@abs_builddir@,$ac_abs_builddir,;t t
25108 s,@top_builddir@,$ac_top_builddir,;t t
25109 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25110 s,@INSTALL@,$ac_INSTALL,;t t
25111 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25113 if test x"$ac_file" != x-; then
25114 mv $tmp/out $ac_file
25122 cat >>$CONFIG_STATUS <<\_ACEOF
25125 # CONFIG_HEADER section.
25128 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25129 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25131 # ac_d sets the value in "#define NAME VALUE" lines.
25132 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25133 ac_dB='[ ].*$,\1#\2'
25136 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25137 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25138 ac_uB='$,\1#\2define\3'
25142 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25145 - | *:- | *:-:* ) # input from stdin
25147 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25149 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25151 * ) ac_file_in=$ac_file.in ;;
25154 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25155 echo "$as_me: creating $ac_file" >&6;}
25157 # First look for the input files in the build tree, otherwise in the
25159 ac_file_inputs=`IFS=:
25160 for f in $ac_file_in; do
25162 -) echo $tmp/stdin ;;
25164 # Absolute (can't be DOS-style, as IFS=:)
25165 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25166 echo "$as_me: error: cannot find input file: $f" >&2;}
25167 { (exit 1); exit 1; }; }
25168 # Do quote $f, to prevent DOS paths from being IFS'd.
25171 if test -f "$f"; then
25174 elif test -f "$srcdir/$f"; then
25179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25180 echo "$as_me: error: cannot find input file: $f" >&2;}
25181 { (exit 1); exit 1; }; }
25184 done` || { (exit 1); exit 1; }
25185 # Remove the trailing spaces.
25186 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25190 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25191 # `conftest.undefs', that substitutes the proper values into
25192 # config.h.in to produce config.h. The first handles `#define'
25193 # templates, and the second `#undef' templates.
25194 # And first: Protect against being on the right side of a sed subst in
25195 # config.status. Protect against being in an unquoted here document
25196 # in config.status.
25197 rm -f conftest.defines conftest.undefs
25198 # Using a here document instead of a string reduces the quoting nightmare.
25199 # Putting comments in sed scripts is not portable.
25201 # `end' is used to avoid that the second main sed command (meant for
25202 # 0-ary CPP macros) applies to n-ary macro definitions.
25203 # See the Autoconf documentation for `clear'.
25204 cat >confdef2sed.sed <<\_ACEOF
25209 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25211 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25214 # If some macros were called several times there might be several times
25215 # the same #defines, which is useless. Nevertheless, we may not want to
25216 # sort them, since we want the *last* AC-DEFINE to be honored.
25217 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25218 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25219 rm -f confdef2sed.sed
25221 # This sed command replaces #undef with comments. This is necessary, for
25222 # example, in the case of _POSIX_SOURCE, which is predefined and required
25223 # on some systems where configure will not decide to define it.
25224 cat >>conftest.undefs <<\_ACEOF
25225 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25228 # Break up conftest.defines because some shells have a limit on the size
25229 # of here documents, and old seds have small limits too (100 cmds).
25230 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25231 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25232 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25233 echo ' :' >>$CONFIG_STATUS
25234 rm -f conftest.tail
25235 while grep . conftest.defines >/dev/null
25237 # Write a limited-size here document to $tmp/defines.sed.
25238 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25239 # Speed up: don't consider the non `#define' lines.
25240 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25241 # Work around the forget-to-reset-the-flag bug.
25242 echo 't clr' >>$CONFIG_STATUS
25243 echo ': clr' >>$CONFIG_STATUS
25244 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25246 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25248 mv $tmp/out $tmp/in
25250 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25251 rm -f conftest.defines
25252 mv conftest.tail conftest.defines
25254 rm -f conftest.defines
25255 echo ' fi # grep' >>$CONFIG_STATUS
25256 echo >>$CONFIG_STATUS
25258 # Break up conftest.undefs because some shells have a limit on the size
25259 # of here documents, and old seds have small limits too (100 cmds).
25260 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25261 rm -f conftest.tail
25262 while grep . conftest.undefs >/dev/null
25264 # Write a limited-size here document to $tmp/undefs.sed.
25265 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25266 # Speed up: don't consider the non `#undef'
25267 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25268 # Work around the forget-to-reset-the-flag bug.
25269 echo 't clr' >>$CONFIG_STATUS
25270 echo ': clr' >>$CONFIG_STATUS
25271 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25273 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25275 mv $tmp/out $tmp/in
25277 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25278 rm -f conftest.undefs
25279 mv conftest.tail conftest.undefs
25281 rm -f conftest.undefs
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25284 # Let's still pretend it is `configure' which instantiates (i.e., don't
25285 # use $as_me), people would be surprised to read:
25286 # /* config.h. Generated by config.status. */
25287 if test x"$ac_file" = x-; then
25288 echo "/* Generated by configure. */" >$tmp/config.h
25290 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25292 cat $tmp/in >>$tmp/config.h
25294 if test x"$ac_file" != x-; then
25295 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25296 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25297 echo "$as_me: $ac_file is unchanged" >&6;}
25299 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25301 X"$ac_file" : 'X\(//\)[^/]' \| \
25302 X"$ac_file" : 'X\(//\)$' \| \
25303 X"$ac_file" : 'X\(/\)' \| \
25304 . : '\(.\)' 2>/dev/null ||
25306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25308 /^X\(\/\/\)$/{ s//\1/; q; }
25309 /^X\(\/\).*/{ s//\1/; q; }
25311 { if $as_mkdir_p; then
25316 while test ! -d "$as_dir"; do
25317 as_dirs="$as_dir $as_dirs"
25318 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25320 X"$as_dir" : 'X\(//\)[^/]' \| \
25321 X"$as_dir" : 'X\(//\)$' \| \
25322 X"$as_dir" : 'X\(/\)' \| \
25323 . : '\(.\)' 2>/dev/null ||
25325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25327 /^X\(\/\/\)$/{ s//\1/; q; }
25328 /^X\(\/\).*/{ s//\1/; q; }
25331 test ! -n "$as_dirs" || mkdir $as_dirs
25332 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25333 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25334 { (exit 1); exit 1; }; }; }
25337 mv $tmp/config.h $ac_file
25341 rm -f $tmp/config.h
25343 # Compute $ac_file's index in $config_headers.
25345 for _am_header in $config_headers :; do
25346 case $_am_header in
25347 $ac_file | $ac_file:* )
25350 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25353 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25354 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25355 X$ac_file : 'X\(//\)[^/]' \| \
25356 X$ac_file : 'X\(//\)$' \| \
25357 X$ac_file : 'X\(/\)' \| \
25358 . : '\(.\)' 2>/dev/null ||
25360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25362 /^X\(\/\/\)$/{ s//\1/; q; }
25363 /^X\(\/\).*/{ s//\1/; q; }
25364 s/.*/./; q'`/stamp-h$_am_stamp_count
25367 cat >>$CONFIG_STATUS <<\_ACEOF
25370 # CONFIG_COMMANDS section.
25372 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25373 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25374 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25375 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25376 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25377 X"$ac_dest" : 'X\(//\)[^/]' \| \
25378 X"$ac_dest" : 'X\(//\)$' \| \
25379 X"$ac_dest" : 'X\(/\)' \| \
25380 . : '\(.\)' 2>/dev/null ||
25382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25384 /^X\(\/\/\)$/{ s//\1/; q; }
25385 /^X\(\/\).*/{ s//\1/; q; }
25387 { if $as_mkdir_p; then
25392 while test ! -d "$as_dir"; do
25393 as_dirs="$as_dir $as_dirs"
25394 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25396 X"$as_dir" : 'X\(//\)[^/]' \| \
25397 X"$as_dir" : 'X\(//\)$' \| \
25398 X"$as_dir" : 'X\(/\)' \| \
25399 . : '\(.\)' 2>/dev/null ||
25401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25403 /^X\(\/\/\)$/{ s//\1/; q; }
25404 /^X\(\/\).*/{ s//\1/; q; }
25407 test ! -n "$as_dirs" || mkdir $as_dirs
25408 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25410 { (exit 1); exit 1; }; }; }
25414 if test "$ac_dir" != .; then
25415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25416 # A "../" for each directory in $ac_dir_suffix.
25417 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25419 ac_dir_suffix= ac_top_builddir=
25423 .) # No --srcdir option. We are building in place.
25425 if test -z "$ac_top_builddir"; then
25428 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25430 [\\/]* | ?:[\\/]* ) # Absolute path.
25431 ac_srcdir=$srcdir$ac_dir_suffix;
25432 ac_top_srcdir=$srcdir ;;
25433 *) # Relative path.
25434 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25435 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25438 # Do not use `cd foo && pwd` to compute absolute paths, because
25439 # the directories may not exist.
25441 .) ac_abs_builddir="$ac_dir";;
25444 .) ac_abs_builddir=`pwd`;;
25445 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25446 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25449 case $ac_abs_builddir in
25450 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25452 case ${ac_top_builddir}. in
25453 .) ac_abs_top_builddir=$ac_abs_builddir;;
25454 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25455 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25458 case $ac_abs_builddir in
25459 .) ac_abs_srcdir=$ac_srcdir;;
25462 .) ac_abs_srcdir=$ac_abs_builddir;;
25463 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25464 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25467 case $ac_abs_builddir in
25468 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25470 case $ac_top_srcdir in
25471 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25472 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25473 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25478 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25479 echo "$as_me: executing $ac_dest commands" >&6;}
25481 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25482 # Strip MF so we end up with the name of the file.
25483 mf=`echo "$mf" | sed -e 's/:.*$//'`
25484 # Check whether this is an Automake generated Makefile or not.
25485 # We used to match only the files named `Makefile.in', but
25486 # some people rename them; so instead we look at the file content.
25487 # Grep'ing the first line is not enough: some people post-process
25488 # each Makefile.in and add a new line on top of each file to say so.
25489 # So let's grep whole file.
25490 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25491 dirpart=`(dirname "$mf") 2>/dev/null ||
25492 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25493 X"$mf" : 'X\(//\)[^/]' \| \
25494 X"$mf" : 'X\(//\)$' \| \
25495 X"$mf" : 'X\(/\)' \| \
25496 . : '\(.\)' 2>/dev/null ||
25498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25500 /^X\(\/\/\)$/{ s//\1/; q; }
25501 /^X\(\/\).*/{ s//\1/; q; }
25506 # Extract the definition of DEPDIR, am__include, and am__quote
25507 # from the Makefile without running `make'.
25508 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25509 test -z "$DEPDIR" && continue
25510 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25511 test -z "am__include" && continue
25512 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25513 # When using ansi2knr, U may be empty or an underscore; expand it
25514 U=`sed -n 's/^U = //p' < "$mf"`
25515 # Find all dependency output files, they are included files with
25516 # $(DEPDIR) in their names. We invoke sed twice because it is the
25517 # simplest approach to changing $(DEPDIR) to its actual value in the
25519 for file in `sed -n "
25520 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25521 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25522 # Make sure the directory exists.
25523 test -f "$dirpart/$file" && continue
25524 fdir=`(dirname "$file") 2>/dev/null ||
25525 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25526 X"$file" : 'X\(//\)[^/]' \| \
25527 X"$file" : 'X\(//\)$' \| \
25528 X"$file" : 'X\(/\)' \| \
25529 . : '\(.\)' 2>/dev/null ||
25531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25533 /^X\(\/\/\)$/{ s//\1/; q; }
25534 /^X\(\/\).*/{ s//\1/; q; }
25536 { if $as_mkdir_p; then
25537 mkdir -p $dirpart/$fdir
25539 as_dir=$dirpart/$fdir
25541 while test ! -d "$as_dir"; do
25542 as_dirs="$as_dir $as_dirs"
25543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25545 X"$as_dir" : 'X\(//\)[^/]' \| \
25546 X"$as_dir" : 'X\(//\)$' \| \
25547 X"$as_dir" : 'X\(/\)' \| \
25548 . : '\(.\)' 2>/dev/null ||
25550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25552 /^X\(\/\/\)$/{ s//\1/; q; }
25553 /^X\(\/\).*/{ s//\1/; q; }
25556 test ! -n "$as_dirs" || mkdir $as_dirs
25557 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25558 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25559 { (exit 1); exit 1; }; }; }
25561 # echo "creating $dirpart/$file"
25562 echo '# dummy' > "$dirpart/$file"
25567 for ac_file in $CONFIG_FILES; do
25568 # Support "outfile[:infile[:infile...]]"
25570 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25572 # PO directories have a Makefile.in generated from Makefile.in.in.
25573 case "$ac_file" in */Makefile.in)
25574 # Adjust a relative srcdir.
25575 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25576 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25577 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25578 # In autoconf-2.13 it is called $ac_given_srcdir.
25579 # In autoconf-2.50 it is called $srcdir.
25580 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25581 case "$ac_given_srcdir" in
25582 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25583 /*) top_srcdir="$ac_given_srcdir" ;;
25584 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25586 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25587 rm -f "$ac_dir/POTFILES"
25588 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25589 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25590 POMAKEFILEDEPS="POTFILES.in"
25591 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25592 # on $ac_dir but don't depend on user-specified configuration
25594 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25595 # The LINGUAS file contains the set of available languages.
25596 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25597 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25599 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25600 # Hide the ALL_LINGUAS assigment from automake.
25601 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25602 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25604 # The set of available languages was given in configure.in.
25605 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25608 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25609 # Compute UPDATEPOFILES
25610 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25611 # Compute DUMMYPOFILES
25612 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25614 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25615 case "$ac_given_srcdir" in
25617 *) srcdirpre='$(srcdir)/' ;;
25623 for lang in $ALL_LINGUAS; do
25624 POFILES="$POFILES $srcdirpre$lang.po"
25625 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25626 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25627 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25629 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25630 # environment variable.
25632 if test -n "$ALL_LINGUAS"; then
25633 for presentlang in $ALL_LINGUAS; do
25635 if test "%UNSET%" != "$LINGUAS"; then
25636 desiredlanguages="$LINGUAS"
25638 desiredlanguages="$ALL_LINGUAS"
25640 for desiredlang in $desiredlanguages; do
25641 # Use the presentlang catalog if desiredlang is
25642 # a. equal to presentlang, or
25643 # b. a variant of presentlang (because in this case,
25644 # presentlang can be used as a fallback for messages
25645 # which are not translated in the desiredlang catalog).
25646 case "$desiredlang" in
25647 "$presentlang"*) useit=yes;;
25650 if test $useit = yes; then
25651 INST_LINGUAS="$INST_LINGUAS $presentlang"
25656 if test -n "$INST_LINGUAS"; then
25657 for lang in $INST_LINGUAS; do
25658 CATALOGS="$CATALOGS $lang.gmo"
25661 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25662 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
25663 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25664 if test -f "$f"; then
25666 *.orig | *.bak | *~) ;;
25667 *) cat "$f" >> "$ac_dir/Makefile" ;;
25679 cat >>$CONFIG_STATUS <<\_ACEOF
25681 { (exit 0); exit 0; }
25683 chmod +x $CONFIG_STATUS
25684 ac_clean_files=$ac_clean_files_save
25687 # configure is writing to config.log, and then calls config.status.
25688 # config.status does its own redirection, appending to config.log.
25689 # Unfortunately, on DOS this fails, as config.log is still kept open
25690 # by configure, so config.status won't be able to write to it; its
25691 # output is simply discarded. So we exec the FD to /dev/null,
25692 # effectively closing config.log, so it can be properly (re)opened and
25693 # appended to by config.status. When coming back to configure, we
25694 # need to make the FD available again.
25695 if test "$no_create" != yes; then
25697 ac_config_status_args=
25698 test "$silent" = yes &&
25699 ac_config_status_args="$ac_config_status_args --quiet"
25701 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25703 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25704 # would make configure fail if this is the last instruction.
25705 $ac_cs_success || { (exit 1); exit 1; }
25710 echo ------------------------------------------------------------------------
25711 echo 'zlib compression: ' $ok_zlib
25712 echo 'Calendar support: ' $ok_libical
25713 echo 'Character set conversion support:' $ok_iconv
25714 echo 'National language support: ' $_nls_avail