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_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"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2752 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2753 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2754 GCC=`test $ac_compiler_gnu = yes && echo yes`
2755 ac_test_CFLAGS=${CFLAGS+set}
2756 ac_save_CFLAGS=$CFLAGS
2758 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812 CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2820 if test "$GCC" = yes; then
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_prog_cc_stdc=no
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2857 s = g (p, va_arg (v,int));
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std1 is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std1. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX -qlanglvl=ansi
2888 # Ultrix and OSF/1 -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions -Aa -D_HPUX_SOURCE
2891 # SVR4 -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try='test -z "$ac_c_werror_flag"
2905 || test ! -s conftest.err'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_prog_cc_stdc=$ac_arg
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2924 rm -f conftest.err conftest.$ac_objext
2926 rm -f conftest.$ac_ext conftest.$ac_objext
2931 case "x$ac_cv_prog_cc_stdc" in
2933 echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6 ;;
2936 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2938 CC="$CC $ac_cv_prog_cc_stdc" ;;
2941 # Some people use a C++ compiler to compile C. Since we use `exit',
2942 # in C++ we need to declare it. In case someone uses the same compiler
2943 # for both compiling C and C++ we need to have the C++ compiler decide
2944 # the declaration of exit, since it's the most demanding environment.
2945 cat >conftest.$ac_ext <<_ACEOF
2946 @%:@ifndef __cplusplus
2950 rm -f conftest.$ac_objext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952 (eval $ac_compile) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_c_werror_flag"
2960 || test ! -s conftest.err'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 for ac_declaration in \
2974 'extern "C" void std::exit (int) throw (); using std::exit;' \
2975 'extern "C" void std::exit (int); using std::exit;' \
2976 'extern "C" void exit (int) throw ();' \
2977 'extern "C" void exit (int);' \
2980 cat >conftest.$ac_ext <<_ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2987 @%:@include <stdlib.h>
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
3000 grep -v '^ *+' conftest.er1 >conftest.err
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag"
3006 || test ! -s conftest.err'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>conftest.er1
3045 grep -v '^ *+' conftest.er1 >conftest.err
3047 cat conftest.err >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -z "$ac_c_werror_flag"
3051 || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 if test -n "$ac_declaration"; then
3073 echo '#ifdef __cplusplus' >>confdefs.h
3074 echo $ac_declaration >>confdefs.h
3075 echo '#endif' >>confdefs.h
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 depcc="$CC" am_compiler_list=
3092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098 # We make a subdir and do the tests there. Otherwise we can end up
3099 # making bogus files that we don't know about and never remove. For
3100 # instance it was reported that on HP-UX the gcc test will end up
3101 # making a dummy file named `D' -- because `-MD' means `put the output
3104 # Copy depcomp to subdir because otherwise we won't find it if we're
3105 # using a relative directory.
3106 cp "$am_depcomp" conftest.dir
3108 # We will build objects and dependencies in a subdirectory because
3109 # it helps to detect inapplicable dependency modes. For instance
3110 # both Tru64's cc and ICC support -MD to output dependencies as a
3111 # side effect of compilation, but ICC will put the dependencies in
3112 # the current directory while Tru64 will put them in the object
3116 am_cv_CC_dependencies_compiler_type=none
3117 if test "$am_compiler_list" = ""; then
3118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3120 for depmode in $am_compiler_list; do
3121 # Setup a source with many dependencies, because some compilers
3122 # like to wrap large dependency lists on column 80 (with \), and
3123 # we should not choose a depcomp mode which is confused by this.
3125 # We need to recreate these files for each test, as the compiler may
3126 # overwrite some of them when testing with obscure command lines.
3127 # This happens at least with the AIX C compiler.
3129 for i in 1 2 3 4 5 6; do
3130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3132 # Solaris 8's {/usr,}/bin/sh.
3133 touch sub/conftst$i.h
3135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3139 # after this tag, mechanisms are not by side-effect, so they'll
3140 # only be used when explicitly requested
3141 if test "x$enable_dependency_tracking" = xyes; then
3149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3150 # mode. It turns out that the SunPro C++ compiler does not properly
3151 # handle `-M -o', and we need to detect this.
3152 if depmode=$depmode \
3153 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3155 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3156 >/dev/null 2>conftest.err &&
3157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3158 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3160 # icc doesn't choke on unknown options, it will just issue warnings
3161 # or remarks (even with -Werror). So we grep stderr for any message
3162 # that says an option was ignored or not supported.
3163 # When given -MP, icc 7.0 and 7.1 complain thusly:
3164 # icc: Command line warning: ignoring option '-M'; no argument required
3165 # The diagnosis changed in icc 8.0:
3166 # icc: Command line remark: option '-MP' not supported
3167 if (grep 'ignoring option' conftest.err ||
3168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3169 am_cv_CC_dependencies_compiler_type=$depmode
3178 am_cv_CC_dependencies_compiler_type=none
3182 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3189 test "x$enable_dependency_tracking" != xno \
3190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3192 am__fastdepCC_FALSE='#'
3194 am__fastdepCC_TRUE='#'
3195 am__fastdepCC_FALSE=
3199 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3200 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3201 if test "${lt_cv_path_SED+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 # Loop through the user's path and test for sed and gsed.
3205 # Then use that list of sed's as ones to test for truncation.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for lt_ac_prog in sed gsed; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3214 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3222 # along with /bin/sed that truncates output.
3223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3224 test ! -f $lt_ac_sed && continue
3225 cat /dev/null > conftest.in
3227 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3228 # Check for GNU sed and select it if it is found.
3229 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3230 lt_cv_path_SED=$lt_ac_sed
3234 cat conftest.in conftest.in >conftest.tmp
3235 mv conftest.tmp conftest.in
3236 cp conftest.in conftest.nl
3238 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3239 cmp -s conftest.out conftest.nl || break
3240 # 10000 chars as input seems more than enough
3241 test $lt_ac_count -gt 10 && break
3242 lt_ac_count=`expr $lt_ac_count + 1`
3243 if test $lt_ac_count -gt $lt_ac_max; then
3244 lt_ac_max=$lt_ac_count
3245 lt_cv_path_SED=$lt_ac_sed
3253 echo "$as_me:$LINENO: result: $SED" >&5
3254 echo "${ECHO_T}$SED" >&6
3256 echo "$as_me:$LINENO: checking for egrep" >&5
3257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3258 if test "${ac_cv_prog_egrep+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3262 then ac_cv_prog_egrep='grep -E'
3263 else ac_cv_prog_egrep='egrep'
3266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3268 EGREP=$ac_cv_prog_egrep
3272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3273 if test "${with_gnu_ld+set}" = set; then
3274 withval="$with_gnu_ld"
3275 test "$withval" = no || with_gnu_ld=yes
3280 if test "$GCC" = yes; then
3281 # Check if gcc -print-prog-name=ld gives a path.
3282 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3286 # gcc leaves a trailing carriage return which upsets mingw
3287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3292 # Accept absolute paths.
3294 re_direlt='/[^/][^/]*/\.\./'
3295 # Canonicalize the pathname of ld
3296 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3297 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3298 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3300 test -z "$LD" && LD="$ac_prog"
3303 # If it fails, then pretend we aren't using GCC.
3307 # If it is relative, then search for the first ld in PATH.
3311 elif test "$with_gnu_ld" = yes; then
3312 echo "$as_me:$LINENO: checking for GNU ld" >&5
3313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3315 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3318 if test "${lt_cv_path_LD+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -z "$LD"; then
3322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3323 for ac_dir in $PATH; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3327 lt_cv_path_LD="$ac_dir/$ac_prog"
3328 # Check to see if the program is GNU ld. I'd rather use --version,
3329 # but apparently some variants of GNU ld only accept -v.
3330 # Break only if it was the GNU/non-GNU ld that we prefer.
3331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3332 *GNU* | *'with BFD'*)
3333 test "$with_gnu_ld" != no && break
3336 test "$with_gnu_ld" != yes && break
3343 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3348 if test -n "$LD"; then
3349 echo "$as_me:$LINENO: result: $LD" >&5
3350 echo "${ECHO_T}$LD" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3357 { (exit 1); exit 1; }; }
3358 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3364 case `$LD -v 2>&1 </dev/null` in
3365 *GNU* | *'with BFD'*)
3366 lt_cv_prog_gnu_ld=yes
3369 lt_cv_prog_gnu_ld=no
3373 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3375 with_gnu_ld=$lt_cv_prog_gnu_ld
3378 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3380 if test "${lt_cv_ld_reload_flag+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 lt_cv_ld_reload_flag='-r'
3385 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3387 reload_flag=$lt_cv_ld_reload_flag
3388 case $reload_flag in
3390 *) reload_flag=" $reload_flag" ;;
3392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3395 if test "$GCC" = yes; then
3396 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3403 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3404 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3405 if test "${lt_cv_path_NM+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 if test -n "$NM"; then
3409 # Let the user override the test.
3412 lt_nm_to_check="${ac_tool_prefix}nm"
3413 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3414 lt_nm_to_check="$lt_nm_to_check nm"
3416 for lt_tmp_nm in $lt_nm_to_check; do
3417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3418 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3420 test -z "$ac_dir" && ac_dir=.
3421 tmp_nm="$ac_dir/$lt_tmp_nm"
3422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3423 # Check to see if the nm accepts a BSD-compat flag.
3424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425 # nm: unknown option "B" ignored
3426 # Tru64's nm complains that /dev/null is an invalid object file
3427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3428 */dev/null* | *'Invalid file or object type'*)
3429 lt_cv_path_NM="$tmp_nm -B"
3433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3435 lt_cv_path_NM="$tmp_nm -p"
3439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3440 continue # so that we can try to find one that supports BSD flags
3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3452 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3453 echo "${ECHO_T}$lt_cv_path_NM" >&6
3456 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459 if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464 echo "${ECHO_T}no, using $LN_S" >&6
3467 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3468 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3469 if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
3473 lt_cv_file_magic_test_file=
3474 lt_cv_deplibs_check_method='unknown'
3475 # Need to set the preceding variable on all platforms that support
3476 # interlibrary dependencies.
3477 # 'none' -- dependencies not supported.
3478 # `unknown' -- same as none, but documents that we really don't know.
3479 # 'pass_all' -- all dependencies passed with no checks.
3480 # 'test_compile' -- check by making test program.
3481 # 'file_magic [[regex]]' -- check by looking for files in library path
3482 # which responds to the $file_magic_cmd with a given extended regex.
3483 # If you have `file' or equivalent on your system and you're not sure
3484 # whether `pass_all' will *always* work, you probably want this one.
3488 lt_cv_deplibs_check_method=pass_all
3492 lt_cv_deplibs_check_method=pass_all
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3502 # func_win32_libid is a shell function defined in ltmain.sh
3503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3504 lt_cv_file_magic_cmd='func_win32_libid'
3508 # Base MSYS/MinGW do not provide the 'file' command needed by
3509 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3510 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3511 lt_cv_file_magic_cmd='$OBJDUMP -f'
3514 darwin* | rhapsody*)
3515 lt_cv_deplibs_check_method=pass_all
3518 freebsd* | kfreebsd*-gnu | dragonfly*)
3519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3522 # Not sure whether the presence of OpenBSD here was a mistake.
3523 # Let's accept both of them until this is cleared up.
3524 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3525 lt_cv_file_magic_cmd=/usr/bin/file
3526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3530 lt_cv_deplibs_check_method=pass_all
3535 lt_cv_deplibs_check_method=pass_all
3538 hpux10.20* | hpux11*)
3539 lt_cv_file_magic_cmd=/usr/bin/file
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3543 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3546 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]'
3547 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3551 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3557 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3561 irix5* | irix6* | nonstopux*)
3563 *-32|*"-32 ") libmagic=32-bit;;
3564 *-n32|*"-n32 ") libmagic=N32;;
3565 *-64|*"-64 ") libmagic=64-bit;;
3566 *) libmagic=never-match;;
3568 lt_cv_deplibs_check_method=pass_all
3571 # This must be Linux ELF.
3573 lt_cv_deplibs_check_method=pass_all
3577 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3586 lt_cv_file_magic_cmd=/usr/bin/file
3587 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3591 lt_cv_deplibs_check_method=unknown
3595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3602 osf3* | osf4* | osf5*)
3603 lt_cv_deplibs_check_method=pass_all
3607 lt_cv_deplibs_check_method=pass_all
3611 case $host_vendor in
3613 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]'
3614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3617 lt_cv_deplibs_check_method=pass_all
3620 lt_cv_file_magic_cmd='/bin/file'
3621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3624 lt_cv_file_magic_cmd='/bin/file'
3625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3626 lt_cv_file_magic_test_file=/lib/libc.so
3629 lt_cv_deplibs_check_method=pass_all
3632 lt_cv_deplibs_check_method=pass_all
3637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3638 lt_cv_deplibs_check_method=pass_all
3643 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3645 file_magic_cmd=$lt_cv_file_magic_cmd
3646 deplibs_check_method=$lt_cv_deplibs_check_method
3647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3652 # If no C compiler was specified, use CC.
3655 # If no C compiler flags were specified, use CFLAGS.
3656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3658 # Allow CC to be a program name with arguments.
3662 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3663 if test "${enable_libtool_lock+set}" = set; then
3664 enableval="$enable_libtool_lock"
3667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3669 # Some flags need to be propagated to the compiler or linker for good
3673 # Find out which ABI we are using.
3674 echo 'int i;' > conftest.$ac_ext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; then
3680 case `/usr/bin/file conftest.$ac_objext` in
3692 # Find out which ABI we are using.
3693 echo '#line __oline__ "configure"' > conftest.$ac_ext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; then
3699 if test "$lt_cv_prog_gnu_ld" = yes; then
3700 case `/usr/bin/file conftest.$ac_objext` in
3702 LD="${LD-ld} -melf32bsmip"
3705 LD="${LD-ld} -melf32bmipn32"
3708 LD="${LD-ld} -melf64bmip"
3712 case `/usr/bin/file conftest.$ac_objext` in
3728 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3729 # Find out which ABI we are using.
3730 echo 'int i;' > conftest.$ac_ext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732 (eval $ac_compile) 2>&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; then
3736 case `/usr/bin/file conftest.o` in
3740 LD="${LD-ld} -m elf_i386"
3742 ppc64-*linux*|powerpc64-*linux*)
3743 LD="${LD-ld} -m elf32ppclinux"
3746 LD="${LD-ld} -m elf_s390"
3749 LD="${LD-ld} -m elf32_sparc"
3756 LD="${LD-ld} -m elf_x86_64"
3758 ppc*-*linux*|powerpc*-*linux*)
3759 LD="${LD-ld} -m elf64ppc"
3762 LD="${LD-ld} -m elf64_s390"
3765 LD="${LD-ld} -m elf64_sparc"
3775 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3776 SAVE_CFLAGS="$CFLAGS"
3777 CFLAGS="$CFLAGS -belf"
3778 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3779 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3780 if test "${lt_cv_cc_needs_belf+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806 (eval $ac_link) 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -z "$ac_c_werror_flag"
3814 || test ! -s conftest.err'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; } &&
3820 { ac_try='test -s conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 lt_cv_cc_needs_belf=yes
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 lt_cv_cc_needs_belf=no
3833 rm -f conftest.err conftest.$ac_objext \
3834 conftest$ac_exeext conftest.$ac_ext
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3843 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3844 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3845 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3846 CFLAGS="$SAVE_CFLAGS"
3850 # Find out which ABI we are using.
3851 echo 'int i;' > conftest.$ac_ext
3852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; then
3857 case `/usr/bin/file conftest.o` in
3859 case $lt_cv_prog_gnu_ld in
3860 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3861 *) LD="${LD-ld} -64" ;;
3872 need_locks="$enable_libtool_lock"
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3881 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3882 # On Suns, sometimes $CPP names a directory.
3883 if test -n "$CPP" && test -d "$CPP"; then
3886 if test -z "$CPP"; then
3887 if test "${ac_cv_prog_CPP+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 # Double quotes because CPP needs to be expanded
3891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3894 for ac_c_preproc_warn_flag in '' yes
3896 # Use a header file that comes with gcc, so configuring glibc
3897 # with a fresh cross-compiler works.
3898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3899 # <limits.h> exists even on freestanding compilers.
3900 # On the NeXT, cc -E runs the code through the compiler's parser,
3901 # not just through cpp. "Syntax error" is here to catch this case.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3909 @%:@ include <limits.h>
3911 @%:@ include <assert.h>
3915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null; then
3923 if test -s conftest.err; then
3924 ac_cpp_err=$ac_c_preproc_warn_flag
3925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3932 if test -z "$ac_cpp_err"; then
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3938 # Broken: fails on valid input.
3941 rm -f conftest.err conftest.$ac_ext
3943 # OK, works on sane cases. Now check whether non-existent headers
3944 # can be detected and how.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 @%:@include <ac_nonexistent.h>
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } >/dev/null; then
3961 if test -s conftest.err; then
3962 ac_cpp_err=$ac_c_preproc_warn_flag
3963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970 if test -z "$ac_cpp_err"; then
3971 # Broken: success on invalid input.
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 # Passes both tests.
3981 rm -f conftest.err conftest.$ac_ext
3984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3985 rm -f conftest.err conftest.$ac_ext
3986 if $ac_preproc_ok; then
3998 echo "$as_me:$LINENO: result: $CPP" >&5
3999 echo "${ECHO_T}$CPP" >&6
4001 for ac_c_preproc_warn_flag in '' yes
4003 # Use a header file that comes with gcc, so configuring glibc
4004 # with a fresh cross-compiler works.
4005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 # <limits.h> exists even on freestanding compilers.
4007 # On the NeXT, cc -E runs the code through the compiler's parser,
4008 # not just through cpp. "Syntax error" is here to catch this case.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4016 @%:@ include <limits.h>
4018 @%:@ include <assert.h>
4022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } >/dev/null; then
4030 if test -s conftest.err; then
4031 ac_cpp_err=$ac_c_preproc_warn_flag
4032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 if test -z "$ac_cpp_err"; then
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 # Broken: fails on valid input.
4048 rm -f conftest.err conftest.$ac_ext
4050 # OK, works on sane cases. Now check whether non-existent headers
4051 # can be detected and how.
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 @%:@include <ac_nonexistent.h>
4060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev/null; then
4068 if test -s conftest.err; then
4069 ac_cpp_err=$ac_c_preproc_warn_flag
4070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4077 if test -z "$ac_cpp_err"; then
4078 # Broken: success on invalid input.
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Passes both tests.
4088 rm -f conftest.err conftest.$ac_ext
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then
4096 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&5
4098 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details." >&2;}
4100 { (exit 1); exit 1; }; }
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136 (eval $ac_compile) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag"
4144 || test ! -s conftest.err'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; } &&
4150 { ac_try='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_header_stdc=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_cv_header_stdc=no
4163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4165 if test $ac_cv_header_stdc = yes; then
4166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "memchr" >/dev/null 2>&1; then
4180 ac_cv_header_stdc=no
4186 if test $ac_cv_header_stdc = yes; then
4187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188 cat >conftest.$ac_ext <<_ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 $EGREP "free" >/dev/null 2>&1; then
4201 ac_cv_header_stdc=no
4207 if test $ac_cv_header_stdc = yes; then
4208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4209 if test "$cross_compiling" = yes; then
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4223 # define ISLOWER(c) \
4224 (('a' <= (c) && (c) <= 'i') \
4225 || ('j' <= (c) && (c) <= 'r') \
4226 || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4235 for (i = 0; i < 256; i++)
4236 if (XOR (islower (i), ISLOWER (i))
4237 || toupper (i) != TOUPPER (i))
4242 rm -f conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4255 echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4260 ac_cv_header_stdc=no
4262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4266 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4268 if test $ac_cv_header_stdc = yes; then
4270 cat >>confdefs.h <<\_ACEOF
4271 @%:@define STDC_HEADERS 1
4276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287 inttypes.h stdint.h unistd.h
4289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290 echo "$as_me:$LINENO: checking for $ac_header" >&5
4291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4303 @%:@include <$ac_header>
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest.$ac_objext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 eval "$as_ac_Header=yes"
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4332 eval "$as_ac_Header=no"
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339 cat >>confdefs.h <<_ACEOF
4340 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349 for ac_header in dlfcn.h
4351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4353 echo "$as_me:$LINENO: checking for $ac_header" >&5
4354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4361 # Is the header compilable?
4362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4371 @%:@include <$ac_header>
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1 >conftest.err
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4395 ac_header_compiler=yes
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_header_compiler=no
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4404 echo "${ECHO_T}$ac_header_compiler" >&6
4406 # Is the header present?
4407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 @%:@include <$ac_header>
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } >/dev/null; then
4425 if test -s conftest.err; then
4426 ac_cpp_err=$ac_c_preproc_warn_flag
4427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4434 if test -z "$ac_cpp_err"; then
4435 ac_header_preproc=yes
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 ac_header_preproc=no
4442 rm -f conftest.err conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444 echo "${ECHO_T}$ac_header_preproc" >&6
4446 # So? What about this header?
4447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4453 ac_header_preproc=yes
4456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4470 @%:@@%:@ ------------------------------------- @%:@@%:@
4471 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
4472 @%:@@%:@ ------------------------------------- @%:@@%:@
4475 sed "s/^/$as_me: WARNING: /" >&2
4478 echo "$as_me:$LINENO: checking for $ac_header" >&5
4479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 eval "$as_ac_Header=\$ac_header_preproc"
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4490 cat >>confdefs.h <<_ACEOF
4491 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4499 ac_cpp='$CXXCPP $CPPFLAGS'
4500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503 if test -n "$ac_tool_prefix"; then
4504 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_prog_CXX+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if test -n "$CXX"; then
4514 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 if test -n "$CXX"; then
4534 echo "$as_me:$LINENO: result: $CXX" >&5
4535 echo "${ECHO_T}$CXX" >&6
4537 echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4541 test -n "$CXX" && break
4544 if test -z "$CXX"; then
4546 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 if test -n "$ac_ct_CXX"; then
4556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_ac_ct_CXX="$ac_prog"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4575 if test -n "$ac_ct_CXX"; then
4576 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4577 echo "${ECHO_T}$ac_ct_CXX" >&6
4579 echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6
4583 test -n "$ac_ct_CXX" && break
4585 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4591 # Provide some information about the compiler.
4592 echo "$as_me:$LINENO:" \
4593 "checking for C++ compiler version" >&5
4594 ac_compiler=`set X $ac_compile; echo $2`
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4596 (eval $ac_compiler --version </dev/null >&5) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4601 (eval $ac_compiler -v </dev/null >&5) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }
4605 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4606 (eval $ac_compiler -V </dev/null >&5) 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }
4611 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4612 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4613 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>conftest.er1
4638 grep -v '^ *+' conftest.er1 >conftest.err
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -z "$ac_cxx_werror_flag"
4644 || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4667 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4668 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4669 GXX=`test $ac_compiler_gnu = yes && echo yes`
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4673 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4674 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4675 if test "${ac_cv_prog_cxx_g+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 cat >conftest.$ac_ext <<_ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_cxx_werror_flag"
4703 || test ! -s conftest.err'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest.$ac_objext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4715 ac_cv_prog_cxx_g=yes
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4725 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4726 if test "$ac_test_CXXFLAGS" = set; then
4727 CXXFLAGS=$ac_save_CXXFLAGS
4728 elif test $ac_cv_prog_cxx_g = yes; then
4729 if test "$GXX" = yes; then
4735 if test "$GXX" = yes; then
4741 for ac_declaration in \
4743 'extern "C" void std::exit (int) throw (); using std::exit;' \
4744 'extern "C" void std::exit (int); using std::exit;' \
4745 'extern "C" void exit (int) throw ();' \
4746 'extern "C" void exit (int);' \
4749 cat >conftest.$ac_ext <<_ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4756 @%:@include <stdlib.h>
4765 rm -f conftest.$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_cxx_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_cxx_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 if test -n "$ac_declaration"; then
4842 echo '#ifdef __cplusplus' >>confdefs.h
4843 echo $ac_declaration >>confdefs.h
4844 echo '#endif' >>confdefs.h
4848 ac_cpp='$CXXCPP $CPPFLAGS'
4849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4853 depcc="$CXX" am_compiler_list=
4855 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4857 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861 # We make a subdir and do the tests there. Otherwise we can end up
4862 # making bogus files that we don't know about and never remove. For
4863 # instance it was reported that on HP-UX the gcc test will end up
4864 # making a dummy file named `D' -- because `-MD' means `put the output
4867 # Copy depcomp to subdir because otherwise we won't find it if we're
4868 # using a relative directory.
4869 cp "$am_depcomp" conftest.dir
4871 # We will build objects and dependencies in a subdirectory because
4872 # it helps to detect inapplicable dependency modes. For instance
4873 # both Tru64's cc and ICC support -MD to output dependencies as a
4874 # side effect of compilation, but ICC will put the dependencies in
4875 # the current directory while Tru64 will put them in the object
4879 am_cv_CXX_dependencies_compiler_type=none
4880 if test "$am_compiler_list" = ""; then
4881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4883 for depmode in $am_compiler_list; do
4884 # Setup a source with many dependencies, because some compilers
4885 # like to wrap large dependency lists on column 80 (with \), and
4886 # we should not choose a depcomp mode which is confused by this.
4888 # We need to recreate these files for each test, as the compiler may
4889 # overwrite some of them when testing with obscure command lines.
4890 # This happens at least with the AIX C compiler.
4892 for i in 1 2 3 4 5 6; do
4893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4895 # Solaris 8's {/usr,}/bin/sh.
4896 touch sub/conftst$i.h
4898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4902 # after this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested
4904 if test "x$enable_dependency_tracking" = xyes; then
4912 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4913 # mode. It turns out that the SunPro C++ compiler does not properly
4914 # handle `-M -o', and we need to detect this.
4915 if depmode=$depmode \
4916 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4918 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4919 >/dev/null 2>conftest.err &&
4920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923 # icc doesn't choke on unknown options, it will just issue warnings
4924 # or remarks (even with -Werror). So we grep stderr for any message
4925 # that says an option was ignored or not supported.
4926 # When given -MP, icc 7.0 and 7.1 complain thusly:
4927 # icc: Command line warning: ignoring option '-M'; no argument required
4928 # The diagnosis changed in icc 8.0:
4929 # icc: Command line remark: option '-MP' not supported
4930 if (grep 'ignoring option' conftest.err ||
4931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4932 am_cv_CXX_dependencies_compiler_type=$depmode
4941 am_cv_CXX_dependencies_compiler_type=none
4945 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4946 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4947 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4952 test "x$enable_dependency_tracking" != xno \
4953 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4954 am__fastdepCXX_TRUE=
4955 am__fastdepCXX_FALSE='#'
4957 am__fastdepCXX_TRUE='#'
4958 am__fastdepCXX_FALSE=
4964 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4965 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4966 (test "X$CXX" != "Xg++"))) ; then
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4974 if test -z "$CXXCPP"; then
4975 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 # Double quotes because CXXCPP needs to be expanded
4979 for CXXCPP in "$CXX -E" "/lib/cpp"
4982 for ac_cxx_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4997 @%:@ include <limits.h>
4999 @%:@ include <assert.h>
5003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1 >conftest.err
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } >/dev/null; then
5011 if test -s conftest.err; then
5012 ac_cpp_err=$ac_cxx_preproc_warn_flag
5013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5020 if test -z "$ac_cpp_err"; then
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 # Broken: fails on valid input.
5029 rm -f conftest.err conftest.$ac_ext
5031 # OK, works on sane cases. Now check whether non-existent headers
5032 # can be detected and how.
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 @%:@include <ac_nonexistent.h>
5041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5044 grep -v '^ *+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null; then
5049 if test -s conftest.err; then
5050 ac_cpp_err=$ac_cxx_preproc_warn_flag
5051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5058 if test -z "$ac_cpp_err"; then
5059 # Broken: success on invalid input.
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 # Passes both tests.
5069 rm -f conftest.err conftest.$ac_ext
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then
5079 ac_cv_prog_CXXCPP=$CXXCPP
5082 CXXCPP=$ac_cv_prog_CXXCPP
5084 ac_cv_prog_CXXCPP=$CXXCPP
5086 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5087 echo "${ECHO_T}$CXXCPP" >&6
5089 for ac_cxx_preproc_warn_flag in '' yes
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error" is here to catch this case.
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5104 @%:@ include <limits.h>
5106 @%:@ include <assert.h>
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_cxx_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5127 if test -z "$ac_cpp_err"; then
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Broken: fails on valid input.
5136 rm -f conftest.err conftest.$ac_ext
5138 # OK, works on sane cases. Now check whether non-existent headers
5139 # can be detected and how.
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 @%:@include <ac_nonexistent.h>
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_cxx_preproc_warn_flag
5158 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5165 if test -z "$ac_cpp_err"; then
5166 # Broken: success on invalid input.
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 # Passes both tests.
5176 rm -f conftest.err conftest.$ac_ext
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5184 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5187 See \`config.log' for more details." >&2;}
5188 { (exit 1); exit 1; }; }
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5201 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5202 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5204 if test -n "$ac_tool_prefix"; then
5205 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_F77+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 if test -n "$F77"; then
5215 ac_cv_prog_F77="$F77" # Let the user override the test.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 if test -n "$F77"; then
5235 echo "$as_me:$LINENO: result: $F77" >&5
5236 echo "${ECHO_T}$F77" >&6
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5242 test -n "$F77" && break
5245 if test -z "$F77"; then
5247 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test -n "$ac_ct_F77"; then
5257 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_ac_ct_F77="$ac_prog"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5276 if test -n "$ac_ct_F77"; then
5277 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5278 echo "${ECHO_T}$ac_ct_F77" >&6
5280 echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5284 test -n "$ac_ct_F77" && break
5291 # Provide some information about the compiler.
5292 echo "$as_me:__oline__:" \
5293 "checking for Fortran 77 compiler version" >&5
5294 ac_compiler=`set X $ac_compile; echo $2`
5295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5296 (eval $ac_compiler --version </dev/null >&5) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }
5300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5301 (eval $ac_compiler -v </dev/null >&5) 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5306 (eval $ac_compiler -V </dev/null >&5) 2>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5312 # If we don't use `.F' as extension, the preprocessor is not run on the
5313 # input file. (Note that this only needs to work for GNU compilers.)
5316 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5317 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5318 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_f77_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5362 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5363 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5365 ac_test_FFLAGS=${FFLAGS+set}
5366 ac_save_FFLAGS=$FFLAGS
5368 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5369 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5370 if test "${ac_cv_prog_f77_g+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 cat >conftest.$ac_ext <<_ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try='test -z "$ac_f77_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_prog_f77_g=yes
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5412 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5413 if test "$ac_test_FFLAGS" = set; then
5414 FFLAGS=$ac_save_FFLAGS
5415 elif test $ac_cv_prog_f77_g = yes; then
5416 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5422 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5429 G77=`test $ac_compiler_gnu = yes && echo yes`
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5440 # find the maximum length of command line arguments
5441 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5442 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5443 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 # On DJGPP, this test can blow up pretty badly due to problems in libc
5452 # (any single argument exceeding 2000 bytes causes a buffer overrun
5453 # during glob expansion). Even if it were fixed, the result of this
5454 # check would be larger than it should be.
5455 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5459 # Under GNU Hurd, this test is not required because there is
5460 # no limit to the length of command line arguments.
5461 # Libtool will interpret -1 as no limit whatsoever
5462 lt_cv_sys_max_cmd_len=-1;
5466 # On Win9x/ME, this test blows up -- it succeeds, but takes
5467 # about 5 minutes as the teststring grows exponentially.
5468 # Worse, since 9x/ME are not pre-emptively multitasking,
5469 # you end up with a "frozen" computer, even though with patience
5470 # the test eventually succeeds (with a max line length of 256k).
5471 # Instead, let's just punt: use the minimum linelength reported by
5472 # all of the supported platforms: 8192 (on NT/2K/XP).
5473 lt_cv_sys_max_cmd_len=8192;
5477 # On AmigaOS with pdksh, this test takes hours, literally.
5478 # So we just punt and use a minimum line length of 8192.
5479 lt_cv_sys_max_cmd_len=8192;
5482 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5483 # This has been around since 386BSD, at least. Likely further.
5484 if test -x /sbin/sysctl; then
5485 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5486 elif test -x /usr/sbin/sysctl; then
5487 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5489 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5491 # And add a safety zone
5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5497 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5498 lt_cv_sys_max_cmd_len=196608
5502 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5503 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5504 # nice to cause kernel panics so lets avoid the loop below.
5505 # First set a reasonable default.
5506 lt_cv_sys_max_cmd_len=16384
5508 if test -x /sbin/sysconfig; then
5509 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5510 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5515 lt_cv_sys_max_cmd_len=102400
5517 sysv5* | sco5v6* | sysv4.2uw2*)
5518 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5519 if test -n "$kargmax"; then
5520 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5522 lt_cv_sys_max_cmd_len=32768
5526 # If test is not a shell built-in, we'll probably end up computing a
5527 # maximum length that is only half of the actual maximum length, but
5529 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531 = "XX$teststring") >/dev/null 2>&1 &&
5532 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533 lt_cv_sys_max_cmd_len=$new_result &&
5534 test $i != 17 # 1/2 MB should be enough
5537 teststring=$teststring$teststring
5540 # Add a significant safety factor because C++ compilers can tack on massive
5541 # amounts of additional arguments before passing them to the linker.
5542 # It appears as though 1/2 is a usable value.
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5549 if test -n $lt_cv_sys_max_cmd_len ; then
5550 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5553 echo "$as_me:$LINENO: result: none" >&5
5554 echo "${ECHO_T}none" >&6
5560 # Check for command to grab the raw symbol name followed by C symbol from nm.
5561 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5562 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5563 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 # These are sane defaults that work on at least a few old systems.
5568 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5570 # Character class describing NM global symbol codes.
5571 symcode='[BCDEGRST]'
5573 # Regexp to match symbols that can be accessed directly from C.
5574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5576 # Transform an extracted symbol line into a proper C declaration
5577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5579 # Transform an extracted symbol line into symbol name and symbol address
5580 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'"
5582 # Define system-specific variables.
5587 cygwin* | mingw* | pw32*)
5588 symcode='[ABCDGISTW]'
5590 hpux*) # Its linker distinguishes data from code symbols
5591 if test "$host_cpu" = ia64; then
5592 symcode='[ABCDEGRST]'
5594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5595 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'"
5598 if test "$host_cpu" = ia64; then
5599 symcode='[ABCDGIRSTW]'
5600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601 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'"
5605 symcode='[BCDEGRST]'
5608 symcode='[BCDEGQRST]'
5619 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5627 # Handle CRLF in mingw tool chain
5631 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5635 # If we're using GNU nm, then use its standard symbol codes.
5636 case `$NM -V 2>&1` in
5637 *GNU* | *'with BFD'*)
5638 symcode='[ABCDGIRSTW]' ;;
5641 # Try without a prefix undercore, then with it.
5642 for ac_symprfx in "" "_"; do
5644 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5645 symxfrm="\\1 $ac_symprfx\\2 \\2"
5647 # Write the raw and C identifiers.
5648 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5650 # Check to see that the pipe works correctly.
5654 cat > conftest.$ac_ext <<EOF
5659 void nm_test_func(){}
5663 int main(){nm_test_var='a';nm_test_func();return(0);}
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; then
5671 # Now try to grab the symbols.
5673 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5674 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && test -s "$nlist"; then
5678 # Try sorting and uniquifying the output.
5679 if sort "$nlist" | uniq > "$nlist"T; then
5680 mv -f "$nlist"T "$nlist"
5685 # Make sure that we snagged all the symbols we need.
5686 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5687 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5688 cat <<EOF > conftest.$ac_ext
5694 # Now generate the symbol file.
5695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5697 cat <<EOF >> conftest.$ac_ext
5698 #if defined (__STDC__) && __STDC__
5699 # define lt_ptr_t void *
5701 # define lt_ptr_t char *
5705 /* The mapping between symbol names and symbols. */
5710 lt_preloaded_symbols[] =
5713 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5714 cat <<\EOF >> conftest.$ac_ext
5722 # Now try linking the two files.
5723 mv conftest.$ac_objext conftstm.$ac_objext
5724 lt_save_LIBS="$LIBS"
5725 lt_save_CFLAGS="$CFLAGS"
5726 LIBS="conftstm.$ac_objext"
5727 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5735 LIBS="$lt_save_LIBS"
5736 CFLAGS="$lt_save_CFLAGS"
5738 echo "cannot find nm_test_func in $nlist" >&5
5741 echo "cannot find nm_test_var in $nlist" >&5
5744 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5747 echo "$progname: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5750 rm -f conftest* conftst*
5752 # Do not use the global_symbol_pipe unless it works.
5753 if test "$pipe_works" = yes; then
5756 lt_cv_sys_global_symbol_pipe=
5762 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5763 lt_cv_sys_global_symbol_to_cdecl=
5765 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5766 echo "$as_me:$LINENO: result: failed" >&5
5767 echo "${ECHO_T}failed" >&6
5769 echo "$as_me:$LINENO: result: ok" >&5
5770 echo "${ECHO_T}ok" >&6
5773 echo "$as_me:$LINENO: checking for objdir" >&5
5774 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5775 if test "${lt_cv_objdir+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 rm -f .libs 2>/dev/null
5779 mkdir .libs 2>/dev/null
5780 if test -d .libs; then
5783 # MS-DOS does not allow filenames that begin with a dot.
5786 rmdir .libs 2>/dev/null
5788 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5789 echo "${ECHO_T}$lt_cv_objdir" >&6
5790 objdir=$lt_cv_objdir
5798 # AIX sometimes has problems with the GCC collect2 program. For some
5799 # reason, if we set the COLLECT_NAMES environment variable, the problems
5800 # vanish in a puff of smoke.
5801 if test "X${COLLECT_NAMES+set}" != Xset; then
5803 export COLLECT_NAMES
5808 # Sed substitution that helps us do robust quoting. It backslashifies
5809 # metacharacters that are still active within double-quoted strings.
5810 Xsed='sed -e 1s/^X//'
5811 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5813 # Same as above, but do not quote variable references.
5814 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5816 # Sed substitution to delay expansion of an escaped shell variable in a
5817 # double_quote_subst'ed string.
5818 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5820 # Sed substitution to avoid accidental globbing in evaled expressions
5821 no_glob_subst='s/\*/\\\*/g'
5827 default_ofile=libtool
5828 can_build_shared=yes
5830 # All known linkers require a `.a' archive for static linking (except MSVC,
5831 # which needs '.lib').
5833 ltmain="$ac_aux_dir/ltmain.sh"
5834 ofile="$default_ofile"
5835 with_gnu_ld="$lt_cv_prog_gnu_ld"
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}ar; ac_word=$2
5840 echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5842 if test "${ac_cv_prog_AR+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 if test -n "$AR"; then
5846 ac_cv_prog_AR="$AR" # Let the user override the test.
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_AR="${ac_tool_prefix}ar"
5856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 if test -n "$AR"; then
5866 echo "$as_me:$LINENO: result: $AR" >&5
5867 echo "${ECHO_T}$AR" >&6
5869 echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6
5874 if test -z "$ac_cv_prog_AR"; then
5876 # Extract the first word of "ar", so it can be a program name with args.
5877 set dummy ar; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 if test -n "$ac_ct_AR"; then
5884 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_ac_ct_AR="ar"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5903 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5904 if test -n "$ac_ct_AR"; then
5905 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5906 echo "${ECHO_T}$ac_ct_AR" >&6
5908 echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920 echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5922 if test "${ac_cv_prog_RANLIB+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 if test -n "$RANLIB"; then
5926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 RANLIB=$ac_cv_prog_RANLIB
5945 if test -n "$RANLIB"; then
5946 echo "$as_me:$LINENO: result: $RANLIB" >&5
5947 echo "${ECHO_T}$RANLIB" >&6
5949 echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5954 if test -z "$ac_cv_prog_RANLIB"; then
5955 ac_ct_RANLIB=$RANLIB
5956 # Extract the first word of "ranlib", so it can be a program name with args.
5957 set dummy ranlib; ac_word=$2
5958 echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 if test -n "$ac_ct_RANLIB"; then
5964 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_RANLIB="ranlib"
5974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5984 if test -n "$ac_ct_RANLIB"; then
5985 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5986 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5988 echo "$as_me:$LINENO: result: no" >&5
5989 echo "${ECHO_T}no" >&6
5992 RANLIB=$ac_ct_RANLIB
5994 RANLIB="$ac_cv_prog_RANLIB"
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$STRIP"; then
6006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 STRIP=$ac_cv_prog_STRIP
6025 if test -n "$STRIP"; then
6026 echo "$as_me:$LINENO: result: $STRIP" >&5
6027 echo "${ECHO_T}$STRIP" >&6
6029 echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6034 if test -z "$ac_cv_prog_STRIP"; then
6036 # Extract the first word of "strip", so it can be a program name with args.
6037 set dummy strip; ac_word=$2
6038 echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 if test -n "$ac_ct_STRIP"; then
6044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_ac_ct_STRIP="strip"
6054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6064 if test -n "$ac_ct_STRIP"; then
6065 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6066 echo "${ECHO_T}$ac_ct_STRIP" >&6
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6074 STRIP="$ac_cv_prog_STRIP"
6079 old_CFLAGS="$CFLAGS"
6081 # Set sane defaults for various variables
6082 test -z "$AR" && AR=ar
6083 test -z "$AR_FLAGS" && AR_FLAGS=cru
6084 test -z "$AS" && AS=as
6085 test -z "$CC" && CC=cc
6086 test -z "$LTCC" && LTCC=$CC
6087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6088 test -z "$DLLTOOL" && DLLTOOL=dlltool
6089 test -z "$LD" && LD=ld
6090 test -z "$LN_S" && LN_S="ln -s"
6091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6092 test -z "$NM" && NM=nm
6093 test -z "$SED" && SED=sed
6094 test -z "$OBJDUMP" && OBJDUMP=objdump
6095 test -z "$RANLIB" && RANLIB=:
6096 test -z "$STRIP" && STRIP=:
6097 test -z "$ac_objext" && ac_objext=o
6099 # Determine commands to create old-style static archives.
6100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6101 old_postinstall_cmds='chmod 644 $oldlib'
6102 old_postuninstall_cmds=
6104 if test -n "$RANLIB"; then
6107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6116 for cc_temp in $compiler""; do
6118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6127 # Only perform the check for file, if the check method requires it
6128 case $deplibs_check_method in
6130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6131 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6132 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6133 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6141 lt_save_MAGIC_CMD="$MAGIC_CMD"
6142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6144 for ac_dir in $ac_dummy; do
6146 test -z "$ac_dir" && ac_dir=.
6147 if test -f $ac_dir/${ac_tool_prefix}file; then
6148 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6149 if test -n "$file_magic_test_file"; then
6150 case $deplibs_check_method in
6152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6155 $EGREP "$file_magic_regex" > /dev/null; then
6160 *** Warning: the command libtool uses to detect shared libraries,
6161 *** $file_magic_cmd, produces output that libtool cannot recognize.
6162 *** The result is that libtool may fail to recognize shared libraries
6163 *** as such. This will affect the creation of libtool libraries that
6164 *** depend on shared libraries, but programs linked with such libtool
6165 *** libraries will work regardless of this problem. Nevertheless, you
6166 *** may want to report the problem to your system manager and/or to
6167 *** bug-libtool@gnu.org
6177 MAGIC_CMD="$lt_save_MAGIC_CMD"
6182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6183 if test -n "$MAGIC_CMD"; then
6184 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6185 echo "${ECHO_T}$MAGIC_CMD" >&6
6187 echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6191 if test -z "$lt_cv_path_MAGIC_CMD"; then
6192 if test -n "$ac_tool_prefix"; then
6193 echo "$as_me:$LINENO: checking for file" >&5
6194 echo $ECHO_N "checking for file... $ECHO_C" >&6
6195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6203 lt_save_MAGIC_CMD="$MAGIC_CMD"
6204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6206 for ac_dir in $ac_dummy; do
6208 test -z "$ac_dir" && ac_dir=.
6209 if test -f $ac_dir/file; then
6210 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6211 if test -n "$file_magic_test_file"; then
6212 case $deplibs_check_method in
6214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6217 $EGREP "$file_magic_regex" > /dev/null; then
6222 *** Warning: the command libtool uses to detect shared libraries,
6223 *** $file_magic_cmd, produces output that libtool cannot recognize.
6224 *** The result is that libtool may fail to recognize shared libraries
6225 *** as such. This will affect the creation of libtool libraries that
6226 *** depend on shared libraries, but programs linked with such libtool
6227 *** libraries will work regardless of this problem. Nevertheless, you
6228 *** may want to report the problem to your system manager and/or to
6229 *** bug-libtool@gnu.org
6239 MAGIC_CMD="$lt_save_MAGIC_CMD"
6244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6245 if test -n "$MAGIC_CMD"; then
6246 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6247 echo "${ECHO_T}$MAGIC_CMD" >&6
6249 echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6
6265 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6266 if test "${enable_libtool_lock+set}" = set; then
6267 enableval="$enable_libtool_lock"
6270 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6273 # Check whether --with-pic or --without-pic was given.
6274 if test "${with_pic+set}" = set; then
6280 test -z "$pic_mode" && pic_mode=default
6282 # Use C for the default configuration in the libtool script
6286 ac_cpp='$CPP $CPPFLAGS'
6287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292 # Source file extension for C test sources.
6295 # Object file extension for compiled C test sources.
6299 # Code to be used in simple compile tests
6300 lt_simple_compile_test_code="int some_variable = 0;\n"
6302 # Code to be used in simple link tests
6303 lt_simple_link_test_code='int main(){return(0);}\n'
6306 # If no C compiler was specified, use CC.
6309 # If no C compiler flags were specified, use CFLAGS.
6310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6312 # Allow CC to be a program name with arguments.
6316 # save warnings/boilerplate of simple test code
6317 ac_outfile=conftest.$ac_objext
6318 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6320 _lt_compiler_boilerplate=`cat conftest.err`
6323 ac_outfile=conftest.$ac_objext
6324 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6326 _lt_linker_boilerplate=`cat conftest.err`
6331 lt_prog_compiler_no_builtin_flag=
6333 if test "$GCC" = yes; then
6334 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6337 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6338 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6339 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 lt_cv_prog_compiler_rtti_exceptions=no
6343 ac_outfile=conftest.$ac_objext
6344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6345 lt_compiler_flag="-fno-rtti -fno-exceptions"
6346 # Insert the option either (1) after the last *FLAGS variable, or
6347 # (2) before a word containing "conftest.", or (3) at the end.
6348 # Note that $ac_compile itself does not contain backslashes and begins
6349 # with a dollar sign (not a hyphen), so the echo should work correctly.
6350 # The option is referenced via a variable to avoid confusing sed.
6351 lt_compile=`echo "$ac_compile" | $SED \
6352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6354 -e 's:$: $lt_compiler_flag:'`
6355 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6356 (eval "$lt_compile" 2>conftest.err)
6358 cat conftest.err >&5
6359 echo "$as_me:__oline__: \$? = $ac_status" >&5
6360 if (exit $ac_status) && test -s "$ac_outfile"; then
6361 # The compiler can only warn and ignore the option if not recognized
6362 # So say no if there are warnings other than the usual output.
6363 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6366 lt_cv_prog_compiler_rtti_exceptions=yes
6372 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6373 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6375 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6376 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6383 lt_prog_compiler_wl=
6384 lt_prog_compiler_pic=
6385 lt_prog_compiler_static=
6387 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6390 if test "$GCC" = yes; then
6391 lt_prog_compiler_wl='-Wl,'
6392 lt_prog_compiler_static='-static'
6396 # All AIX code is PIC.
6397 if test "$host_cpu" = ia64; then
6398 # AIX 5 now supports IA64 processor
6399 lt_prog_compiler_static='-Bstatic'
6404 # FIXME: we need at least 68020 code to build shared libraries, but
6405 # adding the `-m68020' flag to GCC prevents building anything better,
6407 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6410 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6411 # PIC is the default for these OSes.
6414 mingw* | pw32* | os2*)
6415 # This hack is so that the source file can tell whether it is being
6416 # built for inclusion in a dll (and should export symbols for example).
6417 lt_prog_compiler_pic='-DDLL_EXPORT'
6420 darwin* | rhapsody*)
6421 # PIC is the default on this platform
6422 # Common symbols not allowed in MH_DYLIB files
6423 lt_prog_compiler_pic='-fno-common'
6427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6428 # Instead, we relocate shared libraries at runtime.
6432 # Just because we use GCC doesn't mean we suddenly get shared libraries
6433 # on systems that don't support them.
6434 lt_prog_compiler_can_build_shared=no
6439 if test -d /usr/nec; then
6440 lt_prog_compiler_pic=-Kconform_pic
6445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6452 lt_prog_compiler_pic='-fPIC'
6458 lt_prog_compiler_pic='-fPIC'
6462 # PORTME Check for flag to pass linker flags through the system compiler.
6465 lt_prog_compiler_wl='-Wl,'
6466 if test "$host_cpu" = ia64; then
6467 # AIX 5 now supports IA64 processor
6468 lt_prog_compiler_static='-Bstatic'
6470 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6474 # PIC is the default on this platform
6475 # Common symbols not allowed in MH_DYLIB files
6476 case $cc_basename in
6478 lt_prog_compiler_pic='-qnocommon'
6479 lt_prog_compiler_wl='-Wl,'
6484 mingw* | pw32* | os2*)
6485 # This hack is so that the source file can tell whether it is being
6486 # built for inclusion in a dll (and should export symbols for example).
6487 lt_prog_compiler_pic='-DDLL_EXPORT'
6490 hpux9* | hpux10* | hpux11*)
6491 lt_prog_compiler_wl='-Wl,'
6492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6499 lt_prog_compiler_pic='+Z'
6502 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6503 lt_prog_compiler_static='${wl}-a ${wl}archive'
6506 irix5* | irix6* | nonstopux*)
6507 lt_prog_compiler_wl='-Wl,'
6508 # PIC (with -KPIC) is the default.
6509 lt_prog_compiler_static='-non_shared'
6513 lt_prog_compiler_pic='-KPIC'
6514 lt_prog_compiler_static='-Bstatic'
6518 case $cc_basename in
6520 lt_prog_compiler_wl='-Wl,'
6521 lt_prog_compiler_pic='-KPIC'
6522 lt_prog_compiler_static='-static'
6524 pgcc* | pgf77* | pgf90* | pgf95*)
6525 # Portland Group compilers (*not* the Pentium gcc compiler,
6526 # which looks to be a dead project)
6527 lt_prog_compiler_wl='-Wl,'
6528 lt_prog_compiler_pic='-fpic'
6529 lt_prog_compiler_static='-Bstatic'
6532 lt_prog_compiler_wl='-Wl,'
6533 # All Alpha code is PIC.
6534 lt_prog_compiler_static='-non_shared'
6539 osf3* | osf4* | osf5*)
6540 lt_prog_compiler_wl='-Wl,'
6541 # All OSF/1 code is PIC.
6542 lt_prog_compiler_static='-non_shared'
6546 lt_prog_compiler_pic='-KPIC'
6547 lt_prog_compiler_static='-Bstatic'
6548 case $cc_basename in
6550 lt_prog_compiler_wl='-Qoption ld ';;
6552 lt_prog_compiler_wl='-Wl,';;
6557 lt_prog_compiler_wl='-Qoption ld '
6558 lt_prog_compiler_pic='-PIC'
6559 lt_prog_compiler_static='-Bstatic'
6562 sysv4 | sysv4.2uw2* | sysv4.3*)
6563 lt_prog_compiler_wl='-Wl,'
6564 lt_prog_compiler_pic='-KPIC'
6565 lt_prog_compiler_static='-Bstatic'
6569 if test -d /usr/nec ;then
6570 lt_prog_compiler_pic='-Kconform_pic'
6571 lt_prog_compiler_static='-Bstatic'
6575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6576 lt_prog_compiler_wl='-Wl,'
6577 lt_prog_compiler_pic='-KPIC'
6578 lt_prog_compiler_static='-Bstatic'
6582 lt_prog_compiler_wl='-Wl,'
6583 lt_prog_compiler_can_build_shared=no
6587 lt_prog_compiler_pic='-pic'
6588 lt_prog_compiler_static='-Bstatic'
6592 lt_prog_compiler_can_build_shared=no
6597 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6598 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6601 # Check to make sure the PIC flag actually works.
6603 if test -n "$lt_prog_compiler_pic"; then
6605 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6607 if test "${lt_prog_compiler_pic_works+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 lt_prog_compiler_pic_works=no
6611 ac_outfile=conftest.$ac_objext
6612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6613 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6614 # Insert the option either (1) after the last *FLAGS variable, or
6615 # (2) before a word containing "conftest.", or (3) at the end.
6616 # Note that $ac_compile itself does not contain backslashes and begins
6617 # with a dollar sign (not a hyphen), so the echo should work correctly.
6618 # The option is referenced via a variable to avoid confusing sed.
6619 lt_compile=`echo "$ac_compile" | $SED \
6620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6622 -e 's:$: $lt_compiler_flag:'`
6623 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6624 (eval "$lt_compile" 2>conftest.err)
6626 cat conftest.err >&5
6627 echo "$as_me:__oline__: \$? = $ac_status" >&5
6628 if (exit $ac_status) && test -s "$ac_outfile"; then
6629 # The compiler can only warn and ignore the option if not recognized
6630 # So say no if there are warnings other than the usual output.
6631 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6634 lt_prog_compiler_pic_works=yes
6640 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6641 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6643 if test x"$lt_prog_compiler_pic_works" = xyes; then
6644 case $lt_prog_compiler_pic in
6646 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6649 lt_prog_compiler_pic=
6650 lt_prog_compiler_can_build_shared=no
6655 # For platforms which do not support PIC, -DPIC is meaningless:
6657 lt_prog_compiler_pic=
6660 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6665 # Check to make sure the static flag actually works.
6667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6668 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6669 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6670 if test "${lt_prog_compiler_static_works+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 lt_prog_compiler_static_works=no
6674 save_LDFLAGS="$LDFLAGS"
6675 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6676 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6678 # The linker can only warn and ignore the option if not recognized
6679 # So say no if there are warnings
6680 if test -s conftest.err; then
6681 # Append any errors to the config.log.
6682 cat conftest.err 1>&5
6683 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6685 if diff conftest.exp conftest.er2 >/dev/null; then
6686 lt_prog_compiler_static_works=yes
6689 lt_prog_compiler_static_works=yes
6693 LDFLAGS="$save_LDFLAGS"
6696 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6697 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6699 if test x"$lt_prog_compiler_static_works" = xyes; then
6702 lt_prog_compiler_static=
6706 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6707 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6708 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 lt_cv_prog_compiler_c_o=no
6712 $rm -r conftest 2>/dev/null
6716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6718 lt_compiler_flag="-o out/conftest2.$ac_objext"
6719 # Insert the option either (1) after the last *FLAGS variable, or
6720 # (2) before a word containing "conftest.", or (3) at the end.
6721 # Note that $ac_compile itself does not contain backslashes and begins
6722 # with a dollar sign (not a hyphen), so the echo should work correctly.
6723 lt_compile=`echo "$ac_compile" | $SED \
6724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726 -e 's:$: $lt_compiler_flag:'`
6727 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6728 (eval "$lt_compile" 2>out/conftest.err)
6730 cat out/conftest.err >&5
6731 echo "$as_me:__oline__: \$? = $ac_status" >&5
6732 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6734 # The compiler can only warn and ignore the option if not recognized
6735 # So say no if there are warnings
6736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6737 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6738 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6739 lt_cv_prog_compiler_c_o=yes
6744 # SGI C++ compiler will create directory out/ii_files/ for
6745 # template instantiation
6746 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6747 $rm out/* && rmdir out
6753 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6754 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6757 hard_links="nottested"
6758 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6759 # do not overwrite the value of need_locks provided by the user
6760 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6761 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6766 ln conftest.a conftest.b 2>&5 || hard_links=no
6767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6768 echo "$as_me:$LINENO: result: $hard_links" >&5
6769 echo "${ECHO_T}$hard_links" >&6
6770 if test "$hard_links" = no; then
6771 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6772 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6779 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6780 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6783 allow_undefined_flag=
6784 enable_shared_with_static_runtimes=no
6786 archive_expsym_cmds=
6787 old_archive_From_new_cmds=
6788 old_archive_from_expsyms_cmds=
6789 export_dynamic_flag_spec=
6790 whole_archive_flag_spec=
6791 thread_safe_flag_spec=
6792 hardcode_libdir_flag_spec=
6793 hardcode_libdir_flag_spec_ld=
6794 hardcode_libdir_separator=
6797 hardcode_shlibpath_var=unsupported
6798 link_all_deplibs=unknown
6799 hardcode_automatic=no
6802 always_export_symbols=no
6803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6804 # include_expsyms should be a list of space-separated symbols to be *always*
6805 # included in the symbol list
6807 # exclude_expsyms can be an extended regexp of symbols to exclude
6808 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6809 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6810 # as well as any symbol that contains `d'.
6811 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6813 # platforms (ab)use it in PIC code, but their linkers get confused if
6814 # the symbol is explicitly referenced. Since portable code cannot
6815 # rely on this symbol name, it's probably fine to never include it in
6816 # preloaded symbol tables.
6817 extract_expsyms_cmds=
6818 # Just being paranoid about ensuring that cc_basename is set.
6819 for cc_temp in $compiler""; do
6821 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6822 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6827 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6830 cygwin* | mingw* | pw32*)
6831 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6832 # When not using gcc, we currently assume that we are using
6833 # Microsoft Visual C++.
6834 if test "$GCC" != yes; then
6839 # we just hope/assume this is gcc and not c89 (= MSVC++)
6848 if test "$with_gnu_ld" = yes; then
6849 # If archive_cmds runs LD, not CC, wlarc should be empty
6852 # Set some defaults for GNU ld with shared library support. These
6853 # are reset later if shared libraries are not supported. Putting them
6854 # here allows them to be overridden if necessary.
6855 runpath_var=LD_RUN_PATH
6856 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6857 export_dynamic_flag_spec='${wl}--export-dynamic'
6858 # ancient GNU ld didn't support --whole-archive et. al.
6859 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6860 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6862 whole_archive_flag_spec=
6864 supports_anon_versioning=no
6865 case `$LD -v 2>/dev/null` in
6866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6869 *\ 2.11.*) ;; # other 2.11 versions
6870 *) supports_anon_versioning=yes ;;
6873 # See if GNU ld supports shared libraries.
6875 aix3* | aix4* | aix5*)
6876 # On AIX/PPC, the GNU linker is very broken
6877 if test "$host_cpu" != ia64; then
6881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6882 *** to be unable to reliably create shared libraries on AIX.
6883 *** Therefore, libtool is disabling shared libraries support. If you
6884 *** really care for shared libraries, you may want to modify your PATH
6885 *** so that a non-GNU linker is found, and then restart.
6892 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)'
6893 hardcode_libdir_flag_spec='-L$libdir'
6894 hardcode_minus_L=yes
6896 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6897 # that the semantics of dynamic libraries on AmigaOS, at least up
6898 # to version 4, is to share data among multiple programs linked
6899 # with the same dynamic library. Since this doesn't match the
6900 # behavior of shared libraries on other platforms, we can't use
6906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6907 allow_undefined_flag=unsupported
6908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6909 # support --undefined. This deserves some investigation. FIXME
6910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6916 cygwin* | mingw* | pw32*)
6917 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6918 # as there is no search path for DLLs.
6919 hardcode_libdir_flag_spec='-L$libdir'
6920 allow_undefined_flag=unsupported
6921 always_export_symbols=no
6922 enable_shared_with_static_runtimes=yes
6923 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6925 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6927 # If the export-symbols file already is a .def file (1st line
6928 # is EXPORTS), use it as is; otherwise, prepend...
6929 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6930 cp $export_symbols $output_objdir/$soname.def;
6932 echo EXPORTS > $output_objdir/$soname.def;
6933 cat $export_symbols >> $output_objdir/$soname.def;
6935 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6943 hardcode_shlibpath_var=no
6944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6945 export_dynamic_flag_spec='${wl}-E'
6946 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6947 # Instead, shared libraries are loaded at an image base (0x10000000 by
6948 # default) and relocated if they conflict, which is a slow very memory
6949 # consuming and fragmenting process. To avoid this, we pick a random,
6950 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6951 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6953 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'
6957 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6959 case $cc_basename,$host_cpu in
6960 pgcc*) # Portland Group C compiler
6961 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'
6962 tmp_addflag=' $pic_flag'
6964 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6965 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'
6966 tmp_addflag=' $pic_flag -Mnomain' ;;
6967 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6968 tmp_addflag=' -i_dynamic' ;;
6969 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6970 tmp_addflag=' -i_dynamic -nofor_main' ;;
6971 ifc* | ifort*) # Intel Fortran compiler
6972 tmp_addflag=' -nofor_main' ;;
6974 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6976 if test $supports_anon_versioning = yes; then
6977 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6979 $echo "local: *; };" >> $output_objdir/$libname.ver~
6980 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6989 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6998 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7002 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7003 *** create shared libraries on Solaris systems. Therefore, libtool
7004 *** is disabling shared libraries support. We urge you to upgrade GNU
7005 *** binutils to release 2.9.1 or newer. Another option is to modify
7006 *** your PATH or compiler configuration so that the native linker is
7007 *** used, and then restart.
7010 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7019 case `$LD -v 2>&1` in
7020 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7024 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7025 *** reliably create shared libraries on SCO systems. Therefore, libtool
7026 *** is disabling shared libraries support. We urge you to upgrade GNU
7027 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7028 *** your PATH or compiler configuration so that the native linker is
7029 *** used, and then restart.
7034 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7035 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7037 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7046 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7049 hardcode_shlibpath_var=no
7053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7062 if test "$ld_shlibs" = no; then
7064 hardcode_libdir_flag_spec=
7065 export_dynamic_flag_spec=
7066 whole_archive_flag_spec=
7069 # PORTME fill in a description of your system's linker (not GNU ld)
7072 allow_undefined_flag=unsupported
7073 always_export_symbols=yes
7074 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'
7075 # Note: this linker hardcodes the directories in LIBPATH if there
7076 # are no directories specified by -L.
7077 hardcode_minus_L=yes
7078 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7079 # Neither direct hardcoding nor static linking is supported with a
7081 hardcode_direct=unsupported
7086 if test "$host_cpu" = ia64; then
7087 # On IA64, the linker does run time linking by default, so we don't
7088 # have to do anything special.
7089 aix_use_runtimelinking=no
7090 exp_sym_flag='-Bexport'
7093 # If we're using GNU nm, then we don't want the "-C" option.
7094 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7095 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7096 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'
7098 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'
7100 aix_use_runtimelinking=no
7102 # Test if we are trying to use run time linking or normal
7103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7104 # need to do runtime linking.
7105 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7106 for ld_flag in $LDFLAGS; do
7107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7108 aix_use_runtimelinking=yes
7115 exp_sym_flag='-bexport'
7116 no_entry_flag='-bnoentry'
7119 # When large executables or shared objects are built, AIX ld can
7120 # have problems creating the table of contents. If linking a library
7121 # or program results in "error TOC overflow" add -mminimal-toc to
7122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7127 hardcode_libdir_separator=':'
7128 link_all_deplibs=yes
7130 if test "$GCC" = yes; then
7131 case $host_os in aix4.[012]|aix4.[012].*)
7132 # We only want to do this on AIX 4.2 and lower, the check
7133 # below for broken collect2 doesn't work under 4.3+
7134 collect2name=`${CC} -print-prog-name=collect2`
7135 if test -f "$collect2name" && \
7136 strings "$collect2name" | grep resolve_lib_name >/dev/null
7138 # We have reworked collect2
7141 # We have old collect2
7142 hardcode_direct=unsupported
7143 # It fails to find uninstalled libraries when the uninstalled
7144 # path is not listed in the libpath. Setting hardcode_minus_L
7145 # to unsupported forces relinking
7146 hardcode_minus_L=yes
7147 hardcode_libdir_flag_spec='-L$libdir'
7148 hardcode_libdir_separator=
7152 shared_flag='-shared'
7153 if test "$aix_use_runtimelinking" = yes; then
7154 shared_flag="$shared_flag "'${wl}-G'
7158 if test "$host_cpu" = ia64; then
7159 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7160 # chokes on -Wl,-G. The following line is correct:
7163 if test "$aix_use_runtimelinking" = yes; then
7164 shared_flag='${wl}-G'
7166 shared_flag='${wl}-bM:SRE'
7171 # It seems that -bexpall does not export symbols beginning with
7172 # underscore (_), so it is better to generate a list of symbols to export.
7173 always_export_symbols=yes
7174 if test "$aix_use_runtimelinking" = yes; then
7175 # Warning - without using the other runtime loading flags (-brtl),
7176 # -berok will link without error, but may produce a broken library.
7177 allow_undefined_flag='-berok'
7178 # Determine the default libpath from the value encoded in an empty executable.
7179 cat >conftest.$ac_ext <<_ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7194 rm -f conftest.$ac_objext conftest$ac_exeext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7196 (eval $ac_link) 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest$ac_exeext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7219 # Check for a 64-bit object if we didn't find anything.
7220 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; }
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7227 rm -f conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7231 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7232 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"
7234 if test "$host_cpu" = ia64; then
7235 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7236 allow_undefined_flag="-z nodefs"
7237 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"
7239 # Determine the default libpath from the value encoded in an empty executable.
7240 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257 (eval $ac_link) 2>conftest.er1
7259 grep -v '^ *+' conftest.er1 >conftest.err
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest$ac_exeext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7280 # Check for a 64-bit object if we didn't find anything.
7281 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; }
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7288 rm -f conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7293 # Warning - without using the other run time loading flags,
7294 # -berok will link without error, but may produce a broken library.
7295 no_undefined_flag=' ${wl}-bernotok'
7296 allow_undefined_flag=' ${wl}-berok'
7297 # Exported symbols can be pulled into shared objects from archives
7298 whole_archive_flag_spec='$convenience'
7299 archive_cmds_need_lc=yes
7300 # This is similar to how AIX traditionally builds its shared libraries.
7301 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'
7307 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)'
7308 hardcode_libdir_flag_spec='-L$libdir'
7309 hardcode_minus_L=yes
7310 # see comment about different semantics on the GNU ld section
7315 export_dynamic_flag_spec=-rdynamic
7318 cygwin* | mingw* | pw32*)
7319 # When not using gcc, we currently assume that we are using
7320 # Microsoft Visual C++.
7321 # hardcode_libdir_flag_spec is actually meaningless, as there is
7322 # no search path for DLLs.
7323 hardcode_libdir_flag_spec=' '
7324 allow_undefined_flag=unsupported
7325 # Tell ltmain to make .lib files, not .a files.
7327 # Tell ltmain to make .dll files, not .so files.
7329 # FIXME: Setting linknames here is a bad hack.
7330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7331 # The linker will automatically build a .lib file if we build a DLL.
7332 old_archive_From_new_cmds='true'
7333 # FIXME: Should let the user specify the lib program.
7334 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7335 fix_srcfile_path='`cygpath -w "$srcfile"`'
7336 enable_shared_with_static_runtimes=yes
7339 darwin* | rhapsody*)
7341 rhapsody* | darwin1.[012])
7342 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7346 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7348 case ${MACOSX_DEPLOYMENT_TARGET} in
7350 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7353 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7359 archive_cmds_need_lc=no
7361 hardcode_automatic=yes
7362 hardcode_shlibpath_var=unsupported
7363 whole_archive_flag_spec=''
7364 link_all_deplibs=yes
7365 if test "$GCC" = yes ; then
7366 output_verbose_link_cmd='echo'
7367 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7368 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7370 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}'
7371 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}'
7373 case $cc_basename in
7375 output_verbose_link_cmd='echo'
7376 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7377 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7379 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}'
7380 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}'
7390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391 hardcode_libdir_flag_spec='-L$libdir'
7392 hardcode_shlibpath_var=no
7399 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7400 # support. Future versions do this automatically, but an explicit c++rt0.o
7401 # does not break anything, and helps significantly (at the cost of a little
7404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7405 hardcode_libdir_flag_spec='-R$libdir'
7407 hardcode_shlibpath_var=no
7410 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7414 hardcode_minus_L=yes
7415 hardcode_shlibpath_var=no
7418 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7419 freebsd* | kfreebsd*-gnu | dragonfly*)
7420 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7421 hardcode_libdir_flag_spec='-R$libdir'
7423 hardcode_shlibpath_var=no
7427 if test "$GCC" = yes; then
7428 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'
7430 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'
7432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7433 hardcode_libdir_separator=:
7436 # hardcode_minus_L: Not really in the search PATH,
7437 # but as the default location of the library.
7438 hardcode_minus_L=yes
7439 export_dynamic_flag_spec='${wl}-E'
7443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7448 if test "$with_gnu_ld" = no; then
7449 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7450 hardcode_libdir_separator=:
7453 export_dynamic_flag_spec='${wl}-E'
7455 # hardcode_minus_L: Not really in the search PATH,
7456 # but as the default location of the library.
7457 hardcode_minus_L=yes
7462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7465 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7468 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7471 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7477 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7487 if test "$with_gnu_ld" = no; then
7488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7489 hardcode_libdir_separator=:
7493 hardcode_libdir_flag_spec_ld='+b $libdir'
7495 hardcode_shlibpath_var=no
7499 export_dynamic_flag_spec='${wl}-E'
7501 # hardcode_minus_L: Not really in the search PATH,
7502 # but as the default location of the library.
7503 hardcode_minus_L=yes
7509 irix5* | irix6* | nonstopux*)
7510 if test "$GCC" = yes; then
7511 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'
7513 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'
7514 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7517 hardcode_libdir_separator=:
7518 link_all_deplibs=yes
7522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7525 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7527 hardcode_libdir_flag_spec='-R$libdir'
7529 hardcode_shlibpath_var=no
7533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7536 hardcode_libdir_separator=:
7537 hardcode_shlibpath_var=no
7542 hardcode_shlibpath_var=no
7543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7545 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7547 export_dynamic_flag_spec='${wl}-E'
7550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7552 hardcode_libdir_flag_spec='-R$libdir'
7555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7563 hardcode_libdir_flag_spec='-L$libdir'
7564 hardcode_minus_L=yes
7565 allow_undefined_flag=unsupported
7566 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'
7567 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7571 if test "$GCC" = yes; then
7572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7573 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'
7575 allow_undefined_flag=' -expect_unresolved \*'
7576 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'
7578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7579 hardcode_libdir_separator=:
7582 osf4* | osf5*) # as osf3* with the addition of -msym flag
7583 if test "$GCC" = yes; then
7584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7585 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'
7586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7588 allow_undefined_flag=' -expect_unresolved \*'
7589 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'
7590 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7591 $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'
7593 # Both c and cxx compiler support -rpath directly
7594 hardcode_libdir_flag_spec='-rpath $libdir'
7596 hardcode_libdir_separator=:
7600 no_undefined_flag=' -z text'
7601 if test "$GCC" = yes; then
7603 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7609 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7612 hardcode_libdir_flag_spec='-R$libdir'
7613 hardcode_shlibpath_var=no
7615 solaris2.[0-5] | solaris2.[0-5].*) ;;
7617 # The compiler driver will combine linker options so we
7618 # cannot just pass the convience library names through
7619 # without $wl, iff we do not link with $LD.
7620 # Luckily, gcc supports the same syntax we need for Sun Studio.
7621 # Supported since Solaris 2.6 (maybe 2.5.1?)
7624 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7626 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' ;;
7629 link_all_deplibs=yes
7633 if test "x$host_vendor" = xsequent; then
7634 # Use $CC to link under sequent, because it throws in some extra .o
7635 # files that make .init and .fini sections work.
7636 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7638 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7640 hardcode_libdir_flag_spec='-L$libdir'
7642 hardcode_minus_L=yes
7643 hardcode_shlibpath_var=no
7647 case $host_vendor in
7649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650 hardcode_direct=yes # is this really true???
7653 ## LD is ld it makes a PLAMLIB
7654 ## CC just makes a GrossModule.
7655 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7656 reload_cmds='$CC -r -o $output$reload_objs'
7660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7661 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7664 runpath_var='LD_RUN_PATH'
7665 hardcode_shlibpath_var=no
7669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670 hardcode_shlibpath_var=no
7671 export_dynamic_flag_spec='-Bexport'
7675 if test -d /usr/nec; then
7676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677 hardcode_shlibpath_var=no
7678 runpath_var=LD_RUN_PATH
7679 hardcode_runpath_var=yes
7684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7685 no_undefined_flag='${wl}-z,text'
7686 archive_cmds_need_lc=no
7687 hardcode_shlibpath_var=no
7688 runpath_var='LD_RUN_PATH'
7690 if test "$GCC" = yes; then
7691 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7692 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7694 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7695 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7699 sysv5* | sco3.2v5* | sco5v6*)
7700 # Note: We can NOT use -z defs as we might desire, because we do not
7701 # link with -lc, and that would cause any symbols used from libc to
7702 # always be unresolved, which means just about no library would
7703 # ever link correctly. If we're not using GNU ld we use -z text
7704 # though, which does catch some bad symbols but isn't as heavy-handed
7706 no_undefined_flag='${wl}-z,text'
7707 allow_undefined_flag='${wl}-z,nodefs'
7708 archive_cmds_need_lc=no
7709 hardcode_shlibpath_var=no
7710 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7711 hardcode_libdir_separator=':'
7712 link_all_deplibs=yes
7713 export_dynamic_flag_spec='${wl}-Bexport'
7714 runpath_var='LD_RUN_PATH'
7716 if test "$GCC" = yes; then
7717 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7720 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7727 hardcode_libdir_flag_spec='-L$libdir'
7728 hardcode_shlibpath_var=no
7737 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7738 echo "${ECHO_T}$ld_shlibs" >&6
7739 test "$ld_shlibs" = no && can_build_shared=no
7742 # Do we need to explicitly link libc?
7744 case "x$archive_cmds_need_lc" in
7746 # Assume -lc should be added
7747 archive_cmds_need_lc=yes
7749 if test "$enable_shared" = yes && test "$GCC" = yes; then
7750 case $archive_cmds in
7752 # FIXME: we may have to deal with multi-command sequences.
7755 # Test whether the compiler implicitly links with -lc since on some
7756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7757 # to ld, don't add -lc before -lgcc.
7758 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7759 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764 (eval $ac_compile) 2>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } 2>conftest.err; then
7770 libobjs=conftest.$ac_objext
7772 wl=$lt_prog_compiler_wl
7773 pic_flag=$lt_prog_compiler_pic
7779 lt_save_allow_undefined_flag=$allow_undefined_flag
7780 allow_undefined_flag=
7781 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7782 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }
7787 archive_cmds_need_lc=no
7789 archive_cmds_need_lc=yes
7791 allow_undefined_flag=$lt_save_allow_undefined_flag
7793 cat conftest.err 1>&5
7796 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7797 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7804 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7805 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7807 libname_spec='lib$name'
7815 shlibpath_overrides_runpath=unknown
7817 dynamic_linker="$host_os ld.so"
7818 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7819 if test "$GCC" = yes; then
7820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7821 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7822 # if the path contains ";" then we assume it to be the separator
7823 # otherwise default to the standard path separator (i.e. ":") - it is
7824 # assumed that no part of a normal pathname contains ";" but that should
7825 # okay in the real world where ";" in dirpaths is itself problematic.
7826 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7833 need_lib_prefix=unknown
7834 hardcode_into_libs=no
7836 # when you set need_version to no, make sure it does not cause -set_version
7837 # flags to be left without arguments
7838 need_version=unknown
7843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7844 shlibpath_var=LIBPATH
7846 # AIX 3 has no versioning support, so we append a major version to the name.
7847 soname_spec='${libname}${release}${shared_ext}$major'
7854 hardcode_into_libs=yes
7855 if test "$host_cpu" = ia64; then
7856 # AIX 5 supports IA64
7857 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7858 shlibpath_var=LD_LIBRARY_PATH
7860 # With GCC up to 2.95.x, collect2 would create an import file
7861 # for dependence libraries. The import file would start with
7862 # the line `#! .'. This would cause the generated library to
7863 # depend on `.', always an invalid library. This was fixed in
7864 # development snapshots of GCC prior to 3.0.
7866 aix4 | aix4.[01] | aix4.[01].*)
7867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7869 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7876 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7877 # soname into executable. Probably we can add versioning support to
7878 # collect2, so additional links can be useful in future.
7879 if test "$aix_use_runtimelinking" = yes; then
7880 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7881 # instead of lib<name>.a to let people know that these are not
7882 # typical AIX shared libraries.
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885 # We preserve .a as extension for shared libraries through AIX4.2
7886 # and later when we are not doing run time linking.
7887 library_names_spec='${libname}${release}.a $libname.a'
7888 soname_spec='${libname}${release}${shared_ext}$major'
7890 shlibpath_var=LIBPATH
7895 library_names_spec='$libname.ixlibrary $libname.a'
7896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7897 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'
7901 library_names_spec='${libname}${shared_ext}'
7902 dynamic_linker="$host_os ld.so"
7903 shlibpath_var=LIBRARY_PATH
7909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7910 soname_spec='${libname}${release}${shared_ext}$major'
7911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7912 shlibpath_var=LD_LIBRARY_PATH
7913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7915 # the default ld.so.conf also contains /usr/contrib/lib and
7916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7917 # libtool to hard-code these into programs
7920 cygwin* | mingw* | pw32*)
7921 version_type=windows
7926 case $GCC,$host_os in
7927 yes,cygwin* | yes,mingw* | yes,pw32*)
7928 library_names_spec='$libname.dll.a'
7929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7930 postinstall_cmds='base_file=`basename \${file}`~
7931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7932 dldir=$destdir/`dirname \$dlpath`~
7933 test -d \$dldir || mkdir -p \$dldir~
7934 $install_prog $dir/$dlname \$dldir/$dlname~
7935 chmod a+x \$dldir/$dlname'
7936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7937 dlpath=$dir/\$dldll~
7939 shlibpath_overrides_runpath=yes
7943 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7944 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7945 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7948 # MinGW DLLs use traditional 'lib' prefix
7949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7950 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7951 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7952 # It is most probably a Windows format PATH printed by
7953 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7954 # path with ; separators, and with drive letters. We can handle the
7955 # drive letters (cygwin fileutils understands them), so leave them,
7956 # especially as we might pass files found there to a mingw objdump,
7957 # which wouldn't understand a cygwinified path. Ahh.
7958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7964 # pw32 DLLs use 'pw' prefix rather than 'lib'
7965 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7974 dynamic_linker='Win32 ld.exe'
7975 # FIXME: first we should search . and the directory the executable is in
7979 darwin* | rhapsody*)
7980 dynamic_linker="$host_os dyld"
7984 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7985 soname_spec='${libname}${release}${major}$shared_ext'
7986 shlibpath_overrides_runpath=yes
7987 shlibpath_var=DYLD_LIBRARY_PATH
7988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7989 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7990 if test "$GCC" = yes; then
7991 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"`
7993 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7995 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8003 soname_spec='${libname}${release}${shared_ext}$major'
8004 shlibpath_var=LD_LIBRARY_PATH
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8016 soname_spec='${libname}${release}${shared_ext}$major'
8017 shlibpath_var=LD_LIBRARY_PATH
8018 shlibpath_overrides_runpath=no
8019 hardcode_into_libs=yes
8020 dynamic_linker='GNU ld.so'
8023 freebsd* | dragonfly*)
8024 # DragonFly does not have aout. When/if they implement a new
8025 # versioning mechanism, adjust this.
8026 if test -x /usr/bin/objformat; then
8027 objformat=`/usr/bin/objformat`
8030 freebsd[123]*) objformat=aout ;;
8034 version_type=freebsd-$objformat
8035 case $version_type in
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8046 shlibpath_var=LD_LIBRARY_PATH
8049 shlibpath_overrides_runpath=yes
8051 freebsd3.[01]* | freebsdelf3.[01]*)
8052 shlibpath_overrides_runpath=yes
8053 hardcode_into_libs=yes
8055 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8056 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8057 shlibpath_overrides_runpath=no
8058 hardcode_into_libs=yes
8060 freebsd*) # from 4.6 on
8061 shlibpath_overrides_runpath=yes
8062 hardcode_into_libs=yes
8071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8072 soname_spec='${libname}${release}${shared_ext}$major'
8073 shlibpath_var=LD_LIBRARY_PATH
8074 hardcode_into_libs=yes
8077 hpux9* | hpux10* | hpux11*)
8078 # Give a soname corresponding to the major version so that dld.sl refuses to
8079 # link against other versions.
8086 hardcode_into_libs=yes
8087 dynamic_linker="$host_os dld.so"
8088 shlibpath_var=LD_LIBRARY_PATH
8089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
8092 if test "X$HPUX_IA64_MODE" = X32; then
8093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8095 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8101 hardcode_into_libs=yes
8102 dynamic_linker="$host_os dld.sl"
8103 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106 soname_spec='${libname}${release}${shared_ext}$major'
8107 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8112 dynamic_linker="$host_os dld.sl"
8113 shlibpath_var=SHLIB_PATH
8114 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116 soname_spec='${libname}${release}${shared_ext}$major'
8119 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8120 postinstall_cmds='chmod 555 $lib'
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8128 soname_spec='${libname}${release}${shared_ext}$major'
8129 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8130 shlibpath_var=LD_LIBRARY_PATH
8131 shlibpath_overrides_runpath=no
8132 hardcode_into_libs=yes
8135 irix5* | irix6* | nonstopux*)
8137 nonstopux*) version_type=nonstopux ;;
8139 if test "$lt_cv_prog_gnu_ld" = yes; then
8147 soname_spec='${libname}${release}${shared_ext}$major'
8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8150 irix5* | nonstopux*)
8154 case $LD in # libtool.m4 will add one of these switches to LD
8155 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8156 libsuff= shlibsuff= libmagic=32-bit;;
8157 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8158 libsuff=32 shlibsuff=N32 libmagic=N32;;
8159 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8160 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8161 *) libsuff= shlibsuff= libmagic=never-match;;
8165 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8166 shlibpath_overrides_runpath=no
8167 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8168 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8169 hardcode_into_libs=yes
8172 # No shared lib support for Linux oldld, aout, or coff.
8173 linux*oldld* | linux*aout* | linux*coff*)
8177 # This must be Linux ELF.
8182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183 soname_spec='${libname}${release}${shared_ext}$major'
8184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8185 shlibpath_var=LD_LIBRARY_PATH
8186 shlibpath_overrides_runpath=no
8187 # This implies no fast_install, which is unacceptable.
8188 # Some rework will be needed to allow for fast_install
8189 # before this can be enabled.
8190 hardcode_into_libs=yes
8192 # Append ld.so.conf contents to the search path
8193 if test -f /etc/ld.so.conf; then
8194 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' ' '`
8195 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8198 # We used to test for /lib/ld.so.1 and disable shared libraries on
8199 # powerpc, because MkLinux only supported shared libraries with the
8200 # GNU dynamic linker. Since this was broken with cross compilers,
8201 # most powerpc-linux boxes support dynamic linking these days and
8202 # people can always --disable-shared, the test was removed, and we
8203 # assume the GNU/Linux dynamic linker is in use.
8204 dynamic_linker='GNU/Linux ld.so'
8211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8212 soname_spec='${libname}${release}${shared_ext}$major'
8213 shlibpath_var=LD_LIBRARY_PATH
8214 shlibpath_overrides_runpath=no
8215 hardcode_into_libs=yes
8216 dynamic_linker='GNU ld.so'
8223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8226 dynamic_linker='NetBSD (a.out) ld.so'
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8229 soname_spec='${libname}${release}${shared_ext}$major'
8230 dynamic_linker='NetBSD ld.elf_so'
8232 shlibpath_var=LD_LIBRARY_PATH
8233 shlibpath_overrides_runpath=yes
8234 hardcode_into_libs=yes
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240 shlibpath_var=LD_LIBRARY_PATH
8241 shlibpath_overrides_runpath=yes
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8249 soname_spec='${libname}${release}${shared_ext}$major'
8250 shlibpath_var=LD_LIBRARY_PATH
8251 shlibpath_overrides_runpath=yes
8256 sys_lib_dlsearch_path_spec="/usr/lib"
8258 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8260 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8261 *) need_version=no ;;
8263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8265 shlibpath_var=LD_LIBRARY_PATH
8266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8268 openbsd2.[89] | openbsd2.[89].*)
8269 shlibpath_overrides_runpath=no
8272 shlibpath_overrides_runpath=yes
8276 shlibpath_overrides_runpath=yes
8281 libname_spec='$name'
8284 library_names_spec='$libname${shared_ext} $libname.a'
8285 dynamic_linker='OS/2 ld.exe'
8286 shlibpath_var=LIBPATH
8289 osf3* | osf4* | osf5*)
8293 soname_spec='${libname}${release}${shared_ext}$major'
8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295 shlibpath_var=LD_LIBRARY_PATH
8296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8297 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305 soname_spec='${libname}${release}${shared_ext}$major'
8306 shlibpath_var=LD_LIBRARY_PATH
8307 shlibpath_overrides_runpath=yes
8308 hardcode_into_libs=yes
8309 # ldd complains unless libraries are executable
8310 postinstall_cmds='chmod +x $lib'
8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8317 shlibpath_var=LD_LIBRARY_PATH
8318 shlibpath_overrides_runpath=yes
8319 if test "$with_gnu_ld" = yes; then
8327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8328 soname_spec='${libname}${release}${shared_ext}$major'
8329 shlibpath_var=LD_LIBRARY_PATH
8330 case $host_vendor in
8332 shlibpath_overrides_runpath=no
8334 export_dynamic_flag_spec='${wl}-Blargedynsym'
8335 runpath_var=LD_RUN_PATH
8343 shlibpath_overrides_runpath=no
8344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8350 if test -d /usr/nec ;then
8352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8353 soname_spec='$libname${shared_ext}.$major'
8354 shlibpath_var=LD_LIBRARY_PATH
8358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8359 version_type=freebsd-elf
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 shlibpath_var=LD_LIBRARY_PATH
8365 hardcode_into_libs=yes
8366 if test "$with_gnu_ld" = yes; then
8367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8368 shlibpath_overrides_runpath=no
8370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8371 shlibpath_overrides_runpath=yes
8374 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8378 sys_lib_dlsearch_path_spec='/usr/lib'
8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8384 soname_spec='${libname}${release}${shared_ext}$major'
8385 shlibpath_var=LD_LIBRARY_PATH
8392 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8393 echo "${ECHO_T}$dynamic_linker" >&6
8394 test "$dynamic_linker" = no && can_build_shared=no
8396 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8397 if test "$GCC" = yes; then
8398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8401 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8402 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8404 if test -n "$hardcode_libdir_flag_spec" || \
8405 test -n "$runpath_var" || \
8406 test "X$hardcode_automatic" = "Xyes" ; then
8408 # We can hardcode non-existant directories.
8409 if test "$hardcode_direct" != no &&
8410 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8411 # have to relink, otherwise we might link with an installed library
8412 # when we should be linking with a yet-to-be-installed one
8413 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8414 test "$hardcode_minus_L" != no; then
8415 # Linking always hardcodes the temporary library directory.
8416 hardcode_action=relink
8418 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8419 hardcode_action=immediate
8422 # We cannot hardcode anything, or else we can only hardcode existing
8424 hardcode_action=unsupported
8426 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8427 echo "${ECHO_T}$hardcode_action" >&6
8429 if test "$hardcode_action" = relink; then
8430 # Fast installation is not supported
8431 enable_fast_install=no
8432 elif test "$shlibpath_overrides_runpath" = yes ||
8433 test "$enable_shared" = no; then
8434 # Fast installation is not necessary
8435 enable_fast_install=needless
8440 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8441 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8442 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8443 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8444 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8445 echo "$as_me:$LINENO: result: yes" >&5
8446 echo "${ECHO_T}yes" >&6
8448 # FIXME - insert some real tests, host_os isn't really good enough
8451 if test -n "$STRIP" ; then
8452 striplib="$STRIP -x"
8453 echo "$as_me:$LINENO: result: yes" >&5
8454 echo "${ECHO_T}yes" >&6
8456 echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6
8461 echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6
8467 if test "x$enable_dlopen" != xyes; then
8468 enable_dlopen=unknown
8469 enable_dlopen_self=unknown
8470 enable_dlopen_self_static=unknown
8477 lt_cv_dlopen="load_add_on"
8479 lt_cv_dlopen_self=yes
8483 lt_cv_dlopen="LoadLibrary"
8488 lt_cv_dlopen="dlopen"
8493 # if libdl is installed we need to link against it
8494 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_check_lib_save_LIBS=$LIBS
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8508 /* Override any gcc2 internal prototype to avoid an error. */
8512 /* We use char because int might match the return type of a gcc2
8513 builtin and then its argument prototype would still apply. */
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_cv_lib_dl_dlopen=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_cv_lib_dl_dlopen=no
8552 rm -f conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8556 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8558 if test $ac_cv_lib_dl_dlopen = yes; then
8559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8564 lt_cv_dlopen_self=yes
8571 echo "$as_me:$LINENO: checking for shl_load" >&5
8572 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8573 if test "${ac_cv_func_shl_load+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8584 #define shl_load innocuous_shl_load
8586 /* System header to define __stub macros and hopefully few prototypes,
8587 which can conflict with char shl_load (); below.
8588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8589 <limits.h> exists even on freestanding compilers. */
8592 # include <limits.h>
8594 # include <assert.h>
8599 /* Override any gcc2 internal prototype to avoid an error. */
8604 /* We use char because int might match the return type of a gcc2
8605 builtin and then its argument prototype would still apply. */
8607 /* The GNU C library defines this for functions which it implements
8608 to always fail with ENOSYS. Some functions are actually named
8609 something starting with __ and the normal name is an alias. */
8610 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8613 char (*f) () = shl_load;
8622 return f != shl_load;
8627 rm -f conftest.$ac_objext conftest$ac_exeext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629 (eval $ac_link) 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag"
8637 || test ! -s conftest.err'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 ac_cv_func_shl_load=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_cv_func_shl_load=no
8656 rm -f conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8659 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8660 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8661 if test $ac_cv_func_shl_load = yes; then
8662 lt_cv_dlopen="shl_load"
8664 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8665 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8666 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 ac_check_lib_save_LIBS=$LIBS
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8678 /* Override any gcc2 internal prototype to avoid an error. */
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8693 rm -f conftest.$ac_objext conftest$ac_exeext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695 (eval $ac_link) 2>conftest.er1
8697 grep -v '^ *+' conftest.er1 >conftest.err
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest$ac_exeext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_cv_lib_dld_shl_load=yes
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 ac_cv_lib_dld_shl_load=no
8722 rm -f conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8724 LIBS=$ac_check_lib_save_LIBS
8726 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8727 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8728 if test $ac_cv_lib_dld_shl_load = yes; then
8729 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8731 echo "$as_me:$LINENO: checking for dlopen" >&5
8732 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8733 if test "${ac_cv_func_dlopen+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 cat >conftest.$ac_ext <<_ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8744 #define dlopen innocuous_dlopen
8746 /* System header to define __stub macros and hopefully few prototypes,
8747 which can conflict with char dlopen (); below.
8748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8749 <limits.h> exists even on freestanding compilers. */
8752 # include <limits.h>
8754 # include <assert.h>
8759 /* Override any gcc2 internal prototype to avoid an error. */
8764 /* We use char because int might match the return type of a gcc2
8765 builtin and then its argument prototype would still apply. */
8767 /* The GNU C library defines this for functions which it implements
8768 to always fail with ENOSYS. Some functions are actually named
8769 something starting with __ and the normal name is an alias. */
8770 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8773 char (*f) () = dlopen;
8787 rm -f conftest.$ac_objext conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789 (eval $ac_link) 2>conftest.er1
8791 grep -v '^ *+' conftest.er1 >conftest.err
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag"
8797 || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_cv_func_dlopen=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_cv_func_dlopen=no
8816 rm -f conftest.err conftest.$ac_objext \
8817 conftest$ac_exeext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8820 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8821 if test $ac_cv_func_dlopen = yes; then
8822 lt_cv_dlopen="dlopen"
8824 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_check_lib_save_LIBS=$LIBS
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8838 /* Override any gcc2 internal prototype to avoid an error. */
8842 /* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>conftest.er1
8857 grep -v '^ *+' conftest.er1 >conftest.err
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } &&
8862 { ac_try='test -z "$ac_c_werror_flag"
8863 || test ! -s conftest.err'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 ac_cv_lib_dl_dlopen=yes
8877 echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8880 ac_cv_lib_dl_dlopen=no
8882 rm -f conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8886 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8887 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8888 if test $ac_cv_lib_dl_dlopen = yes; then
8889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8891 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8892 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8893 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 ac_check_lib_save_LIBS=$LIBS
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8905 /* Override any gcc2 internal prototype to avoid an error. */
8909 /* We use char because int might match the return type of a gcc2
8910 builtin and then its argument prototype would still apply. */
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_svld_dlopen=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_cv_lib_svld_dlopen=no
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8955 if test $ac_cv_lib_svld_dlopen = yes; then
8956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8958 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 ac_check_lib_save_LIBS=$LIBS
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8972 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>conftest.er1
8991 grep -v '^ *+' conftest.er1 >conftest.err
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } &&
8996 { ac_try='test -z "$ac_c_werror_flag"
8997 || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_lib_dld_dld_link=yes
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 ac_cv_lib_dld_dld_link=no
9016 rm -f conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 LIBS=$ac_check_lib_save_LIBS
9020 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9021 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9022 if test $ac_cv_lib_dld_dld_link = yes; then
9023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9044 if test "x$lt_cv_dlopen" != xno; then
9050 case $lt_cv_dlopen in
9052 save_CPPFLAGS="$CPPFLAGS"
9053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9055 save_LDFLAGS="$LDFLAGS"
9056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9059 LIBS="$lt_cv_dlopen_libs $LIBS"
9061 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9062 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9063 if test "${lt_cv_dlopen_self+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 if test "$cross_compiling" = yes; then :
9067 lt_cv_dlopen_self=cross
9069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9070 lt_status=$lt_dlunknown
9071 cat > conftest.$ac_ext <<EOF
9072 #line __oline__ "configure"
9073 #include "confdefs.h"
9082 # define LT_DLGLOBAL RTLD_GLOBAL
9085 # define LT_DLGLOBAL DL_GLOBAL
9087 # define LT_DLGLOBAL 0
9091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9092 find out it does not work in some platform. */
9093 #ifndef LT_DLLAZY_OR_NOW
9095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9098 # define LT_DLLAZY_OR_NOW DL_LAZY
9101 # define LT_DLLAZY_OR_NOW RTLD_NOW
9104 # define LT_DLLAZY_OR_NOW DL_NOW
9106 # define LT_DLLAZY_OR_NOW 0
9114 extern "C" void exit (int);
9117 void fnord() { int i=42;}
9120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9121 int status = $lt_dlunknown;
9125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9127 /* dlclose (self); */
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136 (eval $ac_link) 2>&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9140 (./conftest; exit; ) >&5 2>/dev/null
9143 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9144 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9145 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9148 # compilation failed
9149 lt_cv_dlopen_self=no
9156 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9157 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9159 if test "x$lt_cv_dlopen_self" = xyes; then
9160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9161 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9162 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9163 if test "${lt_cv_dlopen_self_static+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 if test "$cross_compiling" = yes; then :
9167 lt_cv_dlopen_self_static=cross
9169 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9170 lt_status=$lt_dlunknown
9171 cat > conftest.$ac_ext <<EOF
9172 #line __oline__ "configure"
9173 #include "confdefs.h"
9182 # define LT_DLGLOBAL RTLD_GLOBAL
9185 # define LT_DLGLOBAL DL_GLOBAL
9187 # define LT_DLGLOBAL 0
9191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9192 find out it does not work in some platform. */
9193 #ifndef LT_DLLAZY_OR_NOW
9195 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9198 # define LT_DLLAZY_OR_NOW DL_LAZY
9201 # define LT_DLLAZY_OR_NOW RTLD_NOW
9204 # define LT_DLLAZY_OR_NOW DL_NOW
9206 # define LT_DLLAZY_OR_NOW 0
9214 extern "C" void exit (int);
9217 void fnord() { int i=42;}
9220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9221 int status = $lt_dlunknown;
9225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9227 /* dlclose (self); */
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9240 (./conftest; exit; ) >&5 2>/dev/null
9243 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9244 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9245 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9248 # compilation failed
9249 lt_cv_dlopen_self_static=no
9256 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9257 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9260 CPPFLAGS="$save_CPPFLAGS"
9261 LDFLAGS="$save_LDFLAGS"
9266 case $lt_cv_dlopen_self in
9267 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9268 *) enable_dlopen_self=unknown ;;
9271 case $lt_cv_dlopen_self_static in
9272 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9273 *) enable_dlopen_self_static=unknown ;;
9278 # Report which library types will actually be built
9279 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9280 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9281 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9282 echo "${ECHO_T}$can_build_shared" >&6
9284 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9285 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9286 test "$can_build_shared" = "no" && enable_shared=no
9288 # On AIX, shared libraries and static libraries use the same namespace, and
9289 # are all built from PIC.
9292 test "$enable_shared" = yes && enable_static=no
9293 if test -n "$RANLIB"; then
9294 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9295 postinstall_cmds='$RANLIB $lib'
9300 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9301 test "$enable_shared" = yes && enable_static=no
9305 echo "$as_me:$LINENO: result: $enable_shared" >&5
9306 echo "${ECHO_T}$enable_shared" >&6
9308 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9309 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9310 # Make sure either enable_shared or enable_static is yes.
9311 test "$enable_shared" = yes || enable_static=yes
9312 echo "$as_me:$LINENO: result: $enable_static" >&5
9313 echo "${ECHO_T}$enable_static" >&6
9315 # The else clause should only fire when bootstrapping the
9316 # libtool distribution, otherwise you forgot to ship ltmain.sh
9317 # with your package, and you will get complaints that there are
9318 # no rules to generate ltmain.sh.
9319 if test -f "$ltmain"; then
9320 # See if we are running on zsh, and set the options which allow our commands through
9321 # without removal of \ escapes.
9322 if test -n "${ZSH_VERSION+set}" ; then
9323 setopt NO_GLOB_SUBST
9325 # Now quote all the things that may contain metacharacters while being
9326 # careful not to overquote the AC_SUBSTed values. We take copies of the
9327 # variables and quote the copies for generation of the libtool script.
9328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9332 deplibs_check_method reload_flag reload_cmds need_locks \
9333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9334 lt_cv_sys_global_symbol_to_c_name_address \
9335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9336 old_postinstall_cmds old_postuninstall_cmds \
9340 lt_prog_compiler_wl \
9341 lt_prog_compiler_pic \
9342 lt_prog_compiler_static \
9343 lt_prog_compiler_no_builtin_flag \
9344 export_dynamic_flag_spec \
9345 thread_safe_flag_spec \
9346 whole_archive_flag_spec \
9347 enable_shared_with_static_runtimes \
9349 old_archive_from_new_cmds \
9354 compiler_lib_search_path \
9356 archive_expsym_cmds \
9358 postuninstall_cmds \
9359 old_archive_from_expsyms_cmds \
9360 allow_undefined_flag \
9362 export_symbols_cmds \
9363 hardcode_libdir_flag_spec \
9364 hardcode_libdir_flag_spec_ld \
9365 hardcode_libdir_separator \
9366 hardcode_automatic \
9368 module_expsym_cmds \
9369 lt_cv_prog_compiler_c_o \
9374 old_archive_cmds | \
9375 old_archive_from_new_cmds | \
9377 archive_expsym_cmds | \
9379 module_expsym_cmds | \
9380 old_archive_from_expsyms_cmds | \
9381 export_symbols_cmds | \
9382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9383 postinstall_cmds | postuninstall_cmds | \
9384 old_postinstall_cmds | old_postuninstall_cmds | \
9385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9386 # Double-quote double-evaled strings.
9387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9396 *'\$0 --fallback-echo"')
9397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9402 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9404 { echo "$as_me:$LINENO: creating $ofile" >&5
9405 echo "$as_me: creating $ofile" >&6;}
9407 cat <<__EOF__ >> "$cfgfile"
9410 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9411 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9414 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9415 # Free Software Foundation, Inc.
9417 # This file is part of GNU Libtool:
9418 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9420 # This program is free software; you can redistribute it and/or modify
9421 # it under the terms of the GNU General Public License as published by
9422 # the Free Software Foundation; either version 2 of the License, or
9423 # (at your option) any later version.
9425 # This program is distributed in the hope that it will be useful, but
9426 # WITHOUT ANY WARRANTY; without even the implied warranty of
9427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9428 # General Public License for more details.
9430 # You should have received a copy of the GNU General Public License
9431 # along with this program; if not, write to the Free Software
9432 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9434 # As a special exception to the GNU General Public License, if you
9435 # distribute this file as part of a program that contains a
9436 # configuration script generated by Autoconf, you may include it under
9437 # the same distribution terms that you use for the rest of that program.
9439 # A sed program that does not truncate output.
9442 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9443 Xsed="$SED -e 1s/^X//"
9445 # The HP-UX ksh and POSIX shell print the target directory to stdout
9447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9449 # The names of the tagged configurations supported by this script.
9452 # ### BEGIN LIBTOOL CONFIG
9454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9456 # Shell to use when invoking shell scripts.
9459 # Whether or not to build shared libraries.
9460 build_libtool_libs=$enable_shared
9462 # Whether or not to build static libraries.
9463 build_old_libs=$enable_static
9465 # Whether or not to add -lc for building shared libraries.
9466 build_libtool_need_lc=$archive_cmds_need_lc
9468 # Whether or not to disallow shared libs when runtime libs are static
9469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9471 # Whether or not to optimize for fast installation.
9472 fast_install=$enable_fast_install
9475 host_alias=$host_alias
9480 build_alias=$build_alias
9484 # An echo program that does not interpret backslashes.
9489 AR_FLAGS=$lt_AR_FLAGS
9494 # LTCC compiler flags.
9495 LTCFLAGS=$lt_LTCFLAGS
9497 # A language-specific compiler.
9500 # Is the compiler the GNU C compiler?
9506 # The linker used to build libraries.
9509 # Whether we need hard or soft links.
9512 # A BSD-compatible nm program.
9515 # A symbol stripping program
9518 # Used to examine libraries when file_magic_cmd begins "file"
9519 MAGIC_CMD=$MAGIC_CMD
9521 # Used on cygwin: DLL creation program.
9524 # Used on cygwin: object dumper.
9527 # Used on cygwin: assembler.
9530 # The name of the directory that contains temporary libtool files.
9533 # How to create reloadable object files.
9534 reload_flag=$lt_reload_flag
9535 reload_cmds=$lt_reload_cmds
9537 # How to pass a linker flag through the compiler.
9538 wl=$lt_lt_prog_compiler_wl
9540 # Object file suffix (normally "o").
9543 # Old archive suffix (normally "a").
9546 # Shared library suffix (normally ".so").
9547 shrext_cmds='$shrext_cmds'
9549 # Executable file suffix (normally "").
9552 # Additional compiler flags for building library objects.
9553 pic_flag=$lt_lt_prog_compiler_pic
9556 # What is the maximum length of a command?
9557 max_cmd_len=$lt_cv_sys_max_cmd_len
9559 # Does compiler simultaneously support -c and -o options?
9560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9562 # Must we lock files when doing compilation?
9563 need_locks=$lt_need_locks
9565 # Do we need the lib prefix for modules?
9566 need_lib_prefix=$need_lib_prefix
9568 # Do we need a version for libraries?
9569 need_version=$need_version
9571 # Whether dlopen is supported.
9572 dlopen_support=$enable_dlopen
9574 # Whether dlopen of programs is supported.
9575 dlopen_self=$enable_dlopen_self
9577 # Whether dlopen of statically linked programs is supported.
9578 dlopen_self_static=$enable_dlopen_self_static
9580 # Compiler flag to prevent dynamic linking.
9581 link_static_flag=$lt_lt_prog_compiler_static
9583 # Compiler flag to turn off builtin functions.
9584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9586 # Compiler flag to allow reflexive dlopens.
9587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9589 # Compiler flag to generate shared objects directly from archives.
9590 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9592 # Compiler flag to generate thread-safe objects.
9593 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9595 # Library versioning type.
9596 version_type=$version_type
9598 # Format of library name prefix.
9599 libname_spec=$lt_libname_spec
9601 # List of archive names. First name is the real one, the rest are links.
9602 # The last name is the one that the linker finds with -lNAME.
9603 library_names_spec=$lt_library_names_spec
9605 # The coded name of the library, if different from the real name.
9606 soname_spec=$lt_soname_spec
9608 # Commands used to build and install an old-style archive.
9610 old_archive_cmds=$lt_old_archive_cmds
9611 old_postinstall_cmds=$lt_old_postinstall_cmds
9612 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9614 # Create an old-style archive from a shared archive.
9615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9617 # Create a temporary old-style archive to link instead of a shared archive.
9618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9620 # Commands used to build and install a shared archive.
9621 archive_cmds=$lt_archive_cmds
9622 archive_expsym_cmds=$lt_archive_expsym_cmds
9623 postinstall_cmds=$lt_postinstall_cmds
9624 postuninstall_cmds=$lt_postuninstall_cmds
9626 # Commands used to build a loadable module (assumed same as above if empty)
9627 module_cmds=$lt_module_cmds
9628 module_expsym_cmds=$lt_module_expsym_cmds
9630 # Commands to strip libraries.
9631 old_striplib=$lt_old_striplib
9632 striplib=$lt_striplib
9634 # Dependencies to place before the objects being linked to create a
9636 predep_objects=$lt_predep_objects
9638 # Dependencies to place after the objects being linked to create a
9640 postdep_objects=$lt_postdep_objects
9642 # Dependencies to place before the objects being linked to create a
9646 # Dependencies to place after the objects being linked to create a
9648 postdeps=$lt_postdeps
9650 # The library search path used internally by the compiler when linking
9652 compiler_lib_search_path=$lt_compiler_lib_search_path
9654 # Method to check whether dependent libraries are shared objects.
9655 deplibs_check_method=$lt_deplibs_check_method
9657 # Command to use when deplibs_check_method == file_magic.
9658 file_magic_cmd=$lt_file_magic_cmd
9660 # Flag that allows shared libraries with undefined symbols to be built.
9661 allow_undefined_flag=$lt_allow_undefined_flag
9663 # Flag that forces no undefined symbols.
9664 no_undefined_flag=$lt_no_undefined_flag
9666 # Commands used to finish a libtool library installation in a directory.
9667 finish_cmds=$lt_finish_cmds
9669 # Same as above, but a single script fragment to be evaled but not shown.
9670 finish_eval=$lt_finish_eval
9672 # Take the output of nm and produce a listing of raw symbols and C names.
9673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9675 # Transform the output of nm in a proper C declaration
9676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9678 # Transform the output of nm in a C name address pair
9679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9681 # This is the shared library runtime path variable.
9682 runpath_var=$runpath_var
9684 # This is the shared library path variable.
9685 shlibpath_var=$shlibpath_var
9687 # Is shlibpath searched before the hard-coded library search path?
9688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9690 # How to hardcode a shared library path into an executable.
9691 hardcode_action=$hardcode_action
9693 # Whether we should hardcode library paths into libraries.
9694 hardcode_into_libs=$hardcode_into_libs
9696 # Flag to hardcode \$libdir into a binary during linking.
9697 # This must work even if \$libdir does not exist.
9698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9700 # If ld is used when linking, flag to hardcode \$libdir into
9701 # a binary during linking. This must work even if \$libdir does
9703 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9705 # Whether we need a single -rpath flag with a separated argument.
9706 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9708 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9710 hardcode_direct=$hardcode_direct
9712 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9714 hardcode_minus_L=$hardcode_minus_L
9716 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9717 # the resulting binary.
9718 hardcode_shlibpath_var=$hardcode_shlibpath_var
9720 # Set to yes if building a shared library automatically hardcodes DIR into the library
9721 # and all subsequent libraries and executables linked against it.
9722 hardcode_automatic=$hardcode_automatic
9724 # Variables whose values should be saved in libtool wrapper scripts and
9725 # restored at relink time.
9726 variables_saved_for_relink="$variables_saved_for_relink"
9728 # Whether libtool must link a program against all its dependency libraries.
9729 link_all_deplibs=$link_all_deplibs
9731 # Compile-time system search path for libraries
9732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9734 # Run-time system search path for libraries
9735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9737 # Fix the shell variable \$srcfile for the compiler.
9738 fix_srcfile_path="$fix_srcfile_path"
9740 # Set to yes if exported symbols are required.
9741 always_export_symbols=$always_export_symbols
9743 # The commands to list exported symbols.
9744 export_symbols_cmds=$lt_export_symbols_cmds
9746 # The commands to extract the exported symbol list from a shared archive.
9747 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9749 # Symbols that should not be listed in the preloaded symbols.
9750 exclude_expsyms=$lt_exclude_expsyms
9752 # Symbols that must always be exported.
9753 include_expsyms=$lt_include_expsyms
9755 # ### END LIBTOOL CONFIG
9762 cat <<\EOF >> "$cfgfile"
9764 # AIX sometimes has problems with the GCC collect2 program. For some
9765 # reason, if we set the COLLECT_NAMES environment variable, the problems
9766 # vanish in a puff of smoke.
9767 if test "X${COLLECT_NAMES+set}" != Xset; then
9769 export COLLECT_NAMES
9775 # We use sed instead of cat because bash on DJGPP gets confused if
9776 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9777 # text mode, it properly converts lines to CR/LF. This bash problem
9778 # is reportedly fixed, but why not run on old versions too?
9779 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9781 mv -f "$cfgfile" "$ofile" || \
9782 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9786 # If there is no Makefile yet, we rely on a make rule to execute
9787 # `config.status --recheck' to rerun these tests and create the
9788 # libtool script then.
9789 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9790 if test -f "$ltmain_in"; then
9791 test -f Makefile && make "$ltmain"
9797 ac_cpp='$CPP $CPPFLAGS'
9798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9805 # Check whether --with-tags or --without-tags was given.
9806 if test "${with_tags+set}" = set; then
9807 withval="$with_tags"
9811 if test -f "$ltmain" && test -n "$tagnames"; then
9812 if test ! -f "${ofile}"; then
9813 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9814 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9817 if test -z "$LTCC"; then
9818 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9819 if test -z "$LTCC"; then
9820 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9821 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9824 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9827 if test -z "$LTCFLAGS"; then
9828 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9831 # Extract list of available tagged configurations in $ofile.
9832 # Note that this assumes the entire list is on one line.
9833 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9836 for tagname in $tagnames; do
9838 # Check whether tagname contains only valid characters
9839 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9841 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9842 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9843 { (exit 1); exit 1; }; }
9847 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9849 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9850 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9851 { (exit 1); exit 1; }; }
9854 # Update the list of available tags.
9855 if test -n "$tagname"; then
9856 echo appending configuration tag \"$tagname\" to $ofile
9860 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9861 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9862 (test "X$CXX" != "Xg++"))) ; then
9864 ac_cpp='$CXXCPP $CPPFLAGS'
9865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9872 archive_cmds_need_lc_CXX=no
9873 allow_undefined_flag_CXX=
9874 always_export_symbols_CXX=no
9875 archive_expsym_cmds_CXX=
9876 export_dynamic_flag_spec_CXX=
9877 hardcode_direct_CXX=no
9878 hardcode_libdir_flag_spec_CXX=
9879 hardcode_libdir_flag_spec_ld_CXX=
9880 hardcode_libdir_separator_CXX=
9881 hardcode_minus_L_CXX=no
9882 hardcode_shlibpath_var_CXX=unsupported
9883 hardcode_automatic_CXX=no
9885 module_expsym_cmds_CXX=
9886 link_all_deplibs_CXX=unknown
9887 old_archive_cmds_CXX=$old_archive_cmds
9888 no_undefined_flag_CXX=
9889 whole_archive_flag_spec_CXX=
9890 enable_shared_with_static_runtimes_CXX=no
9892 # Dependencies to place before and after the object being linked:
9894 postdep_objects_CXX=
9897 compiler_lib_search_path_CXX=
9899 # Source file extension for C++ test sources.
9902 # Object file extension for compiled C++ test sources.
9906 # Code to be used in simple compile tests
9907 lt_simple_compile_test_code="int some_variable = 0;\n"
9909 # Code to be used in simple link tests
9910 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9912 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9914 # If no C compiler was specified, use CC.
9917 # If no C compiler flags were specified, use CFLAGS.
9918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9920 # Allow CC to be a program name with arguments.
9924 # save warnings/boilerplate of simple test code
9925 ac_outfile=conftest.$ac_objext
9926 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9928 _lt_compiler_boilerplate=`cat conftest.err`
9931 ac_outfile=conftest.$ac_objext
9932 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9934 _lt_linker_boilerplate=`cat conftest.err`
9938 # Allow CC to be a program name with arguments.
9943 lt_save_with_gnu_ld=$with_gnu_ld
9944 lt_save_path_LD=$lt_cv_path_LD
9945 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9946 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9948 $as_unset lt_cv_prog_gnu_ld
9950 if test -n "${lt_cv_path_LDCXX+set}"; then
9951 lt_cv_path_LD=$lt_cv_path_LDCXX
9953 $as_unset lt_cv_path_LD
9955 test -z "${LDCXX+set}" || LD=$LDCXX
9959 for cc_temp in $compiler""; do
9961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9970 # We don't want -fno-exception wen compiling C++ code, so set the
9971 # no_builtin_flag separately
9972 if test "$GXX" = yes; then
9973 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9975 lt_prog_compiler_no_builtin_flag_CXX=
9978 if test "$GXX" = yes; then
9979 # Set up default GNU C++ configuration
9982 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9983 if test "${with_gnu_ld+set}" = set; then
9984 withval="$with_gnu_ld"
9985 test "$withval" = no || with_gnu_ld=yes
9990 if test "$GCC" = yes; then
9991 # Check if gcc -print-prog-name=ld gives a path.
9992 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9993 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9996 # gcc leaves a trailing carriage return which upsets mingw
9997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10002 # Accept absolute paths.
10004 re_direlt='/[^/][^/]*/\.\./'
10005 # Canonicalize the pathname of ld
10006 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10007 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10008 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10010 test -z "$LD" && LD="$ac_prog"
10013 # If it fails, then pretend we aren't using GCC.
10017 # If it is relative, then search for the first ld in PATH.
10018 with_gnu_ld=unknown
10021 elif test "$with_gnu_ld" = yes; then
10022 echo "$as_me:$LINENO: checking for GNU ld" >&5
10023 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10025 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10026 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10028 if test "${lt_cv_path_LD+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 if test -z "$LD"; then
10032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10033 for ac_dir in $PATH; do
10035 test -z "$ac_dir" && ac_dir=.
10036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10037 lt_cv_path_LD="$ac_dir/$ac_prog"
10038 # Check to see if the program is GNU ld. I'd rather use --version,
10039 # but apparently some variants of GNU ld only accept -v.
10040 # Break only if it was the GNU/non-GNU ld that we prefer.
10041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10042 *GNU* | *'with BFD'*)
10043 test "$with_gnu_ld" != no && break
10046 test "$with_gnu_ld" != yes && break
10053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10057 LD="$lt_cv_path_LD"
10058 if test -n "$LD"; then
10059 echo "$as_me:$LINENO: result: $LD" >&5
10060 echo "${ECHO_T}$LD" >&6
10062 echo "$as_me:$LINENO: result: no" >&5
10063 echo "${ECHO_T}no" >&6
10065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10067 { (exit 1); exit 1; }; }
10068 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10070 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10074 case `$LD -v 2>&1 </dev/null` in
10075 *GNU* | *'with BFD'*)
10076 lt_cv_prog_gnu_ld=yes
10079 lt_cv_prog_gnu_ld=no
10083 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10084 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10085 with_gnu_ld=$lt_cv_prog_gnu_ld
10089 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10090 # archiving commands below assume that GNU ld is being used.
10091 if test "$with_gnu_ld" = yes; then
10092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10093 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'
10095 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10098 # If archive_cmds runs LD, not CC, wlarc should be empty
10099 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10100 # investigate it a little bit more. (MM)
10103 # ancient GNU ld didn't support --whole-archive et. al.
10104 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10105 grep 'no-whole-archive' > /dev/null; then
10106 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10108 whole_archive_flag_spec_CXX=
10114 # A generic and very simple default shared library creation
10115 # command for GNU C++ for the case where it uses the native
10116 # linker, instead of GNU ld. If possible, this setting should
10117 # overridden to take advantage of the native linker features on
10118 # the platform it is being used on.
10119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10122 # Commands to make compiler produce verbose output that lists
10123 # what "hidden" libraries, object files and flags are used when
10124 # linking a shared library.
10125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10133 # PORTME: fill in a description of your system's C++ link characteristics
10134 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10135 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10139 # FIXME: insert proper C++ library support
10143 if test "$host_cpu" = ia64; then
10144 # On IA64, the linker does run time linking by default, so we don't
10145 # have to do anything special.
10146 aix_use_runtimelinking=no
10147 exp_sym_flag='-Bexport'
10150 aix_use_runtimelinking=no
10152 # Test if we are trying to use run time linking or normal
10153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10154 # need to do runtime linking.
10155 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10156 for ld_flag in $LDFLAGS; do
10159 aix_use_runtimelinking=yes
10167 exp_sym_flag='-bexport'
10168 no_entry_flag='-bnoentry'
10171 # When large executables or shared objects are built, AIX ld can
10172 # have problems creating the table of contents. If linking a library
10173 # or program results in "error TOC overflow" add -mminimal-toc to
10174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10177 archive_cmds_CXX=''
10178 hardcode_direct_CXX=yes
10179 hardcode_libdir_separator_CXX=':'
10180 link_all_deplibs_CXX=yes
10182 if test "$GXX" = yes; then
10183 case $host_os in aix4.[012]|aix4.[012].*)
10184 # We only want to do this on AIX 4.2 and lower, the check
10185 # below for broken collect2 doesn't work under 4.3+
10186 collect2name=`${CC} -print-prog-name=collect2`
10187 if test -f "$collect2name" && \
10188 strings "$collect2name" | grep resolve_lib_name >/dev/null
10190 # We have reworked collect2
10191 hardcode_direct_CXX=yes
10193 # We have old collect2
10194 hardcode_direct_CXX=unsupported
10195 # It fails to find uninstalled libraries when the uninstalled
10196 # path is not listed in the libpath. Setting hardcode_minus_L
10197 # to unsupported forces relinking
10198 hardcode_minus_L_CXX=yes
10199 hardcode_libdir_flag_spec_CXX='-L$libdir'
10200 hardcode_libdir_separator_CXX=
10204 shared_flag='-shared'
10205 if test "$aix_use_runtimelinking" = yes; then
10206 shared_flag="$shared_flag "'${wl}-G'
10210 if test "$host_cpu" = ia64; then
10211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10212 # chokes on -Wl,-G. The following line is correct:
10215 if test "$aix_use_runtimelinking" = yes; then
10216 shared_flag='${wl}-G'
10218 shared_flag='${wl}-bM:SRE'
10223 # It seems that -bexpall does not export symbols beginning with
10224 # underscore (_), so it is better to generate a list of symbols to export.
10225 always_export_symbols_CXX=yes
10226 if test "$aix_use_runtimelinking" = yes; then
10227 # Warning - without using the other runtime loading flags (-brtl),
10228 # -berok will link without error, but may produce a broken library.
10229 allow_undefined_flag_CXX='-berok'
10230 # Determine the default libpath from the value encoded in an empty executable.
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248 (eval $ac_link) 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -z "$ac_cxx_werror_flag"
10256 || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10271 # Check for a 64-bit object if we didn't find anything.
10272 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; }
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10279 rm -f conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10285 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"
10287 if test "$host_cpu" = ia64; then
10288 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10289 allow_undefined_flag_CXX="-z nodefs"
10290 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"
10292 # Determine the default libpath from the value encoded in an empty executable.
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>conftest.er1
10312 grep -v '^ *+' conftest.er1 >conftest.err
10314 cat conftest.err >&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -z "$ac_cxx_werror_flag"
10318 || test ! -s conftest.err'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10333 # Check for a 64-bit object if we didn't find anything.
10334 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; }
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10341 rm -f conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10345 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10346 # Warning - without using the other run time loading flags,
10347 # -berok will link without error, but may produce a broken library.
10348 no_undefined_flag_CXX=' ${wl}-bernotok'
10349 allow_undefined_flag_CXX=' ${wl}-berok'
10350 # Exported symbols can be pulled into shared objects from archives
10351 whole_archive_flag_spec_CXX='$convenience'
10352 archive_cmds_need_lc_CXX=yes
10353 # This is similar to how AIX traditionally builds its shared libraries.
10354 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'
10360 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10361 allow_undefined_flag_CXX=unsupported
10362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10363 # support --undefined. This deserves some investigation. FIXME
10364 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10371 case $cc_basename in
10373 # FIXME: insert proper C++ library support
10379 cygwin* | mingw* | pw32*)
10380 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10381 # as there is no search path for DLLs.
10382 hardcode_libdir_flag_spec_CXX='-L$libdir'
10383 allow_undefined_flag_CXX=unsupported
10384 always_export_symbols_CXX=no
10385 enable_shared_with_static_runtimes_CXX=yes
10387 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10388 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'
10389 # If the export-symbols file already is a .def file (1st line
10390 # is EXPORTS), use it as is; otherwise, prepend...
10391 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10392 cp $export_symbols $output_objdir/$soname.def;
10394 echo EXPORTS > $output_objdir/$soname.def;
10395 cat $export_symbols >> $output_objdir/$soname.def;
10397 $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'
10402 darwin* | rhapsody*)
10404 rhapsody* | darwin1.[012])
10405 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10408 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10409 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10411 case ${MACOSX_DEPLOYMENT_TARGET} in
10413 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10416 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10422 archive_cmds_need_lc_CXX=no
10423 hardcode_direct_CXX=no
10424 hardcode_automatic_CXX=yes
10425 hardcode_shlibpath_var_CXX=unsupported
10426 whole_archive_flag_spec_CXX=''
10427 link_all_deplibs_CXX=yes
10429 if test "$GXX" = yes ; then
10430 lt_int_apple_cc_single_mod=no
10431 output_verbose_link_cmd='echo'
10432 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10433 lt_int_apple_cc_single_mod=yes
10435 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10436 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10438 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'
10440 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10441 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10442 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10443 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}'
10445 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}'
10447 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}'
10449 case $cc_basename in
10451 output_verbose_link_cmd='echo'
10452 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'
10453 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10455 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}'
10456 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}'
10466 case $cc_basename in
10468 # FIXME: insert proper C++ library support
10472 # Green Hills C++ Compiler
10473 # FIXME: insert proper C++ library support
10477 # FIXME: insert proper C++ library support
10483 # C++ shared libraries reported to be fairly broken before switch to ELF
10487 archive_cmds_need_lc_CXX=no
10489 freebsd* | kfreebsd*-gnu | dragonfly*)
10490 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10497 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10498 hardcode_libdir_separator_CXX=:
10499 export_dynamic_flag_spec_CXX='${wl}-E'
10500 hardcode_direct_CXX=yes
10501 hardcode_minus_L_CXX=yes # Not in the search PATH,
10502 # but as the default
10503 # location of the library.
10505 case $cc_basename in
10507 # FIXME: insert proper C++ library support
10511 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'
10512 # Commands to make compiler produce verbose output that lists
10513 # what "hidden" libraries, object files and flags are used when
10514 # linking a shared library.
10516 # There doesn't appear to be a way to prevent this compiler from
10517 # explicitly linking system object files so we need to strip them
10518 # from the output so that they don't get included in the library
10520 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'
10523 if test "$GXX" = yes; then
10524 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'
10526 # FIXME: insert proper C++ library support
10533 if test $with_gnu_ld = no; then
10534 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10535 hardcode_libdir_separator_CXX=:
10539 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10542 export_dynamic_flag_spec_CXX='${wl}-E'
10548 hardcode_direct_CXX=no
10549 hardcode_shlibpath_var_CXX=no
10552 hardcode_direct_CXX=yes
10553 hardcode_minus_L_CXX=yes # Not in the search PATH,
10554 # but as the default
10555 # location of the library.
10559 case $cc_basename in
10561 # FIXME: insert proper C++ library support
10567 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10570 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10576 # Commands to make compiler produce verbose output that lists
10577 # what "hidden" libraries, object files and flags are used when
10578 # linking a shared library.
10580 # There doesn't appear to be a way to prevent this compiler from
10581 # explicitly linking system object files so we need to strip them
10582 # from the output so that they don't get included in the library
10584 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'
10587 if test "$GXX" = yes; then
10588 if test $with_gnu_ld = no; then
10591 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10594 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10597 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'
10602 # FIXME: insert proper C++ library support
10609 hardcode_direct_CXX=no
10610 hardcode_shlibpath_var_CXX=no
10611 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10612 export_dynamic_flag_spec_CXX='${wl}-E'
10613 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10614 # Instead, shared libraries are loaded at an image base (0x10000000 by
10615 # default) and relocated if they conflict, which is a slow very memory
10616 # consuming and fragmenting process. To avoid this, we pick a random,
10617 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10618 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10619 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'
10620 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'
10623 case $cc_basename in
10626 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'
10628 # Archives containing C++ object files must be created using
10629 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10630 # necessary to make sure instantiated templates are included
10632 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10635 if test "$GXX" = yes; then
10636 if test "$with_gnu_ld" = no; then
10637 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'
10639 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'
10642 link_all_deplibs_CXX=yes
10645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10646 hardcode_libdir_separator_CXX=:
10649 case $cc_basename in
10651 # Kuck and Associates, Inc. (KAI) C++ Compiler
10653 # KCC will only create a shared library if the output file
10654 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10655 # to its proper name (with version) after linking.
10656 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'
10657 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'
10658 # Commands to make compiler produce verbose output that lists
10659 # what "hidden" libraries, object files and flags are used when
10660 # linking a shared library.
10662 # There doesn't appear to be a way to prevent this compiler from
10663 # explicitly linking system object files so we need to strip them
10664 # from the output so that they don't get included in the library
10666 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'
10668 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10669 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10671 # Archives containing C++ object files must be created using
10672 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10673 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10678 # version 8.0 and above of icpc choke on multiply defined symbols
10679 # if we add $predep_objects and $postdep_objects, however 7.1 and
10680 # earlier do not add the objects themselves.
10681 case `$CC -V 2>&1` in
10683 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10684 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'
10686 *) # Version 8.0 or newer
10689 ia64*) tmp_idyn=' -i_dynamic';;
10691 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10692 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'
10695 archive_cmds_need_lc_CXX=no
10696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10697 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10698 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10701 # Portland Group C++ compiler
10702 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10703 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'
10705 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10707 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'
10711 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10712 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'
10714 runpath_var=LD_RUN_PATH
10715 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10716 hardcode_libdir_separator_CXX=:
10718 # Commands to make compiler produce verbose output that lists
10719 # what "hidden" libraries, object files and flags are used when
10720 # linking a shared library.
10722 # There doesn't appear to be a way to prevent this compiler from
10723 # explicitly linking system object files so we need to strip them
10724 # from the output so that they don't get included in the library
10726 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'
10731 # FIXME: insert proper C++ library support
10735 # FIXME: insert proper C++ library support
10739 case $cc_basename in
10741 # FIXME: insert proper C++ library support
10745 # FIXME: insert proper C++ library support
10751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10752 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10754 hardcode_libdir_flag_spec_CXX='-R$libdir'
10755 hardcode_direct_CXX=yes
10756 hardcode_shlibpath_var_CXX=no
10758 # Workaround some broken pre-1.5 toolchains
10759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10762 # C++ shared libraries are fairly broken
10766 hardcode_direct_CXX=yes
10767 hardcode_shlibpath_var_CXX=no
10768 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10769 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10771 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10772 export_dynamic_flag_spec_CXX='${wl}-E'
10773 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10775 output_verbose_link_cmd='echo'
10778 case $cc_basename in
10780 # Kuck and Associates, Inc. (KAI) C++ Compiler
10782 # KCC will only create a shared library if the output file
10783 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10784 # to its proper name (with version) after linking.
10785 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'
10787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10788 hardcode_libdir_separator_CXX=:
10790 # Archives containing C++ object files must be created using
10791 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10792 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10796 # Rational C++ 2.4.1
10797 # FIXME: insert proper C++ library support
10801 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10802 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'
10804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10805 hardcode_libdir_separator_CXX=:
10807 # Commands to make compiler produce verbose output that lists
10808 # what "hidden" libraries, object files and flags are used when
10809 # linking a shared library.
10811 # There doesn't appear to be a way to prevent this compiler from
10812 # explicitly linking system object files so we need to strip them
10813 # from the output so that they don't get included in the library
10815 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'
10818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10820 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'
10822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10823 hardcode_libdir_separator_CXX=:
10825 # Commands to make compiler produce verbose output that lists
10826 # what "hidden" libraries, object files and flags are used when
10827 # linking a shared library.
10828 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10831 # FIXME: insert proper C++ library support
10838 case $cc_basename in
10840 # Kuck and Associates, Inc. (KAI) C++ Compiler
10842 # KCC will only create a shared library if the output file
10843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10844 # to its proper name (with version) after linking.
10845 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'
10847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10848 hardcode_libdir_separator_CXX=:
10850 # Archives containing C++ object files must be created using
10851 # the KAI C++ compiler.
10852 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10855 # Rational C++ 2.4.1
10856 # FIXME: insert proper C++ library support
10860 allow_undefined_flag_CXX=' -expect_unresolved \*'
10861 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'
10862 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10863 echo "-hidden">> $lib.exp~
10864 $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~
10867 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10868 hardcode_libdir_separator_CXX=:
10870 # Commands to make compiler produce verbose output that lists
10871 # what "hidden" libraries, object files and flags are used when
10872 # linking a shared library.
10874 # There doesn't appear to be a way to prevent this compiler from
10875 # explicitly linking system object files so we need to strip them
10876 # from the output so that they don't get included in the library
10878 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'
10881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10883 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'
10885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10886 hardcode_libdir_separator_CXX=:
10888 # Commands to make compiler produce verbose output that lists
10889 # what "hidden" libraries, object files and flags are used when
10890 # linking a shared library.
10891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10894 # FIXME: insert proper C++ library support
10901 # FIXME: insert proper C++ library support
10905 case $cc_basename in
10908 # FIXME: insert proper C++ library support
10913 # FIXME: insert proper C++ library support
10917 # FIXME: insert proper C++ library support
10923 case $cc_basename in
10925 # Sun C++ 4.2, 5.x and Centerline C++
10926 archive_cmds_need_lc_CXX=yes
10927 no_undefined_flag_CXX=' -zdefs'
10928 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10929 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10930 $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'
10932 hardcode_libdir_flag_spec_CXX='-R$libdir'
10933 hardcode_shlibpath_var_CXX=no
10935 solaris2.[0-5] | solaris2.[0-5].*) ;;
10937 # The C++ compiler is used as linker so we must use $wl
10938 # flag to pass the commands to the underlying system
10939 # linker. We must also pass each convience library through
10940 # to the system linker between allextract/defaultextract.
10941 # The C++ compiler will combine linker options so we
10942 # cannot just pass the convience library names through
10944 # Supported since Solaris 2.6 (maybe 2.5.1?)
10945 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'
10948 link_all_deplibs_CXX=yes
10950 output_verbose_link_cmd='echo'
10952 # Archives containing C++ object files must be created using
10953 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10954 # necessary to make sure instantiated templates are included
10956 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10959 # Green Hills C++ Compiler
10960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10962 # The C++ compiler must be used to create the archive.
10963 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10966 # GNU C++ compiler with Solaris linker
10967 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10968 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10969 if $CC --version | grep -v '^2\.7' > /dev/null; then
10970 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10971 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10972 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10974 # Commands to make compiler produce verbose output that lists
10975 # what "hidden" libraries, object files and flags are used when
10976 # linking a shared library.
10977 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10979 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10981 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10983 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10985 # Commands to make compiler produce verbose output that lists
10986 # what "hidden" libraries, object files and flags are used when
10987 # linking a shared library.
10988 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10991 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10996 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10997 no_undefined_flag_CXX='${wl}-z,text'
10998 archive_cmds_need_lc_CXX=no
10999 hardcode_shlibpath_var_CXX=no
11000 runpath_var='LD_RUN_PATH'
11002 case $cc_basename in
11004 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 sysv5* | sco3.2v5* | sco5v6*)
11014 # Note: We can NOT use -z defs as we might desire, because we do not
11015 # link with -lc, and that would cause any symbols used from libc to
11016 # always be unresolved, which means just about no library would
11017 # ever link correctly. If we're not using GNU ld we use -z text
11018 # though, which does catch some bad symbols but isn't as heavy-handed
11020 # For security reasons, it is highly recommended that you always
11021 # use absolute paths for naming shared libraries, and exclude the
11022 # DT_RUNPATH tag from executables and libraries. But doing so
11023 # requires that you compile everything twice, which is a pain.
11024 # So that behaviour is only enabled if SCOABSPATH is set to a
11025 # non-empty value in the environment. Most likely only useful for
11026 # creating official distributions of packages.
11027 # This is a hack until libtool officially supports absolute path
11028 # names for shared libraries.
11029 no_undefined_flag_CXX='${wl}-z,text'
11030 allow_undefined_flag_CXX='${wl}-z,nodefs'
11031 archive_cmds_need_lc_CXX=no
11032 hardcode_shlibpath_var_CXX=no
11033 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11034 hardcode_libdir_separator_CXX=':'
11035 link_all_deplibs_CXX=yes
11036 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11037 runpath_var='LD_RUN_PATH'
11039 case $cc_basename in
11041 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11042 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11046 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051 case $cc_basename in
11053 # NonStop-UX NCC 3.20
11054 # FIXME: insert proper C++ library support
11058 # FIXME: insert proper C++ library support
11064 # FIXME: insert proper C++ library support
11068 # FIXME: insert proper C++ library support
11072 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11073 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11074 test "$ld_shlibs_CXX" = no && can_build_shared=no
11080 cat > conftest.$ac_ext <<EOF
11084 Foo (void) { a = 0; }
11090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091 (eval $ac_compile) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; then
11095 # Parse the compiler output and extract the necessary
11096 # objects, libraries and library flags.
11098 # Sentinel used to keep track of whether or not we are before
11099 # the conftest object file.
11100 pre_test_object_deps_done=no
11102 # The `*' in the case matches for architectures that use `case' in
11103 # $output_verbose_cmd can trigger glob expansion during the loop
11104 # eval without this substitution.
11105 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11107 for p in `eval $output_verbose_link_cmd`; do
11111 # Some compilers place space between "-{L,R}" and the path.
11112 # Remove the space.
11113 if test $p = "-L" \
11114 || test $p = "-R"; then
11121 if test "$pre_test_object_deps_done" = no; then
11124 # Internal compiler library paths should come after those
11125 # provided the user. The postdeps already come after the
11126 # user supplied libs so there is no need to process them.
11127 if test -z "$compiler_lib_search_path_CXX"; then
11128 compiler_lib_search_path_CXX="${prev}${p}"
11130 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11133 # The "-l" case would never come before the object being
11134 # linked, so don't bother handling this case.
11137 if test -z "$postdeps_CXX"; then
11138 postdeps_CXX="${prev}${p}"
11140 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11146 # This assumes that the test object file only shows up
11147 # once in the compiler output.
11148 if test "$p" = "conftest.$objext"; then
11149 pre_test_object_deps_done=yes
11153 if test "$pre_test_object_deps_done" = no; then
11154 if test -z "$predep_objects_CXX"; then
11155 predep_objects_CXX="$p"
11157 predep_objects_CXX="$predep_objects_CXX $p"
11160 if test -z "$postdep_objects_CXX"; then
11161 postdep_objects_CXX="$p"
11163 postdep_objects_CXX="$postdep_objects_CXX $p"
11168 *) ;; # Ignore the rest.
11176 echo "libtool.m4: error: problem compiling CXX test program"
11179 $rm -f confest.$objext
11181 # PORTME: override above test on systems where it is broken
11184 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11185 # hack all around it, let's just trust "g++" to DTRT.
11186 predep_objects_CXX=
11187 postdep_objects_CXX=
11192 case $cc_basename in
11194 # Adding this requires a known-good setup of shared libraries for
11195 # Sun compiler versions before 5.6, else PIC objects from an old
11196 # archive will be linked into the output, leading to subtle bugs.
11197 postdeps_CXX='-lCstd -lCrun'
11204 case " $postdeps_CXX " in
11205 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11208 lt_prog_compiler_wl_CXX=
11209 lt_prog_compiler_pic_CXX=
11210 lt_prog_compiler_static_CXX=
11212 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11213 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11215 # C++ specific cases for pic, static, wl, etc.
11216 if test "$GXX" = yes; then
11217 lt_prog_compiler_wl_CXX='-Wl,'
11218 lt_prog_compiler_static_CXX='-static'
11222 # All AIX code is PIC.
11223 if test "$host_cpu" = ia64; then
11224 # AIX 5 now supports IA64 processor
11225 lt_prog_compiler_static_CXX='-Bstatic'
11229 # FIXME: we need at least 68020 code to build shared libraries, but
11230 # adding the `-m68020' flag to GCC prevents building anything better,
11232 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11234 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11235 # PIC is the default for these OSes.
11237 mingw* | os2* | pw32*)
11238 # This hack is so that the source file can tell whether it is being
11239 # built for inclusion in a dll (and should export symbols for example).
11240 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11242 darwin* | rhapsody*)
11243 # PIC is the default on this platform
11244 # Common symbols not allowed in MH_DYLIB files
11245 lt_prog_compiler_pic_CXX='-fno-common'
11248 # DJGPP does not support shared libraries at all
11249 lt_prog_compiler_pic_CXX=
11252 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11253 # Instead, we relocate shared libraries at runtime.
11256 if test -d /usr/nec; then
11257 lt_prog_compiler_pic_CXX=-Kconform_pic
11261 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11262 # not for PA HP-UX.
11267 lt_prog_compiler_pic_CXX='-fPIC'
11272 lt_prog_compiler_pic_CXX='-fPIC'
11278 # All AIX code is PIC.
11279 if test "$host_cpu" = ia64; then
11280 # AIX 5 now supports IA64 processor
11281 lt_prog_compiler_static_CXX='-Bstatic'
11283 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11287 case $cc_basename in
11289 # Green Hills C++ Compiler
11290 # _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"
11295 # PIC is the default on this platform
11296 # Common symbols not allowed in MH_DYLIB files
11297 case $cc_basename in
11299 lt_prog_compiler_pic_CXX='-qnocommon'
11300 lt_prog_compiler_wl_CXX='-Wl,'
11305 case $cc_basename in
11307 lt_prog_compiler_pic_CXX='-KPIC'
11310 # Green Hills C++ Compiler
11311 lt_prog_compiler_pic_CXX='-pic'
11317 freebsd* | kfreebsd*-gnu | dragonfly*)
11318 # FreeBSD uses GNU C++
11320 hpux9* | hpux10* | hpux11*)
11321 case $cc_basename in
11323 lt_prog_compiler_wl_CXX='-Wl,'
11324 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11325 if test "$host_cpu" != ia64; then
11326 lt_prog_compiler_pic_CXX='+Z'
11330 lt_prog_compiler_wl_CXX='-Wl,'
11331 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11337 lt_prog_compiler_pic_CXX='+Z'
11346 # This is c89, which is MS Visual C++ (no shared libs)
11347 # Anyone wants to do a port?
11349 irix5* | irix6* | nonstopux*)
11350 case $cc_basename in
11352 lt_prog_compiler_wl_CXX='-Wl,'
11353 lt_prog_compiler_static_CXX='-non_shared'
11354 # CC pic flag -KPIC is the default.
11361 case $cc_basename in
11364 lt_prog_compiler_wl_CXX='--backend -Wl,'
11365 lt_prog_compiler_pic_CXX='-fPIC'
11369 lt_prog_compiler_wl_CXX='-Wl,'
11370 lt_prog_compiler_pic_CXX='-KPIC'
11371 lt_prog_compiler_static_CXX='-static'
11374 # Portland Group C++ compiler.
11375 lt_prog_compiler_wl_CXX='-Wl,'
11376 lt_prog_compiler_pic_CXX='-fpic'
11377 lt_prog_compiler_static_CXX='-Bstatic'
11381 # Make sure the PIC flag is empty. It appears that all Alpha
11382 # Linux and Compaq Tru64 Unix objects are PIC.
11383 lt_prog_compiler_pic_CXX=
11384 lt_prog_compiler_static_CXX='-non_shared'
11395 case $cc_basename in
11397 lt_prog_compiler_pic_CXX='-W c,exportall'
11405 osf3* | osf4* | osf5*)
11406 case $cc_basename in
11408 lt_prog_compiler_wl_CXX='--backend -Wl,'
11411 # Rational C++ 2.4.1
11412 lt_prog_compiler_pic_CXX='-pic'
11415 # Digital/Compaq C++
11416 lt_prog_compiler_wl_CXX='-Wl,'
11417 # Make sure the PIC flag is empty. It appears that all Alpha
11418 # Linux and Compaq Tru64 Unix objects are PIC.
11419 lt_prog_compiler_pic_CXX=
11420 lt_prog_compiler_static_CXX='-non_shared'
11429 case $cc_basename in
11431 # Sun C++ 4.2, 5.x and Centerline C++
11432 lt_prog_compiler_pic_CXX='-KPIC'
11433 lt_prog_compiler_static_CXX='-Bstatic'
11434 lt_prog_compiler_wl_CXX='-Qoption ld '
11437 # Green Hills C++ Compiler
11438 lt_prog_compiler_pic_CXX='-PIC'
11445 case $cc_basename in
11448 lt_prog_compiler_pic_CXX='-pic'
11449 lt_prog_compiler_static_CXX='-Bstatic'
11453 lt_prog_compiler_pic_CXX='-pic'
11460 case $cc_basename in
11462 # NonStop-UX NCC 3.20
11463 lt_prog_compiler_pic_CXX='-KPIC'
11469 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11470 case $cc_basename in
11472 lt_prog_compiler_wl_CXX='-Wl,'
11473 lt_prog_compiler_pic_CXX='-KPIC'
11474 lt_prog_compiler_static_CXX='-Bstatic'
11481 lt_prog_compiler_can_build_shared_CXX=no
11486 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11487 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11490 # Check to make sure the PIC flag actually works.
11492 if test -n "$lt_prog_compiler_pic_CXX"; then
11494 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11495 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11496 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 lt_prog_compiler_pic_works_CXX=no
11500 ac_outfile=conftest.$ac_objext
11501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11502 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11503 # Insert the option either (1) after the last *FLAGS variable, or
11504 # (2) before a word containing "conftest.", or (3) at the end.
11505 # Note that $ac_compile itself does not contain backslashes and begins
11506 # with a dollar sign (not a hyphen), so the echo should work correctly.
11507 # The option is referenced via a variable to avoid confusing sed.
11508 lt_compile=`echo "$ac_compile" | $SED \
11509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11511 -e 's:$: $lt_compiler_flag:'`
11512 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11513 (eval "$lt_compile" 2>conftest.err)
11515 cat conftest.err >&5
11516 echo "$as_me:__oline__: \$? = $ac_status" >&5
11517 if (exit $ac_status) && test -s "$ac_outfile"; then
11518 # The compiler can only warn and ignore the option if not recognized
11519 # So say no if there are warnings other than the usual output.
11520 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11523 lt_prog_compiler_pic_works_CXX=yes
11529 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11530 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11532 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11533 case $lt_prog_compiler_pic_CXX in
11535 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11538 lt_prog_compiler_pic_CXX=
11539 lt_prog_compiler_can_build_shared_CXX=no
11544 # For platforms which do not support PIC, -DPIC is meaningless:
11546 lt_prog_compiler_pic_CXX=
11549 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11554 # Check to make sure the static flag actually works.
11556 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11557 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11558 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11559 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 lt_prog_compiler_static_works_CXX=no
11563 save_LDFLAGS="$LDFLAGS"
11564 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11565 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11567 # The linker can only warn and ignore the option if not recognized
11568 # So say no if there are warnings
11569 if test -s conftest.err; then
11570 # Append any errors to the config.log.
11571 cat conftest.err 1>&5
11572 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11574 if diff conftest.exp conftest.er2 >/dev/null; then
11575 lt_prog_compiler_static_works_CXX=yes
11578 lt_prog_compiler_static_works_CXX=yes
11582 LDFLAGS="$save_LDFLAGS"
11585 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11586 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11588 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11591 lt_prog_compiler_static_CXX=
11595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11597 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 lt_cv_prog_compiler_c_o_CXX=no
11601 $rm -r conftest 2>/dev/null
11605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11607 lt_compiler_flag="-o out/conftest2.$ac_objext"
11608 # Insert the option either (1) after the last *FLAGS variable, or
11609 # (2) before a word containing "conftest.", or (3) at the end.
11610 # Note that $ac_compile itself does not contain backslashes and begins
11611 # with a dollar sign (not a hyphen), so the echo should work correctly.
11612 lt_compile=`echo "$ac_compile" | $SED \
11613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11615 -e 's:$: $lt_compiler_flag:'`
11616 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11617 (eval "$lt_compile" 2>out/conftest.err)
11619 cat out/conftest.err >&5
11620 echo "$as_me:__oline__: \$? = $ac_status" >&5
11621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11623 # The compiler can only warn and ignore the option if not recognized
11624 # So say no if there are warnings
11625 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11628 lt_cv_prog_compiler_c_o_CXX=yes
11633 # SGI C++ compiler will create directory out/ii_files/ for
11634 # template instantiation
11635 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11636 $rm out/* && rmdir out
11642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11643 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11646 hard_links="nottested"
11647 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11648 # do not overwrite the value of need_locks provided by the user
11649 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11650 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11655 ln conftest.a conftest.b 2>&5 || hard_links=no
11656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11657 echo "$as_me:$LINENO: result: $hard_links" >&5
11658 echo "${ECHO_T}$hard_links" >&6
11659 if test "$hard_links" = no; then
11660 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11661 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11668 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11669 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11671 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11674 # If we're using GNU nm, then we don't want the "-C" option.
11675 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11676 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11677 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'
11679 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'
11683 export_symbols_cmds_CXX="$ltdll_cmds"
11686 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'
11689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11693 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11694 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11695 test "$ld_shlibs_CXX" = no && can_build_shared=no
11698 # Do we need to explicitly link libc?
11700 case "x$archive_cmds_need_lc_CXX" in
11702 # Assume -lc should be added
11703 archive_cmds_need_lc_CXX=yes
11705 if test "$enable_shared" = yes && test "$GCC" = yes; then
11706 case $archive_cmds_CXX in
11708 # FIXME: we may have to deal with multi-command sequences.
11711 # Test whether the compiler implicitly links with -lc since on some
11712 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11713 # to ld, don't add -lc before -lgcc.
11714 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11715 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11720 (eval $ac_compile) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } 2>conftest.err; then
11726 libobjs=conftest.$ac_objext
11728 wl=$lt_prog_compiler_wl_CXX
11729 pic_flag=$lt_prog_compiler_pic_CXX
11735 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11736 allow_undefined_flag_CXX=
11737 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11738 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }
11743 archive_cmds_need_lc_CXX=no
11745 archive_cmds_need_lc_CXX=yes
11747 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11749 cat conftest.err 1>&5
11752 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11753 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11760 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11761 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11762 library_names_spec=
11763 libname_spec='lib$name'
11767 postuninstall_cmds=
11771 shlibpath_overrides_runpath=unknown
11773 dynamic_linker="$host_os ld.so"
11774 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11775 if test "$GCC" = yes; then
11776 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11777 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11778 # if the path contains ";" then we assume it to be the separator
11779 # otherwise default to the standard path separator (i.e. ":") - it is
11780 # assumed that no part of a normal pathname contains ";" but that should
11781 # okay in the real world where ";" in dirpaths is itself problematic.
11782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11787 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11789 need_lib_prefix=unknown
11790 hardcode_into_libs=no
11792 # when you set need_version to no, make sure it does not cause -set_version
11793 # flags to be left without arguments
11794 need_version=unknown
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11800 shlibpath_var=LIBPATH
11802 # AIX 3 has no versioning support, so we append a major version to the name.
11803 soname_spec='${libname}${release}${shared_ext}$major'
11810 hardcode_into_libs=yes
11811 if test "$host_cpu" = ia64; then
11812 # AIX 5 supports IA64
11813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11814 shlibpath_var=LD_LIBRARY_PATH
11816 # With GCC up to 2.95.x, collect2 would create an import file
11817 # for dependence libraries. The import file would start with
11818 # the line `#! .'. This would cause the generated library to
11819 # depend on `.', always an invalid library. This was fixed in
11820 # development snapshots of GCC prior to 3.0.
11822 aix4 | aix4.[01] | aix4.[01].*)
11823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11825 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11828 can_build_shared=no
11832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11833 # soname into executable. Probably we can add versioning support to
11834 # collect2, so additional links can be useful in future.
11835 if test "$aix_use_runtimelinking" = yes; then
11836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11837 # instead of lib<name>.a to let people know that these are not
11838 # typical AIX shared libraries.
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 # We preserve .a as extension for shared libraries through AIX4.2
11842 # and later when we are not doing run time linking.
11843 library_names_spec='${libname}${release}.a $libname.a'
11844 soname_spec='${libname}${release}${shared_ext}$major'
11846 shlibpath_var=LIBPATH
11851 library_names_spec='$libname.ixlibrary $libname.a'
11852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11853 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'
11857 library_names_spec='${libname}${shared_ext}'
11858 dynamic_linker="$host_os ld.so"
11859 shlibpath_var=LIBRARY_PATH
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11868 shlibpath_var=LD_LIBRARY_PATH
11869 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11870 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11871 # the default ld.so.conf also contains /usr/contrib/lib and
11872 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11873 # libtool to hard-code these into programs
11876 cygwin* | mingw* | pw32*)
11877 version_type=windows
11882 case $GCC,$host_os in
11883 yes,cygwin* | yes,mingw* | yes,pw32*)
11884 library_names_spec='$libname.dll.a'
11885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11886 postinstall_cmds='base_file=`basename \${file}`~
11887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11888 dldir=$destdir/`dirname \$dlpath`~
11889 test -d \$dldir || mkdir -p \$dldir~
11890 $install_prog $dir/$dlname \$dldir/$dlname~
11891 chmod a+x \$dldir/$dlname'
11892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11893 dlpath=$dir/\$dldll~
11895 shlibpath_overrides_runpath=yes
11899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11901 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11904 # MinGW DLLs use traditional 'lib' prefix
11905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11907 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11908 # It is most probably a Windows format PATH printed by
11909 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11910 # path with ; separators, and with drive letters. We can handle the
11911 # drive letters (cygwin fileutils understands them), so leave them,
11912 # especially as we might pass files found there to a mingw objdump,
11913 # which wouldn't understand a cygwinified path. Ahh.
11914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11920 # pw32 DLLs use 'pw' prefix rather than 'lib'
11921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11927 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11930 dynamic_linker='Win32 ld.exe'
11931 # FIXME: first we should search . and the directory the executable is in
11935 darwin* | rhapsody*)
11936 dynamic_linker="$host_os dyld"
11937 version_type=darwin
11940 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11941 soname_spec='${libname}${release}${major}$shared_ext'
11942 shlibpath_overrides_runpath=yes
11943 shlibpath_var=DYLD_LIBRARY_PATH
11944 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11945 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11946 if test "$GCC" = yes; then
11947 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"`
11949 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11959 soname_spec='${libname}${release}${shared_ext}$major'
11960 shlibpath_var=LD_LIBRARY_PATH
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11974 shlibpath_overrides_runpath=no
11975 hardcode_into_libs=yes
11976 dynamic_linker='GNU ld.so'
11979 freebsd* | dragonfly*)
11980 # DragonFly does not have aout. When/if they implement a new
11981 # versioning mechanism, adjust this.
11982 if test -x /usr/bin/objformat; then
11983 objformat=`/usr/bin/objformat`
11986 freebsd[123]*) objformat=aout ;;
11987 *) objformat=elf ;;
11990 version_type=freebsd-$objformat
11991 case $version_type in
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12002 shlibpath_var=LD_LIBRARY_PATH
12005 shlibpath_overrides_runpath=yes
12007 freebsd3.[01]* | freebsdelf3.[01]*)
12008 shlibpath_overrides_runpath=yes
12009 hardcode_into_libs=yes
12011 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12012 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12013 shlibpath_overrides_runpath=no
12014 hardcode_into_libs=yes
12016 freebsd*) # from 4.6 on
12017 shlibpath_overrides_runpath=yes
12018 hardcode_into_libs=yes
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 hardcode_into_libs=yes
12033 hpux9* | hpux10* | hpux11*)
12034 # Give a soname corresponding to the major version so that dld.sl refuses to
12035 # link against other versions.
12042 hardcode_into_libs=yes
12043 dynamic_linker="$host_os dld.so"
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 if test "X$HPUX_IA64_MODE" = X32; then
12049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12057 hardcode_into_libs=yes
12058 dynamic_linker="$host_os dld.sl"
12059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12068 dynamic_linker="$host_os dld.sl"
12069 shlibpath_var=SHLIB_PATH
12070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12075 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12076 postinstall_cmds='chmod 555 $lib'
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=no
12088 hardcode_into_libs=yes
12091 irix5* | irix6* | nonstopux*)
12093 nonstopux*) version_type=nonstopux ;;
12095 if test "$lt_cv_prog_gnu_ld" = yes; then
12103 soname_spec='${libname}${release}${shared_ext}$major'
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12106 irix5* | nonstopux*)
12107 libsuff= shlibsuff=
12110 case $LD in # libtool.m4 will add one of these switches to LD
12111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12112 libsuff= shlibsuff= libmagic=32-bit;;
12113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12114 libsuff=32 shlibsuff=N32 libmagic=N32;;
12115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12116 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12117 *) libsuff= shlibsuff= libmagic=never-match;;
12121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12122 shlibpath_overrides_runpath=no
12123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12125 hardcode_into_libs=yes
12128 # No shared lib support for Linux oldld, aout, or coff.
12129 linux*oldld* | linux*aout* | linux*coff*)
12133 # This must be Linux ELF.
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=no
12143 # This implies no fast_install, which is unacceptable.
12144 # Some rework will be needed to allow for fast_install
12145 # before this can be enabled.
12146 hardcode_into_libs=yes
12148 # Append ld.so.conf contents to the search path
12149 if test -f /etc/ld.so.conf; then
12150 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' ' '`
12151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12154 # We used to test for /lib/ld.so.1 and disable shared libraries on
12155 # powerpc, because MkLinux only supported shared libraries with the
12156 # GNU dynamic linker. Since this was broken with cross compilers,
12157 # most powerpc-linux boxes support dynamic linking these days and
12158 # people can always --disable-shared, the test was removed, and we
12159 # assume the GNU/Linux dynamic linker is in use.
12160 dynamic_linker='GNU/Linux ld.so'
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=no
12171 hardcode_into_libs=yes
12172 dynamic_linker='GNU ld.so'
12179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12182 dynamic_linker='NetBSD (a.out) ld.so'
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12185 soname_spec='${libname}${release}${shared_ext}$major'
12186 dynamic_linker='NetBSD ld.elf_so'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 shlibpath_overrides_runpath=yes
12190 hardcode_into_libs=yes
12195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 shlibpath_overrides_runpath=yes
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 shlibpath_var=LD_LIBRARY_PATH
12207 shlibpath_overrides_runpath=yes
12212 sys_lib_dlsearch_path_spec="/usr/lib"
12214 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12216 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12217 *) need_version=no ;;
12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12221 shlibpath_var=LD_LIBRARY_PATH
12222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12224 openbsd2.[89] | openbsd2.[89].*)
12225 shlibpath_overrides_runpath=no
12228 shlibpath_overrides_runpath=yes
12232 shlibpath_overrides_runpath=yes
12237 libname_spec='$name'
12240 library_names_spec='$libname${shared_ext} $libname.a'
12241 dynamic_linker='OS/2 ld.exe'
12242 shlibpath_var=LIBPATH
12245 osf3* | osf4* | osf5*)
12249 soname_spec='${libname}${release}${shared_ext}$major'
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12253 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12261 soname_spec='${libname}${release}${shared_ext}$major'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=yes
12264 hardcode_into_libs=yes
12265 # ldd complains unless libraries are executable
12266 postinstall_cmds='chmod +x $lib'
12271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12272 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 shlibpath_overrides_runpath=yes
12275 if test "$with_gnu_ld" = yes; then
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284 soname_spec='${libname}${release}${shared_ext}$major'
12285 shlibpath_var=LD_LIBRARY_PATH
12286 case $host_vendor in
12288 shlibpath_overrides_runpath=no
12290 export_dynamic_flag_spec='${wl}-Blargedynsym'
12291 runpath_var=LD_RUN_PATH
12299 shlibpath_overrides_runpath=no
12300 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12306 if test -d /usr/nec ;then
12308 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12309 soname_spec='$libname${shared_ext}.$major'
12310 shlibpath_var=LD_LIBRARY_PATH
12314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12315 version_type=freebsd-elf
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12319 soname_spec='${libname}${release}${shared_ext}$major'
12320 shlibpath_var=LD_LIBRARY_PATH
12321 hardcode_into_libs=yes
12322 if test "$with_gnu_ld" = yes; then
12323 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12324 shlibpath_overrides_runpath=no
12326 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12327 shlibpath_overrides_runpath=yes
12330 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12334 sys_lib_dlsearch_path_spec='/usr/lib'
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 soname_spec='${libname}${release}${shared_ext}$major'
12341 shlibpath_var=LD_LIBRARY_PATH
12348 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12349 echo "${ECHO_T}$dynamic_linker" >&6
12350 test "$dynamic_linker" = no && can_build_shared=no
12352 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12353 if test "$GCC" = yes; then
12354 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12357 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12358 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12359 hardcode_action_CXX=
12360 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12361 test -n "$runpath_var_CXX" || \
12362 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12364 # We can hardcode non-existant directories.
12365 if test "$hardcode_direct_CXX" != no &&
12366 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12367 # have to relink, otherwise we might link with an installed library
12368 # when we should be linking with a yet-to-be-installed one
12369 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12370 test "$hardcode_minus_L_CXX" != no; then
12371 # Linking always hardcodes the temporary library directory.
12372 hardcode_action_CXX=relink
12374 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12375 hardcode_action_CXX=immediate
12378 # We cannot hardcode anything, or else we can only hardcode existing
12380 hardcode_action_CXX=unsupported
12382 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12383 echo "${ECHO_T}$hardcode_action_CXX" >&6
12385 if test "$hardcode_action_CXX" = relink; then
12386 # Fast installation is not supported
12387 enable_fast_install=no
12388 elif test "$shlibpath_overrides_runpath" = yes ||
12389 test "$enable_shared" = no; then
12390 # Fast installation is not necessary
12391 enable_fast_install=needless
12395 # The else clause should only fire when bootstrapping the
12396 # libtool distribution, otherwise you forgot to ship ltmain.sh
12397 # with your package, and you will get complaints that there are
12398 # no rules to generate ltmain.sh.
12399 if test -f "$ltmain"; then
12400 # See if we are running on zsh, and set the options which allow our commands through
12401 # without removal of \ escapes.
12402 if test -n "${ZSH_VERSION+set}" ; then
12403 setopt NO_GLOB_SUBST
12405 # Now quote all the things that may contain metacharacters while being
12406 # careful not to overquote the AC_SUBSTed values. We take copies of the
12407 # variables and quote the copies for generation of the libtool script.
12408 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12410 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12411 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12412 deplibs_check_method reload_flag reload_cmds need_locks \
12413 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12414 lt_cv_sys_global_symbol_to_c_name_address \
12415 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12416 old_postinstall_cmds old_postuninstall_cmds \
12420 lt_prog_compiler_wl_CXX \
12421 lt_prog_compiler_pic_CXX \
12422 lt_prog_compiler_static_CXX \
12423 lt_prog_compiler_no_builtin_flag_CXX \
12424 export_dynamic_flag_spec_CXX \
12425 thread_safe_flag_spec_CXX \
12426 whole_archive_flag_spec_CXX \
12427 enable_shared_with_static_runtimes_CXX \
12428 old_archive_cmds_CXX \
12429 old_archive_from_new_cmds_CXX \
12430 predep_objects_CXX \
12431 postdep_objects_CXX \
12434 compiler_lib_search_path_CXX \
12436 archive_expsym_cmds_CXX \
12437 postinstall_cmds_CXX \
12438 postuninstall_cmds_CXX \
12439 old_archive_from_expsyms_cmds_CXX \
12440 allow_undefined_flag_CXX \
12441 no_undefined_flag_CXX \
12442 export_symbols_cmds_CXX \
12443 hardcode_libdir_flag_spec_CXX \
12444 hardcode_libdir_flag_spec_ld_CXX \
12445 hardcode_libdir_separator_CXX \
12446 hardcode_automatic_CXX \
12448 module_expsym_cmds_CXX \
12449 lt_cv_prog_compiler_c_o_CXX \
12450 exclude_expsyms_CXX \
12451 include_expsyms_CXX; do
12454 old_archive_cmds_CXX | \
12455 old_archive_from_new_cmds_CXX | \
12456 archive_cmds_CXX | \
12457 archive_expsym_cmds_CXX | \
12458 module_cmds_CXX | \
12459 module_expsym_cmds_CXX | \
12460 old_archive_from_expsyms_cmds_CXX | \
12461 export_symbols_cmds_CXX | \
12462 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12463 postinstall_cmds | postuninstall_cmds | \
12464 old_postinstall_cmds | old_postuninstall_cmds | \
12465 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12466 # Double-quote double-evaled strings.
12467 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12476 *'\$0 --fallback-echo"')
12477 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12483 cat <<__EOF__ >> "$cfgfile"
12484 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12488 # Shell to use when invoking shell scripts.
12491 # Whether or not to build shared libraries.
12492 build_libtool_libs=$enable_shared
12494 # Whether or not to build static libraries.
12495 build_old_libs=$enable_static
12497 # Whether or not to add -lc for building shared libraries.
12498 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12500 # Whether or not to disallow shared libs when runtime libs are static
12501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12503 # Whether or not to optimize for fast installation.
12504 fast_install=$enable_fast_install
12507 host_alias=$host_alias
12511 # The build system.
12512 build_alias=$build_alias
12516 # An echo program that does not interpret backslashes.
12521 AR_FLAGS=$lt_AR_FLAGS
12526 # LTCC compiler flags.
12527 LTCFLAGS=$lt_LTCFLAGS
12529 # A language-specific compiler.
12530 CC=$lt_compiler_CXX
12532 # Is the compiler the GNU C compiler?
12538 # The linker used to build libraries.
12541 # Whether we need hard or soft links.
12544 # A BSD-compatible nm program.
12547 # A symbol stripping program
12550 # Used to examine libraries when file_magic_cmd begins "file"
12551 MAGIC_CMD=$MAGIC_CMD
12553 # Used on cygwin: DLL creation program.
12556 # Used on cygwin: object dumper.
12559 # Used on cygwin: assembler.
12562 # The name of the directory that contains temporary libtool files.
12565 # How to create reloadable object files.
12566 reload_flag=$lt_reload_flag
12567 reload_cmds=$lt_reload_cmds
12569 # How to pass a linker flag through the compiler.
12570 wl=$lt_lt_prog_compiler_wl_CXX
12572 # Object file suffix (normally "o").
12573 objext="$ac_objext"
12575 # Old archive suffix (normally "a").
12578 # Shared library suffix (normally ".so").
12579 shrext_cmds='$shrext_cmds'
12581 # Executable file suffix (normally "").
12584 # Additional compiler flags for building library objects.
12585 pic_flag=$lt_lt_prog_compiler_pic_CXX
12588 # What is the maximum length of a command?
12589 max_cmd_len=$lt_cv_sys_max_cmd_len
12591 # Does compiler simultaneously support -c and -o options?
12592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12594 # Must we lock files when doing compilation?
12595 need_locks=$lt_need_locks
12597 # Do we need the lib prefix for modules?
12598 need_lib_prefix=$need_lib_prefix
12600 # Do we need a version for libraries?
12601 need_version=$need_version
12603 # Whether dlopen is supported.
12604 dlopen_support=$enable_dlopen
12606 # Whether dlopen of programs is supported.
12607 dlopen_self=$enable_dlopen_self
12609 # Whether dlopen of statically linked programs is supported.
12610 dlopen_self_static=$enable_dlopen_self_static
12612 # Compiler flag to prevent dynamic linking.
12613 link_static_flag=$lt_lt_prog_compiler_static_CXX
12615 # Compiler flag to turn off builtin functions.
12616 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12618 # Compiler flag to allow reflexive dlopens.
12619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12621 # Compiler flag to generate shared objects directly from archives.
12622 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12624 # Compiler flag to generate thread-safe objects.
12625 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12627 # Library versioning type.
12628 version_type=$version_type
12630 # Format of library name prefix.
12631 libname_spec=$lt_libname_spec
12633 # List of archive names. First name is the real one, the rest are links.
12634 # The last name is the one that the linker finds with -lNAME.
12635 library_names_spec=$lt_library_names_spec
12637 # The coded name of the library, if different from the real name.
12638 soname_spec=$lt_soname_spec
12640 # Commands used to build and install an old-style archive.
12642 old_archive_cmds=$lt_old_archive_cmds_CXX
12643 old_postinstall_cmds=$lt_old_postinstall_cmds
12644 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12646 # Create an old-style archive from a shared archive.
12647 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12649 # Create a temporary old-style archive to link instead of a shared archive.
12650 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12652 # Commands used to build and install a shared archive.
12653 archive_cmds=$lt_archive_cmds_CXX
12654 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12655 postinstall_cmds=$lt_postinstall_cmds
12656 postuninstall_cmds=$lt_postuninstall_cmds
12658 # Commands used to build a loadable module (assumed same as above if empty)
12659 module_cmds=$lt_module_cmds_CXX
12660 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12662 # Commands to strip libraries.
12663 old_striplib=$lt_old_striplib
12664 striplib=$lt_striplib
12666 # Dependencies to place before the objects being linked to create a
12668 predep_objects=$lt_predep_objects_CXX
12670 # Dependencies to place after the objects being linked to create a
12672 postdep_objects=$lt_postdep_objects_CXX
12674 # Dependencies to place before the objects being linked to create a
12676 predeps=$lt_predeps_CXX
12678 # Dependencies to place after the objects being linked to create a
12680 postdeps=$lt_postdeps_CXX
12682 # The library search path used internally by the compiler when linking
12683 # a shared library.
12684 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12686 # Method to check whether dependent libraries are shared objects.
12687 deplibs_check_method=$lt_deplibs_check_method
12689 # Command to use when deplibs_check_method == file_magic.
12690 file_magic_cmd=$lt_file_magic_cmd
12692 # Flag that allows shared libraries with undefined symbols to be built.
12693 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12695 # Flag that forces no undefined symbols.
12696 no_undefined_flag=$lt_no_undefined_flag_CXX
12698 # Commands used to finish a libtool library installation in a directory.
12699 finish_cmds=$lt_finish_cmds
12701 # Same as above, but a single script fragment to be evaled but not shown.
12702 finish_eval=$lt_finish_eval
12704 # Take the output of nm and produce a listing of raw symbols and C names.
12705 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12707 # Transform the output of nm in a proper C declaration
12708 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12710 # Transform the output of nm in a C name address pair
12711 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12713 # This is the shared library runtime path variable.
12714 runpath_var=$runpath_var
12716 # This is the shared library path variable.
12717 shlibpath_var=$shlibpath_var
12719 # Is shlibpath searched before the hard-coded library search path?
12720 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12722 # How to hardcode a shared library path into an executable.
12723 hardcode_action=$hardcode_action_CXX
12725 # Whether we should hardcode library paths into libraries.
12726 hardcode_into_libs=$hardcode_into_libs
12728 # Flag to hardcode \$libdir into a binary during linking.
12729 # This must work even if \$libdir does not exist.
12730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12732 # If ld is used when linking, flag to hardcode \$libdir into
12733 # a binary during linking. This must work even if \$libdir does
12735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12737 # Whether we need a single -rpath flag with a separated argument.
12738 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12740 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12741 # resulting binary.
12742 hardcode_direct=$hardcode_direct_CXX
12744 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12745 # resulting binary.
12746 hardcode_minus_L=$hardcode_minus_L_CXX
12748 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12749 # the resulting binary.
12750 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12752 # Set to yes if building a shared library automatically hardcodes DIR into the library
12753 # and all subsequent libraries and executables linked against it.
12754 hardcode_automatic=$hardcode_automatic_CXX
12756 # Variables whose values should be saved in libtool wrapper scripts and
12757 # restored at relink time.
12758 variables_saved_for_relink="$variables_saved_for_relink"
12760 # Whether libtool must link a program against all its dependency libraries.
12761 link_all_deplibs=$link_all_deplibs_CXX
12763 # Compile-time system search path for libraries
12764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12766 # Run-time system search path for libraries
12767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12769 # Fix the shell variable \$srcfile for the compiler.
12770 fix_srcfile_path="$fix_srcfile_path_CXX"
12772 # Set to yes if exported symbols are required.
12773 always_export_symbols=$always_export_symbols_CXX
12775 # The commands to list exported symbols.
12776 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12778 # The commands to extract the exported symbol list from a shared archive.
12779 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12781 # Symbols that should not be listed in the preloaded symbols.
12782 exclude_expsyms=$lt_exclude_expsyms_CXX
12784 # Symbols that must always be exported.
12785 include_expsyms=$lt_include_expsyms_CXX
12787 # ### END LIBTOOL TAG CONFIG: $tagname
12793 # If there is no Makefile yet, we rely on a make rule to execute
12794 # `config.status --recheck' to rerun these tests and create the
12795 # libtool script then.
12796 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12797 if test -f "$ltmain_in"; then
12798 test -f Makefile && make "$ltmain"
12804 ac_cpp='$CPP $CPPFLAGS'
12805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12813 with_gnu_ldcxx=$with_gnu_ld
12814 with_gnu_ld=$lt_save_with_gnu_ld
12815 lt_cv_path_LDCXX=$lt_cv_path_LD
12816 lt_cv_path_LD=$lt_save_path_LD
12817 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12818 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12826 if test -n "$F77" && test "X$F77" != "Xno"; then
12829 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12830 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12831 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12834 archive_cmds_need_lc_F77=no
12835 allow_undefined_flag_F77=
12836 always_export_symbols_F77=no
12837 archive_expsym_cmds_F77=
12838 export_dynamic_flag_spec_F77=
12839 hardcode_direct_F77=no
12840 hardcode_libdir_flag_spec_F77=
12841 hardcode_libdir_flag_spec_ld_F77=
12842 hardcode_libdir_separator_F77=
12843 hardcode_minus_L_F77=no
12844 hardcode_automatic_F77=no
12846 module_expsym_cmds_F77=
12847 link_all_deplibs_F77=unknown
12848 old_archive_cmds_F77=$old_archive_cmds
12849 no_undefined_flag_F77=
12850 whole_archive_flag_spec_F77=
12851 enable_shared_with_static_runtimes_F77=no
12853 # Source file extension for f77 test sources.
12856 # Object file extension for compiled f77 test sources.
12860 # Code to be used in simple compile tests
12861 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12863 # Code to be used in simple link tests
12864 lt_simple_link_test_code=" program t\n end\n"
12866 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12868 # If no C compiler was specified, use CC.
12871 # If no C compiler flags were specified, use CFLAGS.
12872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12874 # Allow CC to be a program name with arguments.
12878 # save warnings/boilerplate of simple test code
12879 ac_outfile=conftest.$ac_objext
12880 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12882 _lt_compiler_boilerplate=`cat conftest.err`
12885 ac_outfile=conftest.$ac_objext
12886 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12888 _lt_linker_boilerplate=`cat conftest.err`
12892 # Allow CC to be a program name with arguments.
12897 for cc_temp in $compiler""; do
12899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12908 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12909 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12910 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12911 echo "${ECHO_T}$can_build_shared" >&6
12913 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12914 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12915 test "$can_build_shared" = "no" && enable_shared=no
12917 # On AIX, shared libraries and static libraries use the same namespace, and
12918 # are all built from PIC.
12921 test "$enable_shared" = yes && enable_static=no
12922 if test -n "$RANLIB"; then
12923 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12924 postinstall_cmds='$RANLIB $lib'
12928 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12929 test "$enable_shared" = yes && enable_static=no
12933 echo "$as_me:$LINENO: result: $enable_shared" >&5
12934 echo "${ECHO_T}$enable_shared" >&6
12936 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12938 # Make sure either enable_shared or enable_static is yes.
12939 test "$enable_shared" = yes || enable_static=yes
12940 echo "$as_me:$LINENO: result: $enable_static" >&5
12941 echo "${ECHO_T}$enable_static" >&6
12946 lt_prog_compiler_wl_F77=
12947 lt_prog_compiler_pic_F77=
12948 lt_prog_compiler_static_F77=
12950 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12951 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12953 if test "$GCC" = yes; then
12954 lt_prog_compiler_wl_F77='-Wl,'
12955 lt_prog_compiler_static_F77='-static'
12959 # All AIX code is PIC.
12960 if test "$host_cpu" = ia64; then
12961 # AIX 5 now supports IA64 processor
12962 lt_prog_compiler_static_F77='-Bstatic'
12967 # FIXME: we need at least 68020 code to build shared libraries, but
12968 # adding the `-m68020' flag to GCC prevents building anything better,
12970 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12973 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12974 # PIC is the default for these OSes.
12977 mingw* | pw32* | os2*)
12978 # This hack is so that the source file can tell whether it is being
12979 # built for inclusion in a dll (and should export symbols for example).
12980 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12983 darwin* | rhapsody*)
12984 # PIC is the default on this platform
12985 # Common symbols not allowed in MH_DYLIB files
12986 lt_prog_compiler_pic_F77='-fno-common'
12990 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12991 # Instead, we relocate shared libraries at runtime.
12995 # Just because we use GCC doesn't mean we suddenly get shared libraries
12996 # on systems that don't support them.
12997 lt_prog_compiler_can_build_shared_F77=no
13002 if test -d /usr/nec; then
13003 lt_prog_compiler_pic_F77=-Kconform_pic
13008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13009 # not for PA HP-UX.
13015 lt_prog_compiler_pic_F77='-fPIC'
13021 lt_prog_compiler_pic_F77='-fPIC'
13025 # PORTME Check for flag to pass linker flags through the system compiler.
13028 lt_prog_compiler_wl_F77='-Wl,'
13029 if test "$host_cpu" = ia64; then
13030 # AIX 5 now supports IA64 processor
13031 lt_prog_compiler_static_F77='-Bstatic'
13033 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13037 # PIC is the default on this platform
13038 # Common symbols not allowed in MH_DYLIB files
13039 case $cc_basename in
13041 lt_prog_compiler_pic_F77='-qnocommon'
13042 lt_prog_compiler_wl_F77='-Wl,'
13047 mingw* | pw32* | os2*)
13048 # This hack is so that the source file can tell whether it is being
13049 # built for inclusion in a dll (and should export symbols for example).
13050 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13053 hpux9* | hpux10* | hpux11*)
13054 lt_prog_compiler_wl_F77='-Wl,'
13055 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13056 # not for PA HP-UX.
13062 lt_prog_compiler_pic_F77='+Z'
13065 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13066 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13069 irix5* | irix6* | nonstopux*)
13070 lt_prog_compiler_wl_F77='-Wl,'
13071 # PIC (with -KPIC) is the default.
13072 lt_prog_compiler_static_F77='-non_shared'
13076 lt_prog_compiler_pic_F77='-KPIC'
13077 lt_prog_compiler_static_F77='-Bstatic'
13081 case $cc_basename in
13083 lt_prog_compiler_wl_F77='-Wl,'
13084 lt_prog_compiler_pic_F77='-KPIC'
13085 lt_prog_compiler_static_F77='-static'
13087 pgcc* | pgf77* | pgf90* | pgf95*)
13088 # Portland Group compilers (*not* the Pentium gcc compiler,
13089 # which looks to be a dead project)
13090 lt_prog_compiler_wl_F77='-Wl,'
13091 lt_prog_compiler_pic_F77='-fpic'
13092 lt_prog_compiler_static_F77='-Bstatic'
13095 lt_prog_compiler_wl_F77='-Wl,'
13096 # All Alpha code is PIC.
13097 lt_prog_compiler_static_F77='-non_shared'
13102 osf3* | osf4* | osf5*)
13103 lt_prog_compiler_wl_F77='-Wl,'
13104 # All OSF/1 code is PIC.
13105 lt_prog_compiler_static_F77='-non_shared'
13109 lt_prog_compiler_pic_F77='-KPIC'
13110 lt_prog_compiler_static_F77='-Bstatic'
13111 case $cc_basename in
13112 f77* | f90* | f95*)
13113 lt_prog_compiler_wl_F77='-Qoption ld ';;
13115 lt_prog_compiler_wl_F77='-Wl,';;
13120 lt_prog_compiler_wl_F77='-Qoption ld '
13121 lt_prog_compiler_pic_F77='-PIC'
13122 lt_prog_compiler_static_F77='-Bstatic'
13125 sysv4 | sysv4.2uw2* | sysv4.3*)
13126 lt_prog_compiler_wl_F77='-Wl,'
13127 lt_prog_compiler_pic_F77='-KPIC'
13128 lt_prog_compiler_static_F77='-Bstatic'
13132 if test -d /usr/nec ;then
13133 lt_prog_compiler_pic_F77='-Kconform_pic'
13134 lt_prog_compiler_static_F77='-Bstatic'
13138 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13139 lt_prog_compiler_wl_F77='-Wl,'
13140 lt_prog_compiler_pic_F77='-KPIC'
13141 lt_prog_compiler_static_F77='-Bstatic'
13145 lt_prog_compiler_wl_F77='-Wl,'
13146 lt_prog_compiler_can_build_shared_F77=no
13150 lt_prog_compiler_pic_F77='-pic'
13151 lt_prog_compiler_static_F77='-Bstatic'
13155 lt_prog_compiler_can_build_shared_F77=no
13160 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13161 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13164 # Check to make sure the PIC flag actually works.
13166 if test -n "$lt_prog_compiler_pic_F77"; then
13168 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13169 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13170 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13173 lt_prog_compiler_pic_works_F77=no
13174 ac_outfile=conftest.$ac_objext
13175 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13176 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13177 # Insert the option either (1) after the last *FLAGS variable, or
13178 # (2) before a word containing "conftest.", or (3) at the end.
13179 # Note that $ac_compile itself does not contain backslashes and begins
13180 # with a dollar sign (not a hyphen), so the echo should work correctly.
13181 # The option is referenced via a variable to avoid confusing sed.
13182 lt_compile=`echo "$ac_compile" | $SED \
13183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13185 -e 's:$: $lt_compiler_flag:'`
13186 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13187 (eval "$lt_compile" 2>conftest.err)
13189 cat conftest.err >&5
13190 echo "$as_me:__oline__: \$? = $ac_status" >&5
13191 if (exit $ac_status) && test -s "$ac_outfile"; then
13192 # The compiler can only warn and ignore the option if not recognized
13193 # So say no if there are warnings other than the usual output.
13194 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13197 lt_prog_compiler_pic_works_F77=yes
13203 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13204 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13206 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13207 case $lt_prog_compiler_pic_F77 in
13209 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13212 lt_prog_compiler_pic_F77=
13213 lt_prog_compiler_can_build_shared_F77=no
13218 # For platforms which do not support PIC, -DPIC is meaningless:
13220 lt_prog_compiler_pic_F77=
13223 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13228 # Check to make sure the static flag actually works.
13230 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13231 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13232 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13233 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 lt_prog_compiler_static_works_F77=no
13237 save_LDFLAGS="$LDFLAGS"
13238 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13239 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13241 # The linker can only warn and ignore the option if not recognized
13242 # So say no if there are warnings
13243 if test -s conftest.err; then
13244 # Append any errors to the config.log.
13245 cat conftest.err 1>&5
13246 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13248 if diff conftest.exp conftest.er2 >/dev/null; then
13249 lt_prog_compiler_static_works_F77=yes
13252 lt_prog_compiler_static_works_F77=yes
13256 LDFLAGS="$save_LDFLAGS"
13259 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13260 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13262 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13265 lt_prog_compiler_static_F77=
13269 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13270 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13271 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 lt_cv_prog_compiler_c_o_F77=no
13275 $rm -r conftest 2>/dev/null
13279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13281 lt_compiler_flag="-o out/conftest2.$ac_objext"
13282 # Insert the option either (1) after the last *FLAGS variable, or
13283 # (2) before a word containing "conftest.", or (3) at the end.
13284 # Note that $ac_compile itself does not contain backslashes and begins
13285 # with a dollar sign (not a hyphen), so the echo should work correctly.
13286 lt_compile=`echo "$ac_compile" | $SED \
13287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13289 -e 's:$: $lt_compiler_flag:'`
13290 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13291 (eval "$lt_compile" 2>out/conftest.err)
13293 cat out/conftest.err >&5
13294 echo "$as_me:__oline__: \$? = $ac_status" >&5
13295 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13297 # The compiler can only warn and ignore the option if not recognized
13298 # So say no if there are warnings
13299 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13302 lt_cv_prog_compiler_c_o_F77=yes
13307 # SGI C++ compiler will create directory out/ii_files/ for
13308 # template instantiation
13309 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13310 $rm out/* && rmdir out
13316 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13317 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13320 hard_links="nottested"
13321 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13322 # do not overwrite the value of need_locks provided by the user
13323 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13324 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13327 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13329 ln conftest.a conftest.b 2>&5 || hard_links=no
13330 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13331 echo "$as_me:$LINENO: result: $hard_links" >&5
13332 echo "${ECHO_T}$hard_links" >&6
13333 if test "$hard_links" = no; then
13334 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13335 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13342 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13343 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13346 allow_undefined_flag_F77=
13347 enable_shared_with_static_runtimes_F77=no
13349 archive_expsym_cmds_F77=
13350 old_archive_From_new_cmds_F77=
13351 old_archive_from_expsyms_cmds_F77=
13352 export_dynamic_flag_spec_F77=
13353 whole_archive_flag_spec_F77=
13354 thread_safe_flag_spec_F77=
13355 hardcode_libdir_flag_spec_F77=
13356 hardcode_libdir_flag_spec_ld_F77=
13357 hardcode_libdir_separator_F77=
13358 hardcode_direct_F77=no
13359 hardcode_minus_L_F77=no
13360 hardcode_shlibpath_var_F77=unsupported
13361 link_all_deplibs_F77=unknown
13362 hardcode_automatic_F77=no
13364 module_expsym_cmds_F77=
13365 always_export_symbols_F77=no
13366 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13367 # include_expsyms should be a list of space-separated symbols to be *always*
13368 # included in the symbol list
13369 include_expsyms_F77=
13370 # exclude_expsyms can be an extended regexp of symbols to exclude
13371 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13372 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13373 # as well as any symbol that contains `d'.
13374 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13375 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13376 # platforms (ab)use it in PIC code, but their linkers get confused if
13377 # the symbol is explicitly referenced. Since portable code cannot
13378 # rely on this symbol name, it's probably fine to never include it in
13379 # preloaded symbol tables.
13380 extract_expsyms_cmds=
13381 # Just being paranoid about ensuring that cc_basename is set.
13382 for cc_temp in $compiler""; do
13384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13390 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13393 cygwin* | mingw* | pw32*)
13394 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13395 # When not using gcc, we currently assume that we are using
13396 # Microsoft Visual C++.
13397 if test "$GCC" != yes; then
13402 # we just hope/assume this is gcc and not c89 (= MSVC++)
13411 if test "$with_gnu_ld" = yes; then
13412 # If archive_cmds runs LD, not CC, wlarc should be empty
13415 # Set some defaults for GNU ld with shared library support. These
13416 # are reset later if shared libraries are not supported. Putting them
13417 # here allows them to be overridden if necessary.
13418 runpath_var=LD_RUN_PATH
13419 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13420 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13421 # ancient GNU ld didn't support --whole-archive et. al.
13422 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13423 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13425 whole_archive_flag_spec_F77=
13427 supports_anon_versioning=no
13428 case `$LD -v 2>/dev/null` in
13429 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13432 *\ 2.11.*) ;; # other 2.11 versions
13433 *) supports_anon_versioning=yes ;;
13436 # See if GNU ld supports shared libraries.
13438 aix3* | aix4* | aix5*)
13439 # On AIX/PPC, the GNU linker is very broken
13440 if test "$host_cpu" != ia64; then
13444 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13445 *** to be unable to reliably create shared libraries on AIX.
13446 *** Therefore, libtool is disabling shared libraries support. If you
13447 *** really care for shared libraries, you may want to modify your PATH
13448 *** so that a non-GNU linker is found, and then restart.
13455 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)'
13456 hardcode_libdir_flag_spec_F77='-L$libdir'
13457 hardcode_minus_L_F77=yes
13459 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13460 # that the semantics of dynamic libraries on AmigaOS, at least up
13461 # to version 4, is to share data among multiple programs linked
13462 # with the same dynamic library. Since this doesn't match the
13463 # behavior of shared libraries on other platforms, we can't use
13469 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13470 allow_undefined_flag_F77=unsupported
13471 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13472 # support --undefined. This deserves some investigation. FIXME
13473 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13479 cygwin* | mingw* | pw32*)
13480 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13481 # as there is no search path for DLLs.
13482 hardcode_libdir_flag_spec_F77='-L$libdir'
13483 allow_undefined_flag_F77=unsupported
13484 always_export_symbols_F77=no
13485 enable_shared_with_static_runtimes_F77=yes
13486 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13488 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13489 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13490 # If the export-symbols file already is a .def file (1st line
13491 # is EXPORTS), use it as is; otherwise, prepend...
13492 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13493 cp $export_symbols $output_objdir/$soname.def;
13495 echo EXPORTS > $output_objdir/$soname.def;
13496 cat $export_symbols >> $output_objdir/$soname.def;
13498 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13505 hardcode_direct_F77=no
13506 hardcode_shlibpath_var_F77=no
13507 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13508 export_dynamic_flag_spec_F77='${wl}-E'
13509 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13510 # Instead, shared libraries are loaded at an image base (0x10000000 by
13511 # default) and relocated if they conflict, which is a slow very memory
13512 # consuming and fragmenting process. To avoid this, we pick a random,
13513 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13514 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13515 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'
13516 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'
13520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13522 case $cc_basename,$host_cpu in
13523 pgcc*) # Portland Group C compiler
13524 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'
13525 tmp_addflag=' $pic_flag'
13527 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13528 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'
13529 tmp_addflag=' $pic_flag -Mnomain' ;;
13530 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13531 tmp_addflag=' -i_dynamic' ;;
13532 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13533 tmp_addflag=' -i_dynamic -nofor_main' ;;
13534 ifc* | ifort*) # Intel Fortran compiler
13535 tmp_addflag=' -nofor_main' ;;
13537 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13539 if test $supports_anon_versioning = yes; then
13540 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13542 $echo "local: *; };" >> $output_objdir/$libname.ver~
13543 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13555 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13561 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13566 *** create shared libraries on Solaris systems. Therefore, libtool
13567 *** is disabling shared libraries support. We urge you to upgrade GNU
13568 *** binutils to release 2.9.1 or newer. Another option is to modify
13569 *** your PATH or compiler configuration so that the native linker is
13570 *** used, and then restart.
13573 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13582 case `$LD -v 2>&1` in
13583 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13588 *** reliably create shared libraries on SCO systems. Therefore, libtool
13589 *** is disabling shared libraries support. We urge you to upgrade GNU
13590 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13591 *** your PATH or compiler configuration so that the native linker is
13592 *** used, and then restart.
13597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13599 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13600 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13609 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_direct_F77=yes
13612 hardcode_shlibpath_var_F77=no
13616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13625 if test "$ld_shlibs_F77" = no; then
13627 hardcode_libdir_flag_spec_F77=
13628 export_dynamic_flag_spec_F77=
13629 whole_archive_flag_spec_F77=
13632 # PORTME fill in a description of your system's linker (not GNU ld)
13635 allow_undefined_flag_F77=unsupported
13636 always_export_symbols_F77=yes
13637 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'
13638 # Note: this linker hardcodes the directories in LIBPATH if there
13639 # are no directories specified by -L.
13640 hardcode_minus_L_F77=yes
13641 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13642 # Neither direct hardcoding nor static linking is supported with a
13644 hardcode_direct_F77=unsupported
13649 if test "$host_cpu" = ia64; then
13650 # On IA64, the linker does run time linking by default, so we don't
13651 # have to do anything special.
13652 aix_use_runtimelinking=no
13653 exp_sym_flag='-Bexport'
13656 # If we're using GNU nm, then we don't want the "-C" option.
13657 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13658 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13659 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'
13661 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'
13663 aix_use_runtimelinking=no
13665 # Test if we are trying to use run time linking or normal
13666 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13667 # need to do runtime linking.
13668 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13669 for ld_flag in $LDFLAGS; do
13670 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13671 aix_use_runtimelinking=yes
13678 exp_sym_flag='-bexport'
13679 no_entry_flag='-bnoentry'
13682 # When large executables or shared objects are built, AIX ld can
13683 # have problems creating the table of contents. If linking a library
13684 # or program results in "error TOC overflow" add -mminimal-toc to
13685 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13686 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13688 archive_cmds_F77=''
13689 hardcode_direct_F77=yes
13690 hardcode_libdir_separator_F77=':'
13691 link_all_deplibs_F77=yes
13693 if test "$GCC" = yes; then
13694 case $host_os in aix4.[012]|aix4.[012].*)
13695 # We only want to do this on AIX 4.2 and lower, the check
13696 # below for broken collect2 doesn't work under 4.3+
13697 collect2name=`${CC} -print-prog-name=collect2`
13698 if test -f "$collect2name" && \
13699 strings "$collect2name" | grep resolve_lib_name >/dev/null
13701 # We have reworked collect2
13702 hardcode_direct_F77=yes
13704 # We have old collect2
13705 hardcode_direct_F77=unsupported
13706 # It fails to find uninstalled libraries when the uninstalled
13707 # path is not listed in the libpath. Setting hardcode_minus_L
13708 # to unsupported forces relinking
13709 hardcode_minus_L_F77=yes
13710 hardcode_libdir_flag_spec_F77='-L$libdir'
13711 hardcode_libdir_separator_F77=
13715 shared_flag='-shared'
13716 if test "$aix_use_runtimelinking" = yes; then
13717 shared_flag="$shared_flag "'${wl}-G'
13721 if test "$host_cpu" = ia64; then
13722 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13723 # chokes on -Wl,-G. The following line is correct:
13726 if test "$aix_use_runtimelinking" = yes; then
13727 shared_flag='${wl}-G'
13729 shared_flag='${wl}-bM:SRE'
13734 # It seems that -bexpall does not export symbols beginning with
13735 # underscore (_), so it is better to generate a list of symbols to export.
13736 always_export_symbols_F77=yes
13737 if test "$aix_use_runtimelinking" = yes; then
13738 # Warning - without using the other runtime loading flags (-brtl),
13739 # -berok will link without error, but may produce a broken library.
13740 allow_undefined_flag_F77='-berok'
13741 # Determine the default libpath from the value encoded in an empty executable.
13742 cat >conftest.$ac_ext <<_ACEOF
13747 rm -f conftest.$ac_objext conftest$ac_exeext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749 (eval $ac_link) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1 >conftest.err
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_f77_werror_flag"
13757 || test ! -s conftest.err'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest$ac_exeext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13770 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13772 # Check for a 64-bit object if we didn't find anything.
13773 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; }
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13780 rm -f conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13784 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13785 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"
13787 if test "$host_cpu" = ia64; then
13788 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13789 allow_undefined_flag_F77="-z nodefs"
13790 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"
13792 # Determine the default libpath from the value encoded in an empty executable.
13793 cat >conftest.$ac_ext <<_ACEOF
13798 rm -f conftest.$ac_objext conftest$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>conftest.er1
13802 grep -v '^ *+' conftest.er1 >conftest.err
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -z "$ac_f77_werror_flag"
13808 || test ! -s conftest.err'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13823 # Check for a 64-bit object if we didn't find anything.
13824 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; }
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13831 rm -f conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
13833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13835 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13836 # Warning - without using the other run time loading flags,
13837 # -berok will link without error, but may produce a broken library.
13838 no_undefined_flag_F77=' ${wl}-bernotok'
13839 allow_undefined_flag_F77=' ${wl}-berok'
13840 # Exported symbols can be pulled into shared objects from archives
13841 whole_archive_flag_spec_F77='$convenience'
13842 archive_cmds_need_lc_F77=yes
13843 # This is similar to how AIX traditionally builds its shared libraries.
13844 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'
13850 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)'
13851 hardcode_libdir_flag_spec_F77='-L$libdir'
13852 hardcode_minus_L_F77=yes
13853 # see comment about different semantics on the GNU ld section
13858 export_dynamic_flag_spec_F77=-rdynamic
13861 cygwin* | mingw* | pw32*)
13862 # When not using gcc, we currently assume that we are using
13863 # Microsoft Visual C++.
13864 # hardcode_libdir_flag_spec is actually meaningless, as there is
13865 # no search path for DLLs.
13866 hardcode_libdir_flag_spec_F77=' '
13867 allow_undefined_flag_F77=unsupported
13868 # Tell ltmain to make .lib files, not .a files.
13870 # Tell ltmain to make .dll files, not .so files.
13872 # FIXME: Setting linknames here is a bad hack.
13873 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13874 # The linker will automatically build a .lib file if we build a DLL.
13875 old_archive_From_new_cmds_F77='true'
13876 # FIXME: Should let the user specify the lib program.
13877 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13878 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13879 enable_shared_with_static_runtimes_F77=yes
13882 darwin* | rhapsody*)
13884 rhapsody* | darwin1.[012])
13885 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13888 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13889 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13891 case ${MACOSX_DEPLOYMENT_TARGET} in
13893 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13896 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13902 archive_cmds_need_lc_F77=no
13903 hardcode_direct_F77=no
13904 hardcode_automatic_F77=yes
13905 hardcode_shlibpath_var_F77=unsupported
13906 whole_archive_flag_spec_F77=''
13907 link_all_deplibs_F77=yes
13908 if test "$GCC" = yes ; then
13909 output_verbose_link_cmd='echo'
13910 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13911 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13913 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}'
13914 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}'
13916 case $cc_basename in
13918 output_verbose_link_cmd='echo'
13919 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13920 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13921 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13922 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}'
13923 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}'
13933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934 hardcode_libdir_flag_spec_F77='-L$libdir'
13935 hardcode_shlibpath_var_F77=no
13942 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13943 # support. Future versions do this automatically, but an explicit c++rt0.o
13944 # does not break anything, and helps significantly (at the cost of a little
13947 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13948 hardcode_libdir_flag_spec_F77='-R$libdir'
13949 hardcode_direct_F77=yes
13950 hardcode_shlibpath_var_F77=no
13953 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13955 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13956 hardcode_direct_F77=yes
13957 hardcode_minus_L_F77=yes
13958 hardcode_shlibpath_var_F77=no
13961 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13962 freebsd* | kfreebsd*-gnu | dragonfly*)
13963 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13964 hardcode_libdir_flag_spec_F77='-R$libdir'
13965 hardcode_direct_F77=yes
13966 hardcode_shlibpath_var_F77=no
13970 if test "$GCC" = yes; then
13971 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'
13973 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'
13975 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13976 hardcode_libdir_separator_F77=:
13977 hardcode_direct_F77=yes
13979 # hardcode_minus_L: Not really in the search PATH,
13980 # but as the default location of the library.
13981 hardcode_minus_L_F77=yes
13982 export_dynamic_flag_spec_F77='${wl}-E'
13986 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13987 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13989 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13991 if test "$with_gnu_ld" = no; then
13992 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13993 hardcode_libdir_separator_F77=:
13995 hardcode_direct_F77=yes
13996 export_dynamic_flag_spec_F77='${wl}-E'
13998 # hardcode_minus_L: Not really in the search PATH,
13999 # but as the default location of the library.
14000 hardcode_minus_L_F77=yes
14005 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14008 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14011 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14014 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14020 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14023 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14026 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14030 if test "$with_gnu_ld" = no; then
14031 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14032 hardcode_libdir_separator_F77=:
14036 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14037 hardcode_direct_F77=no
14038 hardcode_shlibpath_var_F77=no
14041 hardcode_direct_F77=yes
14042 export_dynamic_flag_spec_F77='${wl}-E'
14044 # hardcode_minus_L: Not really in the search PATH,
14045 # but as the default location of the library.
14046 hardcode_minus_L_F77=yes
14052 irix5* | irix6* | nonstopux*)
14053 if test "$GCC" = yes; then
14054 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'
14056 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'
14057 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14059 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14060 hardcode_libdir_separator_F77=:
14061 link_all_deplibs_F77=yes
14065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14066 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14068 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14070 hardcode_libdir_flag_spec_F77='-R$libdir'
14071 hardcode_direct_F77=yes
14072 hardcode_shlibpath_var_F77=no
14076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14077 hardcode_direct_F77=yes
14078 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14079 hardcode_libdir_separator_F77=:
14080 hardcode_shlibpath_var_F77=no
14084 hardcode_direct_F77=yes
14085 hardcode_shlibpath_var_F77=no
14086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14087 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14088 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14089 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14090 export_dynamic_flag_spec_F77='${wl}-E'
14093 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14094 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14095 hardcode_libdir_flag_spec_F77='-R$libdir'
14098 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14099 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14106 hardcode_libdir_flag_spec_F77='-L$libdir'
14107 hardcode_minus_L_F77=yes
14108 allow_undefined_flag_F77=unsupported
14109 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'
14110 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14114 if test "$GCC" = yes; then
14115 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14116 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'
14118 allow_undefined_flag_F77=' -expect_unresolved \*'
14119 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'
14121 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14122 hardcode_libdir_separator_F77=:
14125 osf4* | osf5*) # as osf3* with the addition of -msym flag
14126 if test "$GCC" = yes; then
14127 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14128 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'
14129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14131 allow_undefined_flag_F77=' -expect_unresolved \*'
14132 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'
14133 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~
14134 $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'
14136 # Both c and cxx compiler support -rpath directly
14137 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14139 hardcode_libdir_separator_F77=:
14143 no_undefined_flag_F77=' -z text'
14144 if test "$GCC" = yes; then
14146 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14147 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14148 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14151 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14155 hardcode_libdir_flag_spec_F77='-R$libdir'
14156 hardcode_shlibpath_var_F77=no
14158 solaris2.[0-5] | solaris2.[0-5].*) ;;
14160 # The compiler driver will combine linker options so we
14161 # cannot just pass the convience library names through
14162 # without $wl, iff we do not link with $LD.
14163 # Luckily, gcc supports the same syntax we need for Sun Studio.
14164 # Supported since Solaris 2.6 (maybe 2.5.1?)
14167 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14169 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' ;;
14172 link_all_deplibs_F77=yes
14176 if test "x$host_vendor" = xsequent; then
14177 # Use $CC to link under sequent, because it throws in some extra .o
14178 # files that make .init and .fini sections work.
14179 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14181 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14183 hardcode_libdir_flag_spec_F77='-L$libdir'
14184 hardcode_direct_F77=yes
14185 hardcode_minus_L_F77=yes
14186 hardcode_shlibpath_var_F77=no
14190 case $host_vendor in
14192 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14193 hardcode_direct_F77=yes # is this really true???
14196 ## LD is ld it makes a PLAMLIB
14197 ## CC just makes a GrossModule.
14198 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14199 reload_cmds_F77='$CC -r -o $output$reload_objs'
14200 hardcode_direct_F77=no
14203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14204 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14207 runpath_var='LD_RUN_PATH'
14208 hardcode_shlibpath_var_F77=no
14212 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14213 hardcode_shlibpath_var_F77=no
14214 export_dynamic_flag_spec_F77='-Bexport'
14218 if test -d /usr/nec; then
14219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220 hardcode_shlibpath_var_F77=no
14221 runpath_var=LD_RUN_PATH
14222 hardcode_runpath_var=yes
14227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14228 no_undefined_flag_F77='${wl}-z,text'
14229 archive_cmds_need_lc_F77=no
14230 hardcode_shlibpath_var_F77=no
14231 runpath_var='LD_RUN_PATH'
14233 if test "$GCC" = yes; then
14234 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14235 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14237 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14238 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14242 sysv5* | sco3.2v5* | sco5v6*)
14243 # Note: We can NOT use -z defs as we might desire, because we do not
14244 # link with -lc, and that would cause any symbols used from libc to
14245 # always be unresolved, which means just about no library would
14246 # ever link correctly. If we're not using GNU ld we use -z text
14247 # though, which does catch some bad symbols but isn't as heavy-handed
14249 no_undefined_flag_F77='${wl}-z,text'
14250 allow_undefined_flag_F77='${wl}-z,nodefs'
14251 archive_cmds_need_lc_F77=no
14252 hardcode_shlibpath_var_F77=no
14253 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14254 hardcode_libdir_separator_F77=':'
14255 link_all_deplibs_F77=yes
14256 export_dynamic_flag_spec_F77='${wl}-Bexport'
14257 runpath_var='LD_RUN_PATH'
14259 if test "$GCC" = yes; then
14260 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14261 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14263 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14264 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14270 hardcode_libdir_flag_spec_F77='-L$libdir'
14271 hardcode_shlibpath_var_F77=no
14280 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14281 echo "${ECHO_T}$ld_shlibs_F77" >&6
14282 test "$ld_shlibs_F77" = no && can_build_shared=no
14285 # Do we need to explicitly link libc?
14287 case "x$archive_cmds_need_lc_F77" in
14289 # Assume -lc should be added
14290 archive_cmds_need_lc_F77=yes
14292 if test "$enable_shared" = yes && test "$GCC" = yes; then
14293 case $archive_cmds_F77 in
14295 # FIXME: we may have to deal with multi-command sequences.
14298 # Test whether the compiler implicitly links with -lc since on some
14299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14300 # to ld, don't add -lc before -lgcc.
14301 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } 2>conftest.err; then
14313 libobjs=conftest.$ac_objext
14315 wl=$lt_prog_compiler_wl_F77
14316 pic_flag=$lt_prog_compiler_pic_F77
14322 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14323 allow_undefined_flag_F77=
14324 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14325 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }
14330 archive_cmds_need_lc_F77=no
14332 archive_cmds_need_lc_F77=yes
14334 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14336 cat conftest.err 1>&5
14339 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14340 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14347 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14348 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14349 library_names_spec=
14350 libname_spec='lib$name'
14354 postuninstall_cmds=
14358 shlibpath_overrides_runpath=unknown
14360 dynamic_linker="$host_os ld.so"
14361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14362 if test "$GCC" = yes; then
14363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14364 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14365 # if the path contains ";" then we assume it to be the separator
14366 # otherwise default to the standard path separator (i.e. ":") - it is
14367 # assumed that no part of a normal pathname contains ";" but that should
14368 # okay in the real world where ";" in dirpaths is itself problematic.
14369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14374 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14376 need_lib_prefix=unknown
14377 hardcode_into_libs=no
14379 # when you set need_version to no, make sure it does not cause -set_version
14380 # flags to be left without arguments
14381 need_version=unknown
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14387 shlibpath_var=LIBPATH
14389 # AIX 3 has no versioning support, so we append a major version to the name.
14390 soname_spec='${libname}${release}${shared_ext}$major'
14397 hardcode_into_libs=yes
14398 if test "$host_cpu" = ia64; then
14399 # AIX 5 supports IA64
14400 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14401 shlibpath_var=LD_LIBRARY_PATH
14403 # With GCC up to 2.95.x, collect2 would create an import file
14404 # for dependence libraries. The import file would start with
14405 # the line `#! .'. This would cause the generated library to
14406 # depend on `.', always an invalid library. This was fixed in
14407 # development snapshots of GCC prior to 3.0.
14409 aix4 | aix4.[01] | aix4.[01].*)
14410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14412 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14415 can_build_shared=no
14419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14420 # soname into executable. Probably we can add versioning support to
14421 # collect2, so additional links can be useful in future.
14422 if test "$aix_use_runtimelinking" = yes; then
14423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14424 # instead of lib<name>.a to let people know that these are not
14425 # typical AIX shared libraries.
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14428 # We preserve .a as extension for shared libraries through AIX4.2
14429 # and later when we are not doing run time linking.
14430 library_names_spec='${libname}${release}.a $libname.a'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14433 shlibpath_var=LIBPATH
14438 library_names_spec='$libname.ixlibrary $libname.a'
14439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14440 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'
14444 library_names_spec='${libname}${shared_ext}'
14445 dynamic_linker="$host_os ld.so"
14446 shlibpath_var=LIBRARY_PATH
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14457 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14458 # the default ld.so.conf also contains /usr/contrib/lib and
14459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14460 # libtool to hard-code these into programs
14463 cygwin* | mingw* | pw32*)
14464 version_type=windows
14469 case $GCC,$host_os in
14470 yes,cygwin* | yes,mingw* | yes,pw32*)
14471 library_names_spec='$libname.dll.a'
14472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14473 postinstall_cmds='base_file=`basename \${file}`~
14474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14475 dldir=$destdir/`dirname \$dlpath`~
14476 test -d \$dldir || mkdir -p \$dldir~
14477 $install_prog $dir/$dlname \$dldir/$dlname~
14478 chmod a+x \$dldir/$dlname'
14479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14480 dlpath=$dir/\$dldll~
14482 shlibpath_overrides_runpath=yes
14486 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14487 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14488 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14491 # MinGW DLLs use traditional 'lib' prefix
14492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14493 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14494 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14495 # It is most probably a Windows format PATH printed by
14496 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14497 # path with ; separators, and with drive letters. We can handle the
14498 # drive letters (cygwin fileutils understands them), so leave them,
14499 # especially as we might pass files found there to a mingw objdump,
14500 # which wouldn't understand a cygwinified path. Ahh.
14501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14507 # pw32 DLLs use 'pw' prefix rather than 'lib'
14508 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14514 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14517 dynamic_linker='Win32 ld.exe'
14518 # FIXME: first we should search . and the directory the executable is in
14522 darwin* | rhapsody*)
14523 dynamic_linker="$host_os dyld"
14524 version_type=darwin
14527 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14528 soname_spec='${libname}${release}${major}$shared_ext'
14529 shlibpath_overrides_runpath=yes
14530 shlibpath_var=DYLD_LIBRARY_PATH
14531 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14532 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14533 if test "$GCC" = yes; then
14534 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"`
14536 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 shlibpath_var=LD_LIBRARY_PATH
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=no
14562 hardcode_into_libs=yes
14563 dynamic_linker='GNU ld.so'
14566 freebsd* | dragonfly*)
14567 # DragonFly does not have aout. When/if they implement a new
14568 # versioning mechanism, adjust this.
14569 if test -x /usr/bin/objformat; then
14570 objformat=`/usr/bin/objformat`
14573 freebsd[123]*) objformat=aout ;;
14574 *) objformat=elf ;;
14577 version_type=freebsd-$objformat
14578 case $version_type in
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14589 shlibpath_var=LD_LIBRARY_PATH
14592 shlibpath_overrides_runpath=yes
14594 freebsd3.[01]* | freebsdelf3.[01]*)
14595 shlibpath_overrides_runpath=yes
14596 hardcode_into_libs=yes
14598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14600 shlibpath_overrides_runpath=no
14601 hardcode_into_libs=yes
14603 freebsd*) # from 4.6 on
14604 shlibpath_overrides_runpath=yes
14605 hardcode_into_libs=yes
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 hardcode_into_libs=yes
14620 hpux9* | hpux10* | hpux11*)
14621 # Give a soname corresponding to the major version so that dld.sl refuses to
14622 # link against other versions.
14629 hardcode_into_libs=yes
14630 dynamic_linker="$host_os dld.so"
14631 shlibpath_var=LD_LIBRARY_PATH
14632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 if test "X$HPUX_IA64_MODE" = X32; then
14636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14644 hardcode_into_libs=yes
14645 dynamic_linker="$host_os dld.sl"
14646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14655 dynamic_linker="$host_os dld.sl"
14656 shlibpath_var=SHLIB_PATH
14657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14662 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14663 postinstall_cmds='chmod 555 $lib'
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=no
14675 hardcode_into_libs=yes
14678 irix5* | irix6* | nonstopux*)
14680 nonstopux*) version_type=nonstopux ;;
14682 if test "$lt_cv_prog_gnu_ld" = yes; then
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14693 irix5* | nonstopux*)
14694 libsuff= shlibsuff=
14697 case $LD in # libtool.m4 will add one of these switches to LD
14698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14699 libsuff= shlibsuff= libmagic=32-bit;;
14700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14701 libsuff=32 shlibsuff=N32 libmagic=N32;;
14702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14703 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14704 *) libsuff= shlibsuff= libmagic=never-match;;
14708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14709 shlibpath_overrides_runpath=no
14710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14712 hardcode_into_libs=yes
14715 # No shared lib support for Linux oldld, aout, or coff.
14716 linux*oldld* | linux*aout* | linux*coff*)
14720 # This must be Linux ELF.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=no
14730 # This implies no fast_install, which is unacceptable.
14731 # Some rework will be needed to allow for fast_install
14732 # before this can be enabled.
14733 hardcode_into_libs=yes
14735 # Append ld.so.conf contents to the search path
14736 if test -f /etc/ld.so.conf; then
14737 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' ' '`
14738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14741 # We used to test for /lib/ld.so.1 and disable shared libraries on
14742 # powerpc, because MkLinux only supported shared libraries with the
14743 # GNU dynamic linker. Since this was broken with cross compilers,
14744 # most powerpc-linux boxes support dynamic linking these days and
14745 # people can always --disable-shared, the test was removed, and we
14746 # assume the GNU/Linux dynamic linker is in use.
14747 dynamic_linker='GNU/Linux ld.so'
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 shlibpath_overrides_runpath=no
14758 hardcode_into_libs=yes
14759 dynamic_linker='GNU ld.so'
14766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14769 dynamic_linker='NetBSD (a.out) ld.so'
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 dynamic_linker='NetBSD ld.elf_so'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=yes
14777 hardcode_into_libs=yes
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=yes
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=yes
14799 sys_lib_dlsearch_path_spec="/usr/lib"
14801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14804 *) need_version=no ;;
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14811 openbsd2.[89] | openbsd2.[89].*)
14812 shlibpath_overrides_runpath=no
14815 shlibpath_overrides_runpath=yes
14819 shlibpath_overrides_runpath=yes
14824 libname_spec='$name'
14827 library_names_spec='$libname${shared_ext} $libname.a'
14828 dynamic_linker='OS/2 ld.exe'
14829 shlibpath_var=LIBPATH
14832 osf3* | osf4* | osf5*)
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838 shlibpath_var=LD_LIBRARY_PATH
14839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 shlibpath_overrides_runpath=yes
14851 hardcode_into_libs=yes
14852 # ldd complains unless libraries are executable
14853 postinstall_cmds='chmod +x $lib'
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14862 if test "$with_gnu_ld" = yes; then
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 case $host_vendor in
14875 shlibpath_overrides_runpath=no
14877 export_dynamic_flag_spec='${wl}-Blargedynsym'
14878 runpath_var=LD_RUN_PATH
14886 shlibpath_overrides_runpath=no
14887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14893 if test -d /usr/nec ;then
14895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14896 soname_spec='$libname${shared_ext}.$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14902 version_type=freebsd-elf
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 hardcode_into_libs=yes
14909 if test "$with_gnu_ld" = yes; then
14910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14911 shlibpath_overrides_runpath=no
14913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14914 shlibpath_overrides_runpath=yes
14917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14921 sys_lib_dlsearch_path_spec='/usr/lib'
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14935 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14936 echo "${ECHO_T}$dynamic_linker" >&6
14937 test "$dynamic_linker" = no && can_build_shared=no
14939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14940 if test "$GCC" = yes; then
14941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14944 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14945 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14946 hardcode_action_F77=
14947 if test -n "$hardcode_libdir_flag_spec_F77" || \
14948 test -n "$runpath_var_F77" || \
14949 test "X$hardcode_automatic_F77" = "Xyes" ; then
14951 # We can hardcode non-existant directories.
14952 if test "$hardcode_direct_F77" != no &&
14953 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14954 # have to relink, otherwise we might link with an installed library
14955 # when we should be linking with a yet-to-be-installed one
14956 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14957 test "$hardcode_minus_L_F77" != no; then
14958 # Linking always hardcodes the temporary library directory.
14959 hardcode_action_F77=relink
14961 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14962 hardcode_action_F77=immediate
14965 # We cannot hardcode anything, or else we can only hardcode existing
14967 hardcode_action_F77=unsupported
14969 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14970 echo "${ECHO_T}$hardcode_action_F77" >&6
14972 if test "$hardcode_action_F77" = relink; then
14973 # Fast installation is not supported
14974 enable_fast_install=no
14975 elif test "$shlibpath_overrides_runpath" = yes ||
14976 test "$enable_shared" = no; then
14977 # Fast installation is not necessary
14978 enable_fast_install=needless
14982 # The else clause should only fire when bootstrapping the
14983 # libtool distribution, otherwise you forgot to ship ltmain.sh
14984 # with your package, and you will get complaints that there are
14985 # no rules to generate ltmain.sh.
14986 if test -f "$ltmain"; then
14987 # See if we are running on zsh, and set the options which allow our commands through
14988 # without removal of \ escapes.
14989 if test -n "${ZSH_VERSION+set}" ; then
14990 setopt NO_GLOB_SUBST
14992 # Now quote all the things that may contain metacharacters while being
14993 # careful not to overquote the AC_SUBSTed values. We take copies of the
14994 # variables and quote the copies for generation of the libtool script.
14995 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14997 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14998 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14999 deplibs_check_method reload_flag reload_cmds need_locks \
15000 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15001 lt_cv_sys_global_symbol_to_c_name_address \
15002 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15003 old_postinstall_cmds old_postuninstall_cmds \
15007 lt_prog_compiler_wl_F77 \
15008 lt_prog_compiler_pic_F77 \
15009 lt_prog_compiler_static_F77 \
15010 lt_prog_compiler_no_builtin_flag_F77 \
15011 export_dynamic_flag_spec_F77 \
15012 thread_safe_flag_spec_F77 \
15013 whole_archive_flag_spec_F77 \
15014 enable_shared_with_static_runtimes_F77 \
15015 old_archive_cmds_F77 \
15016 old_archive_from_new_cmds_F77 \
15017 predep_objects_F77 \
15018 postdep_objects_F77 \
15021 compiler_lib_search_path_F77 \
15023 archive_expsym_cmds_F77 \
15024 postinstall_cmds_F77 \
15025 postuninstall_cmds_F77 \
15026 old_archive_from_expsyms_cmds_F77 \
15027 allow_undefined_flag_F77 \
15028 no_undefined_flag_F77 \
15029 export_symbols_cmds_F77 \
15030 hardcode_libdir_flag_spec_F77 \
15031 hardcode_libdir_flag_spec_ld_F77 \
15032 hardcode_libdir_separator_F77 \
15033 hardcode_automatic_F77 \
15035 module_expsym_cmds_F77 \
15036 lt_cv_prog_compiler_c_o_F77 \
15037 exclude_expsyms_F77 \
15038 include_expsyms_F77; do
15041 old_archive_cmds_F77 | \
15042 old_archive_from_new_cmds_F77 | \
15043 archive_cmds_F77 | \
15044 archive_expsym_cmds_F77 | \
15045 module_cmds_F77 | \
15046 module_expsym_cmds_F77 | \
15047 old_archive_from_expsyms_cmds_F77 | \
15048 export_symbols_cmds_F77 | \
15049 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15050 postinstall_cmds | postuninstall_cmds | \
15051 old_postinstall_cmds | old_postuninstall_cmds | \
15052 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15053 # Double-quote double-evaled strings.
15054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15063 *'\$0 --fallback-echo"')
15064 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15070 cat <<__EOF__ >> "$cfgfile"
15071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15075 # Shell to use when invoking shell scripts.
15078 # Whether or not to build shared libraries.
15079 build_libtool_libs=$enable_shared
15081 # Whether or not to build static libraries.
15082 build_old_libs=$enable_static
15084 # Whether or not to add -lc for building shared libraries.
15085 build_libtool_need_lc=$archive_cmds_need_lc_F77
15087 # Whether or not to disallow shared libs when runtime libs are static
15088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15090 # Whether or not to optimize for fast installation.
15091 fast_install=$enable_fast_install
15094 host_alias=$host_alias
15098 # The build system.
15099 build_alias=$build_alias
15103 # An echo program that does not interpret backslashes.
15108 AR_FLAGS=$lt_AR_FLAGS
15113 # LTCC compiler flags.
15114 LTCFLAGS=$lt_LTCFLAGS
15116 # A language-specific compiler.
15117 CC=$lt_compiler_F77
15119 # Is the compiler the GNU C compiler?
15125 # The linker used to build libraries.
15128 # Whether we need hard or soft links.
15131 # A BSD-compatible nm program.
15134 # A symbol stripping program
15137 # Used to examine libraries when file_magic_cmd begins "file"
15138 MAGIC_CMD=$MAGIC_CMD
15140 # Used on cygwin: DLL creation program.
15143 # Used on cygwin: object dumper.
15146 # Used on cygwin: assembler.
15149 # The name of the directory that contains temporary libtool files.
15152 # How to create reloadable object files.
15153 reload_flag=$lt_reload_flag
15154 reload_cmds=$lt_reload_cmds
15156 # How to pass a linker flag through the compiler.
15157 wl=$lt_lt_prog_compiler_wl_F77
15159 # Object file suffix (normally "o").
15160 objext="$ac_objext"
15162 # Old archive suffix (normally "a").
15165 # Shared library suffix (normally ".so").
15166 shrext_cmds='$shrext_cmds'
15168 # Executable file suffix (normally "").
15171 # Additional compiler flags for building library objects.
15172 pic_flag=$lt_lt_prog_compiler_pic_F77
15175 # What is the maximum length of a command?
15176 max_cmd_len=$lt_cv_sys_max_cmd_len
15178 # Does compiler simultaneously support -c and -o options?
15179 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15181 # Must we lock files when doing compilation?
15182 need_locks=$lt_need_locks
15184 # Do we need the lib prefix for modules?
15185 need_lib_prefix=$need_lib_prefix
15187 # Do we need a version for libraries?
15188 need_version=$need_version
15190 # Whether dlopen is supported.
15191 dlopen_support=$enable_dlopen
15193 # Whether dlopen of programs is supported.
15194 dlopen_self=$enable_dlopen_self
15196 # Whether dlopen of statically linked programs is supported.
15197 dlopen_self_static=$enable_dlopen_self_static
15199 # Compiler flag to prevent dynamic linking.
15200 link_static_flag=$lt_lt_prog_compiler_static_F77
15202 # Compiler flag to turn off builtin functions.
15203 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15205 # Compiler flag to allow reflexive dlopens.
15206 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15208 # Compiler flag to generate shared objects directly from archives.
15209 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15211 # Compiler flag to generate thread-safe objects.
15212 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15214 # Library versioning type.
15215 version_type=$version_type
15217 # Format of library name prefix.
15218 libname_spec=$lt_libname_spec
15220 # List of archive names. First name is the real one, the rest are links.
15221 # The last name is the one that the linker finds with -lNAME.
15222 library_names_spec=$lt_library_names_spec
15224 # The coded name of the library, if different from the real name.
15225 soname_spec=$lt_soname_spec
15227 # Commands used to build and install an old-style archive.
15229 old_archive_cmds=$lt_old_archive_cmds_F77
15230 old_postinstall_cmds=$lt_old_postinstall_cmds
15231 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15233 # Create an old-style archive from a shared archive.
15234 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15236 # Create a temporary old-style archive to link instead of a shared archive.
15237 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15239 # Commands used to build and install a shared archive.
15240 archive_cmds=$lt_archive_cmds_F77
15241 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15242 postinstall_cmds=$lt_postinstall_cmds
15243 postuninstall_cmds=$lt_postuninstall_cmds
15245 # Commands used to build a loadable module (assumed same as above if empty)
15246 module_cmds=$lt_module_cmds_F77
15247 module_expsym_cmds=$lt_module_expsym_cmds_F77
15249 # Commands to strip libraries.
15250 old_striplib=$lt_old_striplib
15251 striplib=$lt_striplib
15253 # Dependencies to place before the objects being linked to create a
15255 predep_objects=$lt_predep_objects_F77
15257 # Dependencies to place after the objects being linked to create a
15259 postdep_objects=$lt_postdep_objects_F77
15261 # Dependencies to place before the objects being linked to create a
15263 predeps=$lt_predeps_F77
15265 # Dependencies to place after the objects being linked to create a
15267 postdeps=$lt_postdeps_F77
15269 # The library search path used internally by the compiler when linking
15270 # a shared library.
15271 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15273 # Method to check whether dependent libraries are shared objects.
15274 deplibs_check_method=$lt_deplibs_check_method
15276 # Command to use when deplibs_check_method == file_magic.
15277 file_magic_cmd=$lt_file_magic_cmd
15279 # Flag that allows shared libraries with undefined symbols to be built.
15280 allow_undefined_flag=$lt_allow_undefined_flag_F77
15282 # Flag that forces no undefined symbols.
15283 no_undefined_flag=$lt_no_undefined_flag_F77
15285 # Commands used to finish a libtool library installation in a directory.
15286 finish_cmds=$lt_finish_cmds
15288 # Same as above, but a single script fragment to be evaled but not shown.
15289 finish_eval=$lt_finish_eval
15291 # Take the output of nm and produce a listing of raw symbols and C names.
15292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15294 # Transform the output of nm in a proper C declaration
15295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15297 # Transform the output of nm in a C name address pair
15298 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15300 # This is the shared library runtime path variable.
15301 runpath_var=$runpath_var
15303 # This is the shared library path variable.
15304 shlibpath_var=$shlibpath_var
15306 # Is shlibpath searched before the hard-coded library search path?
15307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15309 # How to hardcode a shared library path into an executable.
15310 hardcode_action=$hardcode_action_F77
15312 # Whether we should hardcode library paths into libraries.
15313 hardcode_into_libs=$hardcode_into_libs
15315 # Flag to hardcode \$libdir into a binary during linking.
15316 # This must work even if \$libdir does not exist.
15317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15319 # If ld is used when linking, flag to hardcode \$libdir into
15320 # a binary during linking. This must work even if \$libdir does
15322 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15324 # Whether we need a single -rpath flag with a separated argument.
15325 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15327 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15328 # resulting binary.
15329 hardcode_direct=$hardcode_direct_F77
15331 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15332 # resulting binary.
15333 hardcode_minus_L=$hardcode_minus_L_F77
15335 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15336 # the resulting binary.
15337 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15339 # Set to yes if building a shared library automatically hardcodes DIR into the library
15340 # and all subsequent libraries and executables linked against it.
15341 hardcode_automatic=$hardcode_automatic_F77
15343 # Variables whose values should be saved in libtool wrapper scripts and
15344 # restored at relink time.
15345 variables_saved_for_relink="$variables_saved_for_relink"
15347 # Whether libtool must link a program against all its dependency libraries.
15348 link_all_deplibs=$link_all_deplibs_F77
15350 # Compile-time system search path for libraries
15351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15353 # Run-time system search path for libraries
15354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15356 # Fix the shell variable \$srcfile for the compiler.
15357 fix_srcfile_path="$fix_srcfile_path_F77"
15359 # Set to yes if exported symbols are required.
15360 always_export_symbols=$always_export_symbols_F77
15362 # The commands to list exported symbols.
15363 export_symbols_cmds=$lt_export_symbols_cmds_F77
15365 # The commands to extract the exported symbol list from a shared archive.
15366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15368 # Symbols that should not be listed in the preloaded symbols.
15369 exclude_expsyms=$lt_exclude_expsyms_F77
15371 # Symbols that must always be exported.
15372 include_expsyms=$lt_include_expsyms_F77
15374 # ### END LIBTOOL TAG CONFIG: $tagname
15380 # If there is no Makefile yet, we rely on a make rule to execute
15381 # `config.status --recheck' to rerun these tests and create the
15382 # libtool script then.
15383 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15384 if test -f "$ltmain_in"; then
15385 test -f Makefile && make "$ltmain"
15391 ac_cpp='$CPP $CPPFLAGS'
15392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15404 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15408 # Source file extension for Java test sources.
15411 # Object file extension for compiled Java test sources.
15415 # Code to be used in simple compile tests
15416 lt_simple_compile_test_code="class foo {}\n"
15418 # Code to be used in simple link tests
15419 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15421 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15423 # If no C compiler was specified, use CC.
15426 # If no C compiler flags were specified, use CFLAGS.
15427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15429 # Allow CC to be a program name with arguments.
15433 # save warnings/boilerplate of simple test code
15434 ac_outfile=conftest.$ac_objext
15435 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15436 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15437 _lt_compiler_boilerplate=`cat conftest.err`
15440 ac_outfile=conftest.$ac_objext
15441 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15442 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15443 _lt_linker_boilerplate=`cat conftest.err`
15447 # Allow CC to be a program name with arguments.
15452 for cc_temp in $compiler""; do
15454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15460 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15463 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15464 archive_cmds_need_lc_GCJ=no
15466 old_archive_cmds_GCJ=$old_archive_cmds
15469 lt_prog_compiler_no_builtin_flag_GCJ=
15471 if test "$GCC" = yes; then
15472 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15475 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15476 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15477 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 lt_cv_prog_compiler_rtti_exceptions=no
15481 ac_outfile=conftest.$ac_objext
15482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15483 lt_compiler_flag="-fno-rtti -fno-exceptions"
15484 # Insert the option either (1) after the last *FLAGS variable, or
15485 # (2) before a word containing "conftest.", or (3) at the end.
15486 # Note that $ac_compile itself does not contain backslashes and begins
15487 # with a dollar sign (not a hyphen), so the echo should work correctly.
15488 # The option is referenced via a variable to avoid confusing sed.
15489 lt_compile=`echo "$ac_compile" | $SED \
15490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15492 -e 's:$: $lt_compiler_flag:'`
15493 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15494 (eval "$lt_compile" 2>conftest.err)
15496 cat conftest.err >&5
15497 echo "$as_me:__oline__: \$? = $ac_status" >&5
15498 if (exit $ac_status) && test -s "$ac_outfile"; then
15499 # The compiler can only warn and ignore the option if not recognized
15500 # So say no if there are warnings other than the usual output.
15501 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15504 lt_cv_prog_compiler_rtti_exceptions=yes
15510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15511 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15514 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15521 lt_prog_compiler_wl_GCJ=
15522 lt_prog_compiler_pic_GCJ=
15523 lt_prog_compiler_static_GCJ=
15525 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15526 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15528 if test "$GCC" = yes; then
15529 lt_prog_compiler_wl_GCJ='-Wl,'
15530 lt_prog_compiler_static_GCJ='-static'
15534 # All AIX code is PIC.
15535 if test "$host_cpu" = ia64; then
15536 # AIX 5 now supports IA64 processor
15537 lt_prog_compiler_static_GCJ='-Bstatic'
15542 # FIXME: we need at least 68020 code to build shared libraries, but
15543 # adding the `-m68020' flag to GCC prevents building anything better,
15545 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15548 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15549 # PIC is the default for these OSes.
15552 mingw* | pw32* | os2*)
15553 # This hack is so that the source file can tell whether it is being
15554 # built for inclusion in a dll (and should export symbols for example).
15555 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15558 darwin* | rhapsody*)
15559 # PIC is the default on this platform
15560 # Common symbols not allowed in MH_DYLIB files
15561 lt_prog_compiler_pic_GCJ='-fno-common'
15565 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15566 # Instead, we relocate shared libraries at runtime.
15570 # Just because we use GCC doesn't mean we suddenly get shared libraries
15571 # on systems that don't support them.
15572 lt_prog_compiler_can_build_shared_GCJ=no
15577 if test -d /usr/nec; then
15578 lt_prog_compiler_pic_GCJ=-Kconform_pic
15583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15584 # not for PA HP-UX.
15590 lt_prog_compiler_pic_GCJ='-fPIC'
15596 lt_prog_compiler_pic_GCJ='-fPIC'
15600 # PORTME Check for flag to pass linker flags through the system compiler.
15603 lt_prog_compiler_wl_GCJ='-Wl,'
15604 if test "$host_cpu" = ia64; then
15605 # AIX 5 now supports IA64 processor
15606 lt_prog_compiler_static_GCJ='-Bstatic'
15608 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15612 # PIC is the default on this platform
15613 # Common symbols not allowed in MH_DYLIB files
15614 case $cc_basename in
15616 lt_prog_compiler_pic_GCJ='-qnocommon'
15617 lt_prog_compiler_wl_GCJ='-Wl,'
15622 mingw* | pw32* | os2*)
15623 # This hack is so that the source file can tell whether it is being
15624 # built for inclusion in a dll (and should export symbols for example).
15625 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15628 hpux9* | hpux10* | hpux11*)
15629 lt_prog_compiler_wl_GCJ='-Wl,'
15630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15631 # not for PA HP-UX.
15637 lt_prog_compiler_pic_GCJ='+Z'
15640 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15641 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15644 irix5* | irix6* | nonstopux*)
15645 lt_prog_compiler_wl_GCJ='-Wl,'
15646 # PIC (with -KPIC) is the default.
15647 lt_prog_compiler_static_GCJ='-non_shared'
15651 lt_prog_compiler_pic_GCJ='-KPIC'
15652 lt_prog_compiler_static_GCJ='-Bstatic'
15656 case $cc_basename in
15658 lt_prog_compiler_wl_GCJ='-Wl,'
15659 lt_prog_compiler_pic_GCJ='-KPIC'
15660 lt_prog_compiler_static_GCJ='-static'
15662 pgcc* | pgf77* | pgf90* | pgf95*)
15663 # Portland Group compilers (*not* the Pentium gcc compiler,
15664 # which looks to be a dead project)
15665 lt_prog_compiler_wl_GCJ='-Wl,'
15666 lt_prog_compiler_pic_GCJ='-fpic'
15667 lt_prog_compiler_static_GCJ='-Bstatic'
15670 lt_prog_compiler_wl_GCJ='-Wl,'
15671 # All Alpha code is PIC.
15672 lt_prog_compiler_static_GCJ='-non_shared'
15677 osf3* | osf4* | osf5*)
15678 lt_prog_compiler_wl_GCJ='-Wl,'
15679 # All OSF/1 code is PIC.
15680 lt_prog_compiler_static_GCJ='-non_shared'
15684 lt_prog_compiler_pic_GCJ='-KPIC'
15685 lt_prog_compiler_static_GCJ='-Bstatic'
15686 case $cc_basename in
15687 f77* | f90* | f95*)
15688 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15690 lt_prog_compiler_wl_GCJ='-Wl,';;
15695 lt_prog_compiler_wl_GCJ='-Qoption ld '
15696 lt_prog_compiler_pic_GCJ='-PIC'
15697 lt_prog_compiler_static_GCJ='-Bstatic'
15700 sysv4 | sysv4.2uw2* | sysv4.3*)
15701 lt_prog_compiler_wl_GCJ='-Wl,'
15702 lt_prog_compiler_pic_GCJ='-KPIC'
15703 lt_prog_compiler_static_GCJ='-Bstatic'
15707 if test -d /usr/nec ;then
15708 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15709 lt_prog_compiler_static_GCJ='-Bstatic'
15713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15714 lt_prog_compiler_wl_GCJ='-Wl,'
15715 lt_prog_compiler_pic_GCJ='-KPIC'
15716 lt_prog_compiler_static_GCJ='-Bstatic'
15720 lt_prog_compiler_wl_GCJ='-Wl,'
15721 lt_prog_compiler_can_build_shared_GCJ=no
15725 lt_prog_compiler_pic_GCJ='-pic'
15726 lt_prog_compiler_static_GCJ='-Bstatic'
15730 lt_prog_compiler_can_build_shared_GCJ=no
15735 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15736 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15739 # Check to make sure the PIC flag actually works.
15741 if test -n "$lt_prog_compiler_pic_GCJ"; then
15743 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15744 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15745 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 lt_prog_compiler_pic_works_GCJ=no
15749 ac_outfile=conftest.$ac_objext
15750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15752 # Insert the option either (1) after the last *FLAGS variable, or
15753 # (2) before a word containing "conftest.", or (3) at the end.
15754 # Note that $ac_compile itself does not contain backslashes and begins
15755 # with a dollar sign (not a hyphen), so the echo should work correctly.
15756 # The option is referenced via a variable to avoid confusing sed.
15757 lt_compile=`echo "$ac_compile" | $SED \
15758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760 -e 's:$: $lt_compiler_flag:'`
15761 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15762 (eval "$lt_compile" 2>conftest.err)
15764 cat conftest.err >&5
15765 echo "$as_me:__oline__: \$? = $ac_status" >&5
15766 if (exit $ac_status) && test -s "$ac_outfile"; then
15767 # The compiler can only warn and ignore the option if not recognized
15768 # So say no if there are warnings other than the usual output.
15769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15772 lt_prog_compiler_pic_works_GCJ=yes
15778 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15779 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15781 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15782 case $lt_prog_compiler_pic_GCJ in
15784 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15787 lt_prog_compiler_pic_GCJ=
15788 lt_prog_compiler_can_build_shared_GCJ=no
15793 # For platforms which do not support PIC, -DPIC is meaningless:
15795 lt_prog_compiler_pic_GCJ=
15798 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15803 # Check to make sure the static flag actually works.
15805 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15806 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15807 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15808 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 lt_prog_compiler_static_works_GCJ=no
15812 save_LDFLAGS="$LDFLAGS"
15813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15814 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15816 # The linker can only warn and ignore the option if not recognized
15817 # So say no if there are warnings
15818 if test -s conftest.err; then
15819 # Append any errors to the config.log.
15820 cat conftest.err 1>&5
15821 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15823 if diff conftest.exp conftest.er2 >/dev/null; then
15824 lt_prog_compiler_static_works_GCJ=yes
15827 lt_prog_compiler_static_works_GCJ=yes
15831 LDFLAGS="$save_LDFLAGS"
15834 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15835 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15837 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15840 lt_prog_compiler_static_GCJ=
15844 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15845 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15846 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 lt_cv_prog_compiler_c_o_GCJ=no
15850 $rm -r conftest 2>/dev/null
15854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15856 lt_compiler_flag="-o out/conftest2.$ac_objext"
15857 # Insert the option either (1) after the last *FLAGS variable, or
15858 # (2) before a word containing "conftest.", or (3) at the end.
15859 # Note that $ac_compile itself does not contain backslashes and begins
15860 # with a dollar sign (not a hyphen), so the echo should work correctly.
15861 lt_compile=`echo "$ac_compile" | $SED \
15862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15864 -e 's:$: $lt_compiler_flag:'`
15865 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15866 (eval "$lt_compile" 2>out/conftest.err)
15868 cat out/conftest.err >&5
15869 echo "$as_me:__oline__: \$? = $ac_status" >&5
15870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15872 # The compiler can only warn and ignore the option if not recognized
15873 # So say no if there are warnings
15874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15877 lt_cv_prog_compiler_c_o_GCJ=yes
15882 # SGI C++ compiler will create directory out/ii_files/ for
15883 # template instantiation
15884 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15885 $rm out/* && rmdir out
15891 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15892 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15895 hard_links="nottested"
15896 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15897 # do not overwrite the value of need_locks provided by the user
15898 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15899 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15904 ln conftest.a conftest.b 2>&5 || hard_links=no
15905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15906 echo "$as_me:$LINENO: result: $hard_links" >&5
15907 echo "${ECHO_T}$hard_links" >&6
15908 if test "$hard_links" = no; then
15909 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15910 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15917 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15918 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15921 allow_undefined_flag_GCJ=
15922 enable_shared_with_static_runtimes_GCJ=no
15924 archive_expsym_cmds_GCJ=
15925 old_archive_From_new_cmds_GCJ=
15926 old_archive_from_expsyms_cmds_GCJ=
15927 export_dynamic_flag_spec_GCJ=
15928 whole_archive_flag_spec_GCJ=
15929 thread_safe_flag_spec_GCJ=
15930 hardcode_libdir_flag_spec_GCJ=
15931 hardcode_libdir_flag_spec_ld_GCJ=
15932 hardcode_libdir_separator_GCJ=
15933 hardcode_direct_GCJ=no
15934 hardcode_minus_L_GCJ=no
15935 hardcode_shlibpath_var_GCJ=unsupported
15936 link_all_deplibs_GCJ=unknown
15937 hardcode_automatic_GCJ=no
15939 module_expsym_cmds_GCJ=
15940 always_export_symbols_GCJ=no
15941 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15942 # include_expsyms should be a list of space-separated symbols to be *always*
15943 # included in the symbol list
15944 include_expsyms_GCJ=
15945 # exclude_expsyms can be an extended regexp of symbols to exclude
15946 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15947 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15948 # as well as any symbol that contains `d'.
15949 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15950 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15951 # platforms (ab)use it in PIC code, but their linkers get confused if
15952 # the symbol is explicitly referenced. Since portable code cannot
15953 # rely on this symbol name, it's probably fine to never include it in
15954 # preloaded symbol tables.
15955 extract_expsyms_cmds=
15956 # Just being paranoid about ensuring that cc_basename is set.
15957 for cc_temp in $compiler""; do
15959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15968 cygwin* | mingw* | pw32*)
15969 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15970 # When not using gcc, we currently assume that we are using
15971 # Microsoft Visual C++.
15972 if test "$GCC" != yes; then
15977 # we just hope/assume this is gcc and not c89 (= MSVC++)
15986 if test "$with_gnu_ld" = yes; then
15987 # If archive_cmds runs LD, not CC, wlarc should be empty
15990 # Set some defaults for GNU ld with shared library support. These
15991 # are reset later if shared libraries are not supported. Putting them
15992 # here allows them to be overridden if necessary.
15993 runpath_var=LD_RUN_PATH
15994 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15995 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15996 # ancient GNU ld didn't support --whole-archive et. al.
15997 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15998 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16000 whole_archive_flag_spec_GCJ=
16002 supports_anon_versioning=no
16003 case `$LD -v 2>/dev/null` in
16004 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16007 *\ 2.11.*) ;; # other 2.11 versions
16008 *) supports_anon_versioning=yes ;;
16011 # See if GNU ld supports shared libraries.
16013 aix3* | aix4* | aix5*)
16014 # On AIX/PPC, the GNU linker is very broken
16015 if test "$host_cpu" != ia64; then
16019 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16020 *** to be unable to reliably create shared libraries on AIX.
16021 *** Therefore, libtool is disabling shared libraries support. If you
16022 *** really care for shared libraries, you may want to modify your PATH
16023 *** so that a non-GNU linker is found, and then restart.
16030 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)'
16031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16032 hardcode_minus_L_GCJ=yes
16034 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16035 # that the semantics of dynamic libraries on AmigaOS, at least up
16036 # to version 4, is to share data among multiple programs linked
16037 # with the same dynamic library. Since this doesn't match the
16038 # behavior of shared libraries on other platforms, we can't use
16044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16045 allow_undefined_flag_GCJ=unsupported
16046 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16047 # support --undefined. This deserves some investigation. FIXME
16048 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054 cygwin* | mingw* | pw32*)
16055 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16056 # as there is no search path for DLLs.
16057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16058 allow_undefined_flag_GCJ=unsupported
16059 always_export_symbols_GCJ=no
16060 enable_shared_with_static_runtimes_GCJ=yes
16061 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16063 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16064 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16065 # If the export-symbols file already is a .def file (1st line
16066 # is EXPORTS), use it as is; otherwise, prepend...
16067 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16068 cp $export_symbols $output_objdir/$soname.def;
16070 echo EXPORTS > $output_objdir/$soname.def;
16071 cat $export_symbols >> $output_objdir/$soname.def;
16073 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16080 hardcode_direct_GCJ=no
16081 hardcode_shlibpath_var_GCJ=no
16082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16083 export_dynamic_flag_spec_GCJ='${wl}-E'
16084 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16085 # Instead, shared libraries are loaded at an image base (0x10000000 by
16086 # default) and relocated if they conflict, which is a slow very memory
16087 # consuming and fragmenting process. To avoid this, we pick a random,
16088 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16089 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16090 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'
16091 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'
16095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16097 case $cc_basename,$host_cpu in
16098 pgcc*) # Portland Group C compiler
16099 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'
16100 tmp_addflag=' $pic_flag'
16102 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16103 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'
16104 tmp_addflag=' $pic_flag -Mnomain' ;;
16105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16106 tmp_addflag=' -i_dynamic' ;;
16107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16108 tmp_addflag=' -i_dynamic -nofor_main' ;;
16109 ifc* | ifort*) # Intel Fortran compiler
16110 tmp_addflag=' -nofor_main' ;;
16112 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16114 if test $supports_anon_versioning = yes; then
16115 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16117 $echo "local: *; };" >> $output_objdir/$libname.ver~
16118 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16127 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16130 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16131 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16141 *** create shared libraries on Solaris systems. Therefore, libtool
16142 *** is disabling shared libraries support. We urge you to upgrade GNU
16143 *** binutils to release 2.9.1 or newer. Another option is to modify
16144 *** your PATH or compiler configuration so that the native linker is
16145 *** used, and then restart.
16148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16149 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16150 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16157 case `$LD -v 2>&1` in
16158 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16162 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16163 *** reliably create shared libraries on SCO systems. Therefore, libtool
16164 *** is disabling shared libraries support. We urge you to upgrade GNU
16165 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16166 *** your PATH or compiler configuration so that the native linker is
16167 *** used, and then restart.
16172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16173 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16174 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16175 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16184 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16186 hardcode_direct_GCJ=yes
16187 hardcode_shlibpath_var_GCJ=no
16191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16200 if test "$ld_shlibs_GCJ" = no; then
16202 hardcode_libdir_flag_spec_GCJ=
16203 export_dynamic_flag_spec_GCJ=
16204 whole_archive_flag_spec_GCJ=
16207 # PORTME fill in a description of your system's linker (not GNU ld)
16210 allow_undefined_flag_GCJ=unsupported
16211 always_export_symbols_GCJ=yes
16212 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'
16213 # Note: this linker hardcodes the directories in LIBPATH if there
16214 # are no directories specified by -L.
16215 hardcode_minus_L_GCJ=yes
16216 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16217 # Neither direct hardcoding nor static linking is supported with a
16219 hardcode_direct_GCJ=unsupported
16224 if test "$host_cpu" = ia64; then
16225 # On IA64, the linker does run time linking by default, so we don't
16226 # have to do anything special.
16227 aix_use_runtimelinking=no
16228 exp_sym_flag='-Bexport'
16231 # If we're using GNU nm, then we don't want the "-C" option.
16232 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16233 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16234 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'
16236 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'
16238 aix_use_runtimelinking=no
16240 # Test if we are trying to use run time linking or normal
16241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16242 # need to do runtime linking.
16243 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16244 for ld_flag in $LDFLAGS; do
16245 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16246 aix_use_runtimelinking=yes
16253 exp_sym_flag='-bexport'
16254 no_entry_flag='-bnoentry'
16257 # When large executables or shared objects are built, AIX ld can
16258 # have problems creating the table of contents. If linking a library
16259 # or program results in "error TOC overflow" add -mminimal-toc to
16260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16263 archive_cmds_GCJ=''
16264 hardcode_direct_GCJ=yes
16265 hardcode_libdir_separator_GCJ=':'
16266 link_all_deplibs_GCJ=yes
16268 if test "$GCC" = yes; then
16269 case $host_os in aix4.[012]|aix4.[012].*)
16270 # We only want to do this on AIX 4.2 and lower, the check
16271 # below for broken collect2 doesn't work under 4.3+
16272 collect2name=`${CC} -print-prog-name=collect2`
16273 if test -f "$collect2name" && \
16274 strings "$collect2name" | grep resolve_lib_name >/dev/null
16276 # We have reworked collect2
16277 hardcode_direct_GCJ=yes
16279 # We have old collect2
16280 hardcode_direct_GCJ=unsupported
16281 # It fails to find uninstalled libraries when the uninstalled
16282 # path is not listed in the libpath. Setting hardcode_minus_L
16283 # to unsupported forces relinking
16284 hardcode_minus_L_GCJ=yes
16285 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16286 hardcode_libdir_separator_GCJ=
16290 shared_flag='-shared'
16291 if test "$aix_use_runtimelinking" = yes; then
16292 shared_flag="$shared_flag "'${wl}-G'
16296 if test "$host_cpu" = ia64; then
16297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16298 # chokes on -Wl,-G. The following line is correct:
16301 if test "$aix_use_runtimelinking" = yes; then
16302 shared_flag='${wl}-G'
16304 shared_flag='${wl}-bM:SRE'
16309 # It seems that -bexpall does not export symbols beginning with
16310 # underscore (_), so it is better to generate a list of symbols to export.
16311 always_export_symbols_GCJ=yes
16312 if test "$aix_use_runtimelinking" = yes; then
16313 # Warning - without using the other runtime loading flags (-brtl),
16314 # -berok will link without error, but may produce a broken library.
16315 allow_undefined_flag_GCJ='-berok'
16316 # Determine the default libpath from the value encoded in an empty executable.
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16332 rm -f conftest.$ac_objext conftest$ac_exeext
16333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16334 (eval $ac_link) 2>conftest.er1
16336 grep -v '^ *+' conftest.er1 >conftest.err
16338 cat conftest.err >&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -z "$ac_c_werror_flag"
16342 || test ! -s conftest.err'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; } &&
16348 { ac_try='test -s conftest$ac_exeext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16357 # Check for a 64-bit object if we didn't find anything.
16358 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; }
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16365 rm -f conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
16367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16369 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16370 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"
16372 if test "$host_cpu" = ia64; then
16373 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16374 allow_undefined_flag_GCJ="-z nodefs"
16375 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"
16377 # Determine the default libpath from the value encoded in an empty executable.
16378 cat >conftest.$ac_ext <<_ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395 (eval $ac_link) 2>conftest.er1
16397 grep -v '^ *+' conftest.er1 >conftest.err
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag"
16403 || test ! -s conftest.err'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; } &&
16409 { ac_try='test -s conftest$ac_exeext'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; }; then
16416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16418 # Check for a 64-bit object if we didn't find anything.
16419 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; }
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16426 rm -f conftest.err conftest.$ac_objext \
16427 conftest$ac_exeext conftest.$ac_ext
16428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16430 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16431 # Warning - without using the other run time loading flags,
16432 # -berok will link without error, but may produce a broken library.
16433 no_undefined_flag_GCJ=' ${wl}-bernotok'
16434 allow_undefined_flag_GCJ=' ${wl}-berok'
16435 # Exported symbols can be pulled into shared objects from archives
16436 whole_archive_flag_spec_GCJ='$convenience'
16437 archive_cmds_need_lc_GCJ=yes
16438 # This is similar to how AIX traditionally builds its shared libraries.
16439 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'
16445 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)'
16446 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16447 hardcode_minus_L_GCJ=yes
16448 # see comment about different semantics on the GNU ld section
16453 export_dynamic_flag_spec_GCJ=-rdynamic
16456 cygwin* | mingw* | pw32*)
16457 # When not using gcc, we currently assume that we are using
16458 # Microsoft Visual C++.
16459 # hardcode_libdir_flag_spec is actually meaningless, as there is
16460 # no search path for DLLs.
16461 hardcode_libdir_flag_spec_GCJ=' '
16462 allow_undefined_flag_GCJ=unsupported
16463 # Tell ltmain to make .lib files, not .a files.
16465 # Tell ltmain to make .dll files, not .so files.
16467 # FIXME: Setting linknames here is a bad hack.
16468 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16469 # The linker will automatically build a .lib file if we build a DLL.
16470 old_archive_From_new_cmds_GCJ='true'
16471 # FIXME: Should let the user specify the lib program.
16472 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16473 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16474 enable_shared_with_static_runtimes_GCJ=yes
16477 darwin* | rhapsody*)
16479 rhapsody* | darwin1.[012])
16480 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16483 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16484 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16486 case ${MACOSX_DEPLOYMENT_TARGET} in
16488 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16491 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16497 archive_cmds_need_lc_GCJ=no
16498 hardcode_direct_GCJ=no
16499 hardcode_automatic_GCJ=yes
16500 hardcode_shlibpath_var_GCJ=unsupported
16501 whole_archive_flag_spec_GCJ=''
16502 link_all_deplibs_GCJ=yes
16503 if test "$GCC" = yes ; then
16504 output_verbose_link_cmd='echo'
16505 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16506 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16508 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}'
16509 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}'
16511 case $cc_basename in
16513 output_verbose_link_cmd='echo'
16514 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16515 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16516 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16517 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}'
16518 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}'
16528 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16529 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16530 hardcode_shlibpath_var_GCJ=no
16537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16538 # support. Future versions do this automatically, but an explicit c++rt0.o
16539 # does not break anything, and helps significantly (at the cost of a little
16542 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16543 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16544 hardcode_direct_GCJ=yes
16545 hardcode_shlibpath_var_GCJ=no
16548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16550 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16551 hardcode_direct_GCJ=yes
16552 hardcode_minus_L_GCJ=yes
16553 hardcode_shlibpath_var_GCJ=no
16556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16557 freebsd* | kfreebsd*-gnu | dragonfly*)
16558 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16559 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16560 hardcode_direct_GCJ=yes
16561 hardcode_shlibpath_var_GCJ=no
16565 if test "$GCC" = yes; then
16566 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'
16568 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'
16570 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16571 hardcode_libdir_separator_GCJ=:
16572 hardcode_direct_GCJ=yes
16574 # hardcode_minus_L: Not really in the search PATH,
16575 # but as the default location of the library.
16576 hardcode_minus_L_GCJ=yes
16577 export_dynamic_flag_spec_GCJ='${wl}-E'
16581 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16582 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16584 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16586 if test "$with_gnu_ld" = no; then
16587 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16588 hardcode_libdir_separator_GCJ=:
16590 hardcode_direct_GCJ=yes
16591 export_dynamic_flag_spec_GCJ='${wl}-E'
16593 # hardcode_minus_L: Not really in the search PATH,
16594 # but as the default location of the library.
16595 hardcode_minus_L_GCJ=yes
16600 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16603 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16606 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16609 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16615 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16618 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16621 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16625 if test "$with_gnu_ld" = no; then
16626 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16627 hardcode_libdir_separator_GCJ=:
16631 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16632 hardcode_direct_GCJ=no
16633 hardcode_shlibpath_var_GCJ=no
16636 hardcode_direct_GCJ=yes
16637 export_dynamic_flag_spec_GCJ='${wl}-E'
16639 # hardcode_minus_L: Not really in the search PATH,
16640 # but as the default location of the library.
16641 hardcode_minus_L_GCJ=yes
16647 irix5* | irix6* | nonstopux*)
16648 if test "$GCC" = yes; then
16649 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'
16651 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'
16652 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16655 hardcode_libdir_separator_GCJ=:
16656 link_all_deplibs_GCJ=yes
16660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16661 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16663 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16665 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16666 hardcode_direct_GCJ=yes
16667 hardcode_shlibpath_var_GCJ=no
16671 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16672 hardcode_direct_GCJ=yes
16673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16674 hardcode_libdir_separator_GCJ=:
16675 hardcode_shlibpath_var_GCJ=no
16679 hardcode_direct_GCJ=yes
16680 hardcode_shlibpath_var_GCJ=no
16681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16682 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16683 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16684 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16685 export_dynamic_flag_spec_GCJ='${wl}-E'
16688 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16689 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16690 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16693 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16694 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16701 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16702 hardcode_minus_L_GCJ=yes
16703 allow_undefined_flag_GCJ=unsupported
16704 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'
16705 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16709 if test "$GCC" = yes; then
16710 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16711 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'
16713 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16714 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'
16716 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16717 hardcode_libdir_separator_GCJ=:
16720 osf4* | osf5*) # as osf3* with the addition of -msym flag
16721 if test "$GCC" = yes; then
16722 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16723 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'
16724 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16726 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16727 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'
16728 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~
16729 $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'
16731 # Both c and cxx compiler support -rpath directly
16732 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16734 hardcode_libdir_separator_GCJ=:
16738 no_undefined_flag_GCJ=' -z text'
16739 if test "$GCC" = yes; then
16741 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16742 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16743 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16746 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16750 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16751 hardcode_shlibpath_var_GCJ=no
16753 solaris2.[0-5] | solaris2.[0-5].*) ;;
16755 # The compiler driver will combine linker options so we
16756 # cannot just pass the convience library names through
16757 # without $wl, iff we do not link with $LD.
16758 # Luckily, gcc supports the same syntax we need for Sun Studio.
16759 # Supported since Solaris 2.6 (maybe 2.5.1?)
16762 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16764 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' ;;
16767 link_all_deplibs_GCJ=yes
16771 if test "x$host_vendor" = xsequent; then
16772 # Use $CC to link under sequent, because it throws in some extra .o
16773 # files that make .init and .fini sections work.
16774 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16776 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16779 hardcode_direct_GCJ=yes
16780 hardcode_minus_L_GCJ=yes
16781 hardcode_shlibpath_var_GCJ=no
16785 case $host_vendor in
16787 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16788 hardcode_direct_GCJ=yes # is this really true???
16791 ## LD is ld it makes a PLAMLIB
16792 ## CC just makes a GrossModule.
16793 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16794 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16795 hardcode_direct_GCJ=no
16798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16802 runpath_var='LD_RUN_PATH'
16803 hardcode_shlibpath_var_GCJ=no
16807 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808 hardcode_shlibpath_var_GCJ=no
16809 export_dynamic_flag_spec_GCJ='-Bexport'
16813 if test -d /usr/nec; then
16814 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815 hardcode_shlibpath_var_GCJ=no
16816 runpath_var=LD_RUN_PATH
16817 hardcode_runpath_var=yes
16822 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16823 no_undefined_flag_GCJ='${wl}-z,text'
16824 archive_cmds_need_lc_GCJ=no
16825 hardcode_shlibpath_var_GCJ=no
16826 runpath_var='LD_RUN_PATH'
16828 if test "$GCC" = yes; then
16829 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16830 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16832 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16833 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16837 sysv5* | sco3.2v5* | sco5v6*)
16838 # Note: We can NOT use -z defs as we might desire, because we do not
16839 # link with -lc, and that would cause any symbols used from libc to
16840 # always be unresolved, which means just about no library would
16841 # ever link correctly. If we're not using GNU ld we use -z text
16842 # though, which does catch some bad symbols but isn't as heavy-handed
16844 no_undefined_flag_GCJ='${wl}-z,text'
16845 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16846 archive_cmds_need_lc_GCJ=no
16847 hardcode_shlibpath_var_GCJ=no
16848 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16849 hardcode_libdir_separator_GCJ=':'
16850 link_all_deplibs_GCJ=yes
16851 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16852 runpath_var='LD_RUN_PATH'
16854 if test "$GCC" = yes; then
16855 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16856 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16858 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16859 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16864 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16865 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16866 hardcode_shlibpath_var_GCJ=no
16875 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16876 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16877 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16880 # Do we need to explicitly link libc?
16882 case "x$archive_cmds_need_lc_GCJ" in
16884 # Assume -lc should be added
16885 archive_cmds_need_lc_GCJ=yes
16887 if test "$enable_shared" = yes && test "$GCC" = yes; then
16888 case $archive_cmds_GCJ in
16890 # FIXME: we may have to deal with multi-command sequences.
16893 # Test whether the compiler implicitly links with -lc since on some
16894 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16895 # to ld, don't add -lc before -lgcc.
16896 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16897 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16899 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16902 (eval $ac_compile) 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } 2>conftest.err; then
16908 libobjs=conftest.$ac_objext
16910 wl=$lt_prog_compiler_wl_GCJ
16911 pic_flag=$lt_prog_compiler_pic_GCJ
16917 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16918 allow_undefined_flag_GCJ=
16919 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16920 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }
16925 archive_cmds_need_lc_GCJ=no
16927 archive_cmds_need_lc_GCJ=yes
16929 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16931 cat conftest.err 1>&5
16934 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16935 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16942 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16943 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16944 library_names_spec=
16945 libname_spec='lib$name'
16949 postuninstall_cmds=
16953 shlibpath_overrides_runpath=unknown
16955 dynamic_linker="$host_os ld.so"
16956 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16957 if test "$GCC" = yes; then
16958 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16959 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16960 # if the path contains ";" then we assume it to be the separator
16961 # otherwise default to the standard path separator (i.e. ":") - it is
16962 # assumed that no part of a normal pathname contains ";" but that should
16963 # okay in the real world where ";" in dirpaths is itself problematic.
16964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16969 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16971 need_lib_prefix=unknown
16972 hardcode_into_libs=no
16974 # when you set need_version to no, make sure it does not cause -set_version
16975 # flags to be left without arguments
16976 need_version=unknown
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16982 shlibpath_var=LIBPATH
16984 # AIX 3 has no versioning support, so we append a major version to the name.
16985 soname_spec='${libname}${release}${shared_ext}$major'
16992 hardcode_into_libs=yes
16993 if test "$host_cpu" = ia64; then
16994 # AIX 5 supports IA64
16995 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16996 shlibpath_var=LD_LIBRARY_PATH
16998 # With GCC up to 2.95.x, collect2 would create an import file
16999 # for dependence libraries. The import file would start with
17000 # the line `#! .'. This would cause the generated library to
17001 # depend on `.', always an invalid library. This was fixed in
17002 # development snapshots of GCC prior to 3.0.
17004 aix4 | aix4.[01] | aix4.[01].*)
17005 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17007 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17010 can_build_shared=no
17014 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17015 # soname into executable. Probably we can add versioning support to
17016 # collect2, so additional links can be useful in future.
17017 if test "$aix_use_runtimelinking" = yes; then
17018 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17019 # instead of lib<name>.a to let people know that these are not
17020 # typical AIX shared libraries.
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17023 # We preserve .a as extension for shared libraries through AIX4.2
17024 # and later when we are not doing run time linking.
17025 library_names_spec='${libname}${release}.a $libname.a'
17026 soname_spec='${libname}${release}${shared_ext}$major'
17028 shlibpath_var=LIBPATH
17033 library_names_spec='$libname.ixlibrary $libname.a'
17034 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17035 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'
17039 library_names_spec='${libname}${shared_ext}'
17040 dynamic_linker="$host_os ld.so"
17041 shlibpath_var=LIBRARY_PATH
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 soname_spec='${libname}${release}${shared_ext}$major'
17049 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17052 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17053 # the default ld.so.conf also contains /usr/contrib/lib and
17054 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17055 # libtool to hard-code these into programs
17058 cygwin* | mingw* | pw32*)
17059 version_type=windows
17064 case $GCC,$host_os in
17065 yes,cygwin* | yes,mingw* | yes,pw32*)
17066 library_names_spec='$libname.dll.a'
17067 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17068 postinstall_cmds='base_file=`basename \${file}`~
17069 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17070 dldir=$destdir/`dirname \$dlpath`~
17071 test -d \$dldir || mkdir -p \$dldir~
17072 $install_prog $dir/$dlname \$dldir/$dlname~
17073 chmod a+x \$dldir/$dlname'
17074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17075 dlpath=$dir/\$dldll~
17077 shlibpath_overrides_runpath=yes
17081 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17082 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17083 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17086 # MinGW DLLs use traditional 'lib' prefix
17087 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17089 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17090 # It is most probably a Windows format PATH printed by
17091 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17092 # path with ; separators, and with drive letters. We can handle the
17093 # drive letters (cygwin fileutils understands them), so leave them,
17094 # especially as we might pass files found there to a mingw objdump,
17095 # which wouldn't understand a cygwinified path. Ahh.
17096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17102 # pw32 DLLs use 'pw' prefix rather than 'lib'
17103 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17109 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17112 dynamic_linker='Win32 ld.exe'
17113 # FIXME: first we should search . and the directory the executable is in
17117 darwin* | rhapsody*)
17118 dynamic_linker="$host_os dyld"
17119 version_type=darwin
17122 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17123 soname_spec='${libname}${release}${major}$shared_ext'
17124 shlibpath_overrides_runpath=yes
17125 shlibpath_var=DYLD_LIBRARY_PATH
17126 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17127 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17128 if test "$GCC" = yes; then
17129 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"`
17131 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17133 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17141 soname_spec='${libname}${release}${shared_ext}$major'
17142 shlibpath_var=LD_LIBRARY_PATH
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=no
17157 hardcode_into_libs=yes
17158 dynamic_linker='GNU ld.so'
17161 freebsd* | dragonfly*)
17162 # DragonFly does not have aout. When/if they implement a new
17163 # versioning mechanism, adjust this.
17164 if test -x /usr/bin/objformat; then
17165 objformat=`/usr/bin/objformat`
17168 freebsd[123]*) objformat=aout ;;
17169 *) objformat=elf ;;
17172 version_type=freebsd-$objformat
17173 case $version_type in
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17184 shlibpath_var=LD_LIBRARY_PATH
17187 shlibpath_overrides_runpath=yes
17189 freebsd3.[01]* | freebsdelf3.[01]*)
17190 shlibpath_overrides_runpath=yes
17191 hardcode_into_libs=yes
17193 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17194 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17195 shlibpath_overrides_runpath=no
17196 hardcode_into_libs=yes
17198 freebsd*) # from 4.6 on
17199 shlibpath_overrides_runpath=yes
17200 hardcode_into_libs=yes
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 shlibpath_var=LD_LIBRARY_PATH
17212 hardcode_into_libs=yes
17215 hpux9* | hpux10* | hpux11*)
17216 # Give a soname corresponding to the major version so that dld.sl refuses to
17217 # link against other versions.
17224 hardcode_into_libs=yes
17225 dynamic_linker="$host_os dld.so"
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 if test "X$HPUX_IA64_MODE" = X32; then
17231 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17233 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17239 hardcode_into_libs=yes
17240 dynamic_linker="$host_os dld.sl"
17241 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17250 dynamic_linker="$host_os dld.sl"
17251 shlibpath_var=SHLIB_PATH
17252 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254 soname_spec='${libname}${release}${shared_ext}$major'
17257 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17258 postinstall_cmds='chmod 555 $lib'
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17266 soname_spec='${libname}${release}${shared_ext}$major'
17267 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17268 shlibpath_var=LD_LIBRARY_PATH
17269 shlibpath_overrides_runpath=no
17270 hardcode_into_libs=yes
17273 irix5* | irix6* | nonstopux*)
17275 nonstopux*) version_type=nonstopux ;;
17277 if test "$lt_cv_prog_gnu_ld" = yes; then
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17288 irix5* | nonstopux*)
17289 libsuff= shlibsuff=
17292 case $LD in # libtool.m4 will add one of these switches to LD
17293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17294 libsuff= shlibsuff= libmagic=32-bit;;
17295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17296 libsuff=32 shlibsuff=N32 libmagic=N32;;
17297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17298 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17299 *) libsuff= shlibsuff= libmagic=never-match;;
17303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17304 shlibpath_overrides_runpath=no
17305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17307 hardcode_into_libs=yes
17310 # No shared lib support for Linux oldld, aout, or coff.
17311 linux*oldld* | linux*aout* | linux*coff*)
17315 # This must be Linux ELF.
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17323 shlibpath_var=LD_LIBRARY_PATH
17324 shlibpath_overrides_runpath=no
17325 # This implies no fast_install, which is unacceptable.
17326 # Some rework will be needed to allow for fast_install
17327 # before this can be enabled.
17328 hardcode_into_libs=yes
17330 # Append ld.so.conf contents to the search path
17331 if test -f /etc/ld.so.conf; then
17332 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' ' '`
17333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17336 # We used to test for /lib/ld.so.1 and disable shared libraries on
17337 # powerpc, because MkLinux only supported shared libraries with the
17338 # GNU dynamic linker. Since this was broken with cross compilers,
17339 # most powerpc-linux boxes support dynamic linking these days and
17340 # people can always --disable-shared, the test was removed, and we
17341 # assume the GNU/Linux dynamic linker is in use.
17342 dynamic_linker='GNU/Linux ld.so'
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 shlibpath_var=LD_LIBRARY_PATH
17352 shlibpath_overrides_runpath=no
17353 hardcode_into_libs=yes
17354 dynamic_linker='GNU ld.so'
17361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17364 dynamic_linker='NetBSD (a.out) ld.so'
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17367 soname_spec='${libname}${release}${shared_ext}$major'
17368 dynamic_linker='NetBSD ld.elf_so'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes
17372 hardcode_into_libs=yes
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 shlibpath_overrides_runpath=yes
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=yes
17394 sys_lib_dlsearch_path_spec="/usr/lib"
17396 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17398 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17399 *) need_version=no ;;
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17403 shlibpath_var=LD_LIBRARY_PATH
17404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17406 openbsd2.[89] | openbsd2.[89].*)
17407 shlibpath_overrides_runpath=no
17410 shlibpath_overrides_runpath=yes
17414 shlibpath_overrides_runpath=yes
17419 libname_spec='$name'
17422 library_names_spec='$libname${shared_ext} $libname.a'
17423 dynamic_linker='OS/2 ld.exe'
17424 shlibpath_var=LIBPATH
17427 osf3* | osf4* | osf5*)
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17435 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17446 hardcode_into_libs=yes
17447 # ldd complains unless libraries are executable
17448 postinstall_cmds='chmod +x $lib'
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17454 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 shlibpath_overrides_runpath=yes
17457 if test "$with_gnu_ld" = yes; then
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 soname_spec='${libname}${release}${shared_ext}$major'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 case $host_vendor in
17470 shlibpath_overrides_runpath=no
17472 export_dynamic_flag_spec='${wl}-Blargedynsym'
17473 runpath_var=LD_RUN_PATH
17481 shlibpath_overrides_runpath=no
17482 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17488 if test -d /usr/nec ;then
17490 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17491 soname_spec='$libname${shared_ext}.$major'
17492 shlibpath_var=LD_LIBRARY_PATH
17496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17497 version_type=freebsd-elf
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17501 soname_spec='${libname}${release}${shared_ext}$major'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 hardcode_into_libs=yes
17504 if test "$with_gnu_ld" = yes; then
17505 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17506 shlibpath_overrides_runpath=no
17508 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17509 shlibpath_overrides_runpath=yes
17512 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17516 sys_lib_dlsearch_path_spec='/usr/lib'
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 shlibpath_var=LD_LIBRARY_PATH
17530 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17531 echo "${ECHO_T}$dynamic_linker" >&6
17532 test "$dynamic_linker" = no && can_build_shared=no
17534 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17535 if test "$GCC" = yes; then
17536 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17539 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17540 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17541 hardcode_action_GCJ=
17542 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17543 test -n "$runpath_var_GCJ" || \
17544 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17546 # We can hardcode non-existant directories.
17547 if test "$hardcode_direct_GCJ" != no &&
17548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17549 # have to relink, otherwise we might link with an installed library
17550 # when we should be linking with a yet-to-be-installed one
17551 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17552 test "$hardcode_minus_L_GCJ" != no; then
17553 # Linking always hardcodes the temporary library directory.
17554 hardcode_action_GCJ=relink
17556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17557 hardcode_action_GCJ=immediate
17560 # We cannot hardcode anything, or else we can only hardcode existing
17562 hardcode_action_GCJ=unsupported
17564 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17565 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17567 if test "$hardcode_action_GCJ" = relink; then
17568 # Fast installation is not supported
17569 enable_fast_install=no
17570 elif test "$shlibpath_overrides_runpath" = yes ||
17571 test "$enable_shared" = no; then
17572 # Fast installation is not necessary
17573 enable_fast_install=needless
17577 # The else clause should only fire when bootstrapping the
17578 # libtool distribution, otherwise you forgot to ship ltmain.sh
17579 # with your package, and you will get complaints that there are
17580 # no rules to generate ltmain.sh.
17581 if test -f "$ltmain"; then
17582 # See if we are running on zsh, and set the options which allow our commands through
17583 # without removal of \ escapes.
17584 if test -n "${ZSH_VERSION+set}" ; then
17585 setopt NO_GLOB_SUBST
17587 # Now quote all the things that may contain metacharacters while being
17588 # careful not to overquote the AC_SUBSTed values. We take copies of the
17589 # variables and quote the copies for generation of the libtool script.
17590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17594 deplibs_check_method reload_flag reload_cmds need_locks \
17595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17596 lt_cv_sys_global_symbol_to_c_name_address \
17597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17598 old_postinstall_cmds old_postuninstall_cmds \
17602 lt_prog_compiler_wl_GCJ \
17603 lt_prog_compiler_pic_GCJ \
17604 lt_prog_compiler_static_GCJ \
17605 lt_prog_compiler_no_builtin_flag_GCJ \
17606 export_dynamic_flag_spec_GCJ \
17607 thread_safe_flag_spec_GCJ \
17608 whole_archive_flag_spec_GCJ \
17609 enable_shared_with_static_runtimes_GCJ \
17610 old_archive_cmds_GCJ \
17611 old_archive_from_new_cmds_GCJ \
17612 predep_objects_GCJ \
17613 postdep_objects_GCJ \
17616 compiler_lib_search_path_GCJ \
17618 archive_expsym_cmds_GCJ \
17619 postinstall_cmds_GCJ \
17620 postuninstall_cmds_GCJ \
17621 old_archive_from_expsyms_cmds_GCJ \
17622 allow_undefined_flag_GCJ \
17623 no_undefined_flag_GCJ \
17624 export_symbols_cmds_GCJ \
17625 hardcode_libdir_flag_spec_GCJ \
17626 hardcode_libdir_flag_spec_ld_GCJ \
17627 hardcode_libdir_separator_GCJ \
17628 hardcode_automatic_GCJ \
17630 module_expsym_cmds_GCJ \
17631 lt_cv_prog_compiler_c_o_GCJ \
17632 exclude_expsyms_GCJ \
17633 include_expsyms_GCJ; do
17636 old_archive_cmds_GCJ | \
17637 old_archive_from_new_cmds_GCJ | \
17638 archive_cmds_GCJ | \
17639 archive_expsym_cmds_GCJ | \
17640 module_cmds_GCJ | \
17641 module_expsym_cmds_GCJ | \
17642 old_archive_from_expsyms_cmds_GCJ | \
17643 export_symbols_cmds_GCJ | \
17644 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17645 postinstall_cmds | postuninstall_cmds | \
17646 old_postinstall_cmds | old_postuninstall_cmds | \
17647 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17648 # Double-quote double-evaled strings.
17649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17658 *'\$0 --fallback-echo"')
17659 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17665 cat <<__EOF__ >> "$cfgfile"
17666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17670 # Shell to use when invoking shell scripts.
17673 # Whether or not to build shared libraries.
17674 build_libtool_libs=$enable_shared
17676 # Whether or not to build static libraries.
17677 build_old_libs=$enable_static
17679 # Whether or not to add -lc for building shared libraries.
17680 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17682 # Whether or not to disallow shared libs when runtime libs are static
17683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17685 # Whether or not to optimize for fast installation.
17686 fast_install=$enable_fast_install
17689 host_alias=$host_alias
17693 # The build system.
17694 build_alias=$build_alias
17698 # An echo program that does not interpret backslashes.
17703 AR_FLAGS=$lt_AR_FLAGS
17708 # LTCC compiler flags.
17709 LTCFLAGS=$lt_LTCFLAGS
17711 # A language-specific compiler.
17712 CC=$lt_compiler_GCJ
17714 # Is the compiler the GNU C compiler?
17720 # The linker used to build libraries.
17723 # Whether we need hard or soft links.
17726 # A BSD-compatible nm program.
17729 # A symbol stripping program
17732 # Used to examine libraries when file_magic_cmd begins "file"
17733 MAGIC_CMD=$MAGIC_CMD
17735 # Used on cygwin: DLL creation program.
17738 # Used on cygwin: object dumper.
17741 # Used on cygwin: assembler.
17744 # The name of the directory that contains temporary libtool files.
17747 # How to create reloadable object files.
17748 reload_flag=$lt_reload_flag
17749 reload_cmds=$lt_reload_cmds
17751 # How to pass a linker flag through the compiler.
17752 wl=$lt_lt_prog_compiler_wl_GCJ
17754 # Object file suffix (normally "o").
17755 objext="$ac_objext"
17757 # Old archive suffix (normally "a").
17760 # Shared library suffix (normally ".so").
17761 shrext_cmds='$shrext_cmds'
17763 # Executable file suffix (normally "").
17766 # Additional compiler flags for building library objects.
17767 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17770 # What is the maximum length of a command?
17771 max_cmd_len=$lt_cv_sys_max_cmd_len
17773 # Does compiler simultaneously support -c and -o options?
17774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17776 # Must we lock files when doing compilation?
17777 need_locks=$lt_need_locks
17779 # Do we need the lib prefix for modules?
17780 need_lib_prefix=$need_lib_prefix
17782 # Do we need a version for libraries?
17783 need_version=$need_version
17785 # Whether dlopen is supported.
17786 dlopen_support=$enable_dlopen
17788 # Whether dlopen of programs is supported.
17789 dlopen_self=$enable_dlopen_self
17791 # Whether dlopen of statically linked programs is supported.
17792 dlopen_self_static=$enable_dlopen_self_static
17794 # Compiler flag to prevent dynamic linking.
17795 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17797 # Compiler flag to turn off builtin functions.
17798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17800 # Compiler flag to allow reflexive dlopens.
17801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17803 # Compiler flag to generate shared objects directly from archives.
17804 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17806 # Compiler flag to generate thread-safe objects.
17807 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17809 # Library versioning type.
17810 version_type=$version_type
17812 # Format of library name prefix.
17813 libname_spec=$lt_libname_spec
17815 # List of archive names. First name is the real one, the rest are links.
17816 # The last name is the one that the linker finds with -lNAME.
17817 library_names_spec=$lt_library_names_spec
17819 # The coded name of the library, if different from the real name.
17820 soname_spec=$lt_soname_spec
17822 # Commands used to build and install an old-style archive.
17824 old_archive_cmds=$lt_old_archive_cmds_GCJ
17825 old_postinstall_cmds=$lt_old_postinstall_cmds
17826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17828 # Create an old-style archive from a shared archive.
17829 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17831 # Create a temporary old-style archive to link instead of a shared archive.
17832 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17834 # Commands used to build and install a shared archive.
17835 archive_cmds=$lt_archive_cmds_GCJ
17836 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17837 postinstall_cmds=$lt_postinstall_cmds
17838 postuninstall_cmds=$lt_postuninstall_cmds
17840 # Commands used to build a loadable module (assumed same as above if empty)
17841 module_cmds=$lt_module_cmds_GCJ
17842 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17844 # Commands to strip libraries.
17845 old_striplib=$lt_old_striplib
17846 striplib=$lt_striplib
17848 # Dependencies to place before the objects being linked to create a
17850 predep_objects=$lt_predep_objects_GCJ
17852 # Dependencies to place after the objects being linked to create a
17854 postdep_objects=$lt_postdep_objects_GCJ
17856 # Dependencies to place before the objects being linked to create a
17858 predeps=$lt_predeps_GCJ
17860 # Dependencies to place after the objects being linked to create a
17862 postdeps=$lt_postdeps_GCJ
17864 # The library search path used internally by the compiler when linking
17865 # a shared library.
17866 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17868 # Method to check whether dependent libraries are shared objects.
17869 deplibs_check_method=$lt_deplibs_check_method
17871 # Command to use when deplibs_check_method == file_magic.
17872 file_magic_cmd=$lt_file_magic_cmd
17874 # Flag that allows shared libraries with undefined symbols to be built.
17875 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17877 # Flag that forces no undefined symbols.
17878 no_undefined_flag=$lt_no_undefined_flag_GCJ
17880 # Commands used to finish a libtool library installation in a directory.
17881 finish_cmds=$lt_finish_cmds
17883 # Same as above, but a single script fragment to be evaled but not shown.
17884 finish_eval=$lt_finish_eval
17886 # Take the output of nm and produce a listing of raw symbols and C names.
17887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17889 # Transform the output of nm in a proper C declaration
17890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17892 # Transform the output of nm in a C name address pair
17893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17895 # This is the shared library runtime path variable.
17896 runpath_var=$runpath_var
17898 # This is the shared library path variable.
17899 shlibpath_var=$shlibpath_var
17901 # Is shlibpath searched before the hard-coded library search path?
17902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17904 # How to hardcode a shared library path into an executable.
17905 hardcode_action=$hardcode_action_GCJ
17907 # Whether we should hardcode library paths into libraries.
17908 hardcode_into_libs=$hardcode_into_libs
17910 # Flag to hardcode \$libdir into a binary during linking.
17911 # This must work even if \$libdir does not exist.
17912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17914 # If ld is used when linking, flag to hardcode \$libdir into
17915 # a binary during linking. This must work even if \$libdir does
17917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17919 # Whether we need a single -rpath flag with a separated argument.
17920 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17922 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17923 # resulting binary.
17924 hardcode_direct=$hardcode_direct_GCJ
17926 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17927 # resulting binary.
17928 hardcode_minus_L=$hardcode_minus_L_GCJ
17930 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17931 # the resulting binary.
17932 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17934 # Set to yes if building a shared library automatically hardcodes DIR into the library
17935 # and all subsequent libraries and executables linked against it.
17936 hardcode_automatic=$hardcode_automatic_GCJ
17938 # Variables whose values should be saved in libtool wrapper scripts and
17939 # restored at relink time.
17940 variables_saved_for_relink="$variables_saved_for_relink"
17942 # Whether libtool must link a program against all its dependency libraries.
17943 link_all_deplibs=$link_all_deplibs_GCJ
17945 # Compile-time system search path for libraries
17946 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17948 # Run-time system search path for libraries
17949 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17951 # Fix the shell variable \$srcfile for the compiler.
17952 fix_srcfile_path="$fix_srcfile_path_GCJ"
17954 # Set to yes if exported symbols are required.
17955 always_export_symbols=$always_export_symbols_GCJ
17957 # The commands to list exported symbols.
17958 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17960 # The commands to extract the exported symbol list from a shared archive.
17961 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17963 # Symbols that should not be listed in the preloaded symbols.
17964 exclude_expsyms=$lt_exclude_expsyms_GCJ
17966 # Symbols that must always be exported.
17967 include_expsyms=$lt_include_expsyms_GCJ
17969 # ### END LIBTOOL TAG CONFIG: $tagname
17975 # If there is no Makefile yet, we rely on a make rule to execute
17976 # `config.status --recheck' to rerun these tests and create the
17977 # libtool script then.
17978 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17979 if test -f "$ltmain_in"; then
17980 test -f Makefile && make "$ltmain"
17986 ac_cpp='$CPP $CPPFLAGS'
17987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18002 # Source file extension for RC test sources.
18005 # Object file extension for compiled RC test sources.
18009 # Code to be used in simple compile tests
18010 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18012 # Code to be used in simple link tests
18013 lt_simple_link_test_code="$lt_simple_compile_test_code"
18015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18017 # If no C compiler was specified, use CC.
18020 # If no C compiler flags were specified, use CFLAGS.
18021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18023 # Allow CC to be a program name with arguments.
18027 # save warnings/boilerplate of simple test code
18028 ac_outfile=conftest.$ac_objext
18029 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18030 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18031 _lt_compiler_boilerplate=`cat conftest.err`
18034 ac_outfile=conftest.$ac_objext
18035 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18036 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18037 _lt_linker_boilerplate=`cat conftest.err`
18041 # Allow CC to be a program name with arguments.
18046 for cc_temp in $compiler""; do
18048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18054 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18056 lt_cv_prog_compiler_c_o_RC=yes
18058 # The else clause should only fire when bootstrapping the
18059 # libtool distribution, otherwise you forgot to ship ltmain.sh
18060 # with your package, and you will get complaints that there are
18061 # no rules to generate ltmain.sh.
18062 if test -f "$ltmain"; then
18063 # See if we are running on zsh, and set the options which allow our commands through
18064 # without removal of \ escapes.
18065 if test -n "${ZSH_VERSION+set}" ; then
18066 setopt NO_GLOB_SUBST
18068 # Now quote all the things that may contain metacharacters while being
18069 # careful not to overquote the AC_SUBSTed values. We take copies of the
18070 # variables and quote the copies for generation of the libtool script.
18071 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18075 deplibs_check_method reload_flag reload_cmds need_locks \
18076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18077 lt_cv_sys_global_symbol_to_c_name_address \
18078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18079 old_postinstall_cmds old_postuninstall_cmds \
18083 lt_prog_compiler_wl_RC \
18084 lt_prog_compiler_pic_RC \
18085 lt_prog_compiler_static_RC \
18086 lt_prog_compiler_no_builtin_flag_RC \
18087 export_dynamic_flag_spec_RC \
18088 thread_safe_flag_spec_RC \
18089 whole_archive_flag_spec_RC \
18090 enable_shared_with_static_runtimes_RC \
18091 old_archive_cmds_RC \
18092 old_archive_from_new_cmds_RC \
18093 predep_objects_RC \
18094 postdep_objects_RC \
18097 compiler_lib_search_path_RC \
18099 archive_expsym_cmds_RC \
18100 postinstall_cmds_RC \
18101 postuninstall_cmds_RC \
18102 old_archive_from_expsyms_cmds_RC \
18103 allow_undefined_flag_RC \
18104 no_undefined_flag_RC \
18105 export_symbols_cmds_RC \
18106 hardcode_libdir_flag_spec_RC \
18107 hardcode_libdir_flag_spec_ld_RC \
18108 hardcode_libdir_separator_RC \
18109 hardcode_automatic_RC \
18111 module_expsym_cmds_RC \
18112 lt_cv_prog_compiler_c_o_RC \
18113 exclude_expsyms_RC \
18114 include_expsyms_RC; do
18117 old_archive_cmds_RC | \
18118 old_archive_from_new_cmds_RC | \
18119 archive_cmds_RC | \
18120 archive_expsym_cmds_RC | \
18122 module_expsym_cmds_RC | \
18123 old_archive_from_expsyms_cmds_RC | \
18124 export_symbols_cmds_RC | \
18125 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18126 postinstall_cmds | postuninstall_cmds | \
18127 old_postinstall_cmds | old_postuninstall_cmds | \
18128 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18129 # Double-quote double-evaled strings.
18130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18139 *'\$0 --fallback-echo"')
18140 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18146 cat <<__EOF__ >> "$cfgfile"
18147 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18149 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18151 # Shell to use when invoking shell scripts.
18154 # Whether or not to build shared libraries.
18155 build_libtool_libs=$enable_shared
18157 # Whether or not to build static libraries.
18158 build_old_libs=$enable_static
18160 # Whether or not to add -lc for building shared libraries.
18161 build_libtool_need_lc=$archive_cmds_need_lc_RC
18163 # Whether or not to disallow shared libs when runtime libs are static
18164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18166 # Whether or not to optimize for fast installation.
18167 fast_install=$enable_fast_install
18170 host_alias=$host_alias
18174 # The build system.
18175 build_alias=$build_alias
18179 # An echo program that does not interpret backslashes.
18184 AR_FLAGS=$lt_AR_FLAGS
18189 # LTCC compiler flags.
18190 LTCFLAGS=$lt_LTCFLAGS
18192 # A language-specific compiler.
18195 # Is the compiler the GNU C compiler?
18201 # The linker used to build libraries.
18204 # Whether we need hard or soft links.
18207 # A BSD-compatible nm program.
18210 # A symbol stripping program
18213 # Used to examine libraries when file_magic_cmd begins "file"
18214 MAGIC_CMD=$MAGIC_CMD
18216 # Used on cygwin: DLL creation program.
18219 # Used on cygwin: object dumper.
18222 # Used on cygwin: assembler.
18225 # The name of the directory that contains temporary libtool files.
18228 # How to create reloadable object files.
18229 reload_flag=$lt_reload_flag
18230 reload_cmds=$lt_reload_cmds
18232 # How to pass a linker flag through the compiler.
18233 wl=$lt_lt_prog_compiler_wl_RC
18235 # Object file suffix (normally "o").
18236 objext="$ac_objext"
18238 # Old archive suffix (normally "a").
18241 # Shared library suffix (normally ".so").
18242 shrext_cmds='$shrext_cmds'
18244 # Executable file suffix (normally "").
18247 # Additional compiler flags for building library objects.
18248 pic_flag=$lt_lt_prog_compiler_pic_RC
18251 # What is the maximum length of a command?
18252 max_cmd_len=$lt_cv_sys_max_cmd_len
18254 # Does compiler simultaneously support -c and -o options?
18255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18257 # Must we lock files when doing compilation?
18258 need_locks=$lt_need_locks
18260 # Do we need the lib prefix for modules?
18261 need_lib_prefix=$need_lib_prefix
18263 # Do we need a version for libraries?
18264 need_version=$need_version
18266 # Whether dlopen is supported.
18267 dlopen_support=$enable_dlopen
18269 # Whether dlopen of programs is supported.
18270 dlopen_self=$enable_dlopen_self
18272 # Whether dlopen of statically linked programs is supported.
18273 dlopen_self_static=$enable_dlopen_self_static
18275 # Compiler flag to prevent dynamic linking.
18276 link_static_flag=$lt_lt_prog_compiler_static_RC
18278 # Compiler flag to turn off builtin functions.
18279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18281 # Compiler flag to allow reflexive dlopens.
18282 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18284 # Compiler flag to generate shared objects directly from archives.
18285 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18287 # Compiler flag to generate thread-safe objects.
18288 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18290 # Library versioning type.
18291 version_type=$version_type
18293 # Format of library name prefix.
18294 libname_spec=$lt_libname_spec
18296 # List of archive names. First name is the real one, the rest are links.
18297 # The last name is the one that the linker finds with -lNAME.
18298 library_names_spec=$lt_library_names_spec
18300 # The coded name of the library, if different from the real name.
18301 soname_spec=$lt_soname_spec
18303 # Commands used to build and install an old-style archive.
18305 old_archive_cmds=$lt_old_archive_cmds_RC
18306 old_postinstall_cmds=$lt_old_postinstall_cmds
18307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18309 # Create an old-style archive from a shared archive.
18310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18312 # Create a temporary old-style archive to link instead of a shared archive.
18313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18315 # Commands used to build and install a shared archive.
18316 archive_cmds=$lt_archive_cmds_RC
18317 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18318 postinstall_cmds=$lt_postinstall_cmds
18319 postuninstall_cmds=$lt_postuninstall_cmds
18321 # Commands used to build a loadable module (assumed same as above if empty)
18322 module_cmds=$lt_module_cmds_RC
18323 module_expsym_cmds=$lt_module_expsym_cmds_RC
18325 # Commands to strip libraries.
18326 old_striplib=$lt_old_striplib
18327 striplib=$lt_striplib
18329 # Dependencies to place before the objects being linked to create a
18331 predep_objects=$lt_predep_objects_RC
18333 # Dependencies to place after the objects being linked to create a
18335 postdep_objects=$lt_postdep_objects_RC
18337 # Dependencies to place before the objects being linked to create a
18339 predeps=$lt_predeps_RC
18341 # Dependencies to place after the objects being linked to create a
18343 postdeps=$lt_postdeps_RC
18345 # The library search path used internally by the compiler when linking
18346 # a shared library.
18347 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18349 # Method to check whether dependent libraries are shared objects.
18350 deplibs_check_method=$lt_deplibs_check_method
18352 # Command to use when deplibs_check_method == file_magic.
18353 file_magic_cmd=$lt_file_magic_cmd
18355 # Flag that allows shared libraries with undefined symbols to be built.
18356 allow_undefined_flag=$lt_allow_undefined_flag_RC
18358 # Flag that forces no undefined symbols.
18359 no_undefined_flag=$lt_no_undefined_flag_RC
18361 # Commands used to finish a libtool library installation in a directory.
18362 finish_cmds=$lt_finish_cmds
18364 # Same as above, but a single script fragment to be evaled but not shown.
18365 finish_eval=$lt_finish_eval
18367 # Take the output of nm and produce a listing of raw symbols and C names.
18368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18370 # Transform the output of nm in a proper C declaration
18371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18373 # Transform the output of nm in a C name address pair
18374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18376 # This is the shared library runtime path variable.
18377 runpath_var=$runpath_var
18379 # This is the shared library path variable.
18380 shlibpath_var=$shlibpath_var
18382 # Is shlibpath searched before the hard-coded library search path?
18383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18385 # How to hardcode a shared library path into an executable.
18386 hardcode_action=$hardcode_action_RC
18388 # Whether we should hardcode library paths into libraries.
18389 hardcode_into_libs=$hardcode_into_libs
18391 # Flag to hardcode \$libdir into a binary during linking.
18392 # This must work even if \$libdir does not exist.
18393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18395 # If ld is used when linking, flag to hardcode \$libdir into
18396 # a binary during linking. This must work even if \$libdir does
18398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18400 # Whether we need a single -rpath flag with a separated argument.
18401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18403 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18404 # resulting binary.
18405 hardcode_direct=$hardcode_direct_RC
18407 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18408 # resulting binary.
18409 hardcode_minus_L=$hardcode_minus_L_RC
18411 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18412 # the resulting binary.
18413 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18415 # Set to yes if building a shared library automatically hardcodes DIR into the library
18416 # and all subsequent libraries and executables linked against it.
18417 hardcode_automatic=$hardcode_automatic_RC
18419 # Variables whose values should be saved in libtool wrapper scripts and
18420 # restored at relink time.
18421 variables_saved_for_relink="$variables_saved_for_relink"
18423 # Whether libtool must link a program against all its dependency libraries.
18424 link_all_deplibs=$link_all_deplibs_RC
18426 # Compile-time system search path for libraries
18427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18429 # Run-time system search path for libraries
18430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18432 # Fix the shell variable \$srcfile for the compiler.
18433 fix_srcfile_path="$fix_srcfile_path_RC"
18435 # Set to yes if exported symbols are required.
18436 always_export_symbols=$always_export_symbols_RC
18438 # The commands to list exported symbols.
18439 export_symbols_cmds=$lt_export_symbols_cmds_RC
18441 # The commands to extract the exported symbol list from a shared archive.
18442 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18444 # Symbols that should not be listed in the preloaded symbols.
18445 exclude_expsyms=$lt_exclude_expsyms_RC
18447 # Symbols that must always be exported.
18448 include_expsyms=$lt_include_expsyms_RC
18450 # ### END LIBTOOL TAG CONFIG: $tagname
18456 # If there is no Makefile yet, we rely on a make rule to execute
18457 # `config.status --recheck' to rerun these tests and create the
18458 # libtool script then.
18459 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18460 if test -f "$ltmain_in"; then
18461 test -f Makefile && make "$ltmain"
18467 ac_cpp='$CPP $CPPFLAGS'
18468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18477 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18478 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18479 { (exit 1); exit 1; }; }
18483 # Append the new tag name to the list of available tags.
18484 if test -n "$tagname" ; then
18485 available_tags="$available_tags $tagname"
18491 # Now substitute the updated list of available tags.
18492 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18493 mv "${ofile}T" "$ofile"
18497 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18498 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18499 { (exit 1); exit 1; }; }
18505 # This can be used to rebuild libtool when needed
18506 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18508 # Always use our own libtool.
18509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18511 # Prevent multiple expansion
18534 #AC_CONFIG_HEADERS(sysdep.h)
18538 #AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
18539 #AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
18542 #AM_INIT_AUTOMAKE(gettext, 0.14.5)
18546 # Find a good install program. We prefer a C program (faster),
18547 # so one script is as good as another. But avoid the broken or
18548 # incompatible versions:
18549 # SysV /etc/install, /usr/sbin/install
18550 # SunOS /usr/etc/install
18551 # IRIX /sbin/install
18553 # AmigaOS /C/install, which installs bootblocks on floppy discs
18554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18557 # OS/2's system install, which has a completely different semantic
18558 # ./install, which can be erroneously created by make from ./install.sh.
18559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18561 if test -z "$INSTALL"; then
18562 if test "${ac_cv_path_install+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18566 for as_dir in $PATH
18569 test -z "$as_dir" && as_dir=.
18570 # Account for people who put trailing slashes in PATH elements.
18572 ./ | .// | /cC/* | \
18573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18577 # OSF1 and SCO ODT 3.0 have their own names for install.
18578 # Don't use installbsd from OSF since it installs stuff as root
18580 for ac_prog in ginstall scoinst install; do
18581 for ac_exec_ext in '' $ac_executable_extensions; do
18582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18583 if test $ac_prog = install &&
18584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18585 # AIX install. It has an incompatible calling convention.
18587 elif test $ac_prog = install &&
18588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18589 # program-specific install script used by HP pwplus--don't use.
18592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18604 if test "${ac_cv_path_install+set}" = set; then
18605 INSTALL=$ac_cv_path_install
18607 # As a last resort, use the slow shell script. We don't cache a
18608 # path for INSTALL within a source directory, because that will
18609 # break other packages using the cache if that directory is
18610 # removed, or if the path is relative.
18611 INSTALL=$ac_install_sh
18614 echo "$as_me:$LINENO: result: $INSTALL" >&5
18615 echo "${ECHO_T}$INSTALL" >&6
18617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18618 # It thinks the first close brace ends the variable substitution.
18619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18625 # Extract the first word of "autoconf", so it can be a program name with args.
18626 set dummy autoconf; ac_word=$2
18627 echo "$as_me:$LINENO: checking for $ac_word" >&5
18628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18629 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18632 if test -n "$AUTOCONF"; then
18633 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
18635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18636 for as_dir in $PATH
18639 test -z "$as_dir" && as_dir=.
18640 for ac_exec_ext in '' $ac_executable_extensions; do
18641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18642 ac_cv_prog_AUTOCONF=""
18643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18651 AUTOCONF=$ac_cv_prog_AUTOCONF
18652 if test -n "$AUTOCONF"; then
18653 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
18654 echo "${ECHO_T}$AUTOCONF" >&6
18656 echo "$as_me:$LINENO: result: no" >&5
18657 echo "${ECHO_T}no" >&6
18660 # Extract the first word of "sed", so it can be a program name with args.
18661 set dummy sed; ac_word=$2
18662 echo "$as_me:$LINENO: checking for $ac_word" >&5
18663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18664 if test "${ac_cv_prog_SED+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18667 if test -n "$SED"; then
18668 ac_cv_prog_SED="$SED" # Let the user override the test.
18670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18671 for as_dir in $PATH
18674 test -z "$as_dir" && as_dir=.
18675 for ac_exec_ext in '' $ac_executable_extensions; do
18676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18677 ac_cv_prog_SED="sed"
18678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18684 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
18687 SED=$ac_cv_prog_SED
18688 if test -n "$SED"; then
18689 echo "$as_me:$LINENO: result: $SED" >&5
18690 echo "${ECHO_T}$SED" >&6
18692 echo "$as_me:$LINENO: result: no" >&5
18693 echo "${ECHO_T}no" >&6
18698 #AC_ARG_WITH(with_libical, [ --with-libical use libical calendaring library])
18699 #AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present])
18700 #AC_ARG_WITH(with_newt, [ --with-newt use newt window library])
18702 # [ --with-ssl=PATH Specify path to OpenSSL installation ],
18704 # if test "x$withval" != "xno" ; then
18705 # tryssldir=$withval
18709 #AC_DEFINE([HAVE_ICAL], [ --with-libical use libical calendaring library])
18711 cat >>confdefs.h <<\_ACEOF
18712 @%:@define HAVE_OPENSSL 1
18717 PTHREAD_DEFS=-D_REENTRANT
18720 test -z "$CC" && CC=cc
18725 PTHREAD_DEFS=-D_THREAD_SAFE
18728 PTHREAD_DEFS='-D_REENTRANT -D_PTHREADS'
18734 ac_cpp='$CPP $CPPFLAGS'
18735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18738 if test -n "$ac_tool_prefix"; then
18739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18741 echo "$as_me:$LINENO: checking for $ac_word" >&5
18742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18743 if test "${ac_cv_prog_CC+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 if test -n "$CC"; then
18747 ac_cv_prog_CC="$CC" # Let the user override the test.
18749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18750 for as_dir in $PATH
18753 test -z "$as_dir" && as_dir=.
18754 for ac_exec_ext in '' $ac_executable_extensions; do
18755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18766 if test -n "$CC"; then
18767 echo "$as_me:$LINENO: result: $CC" >&5
18768 echo "${ECHO_T}$CC" >&6
18770 echo "$as_me:$LINENO: result: no" >&5
18771 echo "${ECHO_T}no" >&6
18775 if test -z "$ac_cv_prog_CC"; then
18777 # Extract the first word of "gcc", so it can be a program name with args.
18778 set dummy gcc; ac_word=$2
18779 echo "$as_me:$LINENO: checking for $ac_word" >&5
18780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 if test -n "$ac_ct_CC"; then
18785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788 for as_dir in $PATH
18791 test -z "$as_dir" && as_dir=.
18792 for ac_exec_ext in '' $ac_executable_extensions; do
18793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794 ac_cv_prog_ac_ct_CC="gcc"
18795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18804 if test -n "$ac_ct_CC"; then
18805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18806 echo "${ECHO_T}$ac_ct_CC" >&6
18808 echo "$as_me:$LINENO: result: no" >&5
18809 echo "${ECHO_T}no" >&6
18814 CC="$ac_cv_prog_CC"
18817 if test -z "$CC"; then
18818 if test -n "$ac_tool_prefix"; then
18819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18820 set dummy ${ac_tool_prefix}cc; ac_word=$2
18821 echo "$as_me:$LINENO: checking for $ac_word" >&5
18822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18823 if test "${ac_cv_prog_CC+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18826 if test -n "$CC"; then
18827 ac_cv_prog_CC="$CC" # Let the user override the test.
18829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18830 for as_dir in $PATH
18833 test -z "$as_dir" && as_dir=.
18834 for ac_exec_ext in '' $ac_executable_extensions; do
18835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18836 ac_cv_prog_CC="${ac_tool_prefix}cc"
18837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18846 if test -n "$CC"; then
18847 echo "$as_me:$LINENO: result: $CC" >&5
18848 echo "${ECHO_T}$CC" >&6
18850 echo "$as_me:$LINENO: result: no" >&5
18851 echo "${ECHO_T}no" >&6
18855 if test -z "$ac_cv_prog_CC"; then
18857 # Extract the first word of "cc", so it can be a program name with args.
18858 set dummy cc; ac_word=$2
18859 echo "$as_me:$LINENO: checking for $ac_word" >&5
18860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 if test -n "$ac_ct_CC"; then
18865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868 for as_dir in $PATH
18871 test -z "$as_dir" && as_dir=.
18872 for ac_exec_ext in '' $ac_executable_extensions; do
18873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18874 ac_cv_prog_ac_ct_CC="cc"
18875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18884 if test -n "$ac_ct_CC"; then
18885 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18886 echo "${ECHO_T}$ac_ct_CC" >&6
18888 echo "$as_me:$LINENO: result: no" >&5
18889 echo "${ECHO_T}no" >&6
18894 CC="$ac_cv_prog_CC"
18898 if test -z "$CC"; then
18899 # Extract the first word of "cc", so it can be a program name with args.
18900 set dummy cc; ac_word=$2
18901 echo "$as_me:$LINENO: checking for $ac_word" >&5
18902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18903 if test "${ac_cv_prog_CC+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 if test -n "$CC"; then
18907 ac_cv_prog_CC="$CC" # Let the user override the test.
18909 ac_prog_rejected=no
18910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18911 for as_dir in $PATH
18914 test -z "$as_dir" && as_dir=.
18915 for ac_exec_ext in '' $ac_executable_extensions; do
18916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18918 ac_prog_rejected=yes
18922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18928 if test $ac_prog_rejected = yes; then
18929 # We found a bogon in the path, so make sure we never use it.
18930 set dummy $ac_cv_prog_CC
18932 if test $@%:@ != 0; then
18933 # We chose a different compiler from the bogus one.
18934 # However, it has the same basename, so the bogon will be chosen
18935 # first if we set CC to just the basename; use the full file name.
18937 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18943 if test -n "$CC"; then
18944 echo "$as_me:$LINENO: result: $CC" >&5
18945 echo "${ECHO_T}$CC" >&6
18947 echo "$as_me:$LINENO: result: no" >&5
18948 echo "${ECHO_T}no" >&6
18952 if test -z "$CC"; then
18953 if test -n "$ac_tool_prefix"; then
18956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18958 echo "$as_me:$LINENO: checking for $ac_word" >&5
18959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18960 if test "${ac_cv_prog_CC+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 if test -n "$CC"; then
18964 ac_cv_prog_CC="$CC" # Let the user override the test.
18966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18967 for as_dir in $PATH
18970 test -z "$as_dir" && as_dir=.
18971 for ac_exec_ext in '' $ac_executable_extensions; do
18972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18983 if test -n "$CC"; then
18984 echo "$as_me:$LINENO: result: $CC" >&5
18985 echo "${ECHO_T}$CC" >&6
18987 echo "$as_me:$LINENO: result: no" >&5
18988 echo "${ECHO_T}no" >&6
18991 test -n "$CC" && break
18994 if test -z "$CC"; then
18998 # Extract the first word of "$ac_prog", so it can be a program name with args.
18999 set dummy $ac_prog; ac_word=$2
19000 echo "$as_me:$LINENO: checking for $ac_word" >&5
19001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 if test -n "$ac_ct_CC"; then
19006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19012 test -z "$as_dir" && as_dir=.
19013 for ac_exec_ext in '' $ac_executable_extensions; do
19014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19015 ac_cv_prog_ac_ct_CC="$ac_prog"
19016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19025 if test -n "$ac_ct_CC"; then
19026 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19027 echo "${ECHO_T}$ac_ct_CC" >&6
19029 echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6
19033 test -n "$ac_ct_CC" && break
19042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19043 See \`config.log' for more details." >&5
19044 echo "$as_me: error: no acceptable C compiler found in \$PATH
19045 See \`config.log' for more details." >&2;}
19046 { (exit 1); exit 1; }; }
19048 # Provide some information about the compiler.
19049 echo "$as_me:$LINENO:" \
19050 "checking for C compiler version" >&5
19051 ac_compiler=`set X $ac_compile; echo $2`
19052 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19053 (eval $ac_compiler --version </dev/null >&5) 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }
19057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19058 (eval $ac_compiler -v </dev/null >&5) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }
19062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19063 (eval $ac_compiler -V </dev/null >&5) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }
19068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19070 if test "${ac_cv_c_compiler_gnu+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. */
19091 rm -f conftest.$ac_objext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093 (eval $ac_compile) 2>conftest.er1
19095 grep -v '^ *+' conftest.er1 >conftest.err
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try='test -s conftest.$ac_objext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 ac_compiler_gnu=yes
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19126 GCC=`test $ac_compiler_gnu = yes && echo yes`
19127 ac_test_CFLAGS=${CFLAGS+set}
19128 ac_save_CFLAGS=$CFLAGS
19130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19132 if test "${ac_cv_prog_cc_g+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19150 rm -f conftest.$ac_objext
19151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19152 (eval $ac_compile) 2>conftest.er1
19154 grep -v '^ *+' conftest.er1 >conftest.err
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
19159 { ac_try='test -z "$ac_c_werror_flag"
19160 || test ! -s conftest.err'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; } &&
19166 { ac_try='test -s conftest.$ac_objext'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_cv_prog_cc_g=yes
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19183 if test "$ac_test_CFLAGS" = set; then
19184 CFLAGS=$ac_save_CFLAGS
19185 elif test $ac_cv_prog_cc_g = yes; then
19186 if test "$GCC" = yes; then
19192 if test "$GCC" = yes; then
19198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 ac_cv_prog_cc_stdc=no
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 #include <stdarg.h>
19213 #include <sys/types.h>
19214 #include <sys/stat.h>
19215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19216 struct buf { int x; };
19217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19218 static char *e (p, i)
19224 static char *f (char * (*g) (char **, int), char **p, ...)
19229 s = g (p, va_arg (v,int));
19234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19235 function prototypes and stuff, but not '\xHH' hex character constants.
19236 These don't provoke an error unfortunately, instead are silently treated
19237 as 'x'. The following induces an error, until -std1 is added to get
19238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19239 array size at least. It's necessary to write '\x00'==0 to get something
19240 that's true only with -std1. */
19241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19243 int test (int i, double x);
19244 struct s1 {int (*f) (int a);};
19245 struct s2 {int (*f) (double a);};
19246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19257 # Don't try gcc -ansi; that turns off useful extensions and
19258 # breaks some systems' header files.
19259 # AIX -qlanglvl=ansi
19260 # Ultrix and OSF/1 -std1
19261 # HP-UX 10.20 and later -Ae
19262 # HP-UX older versions -Aa -D_HPUX_SOURCE
19263 # SVR4 -Xc -D__EXTENSIONS__
19264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19266 CC="$ac_save_CC $ac_arg"
19267 rm -f conftest.$ac_objext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19269 (eval $ac_compile) 2>conftest.er1
19271 grep -v '^ *+' conftest.er1 >conftest.err
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try='test -z "$ac_c_werror_flag"
19277 || test ! -s conftest.err'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest.$ac_objext'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_prog_cc_stdc=$ac_arg
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19296 rm -f conftest.err conftest.$ac_objext
19298 rm -f conftest.$ac_ext conftest.$ac_objext
19303 case "x$ac_cv_prog_cc_stdc" in
19305 echo "$as_me:$LINENO: result: none needed" >&5
19306 echo "${ECHO_T}none needed" >&6 ;;
19308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19310 CC="$CC $ac_cv_prog_cc_stdc" ;;
19313 # Some people use a C++ compiler to compile C. Since we use `exit',
19314 # in C++ we need to declare it. In case someone uses the same compiler
19315 # for both compiling C and C++ we need to have the C++ compiler decide
19316 # the declaration of exit, since it's the most demanding environment.
19317 cat >conftest.$ac_ext <<_ACEOF
19318 @%:@ifndef __cplusplus
19322 rm -f conftest.$ac_objext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19324 (eval $ac_compile) 2>conftest.er1
19326 grep -v '^ *+' conftest.er1 >conftest.err
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_c_werror_flag"
19332 || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 for ac_declaration in \
19346 'extern "C" void std::exit (int) throw (); using std::exit;' \
19347 'extern "C" void std::exit (int); using std::exit;' \
19348 'extern "C" void exit (int) throw ();' \
19349 'extern "C" void exit (int);' \
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19359 @%:@include <stdlib.h>
19368 rm -f conftest.$ac_objext
19369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19370 (eval $ac_compile) 2>conftest.er1
19372 grep -v '^ *+' conftest.er1 >conftest.err
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_c_werror_flag"
19378 || test ! -s conftest.err'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; } &&
19384 { ac_try='test -s conftest.$ac_objext'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19392 echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19413 rm -f conftest.$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag"
19423 || test ! -s conftest.err'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest.$ac_objext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19444 if test -n "$ac_declaration"; then
19445 echo '#ifdef __cplusplus' >>confdefs.h
19446 echo $ac_declaration >>confdefs.h
19447 echo '#endif' >>confdefs.h
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19457 ac_cpp='$CPP $CPPFLAGS'
19458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19462 depcc="$CC" am_compiler_list=
19464 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19465 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19466 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19470 # We make a subdir and do the tests there. Otherwise we can end up
19471 # making bogus files that we don't know about and never remove. For
19472 # instance it was reported that on HP-UX the gcc test will end up
19473 # making a dummy file named `D' -- because `-MD' means `put the output
19476 # Copy depcomp to subdir because otherwise we won't find it if we're
19477 # using a relative directory.
19478 cp "$am_depcomp" conftest.dir
19480 # We will build objects and dependencies in a subdirectory because
19481 # it helps to detect inapplicable dependency modes. For instance
19482 # both Tru64's cc and ICC support -MD to output dependencies as a
19483 # side effect of compilation, but ICC will put the dependencies in
19484 # the current directory while Tru64 will put them in the object
19488 am_cv_CC_dependencies_compiler_type=none
19489 if test "$am_compiler_list" = ""; then
19490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19492 for depmode in $am_compiler_list; do
19493 # Setup a source with many dependencies, because some compilers
19494 # like to wrap large dependency lists on column 80 (with \), and
19495 # we should not choose a depcomp mode which is confused by this.
19497 # We need to recreate these files for each test, as the compiler may
19498 # overwrite some of them when testing with obscure command lines.
19499 # This happens at least with the AIX C compiler.
19501 for i in 1 2 3 4 5 6; do
19502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19503 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19504 # Solaris 8's {/usr,}/bin/sh.
19505 touch sub/conftst$i.h
19507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19511 # after this tag, mechanisms are not by side-effect, so they'll
19512 # only be used when explicitly requested
19513 if test "x$enable_dependency_tracking" = xyes; then
19521 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19522 # mode. It turns out that the SunPro C++ compiler does not properly
19523 # handle `-M -o', and we need to detect this.
19524 if depmode=$depmode \
19525 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19527 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19528 >/dev/null 2>conftest.err &&
19529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19530 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19532 # icc doesn't choke on unknown options, it will just issue warnings
19533 # or remarks (even with -Werror). So we grep stderr for any message
19534 # that says an option was ignored or not supported.
19535 # When given -MP, icc 7.0 and 7.1 complain thusly:
19536 # icc: Command line warning: ignoring option '-M'; no argument required
19537 # The diagnosis changed in icc 8.0:
19538 # icc: Command line remark: option '-MP' not supported
19539 if (grep 'ignoring option' conftest.err ||
19540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19541 am_cv_CC_dependencies_compiler_type=$depmode
19548 rm -rf conftest.dir
19550 am_cv_CC_dependencies_compiler_type=none
19554 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19555 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19561 test "x$enable_dependency_tracking" != xno \
19562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19563 am__fastdepCC_TRUE=
19564 am__fastdepCC_FALSE='#'
19566 am__fastdepCC_TRUE='#'
19567 am__fastdepCC_FALSE=
19572 if test "$GCC" = yes; then
19575 CFLAGS="$CFLAGS -Wall -Wno-char-subscripts"
19578 CFLAGS="$CFLAGS -Wall"
19583 # missing_dir=`cd $ac_aux_dir && pwd`
19584 # AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
19586 if test "$LIBS" != -pthread; then
19588 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19589 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19590 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-lpthread $LIBS"
19595 cat >conftest.$ac_ext <<_ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19602 /* Override any gcc2 internal prototype to avoid an error. */
19606 /* We use char because int might match the return type of a gcc2
19607 builtin and then its argument prototype would still apply. */
19608 char pthread_create ();
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619 (eval $ac_link) 2>conftest.er1
19621 grep -v '^ *+' conftest.er1 >conftest.err
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } &&
19626 { ac_try='test -z "$ac_c_werror_flag"
19627 || test ! -s conftest.err'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest$ac_exeext'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 ac_cv_lib_pthread_pthread_create=yes
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19644 ac_cv_lib_pthread_pthread_create=no
19646 rm -f conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19650 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19651 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19652 if test $ac_cv_lib_pthread_pthread_create = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 @%:@define HAVE_LIBPTHREAD 1
19657 LIBS="-lpthread $LIBS"
19662 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
19663 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
19664 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
19665 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-lpthreads $LIBS"
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19676 /* Override any gcc2 internal prototype to avoid an error. */
19680 /* We use char because int might match the return type of a gcc2
19681 builtin and then its argument prototype would still apply. */
19682 char pthread_create ();
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19693 (eval $ac_link) 2>conftest.er1
19695 grep -v '^ *+' conftest.er1 >conftest.err
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try='test -z "$ac_c_werror_flag"
19701 || test ! -s conftest.err'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 ac_cv_lib_pthreads_pthread_create=yes
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_lib_pthreads_pthread_create=no
19720 rm -f conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
19725 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
19726 if test $ac_cv_lib_pthreads_pthread_create = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728 @%:@define HAVE_LIBPTHREADS 1
19731 LIBS="-lpthreads $LIBS"
19736 echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5
19737 echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6
19738 if test "${ac_cv_lib_iconv_libiconv+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-liconv $LIBS"
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19750 /* Override any gcc2 internal prototype to avoid an error. */
19754 /* We use char because int might match the return type of a gcc2
19755 builtin and then its argument prototype would still apply. */
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19767 (eval $ac_link) 2>conftest.er1
19769 grep -v '^ *+' conftest.er1 >conftest.err
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try='test -z "$ac_c_werror_flag"
19775 || test ! -s conftest.err'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; } &&
19781 { ac_try='test -s conftest$ac_exeext'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_cv_lib_iconv_libiconv=yes
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_lib_iconv_libiconv=no
19794 rm -f conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19798 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5
19799 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6
19800 if test $ac_cv_lib_iconv_libiconv = yes; then
19801 LIBS="$LIBS -liconv"
19804 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
19805 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
19806 if test "${ac_cv_search_gethostbyname+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 ac_func_search_save_LIBS=$LIBS
19810 ac_cv_search_gethostbyname=no
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19818 /* Override any gcc2 internal prototype to avoid an error. */
19822 /* We use char because int might match the return type of a gcc2
19823 builtin and then its argument prototype would still apply. */
19824 char gethostbyname ();
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19835 (eval $ac_link) 2>conftest.er1
19837 grep -v '^ *+' conftest.er1 >conftest.err
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest$ac_exeext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_search_gethostbyname="none required"
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19861 rm -f conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
19863 if test "$ac_cv_search_gethostbyname" = no; then
19864 for ac_lib in nsl; do
19865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19873 /* Override any gcc2 internal prototype to avoid an error. */
19877 /* We use char because int might match the return type of a gcc2
19878 builtin and then its argument prototype would still apply. */
19879 char gethostbyname ();
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19890 (eval $ac_link) 2>conftest.er1
19892 grep -v '^ *+' conftest.er1 >conftest.err
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } &&
19897 { ac_try='test -z "$ac_c_werror_flag"
19898 || test ! -s conftest.err'
19899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900 (eval $ac_try) 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest$ac_exeext'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 ac_cv_search_gethostbyname="-l$ac_lib"
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19917 rm -f conftest.err conftest.$ac_objext \
19918 conftest$ac_exeext conftest.$ac_ext
19921 LIBS=$ac_func_search_save_LIBS
19923 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
19924 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
19925 if test "$ac_cv_search_gethostbyname" != no; then
19926 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
19930 echo "$as_me:$LINENO: checking for library containing connect" >&5
19931 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
19932 if test "${ac_cv_search_connect+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 ac_func_search_save_LIBS=$LIBS
19936 ac_cv_search_connect=no
19937 cat >conftest.$ac_ext <<_ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19944 /* Override any gcc2 internal prototype to avoid an error. */
19948 /* We use char because int might match the return type of a gcc2
19949 builtin and then its argument prototype would still apply. */
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19961 (eval $ac_link) 2>conftest.er1
19963 grep -v '^ *+' conftest.er1 >conftest.err
19965 cat conftest.err >&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } &&
19968 { ac_try='test -z "$ac_c_werror_flag"
19969 || test ! -s conftest.err'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; } &&
19975 { ac_try='test -s conftest$ac_exeext'
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; }; then
19981 ac_cv_search_connect="none required"
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19987 rm -f conftest.err conftest.$ac_objext \
19988 conftest$ac_exeext conftest.$ac_ext
19989 if test "$ac_cv_search_connect" = no; then
19990 for ac_lib in socket; do
19991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19999 /* Override any gcc2 internal prototype to avoid an error. */
20003 /* We use char because int might match the return type of a gcc2
20004 builtin and then its argument prototype would still apply. */
20014 rm -f conftest.$ac_objext conftest$ac_exeext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20016 (eval $ac_link) 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag"
20024 || test ! -s conftest.err'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } &&
20030 { ac_try='test -s conftest$ac_exeext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 ac_cv_search_connect="-l$ac_lib"
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20043 rm -f conftest.err conftest.$ac_objext \
20044 conftest$ac_exeext conftest.$ac_ext
20047 LIBS=$ac_func_search_save_LIBS
20049 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
20050 echo "${ECHO_T}$ac_cv_search_connect" >&6
20051 if test "$ac_cv_search_connect" != no; then
20052 test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
20057 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20059 if test "${ac_cv_header_stdc+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #include <stdlib.h>
20069 #include <stdarg.h>
20070 #include <string.h>
20081 rm -f conftest.$ac_objext
20082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20083 (eval $ac_compile) 2>conftest.er1
20085 grep -v '^ *+' conftest.er1 >conftest.err
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -z "$ac_c_werror_flag"
20091 || test ! -s conftest.err'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; } &&
20097 { ac_try='test -s conftest.$ac_objext'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
20103 ac_cv_header_stdc=yes
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20108 ac_cv_header_stdc=no
20110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20112 if test $ac_cv_header_stdc = yes; then
20113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20114 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120 #include <string.h>
20123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20124 $EGREP "memchr" >/dev/null 2>&1; then
20127 ac_cv_header_stdc=no
20133 if test $ac_cv_header_stdc = yes; then
20134 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 #include <stdlib.h>
20144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20145 $EGREP "free" >/dev/null 2>&1; then
20148 ac_cv_header_stdc=no
20154 if test $ac_cv_header_stdc = yes; then
20155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20156 if test "$cross_compiling" = yes; then
20159 cat >conftest.$ac_ext <<_ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20166 #if ((' ' & 0x0FF) == 0x020)
20167 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20168 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20170 # define ISLOWER(c) \
20171 (('a' <= (c) && (c) <= 'i') \
20172 || ('j' <= (c) && (c) <= 'r') \
20173 || ('s' <= (c) && (c) <= 'z'))
20174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20182 for (i = 0; i < 256; i++)
20183 if (XOR (islower (i), ISLOWER (i))
20184 || toupper (i) != TOUPPER (i))
20189 rm -f conftest$ac_exeext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20191 (eval $ac_link) 2>&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20202 echo "$as_me: program exited with status $ac_status" >&5
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ( exit $ac_status )
20207 ac_cv_header_stdc=no
20209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20213 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20214 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20215 if test $ac_cv_header_stdc = yes; then
20217 cat >>confdefs.h <<\_ACEOF
20218 @%:@define STDC_HEADERS 1
20227 for ac_header in fcntl.h limits.h sys/time.h unistd.h
20229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20231 echo "$as_me:$LINENO: checking for $ac_header" >&5
20232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20239 # Is the header compilable?
20240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 $ac_includes_default
20249 @%:@include <$ac_header>
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253 (eval $ac_compile) 2>conftest.er1
20255 grep -v '^ *+' conftest.er1 >conftest.err
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
20260 { ac_try='test -z "$ac_c_werror_flag"
20261 || test ! -s conftest.err'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; } &&
20267 { ac_try='test -s conftest.$ac_objext'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; }; then
20273 ac_header_compiler=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_header_compiler=no
20280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20282 echo "${ECHO_T}$ac_header_compiler" >&6
20284 # Is the header present?
20285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20287 cat >conftest.$ac_ext <<_ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 @%:@include <$ac_header>
20295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } >/dev/null; then
20303 if test -s conftest.err; then
20304 ac_cpp_err=$ac_c_preproc_warn_flag
20305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20312 if test -z "$ac_cpp_err"; then
20313 ac_header_preproc=yes
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_header_preproc=no
20320 rm -f conftest.err conftest.$ac_ext
20321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20322 echo "${ECHO_T}$ac_header_preproc" >&6
20324 # So? What about this header?
20325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20331 ac_header_preproc=yes
20334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20348 @%:@@%:@ ------------------------------------- @%:@@%:@
20349 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
20350 @%:@@%:@ ------------------------------------- @%:@@%:@
20353 sed "s/^/$as_me: WARNING: /" >&2
20356 echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 eval "$as_ac_Header=\$ac_header_preproc"
20363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20368 cat >>confdefs.h <<_ACEOF
20369 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20380 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20381 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20382 if test "${ac_cv_c_const+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20395 /* FIXME: Include the comments suggested by Paul. */
20396 #ifndef __cplusplus
20397 /* Ultrix mips cc rejects this. */
20398 typedef int charset[2];
20400 /* SunOS 4.1.1 cc rejects this. */
20401 char const *const *ccp;
20403 /* NEC SVR4.0.2 mips cc rejects this. */
20404 struct point {int x, y;};
20405 static struct point const zero = {0,0};
20406 /* AIX XL C 1.02.0.0 rejects this.
20407 It does not let you subtract one const X* pointer from another in
20408 an arm of an if-expression whose if-part is not a constant
20410 const char *g = "string";
20411 ccp = &g + (g ? g-g : 0);
20412 /* HPUX 7.0 cc rejects these. */
20415 ccp = (char const *const *) p;
20416 { /* SCO 3.2v4 cc rejects this. */
20418 char const *s = 0 ? (char *) 0 : (char const *) 0;
20422 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20423 int x[] = {25, 17};
20424 const int *foo = &x[0];
20427 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20428 typedef const int *iptr;
20432 { /* AIX XL C 1.02.0.0 rejects this saying
20433 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20434 struct s { int j; const int *ap[3]; };
20435 struct s *b; b->j = 5;
20437 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20438 const int foo = 10;
20446 rm -f conftest.$ac_objext
20447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20448 (eval $ac_compile) 2>conftest.er1
20450 grep -v '^ *+' conftest.er1 >conftest.err
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
20455 { ac_try='test -z "$ac_c_werror_flag"
20456 || test ! -s conftest.err'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; } &&
20462 { ac_try='test -s conftest.$ac_objext'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20477 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20478 echo "${ECHO_T}$ac_cv_c_const" >&6
20479 if test $ac_cv_c_const = no; then
20481 cat >>confdefs.h <<\_ACEOF
20487 echo "$as_me:$LINENO: checking for off_t" >&5
20488 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20489 if test "${ac_cv_type_off_t+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 $ac_includes_default
20504 if (sizeof (off_t))
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512 (eval $ac_compile) 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag"
20520 || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest.$ac_objext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_type_off_t=yes
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_type_off_t=no
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20541 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20542 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20543 if test $ac_cv_type_off_t = yes; then
20547 cat >>confdefs.h <<_ACEOF
20548 @%:@define off_t long
20553 echo "$as_me:$LINENO: checking for size_t" >&5
20554 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20555 if test "${ac_cv_type_size_t+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20558 cat >conftest.$ac_ext <<_ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20564 $ac_includes_default
20570 if (sizeof (size_t))
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578 (eval $ac_compile) 2>conftest.er1
20580 grep -v '^ *+' conftest.er1 >conftest.err
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
20585 { ac_try='test -z "$ac_c_werror_flag"
20586 || test ! -s conftest.err'
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); }; } &&
20592 { ac_try='test -s conftest.$ac_objext'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598 ac_cv_type_size_t=yes
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20603 ac_cv_type_size_t=no
20605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20607 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20608 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20609 if test $ac_cv_type_size_t = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614 @%:@define size_t unsigned
20620 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20621 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20622 if test "${ac_cv_type_signal+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 cat >conftest.$ac_ext <<_ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 #include <sys/types.h>
20632 #include <signal.h>
20637 extern "C" void (*signal (int, void (*)(int)))(int);
20639 void (*signal ()) ();
20650 rm -f conftest.$ac_objext
20651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652 (eval $ac_compile) 2>conftest.er1
20654 grep -v '^ *+' conftest.er1 >conftest.err
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
20659 { ac_try='test -z "$ac_c_werror_flag"
20660 || test ! -s conftest.err'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; } &&
20666 { ac_try='test -s conftest.$ac_objext'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_type_signal=void
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ac_cv_type_signal=int
20679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20681 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20682 echo "${ECHO_T}$ac_cv_type_signal" >&6
20684 cat >>confdefs.h <<_ACEOF
20685 @%:@define RETSIGTYPE $ac_cv_type_signal
20690 for ac_func in backtrace
20692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20693 echo "$as_me:$LINENO: checking for $ac_func" >&5
20694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20695 if eval "test \"\${$as_ac_var+set}\" = set"; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20706 #define $ac_func innocuous_$ac_func
20708 /* System header to define __stub macros and hopefully few prototypes,
20709 which can conflict with char $ac_func (); below.
20710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711 <limits.h> exists even on freestanding compilers. */
20714 # include <limits.h>
20716 # include <assert.h>
20721 /* Override any gcc2 internal prototype to avoid an error. */
20726 /* We use char because int might match the return type of a gcc2
20727 builtin and then its argument prototype would still apply. */
20729 /* The GNU C library defines this for functions which it implements
20730 to always fail with ENOSYS. Some functions are actually named
20731 something starting with __ and the normal name is an alias. */
20732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20735 char (*f) () = $ac_func;
20744 return f != $ac_func;
20749 rm -f conftest.$ac_objext conftest$ac_exeext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20751 (eval $ac_link) 2>conftest.er1
20753 grep -v '^ *+' conftest.er1 >conftest.err
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
20758 { ac_try='test -z "$ac_c_werror_flag"
20759 || test ! -s conftest.err'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; } &&
20765 { ac_try='test -s conftest$ac_exeext'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 eval "$as_ac_var=yes"
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 eval "$as_ac_var=no"
20778 rm -f conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20783 if test `eval echo '${'$as_ac_var'}'` = yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20792 for ac_func in snprintf
20794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20795 echo "$as_me:$LINENO: checking for $ac_func" >&5
20796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20797 if eval "test \"\${$as_ac_var+set}\" = set"; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20800 cat >conftest.$ac_ext <<_ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20808 #define $ac_func innocuous_$ac_func
20810 /* System header to define __stub macros and hopefully few prototypes,
20811 which can conflict with char $ac_func (); below.
20812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20813 <limits.h> exists even on freestanding compilers. */
20816 # include <limits.h>
20818 # include <assert.h>
20823 /* Override any gcc2 internal prototype to avoid an error. */
20828 /* We use char because int might match the return type of a gcc2
20829 builtin and then its argument prototype would still apply. */
20831 /* The GNU C library defines this for functions which it implements
20832 to always fail with ENOSYS. Some functions are actually named
20833 something starting with __ and the normal name is an alias. */
20834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20837 char (*f) () = $ac_func;
20846 return f != $ac_func;
20851 rm -f conftest.$ac_objext conftest$ac_exeext
20852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20853 (eval $ac_link) 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -z "$ac_c_werror_flag"
20861 || test ! -s conftest.err'
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; } &&
20867 { ac_try='test -s conftest$ac_exeext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 eval "$as_ac_var=yes"
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 eval "$as_ac_var=no"
20880 rm -f conftest.err conftest.$ac_objext \
20881 conftest$ac_exeext conftest.$ac_ext
20883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20885 if test `eval echo '${'$as_ac_var'}'` = yes; then
20886 cat >>confdefs.h <<_ACEOF
20887 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20891 case $LIB@&t@OBJS in
20892 "$ac_func.$ac_objext" | \
20893 *" $ac_func.$ac_objext" | \
20894 "$ac_func.$ac_objext "* | \
20895 *" $ac_func.$ac_objext "* ) ;;
20896 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
20905 cat >>confdefs.h <<\_ACEOF
20906 @%:@define HAVE_LIBICAL 1
20910 if test "x$with_libical" != xno ; then
20912 for ac_header in ical.h
20914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20916 echo "$as_me:$LINENO: checking for $ac_header" >&5
20917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20924 # Is the header compilable?
20925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20927 cat >conftest.$ac_ext <<_ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20933 $ac_includes_default
20934 @%:@include <$ac_header>
20936 rm -f conftest.$ac_objext
20937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938 (eval $ac_compile) 2>conftest.er1
20940 grep -v '^ *+' conftest.er1 >conftest.err
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } &&
20945 { ac_try='test -z "$ac_c_werror_flag"
20946 || test ! -s conftest.err'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; } &&
20952 { ac_try='test -s conftest.$ac_objext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_header_compiler=yes
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 ac_header_compiler=no
20965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20967 echo "${ECHO_T}$ac_header_compiler" >&6
20969 # Is the header present?
20970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 @%:@include <$ac_header>
20980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20983 grep -v '^ *+' conftest.er1 >conftest.err
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } >/dev/null; then
20988 if test -s conftest.err; then
20989 ac_cpp_err=$ac_c_preproc_warn_flag
20990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20997 if test -z "$ac_cpp_err"; then
20998 ac_header_preproc=yes
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ac_header_preproc=no
21005 rm -f conftest.err conftest.$ac_ext
21006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21007 echo "${ECHO_T}$ac_header_preproc" >&6
21009 # So? What about this header?
21010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21016 ac_header_preproc=yes
21019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21033 @%:@@%:@ ------------------------------------- @%:@@%:@
21034 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21035 @%:@@%:@ ------------------------------------- @%:@@%:@
21038 sed "s/^/$as_me: WARNING: /" >&2
21041 echo "$as_me:$LINENO: checking for $ac_header" >&5
21042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 eval "$as_ac_Header=\$ac_header_preproc"
21048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21053 cat >>confdefs.h <<_ACEOF
21054 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21056 echo "$as_me:$LINENO: checking for icalcomponent_new in -lical" >&5
21057 echo $ECHO_N "checking for icalcomponent_new in -lical... $ECHO_C" >&6
21058 if test "${ac_cv_lib_ical_icalcomponent_new+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 ac_check_lib_save_LIBS=$LIBS
21062 LIBS="-lical $LIBS"
21063 cat >conftest.$ac_ext <<_ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21070 /* Override any gcc2 internal prototype to avoid an error. */
21074 /* We use char because int might match the return type of a gcc2
21075 builtin and then its argument prototype would still apply. */
21076 char icalcomponent_new ();
21080 icalcomponent_new ();
21085 rm -f conftest.$ac_objext conftest$ac_exeext
21086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21087 (eval $ac_link) 2>conftest.er1
21089 grep -v '^ *+' conftest.er1 >conftest.err
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
21094 { ac_try='test -z "$ac_c_werror_flag"
21095 || test ! -s conftest.err'
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; } &&
21101 { ac_try='test -s conftest$ac_exeext'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_cv_lib_ical_icalcomponent_new=yes
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ac_cv_lib_ical_icalcomponent_new=no
21114 rm -f conftest.err conftest.$ac_objext \
21115 conftest$ac_exeext conftest.$ac_ext
21116 LIBS=$ac_check_lib_save_LIBS
21118 echo "$as_me:$LINENO: result: $ac_cv_lib_ical_icalcomponent_new" >&5
21119 echo "${ECHO_T}$ac_cv_lib_ical_icalcomponent_new" >&6
21120 if test $ac_cv_lib_ical_icalcomponent_new = yes; then
21130 if test "x$ok_libical" = xyes ; then
21132 if test "$cross_compiling" = yes; then
21133 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21134 See \`config.log' for more details." >&5
21135 echo "$as_me: error: cannot run test program while cross compiling
21136 See \`config.log' for more details." >&2;}
21137 { (exit 1); exit 1; }; }
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21148 int major, minor, v;
21149 sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
21150 v = 100*major + minor;
21151 printf("libical version: %i\n", v);
21153 printf("This version is ok.\n");
21156 printf("libical 0.24 or newer required.\n");
21157 printf("Citadel will be built without calendar support.\n");
21162 rm -f conftest$ac_exeext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164 (eval $ac_link) 2>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; }; then
21174 LIBS="$LIBS -lical"
21175 cat >>confdefs.h <<\_ACEOF
21176 @%:@define HAVE_LIBICAL 1
21182 echo "$as_me: program exited with status $ac_status" >&5
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21194 cat >>confdefs.h <<\_ACEOF
21195 @%:@define with_zlib 1
21199 if test "x$ok_zlib" = xyes ; then
21204 # Check whether --with-ok_newt or --without-ok_newt was given.
21205 if test "${with_ok_newt+set}" = set; then
21206 withval="$with_ok_newt"
21210 for ac_header in newt.h
21212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21214 echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21222 # Is the header compilable?
21223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21225 cat >conftest.$ac_ext <<_ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 $ac_includes_default
21232 @%:@include <$ac_header>
21234 rm -f conftest.$ac_objext
21235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21236 (eval $ac_compile) 2>conftest.er1
21238 grep -v '^ *+' conftest.er1 >conftest.err
21240 cat conftest.err >&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } &&
21243 { ac_try='test -z "$ac_c_werror_flag"
21244 || test ! -s conftest.err'
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; } &&
21250 { ac_try='test -s conftest.$ac_objext'
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; }; then
21256 ac_header_compiler=yes
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 ac_header_compiler=no
21263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21265 echo "${ECHO_T}$ac_header_compiler" >&6
21267 # Is the header present?
21268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 @%:@include <$ac_header>
21278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21281 grep -v '^ *+' conftest.er1 >conftest.err
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } >/dev/null; then
21286 if test -s conftest.err; then
21287 ac_cpp_err=$ac_c_preproc_warn_flag
21288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21295 if test -z "$ac_cpp_err"; then
21296 ac_header_preproc=yes
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 ac_header_preproc=no
21303 rm -f conftest.err conftest.$ac_ext
21304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21305 echo "${ECHO_T}$ac_header_preproc" >&6
21307 # So? What about this header?
21308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21314 ac_header_preproc=yes
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21331 @%:@@%:@ ------------------------------------- @%:@@%:@
21332 @%:@@%:@ Report this to uncensored.citadel.org @%:@@%:@
21333 @%:@@%:@ ------------------------------------- @%:@@%:@
21336 sed "s/^/$as_me: WARNING: /" >&2
21339 echo "$as_me:$LINENO: checking for $ac_header" >&5
21340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 eval "$as_ac_Header=\$ac_header_preproc"
21346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21351 cat >>confdefs.h <<_ACEOF
21352 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21354 echo "$as_me:$LINENO: checking for newtInit in -lnewt" >&5
21355 echo $ECHO_N "checking for newtInit in -lnewt... $ECHO_C" >&6
21356 if test "${ac_cv_lib_newt_newtInit+set}" = set; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 ac_check_lib_save_LIBS=$LIBS
21360 LIBS="-lnewt $LIBS"
21361 cat >conftest.$ac_ext <<_ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21368 /* Override any gcc2 internal prototype to avoid an error. */
21372 /* We use char because int might match the return type of a gcc2
21373 builtin and then its argument prototype would still apply. */
21383 rm -f conftest.$ac_objext conftest$ac_exeext
21384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21385 (eval $ac_link) 2>conftest.er1
21387 grep -v '^ *+' conftest.er1 >conftest.err
21389 cat conftest.err >&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } &&
21392 { ac_try='test -z "$ac_c_werror_flag"
21393 || test ! -s conftest.err'
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; } &&
21399 { ac_try='test -s conftest$ac_exeext'
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; }; then
21405 ac_cv_lib_newt_newtInit=yes
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_cv_lib_newt_newtInit=no
21412 rm -f conftest.err conftest.$ac_objext \
21413 conftest$ac_exeext conftest.$ac_ext
21414 LIBS=$ac_check_lib_save_LIBS
21416 echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtInit" >&5
21417 echo "${ECHO_T}$ac_cv_lib_newt_newtInit" >&6
21418 if test $ac_cv_lib_newt_newtInit = yes; then
21432 if test "x$ok_newt" = xyes ; then
21433 SETUP_LIBS="-lnewt $SETUP_LIBS"
21436 # The big search for OpenSSL
21437 if test "$with_ssl" != "no"; then
21439 saved_LDFLAGS="$LDFLAGS"
21440 saved_CFLAGS="$CFLAGS"
21441 if test "x$prefix" != "xNONE"; then
21442 tryssldir="$tryssldir $prefix"
21444 echo "$as_me:$LINENO: checking for OpenSSL" >&5
21445 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
21446 if test "${ac_cv_openssldir+set}" = set; then
21447 echo $ECHO_N "(cached) $ECHO_C" >&6
21450 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
21451 CFLAGS="$saved_CFLAGS"
21452 LDFLAGS="$saved_LDFLAGS"
21453 LIBS="$saved_LIBS -lssl -lcrypto"
21455 # Skip directories if they don't exist
21456 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
21459 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
21460 # Try to use $ssldir/lib if it exists, otherwise
21462 if test -d "$ssldir/lib" ; then
21463 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21464 if test ! -z "$need_dash_r" ; then
21465 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21468 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21469 if test ! -z "$need_dash_r" ; then
21470 LDFLAGS="-R$ssldir $LDFLAGS"
21473 # Try to use $ssldir/include if it exists, otherwise
21475 if test -d "$ssldir/include" ; then
21476 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21478 CFLAGS="-I$ssldir $saved_CFLAGS"
21482 # Basic test to check for compatible version and correct linking
21483 # *does not* test for RSA - that comes later.
21484 if test "$cross_compiling" = yes; then
21485 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21486 See \`config.log' for more details." >&5
21487 echo "$as_me: error: cannot run test program while cross compiling
21488 See \`config.log' for more details." >&2;}
21489 { (exit 1); exit 1; }; }
21491 cat >conftest.$ac_ext <<_ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21498 #include <string.h>
21499 #include <openssl/rand.h>
21503 memset(a, 0, sizeof(a));
21504 RAND_add(a, sizeof(a), sizeof(a));
21505 return(RAND_status() <= 0);
21509 rm -f conftest$ac_exeext
21510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21511 (eval $ac_link) 2>&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21525 echo "$as_me: program exited with status $ac_status" >&5
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ( exit $ac_status )
21533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21536 if test ! -z "$found_crypto" ; then
21541 if test -z "$ssldir" ; then
21545 if test ! -z "$found_crypto" ; then
21546 ac_cv_openssldir=$ssldir
21548 ac_cv_openssldir="no"
21552 echo "$as_me:$LINENO: result: $ac_cv_openssldir" >&5
21553 echo "${ECHO_T}$ac_cv_openssldir" >&6
21555 LDFLAGS="$saved_LDFLAGS"
21556 CFLAGS="$saved_CFLAGS"
21558 if test "x$ac_cv_openssldir" != "xno" ; then
21559 cat >>confdefs.h <<\_ACEOF
21560 @%:@define HAVE_OPENSSL 1
21563 LIBS="-lssl -lcrypto $LIBS"
21564 ssldir=$ac_cv_openssldir
21565 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr" -a "x$ssldir" != "x(system)"; then
21566 # Try to use $ssldir/lib if it exists, otherwise
21568 if test -d "$ssldir/lib" ; then
21569 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
21570 if test ! -z "$need_dash_r" ; then
21571 LDFLAGS="-R$ssldir/lib $LDFLAGS"
21574 LDFLAGS="-L$ssldir $saved_LDFLAGS"
21575 if test ! -z "$need_dash_r" ; then
21576 LDFLAGS="-R$ssldir $LDFLAGS"
21579 # Try to use $ssldir/include if it exists, otherwise
21581 if test -d "$ssldir/include" ; then
21582 CFLAGS="-I$ssldir/include $saved_CFLAGS"
21584 CFLAGS="-I$ssldir $saved_CFLAGS"
21592 cat >>confdefs.h <<\_ACEOF
21593 @%:@define HAVE_ICONV 1
21597 if test "$ok_nls" != "no"; then
21598 echo "$as_me:$LINENO: result: Checking to see if your system supports iconv..." >&5
21599 echo "${ECHO_T}Checking to see if your system supports iconv..." >&6
21600 if test "$cross_compiling" = yes; then
21601 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21602 See \`config.log' for more details." >&5
21603 echo "$as_me: error: cannot run test program while cross compiling
21604 See \`config.log' for more details." >&2;}
21605 { (exit 1); exit 1; }; }
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21616 iconv_t ic = (iconv_t)(-1) ;
21617 ic = iconv_open("UTF-8", "us-ascii");
21623 rm -f conftest$ac_exeext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21625 (eval $ac_link) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630 (eval $ac_try) 2>&5
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; }; then
21636 echo "$as_me: program exited with status $ac_status" >&5
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 ( exit $ac_status )
21644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21648 if test "$ok_iconv" != "no"; then
21649 echo "$as_me:$LINENO: result: WebCit will be built with character set conversion." >&5
21650 echo "${ECHO_T}WebCit will be built with character set conversion." >&6
21651 cat >>confdefs.h <<\_ACEOF
21652 @%:@define HAVE_ICONV 1
21656 echo "$as_me:$LINENO: result: WebCit will be built without character set conversion." >&5
21657 echo "${ECHO_T}WebCit will be built without character set conversion." >&6
21661 cat >>confdefs.h <<_ACEOF
21662 @%:@define PREFIX "$prefix"
21669 # if we have intl/...
21672 if test -n ""; then
21673 echo "$as_me:$LINENO: checking for intltool >= " >&5
21674 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
21676 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
21677 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < ${ac_aux_dir}/intltool-update.in`
21679 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
21682 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
21683 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
21684 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
21686 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
21687 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
21692 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 $< $@'
21693 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 $< $@'
21694 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 $< $@'
21695 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 $< $@'
21696 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
21697 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 $< $@'
21698 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 $< $@'
21699 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 $< $@'
21700 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 $< $@'
21701 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 $< $@'
21702 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 $< $@'
21703 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
21704 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 $< $@'
21705 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 $< $@'
21706 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 $< $@'
21707 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 $< $@'
21708 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 $< $@'
21728 # Use the tools built into the package, not the ones that are installed.
21730 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
21731 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
21732 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
21738 # Extract the first word of "perl", so it can be a program name with args.
21739 set dummy perl; ac_word=$2
21740 echo "$as_me:$LINENO: checking for $ac_word" >&5
21741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21742 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 case $INTLTOOL_PERL in
21747 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
21750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 for as_dir in $PATH
21754 test -z "$as_dir" && as_dir=.
21755 for ac_exec_ext in '' $ac_executable_extensions; do
21756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21757 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
21758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21767 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
21769 if test -n "$INTLTOOL_PERL"; then
21770 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
21771 echo "${ECHO_T}$INTLTOOL_PERL" >&6
21773 echo "$as_me:$LINENO: result: no" >&5
21774 echo "${ECHO_T}no" >&6
21777 if test -z "$INTLTOOL_PERL"; then
21778 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
21779 echo "$as_me: error: perl not found; required for intltool" >&2;}
21780 { (exit 1); exit 1; }; }
21782 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
21783 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
21784 echo "$as_me: error: perl 5.x required for intltool" >&2;}
21785 { (exit 1); exit 1; }; }
21787 if test "x" != "xno-xml"; then
21788 echo "$as_me:$LINENO: checking for XML::Parser" >&5
21789 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
21790 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
21791 echo "$as_me:$LINENO: result: ok" >&5
21792 echo "${ECHO_T}ok" >&6
21794 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
21795 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
21796 { (exit 1); exit 1; }; }
21800 # Extract the first word of "iconv", so it can be a program name with args.
21801 set dummy iconv; ac_word=$2
21802 echo "$as_me:$LINENO: checking for $ac_word" >&5
21803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21804 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 case $INTLTOOL_ICONV in
21809 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
21812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813 for as_dir in $PATH
21816 test -z "$as_dir" && as_dir=.
21817 for ac_exec_ext in '' $ac_executable_extensions; do
21818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21819 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
21820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21826 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
21830 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
21832 if test -n "$INTLTOOL_ICONV"; then
21833 echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
21834 echo "${ECHO_T}$INTLTOOL_ICONV" >&6
21836 echo "$as_me:$LINENO: result: no" >&5
21837 echo "${ECHO_T}no" >&6
21840 # Extract the first word of "msgfmt", so it can be a program name with args.
21841 set dummy msgfmt; ac_word=$2
21842 echo "$as_me:$LINENO: checking for $ac_word" >&5
21843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21844 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21847 case $INTLTOOL_MSGFMT in
21849 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
21852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21853 for as_dir in $PATH
21856 test -z "$as_dir" && as_dir=.
21857 for ac_exec_ext in '' $ac_executable_extensions; do
21858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21859 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
21860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21866 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
21870 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
21872 if test -n "$INTLTOOL_MSGFMT"; then
21873 echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
21874 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
21876 echo "$as_me:$LINENO: result: no" >&5
21877 echo "${ECHO_T}no" >&6
21880 # Extract the first word of "msgmerge", so it can be a program name with args.
21881 set dummy msgmerge; ac_word=$2
21882 echo "$as_me:$LINENO: checking for $ac_word" >&5
21883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21884 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 case $INTLTOOL_MSGMERGE in
21889 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
21892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21893 for as_dir in $PATH
21896 test -z "$as_dir" && as_dir=.
21897 for ac_exec_ext in '' $ac_executable_extensions; do
21898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21899 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
21900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21906 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
21910 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
21912 if test -n "$INTLTOOL_MSGMERGE"; then
21913 echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
21914 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
21916 echo "$as_me:$LINENO: result: no" >&5
21917 echo "${ECHO_T}no" >&6
21920 # Extract the first word of "xgettext", so it can be a program name with args.
21921 set dummy xgettext; ac_word=$2
21922 echo "$as_me:$LINENO: checking for $ac_word" >&5
21923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21924 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 case $INTLTOOL_XGETTEXT in
21929 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
21932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21933 for as_dir in $PATH
21936 test -z "$as_dir" && as_dir=.
21937 for ac_exec_ext in '' $ac_executable_extensions; do
21938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21939 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
21940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21946 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
21950 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
21952 if test -n "$INTLTOOL_XGETTEXT"; then
21953 echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
21954 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
21956 echo "$as_me:$LINENO: result: no" >&5
21957 echo "${ECHO_T}no" >&6
21961 # Remove file type tags (using []) from po/POTFILES.
21969 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
21971 ac_config_commands="$ac_config_commands intltool"
21977 if test -n "$ac_aux_dir"; then
21978 case "$ac_aux_dir" in
21979 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21980 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21983 if test -z "$MKINSTALLDIRS"; then
21984 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21989 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21990 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
21991 # Check whether --enable-nls or --disable-nls was given.
21992 if test "${enable_nls+set}" = set; then
21993 enableval="$enable_nls"
21998 echo "$as_me:$LINENO: result: $USE_NLS" >&5
21999 echo "${ECHO_T}$USE_NLS" >&6
22006 # Prepare PATH_SEPARATOR.
22007 # The user is always right.
22008 if test "${PATH_SEPARATOR+set}" != set; then
22009 echo "#! /bin/sh" >conf$$.sh
22010 echo "exit 0" >>conf$$.sh
22012 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22020 # Find out how to test for executable files. Don't use a zero-byte file,
22021 # as systems may use methods other than mode bits to determine executability.
22022 cat >conf$$.file <<_ASEOF
22026 chmod +x conf$$.file
22027 if test -x conf$$.file >/dev/null 2>&1; then
22028 ac_executable_p="test -x"
22030 ac_executable_p="test -f"
22034 # Extract the first word of "msgfmt", so it can be a program name with args.
22035 set dummy msgfmt; ac_word=$2
22036 echo "$as_me:$LINENO: checking for $ac_word" >&5
22037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22038 if test "${ac_cv_path_MSGFMT+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22046 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22047 for ac_dir in $PATH; do
22049 test -z "$ac_dir" && ac_dir=.
22050 for ac_exec_ext in '' $ac_executable_extensions; do
22051 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22052 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
22053 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22054 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22061 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22065 MSGFMT="$ac_cv_path_MSGFMT"
22066 if test "$MSGFMT" != ":"; then
22067 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22068 echo "${ECHO_T}$MSGFMT" >&6
22070 echo "$as_me:$LINENO: result: no" >&5
22071 echo "${ECHO_T}no" >&6
22074 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22075 set dummy gmsgfmt; ac_word=$2
22076 echo "$as_me:$LINENO: checking for $ac_word" >&5
22077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22078 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22087 for as_dir in $PATH
22090 test -z "$as_dir" && as_dir=.
22091 for ac_exec_ext in '' $ac_executable_extensions; do
22092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22093 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22100 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22104 GMSGFMT=$ac_cv_path_GMSGFMT
22106 if test -n "$GMSGFMT"; then
22107 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22108 echo "${ECHO_T}$GMSGFMT" >&6
22110 echo "$as_me:$LINENO: result: no" >&5
22111 echo "${ECHO_T}no" >&6
22116 # Prepare PATH_SEPARATOR.
22117 # The user is always right.
22118 if test "${PATH_SEPARATOR+set}" != set; then
22119 echo "#! /bin/sh" >conf$$.sh
22120 echo "exit 0" >>conf$$.sh
22122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22130 # Find out how to test for executable files. Don't use a zero-byte file,
22131 # as systems may use methods other than mode bits to determine executability.
22132 cat >conf$$.file <<_ASEOF
22136 chmod +x conf$$.file
22137 if test -x conf$$.file >/dev/null 2>&1; then
22138 ac_executable_p="test -x"
22140 ac_executable_p="test -f"
22144 # Extract the first word of "xgettext", so it can be a program name with args.
22145 set dummy xgettext; ac_word=$2
22146 echo "$as_me:$LINENO: checking for $ac_word" >&5
22147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22148 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 case "$XGETTEXT" in
22153 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22156 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22157 for ac_dir in $PATH; do
22159 test -z "$ac_dir" && ac_dir=.
22160 for ac_exec_ext in '' $ac_executable_extensions; do
22161 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22162 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22163 (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
22164 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22171 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22175 XGETTEXT="$ac_cv_path_XGETTEXT"
22176 if test "$XGETTEXT" != ":"; then
22177 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22178 echo "${ECHO_T}$XGETTEXT" >&6
22180 echo "$as_me:$LINENO: result: no" >&5
22181 echo "${ECHO_T}no" >&6
22187 # Prepare PATH_SEPARATOR.
22188 # The user is always right.
22189 if test "${PATH_SEPARATOR+set}" != set; then
22190 echo "#! /bin/sh" >conf$$.sh
22191 echo "exit 0" >>conf$$.sh
22193 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22201 # Find out how to test for executable files. Don't use a zero-byte file,
22202 # as systems may use methods other than mode bits to determine executability.
22203 cat >conf$$.file <<_ASEOF
22207 chmod +x conf$$.file
22208 if test -x conf$$.file >/dev/null 2>&1; then
22209 ac_executable_p="test -x"
22211 ac_executable_p="test -f"
22215 # Extract the first word of "msgmerge", so it can be a program name with args.
22216 set dummy msgmerge; ac_word=$2
22217 echo "$as_me:$LINENO: checking for $ac_word" >&5
22218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22219 if test "${ac_cv_path_MSGMERGE+set}" = set; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22222 case "$MSGMERGE" in
22224 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22227 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22228 for ac_dir in $PATH; do
22230 test -z "$ac_dir" && ac_dir=.
22231 for ac_exec_ext in '' $ac_executable_extensions; do
22232 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22233 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
22234 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22241 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
22245 MSGMERGE="$ac_cv_path_MSGMERGE"
22246 if test "$MSGMERGE" != ":"; then
22247 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22248 echo "${ECHO_T}$MSGMERGE" >&6
22250 echo "$as_me:$LINENO: result: no" >&5
22251 echo "${ECHO_T}no" >&6
22255 if test "$GMSGFMT" != ":"; then
22256 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
22257 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22260 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
22261 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
22262 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
22267 if test "$XGETTEXT" != ":"; then
22268 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
22269 (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
22272 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22273 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
22279 ac_config_commands="$ac_config_commands default-1"
22283 if test "X$prefix" = "XNONE"; then
22284 acl_final_prefix="$ac_default_prefix"
22286 acl_final_prefix="$prefix"
22288 if test "X$exec_prefix" = "XNONE"; then
22289 acl_final_exec_prefix='${prefix}'
22291 acl_final_exec_prefix="$exec_prefix"
22293 acl_save_prefix="$prefix"
22294 prefix="$acl_final_prefix"
22295 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22296 prefix="$acl_save_prefix"
22299 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22300 if test "${with_gnu_ld+set}" = set; then
22301 withval="$with_gnu_ld"
22302 test "$withval" = no || with_gnu_ld=yes
22306 # Prepare PATH_SEPARATOR.
22307 # The user is always right.
22308 if test "${PATH_SEPARATOR+set}" != set; then
22309 echo "#! /bin/sh" >conf$$.sh
22310 echo "exit 0" >>conf$$.sh
22312 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22320 if test "$GCC" = yes; then
22321 # Check if gcc -print-prog-name=ld gives a path.
22322 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22323 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
22326 # gcc leaves a trailing carriage return which upsets mingw
22327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22332 # Accept absolute paths.
22333 [\\/]* | [A-Za-z]:[\\/]*)
22334 re_direlt='/[^/][^/]*/\.\./'
22335 # Canonicalize the path of ld
22336 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22337 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22338 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22340 test -z "$LD" && LD="$ac_prog"
22343 # If it fails, then pretend we aren't using GCC.
22347 # If it is relative, then search for the first ld in PATH.
22348 with_gnu_ld=unknown
22351 elif test "$with_gnu_ld" = yes; then
22352 echo "$as_me:$LINENO: checking for GNU ld" >&5
22353 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22355 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22356 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22358 if test "${acl_cv_path_LD+set}" = set; then
22359 echo $ECHO_N "(cached) $ECHO_C" >&6
22361 if test -z "$LD"; then
22362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22363 for ac_dir in $PATH; do
22364 test -z "$ac_dir" && ac_dir=.
22365 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22366 acl_cv_path_LD="$ac_dir/$ac_prog"
22367 # Check to see if the program is GNU ld. I'd rather use --version,
22368 # but apparently some GNU ld's only accept -v.
22369 # Break only if it was the GNU/non-GNU ld that we prefer.
22370 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22371 *GNU* | *'with BFD'*)
22372 test "$with_gnu_ld" != no && break ;;
22374 test "$with_gnu_ld" != yes && break ;;
22380 acl_cv_path_LD="$LD" # Let the user override the test with a path.
22384 LD="$acl_cv_path_LD"
22385 if test -n "$LD"; then
22386 echo "$as_me:$LINENO: result: $LD" >&5
22387 echo "${ECHO_T}$LD" >&6
22389 echo "$as_me:$LINENO: result: no" >&5
22390 echo "${ECHO_T}no" >&6
22392 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22393 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22394 { (exit 1); exit 1; }; }
22395 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22396 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22397 if test "${acl_cv_prog_gnu_ld+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22401 case `$LD -v 2>&1 </dev/null` in
22402 *GNU* | *'with BFD'*)
22403 acl_cv_prog_gnu_ld=yes ;;
22405 acl_cv_prog_gnu_ld=no ;;
22408 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
22409 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
22410 with_gnu_ld=$acl_cv_prog_gnu_ld
22414 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
22415 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
22416 if test "${acl_cv_rpath+set}" = set; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22420 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22421 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22423 rm -f ./conftest.sh
22427 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
22428 echo "${ECHO_T}$acl_cv_rpath" >&6
22430 libext="$acl_cv_libext"
22431 shlibext="$acl_cv_shlibext"
22432 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22433 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22434 hardcode_direct="$acl_cv_hardcode_direct"
22435 hardcode_minus_L="$acl_cv_hardcode_minus_L"
22436 # Check whether --enable-rpath or --disable-rpath was given.
22437 if test "${enable_rpath+set}" = set; then
22438 enableval="$enable_rpath"
22452 acl_save_prefix="$prefix"
22453 prefix="$acl_final_prefix"
22454 acl_save_exec_prefix="$exec_prefix"
22455 exec_prefix="$acl_final_exec_prefix"
22457 eval additional_includedir=\"$includedir\"
22458 eval additional_libdir=\"$libdir\"
22460 exec_prefix="$acl_save_exec_prefix"
22461 prefix="$acl_save_prefix"
22464 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22465 if test "${with_libiconv_prefix+set}" = set; then
22466 withval="$with_libiconv_prefix"
22468 if test "X$withval" = "Xno"; then
22471 if test "X$withval" = "X"; then
22473 acl_save_prefix="$prefix"
22474 prefix="$acl_final_prefix"
22475 acl_save_exec_prefix="$exec_prefix"
22476 exec_prefix="$acl_final_exec_prefix"
22478 eval additional_includedir=\"$includedir\"
22479 eval additional_libdir=\"$libdir\"
22481 exec_prefix="$acl_save_exec_prefix"
22482 prefix="$acl_save_prefix"
22485 additional_includedir="$withval/include"
22486 additional_libdir="$withval/lib"
22496 names_already_handled=
22497 names_next_round='iconv '
22498 while test -n "$names_next_round"; do
22499 names_this_round="$names_next_round"
22501 for name in $names_this_round; do
22503 for n in $names_already_handled; do
22504 if test "$n" = "$name"; then
22505 already_handled=yes
22509 if test -z "$already_handled"; then
22510 names_already_handled="$names_already_handled $name"
22511 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22512 eval value=\"\$HAVE_LIB$uppername\"
22513 if test -n "$value"; then
22514 if test "$value" = yes; then
22515 eval value=\"\$LIB$uppername\"
22516 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22517 eval value=\"\$LTLIB$uppername\"
22518 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22527 if test $use_additional = yes; then
22528 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22529 found_dir="$additional_libdir"
22530 found_so="$additional_libdir/lib$name.$shlibext"
22531 if test -f "$additional_libdir/lib$name.la"; then
22532 found_la="$additional_libdir/lib$name.la"
22535 if test -f "$additional_libdir/lib$name.$libext"; then
22536 found_dir="$additional_libdir"
22537 found_a="$additional_libdir/lib$name.$libext"
22538 if test -f "$additional_libdir/lib$name.la"; then
22539 found_la="$additional_libdir/lib$name.la"
22544 if test "X$found_dir" = "X"; then
22545 for x in $LDFLAGS $LTLIBICONV; do
22547 acl_save_prefix="$prefix"
22548 prefix="$acl_final_prefix"
22549 acl_save_exec_prefix="$exec_prefix"
22550 exec_prefix="$acl_final_exec_prefix"
22552 exec_prefix="$acl_save_exec_prefix"
22553 prefix="$acl_save_prefix"
22557 dir=`echo "X$x" | sed -e 's/^X-L//'`
22558 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22560 found_so="$dir/lib$name.$shlibext"
22561 if test -f "$dir/lib$name.la"; then
22562 found_la="$dir/lib$name.la"
22565 if test -f "$dir/lib$name.$libext"; then
22567 found_a="$dir/lib$name.$libext"
22568 if test -f "$dir/lib$name.la"; then
22569 found_la="$dir/lib$name.la"
22575 if test "X$found_dir" != "X"; then
22580 if test "X$found_dir" != "X"; then
22581 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22582 if test "X$found_so" != "X"; then
22583 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
22584 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22587 for x in $ltrpathdirs; do
22588 if test "X$x" = "X$found_dir"; then
22593 if test -z "$haveit"; then
22594 ltrpathdirs="$ltrpathdirs $found_dir"
22596 if test "$hardcode_direct" = yes; then
22597 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22599 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22600 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22602 for x in $rpathdirs; do
22603 if test "X$x" = "X$found_dir"; then
22608 if test -z "$haveit"; then
22609 rpathdirs="$rpathdirs $found_dir"
22613 for x in $LDFLAGS $LIBICONV; do
22615 acl_save_prefix="$prefix"
22616 prefix="$acl_final_prefix"
22617 acl_save_exec_prefix="$exec_prefix"
22618 exec_prefix="$acl_final_exec_prefix"
22620 exec_prefix="$acl_save_exec_prefix"
22621 prefix="$acl_save_prefix"
22623 if test "X$x" = "X-L$found_dir"; then
22628 if test -z "$haveit"; then
22629 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22631 if test "$hardcode_minus_L" != no; then
22632 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22634 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22640 if test "X$found_a" != "X"; then
22641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22643 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22646 additional_includedir=
22647 case "$found_dir" in
22649 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22650 additional_includedir="$basedir/include"
22653 if test "X$additional_includedir" != "X"; then
22654 if test "X$additional_includedir" != "X/usr/include"; then
22656 if test "X$additional_includedir" = "X/usr/local/include"; then
22657 if test -n "$GCC"; then
22659 linux*) haveit=yes;;
22663 if test -z "$haveit"; then
22664 for x in $CPPFLAGS $INCICONV; do
22666 acl_save_prefix="$prefix"
22667 prefix="$acl_final_prefix"
22668 acl_save_exec_prefix="$exec_prefix"
22669 exec_prefix="$acl_final_exec_prefix"
22671 exec_prefix="$acl_save_exec_prefix"
22672 prefix="$acl_save_prefix"
22674 if test "X$x" = "X-I$additional_includedir"; then
22679 if test -z "$haveit"; then
22680 if test -d "$additional_includedir"; then
22681 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22687 if test -n "$found_la"; then
22688 save_libdir="$libdir"
22689 case "$found_la" in
22690 */* | *\\*) . "$found_la" ;;
22691 *) . "./$found_la" ;;
22693 libdir="$save_libdir"
22694 for dep in $dependency_libs; do
22697 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22698 if test "X$additional_libdir" != "X/usr/lib"; then
22700 if test "X$additional_libdir" = "X/usr/local/lib"; then
22701 if test -n "$GCC"; then
22703 linux*) haveit=yes;;
22707 if test -z "$haveit"; then
22709 for x in $LDFLAGS $LIBICONV; do
22711 acl_save_prefix="$prefix"
22712 prefix="$acl_final_prefix"
22713 acl_save_exec_prefix="$exec_prefix"
22714 exec_prefix="$acl_final_exec_prefix"
22716 exec_prefix="$acl_save_exec_prefix"
22717 prefix="$acl_save_prefix"
22719 if test "X$x" = "X-L$additional_libdir"; then
22724 if test -z "$haveit"; then
22725 if test -d "$additional_libdir"; then
22726 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22730 for x in $LDFLAGS $LTLIBICONV; do
22732 acl_save_prefix="$prefix"
22733 prefix="$acl_final_prefix"
22734 acl_save_exec_prefix="$exec_prefix"
22735 exec_prefix="$acl_final_exec_prefix"
22737 exec_prefix="$acl_save_exec_prefix"
22738 prefix="$acl_save_prefix"
22740 if test "X$x" = "X-L$additional_libdir"; then
22745 if test -z "$haveit"; then
22746 if test -d "$additional_libdir"; then
22747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22754 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22755 if test "$enable_rpath" != no; then
22757 for x in $rpathdirs; do
22758 if test "X$x" = "X$dir"; then
22763 if test -z "$haveit"; then
22764 rpathdirs="$rpathdirs $dir"
22767 for x in $ltrpathdirs; do
22768 if test "X$x" = "X$dir"; then
22773 if test -z "$haveit"; then
22774 ltrpathdirs="$ltrpathdirs $dir"
22779 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22782 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22785 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22786 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22792 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22793 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22799 if test "X$rpathdirs" != "X"; then
22800 if test -n "$hardcode_libdir_separator"; then
22802 for found_dir in $rpathdirs; do
22803 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22805 acl_save_libdir="$libdir"
22807 eval flag=\"$hardcode_libdir_flag_spec\"
22808 libdir="$acl_save_libdir"
22809 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22811 for found_dir in $rpathdirs; do
22812 acl_save_libdir="$libdir"
22813 libdir="$found_dir"
22814 eval flag=\"$hardcode_libdir_flag_spec\"
22815 libdir="$acl_save_libdir"
22816 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22820 if test "X$ltrpathdirs" != "X"; then
22821 for found_dir in $ltrpathdirs; do
22822 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22827 cat >conftest.$ac_ext <<_ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22833 #include <locale.h>
22837 extern locale_t wc_locales[]
22842 rm -f conftest.$ac_objext
22843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22844 (eval $ac_compile) 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } &&
22851 { ac_try='test -z "$ac_c_werror_flag"
22852 || 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_objext'
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
22882 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22883 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22884 # Check whether --enable-nls or --disable-nls was given.
22885 if test "${enable_nls+set}" = set; then
22886 enableval="$enable_nls"
22891 echo "$as_me:$LINENO: result: $USE_NLS" >&5
22892 echo "${ECHO_T}$USE_NLS" >&6
22901 if test "$USE_NLS" = "yes"; then
22902 gt_use_preinstalled_gnugettext=no
22909 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
22910 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
22911 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #include <libintl.h>
22921 extern int _nl_msg_cat_cntr;
22922 extern int *_nl_domain_bindings;
22926 bindtextdomain ("", "");
22927 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
22932 rm -f conftest.$ac_objext conftest$ac_exeext
22933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22934 (eval $ac_link) 2>conftest.er1
22936 grep -v '^ *+' conftest.er1 >conftest.err
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } &&
22941 { ac_try='test -z "$ac_c_werror_flag"
22942 || test ! -s conftest.err'
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; } &&
22948 { ac_try='test -s conftest$ac_exeext'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 gt_cv_func_gnugettext2_libc=yes
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22959 gt_cv_func_gnugettext2_libc=no
22961 rm -f conftest.err conftest.$ac_objext \
22962 conftest$ac_exeext conftest.$ac_ext
22964 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
22965 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
22967 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
22973 am_save_CPPFLAGS="$CPPFLAGS"
22975 for element in $INCICONV; do
22977 for x in $CPPFLAGS; do
22979 acl_save_prefix="$prefix"
22980 prefix="$acl_final_prefix"
22981 acl_save_exec_prefix="$exec_prefix"
22982 exec_prefix="$acl_final_exec_prefix"
22984 exec_prefix="$acl_save_exec_prefix"
22985 prefix="$acl_save_prefix"
22987 if test "X$x" = "X$element"; then
22992 if test -z "$haveit"; then
22993 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22998 echo "$as_me:$LINENO: checking for iconv" >&5
22999 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23000 if test "${am_cv_func_iconv+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23004 am_cv_func_iconv="no, consider installing GNU libiconv"
23006 cat >conftest.$ac_ext <<_ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23012 #include <stdlib.h>
23017 iconv_t cd = iconv_open("","");
23018 iconv(cd,NULL,NULL,NULL,NULL);
23024 rm -f conftest.$ac_objext conftest$ac_exeext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23026 (eval $ac_link) 2>conftest.er1
23028 grep -v '^ *+' conftest.er1 >conftest.err
23030 cat conftest.err >&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } &&
23033 { ac_try='test -z "$ac_c_werror_flag"
23034 || test ! -s conftest.err'
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; } &&
23040 { ac_try='test -s conftest$ac_exeext'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; }; then
23046 am_cv_func_iconv=yes
23048 echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23052 rm -f conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
23054 if test "$am_cv_func_iconv" != yes; then
23055 am_save_LIBS="$LIBS"
23056 LIBS="$LIBS $LIBICONV"
23057 cat >conftest.$ac_ext <<_ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23063 #include <stdlib.h>
23068 iconv_t cd = iconv_open("","");
23069 iconv(cd,NULL,NULL,NULL,NULL);
23075 rm -f conftest.$ac_objext conftest$ac_exeext
23076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23077 (eval $ac_link) 2>conftest.er1
23079 grep -v '^ *+' conftest.er1 >conftest.err
23081 cat conftest.err >&5
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); } &&
23084 { ac_try='test -z "$ac_c_werror_flag"
23085 || test ! -s conftest.err'
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; } &&
23091 { ac_try='test -s conftest$ac_exeext'
23092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093 (eval $ac_try) 2>&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); }; }; then
23097 am_cv_lib_iconv=yes
23098 am_cv_func_iconv=yes
23100 echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23104 rm -f conftest.err conftest.$ac_objext \
23105 conftest$ac_exeext conftest.$ac_ext
23106 LIBS="$am_save_LIBS"
23110 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23111 echo "${ECHO_T}$am_cv_func_iconv" >&6
23112 if test "$am_cv_func_iconv" = yes; then
23114 cat >>confdefs.h <<\_ACEOF
23115 @%:@define HAVE_ICONV 1
23119 if test "$am_cv_lib_iconv" = yes; then
23120 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23121 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
23122 echo "$as_me:$LINENO: result: $LIBICONV" >&5
23123 echo "${ECHO_T}$LIBICONV" >&6
23125 CPPFLAGS="$am_save_CPPFLAGS"
23137 acl_save_prefix="$prefix"
23138 prefix="$acl_final_prefix"
23139 acl_save_exec_prefix="$exec_prefix"
23140 exec_prefix="$acl_final_exec_prefix"
23142 eval additional_includedir=\"$includedir\"
23143 eval additional_libdir=\"$libdir\"
23145 exec_prefix="$acl_save_exec_prefix"
23146 prefix="$acl_save_prefix"
23149 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
23150 if test "${with_libintl_prefix+set}" = set; then
23151 withval="$with_libintl_prefix"
23153 if test "X$withval" = "Xno"; then
23156 if test "X$withval" = "X"; then
23158 acl_save_prefix="$prefix"
23159 prefix="$acl_final_prefix"
23160 acl_save_exec_prefix="$exec_prefix"
23161 exec_prefix="$acl_final_exec_prefix"
23163 eval additional_includedir=\"$includedir\"
23164 eval additional_libdir=\"$libdir\"
23166 exec_prefix="$acl_save_exec_prefix"
23167 prefix="$acl_save_prefix"
23170 additional_includedir="$withval/include"
23171 additional_libdir="$withval/lib"
23181 names_already_handled=
23182 names_next_round='intl '
23183 while test -n "$names_next_round"; do
23184 names_this_round="$names_next_round"
23186 for name in $names_this_round; do
23188 for n in $names_already_handled; do
23189 if test "$n" = "$name"; then
23190 already_handled=yes
23194 if test -z "$already_handled"; then
23195 names_already_handled="$names_already_handled $name"
23196 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23197 eval value=\"\$HAVE_LIB$uppername\"
23198 if test -n "$value"; then
23199 if test "$value" = yes; then
23200 eval value=\"\$LIB$uppername\"
23201 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23202 eval value=\"\$LTLIB$uppername\"
23203 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23212 if test $use_additional = yes; then
23213 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23214 found_dir="$additional_libdir"
23215 found_so="$additional_libdir/lib$name.$shlibext"
23216 if test -f "$additional_libdir/lib$name.la"; then
23217 found_la="$additional_libdir/lib$name.la"
23220 if test -f "$additional_libdir/lib$name.$libext"; then
23221 found_dir="$additional_libdir"
23222 found_a="$additional_libdir/lib$name.$libext"
23223 if test -f "$additional_libdir/lib$name.la"; then
23224 found_la="$additional_libdir/lib$name.la"
23229 if test "X$found_dir" = "X"; then
23230 for x in $LDFLAGS $LTLIBINTL; do
23232 acl_save_prefix="$prefix"
23233 prefix="$acl_final_prefix"
23234 acl_save_exec_prefix="$exec_prefix"
23235 exec_prefix="$acl_final_exec_prefix"
23237 exec_prefix="$acl_save_exec_prefix"
23238 prefix="$acl_save_prefix"
23242 dir=`echo "X$x" | sed -e 's/^X-L//'`
23243 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23245 found_so="$dir/lib$name.$shlibext"
23246 if test -f "$dir/lib$name.la"; then
23247 found_la="$dir/lib$name.la"
23250 if test -f "$dir/lib$name.$libext"; then
23252 found_a="$dir/lib$name.$libext"
23253 if test -f "$dir/lib$name.la"; then
23254 found_la="$dir/lib$name.la"
23260 if test "X$found_dir" != "X"; then
23265 if test "X$found_dir" != "X"; then
23266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23267 if test "X$found_so" != "X"; then
23268 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23269 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23272 for x in $ltrpathdirs; do
23273 if test "X$x" = "X$found_dir"; then
23278 if test -z "$haveit"; then
23279 ltrpathdirs="$ltrpathdirs $found_dir"
23281 if test "$hardcode_direct" = yes; then
23282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23284 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23285 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23287 for x in $rpathdirs; do
23288 if test "X$x" = "X$found_dir"; then
23293 if test -z "$haveit"; then
23294 rpathdirs="$rpathdirs $found_dir"
23298 for x in $LDFLAGS $LIBINTL; do
23300 acl_save_prefix="$prefix"
23301 prefix="$acl_final_prefix"
23302 acl_save_exec_prefix="$exec_prefix"
23303 exec_prefix="$acl_final_exec_prefix"
23305 exec_prefix="$acl_save_exec_prefix"
23306 prefix="$acl_save_prefix"
23308 if test "X$x" = "X-L$found_dir"; then
23313 if test -z "$haveit"; then
23314 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23316 if test "$hardcode_minus_L" != no; then
23317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23319 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23325 if test "X$found_a" != "X"; then
23326 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23328 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23331 additional_includedir=
23332 case "$found_dir" in
23334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23335 additional_includedir="$basedir/include"
23338 if test "X$additional_includedir" != "X"; then
23339 if test "X$additional_includedir" != "X/usr/include"; then
23341 if test "X$additional_includedir" = "X/usr/local/include"; then
23342 if test -n "$GCC"; then
23344 linux*) haveit=yes;;
23348 if test -z "$haveit"; then
23349 for x in $CPPFLAGS $INCINTL; do
23351 acl_save_prefix="$prefix"
23352 prefix="$acl_final_prefix"
23353 acl_save_exec_prefix="$exec_prefix"
23354 exec_prefix="$acl_final_exec_prefix"
23356 exec_prefix="$acl_save_exec_prefix"
23357 prefix="$acl_save_prefix"
23359 if test "X$x" = "X-I$additional_includedir"; then
23364 if test -z "$haveit"; then
23365 if test -d "$additional_includedir"; then
23366 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23372 if test -n "$found_la"; then
23373 save_libdir="$libdir"
23374 case "$found_la" in
23375 */* | *\\*) . "$found_la" ;;
23376 *) . "./$found_la" ;;
23378 libdir="$save_libdir"
23379 for dep in $dependency_libs; do
23382 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23383 if test "X$additional_libdir" != "X/usr/lib"; then
23385 if test "X$additional_libdir" = "X/usr/local/lib"; then
23386 if test -n "$GCC"; then
23388 linux*) haveit=yes;;
23392 if test -z "$haveit"; then
23394 for x in $LDFLAGS $LIBINTL; do
23396 acl_save_prefix="$prefix"
23397 prefix="$acl_final_prefix"
23398 acl_save_exec_prefix="$exec_prefix"
23399 exec_prefix="$acl_final_exec_prefix"
23401 exec_prefix="$acl_save_exec_prefix"
23402 prefix="$acl_save_prefix"
23404 if test "X$x" = "X-L$additional_libdir"; then
23409 if test -z "$haveit"; then
23410 if test -d "$additional_libdir"; then
23411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23415 for x in $LDFLAGS $LTLIBINTL; do
23417 acl_save_prefix="$prefix"
23418 prefix="$acl_final_prefix"
23419 acl_save_exec_prefix="$exec_prefix"
23420 exec_prefix="$acl_final_exec_prefix"
23422 exec_prefix="$acl_save_exec_prefix"
23423 prefix="$acl_save_prefix"
23425 if test "X$x" = "X-L$additional_libdir"; then
23430 if test -z "$haveit"; then
23431 if test -d "$additional_libdir"; then
23432 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23439 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23440 if test "$enable_rpath" != no; then
23442 for x in $rpathdirs; do
23443 if test "X$x" = "X$dir"; then
23448 if test -z "$haveit"; then
23449 rpathdirs="$rpathdirs $dir"
23452 for x in $ltrpathdirs; do
23453 if test "X$x" = "X$dir"; then
23458 if test -z "$haveit"; then
23459 ltrpathdirs="$ltrpathdirs $dir"
23464 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23467 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23470 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23477 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23478 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23484 if test "X$rpathdirs" != "X"; then
23485 if test -n "$hardcode_libdir_separator"; then
23487 for found_dir in $rpathdirs; do
23488 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23490 acl_save_libdir="$libdir"
23492 eval flag=\"$hardcode_libdir_flag_spec\"
23493 libdir="$acl_save_libdir"
23494 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23496 for found_dir in $rpathdirs; do
23497 acl_save_libdir="$libdir"
23498 libdir="$found_dir"
23499 eval flag=\"$hardcode_libdir_flag_spec\"
23500 libdir="$acl_save_libdir"
23501 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23505 if test "X$ltrpathdirs" != "X"; then
23506 for found_dir in $ltrpathdirs; do
23507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23511 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23512 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
23513 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23516 gt_save_CPPFLAGS="$CPPFLAGS"
23517 CPPFLAGS="$CPPFLAGS $INCINTL"
23518 gt_save_LIBS="$LIBS"
23519 LIBS="$LIBS $LIBINTL"
23520 cat >conftest.$ac_ext <<_ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 #include <libintl.h>
23527 extern int _nl_msg_cat_cntr;
23532 const char *_nl_expand_alias ();
23536 bindtextdomain ("", "");
23537 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23542 rm -f conftest.$ac_objext conftest$ac_exeext
23543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23544 (eval $ac_link) 2>conftest.er1
23546 grep -v '^ *+' conftest.er1 >conftest.err
23548 cat conftest.err >&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } &&
23551 { ac_try='test -z "$ac_c_werror_flag"
23552 || test ! -s conftest.err'
23553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554 (eval $ac_try) 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; } &&
23558 { ac_try='test -s conftest$ac_exeext'
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; }; then
23564 gt_cv_func_gnugettext2_libintl=yes
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 gt_cv_func_gnugettext2_libintl=no
23571 rm -f conftest.err conftest.$ac_objext \
23572 conftest$ac_exeext conftest.$ac_ext
23573 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
23574 LIBS="$LIBS $LIBICONV"
23575 cat >conftest.$ac_ext <<_ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include <libintl.h>
23582 extern int _nl_msg_cat_cntr;
23587 const char *_nl_expand_alias ();
23591 bindtextdomain ("", "");
23592 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
23597 rm -f conftest.$ac_objext conftest$ac_exeext
23598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23599 (eval $ac_link) 2>conftest.er1
23601 grep -v '^ *+' conftest.er1 >conftest.err
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } &&
23606 { ac_try='test -z "$ac_c_werror_flag"
23607 || test ! -s conftest.err'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; } &&
23613 { ac_try='test -s conftest$ac_exeext'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; }; then
23619 LIBINTL="$LIBINTL $LIBICONV"
23620 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23621 gt_cv_func_gnugettext2_libintl=yes
23624 echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23628 rm -f conftest.err conftest.$ac_objext \
23629 conftest$ac_exeext conftest.$ac_ext
23631 CPPFLAGS="$gt_save_CPPFLAGS"
23632 LIBS="$gt_save_LIBS"
23634 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
23635 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
23638 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
23639 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
23640 && test "$PACKAGE" != gettext-runtime \
23641 && test "$PACKAGE" != gettext-tools; }; then
23642 gt_use_preinstalled_gnugettext=yes
23651 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23652 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23654 cat >>confdefs.h <<\_ACEOF
23655 @%:@define ENABLE_NLS 1
23663 echo "$as_me:$LINENO: checking whether to use NLS" >&5
23664 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
23665 echo "$as_me:$LINENO: result: $USE_NLS" >&5
23666 echo "${ECHO_T}$USE_NLS" >&6
23667 if test "$USE_NLS" = "yes"; then
23668 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23669 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
23670 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23671 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23672 gt_source="external libintl"
23677 gt_source="included intl directory"
23679 echo "$as_me:$LINENO: result: $gt_source" >&5
23680 echo "${ECHO_T}$gt_source" >&6
23683 if test "$USE_NLS" = "yes"; then
23685 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23686 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
23687 echo "$as_me:$LINENO: checking how to link with libintl" >&5
23688 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
23689 echo "$as_me:$LINENO: result: $LIBINTL" >&5
23690 echo "${ECHO_T}$LIBINTL" >&6
23692 for element in $INCINTL; do
23694 for x in $CPPFLAGS; do
23696 acl_save_prefix="$prefix"
23697 prefix="$acl_final_prefix"
23698 acl_save_exec_prefix="$exec_prefix"
23699 exec_prefix="$acl_final_exec_prefix"
23701 exec_prefix="$acl_save_exec_prefix"
23702 prefix="$acl_save_prefix"
23704 if test "X$x" = "X$element"; then
23709 if test -z "$haveit"; then
23710 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23717 cat >>confdefs.h <<\_ACEOF
23718 @%:@define HAVE_GETTEXT 1
23722 cat >>confdefs.h <<\_ACEOF
23723 @%:@define HAVE_DCGETTEXT 1
23733 INTLLIBS="$LIBINTL"
23742 echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23762 # Check whether --with-rundir or --without-rundir was given.
23763 if test "${with_rundir+set}" = set; then
23764 withval="$with_rundir"
23767 rundir=/usr/local/citadel
23770 cat >>confdefs.h <<_ACEOF
23771 @%:@define RUNDIR "$rundir"
23777 # Check whether --with-staticdir or --without-staticdir was given.
23778 if test "${with_staticdir+set}" = set; then
23779 withval="$with_staticdir"
23787 # Check whether --with-staticrundir or --without-staticrundir was given.
23788 if test "${with_staticrundir+set}" = set; then
23789 withval="$with_staticrundir"
23790 staticrundir=$withval
23792 staticrundir=$staticdir
23796 cat >>confdefs.h <<_ACEOF
23797 @%:@define DATADIR "$staticrundir"
23803 # Check whether --with-editordir or --without-editordir was given.
23804 if test "${with_editordir+set}" = set; then
23805 withval="$with_editordir"
23808 editordir=$staticrundir
23812 cat >>confdefs.h <<_ACEOF
23813 @%:@define EDITORDIR "$editordir"
23819 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
23820 cat >confcache <<\_ACEOF
23821 # This file is a shell script that caches the results of configure
23822 # tests run on this system so they can be shared between configure
23823 # scripts and configure runs, see configure's option --config-cache.
23824 # It is not useful on other systems. If it contains results you don't
23825 # want to keep, you may remove or edit it.
23827 # config.status only pays attention to the cache file if you give it
23828 # the --recheck option to rerun configure.
23830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23832 # following values.
23836 # The following way of writing the cache mishandles newlines in values,
23837 # but we know of no workaround that is simple, portable, and efficient.
23838 # So, don't put newlines in cache variables' values.
23839 # Ultrix sh set writes to stderr and can't be redirected directly,
23840 # and sets the high bit in the cache file unless we assign to the vars.
23843 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23845 # `set' does not quote correctly, so add quotes (double-quote
23846 # substitution turns \\\\ into \\, and sed turns \\ into \).
23849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23852 # `set' quotes correctly as required by POSIX, so do not add quotes.
23854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23863 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23865 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23866 if test -w $cache_file; then
23867 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23868 cat confcache >$cache_file
23870 echo "not updating unwritable cache $cache_file"
23875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23876 # Let make expand exec_prefix.
23877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23881 # trailing colons and then remove the whole line if VPATH becomes empty
23882 # (actually we leave an empty line to preserve line numbers).
23883 if test "x$srcdir" = x.; then
23884 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23885 s/:*\$(srcdir):*/:/;
23886 s/:*\${srcdir}:*/:/;
23888 s/^\([^=]*=[ ]*\):*/\1/;
23894 DEFS=-DHAVE_CONFIG_H
23898 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23899 # 1. Remove the extension, and $U if already installed.
23900 ac_i=`echo "$ac_i" |
23901 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23903 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23904 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23906 LIB@&t@OBJS=$ac_libobjs
23908 LTLIBOBJS=$ac_ltlibobjs
23911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23912 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23913 Usually this means the macro was only invoked conditionally." >&5
23914 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23915 Usually this means the macro was only invoked conditionally." >&2;}
23916 { (exit 1); exit 1; }; }
23918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23919 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23920 Usually this means the macro was only invoked conditionally." >&5
23921 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23922 Usually this means the macro was only invoked conditionally." >&2;}
23923 { (exit 1); exit 1; }; }
23925 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23926 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23927 Usually this means the macro was only invoked conditionally." >&5
23928 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23929 Usually this means the macro was only invoked conditionally." >&2;}
23930 { (exit 1); exit 1; }; }
23932 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23933 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23934 Usually this means the macro was only invoked conditionally." >&5
23935 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23936 Usually this means the macro was only invoked conditionally." >&2;}
23937 { (exit 1); exit 1; }; }
23940 mv -f po/POTFILES po/POTFILES.tmp
23941 sed -e '/[[]encoding.*]/d' -e 's/[[].*] *//' < po/POTFILES.tmp > po/POTFILES
23942 rm -f po/POTFILES.tmp
23945 : ${CONFIG_STATUS=./config.status}
23946 ac_clean_files_save=$ac_clean_files
23947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23948 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23949 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23950 cat >$CONFIG_STATUS <<_ACEOF
23952 # Generated by $as_me.
23953 # Run this file to recreate the current configuration.
23954 # Compiler output produced by configure, useful for debugging
23955 # configure, is in config.log if it exists.
23958 ac_cs_recheck=false
23960 SHELL=\${CONFIG_SHELL-$SHELL}
23963 cat >>$CONFIG_STATUS <<\_ACEOF
23964 ## --------------------- ##
23965 ## M4sh Initialization. ##
23966 ## --------------------- ##
23968 # Be Bourne compatible
23969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23972 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23973 # is contrary to our usage. Disable this feature.
23974 alias -g '${1+"$@"}'='"$@"'
23975 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23978 DUALCASE=1; export DUALCASE # for MKS sh
23980 # Support unset when possible.
23981 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23988 # Work around bugs in pre-3.0 UWIN ksh.
23989 $as_unset ENV MAIL MAILPATH
23996 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23997 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23998 LC_TELEPHONE LC_TIME
24000 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24001 eval $as_var=C; export $as_var
24007 # Required to use basename.
24008 if expr a : '\(a\)' >/dev/null 2>&1; then
24014 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24015 as_basename=basename
24021 # Name of the executable.
24022 as_me=`$as_basename "$0" ||
24023 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24024 X"$0" : 'X\(//\)$' \| \
24025 X"$0" : 'X\(/\)$' \| \
24026 . : '\(.\)' 2>/dev/null ||
24028 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24029 /^X\/\(\/\/\)$/{ s//\1/; q; }
24030 /^X\/\(\/\).*/{ s//\1/; q; }
24034 # PATH needs CR, and LINENO needs CR and PATH.
24035 # Avoid depending upon Character Ranges.
24036 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24037 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24038 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24039 as_cr_digits='0123456789'
24040 as_cr_alnum=$as_cr_Letters$as_cr_digits
24042 # The user is always right.
24043 if test "${PATH_SEPARATOR+set}" != set; then
24044 echo "#! /bin/sh" >conf$$.sh
24045 echo "exit 0" >>conf$$.sh
24047 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24056 as_lineno_1=$LINENO
24057 as_lineno_2=$LINENO
24058 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24059 test "x$as_lineno_1" != "x$as_lineno_2" &&
24060 test "x$as_lineno_3" = "x$as_lineno_2" || {
24061 # Find who we are. Look in the path if we contain no path at all
24064 *[\\/]* ) as_myself=$0 ;;
24065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24066 for as_dir in $PATH
24069 test -z "$as_dir" && as_dir=.
24070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24075 # We did not find ourselves, most probably we were run as `sh COMMAND'
24076 # in which case we are not to be found in the path.
24077 if test "x$as_myself" = x; then
24080 if test ! -f "$as_myself"; then
24081 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24082 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24083 { (exit 1); exit 1; }; }
24085 case $CONFIG_SHELL in
24087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24088 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24091 test -z "$as_dir" && as_dir=.
24092 for as_base in sh bash ksh sh5; do
24095 if ("$as_dir/$as_base" -c '
24096 as_lineno_1=$LINENO
24097 as_lineno_2=$LINENO
24098 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24099 test "x$as_lineno_1" != "x$as_lineno_2" &&
24100 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24101 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24102 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24103 CONFIG_SHELL=$as_dir/$as_base
24104 export CONFIG_SHELL
24105 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24113 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24114 # uniformly replaced by the line number. The first 'sed' inserts a
24115 # line-number line before each line; the second 'sed' does the real
24116 # work. The second script uses 'N' to pair each line-number line
24117 # with the numbered line, and appends trailing '-' during
24118 # substitution so that $LINENO is not a special case at line end.
24119 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24120 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24121 sed '=' <$as_myself |
24126 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24129 s,^['$as_cr_digits']*\n,,
24130 ' >$as_me.lineno &&
24131 chmod +x $as_me.lineno ||
24132 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24133 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24134 { (exit 1); exit 1; }; }
24136 # Don't try to exec as it changes $[0], causing all sort of problems
24137 # (the dirname of $[0] is not the place where we might find the
24138 # original and so on. Autoconf is especially sensible to this).
24140 # Exit status is that of the last command.
24145 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24146 *c*,-n*) ECHO_N= ECHO_C='
24148 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24149 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24152 if expr a : '\(a\)' >/dev/null 2>&1; then
24158 rm -f conf$$ conf$$.exe conf$$.file
24160 if ln -s conf$$.file conf$$ 2>/dev/null; then
24161 # We could just check for DJGPP; but this test a) works b) is more generic
24162 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24163 if test -f conf$$.exe; then
24164 # Don't use ln at all; we don't have any links
24169 elif ln conf$$.file conf$$ 2>/dev/null; then
24174 rm -f conf$$ conf$$.exe conf$$.file
24176 if mkdir -p . 2>/dev/null; then
24179 test -d ./-p && rmdir ./-p
24183 as_executable_p="test -f"
24185 # Sed expression to map a string onto a valid CPP name.
24186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24188 # Sed expression to map a string onto a valid variable name.
24189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24193 # We need space, tab and new line, in precisely that order.
24203 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24204 # report actual input values of CONFIG_FILES etc. instead of their
24205 # values after options handling. Logging --version etc. is OK.
24209 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
24210 @%:@@%:@ Running $as_me. @%:@@%:@
24215 This file was extended by webcit $as_me 6.80, which was
24216 generated by GNU Autoconf 2.59. Invocation command line was
24218 CONFIG_FILES = $CONFIG_FILES
24219 CONFIG_HEADERS = $CONFIG_HEADERS
24220 CONFIG_LINKS = $CONFIG_LINKS
24221 CONFIG_COMMANDS = $CONFIG_COMMANDS
24225 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24229 # Files that config.status was made for.
24230 if test -n "$ac_config_files"; then
24231 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24234 if test -n "$ac_config_headers"; then
24235 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24238 if test -n "$ac_config_links"; then
24239 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24242 if test -n "$ac_config_commands"; then
24243 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24246 cat >>$CONFIG_STATUS <<\_ACEOF
24249 \`$as_me' instantiates files from templates according to the
24250 current configuration.
24252 Usage: $0 [OPTIONS] [FILE]...
24254 -h, --help print this help, then exit
24255 -V, --version print version number, then exit
24256 -q, --quiet do not print progress messages
24257 -d, --debug don't remove temporary files
24258 --recheck update $as_me by reconfiguring in the same conditions
24259 --file=FILE[:TEMPLATE]
24260 instantiate the configuration file FILE
24261 --header=FILE[:TEMPLATE]
24262 instantiate the configuration header FILE
24264 Configuration files:
24267 Configuration headers:
24270 Configuration commands:
24273 Report bugs to <bug-autoconf@gnu.org>."
24276 cat >>$CONFIG_STATUS <<_ACEOF
24278 webcit config.status 6.80
24279 configured by $0, generated by GNU Autoconf 2.59,
24280 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24282 Copyright (C) 2003 Free Software Foundation, Inc.
24283 This config.status script is free software; the Free Software Foundation
24284 gives unlimited permission to copy, distribute and modify it."
24289 cat >>$CONFIG_STATUS <<\_ACEOF
24290 # If no file are specified by the user, then we need to provide default
24291 # value. By we need to know if files were specified by the user.
24297 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24298 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24306 *) # This is not an option, so the user has probably given explicit
24309 ac_need_defaults=false;;
24313 # Handling of the options.
24315 cat >>$CONFIG_STATUS <<\_ACEOF
24316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24318 --version | --vers* | -V )
24319 echo "$ac_cs_version"; exit 0 ;;
24321 # Conflict between --help and --header
24322 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24323 Try \`$0 --help' for more information." >&5
24324 echo "$as_me: error: ambiguous option: $1
24325 Try \`$0 --help' for more information." >&2;}
24326 { (exit 1); exit 1; }; };;
24327 --help | --hel | -h )
24328 echo "$ac_cs_usage"; exit 0 ;;
24329 --debug | --d* | -d )
24331 --file | --fil | --fi | --f )
24333 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24334 ac_need_defaults=false;;
24335 --header | --heade | --head | --hea )
24337 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24338 ac_need_defaults=false;;
24339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24340 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24343 # This is an error.
24344 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24345 Try \`$0 --help' for more information." >&5
24346 echo "$as_me: error: unrecognized option: $1
24347 Try \`$0 --help' for more information." >&2;}
24348 { (exit 1); exit 1; }; } ;;
24350 *) ac_config_targets="$ac_config_targets $1" ;;
24356 ac_configure_extra_args=
24358 if $ac_cs_silent; then
24360 ac_configure_extra_args="$ac_configure_extra_args --silent"
24364 cat >>$CONFIG_STATUS <<_ACEOF
24365 if \$ac_cs_recheck; then
24366 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24367 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24372 cat >>$CONFIG_STATUS <<_ACEOF
24374 # INIT-COMMANDS section.
24377 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24378 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
24379 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
24380 MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
24381 XGETTEXT='${INTLTOOL_XGETTEXT}'
24382 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24383 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24385 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24386 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24387 LINGUAS="${LINGUAS-%UNSET%}"
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395 for ac_config_target in $ac_config_targets
24397 case "$ac_config_target" in
24398 # Handling of arguments.
24399 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24400 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24401 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24402 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24403 "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
24404 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24405 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24406 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24407 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24408 { (exit 1); exit 1; }; };;
24412 # If the user did not use the arguments to specify the items to instantiate,
24413 # then the envvar interface is used. Set only those that are not.
24414 # We use the long form for the default assignment because of an extremely
24415 # bizarre bug on SunOS 4.1.3.
24416 if $ac_need_defaults; then
24417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24422 # Have a temporary directory for convenience. Make it in the build tree
24423 # simply because there is no reason to put it here, and in addition,
24424 # creating and moving files from /tmp can sometimes cause problems.
24425 # Create a temporary directory, and hook for its removal unless debugging.
24428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24429 trap '{ (exit 1); exit 1; }' 1 2 13 15
24432 # Create a (secure) tmp directory for tmp files.
24435 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24436 test -n "$tmp" && test -d "$tmp"
24439 tmp=./confstat$$-$RANDOM
24440 (umask 077 && mkdir $tmp)
24443 echo "$me: cannot create a temporary directory in ." >&2
24444 { (exit 1); exit 1; }
24449 cat >>$CONFIG_STATUS <<_ACEOF
24452 # CONFIG_FILES section.
24455 # No need to generate the scripts if there are no CONFIG_FILES.
24456 # This happens for instance when ./config.status config.h
24457 if test -n "\$CONFIG_FILES"; then
24458 # Protect against being on the right side of a sed subst in config.status.
24459 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24460 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24461 s,@SHELL@,$SHELL,;t t
24462 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24463 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24464 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24465 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24466 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24467 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24468 s,@exec_prefix@,$exec_prefix,;t t
24469 s,@prefix@,$prefix,;t t
24470 s,@program_transform_name@,$program_transform_name,;t t
24471 s,@bindir@,$bindir,;t t
24472 s,@sbindir@,$sbindir,;t t
24473 s,@libexecdir@,$libexecdir,;t t
24474 s,@datadir@,$datadir,;t t
24475 s,@sysconfdir@,$sysconfdir,;t t
24476 s,@sharedstatedir@,$sharedstatedir,;t t
24477 s,@localstatedir@,$localstatedir,;t t
24478 s,@libdir@,$libdir,;t t
24479 s,@includedir@,$includedir,;t t
24480 s,@oldincludedir@,$oldincludedir,;t t
24481 s,@infodir@,$infodir,;t t
24482 s,@mandir@,$mandir,;t t
24483 s,@build_alias@,$build_alias,;t t
24484 s,@host_alias@,$host_alias,;t t
24485 s,@target_alias@,$target_alias,;t t
24486 s,@DEFS@,$DEFS,;t t
24487 s,@ECHO_C@,$ECHO_C,;t t
24488 s,@ECHO_N@,$ECHO_N,;t t
24489 s,@ECHO_T@,$ECHO_T,;t t
24490 s,@LIBS@,$LIBS,;t t
24491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24494 s,@CYGPATH_W@,$CYGPATH_W,;t t
24495 s,@PACKAGE@,$PACKAGE,;t t
24496 s,@VERSION@,$VERSION,;t t
24497 s,@ACLOCAL@,$ACLOCAL,;t t
24498 s,@AUTOCONF@,$AUTOCONF,;t t
24499 s,@AUTOMAKE@,$AUTOMAKE,;t t
24500 s,@AUTOHEADER@,$AUTOHEADER,;t t
24501 s,@MAKEINFO@,$MAKEINFO,;t t
24502 s,@install_sh@,$install_sh,;t t
24503 s,@STRIP@,$STRIP,;t t
24504 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24505 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24506 s,@mkdir_p@,$mkdir_p,;t t
24508 s,@SET_MAKE@,$SET_MAKE,;t t
24509 s,@am__leading_dot@,$am__leading_dot,;t t
24510 s,@AMTAR@,$AMTAR,;t t
24511 s,@am__tar@,$am__tar,;t t
24512 s,@am__untar@,$am__untar,;t t
24513 s,@build@,$build,;t t
24514 s,@build_cpu@,$build_cpu,;t t
24515 s,@build_vendor@,$build_vendor,;t t
24516 s,@build_os@,$build_os,;t t
24517 s,@host@,$host,;t t
24518 s,@host_cpu@,$host_cpu,;t t
24519 s,@host_vendor@,$host_vendor,;t t
24520 s,@host_os@,$host_os,;t t
24522 s,@CFLAGS@,$CFLAGS,;t t
24523 s,@LDFLAGS@,$LDFLAGS,;t t
24524 s,@CPPFLAGS@,$CPPFLAGS,;t t
24525 s,@ac_ct_CC@,$ac_ct_CC,;t t
24526 s,@EXEEXT@,$EXEEXT,;t t
24527 s,@OBJEXT@,$OBJEXT,;t t
24528 s,@DEPDIR@,$DEPDIR,;t t
24529 s,@am__include@,$am__include,;t t
24530 s,@am__quote@,$am__quote,;t t
24531 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24532 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24533 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24534 s,@CCDEPMODE@,$CCDEPMODE,;t t
24535 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24536 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24537 s,@EGREP@,$EGREP,;t t
24538 s,@LN_S@,$LN_S,;t t
24539 s,@ECHO@,$ECHO,;t t
24541 s,@ac_ct_AR@,$ac_ct_AR,;t t
24542 s,@RANLIB@,$RANLIB,;t t
24543 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24546 s,@CXXFLAGS@,$CXXFLAGS,;t t
24547 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24548 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24549 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24550 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24551 s,@CXXCPP@,$CXXCPP,;t t
24553 s,@FFLAGS@,$FFLAGS,;t t
24554 s,@ac_ct_F77@,$ac_ct_F77,;t t
24555 s,@LIBTOOL@,$LIBTOOL,;t t
24556 s,@PROG_SUBDIRS@,$PROG_SUBDIRS,;t t
24558 s,@PTHREAD_DEFS@,$PTHREAD_DEFS,;t t
24559 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
24560 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
24561 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
24562 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
24563 s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
24564 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
24565 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
24566 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
24567 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
24568 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
24569 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
24570 s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
24571 s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
24572 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
24573 s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
24574 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
24575 s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
24576 s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
24577 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
24578 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
24579 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
24580 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
24581 s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
24582 s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
24583 s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
24584 s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
24585 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24586 s,@USE_NLS@,$USE_NLS,;t t
24587 s,@MSGFMT@,$MSGFMT,;t t
24588 s,@GMSGFMT@,$GMSGFMT,;t t
24589 s,@XGETTEXT@,$XGETTEXT,;t t
24590 s,@MSGMERGE@,$MSGMERGE,;t t
24591 s,@LIBICONV@,$LIBICONV,;t t
24592 s,@LTLIBICONV@,$LTLIBICONV,;t t
24593 s,@INTLLIBS@,$INTLLIBS,;t t
24594 s,@LIBINTL@,$LIBINTL,;t t
24595 s,@LTLIBINTL@,$LTLIBINTL,;t t
24596 s,@POSUB@,$POSUB,;t t
24597 s,@SETUP_LIBS@,$SETUP_LIBS,;t t
24598 s,@staticdir@,$staticdir,;t t
24599 s,@editordir@,$editordir,;t t
24600 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24605 cat >>$CONFIG_STATUS <<\_ACEOF
24606 # Split the substitutions into bite-sized pieces for seds with
24607 # small command number limits, like on Digital OSF/1 and HP-UX.
24608 ac_max_sed_lines=48
24609 ac_sed_frag=1 # Number of current file.
24610 ac_beg=1 # First line for current file.
24611 ac_end=$ac_max_sed_lines # Line after last line for current file.
24614 while $ac_more_lines; do
24615 if test $ac_beg -gt 1; then
24616 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24618 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24620 if test ! -s $tmp/subs.frag; then
24621 ac_more_lines=false
24623 # The purpose of the label and of the branching condition is to
24624 # speed up the sed processing (if there are no `@' at all, there
24625 # is no need to browse any of the substitutions).
24626 # These are the two extra sed commands mentioned above.
24628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24629 if test -z "$ac_sed_cmds"; then
24630 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24632 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24634 ac_sed_frag=`expr $ac_sed_frag + 1`
24636 ac_end=`expr $ac_end + $ac_max_sed_lines`
24639 if test -z "$ac_sed_cmds"; then
24642 fi # test -n "$CONFIG_FILES"
24645 cat >>$CONFIG_STATUS <<\_ACEOF
24646 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24649 - | *:- | *:-:* ) # input from stdin
24651 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24653 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24654 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24655 * ) ac_file_in=$ac_file.in ;;
24658 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24659 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24661 X"$ac_file" : 'X\(//\)[^/]' \| \
24662 X"$ac_file" : 'X\(//\)$' \| \
24663 X"$ac_file" : 'X\(/\)' \| \
24664 . : '\(.\)' 2>/dev/null ||
24666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24668 /^X\(\/\/\)$/{ s//\1/; q; }
24669 /^X\(\/\).*/{ s//\1/; q; }
24671 { if $as_mkdir_p; then
24676 while test ! -d "$as_dir"; do
24677 as_dirs="$as_dir $as_dirs"
24678 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24680 X"$as_dir" : 'X\(//\)[^/]' \| \
24681 X"$as_dir" : 'X\(//\)$' \| \
24682 X"$as_dir" : 'X\(/\)' \| \
24683 . : '\(.\)' 2>/dev/null ||
24685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24687 /^X\(\/\/\)$/{ s//\1/; q; }
24688 /^X\(\/\).*/{ s//\1/; q; }
24691 test ! -n "$as_dirs" || mkdir $as_dirs
24692 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24693 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24694 { (exit 1); exit 1; }; }; }
24698 if test "$ac_dir" != .; then
24699 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24700 # A "../" for each directory in $ac_dir_suffix.
24701 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24703 ac_dir_suffix= ac_top_builddir=
24707 .) # No --srcdir option. We are building in place.
24709 if test -z "$ac_top_builddir"; then
24712 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24714 [\\/]* | ?:[\\/]* ) # Absolute path.
24715 ac_srcdir=$srcdir$ac_dir_suffix;
24716 ac_top_srcdir=$srcdir ;;
24717 *) # Relative path.
24718 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24719 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24722 # Do not use `cd foo && pwd` to compute absolute paths, because
24723 # the directories may not exist.
24725 .) ac_abs_builddir="$ac_dir";;
24728 .) ac_abs_builddir=`pwd`;;
24729 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24730 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24733 case $ac_abs_builddir in
24734 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24736 case ${ac_top_builddir}. in
24737 .) ac_abs_top_builddir=$ac_abs_builddir;;
24738 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24739 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24742 case $ac_abs_builddir in
24743 .) ac_abs_srcdir=$ac_srcdir;;
24746 .) ac_abs_srcdir=$ac_abs_builddir;;
24747 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24748 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24751 case $ac_abs_builddir in
24752 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24754 case $ac_top_srcdir in
24755 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24756 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24757 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24764 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24767 if test x"$ac_file" != x-; then
24768 { echo "$as_me:$LINENO: creating $ac_file" >&5
24769 echo "$as_me: creating $ac_file" >&6;}
24772 # Let's still pretend it is `configure' which instantiates (i.e., don't
24773 # use $as_me), people would be surprised to read:
24774 # /* config.h. Generated by config.status. */
24775 if test x"$ac_file" = x-; then
24778 configure_input="$ac_file. "
24780 configure_input=$configure_input"Generated from `echo $ac_file_in |
24781 sed 's,.*/,,'` by configure."
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; }; }
24796 if test -f "$f"; then
24799 elif test -f "$srcdir/$f"; then
24804 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24805 echo "$as_me: error: cannot find input file: $f" >&2;}
24806 { (exit 1); exit 1; }; }
24809 done` || { (exit 1); exit 1; }
24811 cat >>$CONFIG_STATUS <<_ACEOF
24815 cat >>$CONFIG_STATUS <<\_ACEOF
24817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24818 s,@configure_input@,$configure_input,;t t
24819 s,@srcdir@,$ac_srcdir,;t t
24820 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24821 s,@top_srcdir@,$ac_top_srcdir,;t t
24822 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24823 s,@builddir@,$ac_builddir,;t t
24824 s,@abs_builddir@,$ac_abs_builddir,;t t
24825 s,@top_builddir@,$ac_top_builddir,;t t
24826 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24827 s,@INSTALL@,$ac_INSTALL,;t t
24828 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24830 if test x"$ac_file" != x-; then
24831 mv $tmp/out $ac_file
24839 cat >>$CONFIG_STATUS <<\_ACEOF
24842 # CONFIG_HEADER section.
24845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24848 # ac_d sets the value in "#define NAME VALUE" lines.
24849 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24850 ac_dB='[ ].*$,\1#\2'
24853 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24854 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24855 ac_uB='$,\1#\2define\3'
24859 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24862 - | *:- | *:-:* ) # input from stdin
24864 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24866 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24868 * ) ac_file_in=$ac_file.in ;;
24871 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24872 echo "$as_me: creating $ac_file" >&6;}
24874 # First look for the input files in the build tree, otherwise in the
24876 ac_file_inputs=`IFS=:
24877 for f in $ac_file_in; do
24879 -) echo $tmp/stdin ;;
24881 # Absolute (can't be DOS-style, as IFS=:)
24882 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24883 echo "$as_me: error: cannot find input file: $f" >&2;}
24884 { (exit 1); exit 1; }; }
24885 # Do quote $f, to prevent DOS paths from being IFS'd.
24888 if test -f "$f"; then
24891 elif test -f "$srcdir/$f"; then
24896 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24897 echo "$as_me: error: cannot find input file: $f" >&2;}
24898 { (exit 1); exit 1; }; }
24901 done` || { (exit 1); exit 1; }
24902 # Remove the trailing spaces.
24903 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24907 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24908 # `conftest.undefs', that substitutes the proper values into
24909 # config.h.in to produce config.h. The first handles `#define'
24910 # templates, and the second `#undef' templates.
24911 # And first: Protect against being on the right side of a sed subst in
24912 # config.status. Protect against being in an unquoted here document
24913 # in config.status.
24914 rm -f conftest.defines conftest.undefs
24915 # Using a here document instead of a string reduces the quoting nightmare.
24916 # Putting comments in sed scripts is not portable.
24918 # `end' is used to avoid that the second main sed command (meant for
24919 # 0-ary CPP macros) applies to n-ary macro definitions.
24920 # See the Autoconf documentation for `clear'.
24921 cat >confdef2sed.sed <<\_ACEOF
24926 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24928 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24931 # If some macros were called several times there might be several times
24932 # the same #defines, which is useless. Nevertheless, we may not want to
24933 # sort them, since we want the *last* AC-DEFINE to be honored.
24934 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24935 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24936 rm -f confdef2sed.sed
24938 # This sed command replaces #undef with comments. This is necessary, for
24939 # example, in the case of _POSIX_SOURCE, which is predefined and required
24940 # on some systems where configure will not decide to define it.
24941 cat >>conftest.undefs <<\_ACEOF
24942 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24945 # Break up conftest.defines because some shells have a limit on the size
24946 # of here documents, and old seds have small limits too (100 cmds).
24947 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24948 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24949 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24950 echo ' :' >>$CONFIG_STATUS
24951 rm -f conftest.tail
24952 while grep . conftest.defines >/dev/null
24954 # Write a limited-size here document to $tmp/defines.sed.
24955 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24956 # Speed up: don't consider the non `#define' lines.
24957 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24958 # Work around the forget-to-reset-the-flag bug.
24959 echo 't clr' >>$CONFIG_STATUS
24960 echo ': clr' >>$CONFIG_STATUS
24961 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24963 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24965 mv $tmp/out $tmp/in
24967 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24968 rm -f conftest.defines
24969 mv conftest.tail conftest.defines
24971 rm -f conftest.defines
24972 echo ' fi # grep' >>$CONFIG_STATUS
24973 echo >>$CONFIG_STATUS
24975 # Break up conftest.undefs because some shells have a limit on the size
24976 # of here documents, and old seds have small limits too (100 cmds).
24977 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24978 rm -f conftest.tail
24979 while grep . conftest.undefs >/dev/null
24981 # Write a limited-size here document to $tmp/undefs.sed.
24982 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24983 # Speed up: don't consider the non `#undef'
24984 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24985 # Work around the forget-to-reset-the-flag bug.
24986 echo 't clr' >>$CONFIG_STATUS
24987 echo ': clr' >>$CONFIG_STATUS
24988 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24990 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24992 mv $tmp/out $tmp/in
24994 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24995 rm -f conftest.undefs
24996 mv conftest.tail conftest.undefs
24998 rm -f conftest.undefs
25000 cat >>$CONFIG_STATUS <<\_ACEOF
25001 # Let's still pretend it is `configure' which instantiates (i.e., don't
25002 # use $as_me), people would be surprised to read:
25003 # /* config.h. Generated by config.status. */
25004 if test x"$ac_file" = x-; then
25005 echo "/* Generated by configure. */" >$tmp/config.h
25007 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25009 cat $tmp/in >>$tmp/config.h
25011 if test x"$ac_file" != x-; then
25012 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25013 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25014 echo "$as_me: $ac_file is unchanged" >&6;}
25016 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25018 X"$ac_file" : 'X\(//\)[^/]' \| \
25019 X"$ac_file" : 'X\(//\)$' \| \
25020 X"$ac_file" : 'X\(/\)' \| \
25021 . : '\(.\)' 2>/dev/null ||
25023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25025 /^X\(\/\/\)$/{ s//\1/; q; }
25026 /^X\(\/\).*/{ s//\1/; q; }
25028 { if $as_mkdir_p; then
25033 while test ! -d "$as_dir"; do
25034 as_dirs="$as_dir $as_dirs"
25035 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25036 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25037 X"$as_dir" : 'X\(//\)[^/]' \| \
25038 X"$as_dir" : 'X\(//\)$' \| \
25039 X"$as_dir" : 'X\(/\)' \| \
25040 . : '\(.\)' 2>/dev/null ||
25042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25044 /^X\(\/\/\)$/{ s//\1/; q; }
25045 /^X\(\/\).*/{ s//\1/; q; }
25048 test ! -n "$as_dirs" || mkdir $as_dirs
25049 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25050 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25051 { (exit 1); exit 1; }; }; }
25054 mv $tmp/config.h $ac_file
25058 rm -f $tmp/config.h
25060 # Compute $ac_file's index in $config_headers.
25062 for _am_header in $config_headers :; do
25063 case $_am_header in
25064 $ac_file | $ac_file:* )
25067 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25070 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25071 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25072 X$ac_file : 'X\(//\)[^/]' \| \
25073 X$ac_file : 'X\(//\)$' \| \
25074 X$ac_file : 'X\(/\)' \| \
25075 . : '\(.\)' 2>/dev/null ||
25077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25079 /^X\(\/\/\)$/{ s//\1/; q; }
25080 /^X\(\/\).*/{ s//\1/; q; }
25081 s/.*/./; q'`/stamp-h$_am_stamp_count
25084 cat >>$CONFIG_STATUS <<\_ACEOF
25087 # CONFIG_COMMANDS section.
25089 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25090 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25091 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25092 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25093 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25094 X"$ac_dest" : 'X\(//\)[^/]' \| \
25095 X"$ac_dest" : 'X\(//\)$' \| \
25096 X"$ac_dest" : 'X\(/\)' \| \
25097 . : '\(.\)' 2>/dev/null ||
25099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25101 /^X\(\/\/\)$/{ s//\1/; q; }
25102 /^X\(\/\).*/{ s//\1/; q; }
25104 { if $as_mkdir_p; then
25109 while test ! -d "$as_dir"; do
25110 as_dirs="$as_dir $as_dirs"
25111 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25113 X"$as_dir" : 'X\(//\)[^/]' \| \
25114 X"$as_dir" : 'X\(//\)$' \| \
25115 X"$as_dir" : 'X\(/\)' \| \
25116 . : '\(.\)' 2>/dev/null ||
25118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25120 /^X\(\/\/\)$/{ s//\1/; q; }
25121 /^X\(\/\).*/{ s//\1/; q; }
25124 test ! -n "$as_dirs" || mkdir $as_dirs
25125 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25127 { (exit 1); exit 1; }; }; }
25131 if test "$ac_dir" != .; then
25132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25133 # A "../" for each directory in $ac_dir_suffix.
25134 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25136 ac_dir_suffix= ac_top_builddir=
25140 .) # No --srcdir option. We are building in place.
25142 if test -z "$ac_top_builddir"; then
25145 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25147 [\\/]* | ?:[\\/]* ) # Absolute path.
25148 ac_srcdir=$srcdir$ac_dir_suffix;
25149 ac_top_srcdir=$srcdir ;;
25150 *) # Relative path.
25151 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25152 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25155 # Do not use `cd foo && pwd` to compute absolute paths, because
25156 # the directories may not exist.
25158 .) ac_abs_builddir="$ac_dir";;
25161 .) ac_abs_builddir=`pwd`;;
25162 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25163 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25166 case $ac_abs_builddir in
25167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25169 case ${ac_top_builddir}. in
25170 .) ac_abs_top_builddir=$ac_abs_builddir;;
25171 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25172 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25175 case $ac_abs_builddir in
25176 .) ac_abs_srcdir=$ac_srcdir;;
25179 .) ac_abs_srcdir=$ac_abs_builddir;;
25180 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25181 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25184 case $ac_abs_builddir in
25185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25187 case $ac_top_srcdir in
25188 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25189 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25190 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25195 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25196 echo "$as_me: executing $ac_dest commands" >&6;}
25198 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25199 # Strip MF so we end up with the name of the file.
25200 mf=`echo "$mf" | sed -e 's/:.*$//'`
25201 # Check whether this is an Automake generated Makefile or not.
25202 # We used to match only the files named `Makefile.in', but
25203 # some people rename them; so instead we look at the file content.
25204 # Grep'ing the first line is not enough: some people post-process
25205 # each Makefile.in and add a new line on top of each file to say so.
25206 # So let's grep whole file.
25207 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25208 dirpart=`(dirname "$mf") 2>/dev/null ||
25209 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25210 X"$mf" : 'X\(//\)[^/]' \| \
25211 X"$mf" : 'X\(//\)$' \| \
25212 X"$mf" : 'X\(/\)' \| \
25213 . : '\(.\)' 2>/dev/null ||
25215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25217 /^X\(\/\/\)$/{ s//\1/; q; }
25218 /^X\(\/\).*/{ s//\1/; q; }
25223 # Extract the definition of DEPDIR, am__include, and am__quote
25224 # from the Makefile without running `make'.
25225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25226 test -z "$DEPDIR" && continue
25227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25228 test -z "am__include" && continue
25229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25230 # When using ansi2knr, U may be empty or an underscore; expand it
25231 U=`sed -n 's/^U = //p' < "$mf"`
25232 # Find all dependency output files, they are included files with
25233 # $(DEPDIR) in their names. We invoke sed twice because it is the
25234 # simplest approach to changing $(DEPDIR) to its actual value in the
25236 for file in `sed -n "
25237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25239 # Make sure the directory exists.
25240 test -f "$dirpart/$file" && continue
25241 fdir=`(dirname "$file") 2>/dev/null ||
25242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25243 X"$file" : 'X\(//\)[^/]' \| \
25244 X"$file" : 'X\(//\)$' \| \
25245 X"$file" : 'X\(/\)' \| \
25246 . : '\(.\)' 2>/dev/null ||
25248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25250 /^X\(\/\/\)$/{ s//\1/; q; }
25251 /^X\(\/\).*/{ s//\1/; q; }
25253 { if $as_mkdir_p; then
25254 mkdir -p $dirpart/$fdir
25256 as_dir=$dirpart/$fdir
25258 while test ! -d "$as_dir"; do
25259 as_dirs="$as_dir $as_dirs"
25260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25262 X"$as_dir" : 'X\(//\)[^/]' \| \
25263 X"$as_dir" : 'X\(//\)$' \| \
25264 X"$as_dir" : 'X\(/\)' \| \
25265 . : '\(.\)' 2>/dev/null ||
25267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25269 /^X\(\/\/\)$/{ s//\1/; q; }
25270 /^X\(\/\).*/{ s//\1/; q; }
25273 test ! -n "$as_dirs" || mkdir $as_dirs
25274 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25275 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25276 { (exit 1); exit 1; }; }; }
25278 # echo "creating $dirpart/$file"
25279 echo '# dummy' > "$dirpart/$file"
25285 intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
25286 -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
25287 -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
25288 -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
25289 -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
25290 -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
25292 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
25293 > intltool-extract.out
25294 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
25295 rm -f intltool-extract.out
25297 mv -f intltool-extract.out intltool-extract
25299 chmod ugo+x intltool-extract
25300 chmod u+w intltool-extract
25302 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
25303 > intltool-merge.out
25304 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
25305 rm -f intltool-merge.out
25307 mv -f intltool-merge.out intltool-merge
25309 chmod ugo+x intltool-merge
25310 chmod u+w intltool-merge
25312 eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
25313 > intltool-update.out
25314 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
25315 rm -f intltool-update.out
25317 mv -f intltool-update.out intltool-update
25319 chmod ugo+x intltool-update
25320 chmod u+w intltool-update
25324 for ac_file in $CONFIG_FILES; do
25325 # Support "outfile[:infile[:infile...]]"
25327 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25329 # PO directories have a Makefile.in generated from Makefile.in.in.
25330 case "$ac_file" in */Makefile.in)
25331 # Adjust a relative srcdir.
25332 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25333 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25334 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25335 # In autoconf-2.13 it is called $ac_given_srcdir.
25336 # In autoconf-2.50 it is called $srcdir.
25337 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25338 case "$ac_given_srcdir" in
25339 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25340 /*) top_srcdir="$ac_given_srcdir" ;;
25341 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25343 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25344 rm -f "$ac_dir/POTFILES"
25345 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25346 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25347 POMAKEFILEDEPS="POTFILES.in"
25348 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25349 # on $ac_dir but don't depend on user-specified configuration
25351 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25352 # The LINGUAS file contains the set of available languages.
25353 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25354 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25356 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25357 # Hide the ALL_LINGUAS assigment from automake.
25358 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25359 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25361 # The set of available languages was given in configure.in.
25362 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25365 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25366 # Compute UPDATEPOFILES
25367 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25368 # Compute DUMMYPOFILES
25369 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25371 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25372 case "$ac_given_srcdir" in
25374 *) srcdirpre='$(srcdir)/' ;;
25380 for lang in $ALL_LINGUAS; do
25381 POFILES="$POFILES $srcdirpre$lang.po"
25382 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25383 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25384 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25386 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25387 # environment variable.
25389 if test -n "$ALL_LINGUAS"; then
25390 for presentlang in $ALL_LINGUAS; do
25392 if test "%UNSET%" != "$LINGUAS"; then
25393 desiredlanguages="$LINGUAS"
25395 desiredlanguages="$ALL_LINGUAS"
25397 for desiredlang in $desiredlanguages; do
25398 # Use the presentlang catalog if desiredlang is
25399 # a. equal to presentlang, or
25400 # b. a variant of presentlang (because in this case,
25401 # presentlang can be used as a fallback for messages
25402 # which are not translated in the desiredlang catalog).
25403 case "$desiredlang" in
25404 "$presentlang"*) useit=yes;;
25407 if test $useit = yes; then
25408 INST_LINGUAS="$INST_LINGUAS $presentlang"
25413 if test -n "$INST_LINGUAS"; then
25414 for lang in $INST_LINGUAS; do
25415 CATALOGS="$CATALOGS $lang.gmo"
25418 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25419 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"
25420 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25421 if test -f "$f"; then
25423 *.orig | *.bak | *~) ;;
25424 *) cat "$f" >> "$ac_dir/Makefile" ;;
25436 cat >>$CONFIG_STATUS <<\_ACEOF
25438 { (exit 0); exit 0; }
25440 chmod +x $CONFIG_STATUS
25441 ac_clean_files=$ac_clean_files_save
25444 # configure is writing to config.log, and then calls config.status.
25445 # config.status does its own redirection, appending to config.log.
25446 # Unfortunately, on DOS this fails, as config.log is still kept open
25447 # by configure, so config.status won't be able to write to it; its
25448 # output is simply discarded. So we exec the FD to /dev/null,
25449 # effectively closing config.log, so it can be properly (re)opened and
25450 # appended to by config.status. When coming back to configure, we
25451 # need to make the FD available again.
25452 if test "$no_create" != yes; then
25454 ac_config_status_args=
25455 test "$silent" = yes &&
25456 ac_config_status_args="$ac_config_status_args --quiet"
25458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25461 # would make configure fail if this is the last instruction.
25462 $ac_cs_success || { (exit 1); exit 1; }
25467 echo ------------------------------------------------------------------------
25468 echo 'nls is available? '$_nls_avail
25469 echo 'zlib compression: ' $ok_zlib
25470 echo 'Calendar support: ' $ok_libical
25471 echo 'Character set conversion support:' $ok_iconv
25472 echo 'National language support: ' $ok_nls