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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 LIB@&t@OBJS INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT 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
1048 --with-tags@<:@=TAGS@:>@
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
1196 @%:@@%:@ --------- @%:@@%:@
1197 @%:@@%:@ Platform. @%:@@%:@
1198 @%:@@%:@ --------- @%:@@%:@
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"
1232 @%:@@%:@ ----------- @%:@@%:@
1233 @%:@@%:@ Core tests. @%:@@%:@
1234 @%:@@%:@ ----------- @%:@@%:@
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
1338 @%:@@%:@ ------------- @%:@@%:@
1339 @%:@@%:@ Output files. @%:@@%:@
1340 @%:@@%:@ ------------- @%:@@%:@
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
1353 @%:@@%:@ ----------- @%:@@%:@
1354 @%:@@%:@ confdefs.h. @%:@@%:@
1355 @%:@@%:@ ----------- @%:@@%:@
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" || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2752 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2753 GCC=`test $ac_compiler_gnu = yes && echo yes`
2754 ac_test_CFLAGS=${CFLAGS+set}
2755 ac_save_CFLAGS=$CFLAGS
2757 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2758 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2759 if test "${ac_cv_prog_cc_g+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1 >conftest.err
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2809 if test "$ac_test_CFLAGS" = set; then
2810 CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2818 if test "$GCC" = yes; then
2824 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 ac_cv_prog_cc_stdc=no
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2855 s = g (p, va_arg (v,int));
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std1 is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std1. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 int test (int i, double x);
2870 struct s1 {int (*f) (int a);};
2871 struct s2 {int (*f) (double a);};
2872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2883 # Don't try gcc -ansi; that turns off useful extensions and
2884 # breaks some systems' header files.
2885 # AIX -qlanglvl=ansi
2886 # Ultrix and OSF/1 -std1
2887 # HP-UX 10.20 and later -Ae
2888 # HP-UX older versions -Aa -D_HPUX_SOURCE
2889 # SVR4 -Xc -D__EXTENSIONS__
2890 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892 CC="$ac_save_CC $ac_arg"
2893 rm -f conftest.$ac_objext
2894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2895 (eval $ac_compile) 2>conftest.er1
2897 grep -v '^ *+' conftest.er1 >conftest.err
2899 cat conftest.err >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } &&
2902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 ac_cv_prog_cc_stdc=$ac_arg
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2921 rm -f conftest.err conftest.$ac_objext
2923 rm -f conftest.$ac_ext conftest.$ac_objext
2928 case "x$ac_cv_prog_cc_stdc" in
2930 echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6 ;;
2933 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2934 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2935 CC="$CC $ac_cv_prog_cc_stdc" ;;
2938 # Some people use a C++ compiler to compile C. Since we use `exit',
2939 # in C++ we need to declare it. In case someone uses the same compiler
2940 # for both compiling C and C++ we need to have the C++ compiler decide
2941 # the declaration of exit, since it's the most demanding environment.
2942 cat >conftest.$ac_ext <<_ACEOF
2943 @%:@ifndef __cplusplus
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 for ac_declaration in \
2970 'extern "C" void std::exit (int) throw (); using std::exit;' \
2971 'extern "C" void std::exit (int); using std::exit;' \
2972 'extern "C" void exit (int) throw ();' \
2973 'extern "C" void exit (int);' \
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2983 @%:@include <stdlib.h>
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; } &&
3007 { ac_try='test -s conftest.$ac_objext'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>conftest.er1
3040 grep -v '^ *+' conftest.er1 >conftest.err
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066 if test -n "$ac_declaration"; then
3067 echo '#ifdef __cplusplus' >>confdefs.h
3068 echo $ac_declaration >>confdefs.h
3069 echo '#endif' >>confdefs.h
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 depcc="$CC" am_compiler_list=
3086 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3092 # We make a subdir and do the tests there. Otherwise we can end up
3093 # making bogus files that we don't know about and never remove. For
3094 # instance it was reported that on HP-UX the gcc test will end up
3095 # making a dummy file named `D' -- because `-MD' means `put the output
3098 # Copy depcomp to subdir because otherwise we won't find it if we're
3099 # using a relative directory.
3100 cp "$am_depcomp" conftest.dir
3102 # We will build objects and dependencies in a subdirectory because
3103 # it helps to detect inapplicable dependency modes. For instance
3104 # both Tru64's cc and ICC support -MD to output dependencies as a
3105 # side effect of compilation, but ICC will put the dependencies in
3106 # the current directory while Tru64 will put them in the object
3110 am_cv_CC_dependencies_compiler_type=none
3111 if test "$am_compiler_list" = ""; then
3112 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3114 for depmode in $am_compiler_list; do
3115 # Setup a source with many dependencies, because some compilers
3116 # like to wrap large dependency lists on column 80 (with \), and
3117 # we should not choose a depcomp mode which is confused by this.
3119 # We need to recreate these files for each test, as the compiler may
3120 # overwrite some of them when testing with obscure command lines.
3121 # This happens at least with the AIX C compiler.
3123 for i in 1 2 3 4 5 6; do
3124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3125 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3126 # Solaris 8's {/usr,}/bin/sh.
3127 touch sub/conftst$i.h
3129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3133 # after this tag, mechanisms are not by side-effect, so they'll
3134 # only be used when explicitly requested
3135 if test "x$enable_dependency_tracking" = xyes; then
3143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3144 # mode. It turns out that the SunPro C++ compiler does not properly
3145 # handle `-M -o', and we need to detect this.
3146 if depmode=$depmode \
3147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3150 >/dev/null 2>conftest.err &&
3151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154 # icc doesn't choke on unknown options, it will just issue warnings
3155 # or remarks (even with -Werror). So we grep stderr for any message
3156 # that says an option was ignored or not supported.
3157 # When given -MP, icc 7.0 and 7.1 complain thusly:
3158 # icc: Command line warning: ignoring option '-M'; no argument required
3159 # The diagnosis changed in icc 8.0:
3160 # icc: Command line remark: option '-MP' not supported
3161 if (grep 'ignoring option' conftest.err ||
3162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3163 am_cv_CC_dependencies_compiler_type=$depmode
3172 am_cv_CC_dependencies_compiler_type=none
3176 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3177 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3183 test "x$enable_dependency_tracking" != xno \
3184 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3186 am__fastdepCC_FALSE='#'
3188 am__fastdepCC_TRUE='#'
3189 am__fastdepCC_FALSE=
3193 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3194 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3195 if test "${lt_cv_path_SED+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 # Loop through the user's path and test for sed and gsed.
3199 # Then use that list of sed's as ones to test for truncation.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for lt_ac_prog in sed gsed; do
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3208 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3215 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216 # along with /bin/sed that truncates output.
3217 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218 test ! -f $lt_ac_sed && continue
3219 cat /dev/null > conftest.in
3221 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222 # Check for GNU sed and select it if it is found.
3223 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224 lt_cv_path_SED=$lt_ac_sed
3228 cat conftest.in conftest.in >conftest.tmp
3229 mv conftest.tmp conftest.in
3230 cp conftest.in conftest.nl
3232 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233 cmp -s conftest.out conftest.nl || break
3234 # 10000 chars as input seems more than enough
3235 test $lt_ac_count -gt 10 && break
3236 lt_ac_count=`expr $lt_ac_count + 1`
3237 if test $lt_ac_count -gt $lt_ac_max; then
3238 lt_ac_max=$lt_ac_count
3239 lt_cv_path_SED=$lt_ac_sed
3247 echo "$as_me:$LINENO: result: $SED" >&5
3248 echo "${ECHO_T}$SED" >&6
3250 echo "$as_me:$LINENO: checking for egrep" >&5
3251 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3252 if test "${ac_cv_prog_egrep+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3256 then ac_cv_prog_egrep='grep -E'
3257 else ac_cv_prog_egrep='egrep'
3260 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3261 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3262 EGREP=$ac_cv_prog_egrep
3266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3267 if test "${with_gnu_ld+set}" = set; then
3268 withval="$with_gnu_ld"
3269 test "$withval" = no || with_gnu_ld=yes
3274 if test "$GCC" = yes; then
3275 # Check if gcc -print-prog-name=ld gives a path.
3276 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3277 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3280 # gcc leaves a trailing carriage return which upsets mingw
3281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3286 # Accept absolute paths.
3288 re_direlt='/[^/][^/]*/\.\./'
3289 # Canonicalize the pathname of ld
3290 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3291 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3292 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3294 test -z "$LD" && LD="$ac_prog"
3297 # If it fails, then pretend we aren't using GCC.
3301 # If it is relative, then search for the first ld in PATH.
3305 elif test "$with_gnu_ld" = yes; then
3306 echo "$as_me:$LINENO: checking for GNU ld" >&5
3307 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3309 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3310 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3312 if test "${lt_cv_path_LD+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if test -z "$LD"; then
3316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317 for ac_dir in $PATH; do
3319 test -z "$ac_dir" && ac_dir=.
3320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3321 lt_cv_path_LD="$ac_dir/$ac_prog"
3322 # Check to see if the program is GNU ld. I'd rather use --version,
3323 # but apparently some variants of GNU ld only accept -v.
3324 # Break only if it was the GNU/non-GNU ld that we prefer.
3325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3326 *GNU* | *'with BFD'*)
3327 test "$with_gnu_ld" != no && break
3330 test "$with_gnu_ld" != yes && break
3337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3342 if test -n "$LD"; then
3343 echo "$as_me:$LINENO: result: $LD" >&5
3344 echo "${ECHO_T}$LD" >&6
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3349 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351 { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3358 case `$LD -v 2>&1 </dev/null` in
3359 *GNU* | *'with BFD'*)
3360 lt_cv_prog_gnu_ld=yes
3363 lt_cv_prog_gnu_ld=no
3367 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3368 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3369 with_gnu_ld=$lt_cv_prog_gnu_ld
3372 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3373 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3374 if test "${lt_cv_ld_reload_flag+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 lt_cv_ld_reload_flag='-r'
3379 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3380 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3381 reload_flag=$lt_cv_ld_reload_flag
3382 case $reload_flag in
3384 *) reload_flag=" $reload_flag" ;;
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3389 if test "$GCC" = yes; then
3390 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3397 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3398 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3399 if test "${lt_cv_path_NM+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 if test -n "$NM"; then
3403 # Let the user override the test.
3406 lt_nm_to_check="${ac_tool_prefix}nm"
3407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3408 lt_nm_to_check="$lt_nm_to_check nm"
3410 for lt_tmp_nm in $lt_nm_to_check; do
3411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3412 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3414 test -z "$ac_dir" && ac_dir=.
3415 tmp_nm="$ac_dir/$lt_tmp_nm"
3416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3417 # Check to see if the nm accepts a BSD-compat flag.
3418 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3419 # nm: unknown option "B" ignored
3420 # Tru64's nm complains that /dev/null is an invalid object file
3421 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3422 */dev/null* | *'Invalid file or object type'*)
3423 lt_cv_path_NM="$tmp_nm -B"
3427 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3429 lt_cv_path_NM="$tmp_nm -p"
3433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3434 continue # so that we can try to find one that supports BSD flags
3443 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3446 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3447 echo "${ECHO_T}$lt_cv_path_NM" >&6
3450 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3451 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3453 if test "$LN_S" = "ln -s"; then
3454 echo "$as_me:$LINENO: result: yes" >&5
3455 echo "${ECHO_T}yes" >&6
3457 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3458 echo "${ECHO_T}no, using $LN_S" >&6
3461 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3462 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3463 if test "${lt_cv_deplibs_check_method+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 lt_cv_file_magic_cmd='$MAGIC_CMD'
3467 lt_cv_file_magic_test_file=
3468 lt_cv_deplibs_check_method='unknown'
3469 # Need to set the preceding variable on all platforms that support
3470 # interlibrary dependencies.
3471 # 'none' -- dependencies not supported.
3472 # `unknown' -- same as none, but documents that we really don't know.
3473 # 'pass_all' -- all dependencies passed with no checks.
3474 # 'test_compile' -- check by making test program.
3475 # 'file_magic [[regex]]' -- check by looking for files in library path
3476 # which responds to the $file_magic_cmd with a given extended regex.
3477 # If you have `file' or equivalent on your system and you're not sure
3478 # whether `pass_all' will *always* work, you probably want this one.
3482 lt_cv_deplibs_check_method=pass_all
3486 lt_cv_deplibs_check_method=pass_all
3490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3491 lt_cv_file_magic_cmd='/usr/bin/file -L'
3492 lt_cv_file_magic_test_file=/shlib/libc.so
3496 # func_win32_libid is a shell function defined in ltmain.sh
3497 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3498 lt_cv_file_magic_cmd='func_win32_libid'
3502 # Base MSYS/MinGW do not provide the 'file' command needed by
3503 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3504 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3505 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 darwin* | rhapsody*)
3509 lt_cv_deplibs_check_method=pass_all
3512 freebsd* | dragonfly*)
3513 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3516 # Not sure whether the presence of OpenBSD here was a mistake.
3517 # Let's accept both of them until this is cleared up.
3518 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3519 lt_cv_file_magic_cmd=/usr/bin/file
3520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3524 lt_cv_deplibs_check_method=pass_all
3529 lt_cv_deplibs_check_method=pass_all
3532 hpux10.20* | hpux11*)
3533 lt_cv_file_magic_cmd=/usr/bin/file
3536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3537 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3540 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]'
3541 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3551 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3555 irix5* | irix6* | nonstopux*)
3557 *-32|*"-32 ") libmagic=32-bit;;
3558 *-n32|*"-n32 ") libmagic=N32;;
3559 *-64|*"-64 ") libmagic=64-bit;;
3560 *) libmagic=never-match;;
3562 lt_cv_deplibs_check_method=pass_all
3565 # This must be Linux ELF.
3566 linux* | k*bsd*-gnu)
3567 lt_cv_deplibs_check_method=pass_all
3570 netbsd* | netbsdelf*-gnu)
3571 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3580 lt_cv_file_magic_cmd=/usr/bin/file
3581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3585 lt_cv_deplibs_check_method=unknown
3589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3596 osf3* | osf4* | osf5*)
3597 lt_cv_deplibs_check_method=pass_all
3601 lt_cv_deplibs_check_method=pass_all
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
3626 lt_cv_deplibs_check_method=pass_all
3631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3632 lt_cv_deplibs_check_method=pass_all
3637 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3638 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3639 file_magic_cmd=$lt_cv_file_magic_cmd
3640 deplibs_check_method=$lt_cv_deplibs_check_method
3641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3646 # If no C compiler was specified, use CC.
3649 # If no C compiler flags were specified, use CFLAGS.
3650 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3652 # Allow CC to be a program name with arguments.
3656 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3657 if test "${enable_libtool_lock+set}" = set; then
3658 enableval="$enable_libtool_lock"
3661 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3663 # Some flags need to be propagated to the compiler or linker for good
3667 # Find out which ABI we are using.
3668 echo 'int i;' > conftest.$ac_ext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670 (eval $ac_compile) 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; then
3674 case `/usr/bin/file conftest.$ac_objext` in
3686 # Find out which ABI we are using.
3687 echo '#line __oline__ "configure"' > conftest.$ac_ext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; then
3693 if test "$lt_cv_prog_gnu_ld" = yes; then
3694 case `/usr/bin/file conftest.$ac_objext` in
3696 LD="${LD-ld} -melf32bsmip"
3699 LD="${LD-ld} -melf32bmipn32"
3702 LD="${LD-ld} -melf64bmip"
3706 case `/usr/bin/file conftest.$ac_objext` in
3722 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3723 # Find out which ABI we are using.
3724 echo 'int i;' > conftest.$ac_ext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; then
3730 case `/usr/bin/file conftest.o` in
3734 LD="${LD-ld} -m elf_i386"
3736 ppc64-*linux*|powerpc64-*linux*)
3737 LD="${LD-ld} -m elf32ppclinux"
3740 LD="${LD-ld} -m elf_s390"
3743 LD="${LD-ld} -m elf32_sparc"
3750 LD="${LD-ld} -m elf_x86_64"
3752 ppc*-*linux*|powerpc*-*linux*)
3753 LD="${LD-ld} -m elf64ppc"
3756 LD="${LD-ld} -m elf64_s390"
3759 LD="${LD-ld} -m elf64_sparc"
3769 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3770 SAVE_CFLAGS="$CFLAGS"
3771 CFLAGS="$CFLAGS -belf"
3772 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3773 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3774 if test "${lt_cv_cc_needs_belf+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800 (eval $ac_link) 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 lt_cv_cc_needs_belf=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 lt_cv_cc_needs_belf=no
3826 rm -f conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3836 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3839 CFLAGS="$SAVE_CFLAGS"
3843 # Find out which ABI we are using.
3844 echo 'int i;' > conftest.$ac_ext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; then
3850 case `/usr/bin/file conftest.o` in
3852 case $lt_cv_prog_gnu_ld in
3853 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3854 *) LD="${LD-ld} -64" ;;
3865 need_locks="$enable_libtool_lock"
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3874 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3875 # On Suns, sometimes $CPP names a directory.
3876 if test -n "$CPP" && test -d "$CPP"; then
3879 if test -z "$CPP"; then
3880 if test "${ac_cv_prog_CPP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 # Double quotes because CPP needs to be expanded
3884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3887 for ac_c_preproc_warn_flag in '' yes
3889 # Use a header file that comes with gcc, so configuring glibc
3890 # with a fresh cross-compiler works.
3891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 # <limits.h> exists even on freestanding compilers.
3893 # On the NeXT, cc -E runs the code through the compiler's parser,
3894 # not just through cpp. "Syntax error" is here to catch this case.
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3902 @%:@ include <limits.h>
3904 @%:@ include <assert.h>
3908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null; then
3916 if test -s conftest.err; then
3917 ac_cpp_err=$ac_c_preproc_warn_flag
3918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3925 if test -z "$ac_cpp_err"; then
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 # Broken: fails on valid input.
3934 rm -f conftest.err conftest.$ac_ext
3936 # OK, works on sane cases. Now check whether non-existent headers
3937 # can be detected and how.
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 @%:@include <ac_nonexistent.h>
3946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } >/dev/null; then
3954 if test -s conftest.err; then
3955 ac_cpp_err=$ac_c_preproc_warn_flag
3956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3963 if test -z "$ac_cpp_err"; then
3964 # Broken: success on invalid input.
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 # Passes both tests.
3974 rm -f conftest.err conftest.$ac_ext
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then
3991 echo "$as_me:$LINENO: result: $CPP" >&5
3992 echo "${ECHO_T}$CPP" >&6
3994 for ac_c_preproc_warn_flag in '' yes
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4009 @%:@ include <limits.h>
4011 @%:@ include <assert.h>
4015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } >/dev/null; then
4023 if test -s conftest.err; then
4024 ac_cpp_err=$ac_c_preproc_warn_flag
4025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4032 if test -z "$ac_cpp_err"; then
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 # Broken: fails on valid input.
4041 rm -f conftest.err conftest.$ac_ext
4043 # OK, works on sane cases. Now check whether non-existent headers
4044 # can be detected and how.
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 @%:@include <ac_nonexistent.h>
4053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev/null; then
4061 if test -s conftest.err; then
4062 ac_cpp_err=$ac_c_preproc_warn_flag
4063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4070 if test -z "$ac_cpp_err"; then
4071 # Broken: success on invalid input.
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 # Passes both tests.
4081 rm -f conftest.err conftest.$ac_ext
4084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085 rm -f conftest.err conftest.$ac_ext
4086 if $ac_preproc_ok; then
4089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4090 See \`config.log' for more details." >&5
4091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4092 See \`config.log' for more details." >&2;}
4093 { (exit 1); exit 1; }; }
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4105 if test "${ac_cv_header_stdc+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4127 rm -f conftest.$ac_objext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4129 (eval $ac_compile) 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; } &&
4142 { ac_try='test -s conftest.$ac_objext'
4143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_cv_header_stdc=yes
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_cv_header_stdc=no
4155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4157 if test $ac_cv_header_stdc = yes; then
4158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "memchr" >/dev/null 2>&1; then
4172 ac_cv_header_stdc=no
4178 if test $ac_cv_header_stdc = yes; then
4179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "free" >/dev/null 2>&1; then
4193 ac_cv_header_stdc=no
4199 if test $ac_cv_header_stdc = yes; then
4200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201 if test "$cross_compiling" = yes; then
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4211 #if ((' ' & 0x0FF) == 0x020)
4212 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4213 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4215 # define ISLOWER(c) \
4216 (('a' <= (c) && (c) <= 'i') \
4217 || ('j' <= (c) && (c) <= 'r') \
4218 || ('s' <= (c) && (c) <= 'z'))
4219 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4222 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4227 for (i = 0; i < 256; i++)
4228 if (XOR (islower (i), ISLOWER (i))
4229 || toupper (i) != TOUPPER (i))
4234 rm -f conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4247 echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4252 ac_cv_header_stdc=no
4254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4259 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4260 if test $ac_cv_header_stdc = yes; then
4262 cat >>confdefs.h <<\_ACEOF
4263 @%:@define STDC_HEADERS 1
4268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279 inttypes.h stdint.h unistd.h
4281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282 echo "$as_me:$LINENO: checking for $ac_header" >&5
4283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 $ac_includes_default
4295 @%:@include <$ac_header>
4297 rm -f conftest.$ac_objext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4299 (eval $ac_compile) 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; } &&
4312 { ac_try='test -s conftest.$ac_objext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 eval "$as_ac_Header=yes"
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 eval "$as_ac_Header=no"
4325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4330 cat >>confdefs.h <<_ACEOF
4331 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 for ac_header in dlfcn.h
4342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344 echo "$as_me:$LINENO: checking for $ac_header" >&5
4345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4352 # Is the header compilable?
4353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 $ac_includes_default
4362 @%:@include <$ac_header>
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_header_compiler=yes
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 ac_header_compiler=no
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4394 echo "${ECHO_T}$ac_header_compiler" >&6
4396 # Is the header present?
4397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 @%:@include <$ac_header>
4407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } >/dev/null; then
4415 if test -s conftest.err; then
4416 ac_cpp_err=$ac_c_preproc_warn_flag
4417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4424 if test -z "$ac_cpp_err"; then
4425 ac_header_preproc=yes
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_header_preproc=no
4432 rm -f conftest.err conftest.$ac_ext
4433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4434 echo "${ECHO_T}$ac_header_preproc" >&6
4436 # So? What about this header?
4437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4443 ac_header_preproc=yes
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4460 @%:@@%:@ ------------------------------------- @%:@@%:@
4461 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
4462 @%:@@%:@ ------------------------------------- @%:@@%:@
4465 sed "s/^/$as_me: WARNING: /" >&2
4468 echo "$as_me:$LINENO: checking for $ac_header" >&5
4469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 eval "$as_ac_Header=\$ac_header_preproc"
4475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4480 cat >>confdefs.h <<_ACEOF
4481 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489 ac_cpp='$CXXCPP $CPPFLAGS'
4490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4493 if test -n "$ac_tool_prefix"; then
4494 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_CXX+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$CXX"; then
4504 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 if test -n "$CXX"; then
4524 echo "$as_me:$LINENO: result: $CXX" >&5
4525 echo "${ECHO_T}$CXX" >&6
4527 echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4531 test -n "$CXX" && break
4534 if test -z "$CXX"; then
4536 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 if test -n "$ac_ct_CXX"; then
4546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_ac_ct_CXX="$ac_prog"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565 if test -n "$ac_ct_CXX"; then
4566 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4567 echo "${ECHO_T}$ac_ct_CXX" >&6
4569 echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4573 test -n "$ac_ct_CXX" && break
4575 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4581 # Provide some information about the compiler.
4582 echo "$as_me:$LINENO:" \
4583 "checking for C++ compiler version" >&5
4584 ac_compiler=`set X $ac_compile; echo $2`
4585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4586 (eval $ac_compiler --version </dev/null >&5) 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }
4590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4591 (eval $ac_compiler -v </dev/null >&5) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4596 (eval $ac_compiler -V </dev/null >&5) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4601 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4602 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4603 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4656 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4657 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4658 GXX=`test $ac_compiler_gnu = yes && echo yes`
4659 ac_test_CXXFLAGS=${CXXFLAGS+set}
4660 ac_save_CXXFLAGS=$CXXFLAGS
4662 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4663 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4664 if test "${ac_cv_prog_cxx_g+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; } &&
4697 { ac_try='test -s conftest.$ac_objext'
4698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_prog_cxx_g=yes
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4713 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4714 if test "$ac_test_CXXFLAGS" = set; then
4715 CXXFLAGS=$ac_save_CXXFLAGS
4716 elif test $ac_cv_prog_cxx_g = yes; then
4717 if test "$GXX" = yes; then
4723 if test "$GXX" = yes; then
4729 for ac_declaration in \
4731 'extern "C" void std::exit (int) throw (); using std::exit;' \
4732 'extern "C" void std::exit (int); using std::exit;' \
4733 'extern "C" void exit (int) throw ();' \
4734 'extern "C" void exit (int);' \
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4744 @%:@include <stdlib.h>
4753 rm -f conftest.$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755 (eval $ac_compile) 2>conftest.er1
4757 grep -v '^ *+' conftest.er1 >conftest.err
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; } &&
4768 { ac_try='test -s conftest.$ac_objext'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; }; then
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782 cat >conftest.$ac_ext <<_ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4797 rm -f conftest.$ac_objext
4798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>conftest.er1
4801 grep -v '^ *+' conftest.er1 >conftest.err
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827 if test -n "$ac_declaration"; then
4828 echo '#ifdef __cplusplus' >>confdefs.h
4829 echo $ac_declaration >>confdefs.h
4830 echo '#endif' >>confdefs.h
4834 ac_cpp='$CXXCPP $CPPFLAGS'
4835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4839 depcc="$CXX" am_compiler_list=
4841 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4842 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4843 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847 # We make a subdir and do the tests there. Otherwise we can end up
4848 # making bogus files that we don't know about and never remove. For
4849 # instance it was reported that on HP-UX the gcc test will end up
4850 # making a dummy file named `D' -- because `-MD' means `put the output
4853 # Copy depcomp to subdir because otherwise we won't find it if we're
4854 # using a relative directory.
4855 cp "$am_depcomp" conftest.dir
4857 # We will build objects and dependencies in a subdirectory because
4858 # it helps to detect inapplicable dependency modes. For instance
4859 # both Tru64's cc and ICC support -MD to output dependencies as a
4860 # side effect of compilation, but ICC will put the dependencies in
4861 # the current directory while Tru64 will put them in the object
4865 am_cv_CXX_dependencies_compiler_type=none
4866 if test "$am_compiler_list" = ""; then
4867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4869 for depmode in $am_compiler_list; do
4870 # Setup a source with many dependencies, because some compilers
4871 # like to wrap large dependency lists on column 80 (with \), and
4872 # we should not choose a depcomp mode which is confused by this.
4874 # We need to recreate these files for each test, as the compiler may
4875 # overwrite some of them when testing with obscure command lines.
4876 # This happens at least with the AIX C compiler.
4878 for i in 1 2 3 4 5 6; do
4879 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4880 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4881 # Solaris 8's {/usr,}/bin/sh.
4882 touch sub/conftst$i.h
4884 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888 # after this tag, mechanisms are not by side-effect, so they'll
4889 # only be used when explicitly requested
4890 if test "x$enable_dependency_tracking" = xyes; then
4898 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4899 # mode. It turns out that the SunPro C++ compiler does not properly
4900 # handle `-M -o', and we need to detect this.
4901 if depmode=$depmode \
4902 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4903 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4904 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4905 >/dev/null 2>conftest.err &&
4906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4907 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4909 # icc doesn't choke on unknown options, it will just issue warnings
4910 # or remarks (even with -Werror). So we grep stderr for any message
4911 # that says an option was ignored or not supported.
4912 # When given -MP, icc 7.0 and 7.1 complain thusly:
4913 # icc: Command line warning: ignoring option '-M'; no argument required
4914 # The diagnosis changed in icc 8.0:
4915 # icc: Command line remark: option '-MP' not supported
4916 if (grep 'ignoring option' conftest.err ||
4917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4918 am_cv_CXX_dependencies_compiler_type=$depmode
4927 am_cv_CXX_dependencies_compiler_type=none
4931 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4932 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4933 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4938 test "x$enable_dependency_tracking" != xno \
4939 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4940 am__fastdepCXX_TRUE=
4941 am__fastdepCXX_FALSE='#'
4943 am__fastdepCXX_TRUE='#'
4944 am__fastdepCXX_FALSE=
4950 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4951 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4952 (test "X$CXX" != "Xg++"))) ; then
4954 ac_cpp='$CXXCPP $CPPFLAGS'
4955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4959 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4960 if test -z "$CXXCPP"; then
4961 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 # Double quotes because CXXCPP needs to be expanded
4965 for CXXCPP in "$CXX -E" "/lib/cpp"
4968 for ac_cxx_preproc_warn_flag in '' yes
4970 # Use a header file that comes with gcc, so configuring glibc
4971 # with a fresh cross-compiler works.
4972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973 # <limits.h> exists even on freestanding compilers.
4974 # On the NeXT, cc -E runs the code through the compiler's parser,
4975 # not just through cpp. "Syntax error" is here to catch this case.
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4983 @%:@ include <limits.h>
4985 @%:@ include <assert.h>
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 grep -v '^ *+' conftest.er1 >conftest.err
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_cxx_preproc_warn_flag
4999 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5006 if test -z "$ac_cpp_err"; then
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 # Broken: fails on valid input.
5015 rm -f conftest.err conftest.$ac_ext
5017 # OK, works on sane cases. Now check whether non-existent headers
5018 # can be detected and how.
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 @%:@include <ac_nonexistent.h>
5027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null; then
5035 if test -s conftest.err; then
5036 ac_cpp_err=$ac_cxx_preproc_warn_flag
5037 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5044 if test -z "$ac_cpp_err"; then
5045 # Broken: success on invalid input.
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 # Passes both tests.
5055 rm -f conftest.err conftest.$ac_ext
5058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059 rm -f conftest.err conftest.$ac_ext
5060 if $ac_preproc_ok; then
5065 ac_cv_prog_CXXCPP=$CXXCPP
5068 CXXCPP=$ac_cv_prog_CXXCPP
5070 ac_cv_prog_CXXCPP=$CXXCPP
5072 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5073 echo "${ECHO_T}$CXXCPP" >&6
5075 for ac_cxx_preproc_warn_flag in '' yes
5077 # Use a header file that comes with gcc, so configuring glibc
5078 # with a fresh cross-compiler works.
5079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080 # <limits.h> exists even on freestanding compilers.
5081 # On the NeXT, cc -E runs the code through the compiler's parser,
5082 # not just through cpp. "Syntax error" is here to catch this case.
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5090 @%:@ include <limits.h>
5092 @%:@ include <assert.h>
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null; then
5104 if test -s conftest.err; then
5105 ac_cpp_err=$ac_cxx_preproc_warn_flag
5106 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5113 if test -z "$ac_cpp_err"; then
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 # Broken: fails on valid input.
5122 rm -f conftest.err conftest.$ac_ext
5124 # OK, works on sane cases. Now check whether non-existent headers
5125 # can be detected and how.
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 @%:@include <ac_nonexistent.h>
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_cxx_preproc_warn_flag
5144 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5151 if test -z "$ac_cpp_err"; then
5152 # Broken: success on invalid input.
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 # Passes both tests.
5162 rm -f conftest.err conftest.$ac_ext
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5170 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5171 See \`config.log' for more details." >&5
5172 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5173 See \`config.log' for more details." >&2;}
5174 { (exit 1); exit 1; }; }
5178 ac_cpp='$CXXCPP $CPPFLAGS'
5179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5190 if test -n "$ac_tool_prefix"; then
5191 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_F77+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 if test -n "$F77"; then
5201 ac_cv_prog_F77="$F77" # Let the user override the test.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 if test -n "$F77"; then
5221 echo "$as_me:$LINENO: result: $F77" >&5
5222 echo "${ECHO_T}$F77" >&6
5224 echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6
5228 test -n "$F77" && break
5231 if test -z "$F77"; then
5233 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
5236 set dummy $ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 if test -n "$ac_ct_F77"; then
5243 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_ac_ct_F77="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5262 if test -n "$ac_ct_F77"; then
5263 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5264 echo "${ECHO_T}$ac_ct_F77" >&6
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5270 test -n "$ac_ct_F77" && break
5277 # Provide some information about the compiler.
5278 echo "$as_me:__oline__:" \
5279 "checking for Fortran 77 compiler version" >&5
5280 ac_compiler=`set X $ac_compile; echo $2`
5281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5282 (eval $ac_compiler --version </dev/null >&5) 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }
5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5287 (eval $ac_compiler -v </dev/null >&5) 2>&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }
5291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5292 (eval $ac_compiler -V </dev/null >&5) 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5298 # If we don't use `.F' as extension, the preprocessor is not run on the
5299 # input file. (Note that this only needs to work for GNU compilers.)
5302 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5303 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5304 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; } &&
5330 { ac_try='test -s conftest.$ac_objext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5344 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5347 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5348 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5350 ac_test_FFLAGS=${FFLAGS+set}
5351 ac_save_FFLAGS=$FFLAGS
5353 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5354 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5355 if test "${ac_cv_prog_f77_g+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 cat >conftest.$ac_ext <<_ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>conftest.er1
5368 grep -v '^ *+' conftest.er1 >conftest.err
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 ac_cv_prog_f77_g=yes
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5395 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5396 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5397 if test "$ac_test_FFLAGS" = set; then
5398 FFLAGS=$ac_save_FFLAGS
5399 elif test $ac_cv_prog_f77_g = yes; then
5400 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5406 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5413 G77=`test $ac_compiler_gnu = yes && echo yes`
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5422 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5424 # find the maximum length of command line arguments
5425 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5426 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5427 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 # On DJGPP, this test can blow up pretty badly due to problems in libc
5436 # (any single argument exceeding 2000 bytes causes a buffer overrun
5437 # during glob expansion). Even if it were fixed, the result of this
5438 # check would be larger than it should be.
5439 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5443 # Under GNU Hurd, this test is not required because there is
5444 # no limit to the length of command line arguments.
5445 # Libtool will interpret -1 as no limit whatsoever
5446 lt_cv_sys_max_cmd_len=-1;
5450 # On Win9x/ME, this test blows up -- it succeeds, but takes
5451 # about 5 minutes as the teststring grows exponentially.
5452 # Worse, since 9x/ME are not pre-emptively multitasking,
5453 # you end up with a "frozen" computer, even though with patience
5454 # the test eventually succeeds (with a max line length of 256k).
5455 # Instead, let's just punt: use the minimum linelength reported by
5456 # all of the supported platforms: 8192 (on NT/2K/XP).
5457 lt_cv_sys_max_cmd_len=8192;
5461 # On AmigaOS with pdksh, this test takes hours, literally.
5462 # So we just punt and use a minimum line length of 8192.
5463 lt_cv_sys_max_cmd_len=8192;
5466 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5467 # This has been around since 386BSD, at least. Likely further.
5468 if test -x /sbin/sysctl; then
5469 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5470 elif test -x /usr/sbin/sysctl; then
5471 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5473 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5475 # And add a safety zone
5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5481 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5482 lt_cv_sys_max_cmd_len=196608
5486 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5487 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5488 # nice to cause kernel panics so lets avoid the loop below.
5489 # First set a reasonable default.
5490 lt_cv_sys_max_cmd_len=16384
5492 if test -x /sbin/sysconfig; then
5493 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5494 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5499 lt_cv_sys_max_cmd_len=102400
5501 sysv5* | sco5v6* | sysv4.2uw2*)
5502 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5503 if test -n "$kargmax"; then
5504 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5506 lt_cv_sys_max_cmd_len=32768
5510 # If test is not a shell built-in, we'll probably end up computing a
5511 # maximum length that is only half of the actual maximum length, but
5513 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5514 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5515 = "XX$teststring") >/dev/null 2>&1 &&
5516 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5517 lt_cv_sys_max_cmd_len=$new_result &&
5518 test $i != 17 # 1/2 MB should be enough
5521 teststring=$teststring$teststring
5524 # Add a significant safety factor because C++ compilers can tack on massive
5525 # amounts of additional arguments before passing them to the linker.
5526 # It appears as though 1/2 is a usable value.
5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5533 if test -n $lt_cv_sys_max_cmd_len ; then
5534 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5535 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5537 echo "$as_me:$LINENO: result: none" >&5
5538 echo "${ECHO_T}none" >&6
5544 # Check for command to grab the raw symbol name followed by C symbol from nm.
5545 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5546 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5547 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 # These are sane defaults that work on at least a few old systems.
5552 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5554 # Character class describing NM global symbol codes.
5555 symcode='[BCDEGRST]'
5557 # Regexp to match symbols that can be accessed directly from C.
5558 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5560 # Transform an extracted symbol line into a proper C declaration
5561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5563 # Transform an extracted symbol line into symbol name and symbol address
5564 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'"
5566 # Define system-specific variables.
5571 cygwin* | mingw* | pw32*)
5572 symcode='[ABCDGISTW]'
5574 hpux*) # Its linker distinguishes data from code symbols
5575 if test "$host_cpu" = ia64; then
5576 symcode='[ABCDEGRST]'
5578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5579 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'"
5581 linux* | k*bsd*-gnu)
5582 if test "$host_cpu" = ia64; then
5583 symcode='[ABCDGIRSTW]'
5584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5585 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'"
5589 symcode='[BCDEGRST]'
5592 symcode='[BCDEGQRST]'
5603 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5611 # Handle CRLF in mingw tool chain
5615 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5619 # If we're using GNU nm, then use its standard symbol codes.
5620 case `$NM -V 2>&1` in
5621 *GNU* | *'with BFD'*)
5622 symcode='[ABCDGIRSTW]' ;;
5625 # Try without a prefix undercore, then with it.
5626 for ac_symprfx in "" "_"; do
5628 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5629 symxfrm="\\1 $ac_symprfx\\2 \\2"
5631 # Write the raw and C identifiers.
5632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5634 # Check to see that the pipe works correctly.
5638 cat > conftest.$ac_ext <<EOF
5643 void nm_test_func(){}
5647 int main(){nm_test_var='a';nm_test_func();return(0);}
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; then
5655 # Now try to grab the symbols.
5657 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5658 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && test -s "$nlist"; then
5662 # Try sorting and uniquifying the output.
5663 if sort "$nlist" | uniq > "$nlist"T; then
5664 mv -f "$nlist"T "$nlist"
5669 # Make sure that we snagged all the symbols we need.
5670 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5671 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5672 cat <<EOF > conftest.$ac_ext
5678 # Now generate the symbol file.
5679 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5681 cat <<EOF >> conftest.$ac_ext
5682 #if defined (__STDC__) && __STDC__
5683 # define lt_ptr_t void *
5685 # define lt_ptr_t char *
5689 /* The mapping between symbol names and symbols. */
5694 lt_preloaded_symbols[] =
5697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5698 cat <<\EOF >> conftest.$ac_ext
5706 # Now try linking the two files.
5707 mv conftest.$ac_objext conftstm.$ac_objext
5708 lt_save_LIBS="$LIBS"
5709 lt_save_CFLAGS="$CFLAGS"
5710 LIBS="conftstm.$ac_objext"
5711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713 (eval $ac_link) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5719 LIBS="$lt_save_LIBS"
5720 CFLAGS="$lt_save_CFLAGS"
5722 echo "cannot find nm_test_func in $nlist" >&5
5725 echo "cannot find nm_test_var in $nlist" >&5
5728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5731 echo "$progname: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 rm -f conftest* conftst*
5736 # Do not use the global_symbol_pipe unless it works.
5737 if test "$pipe_works" = yes; then
5740 lt_cv_sys_global_symbol_pipe=
5746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5747 lt_cv_sys_global_symbol_to_cdecl=
5749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5750 echo "$as_me:$LINENO: result: failed" >&5
5751 echo "${ECHO_T}failed" >&6
5753 echo "$as_me:$LINENO: result: ok" >&5
5754 echo "${ECHO_T}ok" >&6
5757 echo "$as_me:$LINENO: checking for objdir" >&5
5758 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5759 if test "${lt_cv_objdir+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 rm -f .libs 2>/dev/null
5763 mkdir .libs 2>/dev/null
5764 if test -d .libs; then
5767 # MS-DOS does not allow filenames that begin with a dot.
5770 rmdir .libs 2>/dev/null
5772 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5773 echo "${ECHO_T}$lt_cv_objdir" >&6
5774 objdir=$lt_cv_objdir
5782 # AIX sometimes has problems with the GCC collect2 program. For some
5783 # reason, if we set the COLLECT_NAMES environment variable, the problems
5784 # vanish in a puff of smoke.
5785 if test "X${COLLECT_NAMES+set}" != Xset; then
5787 export COLLECT_NAMES
5792 # Sed substitution that helps us do robust quoting. It backslashifies
5793 # metacharacters that are still active within double-quoted strings.
5794 Xsed='sed -e 1s/^X//'
5795 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5797 # Same as above, but do not quote variable references.
5798 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5800 # Sed substitution to delay expansion of an escaped shell variable in a
5801 # double_quote_subst'ed string.
5802 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5804 # Sed substitution to avoid accidental globbing in evaled expressions
5805 no_glob_subst='s/\*/\\\*/g'
5811 default_ofile=libtool
5812 can_build_shared=yes
5814 # All known linkers require a `.a' archive for static linking (except MSVC,
5815 # which needs '.lib').
5817 ltmain="$ac_aux_dir/ltmain.sh"
5818 ofile="$default_ofile"
5819 with_gnu_ld="$lt_cv_prog_gnu_ld"
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ar; ac_word=$2
5824 echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5826 if test "${ac_cv_prog_AR+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 if test -n "$AR"; then
5830 ac_cv_prog_AR="$AR" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_AR="${ac_tool_prefix}ar"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 if test -n "$AR"; then
5850 echo "$as_me:$LINENO: result: $AR" >&5
5851 echo "${ECHO_T}$AR" >&6
5853 echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5858 if test -z "$ac_cv_prog_AR"; then
5860 # Extract the first word of "ar", so it can be a program name with args.
5861 set dummy ar; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 if test -n "$ac_ct_AR"; then
5868 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_ac_ct_AR="ar"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5888 if test -n "$ac_ct_AR"; then
5889 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5890 echo "${ECHO_T}$ac_ct_AR" >&6
5892 echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 if test -n "$RANLIB"; then
5910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5938 if test -z "$ac_cv_prog_RANLIB"; then
5939 ac_ct_RANLIB=$RANLIB
5940 # Extract the first word of "ranlib", so it can be a program name with args.
5941 set dummy ranlib; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 if test -n "$ac_ct_RANLIB"; then
5948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_ac_ct_RANLIB="ranlib"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5968 if test -n "$ac_ct_RANLIB"; then
5969 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5970 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5972 echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5976 RANLIB=$ac_ct_RANLIB
5978 RANLIB="$ac_cv_prog_RANLIB"
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}strip; ac_word=$2
5984 echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986 if test "${ac_cv_prog_STRIP+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 if test -n "$STRIP"; then
5990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 STRIP=$ac_cv_prog_STRIP
6009 if test -n "$STRIP"; then
6010 echo "$as_me:$LINENO: result: $STRIP" >&5
6011 echo "${ECHO_T}$STRIP" >&6
6013 echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6018 if test -z "$ac_cv_prog_STRIP"; then
6020 # Extract the first word of "strip", so it can be a program name with args.
6021 set dummy strip; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 if test -n "$ac_ct_STRIP"; then
6028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_STRIP="strip"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6048 if test -n "$ac_ct_STRIP"; then
6049 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6050 echo "${ECHO_T}$ac_ct_STRIP" >&6
6052 echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6058 STRIP="$ac_cv_prog_STRIP"
6063 old_CFLAGS="$CFLAGS"
6065 # Set sane defaults for various variables
6066 test -z "$AR" && AR=ar
6067 test -z "$AR_FLAGS" && AR_FLAGS=cru
6068 test -z "$AS" && AS=as
6069 test -z "$CC" && CC=cc
6070 test -z "$LTCC" && LTCC=$CC
6071 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6072 test -z "$DLLTOOL" && DLLTOOL=dlltool
6073 test -z "$LD" && LD=ld
6074 test -z "$LN_S" && LN_S="ln -s"
6075 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6076 test -z "$NM" && NM=nm
6077 test -z "$SED" && SED=sed
6078 test -z "$OBJDUMP" && OBJDUMP=objdump
6079 test -z "$RANLIB" && RANLIB=:
6080 test -z "$STRIP" && STRIP=:
6081 test -z "$ac_objext" && ac_objext=o
6083 # Determine commands to create old-style static archives.
6084 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6085 old_postinstall_cmds='chmod 644 $oldlib'
6086 old_postuninstall_cmds=
6088 if test -n "$RANLIB"; then
6091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6097 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6100 for cc_temp in $compiler""; do
6102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6111 # Only perform the check for file, if the check method requires it
6112 case $deplibs_check_method in
6114 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6115 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6116 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6117 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6125 lt_save_MAGIC_CMD="$MAGIC_CMD"
6126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6128 for ac_dir in $ac_dummy; do
6130 test -z "$ac_dir" && ac_dir=.
6131 if test -f $ac_dir/${ac_tool_prefix}file; then
6132 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6133 if test -n "$file_magic_test_file"; then
6134 case $deplibs_check_method in
6136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6139 $EGREP "$file_magic_regex" > /dev/null; then
6144 *** Warning: the command libtool uses to detect shared libraries,
6145 *** $file_magic_cmd, produces output that libtool cannot recognize.
6146 *** The result is that libtool may fail to recognize shared libraries
6147 *** as such. This will affect the creation of libtool libraries that
6148 *** depend on shared libraries, but programs linked with such libtool
6149 *** libraries will work regardless of this problem. Nevertheless, you
6150 *** may want to report the problem to your system manager and/or to
6151 *** bug-libtool@gnu.org
6161 MAGIC_CMD="$lt_save_MAGIC_CMD"
6166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6167 if test -n "$MAGIC_CMD"; then
6168 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6169 echo "${ECHO_T}$MAGIC_CMD" >&6
6171 echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6175 if test -z "$lt_cv_path_MAGIC_CMD"; then
6176 if test -n "$ac_tool_prefix"; then
6177 echo "$as_me:$LINENO: checking for file" >&5
6178 echo $ECHO_N "checking for file... $ECHO_C" >&6
6179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6187 lt_save_MAGIC_CMD="$MAGIC_CMD"
6188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6190 for ac_dir in $ac_dummy; do
6192 test -z "$ac_dir" && ac_dir=.
6193 if test -f $ac_dir/file; then
6194 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6195 if test -n "$file_magic_test_file"; then
6196 case $deplibs_check_method in
6198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6201 $EGREP "$file_magic_regex" > /dev/null; then
6206 *** Warning: the command libtool uses to detect shared libraries,
6207 *** $file_magic_cmd, produces output that libtool cannot recognize.
6208 *** The result is that libtool may fail to recognize shared libraries
6209 *** as such. This will affect the creation of libtool libraries that
6210 *** depend on shared libraries, but programs linked with such libtool
6211 *** libraries will work regardless of this problem. Nevertheless, you
6212 *** may want to report the problem to your system manager and/or to
6213 *** bug-libtool@gnu.org
6223 MAGIC_CMD="$lt_save_MAGIC_CMD"
6228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6229 if test -n "$MAGIC_CMD"; then
6230 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6231 echo "${ECHO_T}$MAGIC_CMD" >&6
6233 echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6
6249 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6250 if test "${enable_libtool_lock+set}" = set; then
6251 enableval="$enable_libtool_lock"
6254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6257 # Check whether --with-pic or --without-pic was given.
6258 if test "${with_pic+set}" = set; then
6264 test -z "$pic_mode" && pic_mode=default
6266 # Use C for the default configuration in the libtool script
6270 ac_cpp='$CPP $CPPFLAGS'
6271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276 # Source file extension for C test sources.
6279 # Object file extension for compiled C test sources.
6283 # Code to be used in simple compile tests
6284 lt_simple_compile_test_code="int some_variable = 0;\n"
6286 # Code to be used in simple link tests
6287 lt_simple_link_test_code='int main(){return(0);}\n'
6290 # If no C compiler was specified, use CC.
6293 # If no C compiler flags were specified, use CFLAGS.
6294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6296 # Allow CC to be a program name with arguments.
6300 # save warnings/boilerplate of simple test code
6301 ac_outfile=conftest.$ac_objext
6302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6304 _lt_compiler_boilerplate=`cat conftest.err`
6307 ac_outfile=conftest.$ac_objext
6308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6310 _lt_linker_boilerplate=`cat conftest.err`
6315 ## There is no encapsulation within the following macros, do not change
6316 ## the running order or otherwise move them around unless you know exactly
6317 ## what you are doing...
6319 lt_prog_compiler_no_builtin_flag=
6321 if test "$GCC" = yes; then
6322 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6325 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6326 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 lt_cv_prog_compiler_rtti_exceptions=no
6331 ac_outfile=conftest.$ac_objext
6332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6333 lt_compiler_flag="-fno-rtti -fno-exceptions"
6334 # Insert the option either (1) after the last *FLAGS variable, or
6335 # (2) before a word containing "conftest.", or (3) at the end.
6336 # Note that $ac_compile itself does not contain backslashes and begins
6337 # with a dollar sign (not a hyphen), so the echo should work correctly.
6338 # The option is referenced via a variable to avoid confusing sed.
6339 lt_compile=`echo "$ac_compile" | $SED \
6340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6342 -e 's:$: $lt_compiler_flag:'`
6343 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6344 (eval "$lt_compile" 2>conftest.err)
6346 cat conftest.err >&5
6347 echo "$as_me:__oline__: \$? = $ac_status" >&5
6348 if (exit $ac_status) && test -s "$ac_outfile"; then
6349 # The compiler can only warn and ignore the option if not recognized
6350 # So say no if there are warnings other than the usual output.
6351 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6354 lt_cv_prog_compiler_rtti_exceptions=yes
6360 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6361 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6363 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6364 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6371 lt_prog_compiler_wl=
6372 lt_prog_compiler_pic=
6373 lt_prog_compiler_static=
6375 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6376 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6378 if test "$GCC" = yes; then
6379 lt_prog_compiler_wl='-Wl,'
6380 lt_prog_compiler_static='-static'
6384 # All AIX code is PIC.
6385 if test "$host_cpu" = ia64; then
6386 # AIX 5 now supports IA64 processor
6387 lt_prog_compiler_static='-Bstatic'
6392 # FIXME: we need at least 68020 code to build shared libraries, but
6393 # adding the `-m68020' flag to GCC prevents building anything better,
6395 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6398 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6399 # PIC is the default for these OSes.
6402 mingw* | pw32* | os2*)
6403 # This hack is so that the source file can tell whether it is being
6404 # built for inclusion in a dll (and should export symbols for example).
6405 lt_prog_compiler_pic='-DDLL_EXPORT'
6408 darwin* | rhapsody*)
6409 # PIC is the default on this platform
6410 # Common symbols not allowed in MH_DYLIB files
6411 lt_prog_compiler_pic='-fno-common'
6415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6416 # Instead, we relocate shared libraries at runtime.
6420 # Just because we use GCC doesn't mean we suddenly get shared libraries
6421 # on systems that don't support them.
6422 lt_prog_compiler_can_build_shared=no
6427 if test -d /usr/nec; then
6428 lt_prog_compiler_pic=-Kconform_pic
6433 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6440 lt_prog_compiler_pic='-fPIC'
6446 lt_prog_compiler_pic='-fPIC'
6450 # PORTME Check for flag to pass linker flags through the system compiler.
6453 lt_prog_compiler_wl='-Wl,'
6454 if test "$host_cpu" = ia64; then
6455 # AIX 5 now supports IA64 processor
6456 lt_prog_compiler_static='-Bstatic'
6458 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6462 # PIC is the default on this platform
6463 # Common symbols not allowed in MH_DYLIB files
6464 case $cc_basename in
6466 lt_prog_compiler_pic='-qnocommon'
6467 lt_prog_compiler_wl='-Wl,'
6472 mingw* | pw32* | os2*)
6473 # This hack is so that the source file can tell whether it is being
6474 # built for inclusion in a dll (and should export symbols for example).
6475 lt_prog_compiler_pic='-DDLL_EXPORT'
6478 hpux9* | hpux10* | hpux11*)
6479 lt_prog_compiler_wl='-Wl,'
6480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6487 lt_prog_compiler_pic='+Z'
6490 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6491 lt_prog_compiler_static='${wl}-a ${wl}archive'
6494 irix5* | irix6* | nonstopux*)
6495 lt_prog_compiler_wl='-Wl,'
6496 # PIC (with -KPIC) is the default.
6497 lt_prog_compiler_static='-non_shared'
6501 lt_prog_compiler_pic='-KPIC'
6502 lt_prog_compiler_static='-Bstatic'
6505 linux* | k*bsd*-gnu)
6506 case $cc_basename in
6508 lt_prog_compiler_wl='-Wl,'
6509 lt_prog_compiler_pic='-KPIC'
6510 lt_prog_compiler_static='-static'
6512 pgcc* | pgf77* | pgf90* | pgf95*)
6513 # Portland Group compilers (*not* the Pentium gcc compiler,
6514 # which looks to be a dead project)
6515 lt_prog_compiler_wl='-Wl,'
6516 lt_prog_compiler_pic='-fpic'
6517 lt_prog_compiler_static='-Bstatic'
6520 lt_prog_compiler_wl='-Wl,'
6521 # All Alpha code is PIC.
6522 lt_prog_compiler_static='-non_shared'
6527 osf3* | osf4* | osf5*)
6528 lt_prog_compiler_wl='-Wl,'
6529 # All OSF/1 code is PIC.
6530 lt_prog_compiler_static='-non_shared'
6534 lt_prog_compiler_pic='-KPIC'
6535 lt_prog_compiler_static='-Bstatic'
6536 case $cc_basename in
6538 lt_prog_compiler_wl='-Qoption ld ';;
6540 lt_prog_compiler_wl='-Wl,';;
6545 lt_prog_compiler_wl='-Qoption ld '
6546 lt_prog_compiler_pic='-PIC'
6547 lt_prog_compiler_static='-Bstatic'
6550 sysv4 | sysv4.2uw2* | sysv4.3*)
6551 lt_prog_compiler_wl='-Wl,'
6552 lt_prog_compiler_pic='-KPIC'
6553 lt_prog_compiler_static='-Bstatic'
6557 if test -d /usr/nec ;then
6558 lt_prog_compiler_pic='-Kconform_pic'
6559 lt_prog_compiler_static='-Bstatic'
6563 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6564 lt_prog_compiler_wl='-Wl,'
6565 lt_prog_compiler_pic='-KPIC'
6566 lt_prog_compiler_static='-Bstatic'
6570 lt_prog_compiler_wl='-Wl,'
6571 lt_prog_compiler_can_build_shared=no
6575 lt_prog_compiler_pic='-pic'
6576 lt_prog_compiler_static='-Bstatic'
6580 lt_prog_compiler_can_build_shared=no
6585 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6586 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6589 # Check to make sure the PIC flag actually works.
6591 if test -n "$lt_prog_compiler_pic"; then
6593 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6594 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6595 if test "${lt_prog_compiler_pic_works+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 lt_prog_compiler_pic_works=no
6599 ac_outfile=conftest.$ac_objext
6600 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6601 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6602 # Insert the option either (1) after the last *FLAGS variable, or
6603 # (2) before a word containing "conftest.", or (3) at the end.
6604 # Note that $ac_compile itself does not contain backslashes and begins
6605 # with a dollar sign (not a hyphen), so the echo should work correctly.
6606 # The option is referenced via a variable to avoid confusing sed.
6607 lt_compile=`echo "$ac_compile" | $SED \
6608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6610 -e 's:$: $lt_compiler_flag:'`
6611 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6612 (eval "$lt_compile" 2>conftest.err)
6614 cat conftest.err >&5
6615 echo "$as_me:__oline__: \$? = $ac_status" >&5
6616 if (exit $ac_status) && test -s "$ac_outfile"; then
6617 # The compiler can only warn and ignore the option if not recognized
6618 # So say no if there are warnings other than the usual output.
6619 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6622 lt_prog_compiler_pic_works=yes
6628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6629 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6631 if test x"$lt_prog_compiler_pic_works" = xyes; then
6632 case $lt_prog_compiler_pic in
6634 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6637 lt_prog_compiler_pic=
6638 lt_prog_compiler_can_build_shared=no
6643 # For platforms which do not support PIC, -DPIC is meaningless:
6645 lt_prog_compiler_pic=
6648 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6653 # Check to make sure the static flag actually works.
6655 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6656 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6657 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6658 if test "${lt_prog_compiler_static_works+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 lt_prog_compiler_static_works=no
6662 save_LDFLAGS="$LDFLAGS"
6663 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6664 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6665 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6666 # The linker can only warn and ignore the option if not recognized
6667 # So say no if there are warnings
6668 if test -s conftest.err; then
6669 # Append any errors to the config.log.
6670 cat conftest.err 1>&5
6671 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673 if diff conftest.exp conftest.er2 >/dev/null; then
6674 lt_prog_compiler_static_works=yes
6677 lt_prog_compiler_static_works=yes
6681 LDFLAGS="$save_LDFLAGS"
6684 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6685 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6687 if test x"$lt_prog_compiler_static_works" = xyes; then
6690 lt_prog_compiler_static=
6694 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6695 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 lt_cv_prog_compiler_c_o=no
6700 $rm -r conftest 2>/dev/null
6704 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6706 lt_compiler_flag="-o out/conftest2.$ac_objext"
6707 # Insert the option either (1) after the last *FLAGS variable, or
6708 # (2) before a word containing "conftest.", or (3) at the end.
6709 # Note that $ac_compile itself does not contain backslashes and begins
6710 # with a dollar sign (not a hyphen), so the echo should work correctly.
6711 lt_compile=`echo "$ac_compile" | $SED \
6712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6714 -e 's:$: $lt_compiler_flag:'`
6715 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6716 (eval "$lt_compile" 2>out/conftest.err)
6718 cat out/conftest.err >&5
6719 echo "$as_me:__oline__: \$? = $ac_status" >&5
6720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6722 # The compiler can only warn and ignore the option if not recognized
6723 # So say no if there are warnings
6724 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6727 lt_cv_prog_compiler_c_o=yes
6732 # SGI C++ compiler will create directory out/ii_files/ for
6733 # template instantiation
6734 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6735 $rm out/* && rmdir out
6741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6745 hard_links="nottested"
6746 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6747 # do not overwrite the value of need_locks provided by the user
6748 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6749 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6754 ln conftest.a conftest.b 2>&5 || hard_links=no
6755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6756 echo "$as_me:$LINENO: result: $hard_links" >&5
6757 echo "${ECHO_T}$hard_links" >&6
6758 if test "$hard_links" = no; then
6759 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6760 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6767 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6768 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6771 allow_undefined_flag=
6772 enable_shared_with_static_runtimes=no
6774 archive_expsym_cmds=
6775 old_archive_From_new_cmds=
6776 old_archive_from_expsyms_cmds=
6777 export_dynamic_flag_spec=
6778 whole_archive_flag_spec=
6779 thread_safe_flag_spec=
6780 hardcode_libdir_flag_spec=
6781 hardcode_libdir_flag_spec_ld=
6782 hardcode_libdir_separator=
6785 hardcode_shlibpath_var=unsupported
6786 link_all_deplibs=unknown
6787 hardcode_automatic=no
6790 always_export_symbols=no
6791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6792 # include_expsyms should be a list of space-separated symbols to be *always*
6793 # included in the symbol list
6795 # exclude_expsyms can be an extended regexp of symbols to exclude
6796 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6797 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6798 # as well as any symbol that contains `d'.
6799 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6800 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6801 # platforms (ab)use it in PIC code, but their linkers get confused if
6802 # the symbol is explicitly referenced. Since portable code cannot
6803 # rely on this symbol name, it's probably fine to never include it in
6804 # preloaded symbol tables.
6805 extract_expsyms_cmds=
6806 # Just being paranoid about ensuring that cc_basename is set.
6807 for cc_temp in $compiler""; do
6809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6815 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6818 cygwin* | mingw* | pw32*)
6819 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6820 # When not using gcc, we currently assume that we are using
6821 # Microsoft Visual C++.
6822 if test "$GCC" != yes; then
6827 # we just hope/assume this is gcc and not c89 (= MSVC++)
6836 if test "$with_gnu_ld" = yes; then
6837 # If archive_cmds runs LD, not CC, wlarc should be empty
6840 # Set some defaults for GNU ld with shared library support. These
6841 # are reset later if shared libraries are not supported. Putting them
6842 # here allows them to be overridden if necessary.
6843 runpath_var=LD_RUN_PATH
6844 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6845 export_dynamic_flag_spec='${wl}--export-dynamic'
6846 # ancient GNU ld didn't support --whole-archive et. al.
6847 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6848 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6850 whole_archive_flag_spec=
6852 supports_anon_versioning=no
6853 case `$LD -v 2>/dev/null` in
6854 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6855 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6856 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6857 *\ 2.11.*) ;; # other 2.11 versions
6858 *) supports_anon_versioning=yes ;;
6861 # See if GNU ld supports shared libraries.
6863 aix3* | aix4* | aix5*)
6864 # On AIX/PPC, the GNU linker is very broken
6865 if test "$host_cpu" != ia64; then
6869 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6870 *** to be unable to reliably create shared libraries on AIX.
6871 *** Therefore, libtool is disabling shared libraries support. If you
6872 *** really care for shared libraries, you may want to modify your PATH
6873 *** so that a non-GNU linker is found, and then restart.
6880 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)'
6881 hardcode_libdir_flag_spec='-L$libdir'
6882 hardcode_minus_L=yes
6884 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6885 # that the semantics of dynamic libraries on AmigaOS, at least up
6886 # to version 4, is to share data among multiple programs linked
6887 # with the same dynamic library. Since this doesn't match the
6888 # behavior of shared libraries on other platforms, we can't use
6894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6895 allow_undefined_flag=unsupported
6896 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6897 # support --undefined. This deserves some investigation. FIXME
6898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6904 cygwin* | mingw* | pw32*)
6905 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6906 # as there is no search path for DLLs.
6907 hardcode_libdir_flag_spec='-L$libdir'
6908 allow_undefined_flag=unsupported
6909 always_export_symbols=no
6910 enable_shared_with_static_runtimes=yes
6911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6913 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6915 # If the export-symbols file already is a .def file (1st line
6916 # is EXPORTS), use it as is; otherwise, prepend...
6917 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6918 cp $export_symbols $output_objdir/$soname.def;
6920 echo EXPORTS > $output_objdir/$soname.def;
6921 cat $export_symbols >> $output_objdir/$soname.def;
6923 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6931 hardcode_shlibpath_var=no
6932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6933 export_dynamic_flag_spec='${wl}-E'
6934 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6935 # Instead, shared libraries are loaded at an image base (0x10000000 by
6936 # default) and relocated if they conflict, which is a slow very memory
6937 # consuming and fragmenting process. To avoid this, we pick a random,
6938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6939 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6941 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6944 linux* | k*bsd*-gnu)
6945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947 case $cc_basename,$host_cpu in
6948 pgcc*) # Portland Group C compiler
6949 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6950 tmp_addflag=' $pic_flag'
6952 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6953 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6954 tmp_addflag=' $pic_flag -Mnomain' ;;
6955 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6956 tmp_addflag=' -i_dynamic' ;;
6957 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6958 tmp_addflag=' -i_dynamic -nofor_main' ;;
6959 ifc* | ifort*) # Intel Fortran compiler
6960 tmp_addflag=' -nofor_main' ;;
6962 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6964 if test $supports_anon_versioning = yes; then
6965 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6967 $echo "local: *; };" >> $output_objdir/$libname.ver~
6968 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6976 netbsd* | netbsdelf*-gnu)
6977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6992 *** create shared libraries on Solaris systems. Therefore, libtool
6993 *** is disabling shared libraries support. We urge you to upgrade GNU
6994 *** binutils to release 2.9.1 or newer. Another option is to modify
6995 *** your PATH or compiler configuration so that the native linker is
6996 *** used, and then restart.
6999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7008 case `$LD -v 2>&1` in
7009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7014 *** reliably create shared libraries on SCO systems. Therefore, libtool
7015 *** is disabling shared libraries support. We urge you to upgrade GNU
7016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7017 *** your PATH or compiler configuration so that the native linker is
7018 *** used, and then restart.
7023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7024 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7035 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7038 hardcode_shlibpath_var=no
7042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7051 if test "$ld_shlibs" = no; then
7053 hardcode_libdir_flag_spec=
7054 export_dynamic_flag_spec=
7055 whole_archive_flag_spec=
7058 # PORTME fill in a description of your system's linker (not GNU ld)
7061 allow_undefined_flag=unsupported
7062 always_export_symbols=yes
7063 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'
7064 # Note: this linker hardcodes the directories in LIBPATH if there
7065 # are no directories specified by -L.
7066 hardcode_minus_L=yes
7067 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7068 # Neither direct hardcoding nor static linking is supported with a
7070 hardcode_direct=unsupported
7075 if test "$host_cpu" = ia64; then
7076 # On IA64, the linker does run time linking by default, so we don't
7077 # have to do anything special.
7078 aix_use_runtimelinking=no
7079 exp_sym_flag='-Bexport'
7082 # If we're using GNU nm, then we don't want the "-C" option.
7083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7084 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7085 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'
7087 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'
7089 aix_use_runtimelinking=no
7091 # Test if we are trying to use run time linking or normal
7092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7093 # need to do runtime linking.
7094 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7095 for ld_flag in $LDFLAGS; do
7096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7097 aix_use_runtimelinking=yes
7104 exp_sym_flag='-bexport'
7105 no_entry_flag='-bnoentry'
7108 # When large executables or shared objects are built, AIX ld can
7109 # have problems creating the table of contents. If linking a library
7110 # or program results in "error TOC overflow" add -mminimal-toc to
7111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7116 hardcode_libdir_separator=':'
7117 link_all_deplibs=yes
7119 if test "$GCC" = yes; then
7120 case $host_os in aix4.[012]|aix4.[012].*)
7121 # We only want to do this on AIX 4.2 and lower, the check
7122 # below for broken collect2 doesn't work under 4.3+
7123 collect2name=`${CC} -print-prog-name=collect2`
7124 if test -f "$collect2name" && \
7125 strings "$collect2name" | grep resolve_lib_name >/dev/null
7127 # We have reworked collect2
7130 # We have old collect2
7131 hardcode_direct=unsupported
7132 # It fails to find uninstalled libraries when the uninstalled
7133 # path is not listed in the libpath. Setting hardcode_minus_L
7134 # to unsupported forces relinking
7135 hardcode_minus_L=yes
7136 hardcode_libdir_flag_spec='-L$libdir'
7137 hardcode_libdir_separator=
7141 shared_flag='-shared'
7142 if test "$aix_use_runtimelinking" = yes; then
7143 shared_flag="$shared_flag "'${wl}-G'
7147 if test "$host_cpu" = ia64; then
7148 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7149 # chokes on -Wl,-G. The following line is correct:
7152 if test "$aix_use_runtimelinking" = yes; then
7153 shared_flag='${wl}-G'
7155 shared_flag='${wl}-bM:SRE'
7160 # It seems that -bexpall does not export symbols beginning with
7161 # underscore (_), so it is better to generate a list of symbols to export.
7162 always_export_symbols=yes
7163 if test "$aix_use_runtimelinking" = yes; then
7164 # Warning - without using the other runtime loading flags (-brtl),
7165 # -berok will link without error, but may produce a broken library.
7166 allow_undefined_flag='-berok'
7167 # Determine the default libpath from the value encoded in an empty executable.
7168 cat >conftest.$ac_ext <<_ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7207 # Check for a 64-bit object if we didn't find anything.
7208 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; }
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7215 rm -f conftest.err conftest.$ac_objext \
7216 conftest$ac_exeext conftest.$ac_ext
7217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7219 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7220 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7222 if test "$host_cpu" = ia64; then
7223 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7224 allow_undefined_flag="-z nodefs"
7225 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7227 # Determine the default libpath from the value encoded in an empty executable.
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245 (eval $ac_link) 2>conftest.er1
7247 grep -v '^ *+' conftest.er1 >conftest.err
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest$ac_exeext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7267 # Check for a 64-bit object if we didn't find anything.
7268 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; }
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7275 rm -f conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7279 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7280 # Warning - without using the other run time loading flags,
7281 # -berok will link without error, but may produce a broken library.
7282 no_undefined_flag=' ${wl}-bernotok'
7283 allow_undefined_flag=' ${wl}-berok'
7284 # Exported symbols can be pulled into shared objects from archives
7285 whole_archive_flag_spec='$convenience'
7286 archive_cmds_need_lc=yes
7287 # This is similar to how AIX traditionally builds its shared libraries.
7288 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7294 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)'
7295 hardcode_libdir_flag_spec='-L$libdir'
7296 hardcode_minus_L=yes
7297 # see comment about different semantics on the GNU ld section
7302 export_dynamic_flag_spec=-rdynamic
7305 cygwin* | mingw* | pw32*)
7306 # When not using gcc, we currently assume that we are using
7307 # Microsoft Visual C++.
7308 # hardcode_libdir_flag_spec is actually meaningless, as there is
7309 # no search path for DLLs.
7310 hardcode_libdir_flag_spec=' '
7311 allow_undefined_flag=unsupported
7312 # Tell ltmain to make .lib files, not .a files.
7314 # Tell ltmain to make .dll files, not .so files.
7316 # FIXME: Setting linknames here is a bad hack.
7317 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7318 # The linker will automatically build a .lib file if we build a DLL.
7319 old_archive_From_new_cmds='true'
7320 # FIXME: Should let the user specify the lib program.
7321 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7322 fix_srcfile_path='`cygpath -w "$srcfile"`'
7323 enable_shared_with_static_runtimes=yes
7326 darwin* | rhapsody*)
7328 rhapsody* | darwin1.[012])
7329 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7333 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7335 case ${MACOSX_DEPLOYMENT_TARGET} in
7337 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7340 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7346 archive_cmds_need_lc=no
7348 hardcode_automatic=yes
7349 hardcode_shlibpath_var=unsupported
7350 whole_archive_flag_spec=''
7351 link_all_deplibs=yes
7352 if test "$GCC" = yes ; then
7353 output_verbose_link_cmd='echo'
7354 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7355 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7357 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}'
7358 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}'
7360 case $cc_basename in
7362 output_verbose_link_cmd='echo'
7363 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7364 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7366 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7367 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}'
7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378 hardcode_libdir_flag_spec='-L$libdir'
7379 hardcode_shlibpath_var=no
7386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7387 # support. Future versions do this automatically, but an explicit c++rt0.o
7388 # does not break anything, and helps significantly (at the cost of a little
7391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7392 hardcode_libdir_flag_spec='-R$libdir'
7394 hardcode_shlibpath_var=no
7397 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7401 hardcode_minus_L=yes
7402 hardcode_shlibpath_var=no
7405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7406 freebsd* | dragonfly*)
7407 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7408 hardcode_libdir_flag_spec='-R$libdir'
7410 hardcode_shlibpath_var=no
7414 if test "$GCC" = yes; then
7415 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'
7417 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'
7419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7420 hardcode_libdir_separator=:
7423 # hardcode_minus_L: Not really in the search PATH,
7424 # but as the default location of the library.
7425 hardcode_minus_L=yes
7426 export_dynamic_flag_spec='${wl}-E'
7430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7433 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7435 if test "$with_gnu_ld" = no; then
7436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7437 hardcode_libdir_separator=:
7440 export_dynamic_flag_spec='${wl}-E'
7442 # hardcode_minus_L: Not really in the search PATH,
7443 # but as the default location of the library.
7444 hardcode_minus_L=yes
7449 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7452 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7455 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7458 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7464 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7467 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7470 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7474 if test "$with_gnu_ld" = no; then
7475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7476 hardcode_libdir_separator=:
7480 hardcode_libdir_flag_spec_ld='+b $libdir'
7482 hardcode_shlibpath_var=no
7486 export_dynamic_flag_spec='${wl}-E'
7488 # hardcode_minus_L: Not really in the search PATH,
7489 # but as the default location of the library.
7490 hardcode_minus_L=yes
7496 irix5* | irix6* | nonstopux*)
7497 if test "$GCC" = yes; then
7498 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'
7500 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'
7501 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7504 hardcode_libdir_separator=:
7505 link_all_deplibs=yes
7508 netbsd* | netbsdelf*-gnu)
7509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7512 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7514 hardcode_libdir_flag_spec='-R$libdir'
7516 hardcode_shlibpath_var=no
7520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7523 hardcode_libdir_separator=:
7524 hardcode_shlibpath_var=no
7529 hardcode_shlibpath_var=no
7530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7532 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7534 export_dynamic_flag_spec='${wl}-E'
7537 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7539 hardcode_libdir_flag_spec='-R$libdir'
7542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7550 hardcode_libdir_flag_spec='-L$libdir'
7551 hardcode_minus_L=yes
7552 allow_undefined_flag=unsupported
7553 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'
7554 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7558 if test "$GCC" = yes; then
7559 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7560 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'
7562 allow_undefined_flag=' -expect_unresolved \*'
7563 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'
7565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7566 hardcode_libdir_separator=:
7569 osf4* | osf5*) # as osf3* with the addition of -msym flag
7570 if test "$GCC" = yes; then
7571 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7572 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'
7573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7575 allow_undefined_flag=' -expect_unresolved \*'
7576 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'
7577 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7578 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7580 # Both c and cxx compiler support -rpath directly
7581 hardcode_libdir_flag_spec='-rpath $libdir'
7583 hardcode_libdir_separator=:
7587 no_undefined_flag=' -z text'
7588 if test "$GCC" = yes; then
7590 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7591 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7592 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7595 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7596 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7599 hardcode_libdir_flag_spec='-R$libdir'
7600 hardcode_shlibpath_var=no
7602 solaris2.[0-5] | solaris2.[0-5].*) ;;
7604 # The compiler driver will combine linker options so we
7605 # cannot just pass the convience library names through
7606 # without $wl, iff we do not link with $LD.
7607 # Luckily, gcc supports the same syntax we need for Sun Studio.
7608 # Supported since Solaris 2.6 (maybe 2.5.1?)
7611 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7613 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7616 link_all_deplibs=yes
7620 if test "x$host_vendor" = xsequent; then
7621 # Use $CC to link under sequent, because it throws in some extra .o
7622 # files that make .init and .fini sections work.
7623 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7625 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7627 hardcode_libdir_flag_spec='-L$libdir'
7629 hardcode_minus_L=yes
7630 hardcode_shlibpath_var=no
7634 case $host_vendor in
7636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7637 hardcode_direct=yes # is this really true???
7640 ## LD is ld it makes a PLAMLIB
7641 ## CC just makes a GrossModule.
7642 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7643 reload_cmds='$CC -r -o $output$reload_objs'
7647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7648 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7651 runpath_var='LD_RUN_PATH'
7652 hardcode_shlibpath_var=no
7656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7657 hardcode_shlibpath_var=no
7658 export_dynamic_flag_spec='-Bexport'
7662 if test -d /usr/nec; then
7663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664 hardcode_shlibpath_var=no
7665 runpath_var=LD_RUN_PATH
7666 hardcode_runpath_var=yes
7671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7672 no_undefined_flag='${wl}-z,text'
7673 archive_cmds_need_lc=no
7674 hardcode_shlibpath_var=no
7675 runpath_var='LD_RUN_PATH'
7677 if test "$GCC" = yes; then
7678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7686 sysv5* | sco3.2v5* | sco5v6*)
7687 # Note: We can NOT use -z defs as we might desire, because we do not
7688 # link with -lc, and that would cause any symbols used from libc to
7689 # always be unresolved, which means just about no library would
7690 # ever link correctly. If we're not using GNU ld we use -z text
7691 # though, which does catch some bad symbols but isn't as heavy-handed
7693 no_undefined_flag='${wl}-z,text'
7694 allow_undefined_flag='${wl}-z,nodefs'
7695 archive_cmds_need_lc=no
7696 hardcode_shlibpath_var=no
7697 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7698 hardcode_libdir_separator=':'
7699 link_all_deplibs=yes
7700 export_dynamic_flag_spec='${wl}-Bexport'
7701 runpath_var='LD_RUN_PATH'
7703 if test "$GCC" = yes; then
7704 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7705 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7707 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7708 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7714 hardcode_libdir_flag_spec='-L$libdir'
7715 hardcode_shlibpath_var=no
7724 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7725 echo "${ECHO_T}$ld_shlibs" >&6
7726 test "$ld_shlibs" = no && can_build_shared=no
7729 # Do we need to explicitly link libc?
7731 case "x$archive_cmds_need_lc" in
7733 # Assume -lc should be added
7734 archive_cmds_need_lc=yes
7736 if test "$enable_shared" = yes && test "$GCC" = yes; then
7737 case $archive_cmds in
7739 # FIXME: we may have to deal with multi-command sequences.
7742 # Test whether the compiler implicitly links with -lc since on some
7743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7744 # to ld, don't add -lc before -lgcc.
7745 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7746 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7751 (eval $ac_compile) 2>&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } 2>conftest.err; then
7757 libobjs=conftest.$ac_objext
7759 wl=$lt_prog_compiler_wl
7760 pic_flag=$lt_prog_compiler_pic
7766 lt_save_allow_undefined_flag=$allow_undefined_flag
7767 allow_undefined_flag=
7768 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7769 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }
7774 archive_cmds_need_lc=no
7776 archive_cmds_need_lc=yes
7778 allow_undefined_flag=$lt_save_allow_undefined_flag
7780 cat conftest.err 1>&5
7783 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7784 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7791 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7794 libname_spec='lib$name'
7802 shlibpath_overrides_runpath=unknown
7804 dynamic_linker="$host_os ld.so"
7805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7806 if test "$GCC" = yes; then
7807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7808 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7809 # if the path contains ";" then we assume it to be the separator
7810 # otherwise default to the standard path separator (i.e. ":") - it is
7811 # assumed that no part of a normal pathname contains ";" but that should
7812 # okay in the real world where ";" in dirpaths is itself problematic.
7813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7820 need_lib_prefix=unknown
7821 hardcode_into_libs=no
7823 # when you set need_version to no, make sure it does not cause -set_version
7824 # flags to be left without arguments
7825 need_version=unknown
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7831 shlibpath_var=LIBPATH
7833 # AIX 3 has no versioning support, so we append a major version to the name.
7834 soname_spec='${libname}${release}${shared_ext}$major'
7841 hardcode_into_libs=yes
7842 if test "$host_cpu" = ia64; then
7843 # AIX 5 supports IA64
7844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7845 shlibpath_var=LD_LIBRARY_PATH
7847 # With GCC up to 2.95.x, collect2 would create an import file
7848 # for dependence libraries. The import file would start with
7849 # the line `#! .'. This would cause the generated library to
7850 # depend on `.', always an invalid library. This was fixed in
7851 # development snapshots of GCC prior to 3.0.
7853 aix4 | aix4.[01] | aix4.[01].*)
7854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7864 # soname into executable. Probably we can add versioning support to
7865 # collect2, so additional links can be useful in future.
7866 if test "$aix_use_runtimelinking" = yes; then
7867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7868 # instead of lib<name>.a to let people know that these are not
7869 # typical AIX shared libraries.
7870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7872 # We preserve .a as extension for shared libraries through AIX4.2
7873 # and later when we are not doing run time linking.
7874 library_names_spec='${libname}${release}.a $libname.a'
7875 soname_spec='${libname}${release}${shared_ext}$major'
7877 shlibpath_var=LIBPATH
7882 library_names_spec='$libname.ixlibrary $libname.a'
7883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7884 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'
7888 library_names_spec='${libname}${shared_ext}'
7889 dynamic_linker="$host_os ld.so"
7890 shlibpath_var=LIBRARY_PATH
7896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897 soname_spec='${libname}${release}${shared_ext}$major'
7898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7899 shlibpath_var=LD_LIBRARY_PATH
7900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7902 # the default ld.so.conf also contains /usr/contrib/lib and
7903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7904 # libtool to hard-code these into programs
7907 cygwin* | mingw* | pw32*)
7908 version_type=windows
7913 case $GCC,$host_os in
7914 yes,cygwin* | yes,mingw* | yes,pw32*)
7915 library_names_spec='$libname.dll.a'
7916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7917 postinstall_cmds='base_file=`basename \${file}`~
7918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7919 dldir=$destdir/`dirname \$dlpath`~
7920 test -d \$dldir || mkdir -p \$dldir~
7921 $install_prog $dir/$dlname \$dldir/$dlname~
7922 chmod a+x \$dldir/$dlname'
7923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7924 dlpath=$dir/\$dldll~
7926 shlibpath_overrides_runpath=yes
7930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7935 # MinGW DLLs use traditional 'lib' prefix
7936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7939 # It is most probably a Windows format PATH printed by
7940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7941 # path with ; separators, and with drive letters. We can handle the
7942 # drive letters (cygwin fileutils understands them), so leave them,
7943 # especially as we might pass files found there to a mingw objdump,
7944 # which wouldn't understand a cygwinified path. Ahh.
7945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7951 # pw32 DLLs use 'pw' prefix rather than 'lib'
7952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7961 dynamic_linker='Win32 ld.exe'
7962 # FIXME: first we should search . and the directory the executable is in
7966 darwin* | rhapsody*)
7967 dynamic_linker="$host_os dyld"
7971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7972 soname_spec='${libname}${release}${major}$shared_ext'
7973 shlibpath_overrides_runpath=yes
7974 shlibpath_var=DYLD_LIBRARY_PATH
7975 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7977 if test "$GCC" = yes; then
7978 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"`
7980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 shlibpath_var=LD_LIBRARY_PATH
7998 freebsd* | dragonfly*)
7999 # DragonFly does not have aout. When/if they implement a new
8000 # versioning mechanism, adjust this.
8001 if test -x /usr/bin/objformat; then
8002 objformat=`/usr/bin/objformat`
8005 freebsd[123]*) objformat=aout ;;
8009 version_type=freebsd-$objformat
8010 case $version_type in
8012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8021 shlibpath_var=LD_LIBRARY_PATH
8024 shlibpath_overrides_runpath=yes
8026 freebsd3.[01]* | freebsdelf3.[01]*)
8027 shlibpath_overrides_runpath=yes
8028 hardcode_into_libs=yes
8030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8032 shlibpath_overrides_runpath=no
8033 hardcode_into_libs=yes
8035 freebsd*) # from 4.6 on
8036 shlibpath_overrides_runpath=yes
8037 hardcode_into_libs=yes
8046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 shlibpath_var=LD_LIBRARY_PATH
8049 hardcode_into_libs=yes
8052 hpux9* | hpux10* | hpux11*)
8053 # Give a soname corresponding to the major version so that dld.sl refuses to
8054 # link against other versions.
8061 hardcode_into_libs=yes
8062 dynamic_linker="$host_os dld.so"
8063 shlibpath_var=LD_LIBRARY_PATH
8064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8066 soname_spec='${libname}${release}${shared_ext}$major'
8067 if test "X$HPUX_IA64_MODE" = X32; then
8068 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8070 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8076 hardcode_into_libs=yes
8077 dynamic_linker="$host_os dld.sl"
8078 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8081 soname_spec='${libname}${release}${shared_ext}$major'
8082 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8087 dynamic_linker="$host_os dld.sl"
8088 shlibpath_var=SHLIB_PATH
8089 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091 soname_spec='${libname}${release}${shared_ext}$major'
8094 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8095 postinstall_cmds='chmod 555 $lib'
8102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8103 soname_spec='${libname}${release}${shared_ext}$major'
8104 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8105 shlibpath_var=LD_LIBRARY_PATH
8106 shlibpath_overrides_runpath=no
8107 hardcode_into_libs=yes
8110 irix5* | irix6* | nonstopux*)
8112 nonstopux*) version_type=nonstopux ;;
8114 if test "$lt_cv_prog_gnu_ld" = yes; then
8122 soname_spec='${libname}${release}${shared_ext}$major'
8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8125 irix5* | nonstopux*)
8129 case $LD in # libtool.m4 will add one of these switches to LD
8130 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8131 libsuff= shlibsuff= libmagic=32-bit;;
8132 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8133 libsuff=32 shlibsuff=N32 libmagic=N32;;
8134 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8135 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8136 *) libsuff= shlibsuff= libmagic=never-match;;
8140 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8141 shlibpath_overrides_runpath=no
8142 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8143 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8144 hardcode_into_libs=yes
8147 # No shared lib support for Linux oldld, aout, or coff.
8148 linux*oldld* | linux*aout* | linux*coff*)
8152 # This must be Linux ELF.
8153 linux* | k*bsd*-gnu)
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158 soname_spec='${libname}${release}${shared_ext}$major'
8159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8160 shlibpath_var=LD_LIBRARY_PATH
8161 shlibpath_overrides_runpath=no
8162 # This implies no fast_install, which is unacceptable.
8163 # Some rework will be needed to allow for fast_install
8164 # before this can be enabled.
8165 hardcode_into_libs=yes
8167 # Append ld.so.conf contents to the search path
8168 if test -f /etc/ld.so.conf; then
8169 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8173 # We used to test for /lib/ld.so.1 and disable shared libraries on
8174 # powerpc, because MkLinux only supported shared libraries with the
8175 # GNU dynamic linker. Since this was broken with cross compilers,
8176 # most powerpc-linux boxes support dynamic linking these days and
8177 # people can always --disable-shared, the test was removed, and we
8178 # assume the GNU/Linux dynamic linker is in use.
8179 dynamic_linker='GNU/Linux ld.so'
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8187 soname_spec='${libname}${release}${shared_ext}$major'
8188 shlibpath_var=LD_LIBRARY_PATH
8189 shlibpath_overrides_runpath=no
8190 hardcode_into_libs=yes
8191 dynamic_linker='NetBSD ld.elf_so'
8198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8201 dynamic_linker='NetBSD (a.out) ld.so'
8203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8204 soname_spec='${libname}${release}${shared_ext}$major'
8205 dynamic_linker='NetBSD ld.elf_so'
8207 shlibpath_var=LD_LIBRARY_PATH
8208 shlibpath_overrides_runpath=yes
8209 hardcode_into_libs=yes
8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215 shlibpath_var=LD_LIBRARY_PATH
8216 shlibpath_overrides_runpath=yes
8223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8224 soname_spec='${libname}${release}${shared_ext}$major'
8225 shlibpath_var=LD_LIBRARY_PATH
8226 shlibpath_overrides_runpath=yes
8231 sys_lib_dlsearch_path_spec="/usr/lib"
8233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8235 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8236 *) need_version=no ;;
8238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8240 shlibpath_var=LD_LIBRARY_PATH
8241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8243 openbsd2.[89] | openbsd2.[89].*)
8244 shlibpath_overrides_runpath=no
8247 shlibpath_overrides_runpath=yes
8251 shlibpath_overrides_runpath=yes
8256 libname_spec='$name'
8259 library_names_spec='$libname${shared_ext} $libname.a'
8260 dynamic_linker='OS/2 ld.exe'
8261 shlibpath_var=LIBPATH
8264 osf3* | osf4* | osf5*)
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8270 shlibpath_var=LD_LIBRARY_PATH
8271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8280 soname_spec='${libname}${release}${shared_ext}$major'
8281 shlibpath_var=LD_LIBRARY_PATH
8282 shlibpath_overrides_runpath=yes
8283 hardcode_into_libs=yes
8284 # ldd complains unless libraries are executable
8285 postinstall_cmds='chmod +x $lib'
8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8292 shlibpath_var=LD_LIBRARY_PATH
8293 shlibpath_overrides_runpath=yes
8294 if test "$with_gnu_ld" = yes; then
8302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8303 soname_spec='${libname}${release}${shared_ext}$major'
8304 shlibpath_var=LD_LIBRARY_PATH
8305 case $host_vendor in
8307 shlibpath_overrides_runpath=no
8309 export_dynamic_flag_spec='${wl}-Blargedynsym'
8310 runpath_var=LD_RUN_PATH
8318 shlibpath_overrides_runpath=no
8319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8325 if test -d /usr/nec ;then
8327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8328 soname_spec='$libname${shared_ext}.$major'
8329 shlibpath_var=LD_LIBRARY_PATH
8333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8334 version_type=freebsd-elf
8337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8338 soname_spec='${libname}${release}${shared_ext}$major'
8339 shlibpath_var=LD_LIBRARY_PATH
8340 hardcode_into_libs=yes
8341 if test "$with_gnu_ld" = yes; then
8342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8343 shlibpath_overrides_runpath=no
8345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8346 shlibpath_overrides_runpath=yes
8349 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8353 sys_lib_dlsearch_path_spec='/usr/lib'
8358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8359 soname_spec='${libname}${release}${shared_ext}$major'
8360 shlibpath_var=LD_LIBRARY_PATH
8367 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8368 echo "${ECHO_T}$dynamic_linker" >&6
8369 test "$dynamic_linker" = no && can_build_shared=no
8371 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8372 if test "$GCC" = yes; then
8373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8376 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8379 if test -n "$hardcode_libdir_flag_spec" || \
8380 test -n "$runpath_var" || \
8381 test "X$hardcode_automatic" = "Xyes" ; then
8383 # We can hardcode non-existant directories.
8384 if test "$hardcode_direct" != no &&
8385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8386 # have to relink, otherwise we might link with an installed library
8387 # when we should be linking with a yet-to-be-installed one
8388 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8389 test "$hardcode_minus_L" != no; then
8390 # Linking always hardcodes the temporary library directory.
8391 hardcode_action=relink
8393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8394 hardcode_action=immediate
8397 # We cannot hardcode anything, or else we can only hardcode existing
8399 hardcode_action=unsupported
8401 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8402 echo "${ECHO_T}$hardcode_action" >&6
8404 if test "$hardcode_action" = relink; then
8405 # Fast installation is not supported
8406 enable_fast_install=no
8407 elif test "$shlibpath_overrides_runpath" = yes ||
8408 test "$enable_shared" = no; then
8409 # Fast installation is not necessary
8410 enable_fast_install=needless
8415 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8416 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8417 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8418 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8419 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8420 echo "$as_me:$LINENO: result: yes" >&5
8421 echo "${ECHO_T}yes" >&6
8423 # FIXME - insert some real tests, host_os isn't really good enough
8426 if test -n "$STRIP" ; then
8427 striplib="$STRIP -x"
8428 echo "$as_me:$LINENO: result: yes" >&5
8429 echo "${ECHO_T}yes" >&6
8431 echo "$as_me:$LINENO: result: no" >&5
8432 echo "${ECHO_T}no" >&6
8436 echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6
8442 if test "x$enable_dlopen" != xyes; then
8443 enable_dlopen=unknown
8444 enable_dlopen_self=unknown
8445 enable_dlopen_self_static=unknown
8452 lt_cv_dlopen="load_add_on"
8454 lt_cv_dlopen_self=yes
8458 lt_cv_dlopen="LoadLibrary"
8463 lt_cv_dlopen="dlopen"
8468 # if libdl is installed we need to link against it
8469 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8470 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8471 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 ac_check_lib_save_LIBS=$LIBS
8476 cat >conftest.$ac_ext <<_ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8483 /* Override any gcc2 internal prototype to avoid an error. */
8487 /* We use char because int might match the return type of a gcc2
8488 builtin and then its argument prototype would still apply. */
8498 rm -f conftest.$ac_objext conftest$ac_exeext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500 (eval $ac_link) 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } &&
8513 { ac_try='test -s conftest$ac_exeext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_lib_dl_dlopen=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_cv_lib_dl_dlopen=no
8526 rm -f conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528 LIBS=$ac_check_lib_save_LIBS
8530 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8532 if test $ac_cv_lib_dl_dlopen = yes; then
8533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8538 lt_cv_dlopen_self=yes
8545 echo "$as_me:$LINENO: checking for shl_load" >&5
8546 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8547 if test "${ac_cv_func_shl_load+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8558 #define shl_load innocuous_shl_load
8560 /* System header to define __stub macros and hopefully few prototypes,
8561 which can conflict with char shl_load (); below.
8562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8563 <limits.h> exists even on freestanding compilers. */
8566 # include <limits.h>
8568 # include <assert.h>
8573 /* Override any gcc2 internal prototype to avoid an error. */
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8581 /* The GNU C library defines this for functions which it implements
8582 to always fail with ENOSYS. Some functions are actually named
8583 something starting with __ and the normal name is an alias. */
8584 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8587 char (*f) () = shl_load;
8596 return f != shl_load;
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_func_shl_load=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_func_shl_load=no
8629 rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8633 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8634 if test $ac_cv_func_shl_load = yes; then
8635 lt_cv_dlopen="shl_load"
8637 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8638 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 ac_check_lib_save_LIBS=$LIBS
8644 cat >conftest.$ac_ext <<_ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8651 /* Override any gcc2 internal prototype to avoid an error. */
8655 /* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; } &&
8681 { ac_try='test -s conftest$ac_exeext'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 ac_cv_lib_dld_shl_load=yes
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 ac_cv_lib_dld_shl_load=no
8694 rm -f conftest.err conftest.$ac_objext \
8695 conftest$ac_exeext conftest.$ac_ext
8696 LIBS=$ac_check_lib_save_LIBS
8698 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8699 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8700 if test $ac_cv_lib_dld_shl_load = yes; then
8701 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8703 echo "$as_me:$LINENO: checking for dlopen" >&5
8704 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8705 if test "${ac_cv_func_dlopen+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 cat >conftest.$ac_ext <<_ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8716 #define dlopen innocuous_dlopen
8718 /* System header to define __stub macros and hopefully few prototypes,
8719 which can conflict with char dlopen (); below.
8720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8721 <limits.h> exists even on freestanding compilers. */
8724 # include <limits.h>
8726 # include <assert.h>
8731 /* Override any gcc2 internal prototype to avoid an error. */
8736 /* We use char because int might match the return type of a gcc2
8737 builtin and then its argument prototype would still apply. */
8739 /* The GNU C library defines this for functions which it implements
8740 to always fail with ENOSYS. Some functions are actually named
8741 something starting with __ and the normal name is an alias. */
8742 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8745 char (*f) () = dlopen;
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_func_dlopen=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_func_dlopen=no
8787 rm -f conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8790 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8791 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8792 if test $ac_cv_func_dlopen = yes; then
8793 lt_cv_dlopen="dlopen"
8795 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8796 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8797 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 ac_check_lib_save_LIBS=$LIBS
8802 cat >conftest.$ac_ext <<_ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8809 /* Override any gcc2 internal prototype to avoid an error. */
8813 /* We use char because int might match the return type of a gcc2
8814 builtin and then its argument prototype would still apply. */
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826 (eval $ac_link) 2>conftest.er1
8828 grep -v '^ *+' conftest.er1 >conftest.err
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } &&
8833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_lib_dl_dlopen=yes
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_cv_lib_dl_dlopen=no
8852 rm -f conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8857 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8858 if test $ac_cv_lib_dl_dlopen = yes; then
8859 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8861 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8862 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8863 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 ac_check_lib_save_LIBS=$LIBS
8868 cat >conftest.$ac_ext <<_ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8875 /* Override any gcc2 internal prototype to avoid an error. */
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; } &&
8905 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_lib_svld_dlopen=yes
8913 echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_lib_svld_dlopen=no
8918 rm -f conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8923 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8924 if test $ac_cv_lib_svld_dlopen = yes; then
8925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8927 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8928 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8929 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 ac_check_lib_save_LIBS=$LIBS
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8941 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8960 grep -v '^ *+' conftest.er1 >conftest.err
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_lib_dld_dld_link=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_cv_lib_dld_dld_link=no
8984 rm -f conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8989 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8990 if test $ac_cv_lib_dld_dld_link = yes; then
8991 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9012 if test "x$lt_cv_dlopen" != xno; then
9018 case $lt_cv_dlopen in
9020 save_CPPFLAGS="$CPPFLAGS"
9021 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9023 save_LDFLAGS="$LDFLAGS"
9024 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9027 LIBS="$lt_cv_dlopen_libs $LIBS"
9029 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9030 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9031 if test "${lt_cv_dlopen_self+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 if test "$cross_compiling" = yes; then :
9035 lt_cv_dlopen_self=cross
9037 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9038 lt_status=$lt_dlunknown
9039 cat > conftest.$ac_ext <<EOF
9040 #line __oline__ "configure"
9041 #include "confdefs.h"
9050 # define LT_DLGLOBAL RTLD_GLOBAL
9053 # define LT_DLGLOBAL DL_GLOBAL
9055 # define LT_DLGLOBAL 0
9059 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9060 find out it does not work in some platform. */
9061 #ifndef LT_DLLAZY_OR_NOW
9063 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9066 # define LT_DLLAZY_OR_NOW DL_LAZY
9069 # define LT_DLLAZY_OR_NOW RTLD_NOW
9072 # define LT_DLLAZY_OR_NOW DL_NOW
9074 # define LT_DLLAZY_OR_NOW 0
9082 extern "C" void exit (int);
9085 void fnord() { int i=42;}
9088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9089 int status = $lt_dlunknown;
9093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9094 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9095 /* dlclose (self); */
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9108 (./conftest; exit; ) >&5 2>/dev/null
9111 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9112 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9113 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9116 # compilation failed
9117 lt_cv_dlopen_self=no
9124 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9125 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9127 if test "x$lt_cv_dlopen_self" = xyes; then
9128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9129 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9130 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9131 if test "${lt_cv_dlopen_self_static+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 if test "$cross_compiling" = yes; then :
9135 lt_cv_dlopen_self_static=cross
9137 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9138 lt_status=$lt_dlunknown
9139 cat > conftest.$ac_ext <<EOF
9140 #line __oline__ "configure"
9141 #include "confdefs.h"
9150 # define LT_DLGLOBAL RTLD_GLOBAL
9153 # define LT_DLGLOBAL DL_GLOBAL
9155 # define LT_DLGLOBAL 0
9159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9160 find out it does not work in some platform. */
9161 #ifndef LT_DLLAZY_OR_NOW
9163 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9166 # define LT_DLLAZY_OR_NOW DL_LAZY
9169 # define LT_DLLAZY_OR_NOW RTLD_NOW
9172 # define LT_DLLAZY_OR_NOW DL_NOW
9174 # define LT_DLLAZY_OR_NOW 0
9182 extern "C" void exit (int);
9185 void fnord() { int i=42;}
9188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9189 int status = $lt_dlunknown;
9193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9195 /* dlclose (self); */
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9208 (./conftest; exit; ) >&5 2>/dev/null
9211 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9212 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9213 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9216 # compilation failed
9217 lt_cv_dlopen_self_static=no
9224 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9225 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9228 CPPFLAGS="$save_CPPFLAGS"
9229 LDFLAGS="$save_LDFLAGS"
9234 case $lt_cv_dlopen_self in
9235 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9236 *) enable_dlopen_self=unknown ;;
9239 case $lt_cv_dlopen_self_static in
9240 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9241 *) enable_dlopen_self_static=unknown ;;
9246 # Report which library types will actually be built
9247 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9248 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9249 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9250 echo "${ECHO_T}$can_build_shared" >&6
9252 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9253 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9254 test "$can_build_shared" = "no" && enable_shared=no
9256 # On AIX, shared libraries and static libraries use the same namespace, and
9257 # are all built from PIC.
9260 test "$enable_shared" = yes && enable_static=no
9261 if test -n "$RANLIB"; then
9262 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9263 postinstall_cmds='$RANLIB $lib'
9268 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9269 test "$enable_shared" = yes && enable_static=no
9273 echo "$as_me:$LINENO: result: $enable_shared" >&5
9274 echo "${ECHO_T}$enable_shared" >&6
9276 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9277 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9278 # Make sure either enable_shared or enable_static is yes.
9279 test "$enable_shared" = yes || enable_static=yes
9280 echo "$as_me:$LINENO: result: $enable_static" >&5
9281 echo "${ECHO_T}$enable_static" >&6
9283 # The else clause should only fire when bootstrapping the
9284 # libtool distribution, otherwise you forgot to ship ltmain.sh
9285 # with your package, and you will get complaints that there are
9286 # no rules to generate ltmain.sh.
9287 if test -f "$ltmain"; then
9288 # See if we are running on zsh, and set the options which allow our commands through
9289 # without removal of \ escapes.
9290 if test -n "${ZSH_VERSION+set}" ; then
9291 setopt NO_GLOB_SUBST
9293 # Now quote all the things that may contain metacharacters while being
9294 # careful not to overquote the AC_SUBSTed values. We take copies of the
9295 # variables and quote the copies for generation of the libtool script.
9296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9300 deplibs_check_method reload_flag reload_cmds need_locks \
9301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9302 lt_cv_sys_global_symbol_to_c_name_address \
9303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9304 old_postinstall_cmds old_postuninstall_cmds \
9308 lt_prog_compiler_wl \
9309 lt_prog_compiler_pic \
9310 lt_prog_compiler_static \
9311 lt_prog_compiler_no_builtin_flag \
9312 export_dynamic_flag_spec \
9313 thread_safe_flag_spec \
9314 whole_archive_flag_spec \
9315 enable_shared_with_static_runtimes \
9317 old_archive_from_new_cmds \
9322 compiler_lib_search_path \
9324 archive_expsym_cmds \
9326 postuninstall_cmds \
9327 old_archive_from_expsyms_cmds \
9328 allow_undefined_flag \
9330 export_symbols_cmds \
9331 hardcode_libdir_flag_spec \
9332 hardcode_libdir_flag_spec_ld \
9333 hardcode_libdir_separator \
9334 hardcode_automatic \
9336 module_expsym_cmds \
9337 lt_cv_prog_compiler_c_o \
9342 old_archive_cmds | \
9343 old_archive_from_new_cmds | \
9345 archive_expsym_cmds | \
9347 module_expsym_cmds | \
9348 old_archive_from_expsyms_cmds | \
9349 export_symbols_cmds | \
9350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9351 postinstall_cmds | postuninstall_cmds | \
9352 old_postinstall_cmds | old_postuninstall_cmds | \
9353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9354 # Double-quote double-evaled strings.
9355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9364 *'\$0 --fallback-echo"')
9365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9370 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9372 { echo "$as_me:$LINENO: creating $ofile" >&5
9373 echo "$as_me: creating $ofile" >&6;}
9375 cat <<__EOF__ >> "$cfgfile"
9378 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9379 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9380 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9382 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9383 # Free Software Foundation, Inc.
9385 # This file is part of GNU Libtool:
9386 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9388 # This program is free software; you can redistribute it and/or modify
9389 # it under the terms of the GNU General Public License as published by
9390 # the Free Software Foundation; either version 2 of the License, or
9391 # (at your option) any later version.
9393 # This program is distributed in the hope that it will be useful, but
9394 # WITHOUT ANY WARRANTY; without even the implied warranty of
9395 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9396 # General Public License for more details.
9398 # You should have received a copy of the GNU General Public License
9399 # along with this program; if not, write to the Free Software
9400 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9402 # As a special exception to the GNU General Public License, if you
9403 # distribute this file as part of a program that contains a
9404 # configuration script generated by Autoconf, you may include it under
9405 # the same distribution terms that you use for the rest of that program.
9407 # A sed program that does not truncate output.
9410 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9411 Xsed="$SED -e 1s/^X//"
9413 # The HP-UX ksh and POSIX shell print the target directory to stdout
9415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9417 # The names of the tagged configurations supported by this script.
9420 # ### BEGIN LIBTOOL CONFIG
9422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9424 # Shell to use when invoking shell scripts.
9427 # Whether or not to build shared libraries.
9428 build_libtool_libs=$enable_shared
9430 # Whether or not to build static libraries.
9431 build_old_libs=$enable_static
9433 # Whether or not to add -lc for building shared libraries.
9434 build_libtool_need_lc=$archive_cmds_need_lc
9436 # Whether or not to disallow shared libs when runtime libs are static
9437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9439 # Whether or not to optimize for fast installation.
9440 fast_install=$enable_fast_install
9443 host_alias=$host_alias
9448 build_alias=$build_alias
9452 # An echo program that does not interpret backslashes.
9457 AR_FLAGS=$lt_AR_FLAGS
9462 # LTCC compiler flags.
9463 LTCFLAGS=$lt_LTCFLAGS
9465 # A language-specific compiler.
9468 # Is the compiler the GNU C compiler?
9474 # The linker used to build libraries.
9477 # Whether we need hard or soft links.
9480 # A BSD-compatible nm program.
9483 # A symbol stripping program
9486 # Used to examine libraries when file_magic_cmd begins "file"
9487 MAGIC_CMD=$MAGIC_CMD
9489 # Used on cygwin: DLL creation program.
9492 # Used on cygwin: object dumper.
9495 # Used on cygwin: assembler.
9498 # The name of the directory that contains temporary libtool files.
9501 # How to create reloadable object files.
9502 reload_flag=$lt_reload_flag
9503 reload_cmds=$lt_reload_cmds
9505 # How to pass a linker flag through the compiler.
9506 wl=$lt_lt_prog_compiler_wl
9508 # Object file suffix (normally "o").
9511 # Old archive suffix (normally "a").
9514 # Shared library suffix (normally ".so").
9515 shrext_cmds='$shrext_cmds'
9517 # Executable file suffix (normally "").
9520 # Additional compiler flags for building library objects.
9521 pic_flag=$lt_lt_prog_compiler_pic
9524 # What is the maximum length of a command?
9525 max_cmd_len=$lt_cv_sys_max_cmd_len
9527 # Does compiler simultaneously support -c and -o options?
9528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9530 # Must we lock files when doing compilation?
9531 need_locks=$lt_need_locks
9533 # Do we need the lib prefix for modules?
9534 need_lib_prefix=$need_lib_prefix
9536 # Do we need a version for libraries?
9537 need_version=$need_version
9539 # Whether dlopen is supported.
9540 dlopen_support=$enable_dlopen
9542 # Whether dlopen of programs is supported.
9543 dlopen_self=$enable_dlopen_self
9545 # Whether dlopen of statically linked programs is supported.
9546 dlopen_self_static=$enable_dlopen_self_static
9548 # Compiler flag to prevent dynamic linking.
9549 link_static_flag=$lt_lt_prog_compiler_static
9551 # Compiler flag to turn off builtin functions.
9552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9554 # Compiler flag to allow reflexive dlopens.
9555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9557 # Compiler flag to generate shared objects directly from archives.
9558 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9560 # Compiler flag to generate thread-safe objects.
9561 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9563 # Library versioning type.
9564 version_type=$version_type
9566 # Format of library name prefix.
9567 libname_spec=$lt_libname_spec
9569 # List of archive names. First name is the real one, the rest are links.
9570 # The last name is the one that the linker finds with -lNAME.
9571 library_names_spec=$lt_library_names_spec
9573 # The coded name of the library, if different from the real name.
9574 soname_spec=$lt_soname_spec
9576 # Commands used to build and install an old-style archive.
9578 old_archive_cmds=$lt_old_archive_cmds
9579 old_postinstall_cmds=$lt_old_postinstall_cmds
9580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9582 # Create an old-style archive from a shared archive.
9583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9585 # Create a temporary old-style archive to link instead of a shared archive.
9586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9588 # Commands used to build and install a shared archive.
9589 archive_cmds=$lt_archive_cmds
9590 archive_expsym_cmds=$lt_archive_expsym_cmds
9591 postinstall_cmds=$lt_postinstall_cmds
9592 postuninstall_cmds=$lt_postuninstall_cmds
9594 # Commands used to build a loadable module (assumed same as above if empty)
9595 module_cmds=$lt_module_cmds
9596 module_expsym_cmds=$lt_module_expsym_cmds
9598 # Commands to strip libraries.
9599 old_striplib=$lt_old_striplib
9600 striplib=$lt_striplib
9602 # Dependencies to place before the objects being linked to create a
9604 predep_objects=$lt_predep_objects
9606 # Dependencies to place after the objects being linked to create a
9608 postdep_objects=$lt_postdep_objects
9610 # Dependencies to place before the objects being linked to create a
9614 # Dependencies to place after the objects being linked to create a
9616 postdeps=$lt_postdeps
9618 # The library search path used internally by the compiler when linking
9620 compiler_lib_search_path=$lt_compiler_lib_search_path
9622 # Method to check whether dependent libraries are shared objects.
9623 deplibs_check_method=$lt_deplibs_check_method
9625 # Command to use when deplibs_check_method == file_magic.
9626 file_magic_cmd=$lt_file_magic_cmd
9628 # Flag that allows shared libraries with undefined symbols to be built.
9629 allow_undefined_flag=$lt_allow_undefined_flag
9631 # Flag that forces no undefined symbols.
9632 no_undefined_flag=$lt_no_undefined_flag
9634 # Commands used to finish a libtool library installation in a directory.
9635 finish_cmds=$lt_finish_cmds
9637 # Same as above, but a single script fragment to be evaled but not shown.
9638 finish_eval=$lt_finish_eval
9640 # Take the output of nm and produce a listing of raw symbols and C names.
9641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9643 # Transform the output of nm in a proper C declaration
9644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9646 # Transform the output of nm in a C name address pair
9647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9649 # This is the shared library runtime path variable.
9650 runpath_var=$runpath_var
9652 # This is the shared library path variable.
9653 shlibpath_var=$shlibpath_var
9655 # Is shlibpath searched before the hard-coded library search path?
9656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9658 # How to hardcode a shared library path into an executable.
9659 hardcode_action=$hardcode_action
9661 # Whether we should hardcode library paths into libraries.
9662 hardcode_into_libs=$hardcode_into_libs
9664 # Flag to hardcode \$libdir into a binary during linking.
9665 # This must work even if \$libdir does not exist.
9666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9668 # If ld is used when linking, flag to hardcode \$libdir into
9669 # a binary during linking. This must work even if \$libdir does
9671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9673 # Whether we need a single -rpath flag with a separated argument.
9674 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9678 hardcode_direct=$hardcode_direct
9680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9682 hardcode_minus_L=$hardcode_minus_L
9684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9685 # the resulting binary.
9686 hardcode_shlibpath_var=$hardcode_shlibpath_var
9688 # Set to yes if building a shared library automatically hardcodes DIR into the library
9689 # and all subsequent libraries and executables linked against it.
9690 hardcode_automatic=$hardcode_automatic
9692 # Variables whose values should be saved in libtool wrapper scripts and
9693 # restored at relink time.
9694 variables_saved_for_relink="$variables_saved_for_relink"
9696 # Whether libtool must link a program against all its dependency libraries.
9697 link_all_deplibs=$link_all_deplibs
9699 # Compile-time system search path for libraries
9700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9702 # Run-time system search path for libraries
9703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9705 # Fix the shell variable \$srcfile for the compiler.
9706 fix_srcfile_path="$fix_srcfile_path"
9708 # Set to yes if exported symbols are required.
9709 always_export_symbols=$always_export_symbols
9711 # The commands to list exported symbols.
9712 export_symbols_cmds=$lt_export_symbols_cmds
9714 # The commands to extract the exported symbol list from a shared archive.
9715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9717 # Symbols that should not be listed in the preloaded symbols.
9718 exclude_expsyms=$lt_exclude_expsyms
9720 # Symbols that must always be exported.
9721 include_expsyms=$lt_include_expsyms
9723 # ### END LIBTOOL CONFIG
9730 cat <<\EOF >> "$cfgfile"
9732 # AIX sometimes has problems with the GCC collect2 program. For some
9733 # reason, if we set the COLLECT_NAMES environment variable, the problems
9734 # vanish in a puff of smoke.
9735 if test "X${COLLECT_NAMES+set}" != Xset; then
9737 export COLLECT_NAMES
9743 # We use sed instead of cat because bash on DJGPP gets confused if
9744 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9745 # text mode, it properly converts lines to CR/LF. This bash problem
9746 # is reportedly fixed, but why not run on old versions too?
9747 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9749 mv -f "$cfgfile" "$ofile" || \
9750 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9754 # If there is no Makefile yet, we rely on a make rule to execute
9755 # `config.status --recheck' to rerun these tests and create the
9756 # libtool script then.
9757 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9758 if test -f "$ltmain_in"; then
9759 test -f Makefile && make "$ltmain"
9765 ac_cpp='$CPP $CPPFLAGS'
9766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9773 # Check whether --with-tags or --without-tags was given.
9774 if test "${with_tags+set}" = set; then
9775 withval="$with_tags"
9779 if test -f "$ltmain" && test -n "$tagnames"; then
9780 if test ! -f "${ofile}"; then
9781 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9782 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9785 if test -z "$LTCC"; then
9786 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9787 if test -z "$LTCC"; then
9788 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9789 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9792 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9795 if test -z "$LTCFLAGS"; then
9796 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9799 # Extract list of available tagged configurations in $ofile.
9800 # Note that this assumes the entire list is on one line.
9801 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9804 for tagname in $tagnames; do
9806 # Check whether tagname contains only valid characters
9807 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9809 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9810 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9811 { (exit 1); exit 1; }; }
9815 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9817 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9818 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9819 { (exit 1); exit 1; }; }
9822 # Update the list of available tags.
9823 if test -n "$tagname"; then
9824 echo appending configuration tag \"$tagname\" to $ofile
9828 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9829 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9830 (test "X$CXX" != "Xg++"))) ; then
9832 ac_cpp='$CXXCPP $CPPFLAGS'
9833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9840 archive_cmds_need_lc_CXX=no
9841 allow_undefined_flag_CXX=
9842 always_export_symbols_CXX=no
9843 archive_expsym_cmds_CXX=
9844 export_dynamic_flag_spec_CXX=
9845 hardcode_direct_CXX=no
9846 hardcode_libdir_flag_spec_CXX=
9847 hardcode_libdir_flag_spec_ld_CXX=
9848 hardcode_libdir_separator_CXX=
9849 hardcode_minus_L_CXX=no
9850 hardcode_shlibpath_var_CXX=unsupported
9851 hardcode_automatic_CXX=no
9853 module_expsym_cmds_CXX=
9854 link_all_deplibs_CXX=unknown
9855 old_archive_cmds_CXX=$old_archive_cmds
9856 no_undefined_flag_CXX=
9857 whole_archive_flag_spec_CXX=
9858 enable_shared_with_static_runtimes_CXX=no
9860 # Dependencies to place before and after the object being linked:
9862 postdep_objects_CXX=
9865 compiler_lib_search_path_CXX=
9867 # Source file extension for C++ test sources.
9870 # Object file extension for compiled C++ test sources.
9874 # Code to be used in simple compile tests
9875 lt_simple_compile_test_code="int some_variable = 0;\n"
9877 # Code to be used in simple link tests
9878 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9880 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9882 # If no C compiler was specified, use CC.
9885 # If no C compiler flags were specified, use CFLAGS.
9886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9888 # Allow CC to be a program name with arguments.
9892 # save warnings/boilerplate of simple test code
9893 ac_outfile=conftest.$ac_objext
9894 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9895 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9896 _lt_compiler_boilerplate=`cat conftest.err`
9899 ac_outfile=conftest.$ac_objext
9900 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9901 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9902 _lt_linker_boilerplate=`cat conftest.err`
9906 # Allow CC to be a program name with arguments.
9911 lt_save_with_gnu_ld=$with_gnu_ld
9912 lt_save_path_LD=$lt_cv_path_LD
9913 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9914 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9916 $as_unset lt_cv_prog_gnu_ld
9918 if test -n "${lt_cv_path_LDCXX+set}"; then
9919 lt_cv_path_LD=$lt_cv_path_LDCXX
9921 $as_unset lt_cv_path_LD
9923 test -z "${LDCXX+set}" || LD=$LDCXX
9927 for cc_temp in $compiler""; do
9929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9938 # We don't want -fno-exception wen compiling C++ code, so set the
9939 # no_builtin_flag separately
9940 if test "$GXX" = yes; then
9941 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9943 lt_prog_compiler_no_builtin_flag_CXX=
9946 if test "$GXX" = yes; then
9947 # Set up default GNU C++ configuration
9950 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9951 if test "${with_gnu_ld+set}" = set; then
9952 withval="$with_gnu_ld"
9953 test "$withval" = no || with_gnu_ld=yes
9958 if test "$GCC" = yes; then
9959 # Check if gcc -print-prog-name=ld gives a path.
9960 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9961 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9964 # gcc leaves a trailing carriage return which upsets mingw
9965 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9967 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9970 # Accept absolute paths.
9972 re_direlt='/[^/][^/]*/\.\./'
9973 # Canonicalize the pathname of ld
9974 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9975 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9976 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9978 test -z "$LD" && LD="$ac_prog"
9981 # If it fails, then pretend we aren't using GCC.
9985 # If it is relative, then search for the first ld in PATH.
9989 elif test "$with_gnu_ld" = yes; then
9990 echo "$as_me:$LINENO: checking for GNU ld" >&5
9991 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9993 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9994 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9996 if test "${lt_cv_path_LD+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 if test -z "$LD"; then
10000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10001 for ac_dir in $PATH; do
10003 test -z "$ac_dir" && ac_dir=.
10004 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10005 lt_cv_path_LD="$ac_dir/$ac_prog"
10006 # Check to see if the program is GNU ld. I'd rather use --version,
10007 # but apparently some variants of GNU ld only accept -v.
10008 # Break only if it was the GNU/non-GNU ld that we prefer.
10009 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10010 *GNU* | *'with BFD'*)
10011 test "$with_gnu_ld" != no && break
10014 test "$with_gnu_ld" != yes && break
10021 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10025 LD="$lt_cv_path_LD"
10026 if test -n "$LD"; then
10027 echo "$as_me:$LINENO: result: $LD" >&5
10028 echo "${ECHO_T}$LD" >&6
10030 echo "$as_me:$LINENO: result: no" >&5
10031 echo "${ECHO_T}no" >&6
10033 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10034 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10035 { (exit 1); exit 1; }; }
10036 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10037 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10038 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10042 case `$LD -v 2>&1 </dev/null` in
10043 *GNU* | *'with BFD'*)
10044 lt_cv_prog_gnu_ld=yes
10047 lt_cv_prog_gnu_ld=no
10051 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10052 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10053 with_gnu_ld=$lt_cv_prog_gnu_ld
10057 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10058 # archiving commands below assume that GNU ld is being used.
10059 if test "$with_gnu_ld" = yes; then
10060 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 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'
10063 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10066 # If archive_cmds runs LD, not CC, wlarc should be empty
10067 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10068 # investigate it a little bit more. (MM)
10071 # ancient GNU ld didn't support --whole-archive et. al.
10072 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10073 grep 'no-whole-archive' > /dev/null; then
10074 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10076 whole_archive_flag_spec_CXX=
10082 # A generic and very simple default shared library creation
10083 # command for GNU C++ for the case where it uses the native
10084 # linker, instead of GNU ld. If possible, this setting should
10085 # overridden to take advantage of the native linker features on
10086 # the platform it is being used on.
10087 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10090 # Commands to make compiler produce verbose output that lists
10091 # what "hidden" libraries, object files and flags are used when
10092 # linking a shared library.
10093 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10101 # PORTME: fill in a description of your system's C++ link characteristics
10102 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10103 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10107 # FIXME: insert proper C++ library support
10111 if test "$host_cpu" = ia64; then
10112 # On IA64, the linker does run time linking by default, so we don't
10113 # have to do anything special.
10114 aix_use_runtimelinking=no
10115 exp_sym_flag='-Bexport'
10118 aix_use_runtimelinking=no
10120 # Test if we are trying to use run time linking or normal
10121 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10122 # need to do runtime linking.
10123 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10124 for ld_flag in $LDFLAGS; do
10127 aix_use_runtimelinking=yes
10135 exp_sym_flag='-bexport'
10136 no_entry_flag='-bnoentry'
10139 # When large executables or shared objects are built, AIX ld can
10140 # have problems creating the table of contents. If linking a library
10141 # or program results in "error TOC overflow" add -mminimal-toc to
10142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10145 archive_cmds_CXX=''
10146 hardcode_direct_CXX=yes
10147 hardcode_libdir_separator_CXX=':'
10148 link_all_deplibs_CXX=yes
10150 if test "$GXX" = yes; then
10151 case $host_os in aix4.[012]|aix4.[012].*)
10152 # We only want to do this on AIX 4.2 and lower, the check
10153 # below for broken collect2 doesn't work under 4.3+
10154 collect2name=`${CC} -print-prog-name=collect2`
10155 if test -f "$collect2name" && \
10156 strings "$collect2name" | grep resolve_lib_name >/dev/null
10158 # We have reworked collect2
10159 hardcode_direct_CXX=yes
10161 # We have old collect2
10162 hardcode_direct_CXX=unsupported
10163 # It fails to find uninstalled libraries when the uninstalled
10164 # path is not listed in the libpath. Setting hardcode_minus_L
10165 # to unsupported forces relinking
10166 hardcode_minus_L_CXX=yes
10167 hardcode_libdir_flag_spec_CXX='-L$libdir'
10168 hardcode_libdir_separator_CXX=
10172 shared_flag='-shared'
10173 if test "$aix_use_runtimelinking" = yes; then
10174 shared_flag="$shared_flag "'${wl}-G'
10178 if test "$host_cpu" = ia64; then
10179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10180 # chokes on -Wl,-G. The following line is correct:
10183 if test "$aix_use_runtimelinking" = yes; then
10184 shared_flag='${wl}-G'
10186 shared_flag='${wl}-bM:SRE'
10191 # It seems that -bexpall does not export symbols beginning with
10192 # underscore (_), so it is better to generate a list of symbols to export.
10193 always_export_symbols_CXX=yes
10194 if test "$aix_use_runtimelinking" = yes; then
10195 # Warning - without using the other runtime loading flags (-brtl),
10196 # -berok will link without error, but may produce a broken library.
10197 allow_undefined_flag_CXX='-berok'
10198 # Determine the default libpath from the value encoded in an empty executable.
10199 cat >conftest.$ac_ext <<_ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216 (eval $ac_link) 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; } &&
10229 { ac_try='test -s conftest$ac_exeext'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10236 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10238 # Check for a 64-bit object if we didn't find anything.
10239 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; }
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10246 rm -f conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10250 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10252 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10254 if test "$host_cpu" = ia64; then
10255 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10256 allow_undefined_flag_CXX="-z nodefs"
10257 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10259 # Determine the default libpath from the value encoded in an empty executable.
10260 cat >conftest.$ac_ext <<_ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10299 # Check for a 64-bit object if we didn't find anything.
10300 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; }
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10307 rm -f conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10311 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10312 # Warning - without using the other run time loading flags,
10313 # -berok will link without error, but may produce a broken library.
10314 no_undefined_flag_CXX=' ${wl}-bernotok'
10315 allow_undefined_flag_CXX=' ${wl}-berok'
10316 # Exported symbols can be pulled into shared objects from archives
10317 whole_archive_flag_spec_CXX='$convenience'
10318 archive_cmds_need_lc_CXX=yes
10319 # This is similar to how AIX traditionally builds its shared libraries.
10320 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10326 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10327 allow_undefined_flag_CXX=unsupported
10328 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10329 # support --undefined. This deserves some investigation. FIXME
10330 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10337 case $cc_basename in
10339 # FIXME: insert proper C++ library support
10345 cygwin* | mingw* | pw32*)
10346 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10347 # as there is no search path for DLLs.
10348 hardcode_libdir_flag_spec_CXX='-L$libdir'
10349 allow_undefined_flag_CXX=unsupported
10350 always_export_symbols_CXX=no
10351 enable_shared_with_static_runtimes_CXX=yes
10353 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10354 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10355 # If the export-symbols file already is a .def file (1st line
10356 # is EXPORTS), use it as is; otherwise, prepend...
10357 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10358 cp $export_symbols $output_objdir/$soname.def;
10360 echo EXPORTS > $output_objdir/$soname.def;
10361 cat $export_symbols >> $output_objdir/$soname.def;
10363 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10368 darwin* | rhapsody*)
10370 rhapsody* | darwin1.[012])
10371 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10374 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10375 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10377 case ${MACOSX_DEPLOYMENT_TARGET} in
10379 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10382 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10388 archive_cmds_need_lc_CXX=no
10389 hardcode_direct_CXX=no
10390 hardcode_automatic_CXX=yes
10391 hardcode_shlibpath_var_CXX=unsupported
10392 whole_archive_flag_spec_CXX=''
10393 link_all_deplibs_CXX=yes
10395 if test "$GXX" = yes ; then
10396 lt_int_apple_cc_single_mod=no
10397 output_verbose_link_cmd='echo'
10398 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10399 lt_int_apple_cc_single_mod=yes
10401 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10402 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10404 archive_cmds_CXX='$CC -r -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'
10406 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10408 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10409 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}'
10411 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10413 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}'
10415 case $cc_basename in
10417 output_verbose_link_cmd='echo'
10418 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10419 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10421 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10422 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}'
10432 case $cc_basename in
10434 # FIXME: insert proper C++ library support
10438 # Green Hills C++ Compiler
10439 # FIXME: insert proper C++ library support
10443 # FIXME: insert proper C++ library support
10449 # C++ shared libraries reported to be fairly broken before switch to ELF
10453 archive_cmds_need_lc_CXX=no
10455 freebsd* | dragonfly*)
10456 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10464 hardcode_libdir_separator_CXX=:
10465 export_dynamic_flag_spec_CXX='${wl}-E'
10466 hardcode_direct_CXX=yes
10467 hardcode_minus_L_CXX=yes # Not in the search PATH,
10468 # but as the default
10469 # location of the library.
10471 case $cc_basename in
10473 # FIXME: insert proper C++ library support
10477 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'
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10482 # There doesn't appear to be a way to prevent this compiler from
10483 # explicitly linking system object files so we need to strip them
10484 # from the output so that they don't get included in the library
10486 output_verbose_link_cmd='templist=`($CC -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'
10489 if test "$GXX" = yes; then
10490 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'
10492 # FIXME: insert proper C++ library support
10499 if test $with_gnu_ld = no; then
10500 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10501 hardcode_libdir_separator_CXX=:
10505 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10508 export_dynamic_flag_spec_CXX='${wl}-E'
10514 hardcode_direct_CXX=no
10515 hardcode_shlibpath_var_CXX=no
10518 hardcode_direct_CXX=yes
10519 hardcode_minus_L_CXX=yes # Not in the search PATH,
10520 # but as the default
10521 # location of the library.
10525 case $cc_basename in
10527 # FIXME: insert proper C++ library support
10533 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10536 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10539 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10542 # Commands to make compiler produce verbose output that lists
10543 # what "hidden" libraries, object files and flags are used when
10544 # linking a shared library.
10546 # There doesn't appear to be a way to prevent this compiler from
10547 # explicitly linking system object files so we need to strip them
10548 # from the output so that they don't get included in the library
10550 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'
10553 if test "$GXX" = yes; then
10554 if test $with_gnu_ld = no; then
10557 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10560 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10563 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'
10568 # FIXME: insert proper C++ library support
10575 hardcode_direct_CXX=no
10576 hardcode_shlibpath_var_CXX=no
10577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10578 export_dynamic_flag_spec_CXX='${wl}-E'
10579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10580 # Instead, shared libraries are loaded at an image base (0x10000000 by
10581 # default) and relocated if they conflict, which is a slow very memory
10582 # consuming and fragmenting process. To avoid this, we pick a random,
10583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10584 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10585 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10586 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10589 case $cc_basename in
10592 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 ${output_objdir}/so_locations -o $lib'
10594 # Archives containing C++ object files must be created using
10595 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10596 # necessary to make sure instantiated templates are included
10598 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10601 if test "$GXX" = yes; then
10602 if test "$with_gnu_ld" = no; then
10603 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}${output_objdir}/so_locations -o $lib'
10605 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'
10608 link_all_deplibs_CXX=yes
10611 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10612 hardcode_libdir_separator_CXX=:
10614 linux* | k*bsd*-gnu)
10615 case $cc_basename in
10617 # Kuck and Associates, Inc. (KAI) C++ Compiler
10619 # KCC will only create a shared library if the output file
10620 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10621 # to its proper name (with version) after linking.
10622 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'
10623 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'
10624 # Commands to make compiler produce verbose output that lists
10625 # what "hidden" libraries, object files and flags are used when
10626 # linking a shared library.
10628 # There doesn't appear to be a way to prevent this compiler from
10629 # explicitly linking system object files so we need to strip them
10630 # from the output so that they don't get included in the library
10632 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'
10634 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10637 # Archives containing C++ object files must be created using
10638 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10639 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10644 # version 8.0 and above of icpc choke on multiply defined symbols
10645 # if we add $predep_objects and $postdep_objects, however 7.1 and
10646 # earlier do not add the objects themselves.
10647 case `$CC -V 2>&1` in
10649 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10650 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'
10652 *) # Version 8.0 or newer
10655 ia64*) tmp_idyn=' -i_dynamic';;
10657 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10658 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10661 archive_cmds_need_lc_CXX=no
10662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10663 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10664 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10667 # Portland Group C++ compiler
10668 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10669 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10671 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10672 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10673 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10677 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10678 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'
10680 runpath_var=LD_RUN_PATH
10681 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10682 hardcode_libdir_separator_CXX=:
10684 # Commands to make compiler produce verbose output that lists
10685 # what "hidden" libraries, object files and flags are used when
10686 # linking a shared library.
10688 # There doesn't appear to be a way to prevent this compiler from
10689 # explicitly linking system object files so we need to strip them
10690 # from the output so that they don't get included in the library
10692 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'
10697 # FIXME: insert proper C++ library support
10701 # FIXME: insert proper C++ library support
10705 case $cc_basename in
10707 # FIXME: insert proper C++ library support
10711 # FIXME: insert proper C++ library support
10716 netbsd* | netbsdelf*-gnu)
10717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10718 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10720 hardcode_libdir_flag_spec_CXX='-R$libdir'
10721 hardcode_direct_CXX=yes
10722 hardcode_shlibpath_var_CXX=no
10724 # Workaround some broken pre-1.5 toolchains
10725 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10728 # C++ shared libraries are fairly broken
10732 hardcode_direct_CXX=yes
10733 hardcode_shlibpath_var_CXX=no
10734 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10735 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10737 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10738 export_dynamic_flag_spec_CXX='${wl}-E'
10739 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10741 output_verbose_link_cmd='echo'
10744 case $cc_basename in
10746 # Kuck and Associates, Inc. (KAI) C++ Compiler
10748 # KCC will only create a shared library if the output file
10749 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10750 # to its proper name (with version) after linking.
10751 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'
10753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10754 hardcode_libdir_separator_CXX=:
10756 # Archives containing C++ object files must be created using
10757 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10758 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10762 # Rational C++ 2.4.1
10763 # FIXME: insert proper C++ library support
10767 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10768 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 ${output_objdir}/so_locations -o $lib'
10770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10771 hardcode_libdir_separator_CXX=:
10773 # Commands to make compiler produce verbose output that lists
10774 # what "hidden" libraries, object files and flags are used when
10775 # linking a shared library.
10777 # There doesn't appear to be a way to prevent this compiler from
10778 # explicitly linking system object files so we need to strip them
10779 # from the output so that they don't get included in the library
10781 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'
10784 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10785 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10786 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}${output_objdir}/so_locations -o $lib'
10788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10789 hardcode_libdir_separator_CXX=:
10791 # Commands to make compiler produce verbose output that lists
10792 # what "hidden" libraries, object files and flags are used when
10793 # linking a shared library.
10794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10797 # FIXME: insert proper C++ library support
10804 case $cc_basename in
10806 # Kuck and Associates, Inc. (KAI) C++ Compiler
10808 # KCC will only create a shared library if the output file
10809 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10810 # to its proper name (with version) after linking.
10811 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'
10813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10814 hardcode_libdir_separator_CXX=:
10816 # Archives containing C++ object files must be created using
10817 # the KAI C++ compiler.
10818 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10821 # Rational C++ 2.4.1
10822 # FIXME: insert proper C++ library support
10826 allow_undefined_flag_CXX=' -expect_unresolved \*'
10827 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 ${output_objdir}/so_locations -o $lib'
10828 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10829 echo "-hidden">> $lib.exp~
10830 $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 ${output_objdir}/so_locations -o $lib~
10833 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10834 hardcode_libdir_separator_CXX=:
10836 # Commands to make compiler produce verbose output that lists
10837 # what "hidden" libraries, object files and flags are used when
10838 # linking a shared library.
10840 # There doesn't appear to be a way to prevent this compiler from
10841 # explicitly linking system object files so we need to strip them
10842 # from the output so that they don't get included in the library
10844 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'
10847 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10848 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10849 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}${output_objdir}/so_locations -o $lib'
10851 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10852 hardcode_libdir_separator_CXX=:
10854 # Commands to make compiler produce verbose output that lists
10855 # what "hidden" libraries, object files and flags are used when
10856 # linking a shared library.
10857 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10860 # FIXME: insert proper C++ library support
10867 # FIXME: insert proper C++ library support
10871 case $cc_basename in
10874 # FIXME: insert proper C++ library support
10879 # FIXME: insert proper C++ library support
10883 # FIXME: insert proper C++ library support
10889 case $cc_basename in
10891 # Sun C++ 4.2, 5.x and Centerline C++
10892 archive_cmds_need_lc_CXX=yes
10893 no_undefined_flag_CXX=' -zdefs'
10894 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10895 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10896 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10898 hardcode_libdir_flag_spec_CXX='-R$libdir'
10899 hardcode_shlibpath_var_CXX=no
10901 solaris2.[0-5] | solaris2.[0-5].*) ;;
10903 # The C++ compiler is used as linker so we must use $wl
10904 # flag to pass the commands to the underlying system
10905 # linker. We must also pass each convience library through
10906 # to the system linker between allextract/defaultextract.
10907 # The C++ compiler will combine linker options so we
10908 # cannot just pass the convience library names through
10910 # Supported since Solaris 2.6 (maybe 2.5.1?)
10911 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10914 link_all_deplibs_CXX=yes
10916 output_verbose_link_cmd='echo'
10918 # Archives containing C++ object files must be created using
10919 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10920 # necessary to make sure instantiated templates are included
10922 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10925 # Green Hills C++ Compiler
10926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10928 # The C++ compiler must be used to create the archive.
10929 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10932 # GNU C++ compiler with Solaris linker
10933 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10934 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10935 if $CC --version | grep -v '^2\.7' > /dev/null; then
10936 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10937 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10938 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10940 # Commands to make compiler produce verbose output that lists
10941 # what "hidden" libraries, object files and flags are used when
10942 # linking a shared library.
10943 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10945 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10947 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10948 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10949 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10951 # Commands to make compiler produce verbose output that lists
10952 # what "hidden" libraries, object files and flags are used when
10953 # linking a shared library.
10954 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10957 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10963 no_undefined_flag_CXX='${wl}-z,text'
10964 archive_cmds_need_lc_CXX=no
10965 hardcode_shlibpath_var_CXX=no
10966 runpath_var='LD_RUN_PATH'
10968 case $cc_basename in
10970 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 sysv5* | sco3.2v5* | sco5v6*)
10980 # Note: We can NOT use -z defs as we might desire, because we do not
10981 # link with -lc, and that would cause any symbols used from libc to
10982 # always be unresolved, which means just about no library would
10983 # ever link correctly. If we're not using GNU ld we use -z text
10984 # though, which does catch some bad symbols but isn't as heavy-handed
10986 # For security reasons, it is highly recommended that you always
10987 # use absolute paths for naming shared libraries, and exclude the
10988 # DT_RUNPATH tag from executables and libraries. But doing so
10989 # requires that you compile everything twice, which is a pain.
10990 # So that behaviour is only enabled if SCOABSPATH is set to a
10991 # non-empty value in the environment. Most likely only useful for
10992 # creating official distributions of packages.
10993 # This is a hack until libtool officially supports absolute path
10994 # names for shared libraries.
10995 no_undefined_flag_CXX='${wl}-z,text'
10996 allow_undefined_flag_CXX='${wl}-z,nodefs'
10997 archive_cmds_need_lc_CXX=no
10998 hardcode_shlibpath_var_CXX=no
10999 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11000 hardcode_libdir_separator_CXX=':'
11001 link_all_deplibs_CXX=yes
11002 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11003 runpath_var='LD_RUN_PATH'
11005 case $cc_basename in
11007 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11011 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11017 case $cc_basename in
11019 # NonStop-UX NCC 3.20
11020 # FIXME: insert proper C++ library support
11024 # FIXME: insert proper C++ library support
11030 # FIXME: insert proper C++ library support
11034 # FIXME: insert proper C++ library support
11038 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11039 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11040 test "$ld_shlibs_CXX" = no && can_build_shared=no
11046 ## There is no encapsulation within the following macros, do not change
11047 ## the running order or otherwise move them around unless you know exactly
11048 ## what you are doing...
11050 cat > conftest.$ac_ext <<EOF
11054 Foo (void) { a = 0; }
11060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11061 (eval $ac_compile) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; then
11065 # Parse the compiler output and extract the necessary
11066 # objects, libraries and library flags.
11068 # Sentinel used to keep track of whether or not we are before
11069 # the conftest object file.
11070 pre_test_object_deps_done=no
11072 # The `*' in the case matches for architectures that use `case' in
11073 # $output_verbose_cmd can trigger glob expansion during the loop
11074 # eval without this substitution.
11075 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11077 for p in `eval $output_verbose_link_cmd`; do
11081 # Some compilers place space between "-{L,R}" and the path.
11082 # Remove the space.
11083 if test $p = "-L" \
11084 || test $p = "-R"; then
11091 if test "$pre_test_object_deps_done" = no; then
11094 # Internal compiler library paths should come after those
11095 # provided the user. The postdeps already come after the
11096 # user supplied libs so there is no need to process them.
11097 if test -z "$compiler_lib_search_path_CXX"; then
11098 compiler_lib_search_path_CXX="${prev}${p}"
11100 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11103 # The "-l" case would never come before the object being
11104 # linked, so don't bother handling this case.
11107 if test -z "$postdeps_CXX"; then
11108 postdeps_CXX="${prev}${p}"
11110 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11116 # This assumes that the test object file only shows up
11117 # once in the compiler output.
11118 if test "$p" = "conftest.$objext"; then
11119 pre_test_object_deps_done=yes
11123 if test "$pre_test_object_deps_done" = no; then
11124 if test -z "$predep_objects_CXX"; then
11125 predep_objects_CXX="$p"
11127 predep_objects_CXX="$predep_objects_CXX $p"
11130 if test -z "$postdep_objects_CXX"; then
11131 postdep_objects_CXX="$p"
11133 postdep_objects_CXX="$postdep_objects_CXX $p"
11138 *) ;; # Ignore the rest.
11146 echo "libtool.m4: error: problem compiling CXX test program"
11149 $rm -f confest.$objext
11151 # PORTME: override above test on systems where it is broken
11154 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11155 # hack all around it, let's just trust "g++" to DTRT.
11156 predep_objects_CXX=
11157 postdep_objects_CXX=
11162 case $cc_basename in
11164 # Adding this requires a known-good setup of shared libraries for
11165 # Sun compiler versions before 5.6, else PIC objects from an old
11166 # archive will be linked into the output, leading to subtle bugs.
11167 postdeps_CXX='-lCstd -lCrun'
11174 case " $postdeps_CXX " in
11175 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11178 lt_prog_compiler_wl_CXX=
11179 lt_prog_compiler_pic_CXX=
11180 lt_prog_compiler_static_CXX=
11182 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11183 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11185 # C++ specific cases for pic, static, wl, etc.
11186 if test "$GXX" = yes; then
11187 lt_prog_compiler_wl_CXX='-Wl,'
11188 lt_prog_compiler_static_CXX='-static'
11192 # All AIX code is PIC.
11193 if test "$host_cpu" = ia64; then
11194 # AIX 5 now supports IA64 processor
11195 lt_prog_compiler_static_CXX='-Bstatic'
11199 # FIXME: we need at least 68020 code to build shared libraries, but
11200 # adding the `-m68020' flag to GCC prevents building anything better,
11202 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11204 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11205 # PIC is the default for these OSes.
11207 mingw* | os2* | pw32*)
11208 # This hack is so that the source file can tell whether it is being
11209 # built for inclusion in a dll (and should export symbols for example).
11210 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11212 darwin* | rhapsody*)
11213 # PIC is the default on this platform
11214 # Common symbols not allowed in MH_DYLIB files
11215 lt_prog_compiler_pic_CXX='-fno-common'
11218 # DJGPP does not support shared libraries at all
11219 lt_prog_compiler_pic_CXX=
11222 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11223 # Instead, we relocate shared libraries at runtime.
11226 if test -d /usr/nec; then
11227 lt_prog_compiler_pic_CXX=-Kconform_pic
11231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11232 # not for PA HP-UX.
11237 lt_prog_compiler_pic_CXX='-fPIC'
11242 lt_prog_compiler_pic_CXX='-fPIC'
11248 # All AIX code is PIC.
11249 if test "$host_cpu" = ia64; then
11250 # AIX 5 now supports IA64 processor
11251 lt_prog_compiler_static_CXX='-Bstatic'
11253 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11257 case $cc_basename in
11259 # Green Hills C++ Compiler
11260 # _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"
11265 # PIC is the default on this platform
11266 # Common symbols not allowed in MH_DYLIB files
11267 case $cc_basename in
11269 lt_prog_compiler_pic_CXX='-qnocommon'
11270 lt_prog_compiler_wl_CXX='-Wl,'
11275 case $cc_basename in
11277 lt_prog_compiler_pic_CXX='-KPIC'
11280 # Green Hills C++ Compiler
11281 lt_prog_compiler_pic_CXX='-pic'
11287 freebsd* | dragonfly*)
11288 # FreeBSD uses GNU C++
11290 hpux9* | hpux10* | hpux11*)
11291 case $cc_basename in
11293 lt_prog_compiler_wl_CXX='-Wl,'
11294 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11295 if test "$host_cpu" != ia64; then
11296 lt_prog_compiler_pic_CXX='+Z'
11300 lt_prog_compiler_wl_CXX='-Wl,'
11301 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11307 lt_prog_compiler_pic_CXX='+Z'
11316 # This is c89, which is MS Visual C++ (no shared libs)
11317 # Anyone wants to do a port?
11319 irix5* | irix6* | nonstopux*)
11320 case $cc_basename in
11322 lt_prog_compiler_wl_CXX='-Wl,'
11323 lt_prog_compiler_static_CXX='-non_shared'
11324 # CC pic flag -KPIC is the default.
11330 linux* | k*bsd*-gnu)
11331 case $cc_basename in
11334 lt_prog_compiler_wl_CXX='--backend -Wl,'
11335 lt_prog_compiler_pic_CXX='-fPIC'
11339 lt_prog_compiler_wl_CXX='-Wl,'
11340 lt_prog_compiler_pic_CXX='-KPIC'
11341 lt_prog_compiler_static_CXX='-static'
11344 # Portland Group C++ compiler.
11345 lt_prog_compiler_wl_CXX='-Wl,'
11346 lt_prog_compiler_pic_CXX='-fpic'
11347 lt_prog_compiler_static_CXX='-Bstatic'
11351 # Make sure the PIC flag is empty. It appears that all Alpha
11352 # Linux and Compaq Tru64 Unix objects are PIC.
11353 lt_prog_compiler_pic_CXX=
11354 lt_prog_compiler_static_CXX='-non_shared'
11365 case $cc_basename in
11367 lt_prog_compiler_pic_CXX='-W c,exportall'
11373 netbsd* | netbsdelf*-gnu)
11375 osf3* | osf4* | osf5*)
11376 case $cc_basename in
11378 lt_prog_compiler_wl_CXX='--backend -Wl,'
11381 # Rational C++ 2.4.1
11382 lt_prog_compiler_pic_CXX='-pic'
11385 # Digital/Compaq C++
11386 lt_prog_compiler_wl_CXX='-Wl,'
11387 # Make sure the PIC flag is empty. It appears that all Alpha
11388 # Linux and Compaq Tru64 Unix objects are PIC.
11389 lt_prog_compiler_pic_CXX=
11390 lt_prog_compiler_static_CXX='-non_shared'
11399 case $cc_basename in
11401 # Sun C++ 4.2, 5.x and Centerline C++
11402 lt_prog_compiler_pic_CXX='-KPIC'
11403 lt_prog_compiler_static_CXX='-Bstatic'
11404 lt_prog_compiler_wl_CXX='-Qoption ld '
11407 # Green Hills C++ Compiler
11408 lt_prog_compiler_pic_CXX='-PIC'
11415 case $cc_basename in
11418 lt_prog_compiler_pic_CXX='-pic'
11419 lt_prog_compiler_static_CXX='-Bstatic'
11423 lt_prog_compiler_pic_CXX='-pic'
11430 case $cc_basename in
11432 # NonStop-UX NCC 3.20
11433 lt_prog_compiler_pic_CXX='-KPIC'
11439 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11440 case $cc_basename in
11442 lt_prog_compiler_wl_CXX='-Wl,'
11443 lt_prog_compiler_pic_CXX='-KPIC'
11444 lt_prog_compiler_static_CXX='-Bstatic'
11451 lt_prog_compiler_can_build_shared_CXX=no
11456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11457 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11460 # Check to make sure the PIC flag actually works.
11462 if test -n "$lt_prog_compiler_pic_CXX"; then
11464 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11465 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11466 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 lt_prog_compiler_pic_works_CXX=no
11470 ac_outfile=conftest.$ac_objext
11471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11472 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11473 # Insert the option either (1) after the last *FLAGS variable, or
11474 # (2) before a word containing "conftest.", or (3) at the end.
11475 # Note that $ac_compile itself does not contain backslashes and begins
11476 # with a dollar sign (not a hyphen), so the echo should work correctly.
11477 # The option is referenced via a variable to avoid confusing sed.
11478 lt_compile=`echo "$ac_compile" | $SED \
11479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11481 -e 's:$: $lt_compiler_flag:'`
11482 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11483 (eval "$lt_compile" 2>conftest.err)
11485 cat conftest.err >&5
11486 echo "$as_me:__oline__: \$? = $ac_status" >&5
11487 if (exit $ac_status) && test -s "$ac_outfile"; then
11488 # The compiler can only warn and ignore the option if not recognized
11489 # So say no if there are warnings other than the usual output.
11490 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11492 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11493 lt_prog_compiler_pic_works_CXX=yes
11499 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11500 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11502 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11503 case $lt_prog_compiler_pic_CXX in
11505 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11508 lt_prog_compiler_pic_CXX=
11509 lt_prog_compiler_can_build_shared_CXX=no
11514 # For platforms which do not support PIC, -DPIC is meaningless:
11516 lt_prog_compiler_pic_CXX=
11519 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11524 # Check to make sure the static flag actually works.
11526 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11527 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11528 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11529 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 lt_prog_compiler_static_works_CXX=no
11533 save_LDFLAGS="$LDFLAGS"
11534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11535 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11537 # The linker can only warn and ignore the option if not recognized
11538 # So say no if there are warnings
11539 if test -s conftest.err; then
11540 # Append any errors to the config.log.
11541 cat conftest.err 1>&5
11542 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11544 if diff conftest.exp conftest.er2 >/dev/null; then
11545 lt_prog_compiler_static_works_CXX=yes
11548 lt_prog_compiler_static_works_CXX=yes
11552 LDFLAGS="$save_LDFLAGS"
11555 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11556 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11558 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11561 lt_prog_compiler_static_CXX=
11565 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11566 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11567 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 lt_cv_prog_compiler_c_o_CXX=no
11571 $rm -r conftest 2>/dev/null
11575 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11577 lt_compiler_flag="-o out/conftest2.$ac_objext"
11578 # Insert the option either (1) after the last *FLAGS variable, or
11579 # (2) before a word containing "conftest.", or (3) at the end.
11580 # Note that $ac_compile itself does not contain backslashes and begins
11581 # with a dollar sign (not a hyphen), so the echo should work correctly.
11582 lt_compile=`echo "$ac_compile" | $SED \
11583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11585 -e 's:$: $lt_compiler_flag:'`
11586 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11587 (eval "$lt_compile" 2>out/conftest.err)
11589 cat out/conftest.err >&5
11590 echo "$as_me:__oline__: \$? = $ac_status" >&5
11591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11593 # The compiler can only warn and ignore the option if not recognized
11594 # So say no if there are warnings
11595 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11598 lt_cv_prog_compiler_c_o_CXX=yes
11603 # SGI C++ compiler will create directory out/ii_files/ for
11604 # template instantiation
11605 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11606 $rm out/* && rmdir out
11612 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11613 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11616 hard_links="nottested"
11617 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11618 # do not overwrite the value of need_locks provided by the user
11619 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11620 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11625 ln conftest.a conftest.b 2>&5 || hard_links=no
11626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11627 echo "$as_me:$LINENO: result: $hard_links" >&5
11628 echo "${ECHO_T}$hard_links" >&6
11629 if test "$hard_links" = no; then
11630 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11631 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11638 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11639 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11641 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11644 # If we're using GNU nm, then we don't want the "-C" option.
11645 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11646 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11647 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'
11649 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'
11653 export_symbols_cmds_CXX="$ltdll_cmds"
11656 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11658 linux* | k*bsd*-gnu)
11659 link_all_deplibs_CXX=no
11662 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11666 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11667 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11668 test "$ld_shlibs_CXX" = no && can_build_shared=no
11671 # Do we need to explicitly link libc?
11673 case "x$archive_cmds_need_lc_CXX" in
11675 # Assume -lc should be added
11676 archive_cmds_need_lc_CXX=yes
11678 if test "$enable_shared" = yes && test "$GCC" = yes; then
11679 case $archive_cmds_CXX in
11681 # FIXME: we may have to deal with multi-command sequences.
11684 # Test whether the compiler implicitly links with -lc since on some
11685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11686 # to ld, don't add -lc before -lgcc.
11687 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11688 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11690 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11693 (eval $ac_compile) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } 2>conftest.err; then
11699 libobjs=conftest.$ac_objext
11701 wl=$lt_prog_compiler_wl_CXX
11702 pic_flag=$lt_prog_compiler_pic_CXX
11708 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11709 allow_undefined_flag_CXX=
11710 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11711 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }
11716 archive_cmds_need_lc_CXX=no
11718 archive_cmds_need_lc_CXX=yes
11720 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11722 cat conftest.err 1>&5
11725 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11726 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11733 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11734 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11735 library_names_spec=
11736 libname_spec='lib$name'
11740 postuninstall_cmds=
11744 shlibpath_overrides_runpath=unknown
11746 dynamic_linker="$host_os ld.so"
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11748 if test "$GCC" = yes; then
11749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11750 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11751 # if the path contains ";" then we assume it to be the separator
11752 # otherwise default to the standard path separator (i.e. ":") - it is
11753 # assumed that no part of a normal pathname contains ";" but that should
11754 # okay in the real world where ";" in dirpaths is itself problematic.
11755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11760 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11762 need_lib_prefix=unknown
11763 hardcode_into_libs=no
11765 # when you set need_version to no, make sure it does not cause -set_version
11766 # flags to be left without arguments
11767 need_version=unknown
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11773 shlibpath_var=LIBPATH
11775 # AIX 3 has no versioning support, so we append a major version to the name.
11776 soname_spec='${libname}${release}${shared_ext}$major'
11783 hardcode_into_libs=yes
11784 if test "$host_cpu" = ia64; then
11785 # AIX 5 supports IA64
11786 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11787 shlibpath_var=LD_LIBRARY_PATH
11789 # With GCC up to 2.95.x, collect2 would create an import file
11790 # for dependence libraries. The import file would start with
11791 # the line `#! .'. This would cause the generated library to
11792 # depend on `.', always an invalid library. This was fixed in
11793 # development snapshots of GCC prior to 3.0.
11795 aix4 | aix4.[01] | aix4.[01].*)
11796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11798 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11801 can_build_shared=no
11805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11806 # soname into executable. Probably we can add versioning support to
11807 # collect2, so additional links can be useful in future.
11808 if test "$aix_use_runtimelinking" = yes; then
11809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11810 # instead of lib<name>.a to let people know that these are not
11811 # typical AIX shared libraries.
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814 # We preserve .a as extension for shared libraries through AIX4.2
11815 # and later when we are not doing run time linking.
11816 library_names_spec='${libname}${release}.a $libname.a'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LIBPATH
11824 library_names_spec='$libname.ixlibrary $libname.a'
11825 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11826 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'
11830 library_names_spec='${libname}${shared_ext}'
11831 dynamic_linker="$host_os ld.so"
11832 shlibpath_var=LIBRARY_PATH
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839 soname_spec='${libname}${release}${shared_ext}$major'
11840 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11841 shlibpath_var=LD_LIBRARY_PATH
11842 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11843 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11844 # the default ld.so.conf also contains /usr/contrib/lib and
11845 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11846 # libtool to hard-code these into programs
11849 cygwin* | mingw* | pw32*)
11850 version_type=windows
11855 case $GCC,$host_os in
11856 yes,cygwin* | yes,mingw* | yes,pw32*)
11857 library_names_spec='$libname.dll.a'
11858 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11859 postinstall_cmds='base_file=`basename \${file}`~
11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11861 dldir=$destdir/`dirname \$dlpath`~
11862 test -d \$dldir || mkdir -p \$dldir~
11863 $install_prog $dir/$dlname \$dldir/$dlname~
11864 chmod a+x \$dldir/$dlname'
11865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11866 dlpath=$dir/\$dldll~
11868 shlibpath_overrides_runpath=yes
11872 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11873 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11874 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11877 # MinGW DLLs use traditional 'lib' prefix
11878 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11879 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11880 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11881 # It is most probably a Windows format PATH printed by
11882 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11883 # path with ; separators, and with drive letters. We can handle the
11884 # drive letters (cygwin fileutils understands them), so leave them,
11885 # especially as we might pass files found there to a mingw objdump,
11886 # which wouldn't understand a cygwinified path. Ahh.
11887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11889 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11893 # pw32 DLLs use 'pw' prefix rather than 'lib'
11894 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11900 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11903 dynamic_linker='Win32 ld.exe'
11904 # FIXME: first we should search . and the directory the executable is in
11908 darwin* | rhapsody*)
11909 dynamic_linker="$host_os dyld"
11910 version_type=darwin
11913 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11914 soname_spec='${libname}${release}${major}$shared_ext'
11915 shlibpath_overrides_runpath=yes
11916 shlibpath_var=DYLD_LIBRARY_PATH
11917 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11918 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11919 if test "$GCC" = yes; then
11920 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"`
11922 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11924 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11932 soname_spec='${libname}${release}${shared_ext}$major'
11933 shlibpath_var=LD_LIBRARY_PATH
11940 freebsd* | dragonfly*)
11941 # DragonFly does not have aout. When/if they implement a new
11942 # versioning mechanism, adjust this.
11943 if test -x /usr/bin/objformat; then
11944 objformat=`/usr/bin/objformat`
11947 freebsd[123]*) objformat=aout ;;
11948 *) objformat=elf ;;
11951 version_type=freebsd-$objformat
11952 case $version_type in
11954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11963 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=yes
11968 freebsd3.[01]* | freebsdelf3.[01]*)
11969 shlibpath_overrides_runpath=yes
11970 hardcode_into_libs=yes
11972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11974 shlibpath_overrides_runpath=no
11975 hardcode_into_libs=yes
11977 freebsd*) # from 4.6 on
11978 shlibpath_overrides_runpath=yes
11979 hardcode_into_libs=yes
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11989 soname_spec='${libname}${release}${shared_ext}$major'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 hardcode_into_libs=yes
11994 hpux9* | hpux10* | hpux11*)
11995 # Give a soname corresponding to the major version so that dld.sl refuses to
11996 # link against other versions.
12003 hardcode_into_libs=yes
12004 dynamic_linker="$host_os dld.so"
12005 shlibpath_var=LD_LIBRARY_PATH
12006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008 soname_spec='${libname}${release}${shared_ext}$major'
12009 if test "X$HPUX_IA64_MODE" = X32; then
12010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12018 hardcode_into_libs=yes
12019 dynamic_linker="$host_os dld.sl"
12020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12029 dynamic_linker="$host_os dld.sl"
12030 shlibpath_var=SHLIB_PATH
12031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12036 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12037 postinstall_cmds='chmod 555 $lib'
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=no
12049 hardcode_into_libs=yes
12052 irix5* | irix6* | nonstopux*)
12054 nonstopux*) version_type=nonstopux ;;
12056 if test "$lt_cv_prog_gnu_ld" = yes; then
12064 soname_spec='${libname}${release}${shared_ext}$major'
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12067 irix5* | nonstopux*)
12068 libsuff= shlibsuff=
12071 case $LD in # libtool.m4 will add one of these switches to LD
12072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12073 libsuff= shlibsuff= libmagic=32-bit;;
12074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12075 libsuff=32 shlibsuff=N32 libmagic=N32;;
12076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12078 *) libsuff= shlibsuff= libmagic=never-match;;
12082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12083 shlibpath_overrides_runpath=no
12084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12086 hardcode_into_libs=yes
12089 # No shared lib support for Linux oldld, aout, or coff.
12090 linux*oldld* | linux*aout* | linux*coff*)
12094 # This must be Linux ELF.
12095 linux* | k*bsd*-gnu)
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12100 soname_spec='${libname}${release}${shared_ext}$major'
12101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12102 shlibpath_var=LD_LIBRARY_PATH
12103 shlibpath_overrides_runpath=no
12104 # This implies no fast_install, which is unacceptable.
12105 # Some rework will be needed to allow for fast_install
12106 # before this can be enabled.
12107 hardcode_into_libs=yes
12109 # Append ld.so.conf contents to the search path
12110 if test -f /etc/ld.so.conf; then
12111 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12115 # We used to test for /lib/ld.so.1 and disable shared libraries on
12116 # powerpc, because MkLinux only supported shared libraries with the
12117 # GNU dynamic linker. Since this was broken with cross compilers,
12118 # most powerpc-linux boxes support dynamic linking these days and
12119 # people can always --disable-shared, the test was removed, and we
12120 # assume the GNU/Linux dynamic linker is in use.
12121 dynamic_linker='GNU/Linux ld.so'
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 shlibpath_var=LD_LIBRARY_PATH
12131 shlibpath_overrides_runpath=no
12132 hardcode_into_libs=yes
12133 dynamic_linker='NetBSD ld.elf_so'
12140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12143 dynamic_linker='NetBSD (a.out) ld.so'
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12146 soname_spec='${libname}${release}${shared_ext}$major'
12147 dynamic_linker='NetBSD ld.elf_so'
12149 shlibpath_var=LD_LIBRARY_PATH
12150 shlibpath_overrides_runpath=yes
12151 hardcode_into_libs=yes
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 shlibpath_var=LD_LIBRARY_PATH
12158 shlibpath_overrides_runpath=yes
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12166 soname_spec='${libname}${release}${shared_ext}$major'
12167 shlibpath_var=LD_LIBRARY_PATH
12168 shlibpath_overrides_runpath=yes
12173 sys_lib_dlsearch_path_spec="/usr/lib"
12175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12178 *) need_version=no ;;
12180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12182 shlibpath_var=LD_LIBRARY_PATH
12183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12185 openbsd2.[89] | openbsd2.[89].*)
12186 shlibpath_overrides_runpath=no
12189 shlibpath_overrides_runpath=yes
12193 shlibpath_overrides_runpath=yes
12198 libname_spec='$name'
12201 library_names_spec='$libname${shared_ext} $libname.a'
12202 dynamic_linker='OS/2 ld.exe'
12203 shlibpath_var=LIBPATH
12206 osf3* | osf4* | osf5*)
12210 soname_spec='${libname}${release}${shared_ext}$major'
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222 soname_spec='${libname}${release}${shared_ext}$major'
12223 shlibpath_var=LD_LIBRARY_PATH
12224 shlibpath_overrides_runpath=yes
12225 hardcode_into_libs=yes
12226 # ldd complains unless libraries are executable
12227 postinstall_cmds='chmod +x $lib'
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12236 if test "$with_gnu_ld" = yes; then
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245 soname_spec='${libname}${release}${shared_ext}$major'
12246 shlibpath_var=LD_LIBRARY_PATH
12247 case $host_vendor in
12249 shlibpath_overrides_runpath=no
12251 export_dynamic_flag_spec='${wl}-Blargedynsym'
12252 runpath_var=LD_RUN_PATH
12260 shlibpath_overrides_runpath=no
12261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12267 if test -d /usr/nec ;then
12269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12270 soname_spec='$libname${shared_ext}.$major'
12271 shlibpath_var=LD_LIBRARY_PATH
12275 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12276 version_type=freebsd-elf
12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12280 soname_spec='${libname}${release}${shared_ext}$major'
12281 shlibpath_var=LD_LIBRARY_PATH
12282 hardcode_into_libs=yes
12283 if test "$with_gnu_ld" = yes; then
12284 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12285 shlibpath_overrides_runpath=no
12287 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12288 shlibpath_overrides_runpath=yes
12291 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12295 sys_lib_dlsearch_path_spec='/usr/lib'
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12302 shlibpath_var=LD_LIBRARY_PATH
12309 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12310 echo "${ECHO_T}$dynamic_linker" >&6
12311 test "$dynamic_linker" = no && can_build_shared=no
12313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12314 if test "$GCC" = yes; then
12315 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12318 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12319 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12320 hardcode_action_CXX=
12321 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12322 test -n "$runpath_var_CXX" || \
12323 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12325 # We can hardcode non-existant directories.
12326 if test "$hardcode_direct_CXX" != no &&
12327 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12328 # have to relink, otherwise we might link with an installed library
12329 # when we should be linking with a yet-to-be-installed one
12330 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12331 test "$hardcode_minus_L_CXX" != no; then
12332 # Linking always hardcodes the temporary library directory.
12333 hardcode_action_CXX=relink
12335 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12336 hardcode_action_CXX=immediate
12339 # We cannot hardcode anything, or else we can only hardcode existing
12341 hardcode_action_CXX=unsupported
12343 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12344 echo "${ECHO_T}$hardcode_action_CXX" >&6
12346 if test "$hardcode_action_CXX" = relink; then
12347 # Fast installation is not supported
12348 enable_fast_install=no
12349 elif test "$shlibpath_overrides_runpath" = yes ||
12350 test "$enable_shared" = no; then
12351 # Fast installation is not necessary
12352 enable_fast_install=needless
12356 # The else clause should only fire when bootstrapping the
12357 # libtool distribution, otherwise you forgot to ship ltmain.sh
12358 # with your package, and you will get complaints that there are
12359 # no rules to generate ltmain.sh.
12360 if test -f "$ltmain"; then
12361 # See if we are running on zsh, and set the options which allow our commands through
12362 # without removal of \ escapes.
12363 if test -n "${ZSH_VERSION+set}" ; then
12364 setopt NO_GLOB_SUBST
12366 # Now quote all the things that may contain metacharacters while being
12367 # careful not to overquote the AC_SUBSTed values. We take copies of the
12368 # variables and quote the copies for generation of the libtool script.
12369 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12371 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12372 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12373 deplibs_check_method reload_flag reload_cmds need_locks \
12374 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12375 lt_cv_sys_global_symbol_to_c_name_address \
12376 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12377 old_postinstall_cmds old_postuninstall_cmds \
12381 lt_prog_compiler_wl_CXX \
12382 lt_prog_compiler_pic_CXX \
12383 lt_prog_compiler_static_CXX \
12384 lt_prog_compiler_no_builtin_flag_CXX \
12385 export_dynamic_flag_spec_CXX \
12386 thread_safe_flag_spec_CXX \
12387 whole_archive_flag_spec_CXX \
12388 enable_shared_with_static_runtimes_CXX \
12389 old_archive_cmds_CXX \
12390 old_archive_from_new_cmds_CXX \
12391 predep_objects_CXX \
12392 postdep_objects_CXX \
12395 compiler_lib_search_path_CXX \
12397 archive_expsym_cmds_CXX \
12398 postinstall_cmds_CXX \
12399 postuninstall_cmds_CXX \
12400 old_archive_from_expsyms_cmds_CXX \
12401 allow_undefined_flag_CXX \
12402 no_undefined_flag_CXX \
12403 export_symbols_cmds_CXX \
12404 hardcode_libdir_flag_spec_CXX \
12405 hardcode_libdir_flag_spec_ld_CXX \
12406 hardcode_libdir_separator_CXX \
12407 hardcode_automatic_CXX \
12409 module_expsym_cmds_CXX \
12410 lt_cv_prog_compiler_c_o_CXX \
12411 exclude_expsyms_CXX \
12412 include_expsyms_CXX; do
12415 old_archive_cmds_CXX | \
12416 old_archive_from_new_cmds_CXX | \
12417 archive_cmds_CXX | \
12418 archive_expsym_cmds_CXX | \
12419 module_cmds_CXX | \
12420 module_expsym_cmds_CXX | \
12421 old_archive_from_expsyms_cmds_CXX | \
12422 export_symbols_cmds_CXX | \
12423 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12424 postinstall_cmds | postuninstall_cmds | \
12425 old_postinstall_cmds | old_postuninstall_cmds | \
12426 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12427 # Double-quote double-evaled strings.
12428 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12431 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12437 *'\$0 --fallback-echo"')
12438 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12444 cat <<__EOF__ >> "$cfgfile"
12445 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12447 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12449 # Shell to use when invoking shell scripts.
12452 # Whether or not to build shared libraries.
12453 build_libtool_libs=$enable_shared
12455 # Whether or not to build static libraries.
12456 build_old_libs=$enable_static
12458 # Whether or not to add -lc for building shared libraries.
12459 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12461 # Whether or not to disallow shared libs when runtime libs are static
12462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12464 # Whether or not to optimize for fast installation.
12465 fast_install=$enable_fast_install
12468 host_alias=$host_alias
12472 # The build system.
12473 build_alias=$build_alias
12477 # An echo program that does not interpret backslashes.
12482 AR_FLAGS=$lt_AR_FLAGS
12487 # LTCC compiler flags.
12488 LTCFLAGS=$lt_LTCFLAGS
12490 # A language-specific compiler.
12491 CC=$lt_compiler_CXX
12493 # Is the compiler the GNU C compiler?
12499 # The linker used to build libraries.
12502 # Whether we need hard or soft links.
12505 # A BSD-compatible nm program.
12508 # A symbol stripping program
12511 # Used to examine libraries when file_magic_cmd begins "file"
12512 MAGIC_CMD=$MAGIC_CMD
12514 # Used on cygwin: DLL creation program.
12517 # Used on cygwin: object dumper.
12520 # Used on cygwin: assembler.
12523 # The name of the directory that contains temporary libtool files.
12526 # How to create reloadable object files.
12527 reload_flag=$lt_reload_flag
12528 reload_cmds=$lt_reload_cmds
12530 # How to pass a linker flag through the compiler.
12531 wl=$lt_lt_prog_compiler_wl_CXX
12533 # Object file suffix (normally "o").
12534 objext="$ac_objext"
12536 # Old archive suffix (normally "a").
12539 # Shared library suffix (normally ".so").
12540 shrext_cmds='$shrext_cmds'
12542 # Executable file suffix (normally "").
12545 # Additional compiler flags for building library objects.
12546 pic_flag=$lt_lt_prog_compiler_pic_CXX
12549 # What is the maximum length of a command?
12550 max_cmd_len=$lt_cv_sys_max_cmd_len
12552 # Does compiler simultaneously support -c and -o options?
12553 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12555 # Must we lock files when doing compilation?
12556 need_locks=$lt_need_locks
12558 # Do we need the lib prefix for modules?
12559 need_lib_prefix=$need_lib_prefix
12561 # Do we need a version for libraries?
12562 need_version=$need_version
12564 # Whether dlopen is supported.
12565 dlopen_support=$enable_dlopen
12567 # Whether dlopen of programs is supported.
12568 dlopen_self=$enable_dlopen_self
12570 # Whether dlopen of statically linked programs is supported.
12571 dlopen_self_static=$enable_dlopen_self_static
12573 # Compiler flag to prevent dynamic linking.
12574 link_static_flag=$lt_lt_prog_compiler_static_CXX
12576 # Compiler flag to turn off builtin functions.
12577 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12579 # Compiler flag to allow reflexive dlopens.
12580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12582 # Compiler flag to generate shared objects directly from archives.
12583 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12585 # Compiler flag to generate thread-safe objects.
12586 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12588 # Library versioning type.
12589 version_type=$version_type
12591 # Format of library name prefix.
12592 libname_spec=$lt_libname_spec
12594 # List of archive names. First name is the real one, the rest are links.
12595 # The last name is the one that the linker finds with -lNAME.
12596 library_names_spec=$lt_library_names_spec
12598 # The coded name of the library, if different from the real name.
12599 soname_spec=$lt_soname_spec
12601 # Commands used to build and install an old-style archive.
12603 old_archive_cmds=$lt_old_archive_cmds_CXX
12604 old_postinstall_cmds=$lt_old_postinstall_cmds
12605 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12607 # Create an old-style archive from a shared archive.
12608 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12610 # Create a temporary old-style archive to link instead of a shared archive.
12611 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12613 # Commands used to build and install a shared archive.
12614 archive_cmds=$lt_archive_cmds_CXX
12615 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12616 postinstall_cmds=$lt_postinstall_cmds
12617 postuninstall_cmds=$lt_postuninstall_cmds
12619 # Commands used to build a loadable module (assumed same as above if empty)
12620 module_cmds=$lt_module_cmds_CXX
12621 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12623 # Commands to strip libraries.
12624 old_striplib=$lt_old_striplib
12625 striplib=$lt_striplib
12627 # Dependencies to place before the objects being linked to create a
12629 predep_objects=$lt_predep_objects_CXX
12631 # Dependencies to place after the objects being linked to create a
12633 postdep_objects=$lt_postdep_objects_CXX
12635 # Dependencies to place before the objects being linked to create a
12637 predeps=$lt_predeps_CXX
12639 # Dependencies to place after the objects being linked to create a
12641 postdeps=$lt_postdeps_CXX
12643 # The library search path used internally by the compiler when linking
12644 # a shared library.
12645 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12647 # Method to check whether dependent libraries are shared objects.
12648 deplibs_check_method=$lt_deplibs_check_method
12650 # Command to use when deplibs_check_method == file_magic.
12651 file_magic_cmd=$lt_file_magic_cmd
12653 # Flag that allows shared libraries with undefined symbols to be built.
12654 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12656 # Flag that forces no undefined symbols.
12657 no_undefined_flag=$lt_no_undefined_flag_CXX
12659 # Commands used to finish a libtool library installation in a directory.
12660 finish_cmds=$lt_finish_cmds
12662 # Same as above, but a single script fragment to be evaled but not shown.
12663 finish_eval=$lt_finish_eval
12665 # Take the output of nm and produce a listing of raw symbols and C names.
12666 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12668 # Transform the output of nm in a proper C declaration
12669 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12671 # Transform the output of nm in a C name address pair
12672 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12674 # This is the shared library runtime path variable.
12675 runpath_var=$runpath_var
12677 # This is the shared library path variable.
12678 shlibpath_var=$shlibpath_var
12680 # Is shlibpath searched before the hard-coded library search path?
12681 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12683 # How to hardcode a shared library path into an executable.
12684 hardcode_action=$hardcode_action_CXX
12686 # Whether we should hardcode library paths into libraries.
12687 hardcode_into_libs=$hardcode_into_libs
12689 # Flag to hardcode \$libdir into a binary during linking.
12690 # This must work even if \$libdir does not exist.
12691 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12693 # If ld is used when linking, flag to hardcode \$libdir into
12694 # a binary during linking. This must work even if \$libdir does
12696 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12698 # Whether we need a single -rpath flag with a separated argument.
12699 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12701 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12702 # resulting binary.
12703 hardcode_direct=$hardcode_direct_CXX
12705 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12706 # resulting binary.
12707 hardcode_minus_L=$hardcode_minus_L_CXX
12709 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12710 # the resulting binary.
12711 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12713 # Set to yes if building a shared library automatically hardcodes DIR into the library
12714 # and all subsequent libraries and executables linked against it.
12715 hardcode_automatic=$hardcode_automatic_CXX
12717 # Variables whose values should be saved in libtool wrapper scripts and
12718 # restored at relink time.
12719 variables_saved_for_relink="$variables_saved_for_relink"
12721 # Whether libtool must link a program against all its dependency libraries.
12722 link_all_deplibs=$link_all_deplibs_CXX
12724 # Compile-time system search path for libraries
12725 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12727 # Run-time system search path for libraries
12728 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12730 # Fix the shell variable \$srcfile for the compiler.
12731 fix_srcfile_path="$fix_srcfile_path_CXX"
12733 # Set to yes if exported symbols are required.
12734 always_export_symbols=$always_export_symbols_CXX
12736 # The commands to list exported symbols.
12737 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12739 # The commands to extract the exported symbol list from a shared archive.
12740 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12742 # Symbols that should not be listed in the preloaded symbols.
12743 exclude_expsyms=$lt_exclude_expsyms_CXX
12745 # Symbols that must always be exported.
12746 include_expsyms=$lt_include_expsyms_CXX
12748 # ### END LIBTOOL TAG CONFIG: $tagname
12754 # If there is no Makefile yet, we rely on a make rule to execute
12755 # `config.status --recheck' to rerun these tests and create the
12756 # libtool script then.
12757 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12758 if test -f "$ltmain_in"; then
12759 test -f Makefile && make "$ltmain"
12765 ac_cpp='$CPP $CPPFLAGS'
12766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12774 with_gnu_ldcxx=$with_gnu_ld
12775 with_gnu_ld=$lt_save_with_gnu_ld
12776 lt_cv_path_LDCXX=$lt_cv_path_LD
12777 lt_cv_path_LD=$lt_save_path_LD
12778 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12779 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12787 if test -n "$F77" && test "X$F77" != "Xno"; then
12790 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12791 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12795 archive_cmds_need_lc_F77=no
12796 allow_undefined_flag_F77=
12797 always_export_symbols_F77=no
12798 archive_expsym_cmds_F77=
12799 export_dynamic_flag_spec_F77=
12800 hardcode_direct_F77=no
12801 hardcode_libdir_flag_spec_F77=
12802 hardcode_libdir_flag_spec_ld_F77=
12803 hardcode_libdir_separator_F77=
12804 hardcode_minus_L_F77=no
12805 hardcode_automatic_F77=no
12807 module_expsym_cmds_F77=
12808 link_all_deplibs_F77=unknown
12809 old_archive_cmds_F77=$old_archive_cmds
12810 no_undefined_flag_F77=
12811 whole_archive_flag_spec_F77=
12812 enable_shared_with_static_runtimes_F77=no
12814 # Source file extension for f77 test sources.
12817 # Object file extension for compiled f77 test sources.
12821 # Code to be used in simple compile tests
12822 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12824 # Code to be used in simple link tests
12825 lt_simple_link_test_code=" program t\n end\n"
12827 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12829 # If no C compiler was specified, use CC.
12832 # If no C compiler flags were specified, use CFLAGS.
12833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12835 # Allow CC to be a program name with arguments.
12839 # save warnings/boilerplate of simple test code
12840 ac_outfile=conftest.$ac_objext
12841 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12842 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12843 _lt_compiler_boilerplate=`cat conftest.err`
12846 ac_outfile=conftest.$ac_objext
12847 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12848 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12849 _lt_linker_boilerplate=`cat conftest.err`
12853 # Allow CC to be a program name with arguments.
12858 for cc_temp in $compiler""; do
12860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12866 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12869 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12870 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12871 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12872 echo "${ECHO_T}$can_build_shared" >&6
12874 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12875 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12876 test "$can_build_shared" = "no" && enable_shared=no
12878 # On AIX, shared libraries and static libraries use the same namespace, and
12879 # are all built from PIC.
12882 test "$enable_shared" = yes && enable_static=no
12883 if test -n "$RANLIB"; then
12884 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12885 postinstall_cmds='$RANLIB $lib'
12889 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12890 test "$enable_shared" = yes && enable_static=no
12894 echo "$as_me:$LINENO: result: $enable_shared" >&5
12895 echo "${ECHO_T}$enable_shared" >&6
12897 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12898 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12899 # Make sure either enable_shared or enable_static is yes.
12900 test "$enable_shared" = yes || enable_static=yes
12901 echo "$as_me:$LINENO: result: $enable_static" >&5
12902 echo "${ECHO_T}$enable_static" >&6
12907 lt_prog_compiler_wl_F77=
12908 lt_prog_compiler_pic_F77=
12909 lt_prog_compiler_static_F77=
12911 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12912 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12914 if test "$GCC" = yes; then
12915 lt_prog_compiler_wl_F77='-Wl,'
12916 lt_prog_compiler_static_F77='-static'
12920 # All AIX code is PIC.
12921 if test "$host_cpu" = ia64; then
12922 # AIX 5 now supports IA64 processor
12923 lt_prog_compiler_static_F77='-Bstatic'
12928 # FIXME: we need at least 68020 code to build shared libraries, but
12929 # adding the `-m68020' flag to GCC prevents building anything better,
12931 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12934 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12935 # PIC is the default for these OSes.
12938 mingw* | pw32* | os2*)
12939 # This hack is so that the source file can tell whether it is being
12940 # built for inclusion in a dll (and should export symbols for example).
12941 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12944 darwin* | rhapsody*)
12945 # PIC is the default on this platform
12946 # Common symbols not allowed in MH_DYLIB files
12947 lt_prog_compiler_pic_F77='-fno-common'
12951 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12952 # Instead, we relocate shared libraries at runtime.
12956 # Just because we use GCC doesn't mean we suddenly get shared libraries
12957 # on systems that don't support them.
12958 lt_prog_compiler_can_build_shared_F77=no
12963 if test -d /usr/nec; then
12964 lt_prog_compiler_pic_F77=-Kconform_pic
12969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12970 # not for PA HP-UX.
12976 lt_prog_compiler_pic_F77='-fPIC'
12982 lt_prog_compiler_pic_F77='-fPIC'
12986 # PORTME Check for flag to pass linker flags through the system compiler.
12989 lt_prog_compiler_wl_F77='-Wl,'
12990 if test "$host_cpu" = ia64; then
12991 # AIX 5 now supports IA64 processor
12992 lt_prog_compiler_static_F77='-Bstatic'
12994 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12998 # PIC is the default on this platform
12999 # Common symbols not allowed in MH_DYLIB files
13000 case $cc_basename in
13002 lt_prog_compiler_pic_F77='-qnocommon'
13003 lt_prog_compiler_wl_F77='-Wl,'
13008 mingw* | pw32* | os2*)
13009 # This hack is so that the source file can tell whether it is being
13010 # built for inclusion in a dll (and should export symbols for example).
13011 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13014 hpux9* | hpux10* | hpux11*)
13015 lt_prog_compiler_wl_F77='-Wl,'
13016 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13017 # not for PA HP-UX.
13023 lt_prog_compiler_pic_F77='+Z'
13026 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13027 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13030 irix5* | irix6* | nonstopux*)
13031 lt_prog_compiler_wl_F77='-Wl,'
13032 # PIC (with -KPIC) is the default.
13033 lt_prog_compiler_static_F77='-non_shared'
13037 lt_prog_compiler_pic_F77='-KPIC'
13038 lt_prog_compiler_static_F77='-Bstatic'
13041 linux* | k*bsd*-gnu)
13042 case $cc_basename in
13044 lt_prog_compiler_wl_F77='-Wl,'
13045 lt_prog_compiler_pic_F77='-KPIC'
13046 lt_prog_compiler_static_F77='-static'
13048 pgcc* | pgf77* | pgf90* | pgf95*)
13049 # Portland Group compilers (*not* the Pentium gcc compiler,
13050 # which looks to be a dead project)
13051 lt_prog_compiler_wl_F77='-Wl,'
13052 lt_prog_compiler_pic_F77='-fpic'
13053 lt_prog_compiler_static_F77='-Bstatic'
13056 lt_prog_compiler_wl_F77='-Wl,'
13057 # All Alpha code is PIC.
13058 lt_prog_compiler_static_F77='-non_shared'
13063 osf3* | osf4* | osf5*)
13064 lt_prog_compiler_wl_F77='-Wl,'
13065 # All OSF/1 code is PIC.
13066 lt_prog_compiler_static_F77='-non_shared'
13070 lt_prog_compiler_pic_F77='-KPIC'
13071 lt_prog_compiler_static_F77='-Bstatic'
13072 case $cc_basename in
13073 f77* | f90* | f95*)
13074 lt_prog_compiler_wl_F77='-Qoption ld ';;
13076 lt_prog_compiler_wl_F77='-Wl,';;
13081 lt_prog_compiler_wl_F77='-Qoption ld '
13082 lt_prog_compiler_pic_F77='-PIC'
13083 lt_prog_compiler_static_F77='-Bstatic'
13086 sysv4 | sysv4.2uw2* | sysv4.3*)
13087 lt_prog_compiler_wl_F77='-Wl,'
13088 lt_prog_compiler_pic_F77='-KPIC'
13089 lt_prog_compiler_static_F77='-Bstatic'
13093 if test -d /usr/nec ;then
13094 lt_prog_compiler_pic_F77='-Kconform_pic'
13095 lt_prog_compiler_static_F77='-Bstatic'
13099 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13100 lt_prog_compiler_wl_F77='-Wl,'
13101 lt_prog_compiler_pic_F77='-KPIC'
13102 lt_prog_compiler_static_F77='-Bstatic'
13106 lt_prog_compiler_wl_F77='-Wl,'
13107 lt_prog_compiler_can_build_shared_F77=no
13111 lt_prog_compiler_pic_F77='-pic'
13112 lt_prog_compiler_static_F77='-Bstatic'
13116 lt_prog_compiler_can_build_shared_F77=no
13121 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13122 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13125 # Check to make sure the PIC flag actually works.
13127 if test -n "$lt_prog_compiler_pic_F77"; then
13129 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13130 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13131 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 lt_prog_compiler_pic_works_F77=no
13135 ac_outfile=conftest.$ac_objext
13136 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13137 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13138 # Insert the option either (1) after the last *FLAGS variable, or
13139 # (2) before a word containing "conftest.", or (3) at the end.
13140 # Note that $ac_compile itself does not contain backslashes and begins
13141 # with a dollar sign (not a hyphen), so the echo should work correctly.
13142 # The option is referenced via a variable to avoid confusing sed.
13143 lt_compile=`echo "$ac_compile" | $SED \
13144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13146 -e 's:$: $lt_compiler_flag:'`
13147 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13148 (eval "$lt_compile" 2>conftest.err)
13150 cat conftest.err >&5
13151 echo "$as_me:__oline__: \$? = $ac_status" >&5
13152 if (exit $ac_status) && test -s "$ac_outfile"; then
13153 # The compiler can only warn and ignore the option if not recognized
13154 # So say no if there are warnings other than the usual output.
13155 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13158 lt_prog_compiler_pic_works_F77=yes
13164 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13165 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13167 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13168 case $lt_prog_compiler_pic_F77 in
13170 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13173 lt_prog_compiler_pic_F77=
13174 lt_prog_compiler_can_build_shared_F77=no
13179 # For platforms which do not support PIC, -DPIC is meaningless:
13181 lt_prog_compiler_pic_F77=
13184 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13189 # Check to make sure the static flag actually works.
13191 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13192 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13193 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13194 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 lt_prog_compiler_static_works_F77=no
13198 save_LDFLAGS="$LDFLAGS"
13199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13200 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13202 # The linker can only warn and ignore the option if not recognized
13203 # So say no if there are warnings
13204 if test -s conftest.err; then
13205 # Append any errors to the config.log.
13206 cat conftest.err 1>&5
13207 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13209 if diff conftest.exp conftest.er2 >/dev/null; then
13210 lt_prog_compiler_static_works_F77=yes
13213 lt_prog_compiler_static_works_F77=yes
13217 LDFLAGS="$save_LDFLAGS"
13220 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13221 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13223 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13226 lt_prog_compiler_static_F77=
13230 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13231 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13232 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 lt_cv_prog_compiler_c_o_F77=no
13236 $rm -r conftest 2>/dev/null
13240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13242 lt_compiler_flag="-o out/conftest2.$ac_objext"
13243 # Insert the option either (1) after the last *FLAGS variable, or
13244 # (2) before a word containing "conftest.", or (3) at the end.
13245 # Note that $ac_compile itself does not contain backslashes and begins
13246 # with a dollar sign (not a hyphen), so the echo should work correctly.
13247 lt_compile=`echo "$ac_compile" | $SED \
13248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13250 -e 's:$: $lt_compiler_flag:'`
13251 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13252 (eval "$lt_compile" 2>out/conftest.err)
13254 cat out/conftest.err >&5
13255 echo "$as_me:__oline__: \$? = $ac_status" >&5
13256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13258 # The compiler can only warn and ignore the option if not recognized
13259 # So say no if there are warnings
13260 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13263 lt_cv_prog_compiler_c_o_F77=yes
13268 # SGI C++ compiler will create directory out/ii_files/ for
13269 # template instantiation
13270 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13271 $rm out/* && rmdir out
13277 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13278 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13281 hard_links="nottested"
13282 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13283 # do not overwrite the value of need_locks provided by the user
13284 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13285 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13288 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13290 ln conftest.a conftest.b 2>&5 || hard_links=no
13291 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13292 echo "$as_me:$LINENO: result: $hard_links" >&5
13293 echo "${ECHO_T}$hard_links" >&6
13294 if test "$hard_links" = no; then
13295 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13296 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13303 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13304 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13307 allow_undefined_flag_F77=
13308 enable_shared_with_static_runtimes_F77=no
13310 archive_expsym_cmds_F77=
13311 old_archive_From_new_cmds_F77=
13312 old_archive_from_expsyms_cmds_F77=
13313 export_dynamic_flag_spec_F77=
13314 whole_archive_flag_spec_F77=
13315 thread_safe_flag_spec_F77=
13316 hardcode_libdir_flag_spec_F77=
13317 hardcode_libdir_flag_spec_ld_F77=
13318 hardcode_libdir_separator_F77=
13319 hardcode_direct_F77=no
13320 hardcode_minus_L_F77=no
13321 hardcode_shlibpath_var_F77=unsupported
13322 link_all_deplibs_F77=unknown
13323 hardcode_automatic_F77=no
13325 module_expsym_cmds_F77=
13326 always_export_symbols_F77=no
13327 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13328 # include_expsyms should be a list of space-separated symbols to be *always*
13329 # included in the symbol list
13330 include_expsyms_F77=
13331 # exclude_expsyms can be an extended regexp of symbols to exclude
13332 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13333 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13334 # as well as any symbol that contains `d'.
13335 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13336 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13337 # platforms (ab)use it in PIC code, but their linkers get confused if
13338 # the symbol is explicitly referenced. Since portable code cannot
13339 # rely on this symbol name, it's probably fine to never include it in
13340 # preloaded symbol tables.
13341 extract_expsyms_cmds=
13342 # Just being paranoid about ensuring that cc_basename is set.
13343 for cc_temp in $compiler""; do
13345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13354 cygwin* | mingw* | pw32*)
13355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13356 # When not using gcc, we currently assume that we are using
13357 # Microsoft Visual C++.
13358 if test "$GCC" != yes; then
13363 # we just hope/assume this is gcc and not c89 (= MSVC++)
13372 if test "$with_gnu_ld" = yes; then
13373 # If archive_cmds runs LD, not CC, wlarc should be empty
13376 # Set some defaults for GNU ld with shared library support. These
13377 # are reset later if shared libraries are not supported. Putting them
13378 # here allows them to be overridden if necessary.
13379 runpath_var=LD_RUN_PATH
13380 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13381 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13382 # ancient GNU ld didn't support --whole-archive et. al.
13383 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13384 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13386 whole_archive_flag_spec_F77=
13388 supports_anon_versioning=no
13389 case `$LD -v 2>/dev/null` in
13390 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13391 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13392 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13393 *\ 2.11.*) ;; # other 2.11 versions
13394 *) supports_anon_versioning=yes ;;
13397 # See if GNU ld supports shared libraries.
13399 aix3* | aix4* | aix5*)
13400 # On AIX/PPC, the GNU linker is very broken
13401 if test "$host_cpu" != ia64; then
13405 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13406 *** to be unable to reliably create shared libraries on AIX.
13407 *** Therefore, libtool is disabling shared libraries support. If you
13408 *** really care for shared libraries, you may want to modify your PATH
13409 *** so that a non-GNU linker is found, and then restart.
13416 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)'
13417 hardcode_libdir_flag_spec_F77='-L$libdir'
13418 hardcode_minus_L_F77=yes
13420 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13421 # that the semantics of dynamic libraries on AmigaOS, at least up
13422 # to version 4, is to share data among multiple programs linked
13423 # with the same dynamic library. Since this doesn't match the
13424 # behavior of shared libraries on other platforms, we can't use
13430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13431 allow_undefined_flag_F77=unsupported
13432 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13433 # support --undefined. This deserves some investigation. FIXME
13434 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13440 cygwin* | mingw* | pw32*)
13441 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13442 # as there is no search path for DLLs.
13443 hardcode_libdir_flag_spec_F77='-L$libdir'
13444 allow_undefined_flag_F77=unsupported
13445 always_export_symbols_F77=no
13446 enable_shared_with_static_runtimes_F77=yes
13447 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13449 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13450 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13451 # If the export-symbols file already is a .def file (1st line
13452 # is EXPORTS), use it as is; otherwise, prepend...
13453 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13454 cp $export_symbols $output_objdir/$soname.def;
13456 echo EXPORTS > $output_objdir/$soname.def;
13457 cat $export_symbols >> $output_objdir/$soname.def;
13459 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13466 hardcode_direct_F77=no
13467 hardcode_shlibpath_var_F77=no
13468 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13469 export_dynamic_flag_spec_F77='${wl}-E'
13470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13471 # Instead, shared libraries are loaded at an image base (0x10000000 by
13472 # default) and relocated if they conflict, which is a slow very memory
13473 # consuming and fragmenting process. To avoid this, we pick a random,
13474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13476 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13477 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13480 linux* | k*bsd*-gnu)
13481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13483 case $cc_basename,$host_cpu in
13484 pgcc*) # Portland Group C compiler
13485 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13486 tmp_addflag=' $pic_flag'
13488 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13489 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13490 tmp_addflag=' $pic_flag -Mnomain' ;;
13491 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13492 tmp_addflag=' -i_dynamic' ;;
13493 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13494 tmp_addflag=' -i_dynamic -nofor_main' ;;
13495 ifc* | ifort*) # Intel Fortran compiler
13496 tmp_addflag=' -nofor_main' ;;
13498 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13500 if test $supports_anon_versioning = yes; then
13501 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13502 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13503 $echo "local: *; };" >> $output_objdir/$libname.ver~
13504 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13506 link_all_deplibs_F77=no
13512 netbsd* | netbsdelf*-gnu)
13513 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13514 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13518 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13523 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13528 *** create shared libraries on Solaris systems. Therefore, libtool
13529 *** is disabling shared libraries support. We urge you to upgrade GNU
13530 *** binutils to release 2.9.1 or newer. Another option is to modify
13531 *** your PATH or compiler configuration so that the native linker is
13532 *** used, and then restart.
13535 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13536 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13544 case `$LD -v 2>&1` in
13545 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13549 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13550 *** reliably create shared libraries on SCO systems. Therefore, libtool
13551 *** is disabling shared libraries support. We urge you to upgrade GNU
13552 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13553 *** your PATH or compiler configuration so that the native linker is
13554 *** used, and then restart.
13559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13560 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13562 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13571 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13573 hardcode_direct_F77=yes
13574 hardcode_shlibpath_var_F77=no
13578 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13579 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13587 if test "$ld_shlibs_F77" = no; then
13589 hardcode_libdir_flag_spec_F77=
13590 export_dynamic_flag_spec_F77=
13591 whole_archive_flag_spec_F77=
13594 # PORTME fill in a description of your system's linker (not GNU ld)
13597 allow_undefined_flag_F77=unsupported
13598 always_export_symbols_F77=yes
13599 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'
13600 # Note: this linker hardcodes the directories in LIBPATH if there
13601 # are no directories specified by -L.
13602 hardcode_minus_L_F77=yes
13603 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13604 # Neither direct hardcoding nor static linking is supported with a
13606 hardcode_direct_F77=unsupported
13611 if test "$host_cpu" = ia64; then
13612 # On IA64, the linker does run time linking by default, so we don't
13613 # have to do anything special.
13614 aix_use_runtimelinking=no
13615 exp_sym_flag='-Bexport'
13618 # If we're using GNU nm, then we don't want the "-C" option.
13619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13621 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'
13623 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'
13625 aix_use_runtimelinking=no
13627 # Test if we are trying to use run time linking or normal
13628 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13629 # need to do runtime linking.
13630 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13631 for ld_flag in $LDFLAGS; do
13632 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13633 aix_use_runtimelinking=yes
13640 exp_sym_flag='-bexport'
13641 no_entry_flag='-bnoentry'
13644 # When large executables or shared objects are built, AIX ld can
13645 # have problems creating the table of contents. If linking a library
13646 # or program results in "error TOC overflow" add -mminimal-toc to
13647 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13648 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13650 archive_cmds_F77=''
13651 hardcode_direct_F77=yes
13652 hardcode_libdir_separator_F77=':'
13653 link_all_deplibs_F77=yes
13655 if test "$GCC" = yes; then
13656 case $host_os in aix4.[012]|aix4.[012].*)
13657 # We only want to do this on AIX 4.2 and lower, the check
13658 # below for broken collect2 doesn't work under 4.3+
13659 collect2name=`${CC} -print-prog-name=collect2`
13660 if test -f "$collect2name" && \
13661 strings "$collect2name" | grep resolve_lib_name >/dev/null
13663 # We have reworked collect2
13664 hardcode_direct_F77=yes
13666 # We have old collect2
13667 hardcode_direct_F77=unsupported
13668 # It fails to find uninstalled libraries when the uninstalled
13669 # path is not listed in the libpath. Setting hardcode_minus_L
13670 # to unsupported forces relinking
13671 hardcode_minus_L_F77=yes
13672 hardcode_libdir_flag_spec_F77='-L$libdir'
13673 hardcode_libdir_separator_F77=
13677 shared_flag='-shared'
13678 if test "$aix_use_runtimelinking" = yes; then
13679 shared_flag="$shared_flag "'${wl}-G'
13683 if test "$host_cpu" = ia64; then
13684 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13685 # chokes on -Wl,-G. The following line is correct:
13688 if test "$aix_use_runtimelinking" = yes; then
13689 shared_flag='${wl}-G'
13691 shared_flag='${wl}-bM:SRE'
13696 # It seems that -bexpall does not export symbols beginning with
13697 # underscore (_), so it is better to generate a list of symbols to export.
13698 always_export_symbols_F77=yes
13699 if test "$aix_use_runtimelinking" = yes; then
13700 # Warning - without using the other runtime loading flags (-brtl),
13701 # -berok will link without error, but may produce a broken library.
13702 allow_undefined_flag_F77='-berok'
13703 # Determine the default libpath from the value encoded in an empty executable.
13704 cat >conftest.$ac_ext <<_ACEOF
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711 (eval $ac_link) 2>conftest.er1
13713 grep -v '^ *+' conftest.er1 >conftest.err
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
13724 { ac_try='test -s conftest$ac_exeext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13731 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13733 # Check for a 64-bit object if we didn't find anything.
13734 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; }
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13741 rm -f conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
13743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13745 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13746 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13748 if test "$host_cpu" = ia64; then
13749 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13750 allow_undefined_flag_F77="-z nodefs"
13751 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13753 # Determine the default libpath from the value encoded in an empty executable.
13754 cat >conftest.$ac_ext <<_ACEOF
13759 rm -f conftest.$ac_objext conftest$ac_exeext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761 (eval $ac_link) 2>conftest.er1
13763 grep -v '^ *+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest$ac_exeext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13783 # Check for a 64-bit object if we didn't find anything.
13784 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; }
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13791 rm -f conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13795 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13796 # Warning - without using the other run time loading flags,
13797 # -berok will link without error, but may produce a broken library.
13798 no_undefined_flag_F77=' ${wl}-bernotok'
13799 allow_undefined_flag_F77=' ${wl}-berok'
13800 # Exported symbols can be pulled into shared objects from archives
13801 whole_archive_flag_spec_F77='$convenience'
13802 archive_cmds_need_lc_F77=yes
13803 # This is similar to how AIX traditionally builds its shared libraries.
13804 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13810 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)'
13811 hardcode_libdir_flag_spec_F77='-L$libdir'
13812 hardcode_minus_L_F77=yes
13813 # see comment about different semantics on the GNU ld section
13818 export_dynamic_flag_spec_F77=-rdynamic
13821 cygwin* | mingw* | pw32*)
13822 # When not using gcc, we currently assume that we are using
13823 # Microsoft Visual C++.
13824 # hardcode_libdir_flag_spec is actually meaningless, as there is
13825 # no search path for DLLs.
13826 hardcode_libdir_flag_spec_F77=' '
13827 allow_undefined_flag_F77=unsupported
13828 # Tell ltmain to make .lib files, not .a files.
13830 # Tell ltmain to make .dll files, not .so files.
13832 # FIXME: Setting linknames here is a bad hack.
13833 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13834 # The linker will automatically build a .lib file if we build a DLL.
13835 old_archive_From_new_cmds_F77='true'
13836 # FIXME: Should let the user specify the lib program.
13837 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13838 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13839 enable_shared_with_static_runtimes_F77=yes
13842 darwin* | rhapsody*)
13844 rhapsody* | darwin1.[012])
13845 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13848 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13849 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13851 case ${MACOSX_DEPLOYMENT_TARGET} in
13853 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13856 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13862 archive_cmds_need_lc_F77=no
13863 hardcode_direct_F77=no
13864 hardcode_automatic_F77=yes
13865 hardcode_shlibpath_var_F77=unsupported
13866 whole_archive_flag_spec_F77=''
13867 link_all_deplibs_F77=yes
13868 if test "$GCC" = yes ; then
13869 output_verbose_link_cmd='echo'
13870 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13871 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13872 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13873 archive_expsym_cmds_F77='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}'
13874 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}'
13876 case $cc_basename in
13878 output_verbose_link_cmd='echo'
13879 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13880 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13881 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13882 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13883 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}'
13893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894 hardcode_libdir_flag_spec_F77='-L$libdir'
13895 hardcode_shlibpath_var_F77=no
13902 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13903 # support. Future versions do this automatically, but an explicit c++rt0.o
13904 # does not break anything, and helps significantly (at the cost of a little
13907 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13908 hardcode_libdir_flag_spec_F77='-R$libdir'
13909 hardcode_direct_F77=yes
13910 hardcode_shlibpath_var_F77=no
13913 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13915 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13916 hardcode_direct_F77=yes
13917 hardcode_minus_L_F77=yes
13918 hardcode_shlibpath_var_F77=no
13921 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13922 freebsd* | dragonfly*)
13923 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13924 hardcode_libdir_flag_spec_F77='-R$libdir'
13925 hardcode_direct_F77=yes
13926 hardcode_shlibpath_var_F77=no
13930 if test "$GCC" = yes; then
13931 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'
13933 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'
13935 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13936 hardcode_libdir_separator_F77=:
13937 hardcode_direct_F77=yes
13939 # hardcode_minus_L: Not really in the search PATH,
13940 # but as the default location of the library.
13941 hardcode_minus_L_F77=yes
13942 export_dynamic_flag_spec_F77='${wl}-E'
13946 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13947 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13949 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13951 if test "$with_gnu_ld" = no; then
13952 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13953 hardcode_libdir_separator_F77=:
13955 hardcode_direct_F77=yes
13956 export_dynamic_flag_spec_F77='${wl}-E'
13958 # hardcode_minus_L: Not really in the search PATH,
13959 # but as the default location of the library.
13960 hardcode_minus_L_F77=yes
13965 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13968 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13971 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13974 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13980 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13983 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13986 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13990 if test "$with_gnu_ld" = no; then
13991 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13992 hardcode_libdir_separator_F77=:
13996 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13997 hardcode_direct_F77=no
13998 hardcode_shlibpath_var_F77=no
14001 hardcode_direct_F77=yes
14002 export_dynamic_flag_spec_F77='${wl}-E'
14004 # hardcode_minus_L: Not really in the search PATH,
14005 # but as the default location of the library.
14006 hardcode_minus_L_F77=yes
14012 irix5* | irix6* | nonstopux*)
14013 if test "$GCC" = yes; then
14014 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'
14016 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'
14017 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14019 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14020 hardcode_libdir_separator_F77=:
14021 link_all_deplibs_F77=yes
14024 netbsd* | netbsdelf*-gnu)
14025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14028 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14030 hardcode_libdir_flag_spec_F77='-R$libdir'
14031 hardcode_direct_F77=yes
14032 hardcode_shlibpath_var_F77=no
14036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14037 hardcode_direct_F77=yes
14038 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14039 hardcode_libdir_separator_F77=:
14040 hardcode_shlibpath_var_F77=no
14044 hardcode_direct_F77=yes
14045 hardcode_shlibpath_var_F77=no
14046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14047 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14048 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14049 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14050 export_dynamic_flag_spec_F77='${wl}-E'
14053 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14054 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14055 hardcode_libdir_flag_spec_F77='-R$libdir'
14058 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14059 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14066 hardcode_libdir_flag_spec_F77='-L$libdir'
14067 hardcode_minus_L_F77=yes
14068 allow_undefined_flag_F77=unsupported
14069 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'
14070 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14074 if test "$GCC" = yes; then
14075 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14076 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'
14078 allow_undefined_flag_F77=' -expect_unresolved \*'
14079 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'
14081 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14082 hardcode_libdir_separator_F77=:
14085 osf4* | osf5*) # as osf3* with the addition of -msym flag
14086 if test "$GCC" = yes; then
14087 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14088 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'
14089 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14091 allow_undefined_flag_F77=' -expect_unresolved \*'
14092 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'
14093 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~
14094 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14096 # Both c and cxx compiler support -rpath directly
14097 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14099 hardcode_libdir_separator_F77=:
14103 no_undefined_flag_F77=' -z text'
14104 if test "$GCC" = yes; then
14106 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14107 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14108 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14111 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14112 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14113 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14115 hardcode_libdir_flag_spec_F77='-R$libdir'
14116 hardcode_shlibpath_var_F77=no
14118 solaris2.[0-5] | solaris2.[0-5].*) ;;
14120 # The compiler driver will combine linker options so we
14121 # cannot just pass the convience library names through
14122 # without $wl, iff we do not link with $LD.
14123 # Luckily, gcc supports the same syntax we need for Sun Studio.
14124 # Supported since Solaris 2.6 (maybe 2.5.1?)
14127 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14129 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14132 link_all_deplibs_F77=yes
14136 if test "x$host_vendor" = xsequent; then
14137 # Use $CC to link under sequent, because it throws in some extra .o
14138 # files that make .init and .fini sections work.
14139 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14141 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14143 hardcode_libdir_flag_spec_F77='-L$libdir'
14144 hardcode_direct_F77=yes
14145 hardcode_minus_L_F77=yes
14146 hardcode_shlibpath_var_F77=no
14150 case $host_vendor in
14152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14153 hardcode_direct_F77=yes # is this really true???
14156 ## LD is ld it makes a PLAMLIB
14157 ## CC just makes a GrossModule.
14158 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14159 reload_cmds_F77='$CC -r -o $output$reload_objs'
14160 hardcode_direct_F77=no
14163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14167 runpath_var='LD_RUN_PATH'
14168 hardcode_shlibpath_var_F77=no
14172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173 hardcode_shlibpath_var_F77=no
14174 export_dynamic_flag_spec_F77='-Bexport'
14178 if test -d /usr/nec; then
14179 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14180 hardcode_shlibpath_var_F77=no
14181 runpath_var=LD_RUN_PATH
14182 hardcode_runpath_var=yes
14187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14188 no_undefined_flag_F77='${wl}-z,text'
14189 archive_cmds_need_lc_F77=no
14190 hardcode_shlibpath_var_F77=no
14191 runpath_var='LD_RUN_PATH'
14193 if test "$GCC" = yes; then
14194 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14197 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14198 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14202 sysv5* | sco3.2v5* | sco5v6*)
14203 # Note: We can NOT use -z defs as we might desire, because we do not
14204 # link with -lc, and that would cause any symbols used from libc to
14205 # always be unresolved, which means just about no library would
14206 # ever link correctly. If we're not using GNU ld we use -z text
14207 # though, which does catch some bad symbols but isn't as heavy-handed
14209 no_undefined_flag_F77='${wl}-z,text'
14210 allow_undefined_flag_F77='${wl}-z,nodefs'
14211 archive_cmds_need_lc_F77=no
14212 hardcode_shlibpath_var_F77=no
14213 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14214 hardcode_libdir_separator_F77=':'
14215 link_all_deplibs_F77=yes
14216 export_dynamic_flag_spec_F77='${wl}-Bexport'
14217 runpath_var='LD_RUN_PATH'
14219 if test "$GCC" = yes; then
14220 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14221 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14223 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14224 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14229 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14230 hardcode_libdir_flag_spec_F77='-L$libdir'
14231 hardcode_shlibpath_var_F77=no
14240 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14241 echo "${ECHO_T}$ld_shlibs_F77" >&6
14242 test "$ld_shlibs_F77" = no && can_build_shared=no
14245 # Do we need to explicitly link libc?
14247 case "x$archive_cmds_need_lc_F77" in
14249 # Assume -lc should be added
14250 archive_cmds_need_lc_F77=yes
14252 if test "$enable_shared" = yes && test "$GCC" = yes; then
14253 case $archive_cmds_F77 in
14255 # FIXME: we may have to deal with multi-command sequences.
14258 # Test whether the compiler implicitly links with -lc since on some
14259 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14260 # to ld, don't add -lc before -lgcc.
14261 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14262 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } 2>conftest.err; then
14273 libobjs=conftest.$ac_objext
14275 wl=$lt_prog_compiler_wl_F77
14276 pic_flag=$lt_prog_compiler_pic_F77
14282 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14283 allow_undefined_flag_F77=
14284 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14285 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }
14290 archive_cmds_need_lc_F77=no
14292 archive_cmds_need_lc_F77=yes
14294 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14296 cat conftest.err 1>&5
14299 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14300 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14307 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14309 library_names_spec=
14310 libname_spec='lib$name'
14314 postuninstall_cmds=
14318 shlibpath_overrides_runpath=unknown
14320 dynamic_linker="$host_os ld.so"
14321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14322 if test "$GCC" = yes; then
14323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14324 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14325 # if the path contains ";" then we assume it to be the separator
14326 # otherwise default to the standard path separator (i.e. ":") - it is
14327 # assumed that no part of a normal pathname contains ";" but that should
14328 # okay in the real world where ";" in dirpaths is itself problematic.
14329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14336 need_lib_prefix=unknown
14337 hardcode_into_libs=no
14339 # when you set need_version to no, make sure it does not cause -set_version
14340 # flags to be left without arguments
14341 need_version=unknown
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14347 shlibpath_var=LIBPATH
14349 # AIX 3 has no versioning support, so we append a major version to the name.
14350 soname_spec='${libname}${release}${shared_ext}$major'
14357 hardcode_into_libs=yes
14358 if test "$host_cpu" = ia64; then
14359 # AIX 5 supports IA64
14360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14361 shlibpath_var=LD_LIBRARY_PATH
14363 # With GCC up to 2.95.x, collect2 would create an import file
14364 # for dependence libraries. The import file would start with
14365 # the line `#! .'. This would cause the generated library to
14366 # depend on `.', always an invalid library. This was fixed in
14367 # development snapshots of GCC prior to 3.0.
14369 aix4 | aix4.[01] | aix4.[01].*)
14370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14372 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14375 can_build_shared=no
14379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14380 # soname into executable. Probably we can add versioning support to
14381 # collect2, so additional links can be useful in future.
14382 if test "$aix_use_runtimelinking" = yes; then
14383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14384 # instead of lib<name>.a to let people know that these are not
14385 # typical AIX shared libraries.
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388 # We preserve .a as extension for shared libraries through AIX4.2
14389 # and later when we are not doing run time linking.
14390 library_names_spec='${libname}${release}.a $libname.a'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14393 shlibpath_var=LIBPATH
14398 library_names_spec='$libname.ixlibrary $libname.a'
14399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14400 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'
14404 library_names_spec='${libname}${shared_ext}'
14405 dynamic_linker="$host_os ld.so"
14406 shlibpath_var=LIBRARY_PATH
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14415 shlibpath_var=LD_LIBRARY_PATH
14416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14418 # the default ld.so.conf also contains /usr/contrib/lib and
14419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14420 # libtool to hard-code these into programs
14423 cygwin* | mingw* | pw32*)
14424 version_type=windows
14429 case $GCC,$host_os in
14430 yes,cygwin* | yes,mingw* | yes,pw32*)
14431 library_names_spec='$libname.dll.a'
14432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14433 postinstall_cmds='base_file=`basename \${file}`~
14434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14435 dldir=$destdir/`dirname \$dlpath`~
14436 test -d \$dldir || mkdir -p \$dldir~
14437 $install_prog $dir/$dlname \$dldir/$dlname~
14438 chmod a+x \$dldir/$dlname'
14439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14440 dlpath=$dir/\$dldll~
14442 shlibpath_overrides_runpath=yes
14446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14448 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14451 # MinGW DLLs use traditional 'lib' prefix
14452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14453 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14454 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14455 # It is most probably a Windows format PATH printed by
14456 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14457 # path with ; separators, and with drive letters. We can handle the
14458 # drive letters (cygwin fileutils understands them), so leave them,
14459 # especially as we might pass files found there to a mingw objdump,
14460 # which wouldn't understand a cygwinified path. Ahh.
14461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14467 # pw32 DLLs use 'pw' prefix rather than 'lib'
14468 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14477 dynamic_linker='Win32 ld.exe'
14478 # FIXME: first we should search . and the directory the executable is in
14482 darwin* | rhapsody*)
14483 dynamic_linker="$host_os dyld"
14484 version_type=darwin
14487 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14488 soname_spec='${libname}${release}${major}$shared_ext'
14489 shlibpath_overrides_runpath=yes
14490 shlibpath_var=DYLD_LIBRARY_PATH
14491 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14492 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14493 if test "$GCC" = yes; then
14494 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"`
14496 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 shlibpath_var=LD_LIBRARY_PATH
14514 freebsd* | dragonfly*)
14515 # DragonFly does not have aout. When/if they implement a new
14516 # versioning mechanism, adjust this.
14517 if test -x /usr/bin/objformat; then
14518 objformat=`/usr/bin/objformat`
14521 freebsd[123]*) objformat=aout ;;
14522 *) objformat=elf ;;
14525 version_type=freebsd-$objformat
14526 case $version_type in
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14537 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes
14542 freebsd3.[01]* | freebsdelf3.[01]*)
14543 shlibpath_overrides_runpath=yes
14544 hardcode_into_libs=yes
14546 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14547 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14548 shlibpath_overrides_runpath=no
14549 hardcode_into_libs=yes
14551 freebsd*) # from 4.6 on
14552 shlibpath_overrides_runpath=yes
14553 hardcode_into_libs=yes
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14563 soname_spec='${libname}${release}${shared_ext}$major'
14564 shlibpath_var=LD_LIBRARY_PATH
14565 hardcode_into_libs=yes
14568 hpux9* | hpux10* | hpux11*)
14569 # Give a soname corresponding to the major version so that dld.sl refuses to
14570 # link against other versions.
14577 hardcode_into_libs=yes
14578 dynamic_linker="$host_os dld.so"
14579 shlibpath_var=LD_LIBRARY_PATH
14580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 if test "X$HPUX_IA64_MODE" = X32; then
14584 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14586 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14592 hardcode_into_libs=yes
14593 dynamic_linker="$host_os dld.sl"
14594 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14603 dynamic_linker="$host_os dld.sl"
14604 shlibpath_var=SHLIB_PATH
14605 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14610 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14611 postinstall_cmds='chmod 555 $lib'
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=no
14623 hardcode_into_libs=yes
14626 irix5* | irix6* | nonstopux*)
14628 nonstopux*) version_type=nonstopux ;;
14630 if test "$lt_cv_prog_gnu_ld" = yes; then
14638 soname_spec='${libname}${release}${shared_ext}$major'
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14641 irix5* | nonstopux*)
14642 libsuff= shlibsuff=
14645 case $LD in # libtool.m4 will add one of these switches to LD
14646 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14647 libsuff= shlibsuff= libmagic=32-bit;;
14648 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14649 libsuff=32 shlibsuff=N32 libmagic=N32;;
14650 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14651 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14652 *) libsuff= shlibsuff= libmagic=never-match;;
14656 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14657 shlibpath_overrides_runpath=no
14658 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14659 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14660 hardcode_into_libs=yes
14663 # No shared lib support for Linux oldld, aout, or coff.
14664 linux*oldld* | linux*aout* | linux*coff*)
14668 # This must be Linux ELF.
14669 linux* | k*bsd*-gnu)
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14676 shlibpath_var=LD_LIBRARY_PATH
14677 shlibpath_overrides_runpath=no
14678 # This implies no fast_install, which is unacceptable.
14679 # Some rework will be needed to allow for fast_install
14680 # before this can be enabled.
14681 hardcode_into_libs=yes
14683 # Append ld.so.conf contents to the search path
14684 if test -f /etc/ld.so.conf; then
14685 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14689 # We used to test for /lib/ld.so.1 and disable shared libraries on
14690 # powerpc, because MkLinux only supported shared libraries with the
14691 # GNU dynamic linker. Since this was broken with cross compilers,
14692 # most powerpc-linux boxes support dynamic linking these days and
14693 # people can always --disable-shared, the test was removed, and we
14694 # assume the GNU/Linux dynamic linker is in use.
14695 dynamic_linker='GNU/Linux ld.so'
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=no
14706 hardcode_into_libs=yes
14707 dynamic_linker='NetBSD ld.elf_so'
14714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14717 dynamic_linker='NetBSD (a.out) ld.so'
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 dynamic_linker='NetBSD ld.elf_so'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=yes
14725 hardcode_into_libs=yes
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 shlibpath_overrides_runpath=yes
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740 soname_spec='${libname}${release}${shared_ext}$major'
14741 shlibpath_var=LD_LIBRARY_PATH
14742 shlibpath_overrides_runpath=yes
14747 sys_lib_dlsearch_path_spec="/usr/lib"
14749 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14751 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14752 *) need_version=no ;;
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14759 openbsd2.[89] | openbsd2.[89].*)
14760 shlibpath_overrides_runpath=no
14763 shlibpath_overrides_runpath=yes
14767 shlibpath_overrides_runpath=yes
14772 libname_spec='$name'
14775 library_names_spec='$libname${shared_ext} $libname.a'
14776 dynamic_linker='OS/2 ld.exe'
14777 shlibpath_var=LIBPATH
14780 osf3* | osf4* | osf5*)
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14788 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 shlibpath_overrides_runpath=yes
14799 hardcode_into_libs=yes
14800 # ldd complains unless libraries are executable
14801 postinstall_cmds='chmod +x $lib'
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14807 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 shlibpath_overrides_runpath=yes
14810 if test "$with_gnu_ld" = yes; then
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 case $host_vendor in
14823 shlibpath_overrides_runpath=no
14825 export_dynamic_flag_spec='${wl}-Blargedynsym'
14826 runpath_var=LD_RUN_PATH
14834 shlibpath_overrides_runpath=no
14835 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14841 if test -d /usr/nec ;then
14843 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14844 soname_spec='$libname${shared_ext}.$major'
14845 shlibpath_var=LD_LIBRARY_PATH
14849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14850 version_type=freebsd-elf
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14854 soname_spec='${libname}${release}${shared_ext}$major'
14855 shlibpath_var=LD_LIBRARY_PATH
14856 hardcode_into_libs=yes
14857 if test "$with_gnu_ld" = yes; then
14858 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14859 shlibpath_overrides_runpath=no
14861 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14862 shlibpath_overrides_runpath=yes
14865 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14869 sys_lib_dlsearch_path_spec='/usr/lib'
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 shlibpath_var=LD_LIBRARY_PATH
14883 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14884 echo "${ECHO_T}$dynamic_linker" >&6
14885 test "$dynamic_linker" = no && can_build_shared=no
14887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14888 if test "$GCC" = yes; then
14889 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14892 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14893 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14894 hardcode_action_F77=
14895 if test -n "$hardcode_libdir_flag_spec_F77" || \
14896 test -n "$runpath_var_F77" || \
14897 test "X$hardcode_automatic_F77" = "Xyes" ; then
14899 # We can hardcode non-existant directories.
14900 if test "$hardcode_direct_F77" != no &&
14901 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14902 # have to relink, otherwise we might link with an installed library
14903 # when we should be linking with a yet-to-be-installed one
14904 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14905 test "$hardcode_minus_L_F77" != no; then
14906 # Linking always hardcodes the temporary library directory.
14907 hardcode_action_F77=relink
14909 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14910 hardcode_action_F77=immediate
14913 # We cannot hardcode anything, or else we can only hardcode existing
14915 hardcode_action_F77=unsupported
14917 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14918 echo "${ECHO_T}$hardcode_action_F77" >&6
14920 if test "$hardcode_action_F77" = relink; then
14921 # Fast installation is not supported
14922 enable_fast_install=no
14923 elif test "$shlibpath_overrides_runpath" = yes ||
14924 test "$enable_shared" = no; then
14925 # Fast installation is not necessary
14926 enable_fast_install=needless
14930 # The else clause should only fire when bootstrapping the
14931 # libtool distribution, otherwise you forgot to ship ltmain.sh
14932 # with your package, and you will get complaints that there are
14933 # no rules to generate ltmain.sh.
14934 if test -f "$ltmain"; then
14935 # See if we are running on zsh, and set the options which allow our commands through
14936 # without removal of \ escapes.
14937 if test -n "${ZSH_VERSION+set}" ; then
14938 setopt NO_GLOB_SUBST
14940 # Now quote all the things that may contain metacharacters while being
14941 # careful not to overquote the AC_SUBSTed values. We take copies of the
14942 # variables and quote the copies for generation of the libtool script.
14943 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14945 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14946 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14947 deplibs_check_method reload_flag reload_cmds need_locks \
14948 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14949 lt_cv_sys_global_symbol_to_c_name_address \
14950 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14951 old_postinstall_cmds old_postuninstall_cmds \
14955 lt_prog_compiler_wl_F77 \
14956 lt_prog_compiler_pic_F77 \
14957 lt_prog_compiler_static_F77 \
14958 lt_prog_compiler_no_builtin_flag_F77 \
14959 export_dynamic_flag_spec_F77 \
14960 thread_safe_flag_spec_F77 \
14961 whole_archive_flag_spec_F77 \
14962 enable_shared_with_static_runtimes_F77 \
14963 old_archive_cmds_F77 \
14964 old_archive_from_new_cmds_F77 \
14965 predep_objects_F77 \
14966 postdep_objects_F77 \
14969 compiler_lib_search_path_F77 \
14971 archive_expsym_cmds_F77 \
14972 postinstall_cmds_F77 \
14973 postuninstall_cmds_F77 \
14974 old_archive_from_expsyms_cmds_F77 \
14975 allow_undefined_flag_F77 \
14976 no_undefined_flag_F77 \
14977 export_symbols_cmds_F77 \
14978 hardcode_libdir_flag_spec_F77 \
14979 hardcode_libdir_flag_spec_ld_F77 \
14980 hardcode_libdir_separator_F77 \
14981 hardcode_automatic_F77 \
14983 module_expsym_cmds_F77 \
14984 lt_cv_prog_compiler_c_o_F77 \
14985 exclude_expsyms_F77 \
14986 include_expsyms_F77; do
14989 old_archive_cmds_F77 | \
14990 old_archive_from_new_cmds_F77 | \
14991 archive_cmds_F77 | \
14992 archive_expsym_cmds_F77 | \
14993 module_cmds_F77 | \
14994 module_expsym_cmds_F77 | \
14995 old_archive_from_expsyms_cmds_F77 | \
14996 export_symbols_cmds_F77 | \
14997 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14998 postinstall_cmds | postuninstall_cmds | \
14999 old_postinstall_cmds | old_postuninstall_cmds | \
15000 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15001 # Double-quote double-evaled strings.
15002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15011 *'\$0 --fallback-echo"')
15012 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15018 cat <<__EOF__ >> "$cfgfile"
15019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15023 # Shell to use when invoking shell scripts.
15026 # Whether or not to build shared libraries.
15027 build_libtool_libs=$enable_shared
15029 # Whether or not to build static libraries.
15030 build_old_libs=$enable_static
15032 # Whether or not to add -lc for building shared libraries.
15033 build_libtool_need_lc=$archive_cmds_need_lc_F77
15035 # Whether or not to disallow shared libs when runtime libs are static
15036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15038 # Whether or not to optimize for fast installation.
15039 fast_install=$enable_fast_install
15042 host_alias=$host_alias
15046 # The build system.
15047 build_alias=$build_alias
15051 # An echo program that does not interpret backslashes.
15056 AR_FLAGS=$lt_AR_FLAGS
15061 # LTCC compiler flags.
15062 LTCFLAGS=$lt_LTCFLAGS
15064 # A language-specific compiler.
15065 CC=$lt_compiler_F77
15067 # Is the compiler the GNU C compiler?
15073 # The linker used to build libraries.
15076 # Whether we need hard or soft links.
15079 # A BSD-compatible nm program.
15082 # A symbol stripping program
15085 # Used to examine libraries when file_magic_cmd begins "file"
15086 MAGIC_CMD=$MAGIC_CMD
15088 # Used on cygwin: DLL creation program.
15091 # Used on cygwin: object dumper.
15094 # Used on cygwin: assembler.
15097 # The name of the directory that contains temporary libtool files.
15100 # How to create reloadable object files.
15101 reload_flag=$lt_reload_flag
15102 reload_cmds=$lt_reload_cmds
15104 # How to pass a linker flag through the compiler.
15105 wl=$lt_lt_prog_compiler_wl_F77
15107 # Object file suffix (normally "o").
15108 objext="$ac_objext"
15110 # Old archive suffix (normally "a").
15113 # Shared library suffix (normally ".so").
15114 shrext_cmds='$shrext_cmds'
15116 # Executable file suffix (normally "").
15119 # Additional compiler flags for building library objects.
15120 pic_flag=$lt_lt_prog_compiler_pic_F77
15123 # What is the maximum length of a command?
15124 max_cmd_len=$lt_cv_sys_max_cmd_len
15126 # Does compiler simultaneously support -c and -o options?
15127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15129 # Must we lock files when doing compilation?
15130 need_locks=$lt_need_locks
15132 # Do we need the lib prefix for modules?
15133 need_lib_prefix=$need_lib_prefix
15135 # Do we need a version for libraries?
15136 need_version=$need_version
15138 # Whether dlopen is supported.
15139 dlopen_support=$enable_dlopen
15141 # Whether dlopen of programs is supported.
15142 dlopen_self=$enable_dlopen_self
15144 # Whether dlopen of statically linked programs is supported.
15145 dlopen_self_static=$enable_dlopen_self_static
15147 # Compiler flag to prevent dynamic linking.
15148 link_static_flag=$lt_lt_prog_compiler_static_F77
15150 # Compiler flag to turn off builtin functions.
15151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15153 # Compiler flag to allow reflexive dlopens.
15154 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15156 # Compiler flag to generate shared objects directly from archives.
15157 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15159 # Compiler flag to generate thread-safe objects.
15160 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15162 # Library versioning type.
15163 version_type=$version_type
15165 # Format of library name prefix.
15166 libname_spec=$lt_libname_spec
15168 # List of archive names. First name is the real one, the rest are links.
15169 # The last name is the one that the linker finds with -lNAME.
15170 library_names_spec=$lt_library_names_spec
15172 # The coded name of the library, if different from the real name.
15173 soname_spec=$lt_soname_spec
15175 # Commands used to build and install an old-style archive.
15177 old_archive_cmds=$lt_old_archive_cmds_F77
15178 old_postinstall_cmds=$lt_old_postinstall_cmds
15179 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15181 # Create an old-style archive from a shared archive.
15182 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15184 # Create a temporary old-style archive to link instead of a shared archive.
15185 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15187 # Commands used to build and install a shared archive.
15188 archive_cmds=$lt_archive_cmds_F77
15189 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15190 postinstall_cmds=$lt_postinstall_cmds
15191 postuninstall_cmds=$lt_postuninstall_cmds
15193 # Commands used to build a loadable module (assumed same as above if empty)
15194 module_cmds=$lt_module_cmds_F77
15195 module_expsym_cmds=$lt_module_expsym_cmds_F77
15197 # Commands to strip libraries.
15198 old_striplib=$lt_old_striplib
15199 striplib=$lt_striplib
15201 # Dependencies to place before the objects being linked to create a
15203 predep_objects=$lt_predep_objects_F77
15205 # Dependencies to place after the objects being linked to create a
15207 postdep_objects=$lt_postdep_objects_F77
15209 # Dependencies to place before the objects being linked to create a
15211 predeps=$lt_predeps_F77
15213 # Dependencies to place after the objects being linked to create a
15215 postdeps=$lt_postdeps_F77
15217 # The library search path used internally by the compiler when linking
15218 # a shared library.
15219 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15221 # Method to check whether dependent libraries are shared objects.
15222 deplibs_check_method=$lt_deplibs_check_method
15224 # Command to use when deplibs_check_method == file_magic.
15225 file_magic_cmd=$lt_file_magic_cmd
15227 # Flag that allows shared libraries with undefined symbols to be built.
15228 allow_undefined_flag=$lt_allow_undefined_flag_F77
15230 # Flag that forces no undefined symbols.
15231 no_undefined_flag=$lt_no_undefined_flag_F77
15233 # Commands used to finish a libtool library installation in a directory.
15234 finish_cmds=$lt_finish_cmds
15236 # Same as above, but a single script fragment to be evaled but not shown.
15237 finish_eval=$lt_finish_eval
15239 # Take the output of nm and produce a listing of raw symbols and C names.
15240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15242 # Transform the output of nm in a proper C declaration
15243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15245 # Transform the output of nm in a C name address pair
15246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15248 # This is the shared library runtime path variable.
15249 runpath_var=$runpath_var
15251 # This is the shared library path variable.
15252 shlibpath_var=$shlibpath_var
15254 # Is shlibpath searched before the hard-coded library search path?
15255 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15257 # How to hardcode a shared library path into an executable.
15258 hardcode_action=$hardcode_action_F77
15260 # Whether we should hardcode library paths into libraries.
15261 hardcode_into_libs=$hardcode_into_libs
15263 # Flag to hardcode \$libdir into a binary during linking.
15264 # This must work even if \$libdir does not exist.
15265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15267 # If ld is used when linking, flag to hardcode \$libdir into
15268 # a binary during linking. This must work even if \$libdir does
15270 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15272 # Whether we need a single -rpath flag with a separated argument.
15273 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15275 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15276 # resulting binary.
15277 hardcode_direct=$hardcode_direct_F77
15279 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15280 # resulting binary.
15281 hardcode_minus_L=$hardcode_minus_L_F77
15283 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15284 # the resulting binary.
15285 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15287 # Set to yes if building a shared library automatically hardcodes DIR into the library
15288 # and all subsequent libraries and executables linked against it.
15289 hardcode_automatic=$hardcode_automatic_F77
15291 # Variables whose values should be saved in libtool wrapper scripts and
15292 # restored at relink time.
15293 variables_saved_for_relink="$variables_saved_for_relink"
15295 # Whether libtool must link a program against all its dependency libraries.
15296 link_all_deplibs=$link_all_deplibs_F77
15298 # Compile-time system search path for libraries
15299 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15301 # Run-time system search path for libraries
15302 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15304 # Fix the shell variable \$srcfile for the compiler.
15305 fix_srcfile_path="$fix_srcfile_path_F77"
15307 # Set to yes if exported symbols are required.
15308 always_export_symbols=$always_export_symbols_F77
15310 # The commands to list exported symbols.
15311 export_symbols_cmds=$lt_export_symbols_cmds_F77
15313 # The commands to extract the exported symbol list from a shared archive.
15314 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15316 # Symbols that should not be listed in the preloaded symbols.
15317 exclude_expsyms=$lt_exclude_expsyms_F77
15319 # Symbols that must always be exported.
15320 include_expsyms=$lt_include_expsyms_F77
15322 # ### END LIBTOOL TAG CONFIG: $tagname
15328 # If there is no Makefile yet, we rely on a make rule to execute
15329 # `config.status --recheck' to rerun these tests and create the
15330 # libtool script then.
15331 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15332 if test -f "$ltmain_in"; then
15333 test -f Makefile && make "$ltmain"
15339 ac_cpp='$CPP $CPPFLAGS'
15340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15352 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15356 # Source file extension for Java test sources.
15359 # Object file extension for compiled Java test sources.
15363 # Code to be used in simple compile tests
15364 lt_simple_compile_test_code="class foo {}\n"
15366 # Code to be used in simple link tests
15367 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15369 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15371 # If no C compiler was specified, use CC.
15374 # If no C compiler flags were specified, use CFLAGS.
15375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15377 # Allow CC to be a program name with arguments.
15381 # save warnings/boilerplate of simple test code
15382 ac_outfile=conftest.$ac_objext
15383 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15385 _lt_compiler_boilerplate=`cat conftest.err`
15388 ac_outfile=conftest.$ac_objext
15389 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15391 _lt_linker_boilerplate=`cat conftest.err`
15395 # Allow CC to be a program name with arguments.
15400 for cc_temp in $compiler""; do
15402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15411 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15412 archive_cmds_need_lc_GCJ=no
15414 old_archive_cmds_GCJ=$old_archive_cmds
15417 ## There is no encapsulation within the following macros, do not change
15418 ## the running order or otherwise move them around unless you know exactly
15419 ## what you are doing...
15421 lt_prog_compiler_no_builtin_flag_GCJ=
15423 if test "$GCC" = yes; then
15424 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15427 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15428 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15429 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 lt_cv_prog_compiler_rtti_exceptions=no
15433 ac_outfile=conftest.$ac_objext
15434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15435 lt_compiler_flag="-fno-rtti -fno-exceptions"
15436 # Insert the option either (1) after the last *FLAGS variable, or
15437 # (2) before a word containing "conftest.", or (3) at the end.
15438 # Note that $ac_compile itself does not contain backslashes and begins
15439 # with a dollar sign (not a hyphen), so the echo should work correctly.
15440 # The option is referenced via a variable to avoid confusing sed.
15441 lt_compile=`echo "$ac_compile" | $SED \
15442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444 -e 's:$: $lt_compiler_flag:'`
15445 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15446 (eval "$lt_compile" 2>conftest.err)
15448 cat conftest.err >&5
15449 echo "$as_me:__oline__: \$? = $ac_status" >&5
15450 if (exit $ac_status) && test -s "$ac_outfile"; then
15451 # The compiler can only warn and ignore the option if not recognized
15452 # So say no if there are warnings other than the usual output.
15453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15456 lt_cv_prog_compiler_rtti_exceptions=yes
15462 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15463 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15466 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15473 lt_prog_compiler_wl_GCJ=
15474 lt_prog_compiler_pic_GCJ=
15475 lt_prog_compiler_static_GCJ=
15477 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15480 if test "$GCC" = yes; then
15481 lt_prog_compiler_wl_GCJ='-Wl,'
15482 lt_prog_compiler_static_GCJ='-static'
15486 # All AIX code is PIC.
15487 if test "$host_cpu" = ia64; then
15488 # AIX 5 now supports IA64 processor
15489 lt_prog_compiler_static_GCJ='-Bstatic'
15494 # FIXME: we need at least 68020 code to build shared libraries, but
15495 # adding the `-m68020' flag to GCC prevents building anything better,
15497 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15500 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15501 # PIC is the default for these OSes.
15504 mingw* | pw32* | os2*)
15505 # This hack is so that the source file can tell whether it is being
15506 # built for inclusion in a dll (and should export symbols for example).
15507 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15510 darwin* | rhapsody*)
15511 # PIC is the default on this platform
15512 # Common symbols not allowed in MH_DYLIB files
15513 lt_prog_compiler_pic_GCJ='-fno-common'
15517 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15518 # Instead, we relocate shared libraries at runtime.
15522 # Just because we use GCC doesn't mean we suddenly get shared libraries
15523 # on systems that don't support them.
15524 lt_prog_compiler_can_build_shared_GCJ=no
15529 if test -d /usr/nec; then
15530 lt_prog_compiler_pic_GCJ=-Kconform_pic
15535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15536 # not for PA HP-UX.
15542 lt_prog_compiler_pic_GCJ='-fPIC'
15548 lt_prog_compiler_pic_GCJ='-fPIC'
15552 # PORTME Check for flag to pass linker flags through the system compiler.
15555 lt_prog_compiler_wl_GCJ='-Wl,'
15556 if test "$host_cpu" = ia64; then
15557 # AIX 5 now supports IA64 processor
15558 lt_prog_compiler_static_GCJ='-Bstatic'
15560 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15564 # PIC is the default on this platform
15565 # Common symbols not allowed in MH_DYLIB files
15566 case $cc_basename in
15568 lt_prog_compiler_pic_GCJ='-qnocommon'
15569 lt_prog_compiler_wl_GCJ='-Wl,'
15574 mingw* | pw32* | os2*)
15575 # This hack is so that the source file can tell whether it is being
15576 # built for inclusion in a dll (and should export symbols for example).
15577 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15580 hpux9* | hpux10* | hpux11*)
15581 lt_prog_compiler_wl_GCJ='-Wl,'
15582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15583 # not for PA HP-UX.
15589 lt_prog_compiler_pic_GCJ='+Z'
15592 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15593 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15596 irix5* | irix6* | nonstopux*)
15597 lt_prog_compiler_wl_GCJ='-Wl,'
15598 # PIC (with -KPIC) is the default.
15599 lt_prog_compiler_static_GCJ='-non_shared'
15603 lt_prog_compiler_pic_GCJ='-KPIC'
15604 lt_prog_compiler_static_GCJ='-Bstatic'
15607 linux* | k*bsd*-gnu)
15608 case $cc_basename in
15610 lt_prog_compiler_wl_GCJ='-Wl,'
15611 lt_prog_compiler_pic_GCJ='-KPIC'
15612 lt_prog_compiler_static_GCJ='-static'
15614 pgcc* | pgf77* | pgf90* | pgf95*)
15615 # Portland Group compilers (*not* the Pentium gcc compiler,
15616 # which looks to be a dead project)
15617 lt_prog_compiler_wl_GCJ='-Wl,'
15618 lt_prog_compiler_pic_GCJ='-fpic'
15619 lt_prog_compiler_static_GCJ='-Bstatic'
15622 lt_prog_compiler_wl_GCJ='-Wl,'
15623 # All Alpha code is PIC.
15624 lt_prog_compiler_static_GCJ='-non_shared'
15629 osf3* | osf4* | osf5*)
15630 lt_prog_compiler_wl_GCJ='-Wl,'
15631 # All OSF/1 code is PIC.
15632 lt_prog_compiler_static_GCJ='-non_shared'
15636 lt_prog_compiler_pic_GCJ='-KPIC'
15637 lt_prog_compiler_static_GCJ='-Bstatic'
15638 case $cc_basename in
15639 f77* | f90* | f95*)
15640 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15642 lt_prog_compiler_wl_GCJ='-Wl,';;
15647 lt_prog_compiler_wl_GCJ='-Qoption ld '
15648 lt_prog_compiler_pic_GCJ='-PIC'
15649 lt_prog_compiler_static_GCJ='-Bstatic'
15652 sysv4 | sysv4.2uw2* | sysv4.3*)
15653 lt_prog_compiler_wl_GCJ='-Wl,'
15654 lt_prog_compiler_pic_GCJ='-KPIC'
15655 lt_prog_compiler_static_GCJ='-Bstatic'
15659 if test -d /usr/nec ;then
15660 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15661 lt_prog_compiler_static_GCJ='-Bstatic'
15665 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15666 lt_prog_compiler_wl_GCJ='-Wl,'
15667 lt_prog_compiler_pic_GCJ='-KPIC'
15668 lt_prog_compiler_static_GCJ='-Bstatic'
15672 lt_prog_compiler_wl_GCJ='-Wl,'
15673 lt_prog_compiler_can_build_shared_GCJ=no
15677 lt_prog_compiler_pic_GCJ='-pic'
15678 lt_prog_compiler_static_GCJ='-Bstatic'
15682 lt_prog_compiler_can_build_shared_GCJ=no
15687 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15688 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15691 # Check to make sure the PIC flag actually works.
15693 if test -n "$lt_prog_compiler_pic_GCJ"; then
15695 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15696 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15697 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 lt_prog_compiler_pic_works_GCJ=no
15701 ac_outfile=conftest.$ac_objext
15702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15703 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15704 # Insert the option either (1) after the last *FLAGS variable, or
15705 # (2) before a word containing "conftest.", or (3) at the end.
15706 # Note that $ac_compile itself does not contain backslashes and begins
15707 # with a dollar sign (not a hyphen), so the echo should work correctly.
15708 # The option is referenced via a variable to avoid confusing sed.
15709 lt_compile=`echo "$ac_compile" | $SED \
15710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15712 -e 's:$: $lt_compiler_flag:'`
15713 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15714 (eval "$lt_compile" 2>conftest.err)
15716 cat conftest.err >&5
15717 echo "$as_me:__oline__: \$? = $ac_status" >&5
15718 if (exit $ac_status) && test -s "$ac_outfile"; then
15719 # The compiler can only warn and ignore the option if not recognized
15720 # So say no if there are warnings other than the usual output.
15721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15724 lt_prog_compiler_pic_works_GCJ=yes
15730 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15731 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15733 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15734 case $lt_prog_compiler_pic_GCJ in
15736 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15739 lt_prog_compiler_pic_GCJ=
15740 lt_prog_compiler_can_build_shared_GCJ=no
15745 # For platforms which do not support PIC, -DPIC is meaningless:
15747 lt_prog_compiler_pic_GCJ=
15750 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15755 # Check to make sure the static flag actually works.
15757 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15758 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15760 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 lt_prog_compiler_static_works_GCJ=no
15764 save_LDFLAGS="$LDFLAGS"
15765 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15766 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15768 # The linker can only warn and ignore the option if not recognized
15769 # So say no if there are warnings
15770 if test -s conftest.err; then
15771 # Append any errors to the config.log.
15772 cat conftest.err 1>&5
15773 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15775 if diff conftest.exp conftest.er2 >/dev/null; then
15776 lt_prog_compiler_static_works_GCJ=yes
15779 lt_prog_compiler_static_works_GCJ=yes
15783 LDFLAGS="$save_LDFLAGS"
15786 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15787 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15789 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15792 lt_prog_compiler_static_GCJ=
15796 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15797 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15798 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 lt_cv_prog_compiler_c_o_GCJ=no
15802 $rm -r conftest 2>/dev/null
15806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15808 lt_compiler_flag="-o out/conftest2.$ac_objext"
15809 # Insert the option either (1) after the last *FLAGS variable, or
15810 # (2) before a word containing "conftest.", or (3) at the end.
15811 # Note that $ac_compile itself does not contain backslashes and begins
15812 # with a dollar sign (not a hyphen), so the echo should work correctly.
15813 lt_compile=`echo "$ac_compile" | $SED \
15814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15816 -e 's:$: $lt_compiler_flag:'`
15817 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15818 (eval "$lt_compile" 2>out/conftest.err)
15820 cat out/conftest.err >&5
15821 echo "$as_me:__oline__: \$? = $ac_status" >&5
15822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15824 # The compiler can only warn and ignore the option if not recognized
15825 # So say no if there are warnings
15826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15829 lt_cv_prog_compiler_c_o_GCJ=yes
15834 # SGI C++ compiler will create directory out/ii_files/ for
15835 # template instantiation
15836 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15837 $rm out/* && rmdir out
15843 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15844 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15847 hard_links="nottested"
15848 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15849 # do not overwrite the value of need_locks provided by the user
15850 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15851 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15856 ln conftest.a conftest.b 2>&5 || hard_links=no
15857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15858 echo "$as_me:$LINENO: result: $hard_links" >&5
15859 echo "${ECHO_T}$hard_links" >&6
15860 if test "$hard_links" = no; then
15861 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15862 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15869 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15873 allow_undefined_flag_GCJ=
15874 enable_shared_with_static_runtimes_GCJ=no
15876 archive_expsym_cmds_GCJ=
15877 old_archive_From_new_cmds_GCJ=
15878 old_archive_from_expsyms_cmds_GCJ=
15879 export_dynamic_flag_spec_GCJ=
15880 whole_archive_flag_spec_GCJ=
15881 thread_safe_flag_spec_GCJ=
15882 hardcode_libdir_flag_spec_GCJ=
15883 hardcode_libdir_flag_spec_ld_GCJ=
15884 hardcode_libdir_separator_GCJ=
15885 hardcode_direct_GCJ=no
15886 hardcode_minus_L_GCJ=no
15887 hardcode_shlibpath_var_GCJ=unsupported
15888 link_all_deplibs_GCJ=unknown
15889 hardcode_automatic_GCJ=no
15891 module_expsym_cmds_GCJ=
15892 always_export_symbols_GCJ=no
15893 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15894 # include_expsyms should be a list of space-separated symbols to be *always*
15895 # included in the symbol list
15896 include_expsyms_GCJ=
15897 # exclude_expsyms can be an extended regexp of symbols to exclude
15898 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15899 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15900 # as well as any symbol that contains `d'.
15901 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15902 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15903 # platforms (ab)use it in PIC code, but their linkers get confused if
15904 # the symbol is explicitly referenced. Since portable code cannot
15905 # rely on this symbol name, it's probably fine to never include it in
15906 # preloaded symbol tables.
15907 extract_expsyms_cmds=
15908 # Just being paranoid about ensuring that cc_basename is set.
15909 for cc_temp in $compiler""; do
15911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15920 cygwin* | mingw* | pw32*)
15921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15922 # When not using gcc, we currently assume that we are using
15923 # Microsoft Visual C++.
15924 if test "$GCC" != yes; then
15929 # we just hope/assume this is gcc and not c89 (= MSVC++)
15938 if test "$with_gnu_ld" = yes; then
15939 # If archive_cmds runs LD, not CC, wlarc should be empty
15942 # Set some defaults for GNU ld with shared library support. These
15943 # are reset later if shared libraries are not supported. Putting them
15944 # here allows them to be overridden if necessary.
15945 runpath_var=LD_RUN_PATH
15946 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15947 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15948 # ancient GNU ld didn't support --whole-archive et. al.
15949 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15950 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15952 whole_archive_flag_spec_GCJ=
15954 supports_anon_versioning=no
15955 case `$LD -v 2>/dev/null` in
15956 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15957 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15958 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15959 *\ 2.11.*) ;; # other 2.11 versions
15960 *) supports_anon_versioning=yes ;;
15963 # See if GNU ld supports shared libraries.
15965 aix3* | aix4* | aix5*)
15966 # On AIX/PPC, the GNU linker is very broken
15967 if test "$host_cpu" != ia64; then
15971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15972 *** to be unable to reliably create shared libraries on AIX.
15973 *** Therefore, libtool is disabling shared libraries support. If you
15974 *** really care for shared libraries, you may want to modify your PATH
15975 *** so that a non-GNU linker is found, and then restart.
15982 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)'
15983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15984 hardcode_minus_L_GCJ=yes
15986 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15987 # that the semantics of dynamic libraries on AmigaOS, at least up
15988 # to version 4, is to share data among multiple programs linked
15989 # with the same dynamic library. Since this doesn't match the
15990 # behavior of shared libraries on other platforms, we can't use
15996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15997 allow_undefined_flag_GCJ=unsupported
15998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15999 # support --undefined. This deserves some investigation. FIXME
16000 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16006 cygwin* | mingw* | pw32*)
16007 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16008 # as there is no search path for DLLs.
16009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16010 allow_undefined_flag_GCJ=unsupported
16011 always_export_symbols_GCJ=no
16012 enable_shared_with_static_runtimes_GCJ=yes
16013 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16015 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16016 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16017 # If the export-symbols file already is a .def file (1st line
16018 # is EXPORTS), use it as is; otherwise, prepend...
16019 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16020 cp $export_symbols $output_objdir/$soname.def;
16022 echo EXPORTS > $output_objdir/$soname.def;
16023 cat $export_symbols >> $output_objdir/$soname.def;
16025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16032 hardcode_direct_GCJ=no
16033 hardcode_shlibpath_var_GCJ=no
16034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16035 export_dynamic_flag_spec_GCJ='${wl}-E'
16036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16037 # Instead, shared libraries are loaded at an image base (0x10000000 by
16038 # default) and relocated if they conflict, which is a slow very memory
16039 # consuming and fragmenting process. To avoid this, we pick a random,
16040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16041 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16042 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16043 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16046 linux* | k*bsd*-gnu)
16047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16049 case $cc_basename,$host_cpu in
16050 pgcc*) # Portland Group C compiler
16051 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16052 tmp_addflag=' $pic_flag'
16054 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16055 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16056 tmp_addflag=' $pic_flag -Mnomain' ;;
16057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16058 tmp_addflag=' -i_dynamic' ;;
16059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16060 tmp_addflag=' -i_dynamic -nofor_main' ;;
16061 ifc* | ifort*) # Intel Fortran compiler
16062 tmp_addflag=' -nofor_main' ;;
16064 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066 if test $supports_anon_versioning = yes; then
16067 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16069 $echo "local: *; };" >> $output_objdir/$libname.ver~
16070 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16072 link_all_deplibs_GCJ=no
16078 netbsd* | netbsdelf*-gnu)
16079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16080 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16083 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16084 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16089 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16093 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16094 *** create shared libraries on Solaris systems. Therefore, libtool
16095 *** is disabling shared libraries support. We urge you to upgrade GNU
16096 *** binutils to release 2.9.1 or newer. Another option is to modify
16097 *** your PATH or compiler configuration so that the native linker is
16098 *** used, and then restart.
16101 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16102 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16103 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16110 case `$LD -v 2>&1` in
16111 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16115 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16116 *** reliably create shared libraries on SCO systems. Therefore, libtool
16117 *** is disabling shared libraries support. We urge you to upgrade GNU
16118 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16119 *** your PATH or compiler configuration so that the native linker is
16120 *** used, and then restart.
16125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16126 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16128 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16137 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16139 hardcode_direct_GCJ=yes
16140 hardcode_shlibpath_var_GCJ=no
16144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16145 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16146 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16153 if test "$ld_shlibs_GCJ" = no; then
16155 hardcode_libdir_flag_spec_GCJ=
16156 export_dynamic_flag_spec_GCJ=
16157 whole_archive_flag_spec_GCJ=
16160 # PORTME fill in a description of your system's linker (not GNU ld)
16163 allow_undefined_flag_GCJ=unsupported
16164 always_export_symbols_GCJ=yes
16165 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'
16166 # Note: this linker hardcodes the directories in LIBPATH if there
16167 # are no directories specified by -L.
16168 hardcode_minus_L_GCJ=yes
16169 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16170 # Neither direct hardcoding nor static linking is supported with a
16172 hardcode_direct_GCJ=unsupported
16177 if test "$host_cpu" = ia64; then
16178 # On IA64, the linker does run time linking by default, so we don't
16179 # have to do anything special.
16180 aix_use_runtimelinking=no
16181 exp_sym_flag='-Bexport'
16184 # If we're using GNU nm, then we don't want the "-C" option.
16185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16186 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16187 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'
16189 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'
16191 aix_use_runtimelinking=no
16193 # Test if we are trying to use run time linking or normal
16194 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16195 # need to do runtime linking.
16196 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16197 for ld_flag in $LDFLAGS; do
16198 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16199 aix_use_runtimelinking=yes
16206 exp_sym_flag='-bexport'
16207 no_entry_flag='-bnoentry'
16210 # When large executables or shared objects are built, AIX ld can
16211 # have problems creating the table of contents. If linking a library
16212 # or program results in "error TOC overflow" add -mminimal-toc to
16213 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16214 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16216 archive_cmds_GCJ=''
16217 hardcode_direct_GCJ=yes
16218 hardcode_libdir_separator_GCJ=':'
16219 link_all_deplibs_GCJ=yes
16221 if test "$GCC" = yes; then
16222 case $host_os in aix4.[012]|aix4.[012].*)
16223 # We only want to do this on AIX 4.2 and lower, the check
16224 # below for broken collect2 doesn't work under 4.3+
16225 collect2name=`${CC} -print-prog-name=collect2`
16226 if test -f "$collect2name" && \
16227 strings "$collect2name" | grep resolve_lib_name >/dev/null
16229 # We have reworked collect2
16230 hardcode_direct_GCJ=yes
16232 # We have old collect2
16233 hardcode_direct_GCJ=unsupported
16234 # It fails to find uninstalled libraries when the uninstalled
16235 # path is not listed in the libpath. Setting hardcode_minus_L
16236 # to unsupported forces relinking
16237 hardcode_minus_L_GCJ=yes
16238 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16239 hardcode_libdir_separator_GCJ=
16243 shared_flag='-shared'
16244 if test "$aix_use_runtimelinking" = yes; then
16245 shared_flag="$shared_flag "'${wl}-G'
16249 if test "$host_cpu" = ia64; then
16250 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16251 # chokes on -Wl,-G. The following line is correct:
16254 if test "$aix_use_runtimelinking" = yes; then
16255 shared_flag='${wl}-G'
16257 shared_flag='${wl}-bM:SRE'
16262 # It seems that -bexpall does not export symbols beginning with
16263 # underscore (_), so it is better to generate a list of symbols to export.
16264 always_export_symbols_GCJ=yes
16265 if test "$aix_use_runtimelinking" = yes; then
16266 # Warning - without using the other runtime loading flags (-brtl),
16267 # -berok will link without error, but may produce a broken library.
16268 allow_undefined_flag_GCJ='-berok'
16269 # Determine the default libpath from the value encoded in an empty executable.
16270 cat >conftest.$ac_ext <<_ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16285 rm -f conftest.$ac_objext conftest$ac_exeext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>conftest.er1
16289 grep -v '^ *+' conftest.er1 >conftest.err
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; } &&
16300 { ac_try='test -s conftest$ac_exeext'
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16309 # Check for a 64-bit object if we didn't find anything.
16310 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; }
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16317 rm -f conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
16319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16321 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16322 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16324 if test "$host_cpu" = ia64; then
16325 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16326 allow_undefined_flag_GCJ="-z nodefs"
16327 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16329 # Determine the default libpath from the value encoded in an empty executable.
16330 cat >conftest.$ac_ext <<_ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>conftest.er1
16349 grep -v '^ *+' conftest.er1 >conftest.err
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest$ac_exeext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16369 # Check for a 64-bit object if we didn't find anything.
16370 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; }
16373 echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16377 rm -f conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16381 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16382 # Warning - without using the other run time loading flags,
16383 # -berok will link without error, but may produce a broken library.
16384 no_undefined_flag_GCJ=' ${wl}-bernotok'
16385 allow_undefined_flag_GCJ=' ${wl}-berok'
16386 # Exported symbols can be pulled into shared objects from archives
16387 whole_archive_flag_spec_GCJ='$convenience'
16388 archive_cmds_need_lc_GCJ=yes
16389 # This is similar to how AIX traditionally builds its shared libraries.
16390 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16396 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)'
16397 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16398 hardcode_minus_L_GCJ=yes
16399 # see comment about different semantics on the GNU ld section
16404 export_dynamic_flag_spec_GCJ=-rdynamic
16407 cygwin* | mingw* | pw32*)
16408 # When not using gcc, we currently assume that we are using
16409 # Microsoft Visual C++.
16410 # hardcode_libdir_flag_spec is actually meaningless, as there is
16411 # no search path for DLLs.
16412 hardcode_libdir_flag_spec_GCJ=' '
16413 allow_undefined_flag_GCJ=unsupported
16414 # Tell ltmain to make .lib files, not .a files.
16416 # Tell ltmain to make .dll files, not .so files.
16418 # FIXME: Setting linknames here is a bad hack.
16419 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16420 # The linker will automatically build a .lib file if we build a DLL.
16421 old_archive_From_new_cmds_GCJ='true'
16422 # FIXME: Should let the user specify the lib program.
16423 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16424 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16425 enable_shared_with_static_runtimes_GCJ=yes
16428 darwin* | rhapsody*)
16430 rhapsody* | darwin1.[012])
16431 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16434 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16435 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16437 case ${MACOSX_DEPLOYMENT_TARGET} in
16439 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16442 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16448 archive_cmds_need_lc_GCJ=no
16449 hardcode_direct_GCJ=no
16450 hardcode_automatic_GCJ=yes
16451 hardcode_shlibpath_var_GCJ=unsupported
16452 whole_archive_flag_spec_GCJ=''
16453 link_all_deplibs_GCJ=yes
16454 if test "$GCC" = yes ; then
16455 output_verbose_link_cmd='echo'
16456 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16457 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16458 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16459 archive_expsym_cmds_GCJ='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}'
16460 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}'
16462 case $cc_basename in
16464 output_verbose_link_cmd='echo'
16465 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16466 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16467 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16468 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16469 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}'
16479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16481 hardcode_shlibpath_var_GCJ=no
16488 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16489 # support. Future versions do this automatically, but an explicit c++rt0.o
16490 # does not break anything, and helps significantly (at the cost of a little
16493 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16494 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16495 hardcode_direct_GCJ=yes
16496 hardcode_shlibpath_var_GCJ=no
16499 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16501 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16502 hardcode_direct_GCJ=yes
16503 hardcode_minus_L_GCJ=yes
16504 hardcode_shlibpath_var_GCJ=no
16507 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16508 freebsd* | dragonfly*)
16509 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16510 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16511 hardcode_direct_GCJ=yes
16512 hardcode_shlibpath_var_GCJ=no
16516 if test "$GCC" = yes; then
16517 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'
16519 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'
16521 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16522 hardcode_libdir_separator_GCJ=:
16523 hardcode_direct_GCJ=yes
16525 # hardcode_minus_L: Not really in the search PATH,
16526 # but as the default location of the library.
16527 hardcode_minus_L_GCJ=yes
16528 export_dynamic_flag_spec_GCJ='${wl}-E'
16532 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16533 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16535 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16537 if test "$with_gnu_ld" = no; then
16538 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16539 hardcode_libdir_separator_GCJ=:
16541 hardcode_direct_GCJ=yes
16542 export_dynamic_flag_spec_GCJ='${wl}-E'
16544 # hardcode_minus_L: Not really in the search PATH,
16545 # but as the default location of the library.
16546 hardcode_minus_L_GCJ=yes
16551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16554 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16560 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16572 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16576 if test "$with_gnu_ld" = no; then
16577 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16578 hardcode_libdir_separator_GCJ=:
16582 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16583 hardcode_direct_GCJ=no
16584 hardcode_shlibpath_var_GCJ=no
16587 hardcode_direct_GCJ=yes
16588 export_dynamic_flag_spec_GCJ='${wl}-E'
16590 # hardcode_minus_L: Not really in the search PATH,
16591 # but as the default location of the library.
16592 hardcode_minus_L_GCJ=yes
16598 irix5* | irix6* | nonstopux*)
16599 if test "$GCC" = yes; then
16600 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'
16602 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'
16603 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16605 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16606 hardcode_libdir_separator_GCJ=:
16607 link_all_deplibs_GCJ=yes
16610 netbsd* | netbsdelf*-gnu)
16611 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16612 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16614 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16616 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16617 hardcode_direct_GCJ=yes
16618 hardcode_shlibpath_var_GCJ=no
16622 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16623 hardcode_direct_GCJ=yes
16624 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16625 hardcode_libdir_separator_GCJ=:
16626 hardcode_shlibpath_var_GCJ=no
16630 hardcode_direct_GCJ=yes
16631 hardcode_shlibpath_var_GCJ=no
16632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16633 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16634 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16636 export_dynamic_flag_spec_GCJ='${wl}-E'
16639 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16640 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16644 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16652 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16653 hardcode_minus_L_GCJ=yes
16654 allow_undefined_flag_GCJ=unsupported
16655 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'
16656 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16660 if test "$GCC" = yes; then
16661 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16662 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'
16664 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16665 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'
16667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16668 hardcode_libdir_separator_GCJ=:
16671 osf4* | osf5*) # as osf3* with the addition of -msym flag
16672 if test "$GCC" = yes; then
16673 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16674 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'
16675 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16677 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16678 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'
16679 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~
16680 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16682 # Both c and cxx compiler support -rpath directly
16683 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16685 hardcode_libdir_separator_GCJ=:
16689 no_undefined_flag_GCJ=' -z text'
16690 if test "$GCC" = yes; then
16692 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16693 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16694 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16697 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16701 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16702 hardcode_shlibpath_var_GCJ=no
16704 solaris2.[0-5] | solaris2.[0-5].*) ;;
16706 # The compiler driver will combine linker options so we
16707 # cannot just pass the convience library names through
16708 # without $wl, iff we do not link with $LD.
16709 # Luckily, gcc supports the same syntax we need for Sun Studio.
16710 # Supported since Solaris 2.6 (maybe 2.5.1?)
16713 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16715 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16718 link_all_deplibs_GCJ=yes
16722 if test "x$host_vendor" = xsequent; then
16723 # Use $CC to link under sequent, because it throws in some extra .o
16724 # files that make .init and .fini sections work.
16725 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16727 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16729 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16730 hardcode_direct_GCJ=yes
16731 hardcode_minus_L_GCJ=yes
16732 hardcode_shlibpath_var_GCJ=no
16736 case $host_vendor in
16738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739 hardcode_direct_GCJ=yes # is this really true???
16742 ## LD is ld it makes a PLAMLIB
16743 ## CC just makes a GrossModule.
16744 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16745 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16746 hardcode_direct_GCJ=no
16749 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16750 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16753 runpath_var='LD_RUN_PATH'
16754 hardcode_shlibpath_var_GCJ=no
16758 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16759 hardcode_shlibpath_var_GCJ=no
16760 export_dynamic_flag_spec_GCJ='-Bexport'
16764 if test -d /usr/nec; then
16765 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16766 hardcode_shlibpath_var_GCJ=no
16767 runpath_var=LD_RUN_PATH
16768 hardcode_runpath_var=yes
16773 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16774 no_undefined_flag_GCJ='${wl}-z,text'
16775 archive_cmds_need_lc_GCJ=no
16776 hardcode_shlibpath_var_GCJ=no
16777 runpath_var='LD_RUN_PATH'
16779 if test "$GCC" = yes; then
16780 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16781 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16783 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16784 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16788 sysv5* | sco3.2v5* | sco5v6*)
16789 # Note: We can NOT use -z defs as we might desire, because we do not
16790 # link with -lc, and that would cause any symbols used from libc to
16791 # always be unresolved, which means just about no library would
16792 # ever link correctly. If we're not using GNU ld we use -z text
16793 # though, which does catch some bad symbols but isn't as heavy-handed
16795 no_undefined_flag_GCJ='${wl}-z,text'
16796 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16797 archive_cmds_need_lc_GCJ=no
16798 hardcode_shlibpath_var_GCJ=no
16799 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16800 hardcode_libdir_separator_GCJ=':'
16801 link_all_deplibs_GCJ=yes
16802 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16803 runpath_var='LD_RUN_PATH'
16805 if test "$GCC" = yes; then
16806 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16807 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16809 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16810 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16815 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16817 hardcode_shlibpath_var_GCJ=no
16826 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16827 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16828 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16831 # Do we need to explicitly link libc?
16833 case "x$archive_cmds_need_lc_GCJ" in
16835 # Assume -lc should be added
16836 archive_cmds_need_lc_GCJ=yes
16838 if test "$enable_shared" = yes && test "$GCC" = yes; then
16839 case $archive_cmds_GCJ in
16841 # FIXME: we may have to deal with multi-command sequences.
16844 # Test whether the compiler implicitly links with -lc since on some
16845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16846 # to ld, don't add -lc before -lgcc.
16847 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16848 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16853 (eval $ac_compile) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } 2>conftest.err; then
16859 libobjs=conftest.$ac_objext
16861 wl=$lt_prog_compiler_wl_GCJ
16862 pic_flag=$lt_prog_compiler_pic_GCJ
16868 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16869 allow_undefined_flag_GCJ=
16870 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16871 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }
16876 archive_cmds_need_lc_GCJ=no
16878 archive_cmds_need_lc_GCJ=yes
16880 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16882 cat conftest.err 1>&5
16885 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16886 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16893 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16894 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16895 library_names_spec=
16896 libname_spec='lib$name'
16900 postuninstall_cmds=
16904 shlibpath_overrides_runpath=unknown
16906 dynamic_linker="$host_os ld.so"
16907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16908 if test "$GCC" = yes; then
16909 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16910 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16911 # if the path contains ";" then we assume it to be the separator
16912 # otherwise default to the standard path separator (i.e. ":") - it is
16913 # assumed that no part of a normal pathname contains ";" but that should
16914 # okay in the real world where ";" in dirpaths is itself problematic.
16915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16920 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16922 need_lib_prefix=unknown
16923 hardcode_into_libs=no
16925 # when you set need_version to no, make sure it does not cause -set_version
16926 # flags to be left without arguments
16927 need_version=unknown
16932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16933 shlibpath_var=LIBPATH
16935 # AIX 3 has no versioning support, so we append a major version to the name.
16936 soname_spec='${libname}${release}${shared_ext}$major'
16943 hardcode_into_libs=yes
16944 if test "$host_cpu" = ia64; then
16945 # AIX 5 supports IA64
16946 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16947 shlibpath_var=LD_LIBRARY_PATH
16949 # With GCC up to 2.95.x, collect2 would create an import file
16950 # for dependence libraries. The import file would start with
16951 # the line `#! .'. This would cause the generated library to
16952 # depend on `.', always an invalid library. This was fixed in
16953 # development snapshots of GCC prior to 3.0.
16955 aix4 | aix4.[01] | aix4.[01].*)
16956 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16958 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16961 can_build_shared=no
16965 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16966 # soname into executable. Probably we can add versioning support to
16967 # collect2, so additional links can be useful in future.
16968 if test "$aix_use_runtimelinking" = yes; then
16969 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16970 # instead of lib<name>.a to let people know that these are not
16971 # typical AIX shared libraries.
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974 # We preserve .a as extension for shared libraries through AIX4.2
16975 # and later when we are not doing run time linking.
16976 library_names_spec='${libname}${release}.a $libname.a'
16977 soname_spec='${libname}${release}${shared_ext}$major'
16979 shlibpath_var=LIBPATH
16984 library_names_spec='$libname.ixlibrary $libname.a'
16985 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16986 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'
16990 library_names_spec='${libname}${shared_ext}'
16991 dynamic_linker="$host_os ld.so"
16992 shlibpath_var=LIBRARY_PATH
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17001 shlibpath_var=LD_LIBRARY_PATH
17002 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17003 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17004 # the default ld.so.conf also contains /usr/contrib/lib and
17005 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17006 # libtool to hard-code these into programs
17009 cygwin* | mingw* | pw32*)
17010 version_type=windows
17015 case $GCC,$host_os in
17016 yes,cygwin* | yes,mingw* | yes,pw32*)
17017 library_names_spec='$libname.dll.a'
17018 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17019 postinstall_cmds='base_file=`basename \${file}`~
17020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17021 dldir=$destdir/`dirname \$dlpath`~
17022 test -d \$dldir || mkdir -p \$dldir~
17023 $install_prog $dir/$dlname \$dldir/$dlname~
17024 chmod a+x \$dldir/$dlname'
17025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17026 dlpath=$dir/\$dldll~
17028 shlibpath_overrides_runpath=yes
17032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17034 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17037 # MinGW DLLs use traditional 'lib' prefix
17038 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17039 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17040 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17041 # It is most probably a Windows format PATH printed by
17042 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17043 # path with ; separators, and with drive letters. We can handle the
17044 # drive letters (cygwin fileutils understands them), so leave them,
17045 # especially as we might pass files found there to a mingw objdump,
17046 # which wouldn't understand a cygwinified path. Ahh.
17047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17053 # pw32 DLLs use 'pw' prefix rather than 'lib'
17054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17060 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17063 dynamic_linker='Win32 ld.exe'
17064 # FIXME: first we should search . and the directory the executable is in
17068 darwin* | rhapsody*)
17069 dynamic_linker="$host_os dyld"
17070 version_type=darwin
17073 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17074 soname_spec='${libname}${release}${major}$shared_ext'
17075 shlibpath_overrides_runpath=yes
17076 shlibpath_var=DYLD_LIBRARY_PATH
17077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17078 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17079 if test "$GCC" = yes; then
17080 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"`
17082 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 shlibpath_var=LD_LIBRARY_PATH
17100 freebsd* | dragonfly*)
17101 # DragonFly does not have aout. When/if they implement a new
17102 # versioning mechanism, adjust this.
17103 if test -x /usr/bin/objformat; then
17104 objformat=`/usr/bin/objformat`
17107 freebsd[123]*) objformat=aout ;;
17108 *) objformat=elf ;;
17111 version_type=freebsd-$objformat
17112 case $version_type in
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17123 shlibpath_var=LD_LIBRARY_PATH
17126 shlibpath_overrides_runpath=yes
17128 freebsd3.[01]* | freebsdelf3.[01]*)
17129 shlibpath_overrides_runpath=yes
17130 hardcode_into_libs=yes
17132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17134 shlibpath_overrides_runpath=no
17135 hardcode_into_libs=yes
17137 freebsd*) # from 4.6 on
17138 shlibpath_overrides_runpath=yes
17139 hardcode_into_libs=yes
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 hardcode_into_libs=yes
17154 hpux9* | hpux10* | hpux11*)
17155 # Give a soname corresponding to the major version so that dld.sl refuses to
17156 # link against other versions.
17163 hardcode_into_libs=yes
17164 dynamic_linker="$host_os dld.so"
17165 shlibpath_var=LD_LIBRARY_PATH
17166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168 soname_spec='${libname}${release}${shared_ext}$major'
17169 if test "X$HPUX_IA64_MODE" = X32; then
17170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17178 hardcode_into_libs=yes
17179 dynamic_linker="$host_os dld.sl"
17180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 soname_spec='${libname}${release}${shared_ext}$major'
17184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17189 dynamic_linker="$host_os dld.sl"
17190 shlibpath_var=SHLIB_PATH
17191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193 soname_spec='${libname}${release}${shared_ext}$major'
17196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17197 postinstall_cmds='chmod 555 $lib'
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17205 soname_spec='${libname}${release}${shared_ext}$major'
17206 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 shlibpath_overrides_runpath=no
17209 hardcode_into_libs=yes
17212 irix5* | irix6* | nonstopux*)
17214 nonstopux*) version_type=nonstopux ;;
17216 if test "$lt_cv_prog_gnu_ld" = yes; then
17224 soname_spec='${libname}${release}${shared_ext}$major'
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17227 irix5* | nonstopux*)
17228 libsuff= shlibsuff=
17231 case $LD in # libtool.m4 will add one of these switches to LD
17232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17233 libsuff= shlibsuff= libmagic=32-bit;;
17234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17235 libsuff=32 shlibsuff=N32 libmagic=N32;;
17236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17238 *) libsuff= shlibsuff= libmagic=never-match;;
17242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17243 shlibpath_overrides_runpath=no
17244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17246 hardcode_into_libs=yes
17249 # No shared lib support for Linux oldld, aout, or coff.
17250 linux*oldld* | linux*aout* | linux*coff*)
17254 # This must be Linux ELF.
17255 linux* | k*bsd*-gnu)
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=no
17264 # This implies no fast_install, which is unacceptable.
17265 # Some rework will be needed to allow for fast_install
17266 # before this can be enabled.
17267 hardcode_into_libs=yes
17269 # Append ld.so.conf contents to the search path
17270 if test -f /etc/ld.so.conf; then
17271 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17275 # We used to test for /lib/ld.so.1 and disable shared libraries on
17276 # powerpc, because MkLinux only supported shared libraries with the
17277 # GNU dynamic linker. Since this was broken with cross compilers,
17278 # most powerpc-linux boxes support dynamic linking these days and
17279 # people can always --disable-shared, the test was removed, and we
17280 # assume the GNU/Linux dynamic linker is in use.
17281 dynamic_linker='GNU/Linux ld.so'
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=no
17292 hardcode_into_libs=yes
17293 dynamic_linker='NetBSD ld.elf_so'
17300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17303 dynamic_linker='NetBSD (a.out) ld.so'
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17306 soname_spec='${libname}${release}${shared_ext}$major'
17307 dynamic_linker='NetBSD ld.elf_so'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=yes
17311 hardcode_into_libs=yes
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes
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 shlibpath_overrides_runpath=yes
17333 sys_lib_dlsearch_path_spec="/usr/lib"
17335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17338 *) need_version=no ;;
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17345 openbsd2.[89] | openbsd2.[89].*)
17346 shlibpath_overrides_runpath=no
17349 shlibpath_overrides_runpath=yes
17353 shlibpath_overrides_runpath=yes
17358 libname_spec='$name'
17361 library_names_spec='$libname${shared_ext} $libname.a'
17362 dynamic_linker='OS/2 ld.exe'
17363 shlibpath_var=LIBPATH
17366 osf3* | osf4* | osf5*)
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17382 soname_spec='${libname}${release}${shared_ext}$major'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 shlibpath_overrides_runpath=yes
17385 hardcode_into_libs=yes
17386 # ldd complains unless libraries are executable
17387 postinstall_cmds='chmod +x $lib'
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17394 shlibpath_var=LD_LIBRARY_PATH
17395 shlibpath_overrides_runpath=yes
17396 if test "$with_gnu_ld" = yes; then
17404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405 soname_spec='${libname}${release}${shared_ext}$major'
17406 shlibpath_var=LD_LIBRARY_PATH
17407 case $host_vendor in
17409 shlibpath_overrides_runpath=no
17411 export_dynamic_flag_spec='${wl}-Blargedynsym'
17412 runpath_var=LD_RUN_PATH
17420 shlibpath_overrides_runpath=no
17421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17427 if test -d /usr/nec ;then
17429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17430 soname_spec='$libname${shared_ext}.$major'
17431 shlibpath_var=LD_LIBRARY_PATH
17435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17436 version_type=freebsd-elf
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 shlibpath_var=LD_LIBRARY_PATH
17442 hardcode_into_libs=yes
17443 if test "$with_gnu_ld" = yes; then
17444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17445 shlibpath_overrides_runpath=no
17447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17448 shlibpath_overrides_runpath=yes
17451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17455 sys_lib_dlsearch_path_spec='/usr/lib'
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 shlibpath_var=LD_LIBRARY_PATH
17469 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17470 echo "${ECHO_T}$dynamic_linker" >&6
17471 test "$dynamic_linker" = no && can_build_shared=no
17473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17474 if test "$GCC" = yes; then
17475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17478 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17479 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17480 hardcode_action_GCJ=
17481 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17482 test -n "$runpath_var_GCJ" || \
17483 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17485 # We can hardcode non-existant directories.
17486 if test "$hardcode_direct_GCJ" != no &&
17487 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17488 # have to relink, otherwise we might link with an installed library
17489 # when we should be linking with a yet-to-be-installed one
17490 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17491 test "$hardcode_minus_L_GCJ" != no; then
17492 # Linking always hardcodes the temporary library directory.
17493 hardcode_action_GCJ=relink
17495 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17496 hardcode_action_GCJ=immediate
17499 # We cannot hardcode anything, or else we can only hardcode existing
17501 hardcode_action_GCJ=unsupported
17503 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17504 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17506 if test "$hardcode_action_GCJ" = relink; then
17507 # Fast installation is not supported
17508 enable_fast_install=no
17509 elif test "$shlibpath_overrides_runpath" = yes ||
17510 test "$enable_shared" = no; then
17511 # Fast installation is not necessary
17512 enable_fast_install=needless
17516 # The else clause should only fire when bootstrapping the
17517 # libtool distribution, otherwise you forgot to ship ltmain.sh
17518 # with your package, and you will get complaints that there are
17519 # no rules to generate ltmain.sh.
17520 if test -f "$ltmain"; then
17521 # See if we are running on zsh, and set the options which allow our commands through
17522 # without removal of \ escapes.
17523 if test -n "${ZSH_VERSION+set}" ; then
17524 setopt NO_GLOB_SUBST
17526 # Now quote all the things that may contain metacharacters while being
17527 # careful not to overquote the AC_SUBSTed values. We take copies of the
17528 # variables and quote the copies for generation of the libtool script.
17529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17533 deplibs_check_method reload_flag reload_cmds need_locks \
17534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17535 lt_cv_sys_global_symbol_to_c_name_address \
17536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17537 old_postinstall_cmds old_postuninstall_cmds \
17541 lt_prog_compiler_wl_GCJ \
17542 lt_prog_compiler_pic_GCJ \
17543 lt_prog_compiler_static_GCJ \
17544 lt_prog_compiler_no_builtin_flag_GCJ \
17545 export_dynamic_flag_spec_GCJ \
17546 thread_safe_flag_spec_GCJ \
17547 whole_archive_flag_spec_GCJ \
17548 enable_shared_with_static_runtimes_GCJ \
17549 old_archive_cmds_GCJ \
17550 old_archive_from_new_cmds_GCJ \
17551 predep_objects_GCJ \
17552 postdep_objects_GCJ \
17555 compiler_lib_search_path_GCJ \
17557 archive_expsym_cmds_GCJ \
17558 postinstall_cmds_GCJ \
17559 postuninstall_cmds_GCJ \
17560 old_archive_from_expsyms_cmds_GCJ \
17561 allow_undefined_flag_GCJ \
17562 no_undefined_flag_GCJ \
17563 export_symbols_cmds_GCJ \
17564 hardcode_libdir_flag_spec_GCJ \
17565 hardcode_libdir_flag_spec_ld_GCJ \
17566 hardcode_libdir_separator_GCJ \
17567 hardcode_automatic_GCJ \
17569 module_expsym_cmds_GCJ \
17570 lt_cv_prog_compiler_c_o_GCJ \
17571 exclude_expsyms_GCJ \
17572 include_expsyms_GCJ; do
17575 old_archive_cmds_GCJ | \
17576 old_archive_from_new_cmds_GCJ | \
17577 archive_cmds_GCJ | \
17578 archive_expsym_cmds_GCJ | \
17579 module_cmds_GCJ | \
17580 module_expsym_cmds_GCJ | \
17581 old_archive_from_expsyms_cmds_GCJ | \
17582 export_symbols_cmds_GCJ | \
17583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17584 postinstall_cmds | postuninstall_cmds | \
17585 old_postinstall_cmds | old_postuninstall_cmds | \
17586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17587 # Double-quote double-evaled strings.
17588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17597 *'\$0 --fallback-echo"')
17598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17604 cat <<__EOF__ >> "$cfgfile"
17605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17609 # Shell to use when invoking shell scripts.
17612 # Whether or not to build shared libraries.
17613 build_libtool_libs=$enable_shared
17615 # Whether or not to build static libraries.
17616 build_old_libs=$enable_static
17618 # Whether or not to add -lc for building shared libraries.
17619 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17621 # Whether or not to disallow shared libs when runtime libs are static
17622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17624 # Whether or not to optimize for fast installation.
17625 fast_install=$enable_fast_install
17628 host_alias=$host_alias
17632 # The build system.
17633 build_alias=$build_alias
17637 # An echo program that does not interpret backslashes.
17642 AR_FLAGS=$lt_AR_FLAGS
17647 # LTCC compiler flags.
17648 LTCFLAGS=$lt_LTCFLAGS
17650 # A language-specific compiler.
17651 CC=$lt_compiler_GCJ
17653 # Is the compiler the GNU C compiler?
17659 # The linker used to build libraries.
17662 # Whether we need hard or soft links.
17665 # A BSD-compatible nm program.
17668 # A symbol stripping program
17671 # Used to examine libraries when file_magic_cmd begins "file"
17672 MAGIC_CMD=$MAGIC_CMD
17674 # Used on cygwin: DLL creation program.
17677 # Used on cygwin: object dumper.
17680 # Used on cygwin: assembler.
17683 # The name of the directory that contains temporary libtool files.
17686 # How to create reloadable object files.
17687 reload_flag=$lt_reload_flag
17688 reload_cmds=$lt_reload_cmds
17690 # How to pass a linker flag through the compiler.
17691 wl=$lt_lt_prog_compiler_wl_GCJ
17693 # Object file suffix (normally "o").
17694 objext="$ac_objext"
17696 # Old archive suffix (normally "a").
17699 # Shared library suffix (normally ".so").
17700 shrext_cmds='$shrext_cmds'
17702 # Executable file suffix (normally "").
17705 # Additional compiler flags for building library objects.
17706 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17709 # What is the maximum length of a command?
17710 max_cmd_len=$lt_cv_sys_max_cmd_len
17712 # Does compiler simultaneously support -c and -o options?
17713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17715 # Must we lock files when doing compilation?
17716 need_locks=$lt_need_locks
17718 # Do we need the lib prefix for modules?
17719 need_lib_prefix=$need_lib_prefix
17721 # Do we need a version for libraries?
17722 need_version=$need_version
17724 # Whether dlopen is supported.
17725 dlopen_support=$enable_dlopen
17727 # Whether dlopen of programs is supported.
17728 dlopen_self=$enable_dlopen_self
17730 # Whether dlopen of statically linked programs is supported.
17731 dlopen_self_static=$enable_dlopen_self_static
17733 # Compiler flag to prevent dynamic linking.
17734 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17736 # Compiler flag to turn off builtin functions.
17737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17739 # Compiler flag to allow reflexive dlopens.
17740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17742 # Compiler flag to generate shared objects directly from archives.
17743 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17745 # Compiler flag to generate thread-safe objects.
17746 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17748 # Library versioning type.
17749 version_type=$version_type
17751 # Format of library name prefix.
17752 libname_spec=$lt_libname_spec
17754 # List of archive names. First name is the real one, the rest are links.
17755 # The last name is the one that the linker finds with -lNAME.
17756 library_names_spec=$lt_library_names_spec
17758 # The coded name of the library, if different from the real name.
17759 soname_spec=$lt_soname_spec
17761 # Commands used to build and install an old-style archive.
17763 old_archive_cmds=$lt_old_archive_cmds_GCJ
17764 old_postinstall_cmds=$lt_old_postinstall_cmds
17765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17767 # Create an old-style archive from a shared archive.
17768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17770 # Create a temporary old-style archive to link instead of a shared archive.
17771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17773 # Commands used to build and install a shared archive.
17774 archive_cmds=$lt_archive_cmds_GCJ
17775 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17776 postinstall_cmds=$lt_postinstall_cmds
17777 postuninstall_cmds=$lt_postuninstall_cmds
17779 # Commands used to build a loadable module (assumed same as above if empty)
17780 module_cmds=$lt_module_cmds_GCJ
17781 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17783 # Commands to strip libraries.
17784 old_striplib=$lt_old_striplib
17785 striplib=$lt_striplib
17787 # Dependencies to place before the objects being linked to create a
17789 predep_objects=$lt_predep_objects_GCJ
17791 # Dependencies to place after the objects being linked to create a
17793 postdep_objects=$lt_postdep_objects_GCJ
17795 # Dependencies to place before the objects being linked to create a
17797 predeps=$lt_predeps_GCJ
17799 # Dependencies to place after the objects being linked to create a
17801 postdeps=$lt_postdeps_GCJ
17803 # The library search path used internally by the compiler when linking
17804 # a shared library.
17805 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17807 # Method to check whether dependent libraries are shared objects.
17808 deplibs_check_method=$lt_deplibs_check_method
17810 # Command to use when deplibs_check_method == file_magic.
17811 file_magic_cmd=$lt_file_magic_cmd
17813 # Flag that allows shared libraries with undefined symbols to be built.
17814 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17816 # Flag that forces no undefined symbols.
17817 no_undefined_flag=$lt_no_undefined_flag_GCJ
17819 # Commands used to finish a libtool library installation in a directory.
17820 finish_cmds=$lt_finish_cmds
17822 # Same as above, but a single script fragment to be evaled but not shown.
17823 finish_eval=$lt_finish_eval
17825 # Take the output of nm and produce a listing of raw symbols and C names.
17826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17828 # Transform the output of nm in a proper C declaration
17829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17831 # Transform the output of nm in a C name address pair
17832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17834 # This is the shared library runtime path variable.
17835 runpath_var=$runpath_var
17837 # This is the shared library path variable.
17838 shlibpath_var=$shlibpath_var
17840 # Is shlibpath searched before the hard-coded library search path?
17841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17843 # How to hardcode a shared library path into an executable.
17844 hardcode_action=$hardcode_action_GCJ
17846 # Whether we should hardcode library paths into libraries.
17847 hardcode_into_libs=$hardcode_into_libs
17849 # Flag to hardcode \$libdir into a binary during linking.
17850 # This must work even if \$libdir does not exist.
17851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17853 # If ld is used when linking, flag to hardcode \$libdir into
17854 # a binary during linking. This must work even if \$libdir does
17856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17858 # Whether we need a single -rpath flag with a separated argument.
17859 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17861 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17862 # resulting binary.
17863 hardcode_direct=$hardcode_direct_GCJ
17865 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17866 # resulting binary.
17867 hardcode_minus_L=$hardcode_minus_L_GCJ
17869 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17870 # the resulting binary.
17871 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17873 # Set to yes if building a shared library automatically hardcodes DIR into the library
17874 # and all subsequent libraries and executables linked against it.
17875 hardcode_automatic=$hardcode_automatic_GCJ
17877 # Variables whose values should be saved in libtool wrapper scripts and
17878 # restored at relink time.
17879 variables_saved_for_relink="$variables_saved_for_relink"
17881 # Whether libtool must link a program against all its dependency libraries.
17882 link_all_deplibs=$link_all_deplibs_GCJ
17884 # Compile-time system search path for libraries
17885 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17887 # Run-time system search path for libraries
17888 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17890 # Fix the shell variable \$srcfile for the compiler.
17891 fix_srcfile_path="$fix_srcfile_path_GCJ"
17893 # Set to yes if exported symbols are required.
17894 always_export_symbols=$always_export_symbols_GCJ
17896 # The commands to list exported symbols.
17897 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17899 # The commands to extract the exported symbol list from a shared archive.
17900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17902 # Symbols that should not be listed in the preloaded symbols.
17903 exclude_expsyms=$lt_exclude_expsyms_GCJ
17905 # Symbols that must always be exported.
17906 include_expsyms=$lt_include_expsyms_GCJ
17908 # ### END LIBTOOL TAG CONFIG: $tagname
17914 # If there is no Makefile yet, we rely on a make rule to execute
17915 # `config.status --recheck' to rerun these tests and create the
17916 # libtool script then.
17917 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17918 if test -f "$ltmain_in"; then
17919 test -f Makefile && make "$ltmain"
17925 ac_cpp='$CPP $CPPFLAGS'
17926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17941 # Source file extension for RC test sources.
17944 # Object file extension for compiled RC test sources.
17948 # Code to be used in simple compile tests
17949 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17951 # Code to be used in simple link tests
17952 lt_simple_link_test_code="$lt_simple_compile_test_code"
17954 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17956 # If no C compiler was specified, use CC.
17959 # If no C compiler flags were specified, use CFLAGS.
17960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17962 # Allow CC to be a program name with arguments.
17966 # save warnings/boilerplate of simple test code
17967 ac_outfile=conftest.$ac_objext
17968 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17970 _lt_compiler_boilerplate=`cat conftest.err`
17973 ac_outfile=conftest.$ac_objext
17974 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17976 _lt_linker_boilerplate=`cat conftest.err`
17980 # Allow CC to be a program name with arguments.
17985 for cc_temp in $compiler""; do
17987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17993 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17995 lt_cv_prog_compiler_c_o_RC=yes
17997 # The else clause should only fire when bootstrapping the
17998 # libtool distribution, otherwise you forgot to ship ltmain.sh
17999 # with your package, and you will get complaints that there are
18000 # no rules to generate ltmain.sh.
18001 if test -f "$ltmain"; then
18002 # See if we are running on zsh, and set the options which allow our commands through
18003 # without removal of \ escapes.
18004 if test -n "${ZSH_VERSION+set}" ; then
18005 setopt NO_GLOB_SUBST
18007 # Now quote all the things that may contain metacharacters while being
18008 # careful not to overquote the AC_SUBSTed values. We take copies of the
18009 # variables and quote the copies for generation of the libtool script.
18010 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18012 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18013 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18014 deplibs_check_method reload_flag reload_cmds need_locks \
18015 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18016 lt_cv_sys_global_symbol_to_c_name_address \
18017 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18018 old_postinstall_cmds old_postuninstall_cmds \
18022 lt_prog_compiler_wl_RC \
18023 lt_prog_compiler_pic_RC \
18024 lt_prog_compiler_static_RC \
18025 lt_prog_compiler_no_builtin_flag_RC \
18026 export_dynamic_flag_spec_RC \
18027 thread_safe_flag_spec_RC \
18028 whole_archive_flag_spec_RC \
18029 enable_shared_with_static_runtimes_RC \
18030 old_archive_cmds_RC \
18031 old_archive_from_new_cmds_RC \
18032 predep_objects_RC \
18033 postdep_objects_RC \
18036 compiler_lib_search_path_RC \
18038 archive_expsym_cmds_RC \
18039 postinstall_cmds_RC \
18040 postuninstall_cmds_RC \
18041 old_archive_from_expsyms_cmds_RC \
18042 allow_undefined_flag_RC \
18043 no_undefined_flag_RC \
18044 export_symbols_cmds_RC \
18045 hardcode_libdir_flag_spec_RC \
18046 hardcode_libdir_flag_spec_ld_RC \
18047 hardcode_libdir_separator_RC \
18048 hardcode_automatic_RC \
18050 module_expsym_cmds_RC \
18051 lt_cv_prog_compiler_c_o_RC \
18052 exclude_expsyms_RC \
18053 include_expsyms_RC; do
18056 old_archive_cmds_RC | \
18057 old_archive_from_new_cmds_RC | \
18058 archive_cmds_RC | \
18059 archive_expsym_cmds_RC | \
18061 module_expsym_cmds_RC | \
18062 old_archive_from_expsyms_cmds_RC | \
18063 export_symbols_cmds_RC | \
18064 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18065 postinstall_cmds | postuninstall_cmds | \
18066 old_postinstall_cmds | old_postuninstall_cmds | \
18067 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18068 # Double-quote double-evaled strings.
18069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18078 *'\$0 --fallback-echo"')
18079 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18085 cat <<__EOF__ >> "$cfgfile"
18086 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18090 # Shell to use when invoking shell scripts.
18093 # Whether or not to build shared libraries.
18094 build_libtool_libs=$enable_shared
18096 # Whether or not to build static libraries.
18097 build_old_libs=$enable_static
18099 # Whether or not to add -lc for building shared libraries.
18100 build_libtool_need_lc=$archive_cmds_need_lc_RC
18102 # Whether or not to disallow shared libs when runtime libs are static
18103 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18105 # Whether or not to optimize for fast installation.
18106 fast_install=$enable_fast_install
18109 host_alias=$host_alias
18113 # The build system.
18114 build_alias=$build_alias
18118 # An echo program that does not interpret backslashes.
18123 AR_FLAGS=$lt_AR_FLAGS
18128 # LTCC compiler flags.
18129 LTCFLAGS=$lt_LTCFLAGS
18131 # A language-specific compiler.
18134 # Is the compiler the GNU C compiler?
18140 # The linker used to build libraries.
18143 # Whether we need hard or soft links.
18146 # A BSD-compatible nm program.
18149 # A symbol stripping program
18152 # Used to examine libraries when file_magic_cmd begins "file"
18153 MAGIC_CMD=$MAGIC_CMD
18155 # Used on cygwin: DLL creation program.
18158 # Used on cygwin: object dumper.
18161 # Used on cygwin: assembler.
18164 # The name of the directory that contains temporary libtool files.
18167 # How to create reloadable object files.
18168 reload_flag=$lt_reload_flag
18169 reload_cmds=$lt_reload_cmds
18171 # How to pass a linker flag through the compiler.
18172 wl=$lt_lt_prog_compiler_wl_RC
18174 # Object file suffix (normally "o").
18175 objext="$ac_objext"
18177 # Old archive suffix (normally "a").
18180 # Shared library suffix (normally ".so").
18181 shrext_cmds='$shrext_cmds'
18183 # Executable file suffix (normally "").
18186 # Additional compiler flags for building library objects.
18187 pic_flag=$lt_lt_prog_compiler_pic_RC
18190 # What is the maximum length of a command?
18191 max_cmd_len=$lt_cv_sys_max_cmd_len
18193 # Does compiler simultaneously support -c and -o options?
18194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18196 # Must we lock files when doing compilation?
18197 need_locks=$lt_need_locks
18199 # Do we need the lib prefix for modules?
18200 need_lib_prefix=$need_lib_prefix
18202 # Do we need a version for libraries?
18203 need_version=$need_version
18205 # Whether dlopen is supported.
18206 dlopen_support=$enable_dlopen
18208 # Whether dlopen of programs is supported.
18209 dlopen_self=$enable_dlopen_self
18211 # Whether dlopen of statically linked programs is supported.
18212 dlopen_self_static=$enable_dlopen_self_static
18214 # Compiler flag to prevent dynamic linking.
18215 link_static_flag=$lt_lt_prog_compiler_static_RC
18217 # Compiler flag to turn off builtin functions.
18218 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18220 # Compiler flag to allow reflexive dlopens.
18221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18223 # Compiler flag to generate shared objects directly from archives.
18224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18226 # Compiler flag to generate thread-safe objects.
18227 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18229 # Library versioning type.
18230 version_type=$version_type
18232 # Format of library name prefix.
18233 libname_spec=$lt_libname_spec
18235 # List of archive names. First name is the real one, the rest are links.
18236 # The last name is the one that the linker finds with -lNAME.
18237 library_names_spec=$lt_library_names_spec
18239 # The coded name of the library, if different from the real name.
18240 soname_spec=$lt_soname_spec
18242 # Commands used to build and install an old-style archive.
18244 old_archive_cmds=$lt_old_archive_cmds_RC
18245 old_postinstall_cmds=$lt_old_postinstall_cmds
18246 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18248 # Create an old-style archive from a shared archive.
18249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18251 # Create a temporary old-style archive to link instead of a shared archive.
18252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18254 # Commands used to build and install a shared archive.
18255 archive_cmds=$lt_archive_cmds_RC
18256 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18257 postinstall_cmds=$lt_postinstall_cmds
18258 postuninstall_cmds=$lt_postuninstall_cmds
18260 # Commands used to build a loadable module (assumed same as above if empty)
18261 module_cmds=$lt_module_cmds_RC
18262 module_expsym_cmds=$lt_module_expsym_cmds_RC
18264 # Commands to strip libraries.
18265 old_striplib=$lt_old_striplib
18266 striplib=$lt_striplib
18268 # Dependencies to place before the objects being linked to create a
18270 predep_objects=$lt_predep_objects_RC
18272 # Dependencies to place after the objects being linked to create a
18274 postdep_objects=$lt_postdep_objects_RC
18276 # Dependencies to place before the objects being linked to create a
18278 predeps=$lt_predeps_RC
18280 # Dependencies to place after the objects being linked to create a
18282 postdeps=$lt_postdeps_RC
18284 # The library search path used internally by the compiler when linking
18285 # a shared library.
18286 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18288 # Method to check whether dependent libraries are shared objects.
18289 deplibs_check_method=$lt_deplibs_check_method
18291 # Command to use when deplibs_check_method == file_magic.
18292 file_magic_cmd=$lt_file_magic_cmd
18294 # Flag that allows shared libraries with undefined symbols to be built.
18295 allow_undefined_flag=$lt_allow_undefined_flag_RC
18297 # Flag that forces no undefined symbols.
18298 no_undefined_flag=$lt_no_undefined_flag_RC
18300 # Commands used to finish a libtool library installation in a directory.
18301 finish_cmds=$lt_finish_cmds
18303 # Same as above, but a single script fragment to be evaled but not shown.
18304 finish_eval=$lt_finish_eval
18306 # Take the output of nm and produce a listing of raw symbols and C names.
18307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18309 # Transform the output of nm in a proper C declaration
18310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18312 # Transform the output of nm in a C name address pair
18313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18315 # This is the shared library runtime path variable.
18316 runpath_var=$runpath_var
18318 # This is the shared library path variable.
18319 shlibpath_var=$shlibpath_var
18321 # Is shlibpath searched before the hard-coded library search path?
18322 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18324 # How to hardcode a shared library path into an executable.
18325 hardcode_action=$hardcode_action_RC
18327 # Whether we should hardcode library paths into libraries.
18328 hardcode_into_libs=$hardcode_into_libs
18330 # Flag to hardcode \$libdir into a binary during linking.
18331 # This must work even if \$libdir does not exist.
18332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18334 # If ld is used when linking, flag to hardcode \$libdir into
18335 # a binary during linking. This must work even if \$libdir does
18337 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18339 # Whether we need a single -rpath flag with a separated argument.
18340 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18342 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18343 # resulting binary.
18344 hardcode_direct=$hardcode_direct_RC
18346 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18347 # resulting binary.
18348 hardcode_minus_L=$hardcode_minus_L_RC
18350 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18351 # the resulting binary.
18352 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18354 # Set to yes if building a shared library automatically hardcodes DIR into the library
18355 # and all subsequent libraries and executables linked against it.
18356 hardcode_automatic=$hardcode_automatic_RC
18358 # Variables whose values should be saved in libtool wrapper scripts and
18359 # restored at relink time.
18360 variables_saved_for_relink="$variables_saved_for_relink"
18362 # Whether libtool must link a program against all its dependency libraries.
18363 link_all_deplibs=$link_all_deplibs_RC
18365 # Compile-time system search path for libraries
18366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18368 # Run-time system search path for libraries
18369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18371 # Fix the shell variable \$srcfile for the compiler.
18372 fix_srcfile_path="$fix_srcfile_path_RC"
18374 # Set to yes if exported symbols are required.
18375 always_export_symbols=$always_export_symbols_RC
18377 # The commands to list exported symbols.
18378 export_symbols_cmds=$lt_export_symbols_cmds_RC
18380 # The commands to extract the exported symbol list from a shared archive.
18381 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18383 # Symbols that should not be listed in the preloaded symbols.
18384 exclude_expsyms=$lt_exclude_expsyms_RC
18386 # Symbols that must always be exported.
18387 include_expsyms=$lt_include_expsyms_RC
18389 # ### END LIBTOOL TAG CONFIG: $tagname
18395 # If there is no Makefile yet, we rely on a make rule to execute
18396 # `config.status --recheck' to rerun these tests and create the
18397 # libtool script then.
18398 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18399 if test -f "$ltmain_in"; then
18400 test -f Makefile && make "$ltmain"
18406 ac_cpp='$CPP $CPPFLAGS'
18407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18416 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18417 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18418 { (exit 1); exit 1; }; }
18422 # Append the new tag name to the list of available tags.
18423 if test -n "$tagname" ; then
18424 available_tags="$available_tags $tagname"
18430 # Now substitute the updated list of available tags.
18431 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18432 mv "${ofile}T" "$ofile"
18436 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18437 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18438 { (exit 1); exit 1; }; }
18444 # This can be used to rebuild libtool when needed
18445 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18447 # Always use our own libtool.
18448 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18450 # Prevent multiple expansion
18473 #AC_CONFIG_HEADERS(sysdep.h)
18477 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
18478 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
18481 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
18485 # Find a good install program. We prefer a C program (faster),
18486 # so one script is as good as another. But avoid the broken or
18487 # incompatible versions:
18488 # SysV /etc/install, /usr/sbin/install
18489 # SunOS /usr/etc/install
18490 # IRIX /sbin/install
18492 # AmigaOS /C/install, which installs bootblocks on floppy discs
18493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18496 # OS/2's system install, which has a completely different semantic
18497 # ./install, which can be erroneously created by make from ./install.sh.
18498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18500 if test -z "$INSTALL"; then
18501 if test "${ac_cv_path_install+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18505 for as_dir in $PATH
18508 test -z "$as_dir" && as_dir=.
18509 # Account for people who put trailing slashes in PATH elements.
18511 ./ | .// | /cC/* | \
18512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18513 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18516 # OSF1 and SCO ODT 3.0 have their own names for install.
18517 # Don't use installbsd from OSF since it installs stuff as root
18519 for ac_prog in ginstall scoinst install; do
18520 for ac_exec_ext in '' $ac_executable_extensions; do
18521 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18522 if test $ac_prog = install &&
18523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18524 # AIX install. It has an incompatible calling convention.
18526 elif test $ac_prog = install &&
18527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18528 # program-specific install script used by HP pwplus--don't use.
18531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18543 if test "${ac_cv_path_install+set}" = set; then
18544 INSTALL=$ac_cv_path_install
18546 # As a last resort, use the slow shell script. We don't cache a
18547 # path for INSTALL within a source directory, because that will
18548 # break other packages using the cache if that directory is
18549 # removed, or if the path is relative.
18550 INSTALL=$ac_install_sh
18553 echo "$as_me:$LINENO: result: $INSTALL" >&5
18554 echo "${ECHO_T}$INSTALL" >&6
18556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18557 # It thinks the first close brace ends the variable substitution.
18558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18564 # Extract the first word of "autoconf", so it can be a program name with args.
18565 set dummy autoconf; ac_word=$2
18566 echo "$as_me:$LINENO: checking for $ac_word" >&5
18567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18568 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 if test -n "$AUTOCONF"; then
18572 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
18574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18578 test -z "$as_dir" && as_dir=.
18579 for ac_exec_ext in '' $ac_executable_extensions; do
18580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581 ac_cv_prog_AUTOCONF=""
18582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18590 AUTOCONF=$ac_cv_prog_AUTOCONF
18591 if test -n "$AUTOCONF"; then
18592 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
18593 echo "${ECHO_T}$AUTOCONF" >&6
18595 echo "$as_me:$LINENO: result: no" >&5
18596 echo "${ECHO_T}no" >&6
18599 # Extract the first word of "sed", so it can be a program name with args.
18600 set dummy sed; ac_word=$2
18601 echo "$as_me:$LINENO: checking for $ac_word" >&5
18602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18603 if test "${ac_cv_prog_SED+set}" = set; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18606 if test -n "$SED"; then
18607 ac_cv_prog_SED="$SED" # Let the user override the test.
18609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610 for as_dir in $PATH
18613 test -z "$as_dir" && as_dir=.
18614 for ac_exec_ext in '' $ac_executable_extensions; do
18615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616 ac_cv_prog_SED="sed"
18617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18623 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
18626 SED=$ac_cv_prog_SED
18627 if test -n "$SED"; then
18628 echo "$as_me:$LINENO: result: $SED" >&5
18629 echo "${ECHO_T}$SED" >&6
18631 echo "$as_me:$LINENO: result: no" >&5
18632 echo "${ECHO_T}no" >&6
18637 #AC_ARG_WITH(with_libical, [ --with-libical use libical calendaring library])
18638 #AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present])
18639 #AC_ARG_WITH(with_newt, [ --with-newt use newt window library])
18641 # [ --with-ssl=PATH Specify path to OpenSSL installation ],
18643 # if test "x$withval" != "xno" ; then
18644 # tryssldir=$withval
18648 #AC_DEFINE([HAVE_ICAL], [ --with-libical use libical calendaring library])
18650 cat >>confdefs.h <<\_ACEOF
18651 @%:@define HAVE_OPENSSL 1
18656 PTHREAD_DEFS=-D_REENTRANT
18659 test -z "$CC" && CC=cc
18664 PTHREAD_DEFS=-D_THREAD_SAFE
18667 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
18673 ac_cpp='$CPP $CPPFLAGS'
18674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18677 if test -n "$ac_tool_prefix"; then
18678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18679 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18680 echo "$as_me:$LINENO: checking for $ac_word" >&5
18681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18682 if test "${ac_cv_prog_CC+set}" = set; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 if test -n "$CC"; then
18686 ac_cv_prog_CC="$CC" # Let the user override the test.
18688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18689 for as_dir in $PATH
18692 test -z "$as_dir" && as_dir=.
18693 for ac_exec_ext in '' $ac_executable_extensions; do
18694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18705 if test -n "$CC"; then
18706 echo "$as_me:$LINENO: result: $CC" >&5
18707 echo "${ECHO_T}$CC" >&6
18709 echo "$as_me:$LINENO: result: no" >&5
18710 echo "${ECHO_T}no" >&6
18714 if test -z "$ac_cv_prog_CC"; then
18716 # Extract the first word of "gcc", so it can be a program name with args.
18717 set dummy gcc; ac_word=$2
18718 echo "$as_me:$LINENO: checking for $ac_word" >&5
18719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18723 if test -n "$ac_ct_CC"; then
18724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18727 for as_dir in $PATH
18730 test -z "$as_dir" && as_dir=.
18731 for ac_exec_ext in '' $ac_executable_extensions; do
18732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18733 ac_cv_prog_ac_ct_CC="gcc"
18734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18743 if test -n "$ac_ct_CC"; then
18744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18745 echo "${ECHO_T}$ac_ct_CC" >&6
18747 echo "$as_me:$LINENO: result: no" >&5
18748 echo "${ECHO_T}no" >&6
18753 CC="$ac_cv_prog_CC"
18756 if test -z "$CC"; then
18757 if test -n "$ac_tool_prefix"; then
18758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18759 set dummy ${ac_tool_prefix}cc; ac_word=$2
18760 echo "$as_me:$LINENO: checking for $ac_word" >&5
18761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18762 if test "${ac_cv_prog_CC+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 if test -n "$CC"; then
18766 ac_cv_prog_CC="$CC" # Let the user override the test.
18768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18769 for as_dir in $PATH
18772 test -z "$as_dir" && as_dir=.
18773 for ac_exec_ext in '' $ac_executable_extensions; do
18774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18775 ac_cv_prog_CC="${ac_tool_prefix}cc"
18776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18785 if test -n "$CC"; then
18786 echo "$as_me:$LINENO: result: $CC" >&5
18787 echo "${ECHO_T}$CC" >&6
18789 echo "$as_me:$LINENO: result: no" >&5
18790 echo "${ECHO_T}no" >&6
18794 if test -z "$ac_cv_prog_CC"; then
18796 # Extract the first word of "cc", so it can be a program name with args.
18797 set dummy cc; ac_word=$2
18798 echo "$as_me:$LINENO: checking for $ac_word" >&5
18799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 if test -n "$ac_ct_CC"; then
18804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807 for as_dir in $PATH
18810 test -z "$as_dir" && as_dir=.
18811 for ac_exec_ext in '' $ac_executable_extensions; do
18812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18813 ac_cv_prog_ac_ct_CC="cc"
18814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18823 if test -n "$ac_ct_CC"; then
18824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18825 echo "${ECHO_T}$ac_ct_CC" >&6
18827 echo "$as_me:$LINENO: result: no" >&5
18828 echo "${ECHO_T}no" >&6
18833 CC="$ac_cv_prog_CC"
18837 if test -z "$CC"; then
18838 # Extract the first word of "cc", so it can be a program name with args.
18839 set dummy cc; ac_word=$2
18840 echo "$as_me:$LINENO: checking for $ac_word" >&5
18841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18842 if test "${ac_cv_prog_CC+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 if test -n "$CC"; then
18846 ac_cv_prog_CC="$CC" # Let the user override the test.
18848 ac_prog_rejected=no
18849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18850 for as_dir in $PATH
18853 test -z "$as_dir" && as_dir=.
18854 for ac_exec_ext in '' $ac_executable_extensions; do
18855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18857 ac_prog_rejected=yes
18861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18867 if test $ac_prog_rejected = yes; then
18868 # We found a bogon in the path, so make sure we never use it.
18869 set dummy $ac_cv_prog_CC
18871 if test $@%:@ != 0; then
18872 # We chose a different compiler from the bogus one.
18873 # However, it has the same basename, so the bogon will be chosen
18874 # first if we set CC to just the basename; use the full file name.
18876 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18882 if test -n "$CC"; then
18883 echo "$as_me:$LINENO: result: $CC" >&5
18884 echo "${ECHO_T}$CC" >&6
18886 echo "$as_me:$LINENO: result: no" >&5
18887 echo "${ECHO_T}no" >&6
18891 if test -z "$CC"; then
18892 if test -n "$ac_tool_prefix"; then
18895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18897 echo "$as_me:$LINENO: checking for $ac_word" >&5
18898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18899 if test "${ac_cv_prog_CC+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 if test -n "$CC"; then
18903 ac_cv_prog_CC="$CC" # Let the user override the test.
18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18906 for as_dir in $PATH
18909 test -z "$as_dir" && as_dir=.
18910 for ac_exec_ext in '' $ac_executable_extensions; do
18911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18922 if test -n "$CC"; then
18923 echo "$as_me:$LINENO: result: $CC" >&5
18924 echo "${ECHO_T}$CC" >&6
18926 echo "$as_me:$LINENO: result: no" >&5
18927 echo "${ECHO_T}no" >&6
18930 test -n "$CC" && break
18933 if test -z "$CC"; then
18937 # Extract the first word of "$ac_prog", so it can be a program name with args.
18938 set dummy $ac_prog; ac_word=$2
18939 echo "$as_me:$LINENO: checking for $ac_word" >&5
18940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 if test -n "$ac_ct_CC"; then
18945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18948 for as_dir in $PATH
18951 test -z "$as_dir" && as_dir=.
18952 for ac_exec_ext in '' $ac_executable_extensions; do
18953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18954 ac_cv_prog_ac_ct_CC="$ac_prog"
18955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18964 if test -n "$ac_ct_CC"; then
18965 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18966 echo "${ECHO_T}$ac_ct_CC" >&6
18968 echo "$as_me:$LINENO: result: no" >&5
18969 echo "${ECHO_T}no" >&6
18972 test -n "$ac_ct_CC" && break
18981 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18982 See \`config.log' for more details." >&5
18983 echo "$as_me: error: no acceptable C compiler found in \$PATH
18984 See \`config.log' for more details." >&2;}
18985 { (exit 1); exit 1; }; }
18987 # Provide some information about the compiler.
18988 echo "$as_me:$LINENO:" \
18989 "checking for C compiler version" >&5
18990 ac_compiler=`set X $ac_compile; echo $2`
18991 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18992 (eval $ac_compiler --version </dev/null >&5) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }
18996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18997 (eval $ac_compiler -v </dev/null >&5) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }
19001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19002 (eval $ac_compiler -V </dev/null >&5) 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }
19007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19030 rm -f conftest.$ac_objext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19032 (eval $ac_compile) 2>conftest.er1
19034 grep -v '^ *+' conftest.er1 >conftest.err
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest.$ac_objext'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_compiler_gnu=yes
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19062 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19063 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19064 GCC=`test $ac_compiler_gnu = yes && echo yes`
19065 ac_test_CFLAGS=${CFLAGS+set}
19066 ac_save_CFLAGS=$CFLAGS
19068 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19069 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19070 if test "${ac_cv_prog_cc_g+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 cat >conftest.$ac_ext <<_ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19088 rm -f conftest.$ac_objext
19089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19090 (eval $ac_compile) 2>conftest.er1
19092 grep -v '^ *+' conftest.er1 >conftest.err
19094 cat conftest.err >&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } &&
19097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_cv_prog_cc_g=yes
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19118 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19119 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19120 if test "$ac_test_CFLAGS" = set; then
19121 CFLAGS=$ac_save_CFLAGS
19122 elif test $ac_cv_prog_cc_g = yes; then
19123 if test "$GCC" = yes; then
19129 if test "$GCC" = yes; then
19135 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19136 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19137 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 ac_cv_prog_cc_stdc=no
19142 cat >conftest.$ac_ext <<_ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 #include <stdarg.h>
19150 #include <sys/types.h>
19151 #include <sys/stat.h>
19152 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19153 struct buf { int x; };
19154 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19155 static char *e (p, i)
19161 static char *f (char * (*g) (char **, int), char **p, ...)
19166 s = g (p, va_arg (v,int));
19171 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19172 function prototypes and stuff, but not '\xHH' hex character constants.
19173 These don't provoke an error unfortunately, instead are silently treated
19174 as 'x'. The following induces an error, until -std1 is added to get
19175 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19176 array size at least. It's necessary to write '\x00'==0 to get something
19177 that's true only with -std1. */
19178 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19180 int test (int i, double x);
19181 struct s1 {int (*f) (int a);};
19182 struct s2 {int (*f) (double a);};
19183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19189 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19194 # Don't try gcc -ansi; that turns off useful extensions and
19195 # breaks some systems' header files.
19196 # AIX -qlanglvl=ansi
19197 # Ultrix and OSF/1 -std1
19198 # HP-UX 10.20 and later -Ae
19199 # HP-UX older versions -Aa -D_HPUX_SOURCE
19200 # SVR4 -Xc -D__EXTENSIONS__
19201 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19203 CC="$ac_save_CC $ac_arg"
19204 rm -f conftest.$ac_objext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206 (eval $ac_compile) 2>conftest.er1
19208 grep -v '^ *+' conftest.er1 >conftest.err
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest.$ac_objext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_cv_prog_cc_stdc=$ac_arg
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19232 rm -f conftest.err conftest.$ac_objext
19234 rm -f conftest.$ac_ext conftest.$ac_objext
19239 case "x$ac_cv_prog_cc_stdc" in
19241 echo "$as_me:$LINENO: result: none needed" >&5
19242 echo "${ECHO_T}none needed" >&6 ;;
19244 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19245 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19246 CC="$CC $ac_cv_prog_cc_stdc" ;;
19249 # Some people use a C++ compiler to compile C. Since we use `exit',
19250 # in C++ we need to declare it. In case someone uses the same compiler
19251 # for both compiling C and C++ we need to have the C++ compiler decide
19252 # the declaration of exit, since it's the most demanding environment.
19253 cat >conftest.$ac_ext <<_ACEOF
19254 @%:@ifndef __cplusplus
19258 rm -f conftest.$ac_objext
19259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19260 (eval $ac_compile) 2>conftest.er1
19262 grep -v '^ *+' conftest.er1 >conftest.err
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 for ac_declaration in \
19281 'extern "C" void std::exit (int) throw (); using std::exit;' \
19282 'extern "C" void std::exit (int); using std::exit;' \
19283 'extern "C" void exit (int) throw ();' \
19284 'extern "C" void exit (int);' \
19287 cat >conftest.$ac_ext <<_ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19294 @%:@include <stdlib.h>
19303 rm -f conftest.$ac_objext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305 (eval $ac_compile) 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest.$ac_objext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19332 cat >conftest.$ac_ext <<_ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19347 rm -f conftest.$ac_objext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19349 (eval $ac_compile) 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19377 if test -n "$ac_declaration"; then
19378 echo '#ifdef __cplusplus' >>confdefs.h
19379 echo $ac_declaration >>confdefs.h
19380 echo '#endif' >>confdefs.h
19384 echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19390 ac_cpp='$CPP $CPPFLAGS'
19391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19395 depcc="$CC" am_compiler_list=
19397 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19398 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19399 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19403 # We make a subdir and do the tests there. Otherwise we can end up
19404 # making bogus files that we don't know about and never remove. For
19405 # instance it was reported that on HP-UX the gcc test will end up
19406 # making a dummy file named `D' -- because `-MD' means `put the output
19409 # Copy depcomp to subdir because otherwise we won't find it if we're
19410 # using a relative directory.
19411 cp "$am_depcomp" conftest.dir
19413 # We will build objects and dependencies in a subdirectory because
19414 # it helps to detect inapplicable dependency modes. For instance
19415 # both Tru64's cc and ICC support -MD to output dependencies as a
19416 # side effect of compilation, but ICC will put the dependencies in
19417 # the current directory while Tru64 will put them in the object
19421 am_cv_CC_dependencies_compiler_type=none
19422 if test "$am_compiler_list" = ""; then
19423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19425 for depmode in $am_compiler_list; do
19426 # Setup a source with many dependencies, because some compilers
19427 # like to wrap large dependency lists on column 80 (with \), and
19428 # we should not choose a depcomp mode which is confused by this.
19430 # We need to recreate these files for each test, as the compiler may
19431 # overwrite some of them when testing with obscure command lines.
19432 # This happens at least with the AIX C compiler.
19434 for i in 1 2 3 4 5 6; do
19435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19437 # Solaris 8's {/usr,}/bin/sh.
19438 touch sub/conftst$i.h
19440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19444 # after this tag, mechanisms are not by side-effect, so they'll
19445 # only be used when explicitly requested
19446 if test "x$enable_dependency_tracking" = xyes; then
19454 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19455 # mode. It turns out that the SunPro C++ compiler does not properly
19456 # handle `-M -o', and we need to detect this.
19457 if depmode=$depmode \
19458 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19460 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19461 >/dev/null 2>conftest.err &&
19462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19463 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19465 # icc doesn't choke on unknown options, it will just issue warnings
19466 # or remarks (even with -Werror). So we grep stderr for any message
19467 # that says an option was ignored or not supported.
19468 # When given -MP, icc 7.0 and 7.1 complain thusly:
19469 # icc: Command line warning: ignoring option '-M'; no argument required
19470 # The diagnosis changed in icc 8.0:
19471 # icc: Command line remark: option '-MP' not supported
19472 if (grep 'ignoring option' conftest.err ||
19473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19474 am_cv_CC_dependencies_compiler_type=$depmode
19481 rm -rf conftest.dir
19483 am_cv_CC_dependencies_compiler_type=none
19487 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19488 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19489 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19494 test "x$enable_dependency_tracking" != xno \
19495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19496 am__fastdepCC_TRUE=
19497 am__fastdepCC_FALSE='#'
19499 am__fastdepCC_TRUE='#'
19500 am__fastdepCC_FALSE=
19505 if test "$GCC" = yes; then
19508 CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
19511 CFLAGS="$CFLAGS -Wall"
19516 # missing_dir=`cd $ac_aux_dir && pwd`
19517 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
19519 if test "$LIBS" != -pthread; then
19521 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19522 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19523 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 ac_check_lib_save_LIBS=$LIBS
19527 LIBS="-lpthread $LIBS"
19528 cat >conftest.$ac_ext <<_ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19535 /* Override any gcc2 internal prototype to avoid an error. */
19539 /* We use char because int might match the return type of a gcc2
19540 builtin and then its argument prototype would still apply. */
19541 char pthread_create ();
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552 (eval $ac_link) 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest$ac_exeext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_lib_pthread_pthread_create=yes
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_lib_pthread_pthread_create=no
19578 rm -f conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19582 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19583 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19584 if test $ac_cv_lib_pthread_pthread_create = yes; then
19585 cat >>confdefs.h <<_ACEOF
19586 @%:@define HAVE_LIBPTHREAD 1
19589 LIBS="-lpthread $LIBS"
19594 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19595 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19596 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 ac_check_lib_save_LIBS=$LIBS
19600 LIBS="-lpthreads $LIBS"
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19608 /* Override any gcc2 internal prototype to avoid an error. */
19612 /* We use char because int might match the return type of a gcc2
19613 builtin and then its argument prototype would still apply. */
19614 char pthread_create ();
19623 rm -f conftest.$ac_objext conftest$ac_exeext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19625 (eval $ac_link) 2>conftest.er1
19627 grep -v '^ *+' conftest.er1 >conftest.err
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
19632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest$ac_exeext'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_lib_pthreads_pthread_create=yes
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ac_cv_lib_pthreads_pthread_create=no
19651 rm -f conftest.err conftest.$ac_objext \
19652 conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19655 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19656 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19657 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19658 cat >>confdefs.h <<_ACEOF
19659 @%:@define HAVE_LIBPTHREADS 1
19662 LIBS="-lpthreads $LIBS"
19667 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
19668 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
19669 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 ac_check_lib_save_LIBS=$LIBS
19673 LIBS="-liconv $LIBS"
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19681 /* Override any gcc2 internal prototype to avoid an error. */
19685 /* We use char because int might match the return type of a gcc2
19686 builtin and then its argument prototype would still apply. */
19696 rm -f conftest.$ac_objext conftest$ac_exeext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19698 (eval $ac_link) 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
19705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } &&
19711 { ac_try='test -s conftest$ac_exeext'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; }; then
19717 ac_cv_lib_iconv_libiconv=yes
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 ac_cv_lib_iconv_libiconv=no
19724 rm -f conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19728 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
19729 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
19730 if test $ac_cv_lib_iconv_libiconv = yes; then
19731 LIBS="$LIBS -liconv"
19734 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19735 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19736 if test "${ac_cv_search_gethostbyname+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 ac_func_search_save_LIBS=$LIBS
19740 ac_cv_search_gethostbyname=no
19741 cat >conftest.$ac_ext <<_ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19748 /* Override any gcc2 internal prototype to avoid an error. */
19752 /* We use char because int might match the return type of a gcc2
19753 builtin and then its argument prototype would still apply. */
19754 char gethostbyname ();
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_cv_search_gethostbyname="none required"
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19790 rm -f conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 if test "$ac_cv_search_gethostbyname" = no; then
19793 for ac_lib in nsl; do
19794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19802 /* Override any gcc2 internal prototype to avoid an error. */
19806 /* We use char because int might match the return type of a gcc2
19807 builtin and then its argument prototype would still apply. */
19808 char gethostbyname ();
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19819 (eval $ac_link) 2>conftest.er1
19821 grep -v '^ *+' conftest.er1 >conftest.err
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } &&
19826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest$ac_exeext'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 ac_cv_search_gethostbyname="-l$ac_lib"
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19845 rm -f conftest.err conftest.$ac_objext \
19846 conftest$ac_exeext conftest.$ac_ext
19849 LIBS=$ac_func_search_save_LIBS
19851 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19852 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19853 if test "$ac_cv_search_gethostbyname" != no; then
19854 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19858 echo "$as_me:$LINENO: checking for library containing connect" >&5
19859 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
19860 if test "${ac_cv_search_connect+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19863 ac_func_search_save_LIBS=$LIBS
19864 ac_cv_search_connect=no
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19872 /* Override any gcc2 internal prototype to avoid an error. */
19876 /* We use char because int might match the return type of a gcc2
19877 builtin and then its argument prototype would still apply. */
19887 rm -f conftest.$ac_objext conftest$ac_exeext
19888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19889 (eval $ac_link) 2>conftest.er1
19891 grep -v '^ *+' conftest.er1 >conftest.err
19893 cat conftest.err >&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
19896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest$ac_exeext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ac_cv_search_connect="none required"
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19914 rm -f conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19916 if test "$ac_cv_search_connect" = no; then
19917 for ac_lib in socket; do
19918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19926 /* Override any gcc2 internal prototype to avoid an error. */
19930 /* We use char because int might match the return type of a gcc2
19931 builtin and then its argument prototype would still apply. */
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19943 (eval $ac_link) 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; } &&
19956 { ac_try='test -s conftest$ac_exeext'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; }; then
19962 ac_cv_search_connect="-l$ac_lib"
19965 echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19969 rm -f conftest.err conftest.$ac_objext \
19970 conftest$ac_exeext conftest.$ac_ext
19973 LIBS=$ac_func_search_save_LIBS
19975 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
19976 echo "${ECHO_T}$ac_cv_search_connect" >&6
19977 if test "$ac_cv_search_connect" != no; then
19978 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
19983 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19985 if test "${ac_cv_header_stdc+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19988 cat >conftest.$ac_ext <<_ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994 #include <stdlib.h>
19995 #include <stdarg.h>
19996 #include <string.h>
20007 rm -f conftest.$ac_objext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20009 (eval $ac_compile) 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
20016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest.$ac_objext'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_cv_header_stdc=yes
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_header_stdc=no
20035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20037 if test $ac_cv_header_stdc = yes; then
20038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 #include <string.h>
20048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20049 $EGREP "memchr" >/dev/null 2>&1; then
20052 ac_cv_header_stdc=no
20058 if test $ac_cv_header_stdc = yes; then
20059 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 #include <stdlib.h>
20069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20070 $EGREP "free" >/dev/null 2>&1; then
20073 ac_cv_header_stdc=no
20079 if test $ac_cv_header_stdc = yes; then
20080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20081 if test "$cross_compiling" = yes; then
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20091 #if ((' ' & 0x0FF) == 0x020)
20092 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20093 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20095 # define ISLOWER(c) \
20096 (('a' <= (c) && (c) <= 'i') \
20097 || ('j' <= (c) && (c) <= 'r') \
20098 || ('s' <= (c) && (c) <= 'z'))
20099 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20102 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20107 for (i = 0; i < 256; i++)
20108 if (XOR (islower (i), ISLOWER (i))
20109 || toupper (i) != TOUPPER (i))
20114 rm -f conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116 (eval $ac_link) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20127 echo "$as_me: program exited with status $ac_status" >&5
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 ( exit $ac_status )
20132 ac_cv_header_stdc=no
20134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20138 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20139 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20140 if test $ac_cv_header_stdc = yes; then
20142 cat >>confdefs.h <<\_ACEOF
20143 @%:@define STDC_HEADERS 1
20152 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20156 echo "$as_me:$LINENO: checking for $ac_header" >&5
20157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20164 # Is the header compilable?
20165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 $ac_includes_default
20174 @%:@include <$ac_header>
20176 rm -f conftest.$ac_objext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20178 (eval $ac_compile) 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } &&
20185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest.$ac_objext'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 ac_header_compiler=yes
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20202 ac_header_compiler=no
20204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20206 echo "${ECHO_T}$ac_header_compiler" >&6
20208 # Is the header present?
20209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20211 cat >conftest.$ac_ext <<_ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h. */
20217 @%:@include <$ac_header>
20219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } >/dev/null; then
20227 if test -s conftest.err; then
20228 ac_cpp_err=$ac_c_preproc_warn_flag
20229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20236 if test -z "$ac_cpp_err"; then
20237 ac_header_preproc=yes
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_header_preproc=no
20244 rm -f conftest.err conftest.$ac_ext
20245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20246 echo "${ECHO_T}$ac_header_preproc" >&6
20248 # So? What about this header?
20249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20255 ac_header_preproc=yes
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20272 @%:@@%:@ ------------------------------------- @%:@@%:@
20273 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
20274 @%:@@%:@ ------------------------------------- @%:@@%:@
20277 sed "s/^/$as_me: WARNING: /" >&2
20280 echo "$as_me:$LINENO: checking for $ac_header" >&5
20281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 eval "$as_ac_Header=\$ac_header_preproc"
20287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20292 cat >>confdefs.h <<_ACEOF
20293 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20304 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20305 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20306 if test "${ac_cv_c_const+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20319 /* FIXME: Include the comments suggested by Paul. */
20320 #ifndef __cplusplus
20321 /* Ultrix mips cc rejects this. */
20322 typedef int charset[2];
20324 /* SunOS 4.1.1 cc rejects this. */
20325 char const *const *ccp;
20327 /* NEC SVR4.0.2 mips cc rejects this. */
20328 struct point {int x, y;};
20329 static struct point const zero = {0,0};
20330 /* AIX XL C 1.02.0.0 rejects this.
20331 It does not let you subtract one const X* pointer from another in
20332 an arm of an if-expression whose if-part is not a constant
20334 const char *g = "string";
20335 ccp = &g + (g ? g-g : 0);
20336 /* HPUX 7.0 cc rejects these. */
20339 ccp = (char const *const *) p;
20340 { /* SCO 3.2v4 cc rejects this. */
20342 char const *s = 0 ? (char *) 0 : (char const *) 0;
20346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20347 int x[] = {25, 17};
20348 const int *foo = &x[0];
20351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20352 typedef const int *iptr;
20356 { /* AIX XL C 1.02.0.0 rejects this saying
20357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20358 struct s { int j; const int *ap[3]; };
20359 struct s *b; b->j = 5;
20361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20362 const int foo = 10;
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>conftest.er1
20374 grep -v '^ *+' conftest.er1 >conftest.err
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } &&
20379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest.$ac_objext'
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20400 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20401 echo "${ECHO_T}$ac_cv_c_const" >&6
20402 if test $ac_cv_c_const = no; then
20404 cat >>confdefs.h <<\_ACEOF
20410 echo "$as_me:$LINENO: checking for off_t" >&5
20411 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20412 if test "${ac_cv_type_off_t+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 $ac_includes_default
20427 if (sizeof (off_t))
20433 rm -f conftest.$ac_objext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20435 (eval $ac_compile) 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest.$ac_objext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_cv_type_off_t=yes
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_cv_type_off_t=no
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20463 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20464 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20465 if test $ac_cv_type_off_t = yes; then
20469 cat >>confdefs.h <<_ACEOF
20470 @%:@define off_t long
20475 echo "$as_me:$LINENO: checking for size_t" >&5
20476 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20477 if test "${ac_cv_type_size_t+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 cat >conftest.$ac_ext <<_ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 $ac_includes_default
20492 if (sizeof (size_t))
20498 rm -f conftest.$ac_objext
20499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20500 (eval $ac_compile) 2>conftest.er1
20502 grep -v '^ *+' conftest.er1 >conftest.err
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } &&
20507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try='test -s conftest.$ac_objext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_cv_type_size_t=yes
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 ac_cv_type_size_t=no
20526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20528 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20529 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20530 if test $ac_cv_type_size_t = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 @%:@define size_t unsigned
20541 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20542 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20543 if test "${ac_cv_type_signal+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 cat >conftest.$ac_ext <<_ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 #include <sys/types.h>
20553 #include <signal.h>
20558 extern "C" void (*signal (int, void (*)(int)))(int);
20560 void (*signal ()) ();
20571 rm -f conftest.$ac_objext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20573 (eval $ac_compile) 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } &&
20580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; } &&
20586 { ac_try='test -s conftest.$ac_objext'
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; }; then
20592 ac_cv_type_signal=void
20594 echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20597 ac_cv_type_signal=int
20599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20601 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20602 echo "${ECHO_T}$ac_cv_type_signal" >&6
20604 cat >>confdefs.h <<_ACEOF
20605 @%:@define RETSIGTYPE $ac_cv_type_signal
20610 for ac_func in backtrace
20612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20613 echo "$as_me:$LINENO: checking for $ac_func" >&5
20614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20615 if eval "test \"\${$as_ac_var+set}\" = set"; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20626 #define $ac_func innocuous_$ac_func
20628 /* System header to define __stub macros and hopefully few prototypes,
20629 which can conflict with char $ac_func (); below.
20630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20631 <limits.h> exists even on freestanding compilers. */
20634 # include <limits.h>
20636 # include <assert.h>
20641 /* Override any gcc2 internal prototype to avoid an error. */
20646 /* We use char because int might match the return type of a gcc2
20647 builtin and then its argument prototype would still apply. */
20649 /* The GNU C library defines this for functions which it implements
20650 to always fail with ENOSYS. Some functions are actually named
20651 something starting with __ and the normal name is an alias. */
20652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20655 char (*f) () = $ac_func;
20664 return f != $ac_func;
20669 rm -f conftest.$ac_objext conftest$ac_exeext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20671 (eval $ac_link) 2>conftest.er1
20673 grep -v '^ *+' conftest.er1 >conftest.err
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } &&
20678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest$ac_exeext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 eval "$as_ac_var=yes"
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 eval "$as_ac_var=no"
20697 rm -f conftest.err conftest.$ac_objext \
20698 conftest$ac_exeext conftest.$ac_ext
20700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20702 if test `eval echo '${'$as_ac_var'}'` = yes; then
20703 cat >>confdefs.h <<_ACEOF
20704 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20711 for ac_func in snprintf
20713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20714 echo "$as_me:$LINENO: checking for $ac_func" >&5
20715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20716 if eval "test \"\${$as_ac_var+set}\" = set"; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 cat >conftest.$ac_ext <<_ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20727 #define $ac_func innocuous_$ac_func
20729 /* System header to define __stub macros and hopefully few prototypes,
20730 which can conflict with char $ac_func (); below.
20731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20732 <limits.h> exists even on freestanding compilers. */
20735 # include <limits.h>
20737 # include <assert.h>
20742 /* Override any gcc2 internal prototype to avoid an error. */
20747 /* We use char because int might match the return type of a gcc2
20748 builtin and then its argument prototype would still apply. */
20750 /* The GNU C library defines this for functions which it implements
20751 to always fail with ENOSYS. Some functions are actually named
20752 something starting with __ and the normal name is an alias. */
20753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20756 char (*f) () = $ac_func;
20765 return f != $ac_func;
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20772 (eval $ac_link) 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; } &&
20785 { ac_try='test -s conftest$ac_exeext'
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 eval "$as_ac_var=yes"
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 eval "$as_ac_var=no"
20798 rm -f conftest.err conftest.$ac_objext \
20799 conftest$ac_exeext conftest.$ac_ext
20801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20803 if test `eval echo '${'$as_ac_var'}'` = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20809 case $LIB@&t@OBJS in
20810 "$ac_func.$ac_objext" | \
20811 *" $ac_func.$ac_objext" | \
20812 "$ac_func.$ac_objext "* | \
20813 *" $ac_func.$ac_objext "* ) ;;
20814 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
20823 cat >>confdefs.h <<\_ACEOF
20824 @%:@define HAVE_LIBICAL 1
20828 if test "x$with_libical" != xno ; then
20830 for ac_header in ical.h
20832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20834 echo "$as_me:$LINENO: checking for $ac_header" >&5
20835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20837 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20842 # Is the header compilable?
20843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 $ac_includes_default
20852 @%:@include <$ac_header>
20854 rm -f conftest.$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856 (eval $ac_compile) 2>conftest.er1
20858 grep -v '^ *+' conftest.er1 >conftest.err
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
20863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; } &&
20869 { ac_try='test -s conftest.$ac_objext'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; }; then
20875 ac_header_compiler=yes
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 ac_header_compiler=no
20882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20884 echo "${ECHO_T}$ac_header_compiler" >&6
20886 # Is the header present?
20887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20889 cat >conftest.$ac_ext <<_ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 @%:@include <$ac_header>
20897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20900 grep -v '^ *+' conftest.er1 >conftest.err
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } >/dev/null; then
20905 if test -s conftest.err; then
20906 ac_cpp_err=$ac_c_preproc_warn_flag
20907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20914 if test -z "$ac_cpp_err"; then
20915 ac_header_preproc=yes
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 ac_header_preproc=no
20922 rm -f conftest.err conftest.$ac_ext
20923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20924 echo "${ECHO_T}$ac_header_preproc" >&6
20926 # So? What about this header?
20927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20933 ac_header_preproc=yes
20936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20950 @%:@@%:@ ------------------------------------- @%:@@%:@
20951 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
20952 @%:@@%:@ ------------------------------------- @%:@@%:@
20955 sed "s/^/$as_me: WARNING: /" >&2
20958 echo "$as_me:$LINENO: checking for $ac_header" >&5
20959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 eval "$as_ac_Header=\$ac_header_preproc"
20965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20970 cat >>confdefs.h <<_ACEOF
20971 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20973 echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
20974 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
20975 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 ac_check_lib_save_LIBS=$LIBS
20979 LIBS="-lical $LIBS"
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20987 /* Override any gcc2 internal prototype to avoid an error. */
20991 /* We use char because int might match the return type of a gcc2
20992 builtin and then its argument prototype would still apply. */
20993 char icalcomponent_new ();
20997 icalcomponent_new ();
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004 (eval $ac_link) 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest$ac_exeext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_lib_ical_icalcomponent_new=yes
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_cv_lib_ical_icalcomponent_new=no
21030 rm -f conftest.err conftest.$ac_objext \
21031 conftest$ac_exeext conftest.$ac_ext
21032 LIBS=$ac_check_lib_save_LIBS
21034 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21035 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21036 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21046 if test "x$ok_libical" = xyes ; then
21048 if test "$cross_compiling" = yes; then
21049 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21050 See \`config.log' for more details." >&5
21051 echo "$as_me: error: cannot run test program while cross compiling
21052 See \`config.log' for more details." >&2;}
21053 { (exit 1); exit 1; }; }
21055 cat >conftest.$ac_ext <<_ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21064 int major, minor, v;
21065 sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21066 v = 100*major + minor;
21067 printf("libical version: %i\n", v);
21069 printf("This version is ok.\n");
21072 printf("libical 0.24 or newer required.\n");
21073 printf("Citadel will be built without calendar support.\n");
21078 rm -f conftest$ac_exeext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21080 (eval $ac_link) 2>&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21090 LIBS="$LIBS -lical"
21091 cat >>confdefs.h <<\_ACEOF
21092 @%:@define HAVE_LIBICAL 1
21098 echo "$as_me: program exited with status $ac_status" >&5
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21110 cat >>confdefs.h <<\_ACEOF
21111 @%:@define with_zlib 1
21115 if test "x$ok_zlib" = xyes ; then
21120 # Check whether --with-ok_newt or --without-ok_newt was given.
21121 if test "${with_ok_newt+set}" = set; then
21122 withval="$with_ok_newt"
21126 for ac_header in newt.h
21128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21130 echo "$as_me:$LINENO: checking for $ac_header" >&5
21131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21138 # Is the header compilable?
21139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 $ac_includes_default
21148 @%:@include <$ac_header>
21150 rm -f conftest.$ac_objext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21152 (eval $ac_compile) 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; } &&
21165 { ac_try='test -s conftest.$ac_objext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 ac_header_compiler=yes
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21176 ac_header_compiler=no
21178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21180 echo "${ECHO_T}$ac_header_compiler" >&6
21182 # Is the header present?
21183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 @%:@include <$ac_header>
21193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21196 grep -v '^ *+' conftest.er1 >conftest.err
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } >/dev/null; then
21201 if test -s conftest.err; then
21202 ac_cpp_err=$ac_c_preproc_warn_flag
21203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21210 if test -z "$ac_cpp_err"; then
21211 ac_header_preproc=yes
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 ac_header_preproc=no
21218 rm -f conftest.err conftest.$ac_ext
21219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21220 echo "${ECHO_T}$ac_header_preproc" >&6
21222 # So? What about this header?
21223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21229 ac_header_preproc=yes
21232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21246 @%:@@%:@ ------------------------------------- @%:@@%:@
21247 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21248 @%:@@%:@ ------------------------------------- @%:@@%:@
21251 sed "s/^/$as_me: WARNING: /" >&2
21254 echo "$as_me:$LINENO: checking for $ac_header" >&5
21255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 eval "$as_ac_Header=\$ac_header_preproc"
21261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21266 cat >>confdefs.h <<_ACEOF
21267 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21269 echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21270 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21271 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 ac_check_lib_save_LIBS=$LIBS
21275 LIBS="-lnewt $LIBS"
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21283 /* Override any gcc2 internal prototype to avoid an error. */
21287 /* We use char because int might match the return type of a gcc2
21288 builtin and then its argument prototype would still apply. */
21298 rm -f conftest.$ac_objext conftest$ac_exeext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300 (eval $ac_link) 2>conftest.er1
21302 grep -v '^ *+' conftest.er1 >conftest.err
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
21307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest$ac_exeext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_cv_lib_newt_newtInit=yes
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_cv_lib_newt_newtInit=no
21326 rm -f conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21330 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
21331 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
21332 if test $ac_cv_lib_newt_newtInit = yes; then
21346 if test "x$ok_newt" = xyes ; then
21347 SETUP_LIBS="-lnewt $SETUP_LIBS"
21350 # The big search for OpenSSL
21351 if test "$with_ssl" != "no"; then
21353 saved_LDFLAGS="$LDFLAGS"
21354 saved_CFLAGS="$CFLAGS"
21355 if test "x$prefix" != "xNONE"; then
21356 tryssldir="$tryssldir $prefix"
21358 echo "$as_me:$LINENO: checking for OpenSSL" >&5
21359 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
21360 if test "${ac_cv_openssldir+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 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
21365 CFLAGS="$saved_CFLAGS"
21366 LDFLAGS="$saved_LDFLAGS"
21367 LIBS="$saved_LIBS -lssl -lcrypto"
21369 # Skip directories if they don't exist
21370 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
21373 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
21374 # Try to use $ssldir/lib if it exists, otherwise
21376 if test -d "$ssldir/lib" ; then
21377 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21378 if test ! -z "$need_dash_r" ; then
21379 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21382 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21383 if test ! -z "$need_dash_r" ; then
21384 LDFLAGS="-R$ssldir $LDFLAGS"
21387 # Try to use $ssldir/include if it exists, otherwise
21389 if test -d "$ssldir/include" ; then
21390 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21392 CFLAGS="-I$ssldir $saved_CFLAGS"
21396 # Basic test to check for compatible version and correct linking
21397 # *does not* test for RSA - that comes later.
21398 if test "$cross_compiling" = yes; then
21399 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21400 See \`config.log' for more details." >&5
21401 echo "$as_me: error: cannot run test program while cross compiling
21402 See \`config.log' for more details." >&2;}
21403 { (exit 1); exit 1; }; }
21405 cat >conftest.$ac_ext <<_ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21412 #include <string.h>
21413 #include <openssl/rand.h>
21417 memset(a, 0, sizeof(a));
21418 RAND_add(a, sizeof(a), sizeof(a));
21419 return(RAND_status() <= 0);
21423 rm -f conftest$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425 (eval $ac_link) 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
21439 echo "$as_me: program exited with status $ac_status" >&5
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ( exit $ac_status )
21447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21450 if test ! -z "$found_crypto" ; then
21455 if test -z "$ssldir" ; then
21459 if test ! -z "$found_crypto" ; then
21460 ac_cv_openssldir=$ssldir
21462 ac_cv_openssldir="no"
21466 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
21467 echo "${ECHO_T}$ac_cv_openssldir" >&6
21469 LDFLAGS="$saved_LDFLAGS"
21470 CFLAGS="$saved_CFLAGS"
21472 if test "x$ac_cv_openssldir" != "xno" ; then
21473 cat >>confdefs.h <<\_ACEOF
21474 @%:@define HAVE_OPENSSL 1
21477 LIBS="-lssl -lcrypto $LIBS"
21478 ssldir=$ac_cv_openssldir
21479 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
21480 # Try to use $ssldir/lib if it exists, otherwise
21482 if test -d "$ssldir/lib" ; then
21483 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21484 if test ! -z "$need_dash_r" ; then
21485 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21488 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21489 if test ! -z "$need_dash_r" ; then
21490 LDFLAGS="-R$ssldir $LDFLAGS"
21493 # Try to use $ssldir/include if it exists, otherwise
21495 if test -d "$ssldir/include" ; then
21496 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21498 CFLAGS="-I$ssldir $saved_CFLAGS"
21506 cat >>confdefs.h <<\_ACEOF
21507 @%:@define HAVE_ICONV 1
21511 if test "$ok_nls" != "no"; then
21512 echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
21513 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
21514 if test "$cross_compiling" = yes; then
21515 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21516 See \`config.log' for more details." >&5
21517 echo "$as_me: error: cannot run test program while cross compiling
21518 See \`config.log' for more details." >&2;}
21519 { (exit 1); exit 1; }; }
21521 cat >conftest.$ac_ext <<_ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21530 iconv_t ic = (iconv_t)(-1) ;
21531 ic = iconv_open("UTF-8", "us-ascii");
21537 rm -f conftest$ac_exeext
21538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21539 (eval $ac_link) 2>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21550 echo "$as_me: program exited with status $ac_status" >&5
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21554 ( exit $ac_status )
21558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21562 if test "$ok_iconv" != "no"; then
21563 echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
21564 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
21565 cat >>confdefs.h <<\_ACEOF
21566 @%:@define HAVE_ICONV 1
21570 echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
21571 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
21575 cat >>confdefs.h <<_ACEOF
21576 @%:@define PREFIX "$prefix"
21583 # if we have intl/...
21585 case "$am__api_version" in
21587 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
21588 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
21589 { (exit 1); exit 1; }; }
21595 if test -n ""; then
21596 echo "$as_me:$LINENO: checking for intltool >= " >&5
21597 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
21599 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 100 + $ 2; }'`
21600 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
21601 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 100 + VERSION[2];}' ${ac_aux_dir}/intltool-update.in`
21603 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21604 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
21605 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
21606 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5
21607 echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;}
21608 { (exit 1); exit 1; }; }
21611 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21612 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21613 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21614 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21615 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21616 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21617 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21618 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21619 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21620 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21621 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21622 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
21623 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21624 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21625 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21626 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21627 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21628 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
21649 # Use the tools built into the package, not the ones that are installed.
21650 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
21652 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
21654 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
21657 # Extract the first word of "perl", so it can be a program name with args.
21658 set dummy perl; ac_word=$2
21659 echo "$as_me:$LINENO: checking for $ac_word" >&5
21660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21661 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 case $INTLTOOL_PERL in
21666 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
21669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21670 for as_dir in $PATH
21673 test -z "$as_dir" && as_dir=.
21674 for ac_exec_ext in '' $ac_executable_extensions; do
21675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21676 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
21677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21686 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
21688 if test -n "$INTLTOOL_PERL"; then
21689 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
21690 echo "${ECHO_T}$INTLTOOL_PERL" >&6
21692 echo "$as_me:$LINENO: result: no" >&5
21693 echo "${ECHO_T}no" >&6
21696 if test -z "$INTLTOOL_PERL"; then
21697 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
21698 echo "$as_me: error: perl not found; required for intltool" >&2;}
21699 { (exit 1); exit 1; }; }
21701 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
21702 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
21703 echo "$as_me: error: perl 5.x required for intltool" >&2;}
21704 { (exit 1); exit 1; }; }
21706 if test "x" != "xno-xml"; then
21707 echo "$as_me:$LINENO: checking for XML::Parser" >&5
21708 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
21709 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
21710 echo "$as_me:$LINENO: result: ok" >&5
21711 echo "${ECHO_T}ok" >&6
21713 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
21714 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
21715 { (exit 1); exit 1; }; }
21719 # Extract the first word of "iconv", so it can be a program name with args.
21720 set dummy iconv; ac_word=$2
21721 echo "$as_me:$LINENO: checking for $ac_word" >&5
21722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21723 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 case $INTLTOOL_ICONV in
21728 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
21731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21732 for as_dir in $PATH
21735 test -z "$as_dir" && as_dir=.
21736 for ac_exec_ext in '' $ac_executable_extensions; do
21737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21738 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
21739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21745 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
21749 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
21751 if test -n "$INTLTOOL_ICONV"; then
21752 echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
21753 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
21755 echo "$as_me:$LINENO: result: no" >&5
21756 echo "${ECHO_T}no" >&6
21759 # Extract the first word of "msgfmt", so it can be a program name with args.
21760 set dummy msgfmt; ac_word=$2
21761 echo "$as_me:$LINENO: checking for $ac_word" >&5
21762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21763 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21766 case $INTLTOOL_MSGFMT in
21768 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
21771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21772 for as_dir in $PATH
21775 test -z "$as_dir" && as_dir=.
21776 for ac_exec_ext in '' $ac_executable_extensions; do
21777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21778 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21785 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
21789 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
21791 if test -n "$INTLTOOL_MSGFMT"; then
21792 echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
21793 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
21795 echo "$as_me:$LINENO: result: no" >&5
21796 echo "${ECHO_T}no" >&6
21799 # Extract the first word of "msgmerge", so it can be a program name with args.
21800 set dummy msgmerge; ac_word=$2
21801 echo "$as_me:$LINENO: checking for $ac_word" >&5
21802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21803 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 case $INTLTOOL_MSGMERGE in
21808 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
21811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21812 for as_dir in $PATH
21815 test -z "$as_dir" && as_dir=.
21816 for ac_exec_ext in '' $ac_executable_extensions; do
21817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21818 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21825 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
21829 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
21831 if test -n "$INTLTOOL_MSGMERGE"; then
21832 echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
21833 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
21835 echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6
21839 # Extract the first word of "xgettext", so it can be a program name with args.
21840 set dummy xgettext; ac_word=$2
21841 echo "$as_me:$LINENO: checking for $ac_word" >&5
21842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21843 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 case $INTLTOOL_XGETTEXT in
21848 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
21851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21852 for as_dir in $PATH
21855 test -z "$as_dir" && as_dir=.
21856 for ac_exec_ext in '' $ac_executable_extensions; do
21857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21858 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21865 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
21869 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
21871 if test -n "$INTLTOOL_XGETTEXT"; then
21872 echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
21873 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
21875 echo "$as_me:$LINENO: result: no" >&5
21876 echo "${ECHO_T}no" >&6
21883 ac_config_commands="$ac_config_commands intltool"
21889 if test -n "$ac_aux_dir"; then
21890 case "$ac_aux_dir" in
21891 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21892 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21895 if test -z "$MKINSTALLDIRS"; then
21896 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21901 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21902 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21903 # Check whether --enable-nls or --disable-nls was given.
21904 if test "${enable_nls+set}" = set; then
21905 enableval="$enable_nls"
21910 echo "$as_me:$LINENO: result: $USE_NLS" >&5
21911 echo "${ECHO_T}$USE_NLS" >&6
21918 # Prepare PATH_SEPARATOR.
21919 # The user is always right.
21920 if test "${PATH_SEPARATOR+set}" != set; then
21921 echo "#! /bin/sh" >conf$$.sh
21922 echo "exit 0" >>conf$$.sh
21924 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21932 # Find out how to test for executable files. Don't use a zero-byte file,
21933 # as systems may use methods other than mode bits to determine executability.
21934 cat >conf$$.file <<_ASEOF
21938 chmod +x conf$$.file
21939 if test -x conf$$.file >/dev/null 2>&1; then
21940 ac_executable_p="test -x"
21942 ac_executable_p="test -f"
21946 # Extract the first word of "msgfmt", so it can be a program name with args.
21947 set dummy msgfmt; ac_word=$2
21948 echo "$as_me:$LINENO: checking for $ac_word" >&5
21949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21950 if test "${ac_cv_path_MSGFMT+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21958 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21959 for ac_dir in $PATH; do
21961 test -z "$ac_dir" && ac_dir=.
21962 for ac_exec_ext in '' $ac_executable_extensions; do
21963 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21964 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
21965 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21966 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21973 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21977 MSGFMT="$ac_cv_path_MSGFMT"
21978 if test "$MSGFMT" != ":"; then
21979 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21980 echo "${ECHO_T}$MSGFMT" >&6
21982 echo "$as_me:$LINENO: result: no" >&5
21983 echo "${ECHO_T}no" >&6
21986 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21987 set dummy gmsgfmt; ac_word=$2
21988 echo "$as_me:$LINENO: checking for $ac_word" >&5
21989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21990 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21999 for as_dir in $PATH
22002 test -z "$as_dir" && as_dir=.
22003 for ac_exec_ext in '' $ac_executable_extensions; do
22004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22005 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22012 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22016 GMSGFMT=$ac_cv_path_GMSGFMT
22018 if test -n "$GMSGFMT"; then
22019 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22020 echo "${ECHO_T}$GMSGFMT" >&6
22022 echo "$as_me:$LINENO: result: no" >&5
22023 echo "${ECHO_T}no" >&6
22028 # Prepare PATH_SEPARATOR.
22029 # The user is always right.
22030 if test "${PATH_SEPARATOR+set}" != set; then
22031 echo "#! /bin/sh" >conf$$.sh
22032 echo "exit 0" >>conf$$.sh
22034 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22042 # Find out how to test for executable files. Don't use a zero-byte file,
22043 # as systems may use methods other than mode bits to determine executability.
22044 cat >conf$$.file <<_ASEOF
22048 chmod +x conf$$.file
22049 if test -x conf$$.file >/dev/null 2>&1; then
22050 ac_executable_p="test -x"
22052 ac_executable_p="test -f"
22056 # Extract the first word of "xgettext", so it can be a program name with args.
22057 set dummy xgettext; ac_word=$2
22058 echo "$as_me:$LINENO: checking for $ac_word" >&5
22059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22060 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 case "$XGETTEXT" in
22065 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22068 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22069 for ac_dir in $PATH; do
22071 test -z "$ac_dir" && ac_dir=.
22072 for ac_exec_ext in '' $ac_executable_extensions; do
22073 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22074 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22075 (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
22076 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22083 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22087 XGETTEXT="$ac_cv_path_XGETTEXT"
22088 if test "$XGETTEXT" != ":"; then
22089 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22090 echo "${ECHO_T}$XGETTEXT" >&6
22092 echo "$as_me:$LINENO: result: no" >&5
22093 echo "${ECHO_T}no" >&6
22099 # Prepare PATH_SEPARATOR.
22100 # The user is always right.
22101 if test "${PATH_SEPARATOR+set}" != set; then
22102 echo "#! /bin/sh" >conf$$.sh
22103 echo "exit 0" >>conf$$.sh
22105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22113 # Find out how to test for executable files. Don't use a zero-byte file,
22114 # as systems may use methods other than mode bits to determine executability.
22115 cat >conf$$.file <<_ASEOF
22119 chmod +x conf$$.file
22120 if test -x conf$$.file >/dev/null 2>&1; then
22121 ac_executable_p="test -x"
22123 ac_executable_p="test -f"
22127 # Extract the first word of "msgmerge", so it can be a program name with args.
22128 set dummy msgmerge; ac_word=$2
22129 echo "$as_me:$LINENO: checking for $ac_word" >&5
22130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22131 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 case "$MSGMERGE" in
22136 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22139 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22140 for ac_dir in $PATH; do
22142 test -z "$ac_dir" && ac_dir=.
22143 for ac_exec_ext in '' $ac_executable_extensions; do
22144 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22145 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22146 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22153 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22157 MSGMERGE="$ac_cv_path_MSGMERGE"
22158 if test "$MSGMERGE" != ":"; then
22159 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22160 echo "${ECHO_T}$MSGMERGE" >&6
22162 echo "$as_me:$LINENO: result: no" >&5
22163 echo "${ECHO_T}no" >&6
22167 if test "$GMSGFMT" != ":"; then
22168 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22169 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22172 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22173 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22174 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22179 if test "$XGETTEXT" != ":"; then
22180 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22181 (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
22184 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22185 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22191 ac_config_commands="$ac_config_commands default-1"
22195 if test "X$prefix" = "XNONE"; then
22196 acl_final_prefix="$ac_default_prefix"
22198 acl_final_prefix="$prefix"
22200 if test "X$exec_prefix" = "XNONE"; then
22201 acl_final_exec_prefix='${prefix}'
22203 acl_final_exec_prefix="$exec_prefix"
22205 acl_save_prefix="$prefix"
22206 prefix="$acl_final_prefix"
22207 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22208 prefix="$acl_save_prefix"
22211 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22212 if test "${with_gnu_ld+set}" = set; then
22213 withval="$with_gnu_ld"
22214 test "$withval" = no || with_gnu_ld=yes
22218 # Prepare PATH_SEPARATOR.
22219 # The user is always right.
22220 if test "${PATH_SEPARATOR+set}" != set; then
22221 echo "#! /bin/sh" >conf$$.sh
22222 echo "exit 0" >>conf$$.sh
22224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22232 if test "$GCC" = yes; then
22233 # Check if gcc -print-prog-name=ld gives a path.
22234 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22235 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22238 # gcc leaves a trailing carriage return which upsets mingw
22239 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22241 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22244 # Accept absolute paths.
22245 [\\/]* | [A-Za-z]:[\\/]*)
22246 re_direlt='/[^/][^/]*/\.\./'
22247 # Canonicalize the path of ld
22248 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22249 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22250 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22252 test -z "$LD" && LD="$ac_prog"
22255 # If it fails, then pretend we aren't using GCC.
22259 # If it is relative, then search for the first ld in PATH.
22260 with_gnu_ld=unknown
22263 elif test "$with_gnu_ld" = yes; then
22264 echo "$as_me:$LINENO: checking for GNU ld" >&5
22265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22267 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22270 if test "${acl_cv_path_LD+set}" = set; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
22273 if test -z "$LD"; then
22274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22275 for ac_dir in $PATH; do
22276 test -z "$ac_dir" && ac_dir=.
22277 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22278 acl_cv_path_LD="$ac_dir/$ac_prog"
22279 # Check to see if the program is GNU ld. I'd rather use --version,
22280 # but apparently some GNU ld's only accept -v.
22281 # Break only if it was the GNU/non-GNU ld that we prefer.
22282 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22283 *GNU* | *'with BFD'*)
22284 test "$with_gnu_ld" != no && break ;;
22286 test "$with_gnu_ld" != yes && break ;;
22292 acl_cv_path_LD="$LD" # Let the user override the test with a path.
22296 LD="$acl_cv_path_LD"
22297 if test -n "$LD"; then
22298 echo "$as_me:$LINENO: result: $LD" >&5
22299 echo "${ECHO_T}$LD" >&6
22301 echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6
22304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22306 { (exit 1); exit 1; }; }
22307 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22309 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22313 case `$LD -v 2>&1 </dev/null` in
22314 *GNU* | *'with BFD'*)
22315 acl_cv_prog_gnu_ld=yes ;;
22317 acl_cv_prog_gnu_ld=no ;;
22320 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22321 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22322 with_gnu_ld=$acl_cv_prog_gnu_ld
22326 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22327 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22328 if test "${acl_cv_rpath+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22333 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22335 rm -f ./conftest.sh
22339 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22340 echo "${ECHO_T}$acl_cv_rpath" >&6
22342 libext="$acl_cv_libext"
22343 shlibext="$acl_cv_shlibext"
22344 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22345 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22346 hardcode_direct="$acl_cv_hardcode_direct"
22347 hardcode_minus_L="$acl_cv_hardcode_minus_L"
22348 # Check whether --enable-rpath or --disable-rpath was given.
22349 if test "${enable_rpath+set}" = set; then
22350 enableval="$enable_rpath"
22364 acl_save_prefix="$prefix"
22365 prefix="$acl_final_prefix"
22366 acl_save_exec_prefix="$exec_prefix"
22367 exec_prefix="$acl_final_exec_prefix"
22369 eval additional_includedir=\"$includedir\"
22370 eval additional_libdir=\"$libdir\"
22372 exec_prefix="$acl_save_exec_prefix"
22373 prefix="$acl_save_prefix"
22376 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22377 if test "${with_libiconv_prefix+set}" = set; then
22378 withval="$with_libiconv_prefix"
22380 if test "X$withval" = "Xno"; then
22383 if test "X$withval" = "X"; then
22385 acl_save_prefix="$prefix"
22386 prefix="$acl_final_prefix"
22387 acl_save_exec_prefix="$exec_prefix"
22388 exec_prefix="$acl_final_exec_prefix"
22390 eval additional_includedir=\"$includedir\"
22391 eval additional_libdir=\"$libdir\"
22393 exec_prefix="$acl_save_exec_prefix"
22394 prefix="$acl_save_prefix"
22397 additional_includedir="$withval/include"
22398 additional_libdir="$withval/lib"
22408 names_already_handled=
22409 names_next_round='iconv '
22410 while test -n "$names_next_round"; do
22411 names_this_round="$names_next_round"
22413 for name in $names_this_round; do
22415 for n in $names_already_handled; do
22416 if test "$n" = "$name"; then
22417 already_handled=yes
22421 if test -z "$already_handled"; then
22422 names_already_handled="$names_already_handled $name"
22423 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22424 eval value=\"\$HAVE_LIB$uppername\"
22425 if test -n "$value"; then
22426 if test "$value" = yes; then
22427 eval value=\"\$LIB$uppername\"
22428 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22429 eval value=\"\$LTLIB$uppername\"
22430 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22439 if test $use_additional = yes; then
22440 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22441 found_dir="$additional_libdir"
22442 found_so="$additional_libdir/lib$name.$shlibext"
22443 if test -f "$additional_libdir/lib$name.la"; then
22444 found_la="$additional_libdir/lib$name.la"
22447 if test -f "$additional_libdir/lib$name.$libext"; then
22448 found_dir="$additional_libdir"
22449 found_a="$additional_libdir/lib$name.$libext"
22450 if test -f "$additional_libdir/lib$name.la"; then
22451 found_la="$additional_libdir/lib$name.la"
22456 if test "X$found_dir" = "X"; then
22457 for x in $LDFLAGS $LTLIBICONV; do
22459 acl_save_prefix="$prefix"
22460 prefix="$acl_final_prefix"
22461 acl_save_exec_prefix="$exec_prefix"
22462 exec_prefix="$acl_final_exec_prefix"
22464 exec_prefix="$acl_save_exec_prefix"
22465 prefix="$acl_save_prefix"
22469 dir=`echo "X$x" | sed -e 's/^X-L//'`
22470 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22472 found_so="$dir/lib$name.$shlibext"
22473 if test -f "$dir/lib$name.la"; then
22474 found_la="$dir/lib$name.la"
22477 if test -f "$dir/lib$name.$libext"; then
22479 found_a="$dir/lib$name.$libext"
22480 if test -f "$dir/lib$name.la"; then
22481 found_la="$dir/lib$name.la"
22487 if test "X$found_dir" != "X"; then
22492 if test "X$found_dir" != "X"; then
22493 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22494 if test "X$found_so" != "X"; then
22495 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22499 for x in $ltrpathdirs; do
22500 if test "X$x" = "X$found_dir"; then
22505 if test -z "$haveit"; then
22506 ltrpathdirs="$ltrpathdirs $found_dir"
22508 if test "$hardcode_direct" = yes; then
22509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22511 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22514 for x in $rpathdirs; do
22515 if test "X$x" = "X$found_dir"; then
22520 if test -z "$haveit"; then
22521 rpathdirs="$rpathdirs $found_dir"
22525 for x in $LDFLAGS $LIBICONV; do
22527 acl_save_prefix="$prefix"
22528 prefix="$acl_final_prefix"
22529 acl_save_exec_prefix="$exec_prefix"
22530 exec_prefix="$acl_final_exec_prefix"
22532 exec_prefix="$acl_save_exec_prefix"
22533 prefix="$acl_save_prefix"
22535 if test "X$x" = "X-L$found_dir"; then
22540 if test -z "$haveit"; then
22541 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22543 if test "$hardcode_minus_L" != no; then
22544 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22546 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22552 if test "X$found_a" != "X"; then
22553 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22555 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22558 additional_includedir=
22559 case "$found_dir" in
22561 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22562 additional_includedir="$basedir/include"
22565 if test "X$additional_includedir" != "X"; then
22566 if test "X$additional_includedir" != "X/usr/include"; then
22568 if test "X$additional_includedir" = "X/usr/local/include"; then
22569 if test -n "$GCC"; then
22571 linux*) haveit=yes;;
22575 if test -z "$haveit"; then
22576 for x in $CPPFLAGS $INCICONV; do
22578 acl_save_prefix="$prefix"
22579 prefix="$acl_final_prefix"
22580 acl_save_exec_prefix="$exec_prefix"
22581 exec_prefix="$acl_final_exec_prefix"
22583 exec_prefix="$acl_save_exec_prefix"
22584 prefix="$acl_save_prefix"
22586 if test "X$x" = "X-I$additional_includedir"; then
22591 if test -z "$haveit"; then
22592 if test -d "$additional_includedir"; then
22593 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22599 if test -n "$found_la"; then
22600 save_libdir="$libdir"
22601 case "$found_la" in
22602 */* | *\\*) . "$found_la" ;;
22603 *) . "./$found_la" ;;
22605 libdir="$save_libdir"
22606 for dep in $dependency_libs; do
22609 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22610 if test "X$additional_libdir" != "X/usr/lib"; then
22612 if test "X$additional_libdir" = "X/usr/local/lib"; then
22613 if test -n "$GCC"; then
22615 linux*) haveit=yes;;
22619 if test -z "$haveit"; then
22621 for x in $LDFLAGS $LIBICONV; do
22623 acl_save_prefix="$prefix"
22624 prefix="$acl_final_prefix"
22625 acl_save_exec_prefix="$exec_prefix"
22626 exec_prefix="$acl_final_exec_prefix"
22628 exec_prefix="$acl_save_exec_prefix"
22629 prefix="$acl_save_prefix"
22631 if test "X$x" = "X-L$additional_libdir"; then
22636 if test -z "$haveit"; then
22637 if test -d "$additional_libdir"; then
22638 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22642 for x in $LDFLAGS $LTLIBICONV; do
22644 acl_save_prefix="$prefix"
22645 prefix="$acl_final_prefix"
22646 acl_save_exec_prefix="$exec_prefix"
22647 exec_prefix="$acl_final_exec_prefix"
22649 exec_prefix="$acl_save_exec_prefix"
22650 prefix="$acl_save_prefix"
22652 if test "X$x" = "X-L$additional_libdir"; then
22657 if test -z "$haveit"; then
22658 if test -d "$additional_libdir"; then
22659 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22666 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22667 if test "$enable_rpath" != no; then
22669 for x in $rpathdirs; do
22670 if test "X$x" = "X$dir"; then
22675 if test -z "$haveit"; then
22676 rpathdirs="$rpathdirs $dir"
22679 for x in $ltrpathdirs; do
22680 if test "X$x" = "X$dir"; then
22685 if test -z "$haveit"; then
22686 ltrpathdirs="$ltrpathdirs $dir"
22691 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22694 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22697 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22698 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22704 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22705 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22711 if test "X$rpathdirs" != "X"; then
22712 if test -n "$hardcode_libdir_separator"; then
22714 for found_dir in $rpathdirs; do
22715 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22717 acl_save_libdir="$libdir"
22719 eval flag=\"$hardcode_libdir_flag_spec\"
22720 libdir="$acl_save_libdir"
22721 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22723 for found_dir in $rpathdirs; do
22724 acl_save_libdir="$libdir"
22725 libdir="$found_dir"
22726 eval flag=\"$hardcode_libdir_flag_spec\"
22727 libdir="$acl_save_libdir"
22728 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22732 if test "X$ltrpathdirs" != "X"; then
22733 for found_dir in $ltrpathdirs; do
22734 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 #include <locale.h>
22749 extern locale_t wc_locales[]
22754 rm -f conftest.$ac_objext
22755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22756 (eval $ac_compile) 2>conftest.er1
22758 grep -v '^ *+' conftest.er1 >conftest.err
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } &&
22763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22765 (eval $ac_try) 2>&5
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; } &&
22769 { ac_try='test -s conftest.$ac_objext'
22770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22771 (eval $ac_try) 2>&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); }; }; then
22793 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22794 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22795 # Check whether --enable-nls or --disable-nls was given.
22796 if test "${enable_nls+set}" = set; then
22797 enableval="$enable_nls"
22802 echo "$as_me:$LINENO: result: $USE_NLS" >&5
22803 echo "${ECHO_T}$USE_NLS" >&6
22812 if test "$USE_NLS" = "yes"; then
22813 gt_use_preinstalled_gnugettext=no
22820 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22821 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22822 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22825 cat >conftest.$ac_ext <<_ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h. */
22831 #include <libintl.h>
22832 extern int _nl_msg_cat_cntr;
22833 extern int *_nl_domain_bindings;
22837 bindtextdomain ("", "");
22838 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22845 (eval $ac_link) 2>conftest.er1
22847 grep -v '^ *+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
22852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest$ac_exeext'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; }; then
22864 gt_cv_func_gnugettext2_libc=yes
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 gt_cv_func_gnugettext2_libc=no
22871 rm -f conftest.err conftest.$ac_objext \
22872 conftest$ac_exeext conftest.$ac_ext
22874 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22875 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
22877 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22883 am_save_CPPFLAGS="$CPPFLAGS"
22885 for element in $INCICONV; do
22887 for x in $CPPFLAGS; do
22889 acl_save_prefix="$prefix"
22890 prefix="$acl_final_prefix"
22891 acl_save_exec_prefix="$exec_prefix"
22892 exec_prefix="$acl_final_exec_prefix"
22894 exec_prefix="$acl_save_exec_prefix"
22895 prefix="$acl_save_prefix"
22897 if test "X$x" = "X$element"; then
22902 if test -z "$haveit"; then
22903 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22908 echo "$as_me:$LINENO: checking for iconv" >&5
22909 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22910 if test "${am_cv_func_iconv+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 am_cv_func_iconv="no, consider installing GNU libiconv"
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 #include <stdlib.h>
22927 iconv_t cd = iconv_open("","");
22928 iconv(cd,NULL,NULL,NULL,NULL);
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936 (eval $ac_link) 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; } &&
22949 { ac_try='test -s conftest$ac_exeext'
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; }; then
22955 am_cv_func_iconv=yes
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22961 rm -f conftest.err conftest.$ac_objext \
22962 conftest$ac_exeext conftest.$ac_ext
22963 if test "$am_cv_func_iconv" != yes; then
22964 am_save_LIBS="$LIBS"
22965 LIBS="$LIBS $LIBICONV"
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22972 #include <stdlib.h>
22977 iconv_t cd = iconv_open("","");
22978 iconv(cd,NULL,NULL,NULL,NULL);
22984 rm -f conftest.$ac_objext conftest$ac_exeext
22985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22986 (eval $ac_link) 2>conftest.er1
22988 grep -v '^ *+' conftest.er1 >conftest.err
22990 cat conftest.err >&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); } &&
22993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; } &&
22999 { ac_try='test -s conftest$ac_exeext'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; }; then
23005 am_cv_lib_iconv=yes
23006 am_cv_func_iconv=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23012 rm -f conftest.err conftest.$ac_objext \
23013 conftest$ac_exeext conftest.$ac_ext
23014 LIBS="$am_save_LIBS"
23018 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23019 echo "${ECHO_T}$am_cv_func_iconv" >&6
23020 if test "$am_cv_func_iconv" = yes; then
23022 cat >>confdefs.h <<\_ACEOF
23023 @%:@define HAVE_ICONV 1
23027 if test "$am_cv_lib_iconv" = yes; then
23028 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23029 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23030 echo "$as_me:$LINENO: result: $LIBICONV" >&5
23031 echo "${ECHO_T}$LIBICONV" >&6
23033 CPPFLAGS="$am_save_CPPFLAGS"
23045 acl_save_prefix="$prefix"
23046 prefix="$acl_final_prefix"
23047 acl_save_exec_prefix="$exec_prefix"
23048 exec_prefix="$acl_final_exec_prefix"
23050 eval additional_includedir=\"$includedir\"
23051 eval additional_libdir=\"$libdir\"
23053 exec_prefix="$acl_save_exec_prefix"
23054 prefix="$acl_save_prefix"
23057 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23058 if test "${with_libintl_prefix+set}" = set; then
23059 withval="$with_libintl_prefix"
23061 if test "X$withval" = "Xno"; then
23064 if test "X$withval" = "X"; then
23066 acl_save_prefix="$prefix"
23067 prefix="$acl_final_prefix"
23068 acl_save_exec_prefix="$exec_prefix"
23069 exec_prefix="$acl_final_exec_prefix"
23071 eval additional_includedir=\"$includedir\"
23072 eval additional_libdir=\"$libdir\"
23074 exec_prefix="$acl_save_exec_prefix"
23075 prefix="$acl_save_prefix"
23078 additional_includedir="$withval/include"
23079 additional_libdir="$withval/lib"
23089 names_already_handled=
23090 names_next_round='intl '
23091 while test -n "$names_next_round"; do
23092 names_this_round="$names_next_round"
23094 for name in $names_this_round; do
23096 for n in $names_already_handled; do
23097 if test "$n" = "$name"; then
23098 already_handled=yes
23102 if test -z "$already_handled"; then
23103 names_already_handled="$names_already_handled $name"
23104 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23105 eval value=\"\$HAVE_LIB$uppername\"
23106 if test -n "$value"; then
23107 if test "$value" = yes; then
23108 eval value=\"\$LIB$uppername\"
23109 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23110 eval value=\"\$LTLIB$uppername\"
23111 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23120 if test $use_additional = yes; then
23121 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23122 found_dir="$additional_libdir"
23123 found_so="$additional_libdir/lib$name.$shlibext"
23124 if test -f "$additional_libdir/lib$name.la"; then
23125 found_la="$additional_libdir/lib$name.la"
23128 if test -f "$additional_libdir/lib$name.$libext"; then
23129 found_dir="$additional_libdir"
23130 found_a="$additional_libdir/lib$name.$libext"
23131 if test -f "$additional_libdir/lib$name.la"; then
23132 found_la="$additional_libdir/lib$name.la"
23137 if test "X$found_dir" = "X"; then
23138 for x in $LDFLAGS $LTLIBINTL; do
23140 acl_save_prefix="$prefix"
23141 prefix="$acl_final_prefix"
23142 acl_save_exec_prefix="$exec_prefix"
23143 exec_prefix="$acl_final_exec_prefix"
23145 exec_prefix="$acl_save_exec_prefix"
23146 prefix="$acl_save_prefix"
23150 dir=`echo "X$x" | sed -e 's/^X-L//'`
23151 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23153 found_so="$dir/lib$name.$shlibext"
23154 if test -f "$dir/lib$name.la"; then
23155 found_la="$dir/lib$name.la"
23158 if test -f "$dir/lib$name.$libext"; then
23160 found_a="$dir/lib$name.$libext"
23161 if test -f "$dir/lib$name.la"; then
23162 found_la="$dir/lib$name.la"
23168 if test "X$found_dir" != "X"; then
23173 if test "X$found_dir" != "X"; then
23174 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23175 if test "X$found_so" != "X"; then
23176 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23180 for x in $ltrpathdirs; do
23181 if test "X$x" = "X$found_dir"; then
23186 if test -z "$haveit"; then
23187 ltrpathdirs="$ltrpathdirs $found_dir"
23189 if test "$hardcode_direct" = yes; then
23190 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23192 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23193 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23195 for x in $rpathdirs; do
23196 if test "X$x" = "X$found_dir"; then
23201 if test -z "$haveit"; then
23202 rpathdirs="$rpathdirs $found_dir"
23206 for x in $LDFLAGS $LIBINTL; do
23208 acl_save_prefix="$prefix"
23209 prefix="$acl_final_prefix"
23210 acl_save_exec_prefix="$exec_prefix"
23211 exec_prefix="$acl_final_exec_prefix"
23213 exec_prefix="$acl_save_exec_prefix"
23214 prefix="$acl_save_prefix"
23216 if test "X$x" = "X-L$found_dir"; then
23221 if test -z "$haveit"; then
23222 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23224 if test "$hardcode_minus_L" != no; then
23225 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23227 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23233 if test "X$found_a" != "X"; then
23234 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23236 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23239 additional_includedir=
23240 case "$found_dir" in
23242 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23243 additional_includedir="$basedir/include"
23246 if test "X$additional_includedir" != "X"; then
23247 if test "X$additional_includedir" != "X/usr/include"; then
23249 if test "X$additional_includedir" = "X/usr/local/include"; then
23250 if test -n "$GCC"; then
23252 linux*) haveit=yes;;
23256 if test -z "$haveit"; then
23257 for x in $CPPFLAGS $INCINTL; do
23259 acl_save_prefix="$prefix"
23260 prefix="$acl_final_prefix"
23261 acl_save_exec_prefix="$exec_prefix"
23262 exec_prefix="$acl_final_exec_prefix"
23264 exec_prefix="$acl_save_exec_prefix"
23265 prefix="$acl_save_prefix"
23267 if test "X$x" = "X-I$additional_includedir"; then
23272 if test -z "$haveit"; then
23273 if test -d "$additional_includedir"; then
23274 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23280 if test -n "$found_la"; then
23281 save_libdir="$libdir"
23282 case "$found_la" in
23283 */* | *\\*) . "$found_la" ;;
23284 *) . "./$found_la" ;;
23286 libdir="$save_libdir"
23287 for dep in $dependency_libs; do
23290 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23291 if test "X$additional_libdir" != "X/usr/lib"; then
23293 if test "X$additional_libdir" = "X/usr/local/lib"; then
23294 if test -n "$GCC"; then
23296 linux*) haveit=yes;;
23300 if test -z "$haveit"; then
23302 for x in $LDFLAGS $LIBINTL; do
23304 acl_save_prefix="$prefix"
23305 prefix="$acl_final_prefix"
23306 acl_save_exec_prefix="$exec_prefix"
23307 exec_prefix="$acl_final_exec_prefix"
23309 exec_prefix="$acl_save_exec_prefix"
23310 prefix="$acl_save_prefix"
23312 if test "X$x" = "X-L$additional_libdir"; then
23317 if test -z "$haveit"; then
23318 if test -d "$additional_libdir"; then
23319 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23323 for x in $LDFLAGS $LTLIBINTL; do
23325 acl_save_prefix="$prefix"
23326 prefix="$acl_final_prefix"
23327 acl_save_exec_prefix="$exec_prefix"
23328 exec_prefix="$acl_final_exec_prefix"
23330 exec_prefix="$acl_save_exec_prefix"
23331 prefix="$acl_save_prefix"
23333 if test "X$x" = "X-L$additional_libdir"; then
23338 if test -z "$haveit"; then
23339 if test -d "$additional_libdir"; then
23340 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23347 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23348 if test "$enable_rpath" != no; then
23350 for x in $rpathdirs; do
23351 if test "X$x" = "X$dir"; then
23356 if test -z "$haveit"; then
23357 rpathdirs="$rpathdirs $dir"
23360 for x in $ltrpathdirs; do
23361 if test "X$x" = "X$dir"; then
23366 if test -z "$haveit"; then
23367 ltrpathdirs="$ltrpathdirs $dir"
23372 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23375 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23378 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23379 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23385 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23386 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23392 if test "X$rpathdirs" != "X"; then
23393 if test -n "$hardcode_libdir_separator"; then
23395 for found_dir in $rpathdirs; do
23396 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23398 acl_save_libdir="$libdir"
23400 eval flag=\"$hardcode_libdir_flag_spec\"
23401 libdir="$acl_save_libdir"
23402 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23404 for found_dir in $rpathdirs; do
23405 acl_save_libdir="$libdir"
23406 libdir="$found_dir"
23407 eval flag=\"$hardcode_libdir_flag_spec\"
23408 libdir="$acl_save_libdir"
23409 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23413 if test "X$ltrpathdirs" != "X"; then
23414 for found_dir in $ltrpathdirs; do
23415 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23419 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23420 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23421 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23424 gt_save_CPPFLAGS="$CPPFLAGS"
23425 CPPFLAGS="$CPPFLAGS $INCINTL"
23426 gt_save_LIBS="$LIBS"
23427 LIBS="$LIBS $LIBINTL"
23428 cat >conftest.$ac_ext <<_ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23434 #include <libintl.h>
23435 extern int _nl_msg_cat_cntr;
23440 const char *_nl_expand_alias ();
23444 bindtextdomain ("", "");
23445 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23450 rm -f conftest.$ac_objext conftest$ac_exeext
23451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23452 (eval $ac_link) 2>conftest.er1
23454 grep -v '^ *+' conftest.er1 >conftest.err
23456 cat conftest.err >&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } &&
23459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; } &&
23465 { ac_try='test -s conftest$ac_exeext'
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 gt_cv_func_gnugettext2_libintl=yes
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 gt_cv_func_gnugettext2_libintl=no
23478 rm -f conftest.err conftest.$ac_objext \
23479 conftest$ac_exeext conftest.$ac_ext
23480 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23481 LIBS="$LIBS $LIBICONV"
23482 cat >conftest.$ac_ext <<_ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23488 #include <libintl.h>
23489 extern int _nl_msg_cat_cntr;
23494 const char *_nl_expand_alias ();
23498 bindtextdomain ("", "");
23499 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23504 rm -f conftest.$ac_objext conftest$ac_exeext
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506 (eval $ac_link) 2>conftest.er1
23508 grep -v '^ *+' conftest.er1 >conftest.err
23510 cat conftest.err >&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } &&
23513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23515 (eval $ac_try) 2>&5
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); }; } &&
23519 { ac_try='test -s conftest$ac_exeext'
23520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23521 (eval $ac_try) 2>&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); }; }; then
23525 LIBINTL="$LIBINTL $LIBICONV"
23526 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23527 gt_cv_func_gnugettext2_libintl=yes
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23534 rm -f conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
23537 CPPFLAGS="$gt_save_CPPFLAGS"
23538 LIBS="$gt_save_LIBS"
23540 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23541 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23544 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23545 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23546 && test "$PACKAGE" != gettext-runtime \
23547 && test "$PACKAGE" != gettext-tools; }; then
23548 gt_use_preinstalled_gnugettext=yes
23557 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23558 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23560 cat >>confdefs.h <<\_ACEOF
23561 @%:@define ENABLE_NLS 1
23569 echo "$as_me:$LINENO: checking whether to use NLS" >&5
23570 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23571 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23572 echo "${ECHO_T}$USE_NLS" >&6
23573 if test "$USE_NLS" = "yes"; then
23574 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23575 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23576 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23577 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23578 gt_source="external libintl"
23583 gt_source="included intl directory"
23585 echo "$as_me:$LINENO: result: $gt_source" >&5
23586 echo "${ECHO_T}$gt_source" >&6
23589 if test "$USE_NLS" = "yes"; then
23591 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23592 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23593 echo "$as_me:$LINENO: checking how to link with libintl" >&5
23594 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23595 echo "$as_me:$LINENO: result: $LIBINTL" >&5
23596 echo "${ECHO_T}$LIBINTL" >&6
23598 for element in $INCINTL; do
23600 for x in $CPPFLAGS; do
23602 acl_save_prefix="$prefix"
23603 prefix="$acl_final_prefix"
23604 acl_save_exec_prefix="$exec_prefix"
23605 exec_prefix="$acl_final_exec_prefix"
23607 exec_prefix="$acl_save_exec_prefix"
23608 prefix="$acl_save_prefix"
23610 if test "X$x" = "X$element"; then
23615 if test -z "$haveit"; then
23616 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23623 cat >>confdefs.h <<\_ACEOF
23624 @%:@define HAVE_GETTEXT 1
23628 cat >>confdefs.h <<\_ACEOF
23629 @%:@define HAVE_DCGETTEXT 1
23639 INTLLIBS="$LIBINTL"
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23668 # Check whether --with-rundir or --without-rundir was given.
23669 if test "${with_rundir+set}" = set; then
23670 withval="$with_rundir"
23673 rundir=/usr/local/citadel
23676 cat >>confdefs.h <<_ACEOF
23677 @%:@define RUNDIR "$rundir"
23683 # Check whether --with-staticdir or --without-staticdir was given.
23684 if test "${with_staticdir+set}" = set; then
23685 withval="$with_staticdir"
23693 # Check whether --with-staticrundir or --without-staticrundir was given.
23694 if test "${with_staticrundir+set}" = set; then
23695 withval="$with_staticrundir"
23696 staticrundir=$withval
23698 staticrundir=$staticdir
23702 cat >>confdefs.h <<_ACEOF
23703 @%:@define DATADIR "$staticrundir"
23709 # Check whether --with-editordir or --without-editordir was given.
23710 if test "${with_editordir+set}" = set; then
23711 withval="$with_editordir"
23714 editordir=$staticrundir
23718 cat >>confdefs.h <<_ACEOF
23719 @%:@define EDITORDIR "$editordir"
23725 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
23726 cat >confcache <<\_ACEOF
23727 # This file is a shell script that caches the results of configure
23728 # tests run on this system so they can be shared between configure
23729 # scripts and configure runs, see configure's option --config-cache.
23730 # It is not useful on other systems. If it contains results you don't
23731 # want to keep, you may remove or edit it.
23733 # config.status only pays attention to the cache file if you give it
23734 # the --recheck option to rerun configure.
23736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23738 # following values.
23742 # The following way of writing the cache mishandles newlines in values,
23743 # but we know of no workaround that is simple, portable, and efficient.
23744 # So, don't put newlines in cache variables' values.
23745 # Ultrix sh set writes to stderr and can't be redirected directly,
23746 # and sets the high bit in the cache file unless we assign to the vars.
23749 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23751 # `set' does not quote correctly, so add quotes (double-quote
23752 # substitution turns \\\\ into \\, and sed turns \\ into \).
23755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23758 # `set' quotes correctly as required by POSIX, so do not add quotes.
23760 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23769 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23771 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23772 if test -w $cache_file; then
23773 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23774 cat confcache >$cache_file
23776 echo "not updating unwritable cache $cache_file"
23781 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23782 # Let make expand exec_prefix.
23783 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23787 # trailing colons and then remove the whole line if VPATH becomes empty
23788 # (actually we leave an empty line to preserve line numbers).
23789 if test "x$srcdir" = x.; then
23790 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23791 s/:*\$(srcdir):*/:/;
23792 s/:*\${srcdir}:*/:/;
23794 s/^\([^=]*=[ ]*\):*/\1/;
23800 DEFS=-DHAVE_CONFIG_H
23804 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23805 # 1. Remove the extension, and $U if already installed.
23806 ac_i=`echo "$ac_i" |
23807 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23809 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23810 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23812 LIB@&t@OBJS=$ac_libobjs
23814 LTLIBOBJS=$ac_ltlibobjs
23817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23818 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23819 Usually this means the macro was only invoked conditionally." >&5
23820 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23821 Usually this means the macro was only invoked conditionally." >&2;}
23822 { (exit 1); exit 1; }; }
23824 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23825 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23826 Usually this means the macro was only invoked conditionally." >&5
23827 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23828 Usually this means the macro was only invoked conditionally." >&2;}
23829 { (exit 1); exit 1; }; }
23831 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23832 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23833 Usually this means the macro was only invoked conditionally." >&5
23834 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23835 Usually this means the macro was only invoked conditionally." >&2;}
23836 { (exit 1); exit 1; }; }
23838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23839 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23840 Usually this means the macro was only invoked conditionally." >&5
23841 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23842 Usually this means the macro was only invoked conditionally." >&2;}
23843 { (exit 1); exit 1; }; }
23846 ac_config_commands="$ac_config_commands po/stamp-it"
23850 : ${CONFIG_STATUS=./config.status}
23851 ac_clean_files_save=$ac_clean_files
23852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23853 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23854 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23855 cat >$CONFIG_STATUS <<_ACEOF
23857 # Generated by $as_me.
23858 # Run this file to recreate the current configuration.
23859 # Compiler output produced by configure, useful for debugging
23860 # configure, is in config.log if it exists.
23863 ac_cs_recheck=false
23865 SHELL=\${CONFIG_SHELL-$SHELL}
23868 cat >>$CONFIG_STATUS <<\_ACEOF
23869 ## --------------------- ##
23870 ## M4sh Initialization. ##
23871 ## --------------------- ##
23873 # Be Bourne compatible
23874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23877 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23878 # is contrary to our usage. Disable this feature.
23879 alias -g '${1+"$@"}'='"$@"'
23880 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23883 DUALCASE=1; export DUALCASE # for MKS sh
23885 # Support unset when possible.
23886 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23893 # Work around bugs in pre-3.0 UWIN ksh.
23894 $as_unset ENV MAIL MAILPATH
23901 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23902 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23903 LC_TELEPHONE LC_TIME
23905 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23906 eval $as_var=C; export $as_var
23912 # Required to use basename.
23913 if expr a : '\(a\)' >/dev/null 2>&1; then
23919 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23920 as_basename=basename
23926 # Name of the executable.
23927 as_me=`$as_basename "$0" ||
23928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23929 X"$0" : 'X\(//\)$' \| \
23930 X"$0" : 'X\(/\)$' \| \
23931 . : '\(.\)' 2>/dev/null ||
23933 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23934 /^X\/\(\/\/\)$/{ s//\1/; q; }
23935 /^X\/\(\/\).*/{ s//\1/; q; }
23939 # PATH needs CR, and LINENO needs CR and PATH.
23940 # Avoid depending upon Character Ranges.
23941 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23942 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23943 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23944 as_cr_digits='0123456789'
23945 as_cr_alnum=$as_cr_Letters$as_cr_digits
23947 # The user is always right.
23948 if test "${PATH_SEPARATOR+set}" != set; then
23949 echo "#! /bin/sh" >conf$$.sh
23950 echo "exit 0" >>conf$$.sh
23952 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23961 as_lineno_1=$LINENO
23962 as_lineno_2=$LINENO
23963 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23964 test "x$as_lineno_1" != "x$as_lineno_2" &&
23965 test "x$as_lineno_3" = "x$as_lineno_2" || {
23966 # Find who we are. Look in the path if we contain no path at all
23969 *[\\/]* ) as_myself=$0 ;;
23970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23971 for as_dir in $PATH
23974 test -z "$as_dir" && as_dir=.
23975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23980 # We did not find ourselves, most probably we were run as `sh COMMAND'
23981 # in which case we are not to be found in the path.
23982 if test "x$as_myself" = x; then
23985 if test ! -f "$as_myself"; then
23986 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23987 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23988 { (exit 1); exit 1; }; }
23990 case $CONFIG_SHELL in
23992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23993 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23996 test -z "$as_dir" && as_dir=.
23997 for as_base in sh bash ksh sh5; do
24000 if ("$as_dir/$as_base" -c '
24001 as_lineno_1=$LINENO
24002 as_lineno_2=$LINENO
24003 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24004 test "x$as_lineno_1" != "x$as_lineno_2" &&
24005 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24006 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24007 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24008 CONFIG_SHELL=$as_dir/$as_base
24009 export CONFIG_SHELL
24010 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24018 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24019 # uniformly replaced by the line number. The first 'sed' inserts a
24020 # line-number line before each line; the second 'sed' does the real
24021 # work. The second script uses 'N' to pair each line-number line
24022 # with the numbered line, and appends trailing '-' during
24023 # substitution so that $LINENO is not a special case at line end.
24024 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24025 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24026 sed '=' <$as_myself |
24031 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24034 s,^['$as_cr_digits']*\n,,
24035 ' >$as_me.lineno &&
24036 chmod +x $as_me.lineno ||
24037 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24038 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24039 { (exit 1); exit 1; }; }
24041 # Don't try to exec as it changes $[0], causing all sort of problems
24042 # (the dirname of $[0] is not the place where we might find the
24043 # original and so on. Autoconf is especially sensible to this).
24045 # Exit status is that of the last command.
24050 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24051 *c*,-n*) ECHO_N= ECHO_C='
24053 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24054 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24057 if expr a : '\(a\)' >/dev/null 2>&1; then
24063 rm -f conf$$ conf$$.exe conf$$.file
24065 if ln -s conf$$.file conf$$ 2>/dev/null; then
24066 # We could just check for DJGPP; but this test a) works b) is more generic
24067 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24068 if test -f conf$$.exe; then
24069 # Don't use ln at all; we don't have any links
24074 elif ln conf$$.file conf$$ 2>/dev/null; then
24079 rm -f conf$$ conf$$.exe conf$$.file
24081 if mkdir -p . 2>/dev/null; then
24084 test -d ./-p && rmdir ./-p
24088 as_executable_p="test -f"
24090 # Sed expression to map a string onto a valid CPP name.
24091 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24093 # Sed expression to map a string onto a valid variable name.
24094 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24098 # We need space, tab and new line, in precisely that order.
24108 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24109 # report actual input values of CONFIG_FILES etc. instead of their
24110 # values after options handling. Logging --version etc. is OK.
24114 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
24115 @%:@@%:@ Running $as_me. @%:@@%:@
24120 This file was extended by webcit $as_me 6.80, which was
24121 generated by GNU Autoconf 2.59. Invocation command line was
24123 CONFIG_FILES = $CONFIG_FILES
24124 CONFIG_HEADERS = $CONFIG_HEADERS
24125 CONFIG_LINKS = $CONFIG_LINKS
24126 CONFIG_COMMANDS = $CONFIG_COMMANDS
24130 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24134 # Files that config.status was made for.
24135 if test -n "$ac_config_files"; then
24136 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24139 if test -n "$ac_config_headers"; then
24140 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24143 if test -n "$ac_config_links"; then
24144 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24147 if test -n "$ac_config_commands"; then
24148 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24151 cat >>$CONFIG_STATUS <<\_ACEOF
24154 \`$as_me' instantiates files from templates according to the
24155 current configuration.
24157 Usage: $0 [OPTIONS] [FILE]...
24159 -h, --help print this help, then exit
24160 -V, --version print version number, then exit
24161 -q, --quiet do not print progress messages
24162 -d, --debug don't remove temporary files
24163 --recheck update $as_me by reconfiguring in the same conditions
24164 --file=FILE[:TEMPLATE]
24165 instantiate the configuration file FILE
24166 --header=FILE[:TEMPLATE]
24167 instantiate the configuration header FILE
24169 Configuration files:
24172 Configuration headers:
24175 Configuration commands:
24178 Report bugs to <bug-autoconf@gnu.org>."
24181 cat >>$CONFIG_STATUS <<_ACEOF
24183 webcit config.status 6.80
24184 configured by $0, generated by GNU Autoconf 2.59,
24185 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24187 Copyright (C) 2003 Free Software Foundation, Inc.
24188 This config.status script is free software; the Free Software Foundation
24189 gives unlimited permission to copy, distribute and modify it."
24194 cat >>$CONFIG_STATUS <<\_ACEOF
24195 # If no file are specified by the user, then we need to provide default
24196 # value. By we need to know if files were specified by the user.
24202 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24203 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24211 *) # This is not an option, so the user has probably given explicit
24214 ac_need_defaults=false;;
24218 # Handling of the options.
24220 cat >>$CONFIG_STATUS <<\_ACEOF
24221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24223 --version | --vers* | -V )
24224 echo "$ac_cs_version"; exit 0 ;;
24226 # Conflict between --help and --header
24227 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24228 Try \`$0 --help' for more information." >&5
24229 echo "$as_me: error: ambiguous option: $1
24230 Try \`$0 --help' for more information." >&2;}
24231 { (exit 1); exit 1; }; };;
24232 --help | --hel | -h )
24233 echo "$ac_cs_usage"; exit 0 ;;
24234 --debug | --d* | -d )
24236 --file | --fil | --fi | --f )
24238 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24239 ac_need_defaults=false;;
24240 --header | --heade | --head | --hea )
24242 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24243 ac_need_defaults=false;;
24244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24248 # This is an error.
24249 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24250 Try \`$0 --help' for more information." >&5
24251 echo "$as_me: error: unrecognized option: $1
24252 Try \`$0 --help' for more information." >&2;}
24253 { (exit 1); exit 1; }; } ;;
24255 *) ac_config_targets="$ac_config_targets $1" ;;
24261 ac_configure_extra_args=
24263 if $ac_cs_silent; then
24265 ac_configure_extra_args="$ac_configure_extra_args --silent"
24269 cat >>$CONFIG_STATUS <<_ACEOF
24270 if \$ac_cs_recheck; then
24271 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24272 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24277 cat >>$CONFIG_STATUS <<_ACEOF
24279 # INIT-COMMANDS section.
24282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24283 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
24284 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
24285 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
24286 INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
24287 INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
24288 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24289 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24291 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24292 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24293 LINGUAS="${LINGUAS-%UNSET%}"
24300 cat >>$CONFIG_STATUS <<\_ACEOF
24301 for ac_config_target in $ac_config_targets
24303 case "$ac_config_target" in
24304 # Handling of arguments.
24305 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24306 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24307 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24308 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24309 "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
24310 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24311 "po/stamp-it" ) CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
24312 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24313 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24314 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24315 { (exit 1); exit 1; }; };;
24319 # If the user did not use the arguments to specify the items to instantiate,
24320 # then the envvar interface is used. Set only those that are not.
24321 # We use the long form for the default assignment because of an extremely
24322 # bizarre bug on SunOS 4.1.3.
24323 if $ac_need_defaults; then
24324 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24325 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24326 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24329 # Have a temporary directory for convenience. Make it in the build tree
24330 # simply because there is no reason to put it here, and in addition,
24331 # creating and moving files from /tmp can sometimes cause problems.
24332 # Create a temporary directory, and hook for its removal unless debugging.
24335 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24336 trap '{ (exit 1); exit 1; }' 1 2 13 15
24339 # Create a (secure) tmp directory for tmp files.
24342 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24343 test -n "$tmp" && test -d "$tmp"
24346 tmp=./confstat$$-$RANDOM
24347 (umask 077 && mkdir $tmp)
24350 echo "$me: cannot create a temporary directory in ." >&2
24351 { (exit 1); exit 1; }
24356 cat >>$CONFIG_STATUS <<_ACEOF
24359 # CONFIG_FILES section.
24362 # No need to generate the scripts if there are no CONFIG_FILES.
24363 # This happens for instance when ./config.status config.h
24364 if test -n "\$CONFIG_FILES"; then
24365 # Protect against being on the right side of a sed subst in config.status.
24366 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24367 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24368 s,@SHELL@,$SHELL,;t t
24369 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24370 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24371 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24372 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24373 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24374 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24375 s,@exec_prefix@,$exec_prefix,;t t
24376 s,@prefix@,$prefix,;t t
24377 s,@program_transform_name@,$program_transform_name,;t t
24378 s,@bindir@,$bindir,;t t
24379 s,@sbindir@,$sbindir,;t t
24380 s,@libexecdir@,$libexecdir,;t t
24381 s,@datadir@,$datadir,;t t
24382 s,@sysconfdir@,$sysconfdir,;t t
24383 s,@sharedstatedir@,$sharedstatedir,;t t
24384 s,@localstatedir@,$localstatedir,;t t
24385 s,@libdir@,$libdir,;t t
24386 s,@includedir@,$includedir,;t t
24387 s,@oldincludedir@,$oldincludedir,;t t
24388 s,@infodir@,$infodir,;t t
24389 s,@mandir@,$mandir,;t t
24390 s,@build_alias@,$build_alias,;t t
24391 s,@host_alias@,$host_alias,;t t
24392 s,@target_alias@,$target_alias,;t t
24393 s,@DEFS@,$DEFS,;t t
24394 s,@ECHO_C@,$ECHO_C,;t t
24395 s,@ECHO_N@,$ECHO_N,;t t
24396 s,@ECHO_T@,$ECHO_T,;t t
24397 s,@LIBS@,$LIBS,;t t
24398 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24399 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24400 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24401 s,@CYGPATH_W@,$CYGPATH_W,;t t
24402 s,@PACKAGE@,$PACKAGE,;t t
24403 s,@VERSION@,$VERSION,;t t
24404 s,@ACLOCAL@,$ACLOCAL,;t t
24405 s,@AUTOCONF@,$AUTOCONF,;t t
24406 s,@AUTOMAKE@,$AUTOMAKE,;t t
24407 s,@AUTOHEADER@,$AUTOHEADER,;t t
24408 s,@MAKEINFO@,$MAKEINFO,;t t
24409 s,@install_sh@,$install_sh,;t t
24410 s,@STRIP@,$STRIP,;t t
24411 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24412 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24413 s,@mkdir_p@,$mkdir_p,;t t
24415 s,@SET_MAKE@,$SET_MAKE,;t t
24416 s,@am__leading_dot@,$am__leading_dot,;t t
24417 s,@AMTAR@,$AMTAR,;t t
24418 s,@am__tar@,$am__tar,;t t
24419 s,@am__untar@,$am__untar,;t t
24420 s,@build@,$build,;t t
24421 s,@build_cpu@,$build_cpu,;t t
24422 s,@build_vendor@,$build_vendor,;t t
24423 s,@build_os@,$build_os,;t t
24424 s,@host@,$host,;t t
24425 s,@host_cpu@,$host_cpu,;t t
24426 s,@host_vendor@,$host_vendor,;t t
24427 s,@host_os@,$host_os,;t t
24429 s,@CFLAGS@,$CFLAGS,;t t
24430 s,@LDFLAGS@,$LDFLAGS,;t t
24431 s,@CPPFLAGS@,$CPPFLAGS,;t t
24432 s,@ac_ct_CC@,$ac_ct_CC,;t t
24433 s,@EXEEXT@,$EXEEXT,;t t
24434 s,@OBJEXT@,$OBJEXT,;t t
24435 s,@DEPDIR@,$DEPDIR,;t t
24436 s,@am__include@,$am__include,;t t
24437 s,@am__quote@,$am__quote,;t t
24438 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24439 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24440 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24441 s,@CCDEPMODE@,$CCDEPMODE,;t t
24442 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24443 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24444 s,@EGREP@,$EGREP,;t t
24445 s,@LN_S@,$LN_S,;t t
24446 s,@ECHO@,$ECHO,;t t
24448 s,@ac_ct_AR@,$ac_ct_AR,;t t
24449 s,@RANLIB@,$RANLIB,;t t
24450 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24453 s,@CXXFLAGS@,$CXXFLAGS,;t t
24454 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24455 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24456 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24457 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24458 s,@CXXCPP@,$CXXCPP,;t t
24460 s,@FFLAGS@,$FFLAGS,;t t
24461 s,@ac_ct_F77@,$ac_ct_F77,;t t
24462 s,@LIBTOOL@,$LIBTOOL,;t t
24463 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24465 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24466 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
24467 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24468 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24469 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24470 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24471 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24472 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24473 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24474 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24475 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24476 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24477 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24478 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24479 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24480 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
24481 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24482 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24483 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24484 s,@INTLTOOL_SERVICE_RULE@,$INTLTOOL_SERVICE_RULE,;t t
24485 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24486 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24487 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24488 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24489 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
24490 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
24491 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
24492 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
24493 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24494 s,@USE_NLS@,$USE_NLS,;t t
24495 s,@MSGFMT@,$MSGFMT,;t t
24496 s,@GMSGFMT@,$GMSGFMT,;t t
24497 s,@XGETTEXT@,$XGETTEXT,;t t
24498 s,@MSGMERGE@,$MSGMERGE,;t t
24499 s,@LIBICONV@,$LIBICONV,;t t
24500 s,@LTLIBICONV@,$LTLIBICONV,;t t
24501 s,@INTLLIBS@,$INTLLIBS,;t t
24502 s,@LIBINTL@,$LIBINTL,;t t
24503 s,@LTLIBINTL@,$LTLIBINTL,;t t
24504 s,@POSUB@,$POSUB,;t t
24505 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24506 s,@staticdir@,$staticdir,;t t
24507 s,@editordir@,$editordir,;t t
24508 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24513 cat >>$CONFIG_STATUS <<\_ACEOF
24514 # Split the substitutions into bite-sized pieces for seds with
24515 # small command number limits, like on Digital OSF/1 and HP-UX.
24516 ac_max_sed_lines=48
24517 ac_sed_frag=1 # Number of current file.
24518 ac_beg=1 # First line for current file.
24519 ac_end=$ac_max_sed_lines # Line after last line for current file.
24522 while $ac_more_lines; do
24523 if test $ac_beg -gt 1; then
24524 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24526 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24528 if test ! -s $tmp/subs.frag; then
24529 ac_more_lines=false
24531 # The purpose of the label and of the branching condition is to
24532 # speed up the sed processing (if there are no `@' at all, there
24533 # is no need to browse any of the substitutions).
24534 # These are the two extra sed commands mentioned above.
24536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24537 if test -z "$ac_sed_cmds"; then
24538 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24540 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24542 ac_sed_frag=`expr $ac_sed_frag + 1`
24544 ac_end=`expr $ac_end + $ac_max_sed_lines`
24547 if test -z "$ac_sed_cmds"; then
24550 fi # test -n "$CONFIG_FILES"
24553 cat >>$CONFIG_STATUS <<\_ACEOF
24554 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24557 - | *:- | *:-:* ) # input from stdin
24559 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24561 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24563 * ) ac_file_in=$ac_file.in ;;
24566 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24567 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24569 X"$ac_file" : 'X\(//\)[^/]' \| \
24570 X"$ac_file" : 'X\(//\)$' \| \
24571 X"$ac_file" : 'X\(/\)' \| \
24572 . : '\(.\)' 2>/dev/null ||
24574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24576 /^X\(\/\/\)$/{ s//\1/; q; }
24577 /^X\(\/\).*/{ s//\1/; q; }
24579 { if $as_mkdir_p; then
24584 while test ! -d "$as_dir"; do
24585 as_dirs="$as_dir $as_dirs"
24586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24588 X"$as_dir" : 'X\(//\)[^/]' \| \
24589 X"$as_dir" : 'X\(//\)$' \| \
24590 X"$as_dir" : 'X\(/\)' \| \
24591 . : '\(.\)' 2>/dev/null ||
24593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24595 /^X\(\/\/\)$/{ s//\1/; q; }
24596 /^X\(\/\).*/{ s//\1/; q; }
24599 test ! -n "$as_dirs" || mkdir $as_dirs
24600 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24602 { (exit 1); exit 1; }; }; }
24606 if test "$ac_dir" != .; then
24607 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24608 # A "../" for each directory in $ac_dir_suffix.
24609 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24611 ac_dir_suffix= ac_top_builddir=
24615 .) # No --srcdir option. We are building in place.
24617 if test -z "$ac_top_builddir"; then
24620 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24622 [\\/]* | ?:[\\/]* ) # Absolute path.
24623 ac_srcdir=$srcdir$ac_dir_suffix;
24624 ac_top_srcdir=$srcdir ;;
24625 *) # Relative path.
24626 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24627 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24630 # Do not use `cd foo && pwd` to compute absolute paths, because
24631 # the directories may not exist.
24633 .) ac_abs_builddir="$ac_dir";;
24636 .) ac_abs_builddir=`pwd`;;
24637 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24638 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24641 case $ac_abs_builddir in
24642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24644 case ${ac_top_builddir}. in
24645 .) ac_abs_top_builddir=$ac_abs_builddir;;
24646 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24647 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24650 case $ac_abs_builddir in
24651 .) ac_abs_srcdir=$ac_srcdir;;
24654 .) ac_abs_srcdir=$ac_abs_builddir;;
24655 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24656 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24659 case $ac_abs_builddir in
24660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24662 case $ac_top_srcdir in
24663 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24664 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24665 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24672 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24675 # Let's still pretend it is `configure' which instantiates (i.e., don't
24676 # use $as_me), people would be surprised to read:
24677 # /* config.h. Generated by config.status. */
24678 if test x"$ac_file" = x-; then
24681 configure_input="$ac_file. "
24683 configure_input=$configure_input"Generated from `echo $ac_file_in |
24684 sed 's,.*/,,'` by configure."
24686 # First look for the input files in the build tree, otherwise in the
24688 ac_file_inputs=`IFS=:
24689 for f in $ac_file_in; do
24691 -) echo $tmp/stdin ;;
24693 # Absolute (can't be DOS-style, as IFS=:)
24694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24695 echo "$as_me: error: cannot find input file: $f" >&2;}
24696 { (exit 1); exit 1; }; }
24699 if test -f "$f"; then
24702 elif test -f "$srcdir/$f"; then
24707 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24708 echo "$as_me: error: cannot find input file: $f" >&2;}
24709 { (exit 1); exit 1; }; }
24712 done` || { (exit 1); exit 1; }
24714 if test x"$ac_file" != x-; then
24715 { echo "$as_me:$LINENO: creating $ac_file" >&5
24716 echo "$as_me: creating $ac_file" >&6;}
24720 cat >>$CONFIG_STATUS <<_ACEOF
24724 cat >>$CONFIG_STATUS <<\_ACEOF
24726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24727 s,@configure_input@,$configure_input,;t t
24728 s,@srcdir@,$ac_srcdir,;t t
24729 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24730 s,@top_srcdir@,$ac_top_srcdir,;t t
24731 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24732 s,@builddir@,$ac_builddir,;t t
24733 s,@abs_builddir@,$ac_abs_builddir,;t t
24734 s,@top_builddir@,$ac_top_builddir,;t t
24735 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24736 s,@INSTALL@,$ac_INSTALL,;t t
24737 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24739 if test x"$ac_file" != x-; then
24740 mv $tmp/out $ac_file
24748 cat >>$CONFIG_STATUS <<\_ACEOF
24751 # CONFIG_HEADER section.
24754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24757 # ac_d sets the value in "#define NAME VALUE" lines.
24758 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24759 ac_dB='[ ].*$,\1#\2'
24762 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24763 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24764 ac_uB='$,\1#\2define\3'
24768 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24771 - | *:- | *:-:* ) # input from stdin
24773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24777 * ) ac_file_in=$ac_file.in ;;
24780 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24781 echo "$as_me: creating $ac_file" >&6;}
24783 # First look for the input files in the build tree, otherwise in the
24785 ac_file_inputs=`IFS=:
24786 for f in $ac_file_in; do
24788 -) echo $tmp/stdin ;;
24790 # Absolute (can't be DOS-style, as IFS=:)
24791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24792 echo "$as_me: error: cannot find input file: $f" >&2;}
24793 { (exit 1); exit 1; }; }
24794 # Do quote $f, to prevent DOS paths from being IFS'd.
24797 if test -f "$f"; then
24800 elif test -f "$srcdir/$f"; then
24805 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24806 echo "$as_me: error: cannot find input file: $f" >&2;}
24807 { (exit 1); exit 1; }; }
24810 done` || { (exit 1); exit 1; }
24811 # Remove the trailing spaces.
24812 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24816 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24817 # `conftest.undefs', that substitutes the proper values into
24818 # config.h.in to produce config.h. The first handles `#define'
24819 # templates, and the second `#undef' templates.
24820 # And first: Protect against being on the right side of a sed subst in
24821 # config.status. Protect against being in an unquoted here document
24822 # in config.status.
24823 rm -f conftest.defines conftest.undefs
24824 # Using a here document instead of a string reduces the quoting nightmare.
24825 # Putting comments in sed scripts is not portable.
24827 # `end' is used to avoid that the second main sed command (meant for
24828 # 0-ary CPP macros) applies to n-ary macro definitions.
24829 # See the Autoconf documentation for `clear'.
24830 cat >confdef2sed.sed <<\_ACEOF
24835 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24837 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24840 # If some macros were called several times there might be several times
24841 # the same #defines, which is useless. Nevertheless, we may not want to
24842 # sort them, since we want the *last* AC-DEFINE to be honored.
24843 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24844 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24845 rm -f confdef2sed.sed
24847 # This sed command replaces #undef with comments. This is necessary, for
24848 # example, in the case of _POSIX_SOURCE, which is predefined and required
24849 # on some systems where configure will not decide to define it.
24850 cat >>conftest.undefs <<\_ACEOF
24851 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24854 # Break up conftest.defines because some shells have a limit on the size
24855 # of here documents, and old seds have small limits too (100 cmds).
24856 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24857 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24858 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24859 echo ' :' >>$CONFIG_STATUS
24860 rm -f conftest.tail
24861 while grep . conftest.defines >/dev/null
24863 # Write a limited-size here document to $tmp/defines.sed.
24864 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24865 # Speed up: don't consider the non `#define' lines.
24866 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24867 # Work around the forget-to-reset-the-flag bug.
24868 echo 't clr' >>$CONFIG_STATUS
24869 echo ': clr' >>$CONFIG_STATUS
24870 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24872 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24874 mv $tmp/out $tmp/in
24876 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24877 rm -f conftest.defines
24878 mv conftest.tail conftest.defines
24880 rm -f conftest.defines
24881 echo ' fi # grep' >>$CONFIG_STATUS
24882 echo >>$CONFIG_STATUS
24884 # Break up conftest.undefs because some shells have a limit on the size
24885 # of here documents, and old seds have small limits too (100 cmds).
24886 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24887 rm -f conftest.tail
24888 while grep . conftest.undefs >/dev/null
24890 # Write a limited-size here document to $tmp/undefs.sed.
24891 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24892 # Speed up: don't consider the non `#undef'
24893 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24894 # Work around the forget-to-reset-the-flag bug.
24895 echo 't clr' >>$CONFIG_STATUS
24896 echo ': clr' >>$CONFIG_STATUS
24897 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24899 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24901 mv $tmp/out $tmp/in
24903 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24904 rm -f conftest.undefs
24905 mv conftest.tail conftest.undefs
24907 rm -f conftest.undefs
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24910 # Let's still pretend it is `configure' which instantiates (i.e., don't
24911 # use $as_me), people would be surprised to read:
24912 # /* config.h. Generated by config.status. */
24913 if test x"$ac_file" = x-; then
24914 echo "/* Generated by configure. */" >$tmp/config.h
24916 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24918 cat $tmp/in >>$tmp/config.h
24920 if test x"$ac_file" != x-; then
24921 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24922 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24923 echo "$as_me: $ac_file is unchanged" >&6;}
24925 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24927 X"$ac_file" : 'X\(//\)[^/]' \| \
24928 X"$ac_file" : 'X\(//\)$' \| \
24929 X"$ac_file" : 'X\(/\)' \| \
24930 . : '\(.\)' 2>/dev/null ||
24932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24934 /^X\(\/\/\)$/{ s//\1/; q; }
24935 /^X\(\/\).*/{ s//\1/; q; }
24937 { if $as_mkdir_p; then
24942 while test ! -d "$as_dir"; do
24943 as_dirs="$as_dir $as_dirs"
24944 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24946 X"$as_dir" : 'X\(//\)[^/]' \| \
24947 X"$as_dir" : 'X\(//\)$' \| \
24948 X"$as_dir" : 'X\(/\)' \| \
24949 . : '\(.\)' 2>/dev/null ||
24951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24953 /^X\(\/\/\)$/{ s//\1/; q; }
24954 /^X\(\/\).*/{ s//\1/; q; }
24957 test ! -n "$as_dirs" || mkdir $as_dirs
24958 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24959 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24960 { (exit 1); exit 1; }; }; }
24963 mv $tmp/config.h $ac_file
24967 rm -f $tmp/config.h
24969 # Compute $ac_file's index in $config_headers.
24971 for _am_header in $config_headers :; do
24972 case $_am_header in
24973 $ac_file | $ac_file:* )
24976 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24979 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24980 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24981 X$ac_file : 'X\(//\)[^/]' \| \
24982 X$ac_file : 'X\(//\)$' \| \
24983 X$ac_file : 'X\(/\)' \| \
24984 . : '\(.\)' 2>/dev/null ||
24986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24988 /^X\(\/\/\)$/{ s//\1/; q; }
24989 /^X\(\/\).*/{ s//\1/; q; }
24990 s/.*/./; q'`/stamp-h$_am_stamp_count
24993 cat >>$CONFIG_STATUS <<\_ACEOF
24996 # CONFIG_COMMANDS section.
24998 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24999 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25000 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25001 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25002 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25003 X"$ac_dest" : 'X\(//\)[^/]' \| \
25004 X"$ac_dest" : 'X\(//\)$' \| \
25005 X"$ac_dest" : 'X\(/\)' \| \
25006 . : '\(.\)' 2>/dev/null ||
25008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25010 /^X\(\/\/\)$/{ s//\1/; q; }
25011 /^X\(\/\).*/{ s//\1/; q; }
25013 { if $as_mkdir_p; then
25018 while test ! -d "$as_dir"; do
25019 as_dirs="$as_dir $as_dirs"
25020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022 X"$as_dir" : 'X\(//\)[^/]' \| \
25023 X"$as_dir" : 'X\(//\)$' \| \
25024 X"$as_dir" : 'X\(/\)' \| \
25025 . : '\(.\)' 2>/dev/null ||
25027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25029 /^X\(\/\/\)$/{ s//\1/; q; }
25030 /^X\(\/\).*/{ s//\1/; q; }
25033 test ! -n "$as_dirs" || mkdir $as_dirs
25034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25036 { (exit 1); exit 1; }; }; }
25040 if test "$ac_dir" != .; then
25041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25042 # A "../" for each directory in $ac_dir_suffix.
25043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25045 ac_dir_suffix= ac_top_builddir=
25049 .) # No --srcdir option. We are building in place.
25051 if test -z "$ac_top_builddir"; then
25054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25056 [\\/]* | ?:[\\/]* ) # Absolute path.
25057 ac_srcdir=$srcdir$ac_dir_suffix;
25058 ac_top_srcdir=$srcdir ;;
25059 *) # Relative path.
25060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25061 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25064 # Do not use `cd foo && pwd` to compute absolute paths, because
25065 # the directories may not exist.
25067 .) ac_abs_builddir="$ac_dir";;
25070 .) ac_abs_builddir=`pwd`;;
25071 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25072 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25075 case $ac_abs_builddir in
25076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25078 case ${ac_top_builddir}. in
25079 .) ac_abs_top_builddir=$ac_abs_builddir;;
25080 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25081 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25084 case $ac_abs_builddir in
25085 .) ac_abs_srcdir=$ac_srcdir;;
25088 .) ac_abs_srcdir=$ac_abs_builddir;;
25089 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25090 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25093 case $ac_abs_builddir in
25094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25096 case $ac_top_srcdir in
25097 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25098 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25099 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25104 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25105 echo "$as_me: executing $ac_dest commands" >&6;}
25107 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25108 # Strip MF so we end up with the name of the file.
25109 mf=`echo "$mf" | sed -e 's/:.*$//'`
25110 # Check whether this is an Automake generated Makefile or not.
25111 # We used to match only the files named `Makefile.in', but
25112 # some people rename them; so instead we look at the file content.
25113 # Grep'ing the first line is not enough: some people post-process
25114 # each Makefile.in and add a new line on top of each file to say so.
25115 # So let's grep whole file.
25116 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25117 dirpart=`(dirname "$mf") 2>/dev/null ||
25118 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25119 X"$mf" : 'X\(//\)[^/]' \| \
25120 X"$mf" : 'X\(//\)$' \| \
25121 X"$mf" : 'X\(/\)' \| \
25122 . : '\(.\)' 2>/dev/null ||
25124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25126 /^X\(\/\/\)$/{ s//\1/; q; }
25127 /^X\(\/\).*/{ s//\1/; q; }
25132 # Extract the definition of DEPDIR, am__include, and am__quote
25133 # from the Makefile without running `make'.
25134 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25135 test -z "$DEPDIR" && continue
25136 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25137 test -z "am__include" && continue
25138 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25139 # When using ansi2knr, U may be empty or an underscore; expand it
25140 U=`sed -n 's/^U = //p' < "$mf"`
25141 # Find all dependency output files, they are included files with
25142 # $(DEPDIR) in their names. We invoke sed twice because it is the
25143 # simplest approach to changing $(DEPDIR) to its actual value in the
25145 for file in `sed -n "
25146 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25147 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25148 # Make sure the directory exists.
25149 test -f "$dirpart/$file" && continue
25150 fdir=`(dirname "$file") 2>/dev/null ||
25151 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25152 X"$file" : 'X\(//\)[^/]' \| \
25153 X"$file" : 'X\(//\)$' \| \
25154 X"$file" : 'X\(/\)' \| \
25155 . : '\(.\)' 2>/dev/null ||
25157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25159 /^X\(\/\/\)$/{ s//\1/; q; }
25160 /^X\(\/\).*/{ s//\1/; q; }
25162 { if $as_mkdir_p; then
25163 mkdir -p $dirpart/$fdir
25165 as_dir=$dirpart/$fdir
25167 while test ! -d "$as_dir"; do
25168 as_dirs="$as_dir $as_dirs"
25169 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25171 X"$as_dir" : 'X\(//\)[^/]' \| \
25172 X"$as_dir" : 'X\(//\)$' \| \
25173 X"$as_dir" : 'X\(/\)' \| \
25174 . : '\(.\)' 2>/dev/null ||
25176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25178 /^X\(\/\/\)$/{ s//\1/; q; }
25179 /^X\(\/\).*/{ s//\1/; q; }
25182 test ! -n "$as_dirs" || mkdir $as_dirs
25183 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25184 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25185 { (exit 1); exit 1; }; }; }
25187 # echo "creating $dirpart/$file"
25188 echo '# dummy' > "$dirpart/$file"
25194 for file in intltool-extract intltool-merge intltool-update; do
25195 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
25196 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
25197 -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
25198 -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
25199 -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
25200 -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
25201 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
25202 < ${ac_aux_dir}/${file}.in > ${file}.out
25203 if cmp -s ${file} ${file}.out 2>/dev/null; then
25206 mv -f ${file}.out ${file}
25208 chmod ugo+x ${file}
25214 for ac_file in $CONFIG_FILES; do
25215 # Support "outfile[:infile[:infile...]]"
25217 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25219 # PO directories have a Makefile.in generated from Makefile.in.in.
25220 case "$ac_file" in */Makefile.in)
25221 # Adjust a relative srcdir.
25222 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25223 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25224 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25225 # In autoconf-2.13 it is called $ac_given_srcdir.
25226 # In autoconf-2.50 it is called $srcdir.
25227 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25228 case "$ac_given_srcdir" in
25229 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25230 /*) top_srcdir="$ac_given_srcdir" ;;
25231 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25233 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25234 rm -f "$ac_dir/POTFILES"
25235 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25236 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25237 POMAKEFILEDEPS="POTFILES.in"
25238 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25239 # on $ac_dir but don't depend on user-specified configuration
25241 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25242 # The LINGUAS file contains the set of available languages.
25243 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25244 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25246 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25247 # Hide the ALL_LINGUAS assigment from automake.
25248 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25249 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25251 # The set of available languages was given in configure.in.
25252 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25255 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25256 # Compute UPDATEPOFILES
25257 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25258 # Compute DUMMYPOFILES
25259 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25261 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25262 case "$ac_given_srcdir" in
25264 *) srcdirpre='$(srcdir)/' ;;
25270 for lang in $ALL_LINGUAS; do
25271 POFILES="$POFILES $srcdirpre$lang.po"
25272 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25273 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25274 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25276 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25277 # environment variable.
25279 if test -n "$ALL_LINGUAS"; then
25280 for presentlang in $ALL_LINGUAS; do
25282 if test "%UNSET%" != "$LINGUAS"; then
25283 desiredlanguages="$LINGUAS"
25285 desiredlanguages="$ALL_LINGUAS"
25287 for desiredlang in $desiredlanguages; do
25288 # Use the presentlang catalog if desiredlang is
25289 # a. equal to presentlang, or
25290 # b. a variant of presentlang (because in this case,
25291 # presentlang can be used as a fallback for messages
25292 # which are not translated in the desiredlang catalog).
25293 case "$desiredlang" in
25294 "$presentlang"*) useit=yes;;
25297 if test $useit = yes; then
25298 INST_LINGUAS="$INST_LINGUAS $presentlang"
25303 if test -n "$INST_LINGUAS"; then
25304 for lang in $INST_LINGUAS; do
25305 CATALOGS="$CATALOGS $lang.gmo"
25308 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25309 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"
25310 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25311 if test -f "$f"; then
25313 *.orig | *.bak | *~) ;;
25314 *) cat "$f" >> "$ac_dir/Makefile" ;;
25323 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
25328 '"s|^| $ac_top_srcdir/|" \
25329 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
25331 if test ! -f "po/Makefile"; then
25332 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
25333 echo "$as_me: error: po/Makefile is not ready." >&2;}
25334 { (exit 1); exit 1; }; }
25336 mv "po/Makefile" "po/Makefile.tmp"
25337 sed '/^POTFILES =/,/[^\\]$/ {
25341 ' "po/Makefile.tmp" >"po/Makefile"
25342 rm -f "po/Makefile.tmp"
25343 mv "po/stamp-it.tmp" "po/stamp-it"
25349 cat >>$CONFIG_STATUS <<\_ACEOF
25351 { (exit 0); exit 0; }
25353 chmod +x $CONFIG_STATUS
25354 ac_clean_files=$ac_clean_files_save
25357 # configure is writing to config.log, and then calls config.status.
25358 # config.status does its own redirection, appending to config.log.
25359 # Unfortunately, on DOS this fails, as config.log is still kept open
25360 # by configure, so config.status won't be able to write to it; its
25361 # output is simply discarded. So we exec the FD to /dev/null,
25362 # effectively closing config.log, so it can be properly (re)opened and
25363 # appended to by config.status. When coming back to configure, we
25364 # need to make the FD available again.
25365 if test "$no_create" != yes; then
25367 ac_config_status_args=
25368 test "$silent" = yes &&
25369 ac_config_status_args="$ac_config_status_args --quiet"
25371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25374 # would make configure fail if this is the last instruction.
25375 $ac_cs_success || { (exit 1); exit 1; }
25380 echo ------------------------------------------------------------------------
25381 echo 'nls is available? '$_nls_avail
25382 echo 'zlib compression: ' $ok_zlib
25383 echo 'Calendar support: ' $ok_libical
25384 echo 'Character set conversion support:' $ok_iconv
25385 echo 'National language support: ' $ok_nls