Change soft-fail to use the config, rather than env
[rbx.git] / shotgun / external_libs / libltdl / configure
blob95ef30039908d246a56db363817157bc47f05819
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
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 \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
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 ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; 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
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
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
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
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
124 as_myself=$0
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
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
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
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
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 |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
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).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >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
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 case X$ECHO in
250 X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 esac
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
266 else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
277 exit 0
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
295 done
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
319 done
320 IFS="$lt_save_ifs"
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
368 prev="$cmd"
369 done
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404 exec 6>&1
407 # Initializations.
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
423 PACKAGE_NAME='libltdl'
424 PACKAGE_TARNAME='libltdl'
425 PACKAGE_VERSION='1.2'
426 PACKAGE_STRING='libltdl 1.2'
427 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429 ac_unique_file="ltdl.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 # include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 # include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
467 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
508 ac_prev=
509 for ac_option
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
522 case $ac_option in
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
541 --config-cache | -C)
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 esac
805 done
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822 done
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834 done
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
880 else
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
965 Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976 _ACEOF
978 cat <<_ACEOF
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005 _ACEOF
1007 cat <<\_ACEOF
1009 Program names:
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 System types:
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1020 if test -n "$ac_init_help"; then
1021 case $ac_init_help in
1022 short | recursive ) echo "Configuration of libltdl 1.2:";;
1023 esac
1024 cat <<\_ACEOF
1026 Optional Features:
1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029 --disable-dependency-tracking Speeds up one-time builds
1030 --enable-dependency-tracking Do not reject slow dependency extractors
1031 --enable-shared[=PKGS]
1032 build shared libraries [default=yes]
1033 --enable-static[=PKGS]
1034 build static libraries [default=yes]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
1037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --enable-ltdl-install install libltdl
1040 Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1056 CPP C preprocessor
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1063 Use these variables to override the choices made by `configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1066 Report bugs to <bug-libtool@gnu.org>.
1067 _ACEOF
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1072 ac_popdir=`pwd`
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1075 ac_builddir=.
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 else
1082 ac_dir_suffix= ac_top_builddir=
1085 case $srcdir in
1086 .) # No --srcdir option. We are building in place.
1087 ac_srcdir=.
1088 if test -z "$ac_top_builddir"; then
1089 ac_top_srcdir=.
1090 else
1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092 fi ;;
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1096 *) # Relative path.
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099 esac
1100 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1101 # absolute.
1102 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1103 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1104 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1105 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1122 cd $ac_popdir
1123 done
1126 test -n "$ac_init_help" && exit 0
1127 if $ac_init_version; then
1128 cat <<\_ACEOF
1129 libltdl configure 1.2
1130 generated by GNU Autoconf 2.57
1132 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1133 Free Software Foundation, Inc.
1134 This configure script is free software; the Free Software Foundation
1135 gives unlimited permission to copy, distribute and modify it.
1136 _ACEOF
1137 exit 0
1139 exec 5>config.log
1140 cat >&5 <<_ACEOF
1141 This file contains any messages produced by compilers while
1142 running configure, to aid debugging if configure makes a mistake.
1144 It was created by libltdl $as_me 1.2, which was
1145 generated by GNU Autoconf 2.57. Invocation command line was
1147 $ $0 $@
1149 _ACEOF
1151 cat <<_ASUNAME
1152 ## --------- ##
1153 ## Platform. ##
1154 ## --------- ##
1156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1173 _ASUNAME
1175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176 for as_dir in $PATH
1178 IFS=$as_save_IFS
1179 test -z "$as_dir" && as_dir=.
1180 echo "PATH: $as_dir"
1181 done
1183 } >&5
1185 cat >&5 <<_ACEOF
1188 ## ----------- ##
1189 ## Core tests. ##
1190 ## ----------- ##
1192 _ACEOF
1195 # Keep a trace of the command line.
1196 # Strip out --no-create and --no-recursion so they do not pile up.
1197 # Strip out --silent because we don't want to record it for future runs.
1198 # Also quote any args containing shell meta-characters.
1199 # Make two passes to allow for proper duplicate-argument suppression.
1200 ac_configure_args=
1201 ac_configure_args0=
1202 ac_configure_args1=
1203 ac_sep=
1204 ac_must_keep_next=false
1205 for ac_pass in 1 2
1207 for ac_arg
1209 case $ac_arg in
1210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1213 continue ;;
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 esac
1217 case $ac_pass in
1218 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1221 if test $ac_must_keep_next = true; then
1222 ac_must_keep_next=false # Got value, back to normal.
1223 else
1224 case $ac_arg in
1225 *=* | --config-cache | -C | -disable-* | --disable-* \
1226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1228 | -with-* | --with-* | -without-* | --without-* | --x)
1229 case "$ac_configure_args0 " in
1230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1231 esac
1233 -* ) ac_must_keep_next=true ;;
1234 esac
1236 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1237 # Get rid of the leading space.
1238 ac_sep=" "
1240 esac
1241 done
1242 done
1243 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1244 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246 # When interrupted or exit'd, cleanup temporary files, and complete
1247 # config.log. We remove comments because anyway the quotes in there
1248 # would cause problems or look ugly.
1249 # WARNING: Be sure not to use single quotes in there, as some shells,
1250 # such as our DU 5.0 friend, will then `close' the trap.
1251 trap 'exit_status=$?
1252 # Save into config.log some information that might help in debugging.
1254 echo
1256 cat <<\_ASBOX
1257 ## ---------------- ##
1258 ## Cache variables. ##
1259 ## ---------------- ##
1260 _ASBOX
1261 echo
1262 # The following way of writing the cache mishandles newlines in values,
1264 (set) 2>&1 |
1265 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1266 *ac_space=\ *)
1267 sed -n \
1268 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1272 sed -n \
1273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1275 esac;
1277 echo
1279 cat <<\_ASBOX
1280 ## ----------------- ##
1281 ## Output variables. ##
1282 ## ----------------- ##
1283 _ASBOX
1284 echo
1285 for ac_var in $ac_subst_vars
1287 eval ac_val=$`echo $ac_var`
1288 echo "$ac_var='"'"'$ac_val'"'"'"
1289 done | sort
1290 echo
1292 if test -n "$ac_subst_files"; then
1293 cat <<\_ASBOX
1294 ## ------------- ##
1295 ## Output files. ##
1296 ## ------------- ##
1297 _ASBOX
1298 echo
1299 for ac_var in $ac_subst_files
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1307 if test -s confdefs.h; then
1308 cat <<\_ASBOX
1309 ## ----------- ##
1310 ## confdefs.h. ##
1311 ## ----------- ##
1312 _ASBOX
1313 echo
1314 sed "/^$/d" confdefs.h | sort
1315 echo
1317 test "$ac_signal" != 0 &&
1318 echo "$as_me: caught signal $ac_signal"
1319 echo "$as_me: exit $exit_status"
1320 } >&5
1321 rm -f core core.* *.core &&
1322 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1323 exit $exit_status
1325 for ac_signal in 1 2 13 15; do
1326 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1327 done
1328 ac_signal=0
1330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1331 rm -rf conftest* confdefs.h
1332 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1333 echo >confdefs.h
1335 # Predefined preprocessor variables.
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_NAME "$PACKAGE_NAME"
1339 _ACEOF
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1344 _ACEOF
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1349 _ACEOF
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_STRING "$PACKAGE_STRING"
1354 _ACEOF
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1359 _ACEOF
1362 # Let the site file select an alternate cache file if it wants to.
1363 # Prefer explicitly selected file to automatically selected ones.
1364 if test -z "$CONFIG_SITE"; then
1365 if test "x$prefix" != xNONE; then
1366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1367 else
1368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1371 for ac_site_file in $CONFIG_SITE; do
1372 if test -r "$ac_site_file"; then
1373 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1374 echo "$as_me: loading site script $ac_site_file" >&6;}
1375 sed 's/^/| /' "$ac_site_file" >&5
1376 . "$ac_site_file"
1378 done
1380 if test -r "$cache_file"; then
1381 # Some versions of bash will fail to source /dev/null (special
1382 # files actually), so we avoid doing that.
1383 if test -f "$cache_file"; then
1384 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1385 echo "$as_me: loading cache $cache_file" >&6;}
1386 case $cache_file in
1387 [\\/]* | ?:[\\/]* ) . $cache_file;;
1388 *) . ./$cache_file;;
1389 esac
1391 else
1392 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1393 echo "$as_me: creating cache $cache_file" >&6;}
1394 >$cache_file
1397 # Check that the precious variables saved in the cache have kept the same
1398 # value.
1399 ac_cache_corrupted=false
1400 for ac_var in `(set) 2>&1 |
1401 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1403 eval ac_new_set=\$ac_env_${ac_var}_set
1404 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1405 eval ac_new_val="\$ac_env_${ac_var}_value"
1406 case $ac_old_set,$ac_new_set in
1407 set,)
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1411 ,set)
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1413 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1415 ,);;
1417 if test "x$ac_old_val" != "x$ac_new_val"; then
1418 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1419 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1420 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1421 echo "$as_me: former value: $ac_old_val" >&2;}
1422 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1423 echo "$as_me: current value: $ac_new_val" >&2;}
1424 ac_cache_corrupted=:
1425 fi;;
1426 esac
1427 # Pass precious variables to config.status.
1428 if test "$ac_new_set" = set; then
1429 case $ac_new_val in
1430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1431 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1432 *) ac_arg=$ac_var=$ac_new_val ;;
1433 esac
1434 case " $ac_configure_args " in
1435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1436 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1437 esac
1439 done
1440 if $ac_cache_corrupted; then
1441 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1442 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1443 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1444 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1445 { (exit 1); exit 1; }; }
1448 ac_ext=c
1449 ac_cpp='$CPP $CPPFLAGS'
1450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483 ## ------------------------------- ##
1484 ## Libltdl specific configuration. ##
1485 ## ------------------------------- ##
1487 ac_aux_dir=
1488 for ac_dir in . $srcdir/.; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1502 done
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1513 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1514 if test -f ${srcdir}/ltmain.sh; then
1515 # if libltdl is libtoolized, it is assumed to be stand-alone and
1516 # installed unless the command line overrides it (tested above)
1517 enable_ltdl_install=yes
1518 else
1519 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1520 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1521 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1522 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1523 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1524 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1525 { (exit 1); exit 1; }; }
1530 ## ------------------------ ##
1531 ## Automake Initialisation. ##
1532 ## ------------------------ ##
1533 am__api_version="1.7"
1534 # Find a good install program. We prefer a C program (faster),
1535 # so one script is as good as another. But avoid the broken or
1536 # incompatible versions:
1537 # SysV /etc/install, /usr/sbin/install
1538 # SunOS /usr/etc/install
1539 # IRIX /sbin/install
1540 # AIX /bin/install
1541 # AmigaOS /C/install, which installs bootblocks on floppy discs
1542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1545 # ./install, which can be erroneously created by make from ./install.sh.
1546 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1547 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1548 if test -z "$INSTALL"; then
1549 if test "${ac_cv_path_install+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 # Account for people who put trailing slashes in PATH elements.
1558 case $as_dir/ in
1559 ./ | .// | /cC/* | \
1560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1561 /usr/ucb/* ) ;;
1563 # OSF1 and SCO ODT 3.0 have their own names for install.
1564 # Don't use installbsd from OSF since it installs stuff as root
1565 # by default.
1566 for ac_prog in ginstall scoinst install; do
1567 for ac_exec_ext in '' $ac_executable_extensions; do
1568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1569 if test $ac_prog = install &&
1570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1571 # AIX install. It has an incompatible calling convention.
1573 elif test $ac_prog = install &&
1574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575 # program-specific install script used by HP pwplus--don't use.
1577 else
1578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1579 break 3
1582 done
1583 done
1585 esac
1586 done
1590 if test "${ac_cv_path_install+set}" = set; then
1591 INSTALL=$ac_cv_path_install
1592 else
1593 # As a last resort, use the slow shell script. We don't cache a
1594 # path for INSTALL within a source directory, because that will
1595 # break other packages using the cache if that directory is
1596 # removed, or if the path is relative.
1597 INSTALL=$ac_install_sh
1600 echo "$as_me:$LINENO: result: $INSTALL" >&5
1601 echo "${ECHO_T}$INSTALL" >&6
1603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1604 # It thinks the first close brace ends the variable substitution.
1605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1611 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1612 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1613 # Just in case
1614 sleep 1
1615 echo timestamp > conftest.file
1616 # Do `set' in a subshell so we don't clobber the current shell's
1617 # arguments. Must try -L first in case configure is actually a
1618 # symlink; some systems play weird games with the mod time of symlinks
1619 # (eg FreeBSD returns the mod time of the symlink's containing
1620 # directory).
1621 if (
1622 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1623 if test "$*" = "X"; then
1624 # -L didn't work.
1625 set X `ls -t $srcdir/configure conftest.file`
1627 rm -f conftest.file
1628 if test "$*" != "X $srcdir/configure conftest.file" \
1629 && test "$*" != "X conftest.file $srcdir/configure"; then
1631 # If neither matched, then we have a broken ls. This can happen
1632 # if, for instance, CONFIG_SHELL is bash and it inherits a
1633 # broken ls alias from the environment. This has actually
1634 # happened. Such a system could not be considered "sane".
1635 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1636 alias in your environment" >&5
1637 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1638 alias in your environment" >&2;}
1639 { (exit 1); exit 1; }; }
1642 test "$2" = conftest.file
1644 then
1645 # Ok.
1647 else
1648 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1649 Check your system clock" >&5
1650 echo "$as_me: error: newly created file is older than distributed files!
1651 Check your system clock" >&2;}
1652 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: yes" >&5
1655 echo "${ECHO_T}yes" >&6
1656 test "$program_prefix" != NONE &&
1657 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1658 # Use a double $ so make ignores it.
1659 test "$program_suffix" != NONE &&
1660 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1661 # Double any \ or $. echo might interpret backslashes.
1662 # By default was `s,x,x', remove it if useless.
1663 cat <<\_ACEOF >conftest.sed
1664 s/[\\$]/&&/g;s/;s,x,x,$//
1665 _ACEOF
1666 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1667 rm conftest.sed
1670 # expand $ac_aux_dir to an absolute path
1671 am_aux_dir=`cd $ac_aux_dir && pwd`
1673 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1674 # Use eval to expand $SHELL
1675 if eval "$MISSING --run true"; then
1676 am_missing_run="$MISSING --run "
1677 else
1678 am_missing_run=
1679 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1680 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1683 for ac_prog in gawk mawk nawk awk
1685 # Extract the first word of "$ac_prog", so it can be a program name with args.
1686 set dummy $ac_prog; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_AWK+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 if test -n "$AWK"; then
1693 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_AWK="$ac_prog"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1706 done
1707 done
1711 AWK=$ac_cv_prog_AWK
1712 if test -n "$AWK"; then
1713 echo "$as_me:$LINENO: result: $AWK" >&5
1714 echo "${ECHO_T}$AWK" >&6
1715 else
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1720 test -n "$AWK" && break
1721 done
1723 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1724 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1725 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1726 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 cat >conftest.make <<\_ACEOF
1730 all:
1731 @echo 'ac_maketemp="$(MAKE)"'
1732 _ACEOF
1733 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1734 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1735 if test -n "$ac_maketemp"; then
1736 eval ac_cv_prog_make_${ac_make}_set=yes
1737 else
1738 eval ac_cv_prog_make_${ac_make}_set=no
1740 rm -f conftest.make
1742 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1743 echo "$as_me:$LINENO: result: yes" >&5
1744 echo "${ECHO_T}yes" >&6
1745 SET_MAKE=
1746 else
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 SET_MAKE="MAKE=${MAKE-make}"
1752 rm -rf .tst 2>/dev/null
1753 mkdir .tst 2>/dev/null
1754 if test -d .tst; then
1755 am__leading_dot=.
1756 else
1757 am__leading_dot=_
1759 rmdir .tst 2>/dev/null
1761 # test to see if srcdir already configured
1762 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1763 test -f $srcdir/config.status; then
1764 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1765 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1766 { (exit 1); exit 1; }; }
1769 # test whether we have cygpath
1770 if test -z "$CYGPATH_W"; then
1771 if (cygpath --version) >/dev/null 2>/dev/null; then
1772 CYGPATH_W='cygpath -w'
1773 else
1774 CYGPATH_W=echo
1779 # Define the identity of the package.
1780 PACKAGE=libltdl
1781 VERSION=1.2
1784 # Some tools Automake needs.
1786 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1789 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1792 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1795 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1798 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1801 AMTAR=${AMTAR-"${am_missing_run}tar"}
1803 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1805 # Installed binaries are usually stripped using `strip' when the user
1806 # run `make install-strip'. However `strip' might not be the right
1807 # tool to use in cross-compilation environments, therefore Automake
1808 # will honor the `STRIP' environment variable to overrule this program.
1809 if test "$cross_compiling" != no; then
1810 if test -n "$ac_tool_prefix"; then
1811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1812 set dummy ${ac_tool_prefix}strip; ac_word=$2
1813 echo "$as_me:$LINENO: checking for $ac_word" >&5
1814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815 if test "${ac_cv_prog_STRIP+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818 if test -n "$STRIP"; then
1819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1820 else
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 break 2
1832 done
1833 done
1837 STRIP=$ac_cv_prog_STRIP
1838 if test -n "$STRIP"; then
1839 echo "$as_me:$LINENO: result: $STRIP" >&5
1840 echo "${ECHO_T}$STRIP" >&6
1841 else
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1847 if test -z "$ac_cv_prog_STRIP"; then
1848 ac_ct_STRIP=$STRIP
1849 # Extract the first word of "strip", so it can be a program name with args.
1850 set dummy strip; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 if test -n "$ac_ct_STRIP"; then
1857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_ac_ct_STRIP="strip"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1870 done
1871 done
1873 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1877 if test -n "$ac_ct_STRIP"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1879 echo "${ECHO_T}$ac_ct_STRIP" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 STRIP=$ac_ct_STRIP
1886 else
1887 STRIP="$ac_cv_prog_STRIP"
1891 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1893 # We need awk for the "check" target. The system "awk" is bad on
1894 # some platforms.
1898 ac_config_headers="$ac_config_headers config.h:config-h.in"
1902 ## ------------------ ##
1903 ## C compiler checks. ##
1904 ## ------------------ ##
1905 ac_ext=c
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910 if test -n "$ac_tool_prefix"; then
1911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1912 set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1924 IFS=$as_save_IFS
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_CC="${ac_tool_prefix}gcc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1932 done
1933 done
1937 CC=$ac_cv_prog_CC
1938 if test -n "$CC"; then
1939 echo "$as_me:$LINENO: result: $CC" >&5
1940 echo "${ECHO_T}$CC" >&6
1941 else
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1947 if test -z "$ac_cv_prog_CC"; then
1948 ac_ct_CC=$CC
1949 # Extract the first word of "gcc", so it can be a program name with args.
1950 set dummy gcc; ac_word=$2
1951 echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 if test -n "$ac_ct_CC"; then
1957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_ac_ct_CC="gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2
1970 done
1971 done
1975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1976 if test -n "$ac_ct_CC"; then
1977 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1978 echo "${ECHO_T}$ac_ct_CC" >&6
1979 else
1980 echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6
1984 CC=$ac_ct_CC
1985 else
1986 CC="$ac_cv_prog_CC"
1989 if test -z "$CC"; then
1990 if test -n "$ac_tool_prefix"; then
1991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1992 set dummy ${ac_tool_prefix}cc; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC="$CC" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_CC="${ac_tool_prefix}cc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2
2012 done
2013 done
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019 echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6
2021 else
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2027 if test -z "$ac_cv_prog_CC"; then
2028 ac_ct_CC=$CC
2029 # Extract the first word of "cc", so it can be a program name with args.
2030 set dummy cc; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_ac_ct_CC="cc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 CC=$ac_ct_CC
2065 else
2066 CC="$ac_cv_prog_CC"
2070 if test -z "$CC"; then
2071 # Extract the first word of "cc", so it can be a program name with args.
2072 set dummy cc; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2080 else
2081 ac_prog_rejected=no
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2090 ac_prog_rejected=yes
2091 continue
2093 ac_cv_prog_CC="cc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2097 done
2098 done
2100 if test $ac_prog_rejected = yes; then
2101 # We found a bogon in the path, so make sure we never use it.
2102 set dummy $ac_cv_prog_CC
2103 shift
2104 if test $# != 0; then
2105 # We chose a different compiler from the bogus one.
2106 # However, it has the same basename, so the bogon will be chosen
2107 # first if we set CC to just the basename; use the full file name.
2108 shift
2109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2114 CC=$ac_cv_prog_CC
2115 if test -n "$CC"; then
2116 echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6
2118 else
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2124 if test -z "$CC"; then
2125 if test -n "$ac_tool_prefix"; then
2126 for ac_prog in cl
2128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_CC+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 if test -n "$CC"; then
2136 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 break 2
2149 done
2150 done
2154 CC=$ac_cv_prog_CC
2155 if test -n "$CC"; then
2156 echo "$as_me:$LINENO: result: $CC" >&5
2157 echo "${ECHO_T}$CC" >&6
2158 else
2159 echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2163 test -n "$CC" && break
2164 done
2166 if test -z "$CC"; then
2167 ac_ct_CC=$CC
2168 for ac_prog in cl
2170 # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy $ac_prog; ac_word=$2
2172 echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177 if test -n "$ac_ct_CC"; then
2178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2179 else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 ac_cv_prog_ac_ct_CC="$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 break 2
2191 done
2192 done
2196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2197 if test -n "$ac_ct_CC"; then
2198 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2199 echo "${ECHO_T}$ac_ct_CC" >&6
2200 else
2201 echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2205 test -n "$ac_ct_CC" && break
2206 done
2208 CC=$ac_ct_CC
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO:" \
2222 "checking for C compiler version" >&5
2223 ac_compiler=`set X $ac_compile; echo $2`
2224 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2225 (eval $ac_compiler --version </dev/null >&5) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2230 (eval $ac_compiler -v </dev/null >&5) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2235 (eval $ac_compiler -V </dev/null >&5) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }
2240 cat >conftest.$ac_ext <<_ACEOF
2241 #line $LINENO "configure"
2242 /* confdefs.h. */
2243 _ACEOF
2244 cat confdefs.h >>conftest.$ac_ext
2245 cat >>conftest.$ac_ext <<_ACEOF
2246 /* end confdefs.h. */
2249 main ()
2253 return 0;
2255 _ACEOF
2256 ac_clean_files_save=$ac_clean_files
2257 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2258 # Try to create an executable without -o first, disregard a.out.
2259 # It will help us diagnose broken compilers, and finding out an intuition
2260 # of exeext.
2261 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2262 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2263 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2265 (eval $ac_link_default) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # Find the output, starting from the most likely. This scheme is
2270 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2271 # resort.
2273 # Be careful to initialize this variable, since it used to be cached.
2274 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2275 ac_cv_exeext=
2276 # b.out is created by i960 compilers.
2277 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2279 test -f "$ac_file" || continue
2280 case $ac_file in
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2283 conftest.$ac_ext )
2284 # This is the source file.
2286 [ab].out )
2287 # We found the default executable, but exeext='' is most
2288 # certainly right.
2289 break;;
2290 *.* )
2291 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292 # FIXME: I believe we export ac_cv_exeext for Libtool,
2293 # but it would be cool to find out if it's true. Does anybody
2294 # maintain Libtool? --akim.
2295 export ac_cv_exeext
2296 break;;
2298 break;;
2299 esac
2300 done
2301 else
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&2;}
2309 { (exit 77); exit 77; }; }
2312 ac_exeext=$ac_cv_exeext
2313 echo "$as_me:$LINENO: result: $ac_file" >&5
2314 echo "${ECHO_T}$ac_file" >&6
2316 # Check the compiler produces executables we can run. If not, either
2317 # the compiler is broken, or we cross compile.
2318 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2319 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2320 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2321 # If not cross compiling, check that we can run a simple program.
2322 if test "$cross_compiling" != yes; then
2323 if { ac_try='./$ac_file'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 cross_compiling=no
2330 else
2331 if test "$cross_compiling" = maybe; then
2332 cross_compiling=yes
2333 else
2334 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2335 If you meant to cross compile, use \`--host'.
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot run C compiled programs.
2338 If you meant to cross compile, use \`--host'.
2339 See \`config.log' for more details." >&2;}
2340 { (exit 1); exit 1; }; }
2344 echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6
2347 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2348 ac_clean_files=$ac_clean_files_save
2349 # Check the compiler produces executables we can run. If not, either
2350 # the compiler is broken, or we cross compile.
2351 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2353 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2354 echo "${ECHO_T}$cross_compiling" >&6
2356 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2359 (eval $ac_link) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2365 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 # `rm'.
2367 for ac_file in conftest.exe conftest conftest.*; do
2368 test -f "$ac_file" || continue
2369 case $ac_file in
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2372 export ac_cv_exeext
2373 break;;
2374 * ) break;;
2375 esac
2376 done
2377 else
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2385 rm -f conftest$ac_cv_exeext
2386 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2394 if test "${ac_cv_objext+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #line $LINENO "configure"
2399 /* confdefs.h. */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2406 main ()
2410 return 0;
2412 _ACEOF
2413 rm -f conftest.o conftest.obj
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; then
2419 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2420 case $ac_file in
2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2423 break;;
2424 esac
2425 done
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2433 See \`config.log' for more details." >&2;}
2434 { (exit 1); exit 1; }; }
2437 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2439 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2440 echo "${ECHO_T}$ac_cv_objext" >&6
2441 OBJEXT=$ac_cv_objext
2442 ac_objext=$OBJEXT
2443 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2444 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2445 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #line $LINENO "configure"
2450 /* confdefs.h. */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2457 main ()
2459 #ifndef __GNUC__
2460 choke me
2461 #endif
2464 return 0;
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 ac_compiler_gnu=yes
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2484 ac_compiler_gnu=no
2486 rm -f conftest.$ac_objext conftest.$ac_ext
2487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2490 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2491 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2492 GCC=`test $ac_compiler_gnu = yes && echo yes`
2493 ac_test_CFLAGS=${CFLAGS+set}
2494 ac_save_CFLAGS=$CFLAGS
2495 CFLAGS="-g"
2496 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2497 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_g+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 cat >conftest.$ac_ext <<_ACEOF
2502 #line $LINENO "configure"
2503 /* confdefs.h. */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2510 main ()
2514 return 0;
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 (eval $ac_try) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2529 ac_cv_prog_cc_g=yes
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2534 ac_cv_prog_cc_g=no
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2540 if test "$ac_test_CFLAGS" = set; then
2541 CFLAGS=$ac_save_CFLAGS
2542 elif test $ac_cv_prog_cc_g = yes; then
2543 if test "$GCC" = yes; then
2544 CFLAGS="-g -O2"
2545 else
2546 CFLAGS="-g"
2548 else
2549 if test "$GCC" = yes; then
2550 CFLAGS="-O2"
2551 else
2552 CFLAGS=
2555 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2556 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2557 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560 ac_cv_prog_cc_stdc=no
2561 ac_save_CC=$CC
2562 cat >conftest.$ac_ext <<_ACEOF
2563 #line $LINENO "configure"
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569 #include <stdarg.h>
2570 #include <stdio.h>
2571 #include <sys/types.h>
2572 #include <sys/stat.h>
2573 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2574 struct buf { int x; };
2575 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2576 static char *e (p, i)
2577 char **p;
2578 int i;
2580 return p[i];
2582 static char *f (char * (*g) (char **, int), char **p, ...)
2584 char *s;
2585 va_list v;
2586 va_start (v,p);
2587 s = g (p, va_arg (v,int));
2588 va_end (v);
2589 return s;
2591 int test (int i, double x);
2592 struct s1 {int (*f) (int a);};
2593 struct s2 {int (*f) (double a);};
2594 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2595 int argc;
2596 char **argv;
2598 main ()
2600 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2602 return 0;
2604 _ACEOF
2605 # Don't try gcc -ansi; that turns off useful extensions and
2606 # breaks some systems' header files.
2607 # AIX -qlanglvl=ansi
2608 # Ultrix and OSF/1 -std1
2609 # HP-UX 10.20 and later -Ae
2610 # HP-UX older versions -Aa -D_HPUX_SOURCE
2611 # SVR4 -Xc -D__EXTENSIONS__
2612 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2614 CC="$ac_save_CC $ac_arg"
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_prog_cc_stdc=$ac_arg
2628 break
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2634 rm -f conftest.$ac_objext
2635 done
2636 rm -f conftest.$ac_ext conftest.$ac_objext
2637 CC=$ac_save_CC
2641 case "x$ac_cv_prog_cc_stdc" in
2642 x|xno)
2643 echo "$as_me:$LINENO: result: none needed" >&5
2644 echo "${ECHO_T}none needed" >&6 ;;
2646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2648 CC="$CC $ac_cv_prog_cc_stdc" ;;
2649 esac
2651 # Some people use a C++ compiler to compile C. Since we use `exit',
2652 # in C++ we need to declare it. In case someone uses the same compiler
2653 # for both compiling C and C++ we need to have the C++ compiler decide
2654 # the declaration of exit, since it's the most demanding environment.
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #ifndef __cplusplus
2657 choke me
2658 #endif
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 for ac_declaration in \
2674 '#include <stdlib.h>' \
2675 'extern "C" void std::exit (int) throw (); using std::exit;' \
2676 'extern "C" void std::exit (int); using std::exit;' \
2677 'extern "C" void exit (int) throw ();' \
2678 'extern "C" void exit (int);' \
2679 'void exit (int);'
2681 cat >conftest.$ac_ext <<_ACEOF
2682 #line $LINENO "configure"
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2688 #include <stdlib.h>
2689 $ac_declaration
2691 main ()
2693 exit (42);
2695 return 0;
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 continue
2717 rm -f conftest.$ac_objext conftest.$ac_ext
2718 cat >conftest.$ac_ext <<_ACEOF
2719 #line $LINENO "configure"
2720 /* confdefs.h. */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2725 $ac_declaration
2727 main ()
2729 exit (42);
2731 return 0;
2733 _ACEOF
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 break
2747 else
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2752 rm -f conftest.$ac_objext conftest.$ac_ext
2753 done
2754 rm -f conftest*
2755 if test -n "$ac_declaration"; then
2756 echo '#ifdef __cplusplus' >>confdefs.h
2757 echo $ac_declaration >>confdefs.h
2758 echo '#endif' >>confdefs.h
2761 else
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2766 rm -f conftest.$ac_objext conftest.$ac_ext
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 DEPDIR="${am__leading_dot}deps"
2774 ac_config_commands="$ac_config_commands depfiles"
2777 am_make=${MAKE-make}
2778 cat > confinc << 'END'
2779 doit:
2780 @echo done
2782 # If we don't find an include directive, just comment out the code.
2783 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2784 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2785 am__include="#"
2786 am__quote=
2787 _am_result=none
2788 # First try GNU make style include.
2789 echo "include confinc" > confmf
2790 # We grep out `Entering directory' and `Leaving directory'
2791 # messages which can occur if `w' ends up in MAKEFLAGS.
2792 # In particular we don't look at `^make:' because GNU make might
2793 # be invoked under some other name (usually "gmake"), in which
2794 # case it prints its new name instead of `make'.
2795 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2796 am__include=include
2797 am__quote=
2798 _am_result=GNU
2800 # Now try BSD make style include.
2801 if test "$am__include" = "#"; then
2802 echo '.include "confinc"' > confmf
2803 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2804 am__include=.include
2805 am__quote="\""
2806 _am_result=BSD
2811 echo "$as_me:$LINENO: result: $_am_result" >&5
2812 echo "${ECHO_T}$_am_result" >&6
2813 rm -f confinc confmf
2815 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2816 if test "${enable_dependency_tracking+set}" = set; then
2817 enableval="$enable_dependency_tracking"
2820 if test "x$enable_dependency_tracking" != xno; then
2821 am_depcomp="$ac_aux_dir/depcomp"
2822 AMDEPBACKSLASH='\'
2826 if test "x$enable_dependency_tracking" != xno; then
2827 AMDEP_TRUE=
2828 AMDEP_FALSE='#'
2829 else
2830 AMDEP_TRUE='#'
2831 AMDEP_FALSE=
2837 depcc="$CC" am_compiler_list=
2839 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2840 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2841 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2845 # We make a subdir and do the tests there. Otherwise we can end up
2846 # making bogus files that we don't know about and never remove. For
2847 # instance it was reported that on HP-UX the gcc test will end up
2848 # making a dummy file named `D' -- because `-MD' means `put the output
2849 # in D'.
2850 mkdir conftest.dir
2851 # Copy depcomp to subdir because otherwise we won't find it if we're
2852 # using a relative directory.
2853 cp "$am_depcomp" conftest.dir
2854 cd conftest.dir
2856 am_cv_CC_dependencies_compiler_type=none
2857 if test "$am_compiler_list" = ""; then
2858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2860 for depmode in $am_compiler_list; do
2861 # We need to recreate these files for each test, as the compiler may
2862 # overwrite some of them when testing with obscure command lines.
2863 # This happens at least with the AIX C compiler.
2864 echo '#include "conftest.h"' > conftest.c
2865 echo 'int i;' > conftest.h
2866 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2868 case $depmode in
2869 nosideeffect)
2870 # after this tag, mechanisms are not by side-effect, so they'll
2871 # only be used when explicitly requested
2872 if test "x$enable_dependency_tracking" = xyes; then
2873 continue
2874 else
2875 break
2878 none) break ;;
2879 esac
2880 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2881 # mode. It turns out that the SunPro C++ compiler does not properly
2882 # handle `-M -o', and we need to detect this.
2883 if depmode=$depmode \
2884 source=conftest.c object=conftest.o \
2885 depfile=conftest.Po tmpdepfile=conftest.TPo \
2886 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2887 >/dev/null 2>conftest.err &&
2888 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2889 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2890 # icc doesn't choke on unknown options, it will just issue warnings
2891 # (even with -Werror). So we grep stderr for any message
2892 # that says an option was ignored.
2893 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2894 am_cv_CC_dependencies_compiler_type=$depmode
2895 break
2898 done
2900 cd ..
2901 rm -rf conftest.dir
2902 else
2903 am_cv_CC_dependencies_compiler_type=none
2907 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2908 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2909 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2914 test "x$enable_dependency_tracking" != xno \
2915 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2916 am__fastdepCC_TRUE=
2917 am__fastdepCC_FALSE='#'
2918 else
2919 am__fastdepCC_TRUE='#'
2920 am__fastdepCC_FALSE=
2925 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2926 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2927 if test "${ac_cv_c_const+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line $LINENO "configure"
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2939 main ()
2941 /* FIXME: Include the comments suggested by Paul. */
2942 #ifndef __cplusplus
2943 /* Ultrix mips cc rejects this. */
2944 typedef int charset[2];
2945 const charset x;
2946 /* SunOS 4.1.1 cc rejects this. */
2947 char const *const *ccp;
2948 char **p;
2949 /* NEC SVR4.0.2 mips cc rejects this. */
2950 struct point {int x, y;};
2951 static struct point const zero = {0,0};
2952 /* AIX XL C 1.02.0.0 rejects this.
2953 It does not let you subtract one const X* pointer from another in
2954 an arm of an if-expression whose if-part is not a constant
2955 expression */
2956 const char *g = "string";
2957 ccp = &g + (g ? g-g : 0);
2958 /* HPUX 7.0 cc rejects these. */
2959 ++ccp;
2960 p = (char**) ccp;
2961 ccp = (char const *const *) p;
2962 { /* SCO 3.2v4 cc rejects this. */
2963 char *t;
2964 char const *s = 0 ? (char *) 0 : (char const *) 0;
2966 *t++ = 0;
2968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2969 int x[] = {25, 17};
2970 const int *foo = &x[0];
2971 ++foo;
2973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2974 typedef const int *iptr;
2975 iptr p = 0;
2976 ++p;
2978 { /* AIX XL C 1.02.0.0 rejects this saying
2979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2980 struct s { int j; const int *ap[3]; };
2981 struct s *b; b->j = 5;
2983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2984 const int foo = 10;
2986 #endif
2989 return 0;
2991 _ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994 (eval $ac_compile) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 (eval $ac_try) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 ac_cv_c_const=yes
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 ac_cv_c_const=no
3011 rm -f conftest.$ac_objext conftest.$ac_ext
3013 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3014 echo "${ECHO_T}$ac_cv_c_const" >&6
3015 if test $ac_cv_c_const = no; then
3017 cat >>confdefs.h <<\_ACEOF
3018 #define const
3019 _ACEOF
3023 echo "$as_me:$LINENO: checking for inline" >&5
3024 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3025 if test "${ac_cv_c_inline+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028 ac_cv_c_inline=no
3029 for ac_kw in inline __inline__ __inline; do
3030 cat >conftest.$ac_ext <<_ACEOF
3031 #line $LINENO "configure"
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037 #ifndef __cplusplus
3038 typedef int foo_t;
3039 static $ac_kw foo_t static_foo () {return 0; }
3040 $ac_kw foo_t foo () {return 0; }
3041 #endif
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_c_inline=$ac_kw; break
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3062 rm -f conftest.$ac_objext conftest.$ac_ext
3063 done
3066 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3067 echo "${ECHO_T}$ac_cv_c_inline" >&6
3068 case $ac_cv_c_inline in
3069 inline | yes) ;;
3071 cat >>confdefs.h <<\_ACEOF
3072 #define inline
3073 _ACEOF
3075 *) cat >>confdefs.h <<_ACEOF
3076 #define inline $ac_cv_c_inline
3077 _ACEOF
3079 esac
3083 ## ----------------------- ##
3084 ## Libtool initialisation. ##
3085 ## ----------------------- ##
3088 # Check whether --enable-shared or --disable-shared was given.
3089 if test "${enable_shared+set}" = set; then
3090 enableval="$enable_shared"
3091 p=${PACKAGE-default}
3092 case $enableval in
3093 yes) enable_shared=yes ;;
3094 no) enable_shared=no ;;
3096 enable_shared=no
3097 # Look at the argument we got. We use all the common list separators.
3098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3099 for pkg in $enableval; do
3100 IFS="$lt_save_ifs"
3101 if test "X$pkg" = "X$p"; then
3102 enable_shared=yes
3104 done
3105 IFS="$lt_save_ifs"
3107 esac
3108 else
3109 enable_shared=yes
3112 # Check whether --enable-static or --disable-static was given.
3113 if test "${enable_static+set}" = set; then
3114 enableval="$enable_static"
3115 p=${PACKAGE-default}
3116 case $enableval in
3117 yes) enable_static=yes ;;
3118 no) enable_static=no ;;
3120 enable_static=no
3121 # Look at the argument we got. We use all the common list separators.
3122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3123 for pkg in $enableval; do
3124 IFS="$lt_save_ifs"
3125 if test "X$pkg" = "X$p"; then
3126 enable_static=yes
3128 done
3129 IFS="$lt_save_ifs"
3131 esac
3132 else
3133 enable_static=yes
3136 # Check whether --enable-fast-install or --disable-fast-install was given.
3137 if test "${enable_fast_install+set}" = set; then
3138 enableval="$enable_fast_install"
3139 p=${PACKAGE-default}
3140 case $enableval in
3141 yes) enable_fast_install=yes ;;
3142 no) enable_fast_install=no ;;
3144 enable_fast_install=no
3145 # Look at the argument we got. We use all the common list separators.
3146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3147 for pkg in $enableval; do
3148 IFS="$lt_save_ifs"
3149 if test "X$pkg" = "X$p"; then
3150 enable_fast_install=yes
3152 done
3153 IFS="$lt_save_ifs"
3155 esac
3156 else
3157 enable_fast_install=yes
3160 # Make sure we can run config.sub.
3161 $ac_config_sub sun4 >/dev/null 2>&1 ||
3162 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3163 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3164 { (exit 1); exit 1; }; }
3166 echo "$as_me:$LINENO: checking build system type" >&5
3167 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3168 if test "${ac_cv_build+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 ac_cv_build_alias=$build_alias
3172 test -z "$ac_cv_build_alias" &&
3173 ac_cv_build_alias=`$ac_config_guess`
3174 test -z "$ac_cv_build_alias" &&
3175 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3176 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3177 { (exit 1); exit 1; }; }
3178 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3179 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3180 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3181 { (exit 1); exit 1; }; }
3184 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3185 echo "${ECHO_T}$ac_cv_build" >&6
3186 build=$ac_cv_build
3187 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3188 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3189 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3192 echo "$as_me:$LINENO: checking host system type" >&5
3193 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3194 if test "${ac_cv_host+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 ac_cv_host_alias=$host_alias
3198 test -z "$ac_cv_host_alias" &&
3199 ac_cv_host_alias=$ac_cv_build_alias
3200 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3201 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3202 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3203 { (exit 1); exit 1; }; }
3206 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3207 echo "${ECHO_T}$ac_cv_host" >&6
3208 host=$ac_cv_host
3209 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3210 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3211 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3214 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3215 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3216 if test "${lt_cv_path_SED+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 # Loop through the user's path and test for sed and gsed.
3220 # Then use that list of sed's as ones to test for truncation.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for lt_ac_prog in sed gsed; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3229 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3231 done
3232 done
3233 done
3234 lt_ac_max=0
3235 lt_ac_count=0
3236 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3237 # along with /bin/sed that truncates output.
3238 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3239 test ! -f $lt_ac_sed && break
3240 cat /dev/null > conftest.in
3241 lt_ac_count=0
3242 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3243 # Check for GNU sed and select it if it is found.
3244 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3245 lt_cv_path_SED=$lt_ac_sed
3246 break
3248 while true; do
3249 cat conftest.in conftest.in >conftest.tmp
3250 mv conftest.tmp conftest.in
3251 cp conftest.in conftest.nl
3252 echo >>conftest.nl
3253 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3254 cmp -s conftest.out conftest.nl || break
3255 # 10000 chars as input seems more than enough
3256 test $lt_ac_count -gt 10 && break
3257 lt_ac_count=`expr $lt_ac_count + 1`
3258 if test $lt_ac_count -gt $lt_ac_max; then
3259 lt_ac_max=$lt_ac_count
3260 lt_cv_path_SED=$lt_ac_sed
3262 done
3263 done
3264 SED=$lt_cv_path_SED
3268 echo "$as_me:$LINENO: result: $SED" >&5
3269 echo "${ECHO_T}$SED" >&6
3271 echo "$as_me:$LINENO: checking for egrep" >&5
3272 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3273 if test "${ac_cv_prog_egrep+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3277 then ac_cv_prog_egrep='grep -E'
3278 else ac_cv_prog_egrep='egrep'
3281 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3282 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3283 EGREP=$ac_cv_prog_egrep
3287 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3288 if test "${with_gnu_ld+set}" = set; then
3289 withval="$with_gnu_ld"
3290 test "$withval" = no || with_gnu_ld=yes
3291 else
3292 with_gnu_ld=no
3294 ac_prog=ld
3295 if test "$GCC" = yes; then
3296 # Check if gcc -print-prog-name=ld gives a path.
3297 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3298 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3299 case $host in
3300 *-*-mingw*)
3301 # gcc leaves a trailing carriage return which upsets mingw
3302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3305 esac
3306 case $ac_prog in
3307 # Accept absolute paths.
3308 [\\/]* | ?:[\\/]*)
3309 re_direlt='/[^/][^/]*/\.\./'
3310 # Canonicalize the path of ld
3311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3314 done
3315 test -z "$LD" && LD="$ac_prog"
3318 # If it fails, then pretend we aren't using GCC.
3319 ac_prog=ld
3322 # If it is relative, then search for the first ld in PATH.
3323 with_gnu_ld=unknown
3325 esac
3326 elif test "$with_gnu_ld" = yes; then
3327 echo "$as_me:$LINENO: checking for GNU ld" >&5
3328 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3329 else
3330 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3331 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3333 if test "${lt_cv_path_LD+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 if test -z "$LD"; then
3337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3338 for ac_dir in $PATH; do
3339 IFS="$lt_save_ifs"
3340 test -z "$ac_dir" && ac_dir=.
3341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3342 lt_cv_path_LD="$ac_dir/$ac_prog"
3343 # Check to see if the program is GNU ld. I'd rather use --version,
3344 # but apparently some GNU ld's only accept -v.
3345 # Break only if it was the GNU/non-GNU ld that we prefer.
3346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3347 *GNU* | *'with BFD'*)
3348 test "$with_gnu_ld" != no && break
3351 test "$with_gnu_ld" != yes && break
3353 esac
3355 done
3356 IFS="$lt_save_ifs"
3357 else
3358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3362 LD="$lt_cv_path_LD"
3363 if test -n "$LD"; then
3364 echo "$as_me:$LINENO: result: $LD" >&5
3365 echo "${ECHO_T}$LD" >&6
3366 else
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3370 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3371 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3372 { (exit 1); exit 1; }; }
3373 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3374 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3379 case `"$LD" -v 2>&1 </dev/null` in
3380 *GNU* | *'with BFD'*)
3381 lt_cv_prog_gnu_ld=yes
3384 lt_cv_prog_gnu_ld=no
3386 esac
3388 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3389 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3390 with_gnu_ld=$lt_cv_prog_gnu_ld
3393 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3394 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3395 if test "${lt_cv_ld_reload_flag+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 lt_cv_ld_reload_flag='-r'
3400 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3401 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3402 reload_flag=$lt_cv_ld_reload_flag
3403 case $reload_flag in
3404 "" | " "*) ;;
3405 *) reload_flag=" $reload_flag" ;;
3406 esac
3407 reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
3409 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3410 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3411 if test "${lt_cv_path_NM+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 if test -n "$NM"; then
3415 # Let the user override the test.
3416 lt_cv_path_NM="$NM"
3417 else
3418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3419 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3420 IFS="$lt_save_ifs"
3421 test -z "$ac_dir" && ac_dir=.
3422 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3424 # Check to see if the nm accepts a BSD-compat flag.
3425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3426 # nm: unknown option "B" ignored
3427 # Tru64's nm complains that /dev/null is an invalid object file
3428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3429 */dev/null* | *'Invalid file or object type'*)
3430 lt_cv_path_NM="$tmp_nm -B"
3431 break
3434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3435 */dev/null*)
3436 lt_cv_path_NM="$tmp_nm -p"
3437 break
3440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3441 continue # so that we can try to find one that supports BSD flags
3443 esac
3444 esac
3446 done
3447 IFS="$lt_save_ifs"
3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3451 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3452 echo "${ECHO_T}$lt_cv_path_NM" >&6
3453 NM="$lt_cv_path_NM"
3455 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3456 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3457 LN_S=$as_ln_s
3458 if test "$LN_S" = "ln -s"; then
3459 echo "$as_me:$LINENO: result: yes" >&5
3460 echo "${ECHO_T}yes" >&6
3461 else
3462 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3463 echo "${ECHO_T}no, using $LN_S" >&6
3466 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3467 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3468 if test "${lt_cv_deplibs_check_method+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 lt_cv_file_magic_cmd='$MAGIC_CMD'
3472 lt_cv_file_magic_test_file=
3473 lt_cv_deplibs_check_method='unknown'
3474 # Need to set the preceding variable on all platforms that support
3475 # interlibrary dependencies.
3476 # 'none' -- dependencies not supported.
3477 # `unknown' -- same as none, but documents that we really don't know.
3478 # 'pass_all' -- all dependencies passed with no checks.
3479 # 'test_compile' -- check by making test program.
3480 # 'file_magic [[regex]]' -- check by looking for files in library path
3481 # which responds to the $file_magic_cmd with a given extended regex.
3482 # If you have `file' or equivalent on your system and you're not sure
3483 # whether `pass_all' will *always* work, you probably want this one.
3485 case $host_os in
3486 aix4* | aix5*)
3487 lt_cv_deplibs_check_method=pass_all
3490 beos*)
3491 lt_cv_deplibs_check_method=pass_all
3494 bsdi4*)
3495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3496 lt_cv_file_magic_cmd='/usr/bin/file -L'
3497 lt_cv_file_magic_test_file=/shlib/libc.so
3500 cygwin* | mingw* | pw32*)
3501 # win32_libid is a shell function defined in ltmain.sh
3502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3503 lt_cv_file_magic_cmd='win32_libid'
3506 darwin* | rhapsody*)
3507 # this will be overwritten by pass_all, but leave it in just in case
3508 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3509 lt_cv_file_magic_cmd='/usr/bin/file -L'
3510 case "$host_os" in
3511 rhapsody* | darwin1.[012])
3512 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3514 *) # Darwin 1.3 on
3515 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3517 esac
3518 lt_cv_deplibs_check_method=pass_all
3521 freebsd*)
3522 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3523 case $host_cpu in
3524 i*86 )
3525 # Not sure whether the presence of OpenBSD here was a mistake.
3526 # Let's accept both of them until this is cleared up.
3527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3528 lt_cv_file_magic_cmd=/usr/bin/file
3529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3531 esac
3532 else
3533 lt_cv_deplibs_check_method=pass_all
3537 gnu*)
3538 lt_cv_deplibs_check_method=pass_all
3541 hpux10.20* | hpux11*)
3542 lt_cv_file_magic_cmd=/usr/bin/file
3543 case "$host_cpu" in
3544 ia64*)
3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3546 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3548 hppa*64*)
3549 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]'
3550 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3554 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3556 esac
3559 irix5* | irix6* | nonstopux*)
3560 case $host_os in
3561 irix5* | nonstopux*)
3562 # this will be overridden with pass_all, but let us keep it just in case
3563 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3566 case $LD in
3567 *-32|*"-32 ") libmagic=32-bit;;
3568 *-n32|*"-n32 ") libmagic=N32;;
3569 *-64|*"-64 ") libmagic=64-bit;;
3570 *) libmagic=never-match;;
3571 esac
3572 # this will be overridden with pass_all, but let us keep it just in case
3573 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3575 esac
3576 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3577 lt_cv_deplibs_check_method=pass_all
3580 # This must be Linux ELF.
3581 linux*)
3582 case $host_cpu in
3583 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3584 lt_cv_deplibs_check_method=pass_all ;;
3586 # glibc up to 2.1.1 does not perform some relocations on ARM
3587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3588 esac
3589 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3592 netbsd*)
3593 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3595 else
3596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3600 newos6*)
3601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3602 lt_cv_file_magic_cmd=/usr/bin/file
3603 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3606 nto-qnx)
3607 lt_cv_deplibs_check_method=unknown
3610 openbsd*)
3611 lt_cv_file_magic_cmd=/usr/bin/file
3612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3615 else
3616 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3620 osf3* | osf4* | osf5*)
3621 # this will be overridden with pass_all, but let us keep it just in case
3622 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3623 lt_cv_file_magic_test_file=/shlib/libc.so
3624 lt_cv_deplibs_check_method=pass_all
3627 sco3.2v5*)
3628 lt_cv_deplibs_check_method=pass_all
3631 solaris*)
3632 lt_cv_deplibs_check_method=pass_all
3633 lt_cv_file_magic_test_file=/lib/libc.so
3636 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3637 case $host_vendor in
3638 motorola)
3639 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]'
3640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3642 ncr)
3643 lt_cv_deplibs_check_method=pass_all
3645 sequent)
3646 lt_cv_file_magic_cmd='/bin/file'
3647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3649 sni)
3650 lt_cv_file_magic_cmd='/bin/file'
3651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3652 lt_cv_file_magic_test_file=/lib/libc.so
3654 siemens)
3655 lt_cv_deplibs_check_method=pass_all
3657 esac
3660 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3661 lt_cv_deplibs_check_method=pass_all
3663 esac
3666 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3667 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3668 file_magic_cmd=$lt_cv_file_magic_cmd
3669 deplibs_check_method=$lt_cv_deplibs_check_method
3670 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3675 # If no C compiler was specified, use CC.
3676 LTCC=${LTCC-"$CC"}
3678 # Allow CC to be a program name with arguments.
3679 compiler=$CC
3681 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3682 if test "${enable_libtool_lock+set}" = set; then
3683 enableval="$enable_libtool_lock"
3686 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3688 # Some flags need to be propagated to the compiler or linker for good
3689 # libtool support.
3690 case $host in
3691 ia64-*-hpux*)
3692 # Find out which ABI we are using.
3693 echo 'int i;' > conftest.$ac_ext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; then
3699 case `/usr/bin/file conftest.$ac_objext` in
3700 *ELF-32*)
3701 HPUX_IA64_MODE="32"
3703 *ELF-64*)
3704 HPUX_IA64_MODE="64"
3706 esac
3708 rm -rf conftest*
3710 *-*-irix6*)
3711 # Find out which ABI we are using.
3712 echo '#line 3712 "configure"' > conftest.$ac_ext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>&5
3715 ac_status=$?
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; then
3718 if test "$lt_cv_prog_gnu_ld" = yes; then
3719 case `/usr/bin/file conftest.$ac_objext` in
3720 *32-bit*)
3721 LD="${LD-ld} -melf32bsmip"
3723 *N32*)
3724 LD="${LD-ld} -melf32bmipn32"
3726 *64-bit*)
3727 LD="${LD-ld} -melf64bmip"
3729 esac
3730 else
3731 case `/usr/bin/file conftest.$ac_objext` in
3732 *32-bit*)
3733 LD="${LD-ld} -32"
3735 *N32*)
3736 LD="${LD-ld} -n32"
3738 *64-bit*)
3739 LD="${LD-ld} -64"
3741 esac
3744 rm -rf conftest*
3747 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3748 # Find out which ABI we are using.
3749 echo 'int i;' > conftest.$ac_ext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; then
3755 case "`/usr/bin/file conftest.o`" in
3756 *32-bit*)
3757 case $host in
3758 x86_64-*linux*)
3759 LD="${LD-ld} -m elf_i386"
3761 ppc64-*linux*)
3762 LD="${LD-ld} -m elf32ppclinux"
3764 s390x-*linux*)
3765 LD="${LD-ld} -m elf_s390"
3767 sparc64-*linux*)
3768 LD="${LD-ld} -m elf32_sparc"
3770 esac
3772 *64-bit*)
3773 case $host in
3774 x86_64-*linux*)
3775 LD="${LD-ld} -m elf_x86_64"
3777 ppc*-*linux*|powerpc*-*linux*)
3778 LD="${LD-ld} -m elf64ppc"
3780 s390*-*linux*)
3781 LD="${LD-ld} -m elf64_s390"
3783 sparc*-*linux*)
3784 LD="${LD-ld} -m elf64_sparc"
3786 esac
3788 esac
3790 rm -rf conftest*
3793 *-*-sco3.2v5*)
3794 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3795 SAVE_CFLAGS="$CFLAGS"
3796 CFLAGS="$CFLAGS -belf"
3797 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3798 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3799 if test "${lt_cv_cc_needs_belf+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808 cat >conftest.$ac_ext <<_ACEOF
3809 #line $LINENO "configure"
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3817 main ()
3821 return 0;
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -s conftest$ac_exeext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 lt_cv_cc_needs_belf=yes
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 lt_cv_cc_needs_belf=no
3843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3852 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3853 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3854 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3855 CFLAGS="$SAVE_CFLAGS"
3858 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3859 if test -n "$ac_tool_prefix"; then
3860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 if test -n "$DLLTOOL"; then
3868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3881 done
3882 done
3886 DLLTOOL=$ac_cv_prog_DLLTOOL
3887 if test -n "$DLLTOOL"; then
3888 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3889 echo "${ECHO_T}$DLLTOOL" >&6
3890 else
3891 echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6
3896 if test -z "$ac_cv_prog_DLLTOOL"; then
3897 ac_ct_DLLTOOL=$DLLTOOL
3898 # Extract the first word of "dlltool", so it can be a program name with args.
3899 set dummy dlltool; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 if test -n "$ac_ct_DLLTOOL"; then
3906 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3919 done
3920 done
3922 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3925 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3926 if test -n "$ac_ct_DLLTOOL"; then
3927 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3928 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3929 else
3930 echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3934 DLLTOOL=$ac_ct_DLLTOOL
3935 else
3936 DLLTOOL="$ac_cv_prog_DLLTOOL"
3939 if test -n "$ac_tool_prefix"; then
3940 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3941 set dummy ${ac_tool_prefix}as; ac_word=$2
3942 echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_prog_AS+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 if test -n "$AS"; then
3948 ac_cv_prog_AS="$AS" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_prog_AS="${ac_tool_prefix}as"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3961 done
3962 done
3966 AS=$ac_cv_prog_AS
3967 if test -n "$AS"; then
3968 echo "$as_me:$LINENO: result: $AS" >&5
3969 echo "${ECHO_T}$AS" >&6
3970 else
3971 echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6
3976 if test -z "$ac_cv_prog_AS"; then
3977 ac_ct_AS=$AS
3978 # Extract the first word of "as", so it can be a program name with args.
3979 set dummy as; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985 if test -n "$ac_ct_AS"; then
3986 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_ac_ct_AS="as"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4002 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4005 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4006 if test -n "$ac_ct_AS"; then
4007 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4008 echo "${ECHO_T}$ac_ct_AS" >&6
4009 else
4010 echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4014 AS=$ac_ct_AS
4015 else
4016 AS="$ac_cv_prog_AS"
4019 if test -n "$ac_tool_prefix"; then
4020 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 if test -n "$OBJDUMP"; then
4028 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4046 OBJDUMP=$ac_cv_prog_OBJDUMP
4047 if test -n "$OBJDUMP"; then
4048 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4049 echo "${ECHO_T}$OBJDUMP" >&6
4050 else
4051 echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4056 if test -z "$ac_cv_prog_OBJDUMP"; then
4057 ac_ct_OBJDUMP=$OBJDUMP
4058 # Extract the first word of "objdump", so it can be a program name with args.
4059 set dummy objdump; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 if test -n "$ac_ct_OBJDUMP"; then
4066 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4082 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4085 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4086 if test -n "$ac_ct_OBJDUMP"; then
4087 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4088 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4094 OBJDUMP=$ac_ct_OBJDUMP
4095 else
4096 OBJDUMP="$ac_cv_prog_OBJDUMP"
4101 esac
4103 need_locks="$enable_libtool_lock"
4106 ac_ext=c
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4112 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4113 # On Suns, sometimes $CPP names a directory.
4114 if test -n "$CPP" && test -d "$CPP"; then
4115 CPP=
4117 if test -z "$CPP"; then
4118 if test "${ac_cv_prog_CPP+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 # Double quotes because CPP needs to be expanded
4122 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4124 ac_preproc_ok=false
4125 for ac_c_preproc_warn_flag in '' yes
4127 # Use a header file that comes with gcc, so configuring glibc
4128 # with a fresh cross-compiler works.
4129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4130 # <limits.h> exists even on freestanding compilers.
4131 # On the NeXT, cc -E runs the code through the compiler's parser,
4132 # not just through cpp. "Syntax error" is here to catch this case.
4133 cat >conftest.$ac_ext <<_ACEOF
4134 #line $LINENO "configure"
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #ifdef __STDC__
4141 # include <limits.h>
4142 #else
4143 # include <assert.h>
4144 #endif
4145 Syntax error
4146 _ACEOF
4147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } >/dev/null; then
4155 if test -s conftest.err; then
4156 ac_cpp_err=$ac_c_preproc_warn_flag
4157 else
4158 ac_cpp_err=
4160 else
4161 ac_cpp_err=yes
4163 if test -z "$ac_cpp_err"; then
4165 else
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 # Broken: fails on valid input.
4170 continue
4172 rm -f conftest.err conftest.$ac_ext
4174 # OK, works on sane cases. Now check whether non-existent headers
4175 # can be detected and how.
4176 cat >conftest.$ac_ext <<_ACEOF
4177 #line $LINENO "configure"
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 #include <ac_nonexistent.h>
4184 _ACEOF
4185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } >/dev/null; then
4193 if test -s conftest.err; then
4194 ac_cpp_err=$ac_c_preproc_warn_flag
4195 else
4196 ac_cpp_err=
4198 else
4199 ac_cpp_err=yes
4201 if test -z "$ac_cpp_err"; then
4202 # Broken: success on invalid input.
4203 continue
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 # Passes both tests.
4209 ac_preproc_ok=:
4210 break
4212 rm -f conftest.err conftest.$ac_ext
4214 done
4215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4216 rm -f conftest.err conftest.$ac_ext
4217 if $ac_preproc_ok; then
4218 break
4221 done
4222 ac_cv_prog_CPP=$CPP
4225 CPP=$ac_cv_prog_CPP
4226 else
4227 ac_cv_prog_CPP=$CPP
4229 echo "$as_me:$LINENO: result: $CPP" >&5
4230 echo "${ECHO_T}$CPP" >&6
4231 ac_preproc_ok=false
4232 for ac_c_preproc_warn_flag in '' yes
4234 # Use a header file that comes with gcc, so configuring glibc
4235 # with a fresh cross-compiler works.
4236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237 # <limits.h> exists even on freestanding compilers.
4238 # On the NeXT, cc -E runs the code through the compiler's parser,
4239 # not just through cpp. "Syntax error" is here to catch this case.
4240 cat >conftest.$ac_ext <<_ACEOF
4241 #line $LINENO "configure"
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #ifdef __STDC__
4248 # include <limits.h>
4249 #else
4250 # include <assert.h>
4251 #endif
4252 Syntax error
4253 _ACEOF
4254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } >/dev/null; then
4262 if test -s conftest.err; then
4263 ac_cpp_err=$ac_c_preproc_warn_flag
4264 else
4265 ac_cpp_err=
4267 else
4268 ac_cpp_err=yes
4270 if test -z "$ac_cpp_err"; then
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 # Broken: fails on valid input.
4277 continue
4279 rm -f conftest.err conftest.$ac_ext
4281 # OK, works on sane cases. Now check whether non-existent headers
4282 # can be detected and how.
4283 cat >conftest.$ac_ext <<_ACEOF
4284 #line $LINENO "configure"
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 #include <ac_nonexistent.h>
4291 _ACEOF
4292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } >/dev/null; then
4300 if test -s conftest.err; then
4301 ac_cpp_err=$ac_c_preproc_warn_flag
4302 else
4303 ac_cpp_err=
4305 else
4306 ac_cpp_err=yes
4308 if test -z "$ac_cpp_err"; then
4309 # Broken: success on invalid input.
4310 continue
4311 else
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 # Passes both tests.
4316 ac_preproc_ok=:
4317 break
4319 rm -f conftest.err conftest.$ac_ext
4321 done
4322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323 rm -f conftest.err conftest.$ac_ext
4324 if $ac_preproc_ok; then
4326 else
4327 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4328 See \`config.log' for more details." >&5
4329 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4330 See \`config.log' for more details." >&2;}
4331 { (exit 1); exit 1; }; }
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4343 if test "${ac_cv_header_stdc+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4359 main ()
4363 return 0;
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368 (eval $ac_compile) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_header_stdc=yes
4379 else
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 ac_cv_header_stdc=no
4385 rm -f conftest.$ac_objext conftest.$ac_ext
4387 if test $ac_cv_header_stdc = yes; then
4388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4389 cat >conftest.$ac_ext <<_ACEOF
4390 #line $LINENO "configure"
4391 /* confdefs.h. */
4392 _ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 #include <string.h>
4398 _ACEOF
4399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400 $EGREP "memchr" >/dev/null 2>&1; then
4402 else
4403 ac_cv_header_stdc=no
4405 rm -f conftest*
4409 if test $ac_cv_header_stdc = yes; then
4410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line $LINENO "configure"
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #include <stdlib.h>
4420 _ACEOF
4421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4422 $EGREP "free" >/dev/null 2>&1; then
4424 else
4425 ac_cv_header_stdc=no
4427 rm -f conftest*
4431 if test $ac_cv_header_stdc = yes; then
4432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4433 if test "$cross_compiling" = yes; then
4435 else
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #include <ctype.h>
4444 #if ((' ' & 0x0FF) == 0x020)
4445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4447 #else
4448 # define ISLOWER(c) \
4449 (('a' <= (c) && (c) <= 'i') \
4450 || ('j' <= (c) && (c) <= 'r') \
4451 || ('s' <= (c) && (c) <= 'z'))
4452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4453 #endif
4455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4457 main ()
4459 int i;
4460 for (i = 0; i < 256; i++)
4461 if (XOR (islower (i), ISLOWER (i))
4462 || toupper (i) != TOUPPER (i))
4463 exit(2);
4464 exit (0);
4466 _ACEOF
4467 rm -f conftest$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469 (eval $ac_link) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4479 else
4480 echo "$as_me: program exited with status $ac_status" >&5
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ( exit $ac_status )
4485 ac_cv_header_stdc=no
4487 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4492 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4493 if test $ac_cv_header_stdc = yes; then
4495 cat >>confdefs.h <<\_ACEOF
4496 #define STDC_HEADERS 1
4497 _ACEOF
4501 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4511 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4512 inttypes.h stdint.h unistd.h
4514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4515 echo "$as_me:$LINENO: checking for $ac_header" >&5
4516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 cat >conftest.$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4529 #include <$ac_header>
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -s conftest.$ac_objext'
4538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 (eval $ac_try) 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4543 eval "$as_ac_Header=yes"
4544 else
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4548 eval "$as_ac_Header=no"
4550 rm -f conftest.$ac_objext conftest.$ac_ext
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4555 cat >>confdefs.h <<_ACEOF
4556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4557 _ACEOF
4561 done
4565 for ac_header in dlfcn.h
4567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4569 echo "$as_me:$LINENO: checking for $ac_header" >&5
4570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576 else
4577 # Is the header compilable?
4578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line $LINENO "configure"
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 $ac_includes_default
4588 #include <$ac_header>
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_header_compiler=yes
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_header_compiler=no
4609 rm -f conftest.$ac_objext conftest.$ac_ext
4610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4611 echo "${ECHO_T}$ac_header_compiler" >&6
4613 # Is the header present?
4614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4616 cat >conftest.$ac_ext <<_ACEOF
4617 #line $LINENO "configure"
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #include <$ac_header>
4624 _ACEOF
4625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } >/dev/null; then
4633 if test -s conftest.err; then
4634 ac_cpp_err=$ac_c_preproc_warn_flag
4635 else
4636 ac_cpp_err=
4638 else
4639 ac_cpp_err=yes
4641 if test -z "$ac_cpp_err"; then
4642 ac_header_preproc=yes
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 ac_header_preproc=no
4649 rm -f conftest.err conftest.$ac_ext
4650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4651 echo "${ECHO_T}$ac_header_preproc" >&6
4653 # So? What about this header?
4654 case $ac_header_compiler:$ac_header_preproc in
4655 yes:no )
4656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4661 cat <<\_ASBOX
4662 ## ------------------------------------ ##
4663 ## Report this to bug-autoconf@gnu.org. ##
4664 ## ------------------------------------ ##
4665 _ASBOX
4667 sed "s/^/$as_me: WARNING: /" >&2
4669 no:yes )
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4677 cat <<\_ASBOX
4678 ## ------------------------------------ ##
4679 ## Report this to bug-autoconf@gnu.org. ##
4680 ## ------------------------------------ ##
4681 _ASBOX
4683 sed "s/^/$as_me: WARNING: /" >&2
4685 esac
4686 echo "$as_me:$LINENO: checking for $ac_header" >&5
4687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 eval "$as_ac_Header=$ac_header_preproc"
4693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4698 cat >>confdefs.h <<_ACEOF
4699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4700 _ACEOF
4704 done
4706 ac_ext=cc
4707 ac_cpp='$CXXCPP $CPPFLAGS'
4708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4711 if test -n "$ac_tool_prefix"; then
4712 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4716 echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4718 if test "${ac_cv_prog_CXX+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 if test -n "$CXX"; then
4722 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4740 CXX=$ac_cv_prog_CXX
4741 if test -n "$CXX"; then
4742 echo "$as_me:$LINENO: result: $CXX" >&5
4743 echo "${ECHO_T}$CXX" >&6
4744 else
4745 echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6
4749 test -n "$CXX" && break
4750 done
4752 if test -z "$CXX"; then
4753 ac_ct_CXX=$CXX
4754 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4756 # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy $ac_prog; ac_word=$2
4758 echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4760 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763 if test -n "$ac_ct_CXX"; then
4764 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_ac_ct_CXX="$ac_prog"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4777 done
4778 done
4782 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4783 if test -n "$ac_ct_CXX"; then
4784 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4785 echo "${ECHO_T}$ac_ct_CXX" >&6
4786 else
4787 echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6
4791 test -n "$ac_ct_CXX" && break
4792 done
4793 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4795 CXX=$ac_ct_CXX
4799 # Provide some information about the compiler.
4800 echo "$as_me:$LINENO:" \
4801 "checking for C++ compiler version" >&5
4802 ac_compiler=`set X $ac_compile; echo $2`
4803 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4804 (eval $ac_compiler --version </dev/null >&5) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }
4808 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4809 (eval $ac_compiler -v </dev/null >&5) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }
4813 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4814 (eval $ac_compiler -V </dev/null >&5) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }
4819 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4820 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4821 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4833 main ()
4835 #ifndef __GNUC__
4836 choke me
4837 #endif
4840 return 0;
4842 _ACEOF
4843 rm -f conftest.$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845 (eval $ac_compile) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_compiler_gnu=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_compiler_gnu=no
4862 rm -f conftest.$ac_objext conftest.$ac_ext
4863 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4866 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4867 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4868 GXX=`test $ac_compiler_gnu = yes && echo yes`
4869 ac_test_CXXFLAGS=${CXXFLAGS+set}
4870 ac_save_CXXFLAGS=$CXXFLAGS
4871 CXXFLAGS="-g"
4872 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4873 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4874 if test "${ac_cv_prog_cxx_g+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 cat >conftest.$ac_ext <<_ACEOF
4878 #line $LINENO "configure"
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4886 main ()
4890 return 0;
4892 _ACEOF
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_cv_prog_cxx_g=yes
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 ac_cv_prog_cxx_g=no
4912 rm -f conftest.$ac_objext conftest.$ac_ext
4914 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4915 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4916 if test "$ac_test_CXXFLAGS" = set; then
4917 CXXFLAGS=$ac_save_CXXFLAGS
4918 elif test $ac_cv_prog_cxx_g = yes; then
4919 if test "$GXX" = yes; then
4920 CXXFLAGS="-g -O2"
4921 else
4922 CXXFLAGS="-g"
4924 else
4925 if test "$GXX" = yes; then
4926 CXXFLAGS="-O2"
4927 else
4928 CXXFLAGS=
4931 for ac_declaration in \
4933 '#include <stdlib.h>' \
4934 'extern "C" void std::exit (int) throw (); using std::exit;' \
4935 'extern "C" void std::exit (int); using std::exit;' \
4936 'extern "C" void exit (int) throw ();' \
4937 'extern "C" void exit (int);' \
4938 'void exit (int);'
4940 cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 /* confdefs.h. */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4947 #include <stdlib.h>
4948 $ac_declaration
4950 main ()
4952 exit (42);
4954 return 0;
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -s conftest.$ac_objext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4970 else
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4974 continue
4976 rm -f conftest.$ac_objext conftest.$ac_ext
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_declaration
4986 main ()
4988 exit (42);
4990 return 0;
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -s conftest.$ac_objext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 break
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5011 rm -f conftest.$ac_objext conftest.$ac_ext
5012 done
5013 rm -f conftest*
5014 if test -n "$ac_declaration"; then
5015 echo '#ifdef __cplusplus' >>confdefs.h
5016 echo $ac_declaration >>confdefs.h
5017 echo '#endif' >>confdefs.h
5020 ac_ext=cc
5021 ac_cpp='$CXXCPP $CPPFLAGS'
5022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5026 depcc="$CXX" am_compiler_list=
5028 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5029 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5030 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5034 # We make a subdir and do the tests there. Otherwise we can end up
5035 # making bogus files that we don't know about and never remove. For
5036 # instance it was reported that on HP-UX the gcc test will end up
5037 # making a dummy file named `D' -- because `-MD' means `put the output
5038 # in D'.
5039 mkdir conftest.dir
5040 # Copy depcomp to subdir because otherwise we won't find it if we're
5041 # using a relative directory.
5042 cp "$am_depcomp" conftest.dir
5043 cd conftest.dir
5045 am_cv_CXX_dependencies_compiler_type=none
5046 if test "$am_compiler_list" = ""; then
5047 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5049 for depmode in $am_compiler_list; do
5050 # We need to recreate these files for each test, as the compiler may
5051 # overwrite some of them when testing with obscure command lines.
5052 # This happens at least with the AIX C compiler.
5053 echo '#include "conftest.h"' > conftest.c
5054 echo 'int i;' > conftest.h
5055 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5057 case $depmode in
5058 nosideeffect)
5059 # after this tag, mechanisms are not by side-effect, so they'll
5060 # only be used when explicitly requested
5061 if test "x$enable_dependency_tracking" = xyes; then
5062 continue
5063 else
5064 break
5067 none) break ;;
5068 esac
5069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5070 # mode. It turns out that the SunPro C++ compiler does not properly
5071 # handle `-M -o', and we need to detect this.
5072 if depmode=$depmode \
5073 source=conftest.c object=conftest.o \
5074 depfile=conftest.Po tmpdepfile=conftest.TPo \
5075 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
5076 >/dev/null 2>conftest.err &&
5077 grep conftest.h conftest.Po > /dev/null 2>&1 &&
5078 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5079 # icc doesn't choke on unknown options, it will just issue warnings
5080 # (even with -Werror). So we grep stderr for any message
5081 # that says an option was ignored.
5082 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5083 am_cv_CXX_dependencies_compiler_type=$depmode
5084 break
5087 done
5089 cd ..
5090 rm -rf conftest.dir
5091 else
5092 am_cv_CXX_dependencies_compiler_type=none
5096 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5097 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5098 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5103 test "x$enable_dependency_tracking" != xno \
5104 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5105 am__fastdepCXX_TRUE=
5106 am__fastdepCXX_FALSE='#'
5107 else
5108 am__fastdepCXX_TRUE='#'
5109 am__fastdepCXX_FALSE=
5113 ac_ext=cc
5114 ac_cpp='$CXXCPP $CPPFLAGS'
5115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5119 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5120 if test -z "$CXXCPP"; then
5121 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 # Double quotes because CXXCPP needs to be expanded
5125 for CXXCPP in "$CXX -E" "/lib/cpp"
5127 ac_preproc_ok=false
5128 for ac_cxx_preproc_warn_flag in '' yes
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #ifdef __STDC__
5144 # include <limits.h>
5145 #else
5146 # include <assert.h>
5147 #endif
5148 Syntax error
5149 _ACEOF
5150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null; then
5158 if test -s conftest.err; then
5159 ac_cpp_err=$ac_cxx_preproc_warn_flag
5160 else
5161 ac_cpp_err=
5163 else
5164 ac_cpp_err=yes
5166 if test -z "$ac_cpp_err"; then
5168 else
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 # Broken: fails on valid input.
5173 continue
5175 rm -f conftest.err conftest.$ac_ext
5177 # OK, works on sane cases. Now check whether non-existent headers
5178 # can be detected and how.
5179 cat >conftest.$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5181 /* confdefs.h. */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5187 _ACEOF
5188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } >/dev/null; then
5196 if test -s conftest.err; then
5197 ac_cpp_err=$ac_cxx_preproc_warn_flag
5198 else
5199 ac_cpp_err=
5201 else
5202 ac_cpp_err=yes
5204 if test -z "$ac_cpp_err"; then
5205 # Broken: success on invalid input.
5206 continue
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 # Passes both tests.
5212 ac_preproc_ok=:
5213 break
5215 rm -f conftest.err conftest.$ac_ext
5217 done
5218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5219 rm -f conftest.err conftest.$ac_ext
5220 if $ac_preproc_ok; then
5221 break
5224 done
5225 ac_cv_prog_CXXCPP=$CXXCPP
5228 CXXCPP=$ac_cv_prog_CXXCPP
5229 else
5230 ac_cv_prog_CXXCPP=$CXXCPP
5232 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5233 echo "${ECHO_T}$CXXCPP" >&6
5234 ac_preproc_ok=false
5235 for ac_cxx_preproc_warn_flag in '' yes
5237 # Use a header file that comes with gcc, so configuring glibc
5238 # with a fresh cross-compiler works.
5239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240 # <limits.h> exists even on freestanding compilers.
5241 # On the NeXT, cc -E runs the code through the compiler's parser,
5242 # not just through cpp. "Syntax error" is here to catch this case.
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #ifdef __STDC__
5251 # include <limits.h>
5252 #else
5253 # include <assert.h>
5254 #endif
5255 Syntax error
5256 _ACEOF
5257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } >/dev/null; then
5265 if test -s conftest.err; then
5266 ac_cpp_err=$ac_cxx_preproc_warn_flag
5267 else
5268 ac_cpp_err=
5270 else
5271 ac_cpp_err=yes
5273 if test -z "$ac_cpp_err"; then
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 # Broken: fails on valid input.
5280 continue
5282 rm -f conftest.err conftest.$ac_ext
5284 # OK, works on sane cases. Now check whether non-existent headers
5285 # can be detected and how.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <ac_nonexistent.h>
5294 _ACEOF
5295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } >/dev/null; then
5303 if test -s conftest.err; then
5304 ac_cpp_err=$ac_cxx_preproc_warn_flag
5305 else
5306 ac_cpp_err=
5308 else
5309 ac_cpp_err=yes
5311 if test -z "$ac_cpp_err"; then
5312 # Broken: success on invalid input.
5313 continue
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 # Passes both tests.
5319 ac_preproc_ok=:
5320 break
5322 rm -f conftest.err conftest.$ac_ext
5324 done
5325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5326 rm -f conftest.err conftest.$ac_ext
5327 if $ac_preproc_ok; then
5329 else
5330 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5331 See \`config.log' for more details." >&5
5332 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5333 See \`config.log' for more details." >&2;}
5334 { (exit 1); exit 1; }; }
5337 ac_ext=cc
5338 ac_cpp='$CXXCPP $CPPFLAGS'
5339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5344 ac_ext=f
5345 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5346 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5348 if test -n "$ac_tool_prefix"; then
5349 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_prog_F77+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 if test -n "$F77"; then
5359 ac_cv_prog_F77="$F77" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5377 F77=$ac_cv_prog_F77
5378 if test -n "$F77"; then
5379 echo "$as_me:$LINENO: result: $F77" >&5
5380 echo "${ECHO_T}$F77" >&6
5381 else
5382 echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5386 test -n "$F77" && break
5387 done
5389 if test -z "$F77"; then
5390 ac_ct_F77=$F77
5391 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5393 # Extract the first word of "$ac_prog", so it can be a program name with args.
5394 set dummy $ac_prog; ac_word=$2
5395 echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5397 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 if test -n "$ac_ct_F77"; then
5401 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_prog_ac_ct_F77="$ac_prog"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5414 done
5415 done
5419 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5420 if test -n "$ac_ct_F77"; then
5421 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5422 echo "${ECHO_T}$ac_ct_F77" >&6
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5428 test -n "$ac_ct_F77" && break
5429 done
5431 F77=$ac_ct_F77
5435 # Provide some information about the compiler.
5436 echo "$as_me:5436:" \
5437 "checking for Fortran 77 compiler version" >&5
5438 ac_compiler=`set X $ac_compile; echo $2`
5439 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5440 (eval $ac_compiler --version </dev/null >&5) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }
5444 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5445 (eval $ac_compiler -v </dev/null >&5) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }
5449 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5450 (eval $ac_compiler -V </dev/null >&5) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }
5455 # If we don't use `.F' as extension, the preprocessor is not run on the
5456 # input file.
5457 ac_save_ext=$ac_ext
5458 ac_ext=F
5459 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5460 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5461 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 program main
5466 #ifndef __GNUC__
5467 choke me
5468 #endif
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 ac_compiler_gnu=yes
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_compiler_gnu=no
5491 rm -f conftest.$ac_objext conftest.$ac_ext
5492 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5495 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5496 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5497 ac_ext=$ac_save_ext
5498 G77=`test $ac_compiler_gnu = yes && echo yes`
5499 ac_test_FFLAGS=${FFLAGS+set}
5500 ac_save_FFLAGS=$FFLAGS
5501 FFLAGS=
5502 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5503 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5504 if test "${ac_cv_prog_f77_g+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 FFLAGS=-g
5508 cat >conftest.$ac_ext <<_ACEOF
5509 program main
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515 (eval $ac_compile) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_cv_prog_f77_g=yes
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 ac_cv_prog_f77_g=no
5532 rm -f conftest.$ac_objext conftest.$ac_ext
5535 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5536 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5537 if test "$ac_test_FFLAGS" = set; then
5538 FFLAGS=$ac_save_FFLAGS
5539 elif test $ac_cv_prog_f77_g = yes; then
5540 if test "$G77" = yes; then
5541 FFLAGS="-g -O2"
5542 else
5543 FFLAGS="-g"
5545 else
5546 if test "$G77" = yes; then
5547 FFLAGS="-O2"
5548 else
5549 FFLAGS=
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5562 # find the maximum length of command line arguments
5563 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5564 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5565 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5569 testring="ABCD"
5571 case $build_os in
5572 msdosdjgpp*)
5573 # On DJGPP, this test can blow up pretty badly due to problems in libc
5574 # (any single argument exceeding 2000 bytes causes a buffer overrun
5575 # during glob expansion). Even if it were fixed, the result of this
5576 # check would be larger than it should be.
5577 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5580 gnu*)
5581 # Under GNU Hurd, this test is not required because there is
5582 # no limit to the length of command line arguments.
5583 # Libtool will interpret -1 as no limit whatsoever
5584 lt_cv_sys_max_cmd_len=-1;
5587 cygwin* | mingw*)
5588 # On Win9x/ME, this test blows up -- it succeeds, but takes
5589 # about 5 minutes as the teststring grows exponentially.
5590 # Worse, since 9x/ME are not pre-emptively multitasking,
5591 # you end up with a "frozen" computer, even though with patience
5592 # the test eventually succeeds (with a max line length of 256k).
5593 # Instead, let's just punt: use the minimum linelength reported by
5594 # all of the supported platforms: 8192 (on NT/2K/XP).
5595 lt_cv_sys_max_cmd_len=8192;
5599 # If test is not a shell built-in, we'll probably end up computing a
5600 # maximum length that is only half of the actual maximum length, but
5601 # we can't tell.
5602 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5603 = "XX$testring") >/dev/null 2>&1 &&
5604 new_result=`expr "X$testring" : ".*" 2>&1` &&
5605 lt_cv_sys_max_cmd_len=$new_result &&
5606 test $i != 17 # 1/2 MB should be enough
5608 i=`expr $i + 1`
5609 testring=$testring$testring
5610 done
5611 testring=
5612 # Add a significant safety factor because C++ compilers can tack on massive
5613 # amounts of additional arguments before passing them to the linker.
5614 # It appears as though 1/2 is a usable value.
5615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5617 esac
5621 if test -n $lt_cv_sys_max_cmd_len ; then
5622 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5623 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5624 else
5625 echo "$as_me:$LINENO: result: none" >&5
5626 echo "${ECHO_T}none" >&6
5632 # Check for command to grab the raw symbol name followed by C symbol from nm.
5633 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5634 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5635 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5639 # These are sane defaults that work on at least a few old systems.
5640 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5642 # Character class describing NM global symbol codes.
5643 symcode='[BCDEGRST]'
5645 # Regexp to match symbols that can be accessed directly from C.
5646 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5648 # Transform the above into a raw symbol and a C symbol.
5649 symxfrm='\1 \2\3 \3'
5651 # Transform an extracted symbol line into a proper C declaration
5652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5654 # Transform an extracted symbol line into symbol name and symbol address
5655 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'"
5657 # Define system-specific variables.
5658 case $host_os in
5659 aix*)
5660 symcode='[BCDT]'
5662 cygwin* | mingw* | pw32*)
5663 symcode='[ABCDGISTW]'
5665 hpux*) # Its linker distinguishes data from code symbols
5666 if test "$host_cpu" = ia64; then
5667 symcode='[ABCDEGRST]'
5669 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5670 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'"
5672 irix* | nonstopux*)
5673 symcode='[BCDEGRST]'
5675 osf*)
5676 symcode='[BCDEGQRST]'
5678 solaris* | sysv5*)
5679 symcode='[BDT]'
5681 sysv4)
5682 symcode='[DFNSTU]'
5684 esac
5686 # Handle CRLF in mingw tool chain
5687 opt_cr=
5688 case $build_os in
5689 mingw*)
5690 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5692 esac
5694 # If we're using GNU nm, then use its standard symbol codes.
5695 case `$NM -V 2>&1` in
5696 *GNU* | *'with BFD'*)
5697 symcode='[ABCDGISTW]' ;;
5698 esac
5700 # Try without a prefix undercore, then with it.
5701 for ac_symprfx in "" "_"; do
5703 # Write the raw and C identifiers.
5704 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5706 # Check to see that the pipe works correctly.
5707 pipe_works=no
5709 rm -f conftest*
5710 cat > conftest.$ac_ext <<EOF
5711 #ifdef __cplusplus
5712 extern "C" {
5713 #endif
5714 char nm_test_var;
5715 void nm_test_func(){}
5716 #ifdef __cplusplus
5718 #endif
5719 int main(){nm_test_var='a';nm_test_func();return(0);}
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; then
5727 # Now try to grab the symbols.
5728 nlist=conftest.nm
5729 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5730 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && test -s "$nlist"; then
5734 # Try sorting and uniquifying the output.
5735 if sort "$nlist" | uniq > "$nlist"T; then
5736 mv -f "$nlist"T "$nlist"
5737 else
5738 rm -f "$nlist"T
5741 # Make sure that we snagged all the symbols we need.
5742 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5743 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5744 cat <<EOF > conftest.$ac_ext
5745 #ifdef __cplusplus
5746 extern "C" {
5747 #endif
5750 # Now generate the symbol file.
5751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5753 cat <<EOF >> conftest.$ac_ext
5754 #if defined (__STDC__) && __STDC__
5755 # define lt_ptr_t void *
5756 #else
5757 # define lt_ptr_t char *
5758 # define const
5759 #endif
5761 /* The mapping between symbol names and symbols. */
5762 const struct {
5763 const char *name;
5764 lt_ptr_t address;
5766 lt_preloaded_symbols[] =
5769 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5770 cat <<\EOF >> conftest.$ac_ext
5771 {0, (lt_ptr_t) 0}
5774 #ifdef __cplusplus
5776 #endif
5778 # Now try linking the two files.
5779 mv conftest.$ac_objext conftstm.$ac_objext
5780 lt_save_LIBS="$LIBS"
5781 lt_save_CFLAGS="$CFLAGS"
5782 LIBS="conftstm.$ac_objext"
5783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785 (eval $ac_link) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5789 pipe_works=yes
5791 LIBS="$lt_save_LIBS"
5792 CFLAGS="$lt_save_CFLAGS"
5793 else
5794 echo "cannot find nm_test_func in $nlist" >&5
5796 else
5797 echo "cannot find nm_test_var in $nlist" >&5
5799 else
5800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5802 else
5803 echo "$progname: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5806 rm -f conftest* conftst*
5808 # Do not use the global_symbol_pipe unless it works.
5809 if test "$pipe_works" = yes; then
5810 break
5811 else
5812 lt_cv_sys_global_symbol_pipe=
5814 done
5818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5819 lt_cv_sys_global_symbol_to_cdecl=
5821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5822 echo "$as_me:$LINENO: result: failed" >&5
5823 echo "${ECHO_T}failed" >&6
5824 else
5825 echo "$as_me:$LINENO: result: ok" >&5
5826 echo "${ECHO_T}ok" >&6
5829 echo "$as_me:$LINENO: checking for objdir" >&5
5830 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5831 if test "${lt_cv_objdir+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 rm -f .libs 2>/dev/null
5835 mkdir .libs 2>/dev/null
5836 if test -d .libs; then
5837 lt_cv_objdir=.libs
5838 else
5839 # MS-DOS does not allow filenames that begin with a dot.
5840 lt_cv_objdir=_libs
5842 rmdir .libs 2>/dev/null
5844 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5845 echo "${ECHO_T}$lt_cv_objdir" >&6
5846 objdir=$lt_cv_objdir
5852 case $host_os in
5853 aix3*)
5854 # AIX sometimes has problems with the GCC collect2 program. For some
5855 # reason, if we set the COLLECT_NAMES environment variable, the problems
5856 # vanish in a puff of smoke.
5857 if test "X${COLLECT_NAMES+set}" != Xset; then
5858 COLLECT_NAMES=
5859 export COLLECT_NAMES
5862 esac
5864 # Sed substitution that helps us do robust quoting. It backslashifies
5865 # metacharacters that are still active within double-quoted strings.
5866 Xsed='sed -e s/^X//'
5867 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5869 # Same as above, but do not quote variable references.
5870 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5872 # Sed substitution to delay expansion of an escaped shell variable in a
5873 # double_quote_subst'ed string.
5874 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5876 # Sed substitution to undo escaping of the cmd sep variable
5877 unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
5879 # Sed substitution to avoid accidental globbing in evaled expressions
5880 no_glob_subst='s/\*/\\\*/g'
5882 # Constants:
5883 rm="rm -f"
5885 # Global variables:
5886 default_ofile=libtool
5887 can_build_shared=yes
5889 # All known linkers require a `.a' archive for static linking (except M$VC,
5890 # which needs '.lib').
5891 libext=a
5892 ltmain="$ac_aux_dir/ltmain.sh"
5893 ofile="$default_ofile"
5894 with_gnu_ld="$lt_cv_prog_gnu_ld"
5896 if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5898 set dummy ${ac_tool_prefix}ar; ac_word=$2
5899 echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5901 if test "${ac_cv_prog_AR+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 if test -n "$AR"; then
5905 ac_cv_prog_AR="$AR" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_AR="${ac_tool_prefix}ar"
5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5918 done
5919 done
5923 AR=$ac_cv_prog_AR
5924 if test -n "$AR"; then
5925 echo "$as_me:$LINENO: result: $AR" >&5
5926 echo "${ECHO_T}$AR" >&6
5927 else
5928 echo "$as_me:$LINENO: result: no" >&5
5929 echo "${ECHO_T}no" >&6
5933 if test -z "$ac_cv_prog_AR"; then
5934 ac_ct_AR=$AR
5935 # Extract the first word of "ar", so it can be a program name with args.
5936 set dummy ar; ac_word=$2
5937 echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942 if test -n "$ac_ct_AR"; then
5943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_ac_ct_AR="ar"
5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5956 done
5957 done
5959 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5963 if test -n "$ac_ct_AR"; then
5964 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5965 echo "${ECHO_T}$ac_ct_AR" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6
5971 AR=$ac_ct_AR
5972 else
5973 AR="$ac_cv_prog_AR"
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5979 echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981 if test "${ac_cv_prog_RANLIB+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 if test -n "$RANLIB"; then
5985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5998 done
5999 done
6003 RANLIB=$ac_cv_prog_RANLIB
6004 if test -n "$RANLIB"; then
6005 echo "$as_me:$LINENO: result: $RANLIB" >&5
6006 echo "${ECHO_T}$RANLIB" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6
6013 if test -z "$ac_cv_prog_RANLIB"; then
6014 ac_ct_RANLIB=$RANLIB
6015 # Extract the first word of "ranlib", so it can be a program name with args.
6016 set dummy ranlib; ac_word=$2
6017 echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 if test -n "$ac_ct_RANLIB"; then
6023 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_ac_ct_RANLIB="ranlib"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6036 done
6037 done
6039 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6043 if test -n "$ac_ct_RANLIB"; then
6044 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6045 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6046 else
6047 echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6051 RANLIB=$ac_ct_RANLIB
6052 else
6053 RANLIB="$ac_cv_prog_RANLIB"
6056 if test -n "$ac_tool_prefix"; then
6057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6058 set dummy ${ac_tool_prefix}strip; ac_word=$2
6059 echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6061 if test "${ac_cv_prog_STRIP+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 if test -n "$STRIP"; then
6065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6074 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6078 done
6079 done
6083 STRIP=$ac_cv_prog_STRIP
6084 if test -n "$STRIP"; then
6085 echo "$as_me:$LINENO: result: $STRIP" >&5
6086 echo "${ECHO_T}$STRIP" >&6
6087 else
6088 echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6
6093 if test -z "$ac_cv_prog_STRIP"; then
6094 ac_ct_STRIP=$STRIP
6095 # Extract the first word of "strip", so it can be a program name with args.
6096 set dummy strip; ac_word=$2
6097 echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 if test -n "$ac_ct_STRIP"; then
6103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_ac_ct_STRIP="strip"
6113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6116 done
6117 done
6119 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123 if test -n "$ac_ct_STRIP"; then
6124 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6125 echo "${ECHO_T}$ac_ct_STRIP" >&6
6126 else
6127 echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6
6131 STRIP=$ac_ct_STRIP
6132 else
6133 STRIP="$ac_cv_prog_STRIP"
6137 old_CC="$CC"
6138 old_CFLAGS="$CFLAGS"
6140 # Set sane defaults for various variables
6141 test -z "$AR" && AR=ar
6142 test -z "$AR_FLAGS" && AR_FLAGS=cru
6143 test -z "$AS" && AS=as
6144 test -z "$CC" && CC=cc
6145 test -z "$LTCC" && LTCC=$CC
6146 test -z "$DLLTOOL" && DLLTOOL=dlltool
6147 test -z "$LD" && LD=ld
6148 test -z "$LN_S" && LN_S="ln -s"
6149 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6150 test -z "$NM" && NM=nm
6151 test -z "$SED" && SED=sed
6152 test -z "$OBJDUMP" && OBJDUMP=objdump
6153 test -z "$RANLIB" && RANLIB=:
6154 test -z "$STRIP" && STRIP=:
6155 test -z "$ac_objext" && ac_objext=o
6157 # Determine commands to create old-style static archives.
6158 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6159 old_postinstall_cmds='chmod 644 $oldlib'
6160 old_postuninstall_cmds=
6162 if test -n "$RANLIB"; then
6163 case $host_os in
6164 openbsd*)
6165 old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
6168 old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
6170 esac
6171 old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
6174 # Only perform the check for file, if the check method requires it
6175 case $deplibs_check_method in
6176 file_magic*)
6177 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6178 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6179 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6180 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 case $MAGIC_CMD in
6184 [\\/*] | ?:[\\/]*)
6185 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6188 lt_save_MAGIC_CMD="$MAGIC_CMD"
6189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6190 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6191 for ac_dir in $ac_dummy; do
6192 IFS="$lt_save_ifs"
6193 test -z "$ac_dir" && ac_dir=.
6194 if test -f $ac_dir/${ac_tool_prefix}file; then
6195 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6196 if test -n "$file_magic_test_file"; then
6197 case $deplibs_check_method in
6198 "file_magic "*)
6199 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6201 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6202 $EGREP "$file_magic_regex" > /dev/null; then
6204 else
6205 cat <<EOF 1>&2
6207 *** Warning: the command libtool uses to detect shared libraries,
6208 *** $file_magic_cmd, produces output that libtool cannot recognize.
6209 *** The result is that libtool may fail to recognize shared libraries
6210 *** as such. This will affect the creation of libtool libraries that
6211 *** depend on shared libraries, but programs linked with such libtool
6212 *** libraries will work regardless of this problem. Nevertheless, you
6213 *** may want to report the problem to your system manager and/or to
6214 *** bug-libtool@gnu.org
6217 fi ;;
6218 esac
6220 break
6222 done
6223 IFS="$lt_save_ifs"
6224 MAGIC_CMD="$lt_save_MAGIC_CMD"
6226 esac
6229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6230 if test -n "$MAGIC_CMD"; then
6231 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6232 echo "${ECHO_T}$MAGIC_CMD" >&6
6233 else
6234 echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6
6238 if test -z "$lt_cv_path_MAGIC_CMD"; then
6239 if test -n "$ac_tool_prefix"; then
6240 echo "$as_me:$LINENO: checking for file" >&5
6241 echo $ECHO_N "checking for file... $ECHO_C" >&6
6242 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245 case $MAGIC_CMD in
6246 [\\/*] | ?:[\\/]*)
6247 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6250 lt_save_MAGIC_CMD="$MAGIC_CMD"
6251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6253 for ac_dir in $ac_dummy; do
6254 IFS="$lt_save_ifs"
6255 test -z "$ac_dir" && ac_dir=.
6256 if test -f $ac_dir/file; then
6257 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6258 if test -n "$file_magic_test_file"; then
6259 case $deplibs_check_method in
6260 "file_magic "*)
6261 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6264 $EGREP "$file_magic_regex" > /dev/null; then
6266 else
6267 cat <<EOF 1>&2
6269 *** Warning: the command libtool uses to detect shared libraries,
6270 *** $file_magic_cmd, produces output that libtool cannot recognize.
6271 *** The result is that libtool may fail to recognize shared libraries
6272 *** as such. This will affect the creation of libtool libraries that
6273 *** depend on shared libraries, but programs linked with such libtool
6274 *** libraries will work regardless of this problem. Nevertheless, you
6275 *** may want to report the problem to your system manager and/or to
6276 *** bug-libtool@gnu.org
6279 fi ;;
6280 esac
6282 break
6284 done
6285 IFS="$lt_save_ifs"
6286 MAGIC_CMD="$lt_save_MAGIC_CMD"
6288 esac
6291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6292 if test -n "$MAGIC_CMD"; then
6293 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6294 echo "${ECHO_T}$MAGIC_CMD" >&6
6295 else
6296 echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6
6300 else
6301 MAGIC_CMD=:
6307 esac
6309 enable_dlopen=no
6310 enable_win32_dll=yes
6312 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6313 if test "${enable_libtool_lock+set}" = set; then
6314 enableval="$enable_libtool_lock"
6317 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6320 # Check whether --with-pic or --without-pic was given.
6321 if test "${with_pic+set}" = set; then
6322 withval="$with_pic"
6323 pic_mode="$withval"
6324 else
6325 pic_mode=default
6327 test -z "$pic_mode" && pic_mode=default
6329 # Use C for the default configuration in the libtool script
6330 tagname=
6331 lt_save_CC="$CC"
6332 ac_ext=c
6333 ac_cpp='$CPP $CPPFLAGS'
6334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6339 # Source file extension for C test sources.
6340 ac_ext=c
6342 # Object file extension for compiled C test sources.
6343 objext=o
6344 objext=$objext
6346 # Code to be used in simple compile tests
6347 lt_simple_compile_test_code="int some_variable = 0;\n"
6349 # Code to be used in simple link tests
6350 lt_simple_link_test_code='int main(){return(0);}\n'
6353 # If no C compiler was specified, use CC.
6354 LTCC=${LTCC-"$CC"}
6356 # Allow CC to be a program name with arguments.
6357 compiler=$CC
6361 # Check for any special shared library compilation flags.
6363 lt_prog_cc_shlib=
6364 if test "$GCC" = no; then
6365 case $host_os in
6366 sco3.2v5*)
6367 lt_prog_cc_shlib='-belf'
6369 esac
6371 if test -n "$lt_prog_cc_shlib"; then
6372 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6373 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6374 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6375 else
6376 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6377 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6378 lt_cv_prog_cc_can_build_shared=no
6384 # Check to make sure the static flag actually works.
6386 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6387 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6388 if test "${lt_prog_compiler_static_works+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 lt_prog_compiler_static_works=no
6392 save_LDFLAGS="$LDFLAGS"
6393 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6394 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6396 # The compiler can only warn and ignore the option if not recognized
6397 # So say no if there are warnings
6398 if test -s conftest.err; then
6399 # Append any errors to the config.log.
6400 cat conftest.err 1>&5
6401 else
6402 lt_prog_compiler_static_works=yes
6405 $rm conftest*
6406 LDFLAGS="$save_LDFLAGS"
6409 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6410 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6412 if test x"$lt_prog_compiler_static_works" = xyes; then
6414 else
6415 lt_prog_compiler_static=
6421 lt_prog_compiler_no_builtin_flag=
6423 if test "$GCC" = yes; then
6424 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6426 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6427 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6428 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 lt_cv_prog_compiler_rtti_exceptions=no
6432 ac_outfile=conftest.$ac_objext
6433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6434 lt_compiler_flag="-fno-rtti -fno-exceptions"
6435 # Insert the option either (1) after the last *FLAGS variable, or
6436 # (2) before a word containing "conftest.", or (3) at the end.
6437 # Note that $ac_compile itself does not contain backslashes and begins
6438 # with a dollar sign (not a hyphen), so the echo should work correctly.
6439 # The option is referenced via a variable to avoid confusing sed.
6440 lt_compile=`echo "$ac_compile" | $SED \
6441 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6443 -e 's:$: $lt_compiler_flag:'`
6444 (eval echo "\"\$as_me:6441: $lt_compile\"" >&5)
6445 (eval "$lt_compile" 2>conftest.err)
6446 ac_status=$?
6447 cat conftest.err >&5
6448 echo "$as_me:6445: \$? = $ac_status" >&5
6449 if (exit $ac_status) && test -s "$ac_outfile"; then
6450 # The compiler can only warn and ignore the option if not recognized
6451 # So say no if there are warnings
6452 if test ! -s conftest.err; then
6453 lt_cv_prog_compiler_rtti_exceptions=yes
6456 $rm conftest*
6459 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6460 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6463 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6464 else
6470 lt_prog_compiler_wl=
6471 lt_prog_compiler_pic=
6472 lt_prog_compiler_static=
6474 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6477 if test "$GCC" = yes; then
6478 lt_prog_compiler_wl='-Wl,'
6479 lt_prog_compiler_static='-static'
6481 case $host_os in
6482 aix*)
6483 # All AIX code is PIC.
6484 if test "$host_cpu" = ia64; then
6485 # AIX 5 now supports IA64 processor
6486 lt_prog_compiler_static='-Bstatic'
6490 amigaos*)
6491 # FIXME: we need at least 68020 code to build shared libraries, but
6492 # adding the `-m68020' flag to GCC prevents building anything better,
6493 # like `-m68040'.
6494 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6497 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6498 # PIC is the default for these OSes.
6501 mingw* | pw32* | os2*)
6502 # This hack is so that the source file can tell whether it is being
6503 # built for inclusion in a dll (and should export symbols for example).
6504 lt_prog_compiler_pic='-DDLL_EXPORT'
6507 darwin* | rhapsody*)
6508 # PIC is the default on this platform
6509 # Common symbols not allowed in MH_DYLIB files
6510 lt_prog_compiler_pic='-fno-common'
6513 msdosdjgpp*)
6514 # Just because we use GCC doesn't mean we suddenly get shared libraries
6515 # on systems that don't support them.
6516 lt_prog_compiler_can_build_shared=no
6517 enable_shared=no
6520 sysv4*MP*)
6521 if test -d /usr/nec; then
6522 lt_prog_compiler_pic=-Kconform_pic
6526 hpux*)
6527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6528 # not for PA HP-UX.
6529 case "$host_cpu" in
6530 hppa*64*|ia64*)
6531 # +Z the default
6534 lt_prog_compiler_pic='-fPIC'
6536 esac
6540 lt_prog_compiler_pic='-fPIC'
6542 esac
6543 else
6544 # PORTME Check for flag to pass linker flags through the system compiler.
6545 case $host_os in
6546 aix*)
6547 lt_prog_compiler_wl='-Wl,'
6548 if test "$host_cpu" = ia64; then
6549 # AIX 5 now supports IA64 processor
6550 lt_prog_compiler_static='-Bstatic'
6551 else
6552 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6556 mingw* | pw32* | os2*)
6557 # This hack is so that the source file can tell whether it is being
6558 # built for inclusion in a dll (and should export symbols for example).
6559 lt_prog_compiler_pic='-DDLL_EXPORT'
6562 hpux9* | hpux10* | hpux11*)
6563 lt_prog_compiler_wl='-Wl,'
6564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6565 # not for PA HP-UX.
6566 case "$host_cpu" in
6567 hppa*64*|ia64*)
6568 # +Z the default
6571 lt_prog_compiler_pic='+Z'
6573 esac
6574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6575 lt_prog_compiler_static='${wl}-a ${wl}archive'
6578 irix5* | irix6* | nonstopux*)
6579 lt_prog_compiler_wl='-Wl,'
6580 # PIC (with -KPIC) is the default.
6581 lt_prog_compiler_static='-non_shared'
6584 newsos6)
6585 lt_prog_compiler_pic='-KPIC'
6586 lt_prog_compiler_static='-Bstatic'
6589 linux*)
6590 case $CC in
6591 icc|ecc)
6592 lt_prog_compiler_wl='-Wl,'
6593 lt_prog_compiler_pic='-KPIC'
6594 lt_prog_compiler_static='-static'
6596 ccc)
6597 lt_prog_compiler_wl='-Wl,'
6598 # All Alpha code is PIC.
6599 lt_prog_compiler_static='-non_shared'
6601 esac
6604 osf3* | osf4* | osf5*)
6605 lt_prog_compiler_wl='-Wl,'
6606 # All OSF/1 code is PIC.
6607 lt_prog_compiler_static='-non_shared'
6610 sco3.2v5*)
6611 lt_prog_compiler_pic='-Kpic'
6612 lt_prog_compiler_static='-dn'
6615 solaris*)
6616 lt_prog_compiler_wl='-Wl,'
6617 lt_prog_compiler_pic='-KPIC'
6618 lt_prog_compiler_static='-Bstatic'
6621 sunos4*)
6622 lt_prog_compiler_wl='-Qoption ld '
6623 lt_prog_compiler_pic='-PIC'
6624 lt_prog_compiler_static='-Bstatic'
6627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6628 lt_prog_compiler_wl='-Wl,'
6629 lt_prog_compiler_pic='-KPIC'
6630 lt_prog_compiler_static='-Bstatic'
6633 sysv4*MP*)
6634 if test -d /usr/nec ;then
6635 lt_prog_compiler_pic='-Kconform_pic'
6636 lt_prog_compiler_static='-Bstatic'
6640 uts4*)
6641 lt_prog_compiler_pic='-pic'
6642 lt_prog_compiler_static='-Bstatic'
6646 lt_prog_compiler_can_build_shared=no
6648 esac
6651 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6652 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6655 # Check to make sure the PIC flag actually works.
6657 if test -n "$lt_prog_compiler_pic"; then
6658 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6659 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6660 if test "${lt_prog_compiler_pic_works+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 lt_prog_compiler_pic_works=no
6664 ac_outfile=conftest.$ac_objext
6665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6666 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6667 # Insert the option either (1) after the last *FLAGS variable, or
6668 # (2) before a word containing "conftest.", or (3) at the end.
6669 # Note that $ac_compile itself does not contain backslashes and begins
6670 # with a dollar sign (not a hyphen), so the echo should work correctly.
6671 # The option is referenced via a variable to avoid confusing sed.
6672 lt_compile=`echo "$ac_compile" | $SED \
6673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6675 -e 's:$: $lt_compiler_flag:'`
6676 (eval echo "\"\$as_me:6673: $lt_compile\"" >&5)
6677 (eval "$lt_compile" 2>conftest.err)
6678 ac_status=$?
6679 cat conftest.err >&5
6680 echo "$as_me:6677: \$? = $ac_status" >&5
6681 if (exit $ac_status) && test -s "$ac_outfile"; then
6682 # The compiler can only warn and ignore the option if not recognized
6683 # So say no if there are warnings
6684 if test ! -s conftest.err; then
6685 lt_prog_compiler_pic_works=yes
6688 $rm conftest*
6691 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6692 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6694 if test x"$lt_prog_compiler_pic_works" = xyes; then
6695 case $lt_prog_compiler_pic in
6696 "" | " "*) ;;
6697 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6698 esac
6699 else
6700 lt_prog_compiler_pic=
6701 lt_prog_compiler_can_build_shared=no
6705 case "$host_os" in
6706 # For platforms which do not support PIC, -DPIC is meaningless:
6707 *djgpp*)
6708 lt_prog_compiler_pic=
6711 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6713 esac
6715 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6717 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 lt_cv_prog_compiler_c_o=no
6721 $rm -r conftest 2>/dev/null
6722 mkdir conftest
6723 cd conftest
6724 mkdir out
6725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6727 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6728 # that will create temporary files in the current directory regardless of
6729 # the output directory. Thus, making CWD read-only will cause this test
6730 # to fail, enabling locking or at least warning the user not to do parallel
6731 # builds.
6732 chmod -w .
6734 lt_compiler_flag="-o out/conftest2.$ac_objext"
6735 # Insert the option either (1) after the last *FLAGS variable, or
6736 # (2) before a word containing "conftest.", or (3) at the end.
6737 # Note that $ac_compile itself does not contain backslashes and begins
6738 # with a dollar sign (not a hyphen), so the echo should work correctly.
6739 lt_compile=`echo "$ac_compile" | $SED \
6740 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6742 -e 's:$: $lt_compiler_flag:'`
6743 (eval echo "\"\$as_me:6740: $lt_compile\"" >&5)
6744 (eval "$lt_compile" 2>out/conftest.err)
6745 ac_status=$?
6746 cat out/conftest.err >&5
6747 echo "$as_me:6744: \$? = $ac_status" >&5
6748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6749 then
6750 # The compiler can only warn and ignore the option if not recognized
6751 # So say no if there are warnings
6752 if test ! -s out/conftest.err; then
6753 lt_cv_prog_compiler_c_o=yes
6756 chmod u+w .
6757 $rm conftest* out/*
6758 rmdir out
6759 cd ..
6760 rmdir conftest
6761 $rm conftest*
6764 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6765 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6768 hard_links="nottested"
6769 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6770 # do not overwrite the value of need_locks provided by the user
6771 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6772 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6773 hard_links=yes
6774 $rm conftest*
6775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6776 touch conftest.a
6777 ln conftest.a conftest.b 2>&5 || hard_links=no
6778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6779 echo "$as_me:$LINENO: result: $hard_links" >&5
6780 echo "${ECHO_T}$hard_links" >&6
6781 if test "$hard_links" = no; then
6782 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6783 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6784 need_locks=warn
6786 else
6787 need_locks=no
6790 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6791 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6793 runpath_var=
6794 allow_undefined_flag=
6795 enable_shared_with_static_runtimes=no
6796 archive_cmds=
6797 archive_expsym_cmds=
6798 old_archive_From_new_cmds=
6799 old_archive_from_expsyms_cmds=
6800 export_dynamic_flag_spec=
6801 whole_archive_flag_spec=
6802 thread_safe_flag_spec=
6803 hardcode_libdir_flag_spec=
6804 hardcode_libdir_flag_spec_ld=
6805 hardcode_libdir_separator=
6806 hardcode_direct=no
6807 hardcode_minus_L=no
6808 hardcode_shlibpath_var=unsupported
6809 link_all_deplibs=unknown
6810 hardcode_automatic=no
6811 module_cmds=
6812 module_expsym_cmds=
6813 always_export_symbols=no
6814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6815 # include_expsyms should be a list of space-separated symbols to be *always*
6816 # included in the symbol list
6817 include_expsyms=
6818 # exclude_expsyms can be an extended regexp of symbols to exclude
6819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6821 # as well as any symbol that contains `d'.
6822 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6824 # platforms (ab)use it in PIC code, but their linkers get confused if
6825 # the symbol is explicitly referenced. Since portable code cannot
6826 # rely on this symbol name, it's probably fine to never include it in
6827 # preloaded symbol tables.
6828 extract_expsyms_cmds=
6830 case $host_os in
6831 cygwin* | mingw* | pw32*)
6832 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6833 # When not using gcc, we currently assume that we are using
6834 # Microsoft Visual C++.
6835 if test "$GCC" != yes; then
6836 with_gnu_ld=no
6839 openbsd*)
6840 with_gnu_ld=no
6842 esac
6844 ld_shlibs=yes
6845 if test "$with_gnu_ld" = yes; then
6846 # If archive_cmds runs LD, not CC, wlarc should be empty
6847 wlarc='${wl}'
6849 # See if GNU ld supports shared libraries.
6850 case $host_os in
6851 aix3* | aix4* | aix5*)
6852 # On AIX/PPC, the GNU linker is very broken
6853 if test "$host_cpu" != ia64; then
6854 ld_shlibs=no
6855 cat <<EOF 1>&2
6857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6858 *** to be unable to reliably create shared libraries on AIX.
6859 *** Therefore, libtool is disabling shared libraries support. If you
6860 *** really care for shared libraries, you may want to modify your PATH
6861 *** so that a non-GNU linker is found, and then restart.
6867 amigaos*)
6868 archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
6869 hardcode_libdir_flag_spec='-L$libdir'
6870 hardcode_minus_L=yes
6872 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6873 # that the semantics of dynamic libraries on AmigaOS, at least up
6874 # to version 4, is to share data among multiple programs linked
6875 # with the same dynamic library. Since this doesn't match the
6876 # behavior of shared libraries on other platforms, we can't use
6877 # them.
6878 ld_shlibs=no
6881 beos*)
6882 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6883 allow_undefined_flag=unsupported
6884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6885 # support --undefined. This deserves some investigation. FIXME
6886 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6887 else
6888 ld_shlibs=no
6892 cygwin* | mingw* | pw32*)
6893 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6894 # as there is no search path for DLLs.
6895 hardcode_libdir_flag_spec='-L$libdir'
6896 allow_undefined_flag=unsupported
6897 always_export_symbols=no
6898 enable_shared_with_static_runtimes=yes
6899 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6901 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6903 # If the export-symbols file already is a .def file (1st line
6904 # is EXPORTS), use it as is; otherwise, prepend...
6905 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6906 cp $export_symbols $output_objdir/$soname.def;
6907 else
6908 echo EXPORTS > $output_objdir/$soname.def;
6909 cat $export_symbols >> $output_objdir/$soname.def;
6910 fi${_S_}
6911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6912 else
6913 ld_shlibs=no
6917 netbsd*)
6918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6919 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6920 wlarc=
6921 else
6922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6927 solaris* | sysv5*)
6928 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6929 ld_shlibs=no
6930 cat <<EOF 1>&2
6932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6933 *** create shared libraries on Solaris systems. Therefore, libtool
6934 *** is disabling shared libraries support. We urge you to upgrade GNU
6935 *** binutils to release 2.9.1 or newer. Another option is to modify
6936 *** your PATH or compiler configuration so that the native linker is
6937 *** used, and then restart.
6940 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6943 else
6944 ld_shlibs=no
6948 sunos4*)
6949 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6950 wlarc=
6951 hardcode_direct=yes
6952 hardcode_shlibpath_var=no
6956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6959 else
6960 ld_shlibs=no
6963 esac
6965 if test "$ld_shlibs" = yes; then
6966 runpath_var=LD_RUN_PATH
6967 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6968 export_dynamic_flag_spec='${wl}--export-dynamic'
6969 # ancient GNU ld didn't support --whole-archive et. al.
6970 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6972 else
6973 whole_archive_flag_spec=
6976 else
6977 # PORTME fill in a description of your system's linker (not GNU ld)
6978 case $host_os in
6979 aix3*)
6980 allow_undefined_flag=unsupported
6981 always_export_symbols=yes
6982 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
6983 # Note: this linker hardcodes the directories in LIBPATH if there
6984 # are no directories specified by -L.
6985 hardcode_minus_L=yes
6986 if test "$GCC" = yes && test -z "$link_static_flag"; then
6987 # Neither direct hardcoding nor static linking is supported with a
6988 # broken collect2.
6989 hardcode_direct=unsupported
6993 aix4* | aix5*)
6994 if test "$host_cpu" = ia64; then
6995 # On IA64, the linker does run time linking by default, so we don't
6996 # have to do anything special.
6997 aix_use_runtimelinking=no
6998 exp_sym_flag='-Bexport'
6999 no_entry_flag=""
7000 else
7001 # If we're using GNU nm, then we don't want the "-C" option.
7002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7003 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7004 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'
7005 else
7006 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'
7008 aix_use_runtimelinking=no
7010 # Test if we are trying to use run time linking or normal
7011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7012 # need to do runtime linking.
7013 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7014 for ld_flag in $LDFLAGS; do
7015 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7016 aix_use_runtimelinking=yes
7017 break
7019 done
7020 esac
7022 exp_sym_flag='-bexport'
7023 no_entry_flag='-bnoentry'
7026 # When large executables or shared objects are built, AIX ld can
7027 # have problems creating the table of contents. If linking a library
7028 # or program results in "error TOC overflow" add -mminimal-toc to
7029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7032 archive_cmds=''
7033 hardcode_direct=yes
7034 hardcode_libdir_separator=':'
7035 link_all_deplibs=yes
7037 if test "$GCC" = yes; then
7038 case $host_os in aix4.012|aix4.012.*)
7039 # We only want to do this on AIX 4.2 and lower, the check
7040 # below for broken collect2 doesn't work under 4.3+
7041 collect2name=`${CC} -print-prog-name=collect2`
7042 if test -f "$collect2name" && \
7043 strings "$collect2name" | grep resolve_lib_name >/dev/null
7044 then
7045 # We have reworked collect2
7046 hardcode_direct=yes
7047 else
7048 # We have old collect2
7049 hardcode_direct=unsupported
7050 # It fails to find uninstalled libraries when the uninstalled
7051 # path is not listed in the libpath. Setting hardcode_minus_L
7052 # to unsupported forces relinking
7053 hardcode_minus_L=yes
7054 hardcode_libdir_flag_spec='-L$libdir'
7055 hardcode_libdir_separator=
7057 esac
7058 shared_flag='-shared'
7059 else
7060 # not using gcc
7061 if test "$host_cpu" = ia64; then
7062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7063 # chokes on -Wl,-G. The following line is correct:
7064 shared_flag='-G'
7065 else
7066 if test "$aix_use_runtimelinking" = yes; then
7067 shared_flag='${wl}-G'
7068 else
7069 shared_flag='${wl}-bM:SRE'
7074 # It seems that -bexpall does not export symbols beginning with
7075 # underscore (_), so it is better to generate a list of symbols to export.
7076 always_export_symbols=yes
7077 if test "$aix_use_runtimelinking" = yes; then
7078 # Warning - without using the other runtime loading flags (-brtl),
7079 # -berok will link without error, but may produce a broken library.
7080 allow_undefined_flag='-berok'
7081 # Determine the default libpath from the value encoded in an empty executable.
7082 cat >conftest.$ac_ext <<_ACEOF
7083 #line $LINENO "configure"
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7091 main ()
7095 return 0;
7097 _ACEOF
7098 rm -f conftest.$ac_objext conftest$ac_exeext
7099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7113 # Check for a 64-bit object if we didn't find anything.
7114 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; }
7115 }'`; fi
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7124 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7125 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7126 else
7127 if test "$host_cpu" = ia64; then
7128 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7129 allow_undefined_flag="-z nodefs"
7130 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7131 else
7132 # Determine the default libpath from the value encoded in an empty executable.
7133 cat >conftest.$ac_ext <<_ACEOF
7134 #line $LINENO "configure"
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7142 main ()
7146 return 0;
7148 _ACEOF
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7164 # Check for a 64-bit object if we didn't find anything.
7165 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; }
7166 }'`; fi
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7175 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7176 # Warning - without using the other run time loading flags,
7177 # -berok will link without error, but may produce a broken library.
7178 no_undefined_flag=' ${wl}-bernotok'
7179 allow_undefined_flag=' ${wl}-berok'
7180 # -bexpall does not export symbols beginning with underscore (_)
7181 always_export_symbols=yes
7182 # Exported symbols can be pulled into shared objects from archives
7183 whole_archive_flag_spec=' '
7184 archive_cmds_need_lc=yes
7185 # This is similar to how AIX traditionally builds it's shared libraries.
7186 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7191 amigaos*)
7192 archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
7193 hardcode_libdir_flag_spec='-L$libdir'
7194 hardcode_minus_L=yes
7195 # see comment about different semantics on the GNU ld section
7196 ld_shlibs=no
7199 bsdi4*)
7200 export_dynamic_flag_spec=-rdynamic
7203 cygwin* | mingw* | pw32*)
7204 # When not using gcc, we currently assume that we are using
7205 # Microsoft Visual C++.
7206 # hardcode_libdir_flag_spec is actually meaningless, as there is
7207 # no search path for DLLs.
7208 hardcode_libdir_flag_spec=' '
7209 allow_undefined_flag=unsupported
7210 # Tell ltmain to make .lib files, not .a files.
7211 libext=lib
7212 # Tell ltmain to make .dll files, not .so files.
7213 shrext=".dll"
7214 # FIXME: Setting linknames here is a bad hack.
7215 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
7216 # The linker will automatically build a .lib file if we build a DLL.
7217 old_archive_From_new_cmds='true'
7218 # FIXME: Should let the user specify the lib program.
7219 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7220 fix_srcfile_path='`cygpath -w "$srcfile"`'
7221 enable_shared_with_static_runtimes=yes
7224 darwin* | rhapsody*)
7225 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7226 archive_cmds_need_lc=no
7227 case "$host_os" in
7228 rhapsody* | darwin1.[012])
7229 allow_undefined_flag='-undefined suppress'
7231 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
7232 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7234 *) # Darwin 7.0 on
7235 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
7236 10.[012])
7237 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7239 *) # 10.3 on
7240 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
7241 allow_undefined_flag='-flat_namespace -undefined suppress'
7242 else
7243 allow_undefined_flag='-undefined dynamic_lookup'
7246 esac
7248 esac
7249 # FIXME: Relying on posixy $() will cause problems for
7250 # cross-compilation, but unfortunately the echo tests do not
7251 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7252 # `"' quotes if we put them in here... so don't!
7253 lt_int_apple_cc_single_mod=no
7254 output_verbose_link_cmd='echo'
7255 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7256 lt_int_apple_cc_single_mod=yes
7258 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7259 archive_cmds='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7260 else
7261 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7263 module_cmds='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7264 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7265 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7266 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7267 else
7268 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7270 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7271 hardcode_direct=no
7272 hardcode_automatic=yes
7273 hardcode_shlibpath_var=unsupported
7274 whole_archive_flag_spec='-all_load $convenience'
7275 link_all_deplibs=yes
7279 dgux*)
7280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7281 hardcode_libdir_flag_spec='-L$libdir'
7282 hardcode_shlibpath_var=no
7285 freebsd1*)
7286 ld_shlibs=no
7289 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7290 # support. Future versions do this automatically, but an explicit c++rt0.o
7291 # does not break anything, and helps significantly (at the cost of a little
7292 # extra space).
7293 freebsd2.2*)
7294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7295 hardcode_libdir_flag_spec='-R$libdir'
7296 hardcode_direct=yes
7297 hardcode_shlibpath_var=no
7300 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7301 freebsd2*)
7302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7303 hardcode_direct=yes
7304 hardcode_minus_L=yes
7305 hardcode_shlibpath_var=no
7308 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7309 freebsd*)
7310 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7311 hardcode_libdir_flag_spec='-R$libdir'
7312 hardcode_direct=yes
7313 hardcode_shlibpath_var=no
7316 hpux9*)
7317 if test "$GCC" = yes; then
7318 archive_cmds='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7319 else
7320 archive_cmds='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7323 hardcode_libdir_separator=:
7324 hardcode_direct=yes
7326 # hardcode_minus_L: Not really in the search PATH,
7327 # but as the default location of the library.
7328 hardcode_minus_L=yes
7329 export_dynamic_flag_spec='${wl}-E'
7332 hpux10* | hpux11*)
7333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7334 case "$host_cpu" in
7335 hppa*64*|ia64*)
7336 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7339 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7341 esac
7342 else
7343 case "$host_cpu" in
7344 hppa*64*|ia64*)
7345 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7350 esac
7352 if test "$with_gnu_ld" = no; then
7353 case "$host_cpu" in
7354 hppa*64*)
7355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7356 hardcode_libdir_flag_spec_ld='+b $libdir'
7357 hardcode_libdir_separator=:
7358 hardcode_direct=no
7359 hardcode_shlibpath_var=no
7361 ia64*)
7362 hardcode_libdir_flag_spec='-L$libdir'
7363 hardcode_direct=no
7364 hardcode_shlibpath_var=no
7366 # hardcode_minus_L: Not really in the search PATH,
7367 # but as the default location of the library.
7368 hardcode_minus_L=yes
7371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7372 hardcode_libdir_separator=:
7373 hardcode_direct=yes
7374 export_dynamic_flag_spec='${wl}-E'
7376 # hardcode_minus_L: Not really in the search PATH,
7377 # but as the default location of the library.
7378 hardcode_minus_L=yes
7380 esac
7384 irix5* | irix6* | nonstopux*)
7385 if test "$GCC" = yes; then
7386 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'
7387 else
7388 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'
7389 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7392 hardcode_libdir_separator=:
7393 link_all_deplibs=yes
7396 netbsd*)
7397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7399 else
7400 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7402 hardcode_libdir_flag_spec='-R$libdir'
7403 hardcode_direct=yes
7404 hardcode_shlibpath_var=no
7407 newsos6)
7408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409 hardcode_direct=yes
7410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7411 hardcode_libdir_separator=:
7412 hardcode_shlibpath_var=no
7415 openbsd*)
7416 hardcode_direct=yes
7417 hardcode_shlibpath_var=no
7418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7421 export_dynamic_flag_spec='${wl}-E'
7422 else
7423 case $host_os in
7424 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7426 hardcode_libdir_flag_spec='-R$libdir'
7429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7432 esac
7436 os2*)
7437 hardcode_libdir_flag_spec='-L$libdir'
7438 hardcode_minus_L=yes
7439 allow_undefined_flag=unsupported
7440 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7441 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7444 osf3*)
7445 if test "$GCC" = yes; then
7446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7447 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'
7448 else
7449 allow_undefined_flag=' -expect_unresolved \*'
7450 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'
7452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7453 hardcode_libdir_separator=:
7456 osf4* | osf5*) # as osf3* with the addition of -msym flag
7457 if test "$GCC" = yes; then
7458 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7459 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'
7460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7461 else
7462 allow_undefined_flag=' -expect_unresolved \*'
7463 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'
7464 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp${_S_}
7465 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib${_S_}$rm $lib.exp'
7467 # Both c and cxx compiler support -rpath directly
7468 hardcode_libdir_flag_spec='-rpath $libdir'
7470 hardcode_libdir_separator=:
7473 sco3.2v5*)
7474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_shlibpath_var=no
7476 export_dynamic_flag_spec='${wl}-Bexport'
7477 runpath_var=LD_RUN_PATH
7478 hardcode_runpath_var=yes
7481 solaris*)
7482 no_undefined_flag=' -z text'
7483 if test "$GCC" = yes; then
7484 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7485 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
7486 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
7487 else
7488 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7489 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
7490 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
7492 hardcode_libdir_flag_spec='-R$libdir'
7493 hardcode_shlibpath_var=no
7494 case $host_os in
7495 solaris2.[0-5] | solaris2.[0-5].*) ;;
7496 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7498 esac
7499 link_all_deplibs=yes
7502 sunos4*)
7503 if test "x$host_vendor" = xsequent; then
7504 # Use $CC to link under sequent, because it throws in some extra .o
7505 # files that make .init and .fini sections work.
7506 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7507 else
7508 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7510 hardcode_libdir_flag_spec='-L$libdir'
7511 hardcode_direct=yes
7512 hardcode_minus_L=yes
7513 hardcode_shlibpath_var=no
7516 sysv4)
7517 case $host_vendor in
7518 sni)
7519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7520 hardcode_direct=yes # is this really true???
7522 siemens)
7523 ## LD is ld it makes a PLAMLIB
7524 ## CC just makes a GrossModule.
7525 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7526 reload_cmds='$CC -r -o $output$reload_objs'
7527 hardcode_direct=no
7529 motorola)
7530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7531 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7533 esac
7534 runpath_var='LD_RUN_PATH'
7535 hardcode_shlibpath_var=no
7538 sysv4.3*)
7539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7540 hardcode_shlibpath_var=no
7541 export_dynamic_flag_spec='-Bexport'
7544 sysv4*MP*)
7545 if test -d /usr/nec; then
7546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7547 hardcode_shlibpath_var=no
7548 runpath_var=LD_RUN_PATH
7549 hardcode_runpath_var=yes
7550 ld_shlibs=yes
7554 sysv4.2uw2*)
7555 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7556 hardcode_direct=yes
7557 hardcode_minus_L=no
7558 hardcode_shlibpath_var=no
7559 hardcode_runpath_var=yes
7560 runpath_var=LD_RUN_PATH
7563 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7564 no_undefined_flag='${wl}-z ${wl}text'
7565 if test "$GCC" = yes; then
7566 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7567 else
7568 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7570 runpath_var='LD_RUN_PATH'
7571 hardcode_shlibpath_var=no
7574 sysv5*)
7575 no_undefined_flag=' -z text'
7576 # $CC -shared without GNU ld will not create a library from C++
7577 # object files and a static libstdc++, better avoid it by now
7578 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7579 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
7580 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
7581 hardcode_libdir_flag_spec=
7582 hardcode_shlibpath_var=no
7583 runpath_var='LD_RUN_PATH'
7586 uts4*)
7587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7588 hardcode_libdir_flag_spec='-L$libdir'
7589 hardcode_shlibpath_var=no
7593 ld_shlibs=no
7595 esac
7598 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7599 echo "${ECHO_T}$ld_shlibs" >&6
7600 test "$ld_shlibs" = no && can_build_shared=no
7602 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7603 if test "$GCC" = yes; then
7604 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7608 # Do we need to explicitly link libc?
7610 case "x$archive_cmds_need_lc" in
7611 x|xyes)
7612 # Assume -lc should be added
7613 archive_cmds_need_lc=yes
7615 if test "$enable_shared" = yes && test "$GCC" = yes; then
7616 case $archive_cmds in
7617 *"$_S_"*)
7618 # FIXME: we may have to deal with multi-command sequences.
7620 '$CC '*)
7621 # Test whether the compiler implicitly links with -lc since on some
7622 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7623 # to ld, don't add -lc before -lgcc.
7624 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7625 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7626 $rm conftest*
7627 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630 (eval $ac_compile) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } 2>conftest.err; then
7634 soname=conftest
7635 lib=conftest
7636 libobjs=conftest.$ac_objext
7637 deplibs=
7638 wl=$lt_prog_compiler_wl
7639 compiler_flags=-v
7640 linker_flags=-v
7641 verstring=
7642 output_objdir=.
7643 libname=conftest
7644 lt_save_allow_undefined_flag=$allow_undefined_flag
7645 allow_undefined_flag=
7646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7647 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }
7651 then
7652 archive_cmds_need_lc=no
7653 else
7654 archive_cmds_need_lc=yes
7656 allow_undefined_flag=$lt_save_allow_undefined_flag
7657 else
7658 cat conftest.err 1>&5
7660 $rm conftest*
7661 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7662 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7664 esac
7667 esac
7669 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7671 hardcode_action=
7672 if test -n "$hardcode_libdir_flag_spec" || \
7673 test -n "$runpath_var " || \
7674 test "X$hardcode_automatic"="Xyes" ; then
7676 # We can hardcode non-existant directories.
7677 if test "$hardcode_direct" != no &&
7678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7679 # have to relink, otherwise we might link with an installed library
7680 # when we should be linking with a yet-to-be-installed one
7681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7682 test "$hardcode_minus_L" != no; then
7683 # Linking always hardcodes the temporary library directory.
7684 hardcode_action=relink
7685 else
7686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7687 hardcode_action=immediate
7689 else
7690 # We cannot hardcode anything, or else we can only hardcode existing
7691 # directories.
7692 hardcode_action=unsupported
7694 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7695 echo "${ECHO_T}$hardcode_action" >&6
7697 if test "$hardcode_action" = relink; then
7698 # Fast installation is not supported
7699 enable_fast_install=no
7700 elif test "$shlibpath_overrides_runpath" = yes ||
7701 test "$enable_shared" = no; then
7702 # Fast installation is not necessary
7703 enable_fast_install=needless
7706 striplib=
7707 old_striplib=
7708 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7709 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7710 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7711 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7712 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7713 echo "$as_me:$LINENO: result: yes" >&5
7714 echo "${ECHO_T}yes" >&6
7715 else
7716 # FIXME - insert some real tests, host_os isn't really good enough
7717 case $host_os in
7718 NOT-darwin*)
7719 if test -n "$STRIP" ; then
7720 striplib="$STRIP -x"
7721 echo "$as_me:$LINENO: result: yes" >&5
7722 echo "${ECHO_T}yes" >&6
7723 else
7724 echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6
7729 echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6
7732 esac
7735 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7736 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7737 library_names_spec=
7738 libname_spec='lib$name'
7739 soname_spec=
7740 shrext=".so"
7741 postinstall_cmds=
7742 postuninstall_cmds=
7743 finish_cmds=
7744 finish_eval=
7745 shlibpath_var=
7746 shlibpath_overrides_runpath=unknown
7747 version_type=none
7748 dynamic_linker="$host_os ld.so"
7749 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7750 if test "$GCC" = yes; then
7751 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7752 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7753 # if the path contains ";" then we assume it to be the separator
7754 # otherwise default to the standard path separator (i.e. ":") - it is
7755 # assumed that no part of a normal pathname contains ";" but that should
7756 # okay in the real world where ";" in dirpaths is itself problematic.
7757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7758 else
7759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7761 else
7762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7764 need_lib_prefix=unknown
7765 hardcode_into_libs=no
7767 # when you set need_version to no, make sure it does not cause -set_version
7768 # flags to be left without arguments
7769 need_version=unknown
7771 case $host_os in
7772 aix3*)
7773 version_type=linux
7774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7775 shlibpath_var=LIBPATH
7777 # AIX 3 has no versioning support, so we append a major version to the name.
7778 soname_spec='${libname}${release}${shared_ext}$major'
7781 aix4* | aix5*)
7782 version_type=linux
7783 need_lib_prefix=no
7784 need_version=no
7785 hardcode_into_libs=yes
7786 if test "$host_cpu" = ia64; then
7787 # AIX 5 supports IA64
7788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7789 shlibpath_var=LD_LIBRARY_PATH
7790 else
7791 # With GCC up to 2.95.x, collect2 would create an import file
7792 # for dependence libraries. The import file would start with
7793 # the line `#! .'. This would cause the generated library to
7794 # depend on `.', always an invalid library. This was fixed in
7795 # development snapshots of GCC prior to 3.0.
7796 case $host_os in
7797 aix4 | aix4.[01] | aix4.[01].*)
7798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7799 echo ' yes '
7800 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7802 else
7803 can_build_shared=no
7806 esac
7807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7808 # soname into executable. Probably we can add versioning support to
7809 # collect2, so additional links can be useful in future.
7810 if test "$aix_use_runtimelinking" = yes; then
7811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7812 # instead of lib<name>.a to let people know that these are not
7813 # typical AIX shared libraries.
7814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815 else
7816 # We preserve .a as extension for shared libraries through AIX4.2
7817 # and later when we are not doing run time linking.
7818 library_names_spec='${libname}${release}.a $libname.a'
7819 soname_spec='${libname}${release}${shared_ext}$major'
7821 shlibpath_var=LIBPATH
7825 amigaos*)
7826 library_names_spec='$libname.ixlibrary $libname.a'
7827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7828 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'
7831 beos*)
7832 library_names_spec='${libname}${shared_ext}'
7833 dynamic_linker="$host_os ld.so"
7834 shlibpath_var=LIBRARY_PATH
7837 bsdi4*)
7838 version_type=linux
7839 need_version=no
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841 soname_spec='${libname}${release}${shared_ext}$major'
7842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7843 shlibpath_var=LD_LIBRARY_PATH
7844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7846 # the default ld.so.conf also contains /usr/contrib/lib and
7847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7848 # libtool to hard-code these into programs
7851 cygwin* | mingw* | pw32*)
7852 version_type=windows
7853 shrext=".dll"
7854 need_version=no
7855 need_lib_prefix=no
7857 case $GCC,$host_os in
7858 yes,cygwin* | yes,mingw* | yes,pw32*)
7859 library_names_spec='$libname.dll.a'
7860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7861 postinstall_cmds='base_file=`basename \${file}`${_S_}
7862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
7863 dldir=$destdir/`dirname \$dlpath`${_S_}
7864 test -d \$dldir || mkdir -p \$dldir${_S_}
7865 $install_prog $dir/$dlname \$dldir/$dlname'
7866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
7867 dlpath=$dir/\$dldll${_S_}
7868 $rm \$dlpath'
7869 shlibpath_overrides_runpath=yes
7871 case $host_os in
7872 cygwin*)
7873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7875 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7877 mingw*)
7878 # MinGW DLLs use traditional 'lib' prefix
7879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7881 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7882 # It is most probably a Windows format PATH printed by
7883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7884 # path with ; separators, and with drive letters. We can handle the
7885 # drive letters (cygwin fileutils understands them), so leave them,
7886 # especially as we might pass files found there to a mingw objdump,
7887 # which wouldn't understand a cygwinified path. Ahh.
7888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7889 else
7890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7893 pw32*)
7894 # pw32 DLLs use 'pw' prefix rather than 'lib'
7895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7897 esac
7901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7903 esac
7904 dynamic_linker='Win32 ld.exe'
7905 # FIXME: first we should search . and the directory the executable is in
7906 shlibpath_var=PATH
7909 darwin* | rhapsody*)
7910 dynamic_linker="$host_os dyld"
7911 version_type=darwin
7912 need_lib_prefix=no
7913 need_version=no
7914 # FIXME: Relying on posixy $() will cause problems for
7915 # cross-compilation, but unfortunately the echo tests do not
7916 # yet detect zsh echo's removal of \ escapes.
7917 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
7918 soname_spec='${libname}${release}${major}$shared_ext'
7919 shlibpath_overrides_runpath=yes
7920 shlibpath_var=DYLD_LIBRARY_PATH
7921 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7922 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7923 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7924 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"`
7926 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7929 dgux*)
7930 version_type=linux
7931 need_lib_prefix=no
7932 need_version=no
7933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7934 soname_spec='${libname}${release}${shared_ext}$major'
7935 shlibpath_var=LD_LIBRARY_PATH
7938 freebsd1*)
7939 dynamic_linker=no
7942 freebsd*)
7943 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7944 version_type=freebsd-$objformat
7945 case $version_type in
7946 freebsd-elf*)
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7948 need_version=no
7949 need_lib_prefix=no
7951 freebsd-*)
7952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7953 need_version=yes
7955 esac
7956 shlibpath_var=LD_LIBRARY_PATH
7957 case $host_os in
7958 freebsd2*)
7959 shlibpath_overrides_runpath=yes
7961 freebsd3.01* | freebsdelf3.01*)
7962 shlibpath_overrides_runpath=yes
7963 hardcode_into_libs=yes
7965 *) # from 3.2 on
7966 shlibpath_overrides_runpath=no
7967 hardcode_into_libs=yes
7969 esac
7972 gnu*)
7973 version_type=linux
7974 need_lib_prefix=no
7975 need_version=no
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7977 soname_spec='${libname}${release}${shared_ext}$major'
7978 shlibpath_var=LD_LIBRARY_PATH
7979 hardcode_into_libs=yes
7982 hpux9* | hpux10* | hpux11*)
7983 # Give a soname corresponding to the major version so that dld.sl refuses to
7984 # link against other versions.
7985 version_type=sunos
7986 need_lib_prefix=no
7987 need_version=no
7988 case "$host_cpu" in
7989 ia64*)
7990 shrext='.so'
7991 hardcode_into_libs=yes
7992 dynamic_linker="$host_os dld.so"
7993 shlibpath_var=LD_LIBRARY_PATH
7994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7996 soname_spec='${libname}${release}${shared_ext}$major'
7997 if test "X$HPUX_IA64_MODE" = X32; then
7998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7999 else
8000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8004 hppa*64*)
8005 shrext='.sl'
8006 hardcode_into_libs=yes
8007 dynamic_linker="$host_os dld.sl"
8008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011 soname_spec='${libname}${release}${shared_ext}$major'
8012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8016 shrext='.sl'
8017 dynamic_linker="$host_os dld.sl"
8018 shlibpath_var=SHLIB_PATH
8019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021 soname_spec='${libname}${release}${shared_ext}$major'
8023 esac
8024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8025 postinstall_cmds='chmod 555 $lib'
8028 irix5* | irix6* | nonstopux*)
8029 case $host_os in
8030 nonstopux*) version_type=nonstopux ;;
8032 if test "$lt_cv_prog_gnu_ld" = yes; then
8033 version_type=linux
8034 else
8035 version_type=irix
8036 fi ;;
8037 esac
8038 need_lib_prefix=no
8039 need_version=no
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8042 case $host_os in
8043 irix5* | nonstopux*)
8044 libsuff= shlibsuff=
8047 case $LD in # libtool.m4 will add one of these switches to LD
8048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8049 libsuff= shlibsuff= libmagic=32-bit;;
8050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8051 libsuff=32 shlibsuff=N32 libmagic=N32;;
8052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8054 *) libsuff= shlibsuff= libmagic=never-match;;
8055 esac
8057 esac
8058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8059 shlibpath_overrides_runpath=no
8060 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8061 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8062 hardcode_into_libs=yes
8065 # No shared lib support for Linux oldld, aout, or coff.
8066 linux*oldld* | linux*aout* | linux*coff*)
8067 dynamic_linker=no
8070 # This must be Linux ELF.
8071 linux*)
8072 version_type=linux
8073 need_lib_prefix=no
8074 need_version=no
8075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8076 soname_spec='${libname}${release}${shared_ext}$major'
8077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8078 shlibpath_var=LD_LIBRARY_PATH
8079 shlibpath_overrides_runpath=no
8080 # This implies no fast_install, which is unacceptable.
8081 # Some rework will be needed to allow for fast_install
8082 # before this can be enabled.
8083 hardcode_into_libs=yes
8085 # We used to test for /lib/ld.so.1 and disable shared libraries on
8086 # powerpc, because MkLinux only supported shared libraries with the
8087 # GNU dynamic linker. Since this was broken with cross compilers,
8088 # most powerpc-linux boxes support dynamic linking these days and
8089 # people can always --disable-shared, the test was removed, and we
8090 # assume the GNU/Linux dynamic linker is in use.
8091 dynamic_linker='GNU/Linux ld.so'
8094 netbsd*)
8095 version_type=sunos
8096 need_lib_prefix=no
8097 need_version=no
8098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8101 dynamic_linker='NetBSD (a.out) ld.so'
8102 else
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8104 soname_spec='${libname}${release}${shared_ext}$major'
8105 dynamic_linker='NetBSD ld.elf_so'
8107 shlibpath_var=LD_LIBRARY_PATH
8108 shlibpath_overrides_runpath=yes
8109 hardcode_into_libs=yes
8112 newsos6)
8113 version_type=linux
8114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8115 shlibpath_var=LD_LIBRARY_PATH
8116 shlibpath_overrides_runpath=yes
8119 nto-qnx)
8120 version_type=linux
8121 need_lib_prefix=no
8122 need_version=no
8123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124 soname_spec='${libname}${release}${shared_ext}$major'
8125 shlibpath_var=LD_LIBRARY_PATH
8126 shlibpath_overrides_runpath=yes
8129 openbsd*)
8130 version_type=sunos
8131 need_lib_prefix=no
8132 need_version=no
8133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8135 shlibpath_var=LD_LIBRARY_PATH
8136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8137 case $host_os in
8138 openbsd2.[89] | openbsd2.[89].*)
8139 shlibpath_overrides_runpath=no
8142 shlibpath_overrides_runpath=yes
8144 esac
8145 else
8146 shlibpath_overrides_runpath=yes
8150 os2*)
8151 libname_spec='$name'
8152 shrext=".dll"
8153 need_lib_prefix=no
8154 library_names_spec='$libname${shared_ext} $libname.a'
8155 dynamic_linker='OS/2 ld.exe'
8156 shlibpath_var=LIBPATH
8159 osf3* | osf4* | osf5*)
8160 version_type=osf
8161 need_lib_prefix=no
8162 need_version=no
8163 soname_spec='${libname}${release}${shared_ext}$major'
8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8165 shlibpath_var=LD_LIBRARY_PATH
8166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8170 sco3.2v5*)
8171 version_type=osf
8172 soname_spec='${libname}${release}${shared_ext}$major'
8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8174 shlibpath_var=LD_LIBRARY_PATH
8177 solaris*)
8178 version_type=linux
8179 need_lib_prefix=no
8180 need_version=no
8181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8182 soname_spec='${libname}${release}${shared_ext}$major'
8183 shlibpath_var=LD_LIBRARY_PATH
8184 shlibpath_overrides_runpath=yes
8185 hardcode_into_libs=yes
8186 # ldd complains unless libraries are executable
8187 postinstall_cmds='chmod +x $lib'
8190 sunos4*)
8191 version_type=sunos
8192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8194 shlibpath_var=LD_LIBRARY_PATH
8195 shlibpath_overrides_runpath=yes
8196 if test "$with_gnu_ld" = yes; then
8197 need_lib_prefix=no
8199 need_version=yes
8202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8203 version_type=linux
8204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8205 soname_spec='${libname}${release}${shared_ext}$major'
8206 shlibpath_var=LD_LIBRARY_PATH
8207 case $host_vendor in
8208 sni)
8209 shlibpath_overrides_runpath=no
8210 need_lib_prefix=no
8211 export_dynamic_flag_spec='${wl}-Blargedynsym'
8212 runpath_var=LD_RUN_PATH
8214 siemens)
8215 need_lib_prefix=no
8217 motorola)
8218 need_lib_prefix=no
8219 need_version=no
8220 shlibpath_overrides_runpath=no
8221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8223 esac
8226 sysv4*MP*)
8227 if test -d /usr/nec ;then
8228 version_type=linux
8229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8230 soname_spec='$libname${shared_ext}.$major'
8231 shlibpath_var=LD_LIBRARY_PATH
8235 uts4*)
8236 version_type=linux
8237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8238 soname_spec='${libname}${release}${shared_ext}$major'
8239 shlibpath_var=LD_LIBRARY_PATH
8243 dynamic_linker=no
8245 esac
8246 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8247 echo "${ECHO_T}$dynamic_linker" >&6
8248 test "$dynamic_linker" = no && can_build_shared=no
8250 if test "x$enable_dlopen" != xyes; then
8251 enable_dlopen=unknown
8252 enable_dlopen_self=unknown
8253 enable_dlopen_self_static=unknown
8254 else
8255 lt_cv_dlopen=no
8256 lt_cv_dlopen_libs=
8258 case $host_os in
8259 beos*)
8260 lt_cv_dlopen="load_add_on"
8261 lt_cv_dlopen_libs=
8262 lt_cv_dlopen_self=yes
8265 mingw* | pw32*)
8266 lt_cv_dlopen="LoadLibrary"
8267 lt_cv_dlopen_libs=
8270 cygwin*)
8271 lt_cv_dlopen="dlopen"
8272 lt_cv_dlopen_libs=
8275 darwin*)
8276 # if libdl is installed we need to link against it
8277 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8278 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-ldl $LIBS"
8284 cat >conftest.$ac_ext <<_ACEOF
8285 #line $LINENO "configure"
8286 /* confdefs.h. */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8292 /* Override any gcc2 internal prototype to avoid an error. */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8298 char dlopen ();
8300 main ()
8302 dlopen ();
8304 return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -s conftest$ac_exeext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_lib_dl_dlopen=yes
8320 else
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 ac_cv_lib_dl_dlopen=no
8326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8327 LIBS=$ac_check_lib_save_LIBS
8329 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8330 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8331 if test $ac_cv_lib_dl_dlopen = yes; then
8332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8333 else
8335 lt_cv_dlopen="dyld"
8336 lt_cv_dlopen_libs=
8337 lt_cv_dlopen_self=yes
8344 echo "$as_me:$LINENO: checking for shl_load" >&5
8345 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8346 if test "${ac_cv_func_shl_load+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 cat >conftest.$ac_ext <<_ACEOF
8350 #line $LINENO "configure"
8351 /* confdefs.h. */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 /* System header to define __stub macros and hopefully few prototypes,
8357 which can conflict with char shl_load (); below.
8358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8359 <limits.h> exists even on freestanding compilers. */
8360 #ifdef __STDC__
8361 # include <limits.h>
8362 #else
8363 # include <assert.h>
8364 #endif
8365 /* Override any gcc2 internal prototype to avoid an error. */
8366 #ifdef __cplusplus
8367 extern "C"
8369 #endif
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8372 char shl_load ();
8373 /* The GNU C library defines this for functions which it implements
8374 to always fail with ENOSYS. Some functions are actually named
8375 something starting with __ and the normal name is an alias. */
8376 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8377 choke me
8378 #else
8379 char (*f) () = shl_load;
8380 #endif
8381 #ifdef __cplusplus
8383 #endif
8386 main ()
8388 return f != shl_load;
8390 return 0;
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_func_shl_load=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 ac_cv_func_shl_load=no
8412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8415 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8416 if test $ac_cv_func_shl_load = yes; then
8417 lt_cv_dlopen="shl_load"
8418 else
8419 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8420 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8421 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424 ac_check_lib_save_LIBS=$LIBS
8425 LIBS="-ldld $LIBS"
8426 cat >conftest.$ac_ext <<_ACEOF
8427 #line $LINENO "configure"
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8434 /* Override any gcc2 internal prototype to avoid an error. */
8435 #ifdef __cplusplus
8436 extern "C"
8437 #endif
8438 /* We use char because int might match the return type of a gcc2
8439 builtin and then its argument prototype would still apply. */
8440 char shl_load ();
8442 main ()
8444 shl_load ();
8446 return 0;
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_lib_dld_shl_load=yes
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_lib_dld_shl_load=no
8468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8471 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8472 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8473 if test $ac_cv_lib_dld_shl_load = yes; then
8474 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8475 else
8476 echo "$as_me:$LINENO: checking for dlopen" >&5
8477 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8478 if test "${ac_cv_func_dlopen+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481 cat >conftest.$ac_ext <<_ACEOF
8482 #line $LINENO "configure"
8483 /* confdefs.h. */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 /* System header to define __stub macros and hopefully few prototypes,
8489 which can conflict with char dlopen (); below.
8490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8491 <limits.h> exists even on freestanding compilers. */
8492 #ifdef __STDC__
8493 # include <limits.h>
8494 #else
8495 # include <assert.h>
8496 #endif
8497 /* Override any gcc2 internal prototype to avoid an error. */
8498 #ifdef __cplusplus
8499 extern "C"
8501 #endif
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8504 char dlopen ();
8505 /* The GNU C library defines this for functions which it implements
8506 to always fail with ENOSYS. Some functions are actually named
8507 something starting with __ and the normal name is an alias. */
8508 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8509 choke me
8510 #else
8511 char (*f) () = dlopen;
8512 #endif
8513 #ifdef __cplusplus
8515 #endif
8518 main ()
8520 return f != dlopen;
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_cv_func_dlopen=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_cv_func_dlopen=no
8544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8547 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8548 if test $ac_cv_func_dlopen = yes; then
8549 lt_cv_dlopen="dlopen"
8550 else
8551 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556 ac_check_lib_save_LIBS=$LIBS
8557 LIBS="-ldl $LIBS"
8558 cat >conftest.$ac_ext <<_ACEOF
8559 #line $LINENO "configure"
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8566 /* Override any gcc2 internal prototype to avoid an error. */
8567 #ifdef __cplusplus
8568 extern "C"
8569 #endif
8570 /* We use char because int might match the return type of a gcc2
8571 builtin and then its argument prototype would still apply. */
8572 char dlopen ();
8574 main ()
8576 dlopen ();
8578 return 0;
8580 _ACEOF
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583 (eval $ac_link) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_lib_dl_dlopen=yes
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_cv_lib_dl_dlopen=no
8600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8601 LIBS=$ac_check_lib_save_LIBS
8603 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8604 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8605 if test $ac_cv_lib_dl_dlopen = yes; then
8606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8607 else
8608 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8609 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8610 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 ac_check_lib_save_LIBS=$LIBS
8614 LIBS="-lsvld $LIBS"
8615 cat >conftest.$ac_ext <<_ACEOF
8616 #line $LINENO "configure"
8617 /* confdefs.h. */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8623 /* Override any gcc2 internal prototype to avoid an error. */
8624 #ifdef __cplusplus
8625 extern "C"
8626 #endif
8627 /* We use char because int might match the return type of a gcc2
8628 builtin and then its argument prototype would still apply. */
8629 char dlopen ();
8631 main ()
8633 dlopen ();
8635 return 0;
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -s conftest$ac_exeext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 ac_cv_lib_svld_dlopen=yes
8651 else
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 ac_cv_lib_svld_dlopen=no
8657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8658 LIBS=$ac_check_lib_save_LIBS
8660 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8661 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8662 if test $ac_cv_lib_svld_dlopen = yes; then
8663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8664 else
8665 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8666 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670 ac_check_lib_save_LIBS=$LIBS
8671 LIBS="-ldld $LIBS"
8672 cat >conftest.$ac_ext <<_ACEOF
8673 #line $LINENO "configure"
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8680 /* Override any gcc2 internal prototype to avoid an error. */
8681 #ifdef __cplusplus
8682 extern "C"
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8686 char dld_link ();
8688 main ()
8690 dld_link ();
8692 return 0;
8694 _ACEOF
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } &&
8701 { ac_try='test -s conftest$ac_exeext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_cv_lib_dld_dld_link=yes
8708 else
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8712 ac_cv_lib_dld_dld_link=no
8714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8715 LIBS=$ac_check_lib_save_LIBS
8717 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8718 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8719 if test $ac_cv_lib_dld_dld_link = yes; then
8720 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8739 esac
8741 if test "x$lt_cv_dlopen" != xno; then
8742 enable_dlopen=yes
8743 else
8744 enable_dlopen=no
8747 case $lt_cv_dlopen in
8748 dlopen)
8749 save_CPPFLAGS="$CPPFLAGS"
8750 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8752 save_LDFLAGS="$LDFLAGS"
8753 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8755 save_LIBS="$LIBS"
8756 LIBS="$lt_cv_dlopen_libs $LIBS"
8758 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8759 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8760 if test "${lt_cv_dlopen_self+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 if test "$cross_compiling" = yes; then :
8764 lt_cv_dlopen_self=cross
8765 else
8766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8767 lt_status=$lt_dlunknown
8768 cat > conftest.$ac_ext <<EOF
8769 #line 8752 "configure"
8770 #include "confdefs.h"
8772 #if HAVE_DLFCN_H
8773 #include <dlfcn.h>
8774 #endif
8776 #include <stdio.h>
8778 #ifdef RTLD_GLOBAL
8779 # define LT_DLGLOBAL RTLD_GLOBAL
8780 #else
8781 # ifdef DL_GLOBAL
8782 # define LT_DLGLOBAL DL_GLOBAL
8783 # else
8784 # define LT_DLGLOBAL 0
8785 # endif
8786 #endif
8788 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8789 find out it does not work in some platform. */
8790 #ifndef LT_DLLAZY_OR_NOW
8791 # ifdef RTLD_LAZY
8792 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8793 # else
8794 # ifdef DL_LAZY
8795 # define LT_DLLAZY_OR_NOW DL_LAZY
8796 # else
8797 # ifdef RTLD_NOW
8798 # define LT_DLLAZY_OR_NOW RTLD_NOW
8799 # else
8800 # ifdef DL_NOW
8801 # define LT_DLLAZY_OR_NOW DL_NOW
8802 # else
8803 # define LT_DLLAZY_OR_NOW 0
8804 # endif
8805 # endif
8806 # endif
8807 # endif
8808 #endif
8810 #ifdef __cplusplus
8811 extern "C" void exit (int);
8812 #endif
8814 void fnord() { int i=42;}
8815 int main ()
8817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8818 int status = $lt_dlunknown;
8820 if (self)
8822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8823 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8824 /* dlclose (self); */
8827 exit (status);
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831 (eval $ac_link) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8835 (./conftest; exit; ) 2>/dev/null
8836 lt_status=$?
8837 case x$lt_status in
8838 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8839 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8840 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8841 esac
8842 else :
8843 # compilation failed
8844 lt_cv_dlopen_self=no
8847 rm -fr conftest*
8851 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8852 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8854 if test "x$lt_cv_dlopen_self" = xyes; then
8855 LDFLAGS="$LDFLAGS $link_static_flag"
8856 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8857 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8858 if test "${lt_cv_dlopen_self_static+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 else
8861 if test "$cross_compiling" = yes; then :
8862 lt_cv_dlopen_self_static=cross
8863 else
8864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8865 lt_status=$lt_dlunknown
8866 cat > conftest.$ac_ext <<EOF
8867 #line 8850 "configure"
8868 #include "confdefs.h"
8870 #if HAVE_DLFCN_H
8871 #include <dlfcn.h>
8872 #endif
8874 #include <stdio.h>
8876 #ifdef RTLD_GLOBAL
8877 # define LT_DLGLOBAL RTLD_GLOBAL
8878 #else
8879 # ifdef DL_GLOBAL
8880 # define LT_DLGLOBAL DL_GLOBAL
8881 # else
8882 # define LT_DLGLOBAL 0
8883 # endif
8884 #endif
8886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8887 find out it does not work in some platform. */
8888 #ifndef LT_DLLAZY_OR_NOW
8889 # ifdef RTLD_LAZY
8890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8891 # else
8892 # ifdef DL_LAZY
8893 # define LT_DLLAZY_OR_NOW DL_LAZY
8894 # else
8895 # ifdef RTLD_NOW
8896 # define LT_DLLAZY_OR_NOW RTLD_NOW
8897 # else
8898 # ifdef DL_NOW
8899 # define LT_DLLAZY_OR_NOW DL_NOW
8900 # else
8901 # define LT_DLLAZY_OR_NOW 0
8902 # endif
8903 # endif
8904 # endif
8905 # endif
8906 #endif
8908 #ifdef __cplusplus
8909 extern "C" void exit (int);
8910 #endif
8912 void fnord() { int i=42;}
8913 int main ()
8915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8916 int status = $lt_dlunknown;
8918 if (self)
8920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8921 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8922 /* dlclose (self); */
8925 exit (status);
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929 (eval $ac_link) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8933 (./conftest; exit; ) 2>/dev/null
8934 lt_status=$?
8935 case x$lt_status in
8936 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8937 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8938 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8939 esac
8940 else :
8941 # compilation failed
8942 lt_cv_dlopen_self_static=no
8945 rm -fr conftest*
8949 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8950 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8953 CPPFLAGS="$save_CPPFLAGS"
8954 LDFLAGS="$save_LDFLAGS"
8955 LIBS="$save_LIBS"
8957 esac
8959 case $lt_cv_dlopen_self in
8960 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8961 *) enable_dlopen_self=unknown ;;
8962 esac
8964 case $lt_cv_dlopen_self_static in
8965 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8966 *) enable_dlopen_self_static=unknown ;;
8967 esac
8971 # Report which librarie types wil actually be built
8972 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8973 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8974 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8975 echo "${ECHO_T}$can_build_shared" >&6
8977 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8978 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8979 test "$can_build_shared" = "no" && enable_shared=no
8981 # On AIX, shared libraries and static libraries use the same namespace, and
8982 # are all built from PIC.
8983 case "$host_os" in
8984 aix3*)
8985 test "$enable_shared" = yes && enable_static=no
8986 if test -n "$RANLIB"; then
8987 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
8988 postinstall_cmds='$RANLIB $lib'
8992 aix4*)
8993 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8994 test "$enable_shared" = yes && enable_static=no
8997 darwin* | rhapsody*)
8998 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8999 archive_cmds_need_lc=no
9000 case "$host_os" in
9001 rhapsody* | darwin1.[012])
9002 allow_undefined_flag='-undefined suppress'
9004 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
9005 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9007 *) # Darwin 7.0 on
9008 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
9009 10.[012])
9010 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9012 *) # 10.3 on
9013 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
9014 allow_undefined_flag='-flat_namespace -undefined suppress'
9015 else
9016 allow_undefined_flag='-undefined dynamic_lookup'
9019 esac
9021 esac
9022 # FIXME: Relying on posixy $() will cause problems for
9023 # cross-compilation, but unfortunately the echo tests do not
9024 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
9025 # `"' quotes if we put them in here... so don't!
9026 output_verbose_link_cmd='echo'
9027 archive_cmds='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9028 module_cmds='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9029 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9030 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9031 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9032 hardcode_direct=no
9033 hardcode_automatic=yes
9034 hardcode_shlibpath_var=unsupported
9035 whole_archive_flag_spec='-all_load $convenience'
9036 link_all_deplibs=yes
9039 esac
9040 echo "$as_me:$LINENO: result: $enable_shared" >&5
9041 echo "${ECHO_T}$enable_shared" >&6
9043 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9044 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9045 # Make sure either enable_shared or enable_static is yes.
9046 test "$enable_shared" = yes || enable_static=yes
9047 echo "$as_me:$LINENO: result: $enable_static" >&5
9048 echo "${ECHO_T}$enable_static" >&6
9050 # The else clause should only fire when bootstrapping the
9051 # libtool distribution, otherwise you forgot to ship ltmain.sh
9052 # with your package, and you will get complaints that there are
9053 # no rules to generate ltmain.sh.
9054 if test -f "$ltmain"; then
9055 # See if we are running on zsh, and set the options which allow our commands through
9056 # without removal of \ escapes.
9057 if test -n "${ZSH_VERSION+set}" ; then
9058 setopt NO_GLOB_SUBST
9060 # Now quote all the things that may contain metacharacters while being
9061 # careful not to overquote the AC_SUBSTed values. We take copies of the
9062 # variables and quote the copies for generation of the libtool script.
9063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9066 deplibs_check_method reload_flag reload_cmds need_locks \
9067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9068 lt_cv_sys_global_symbol_to_c_name_address \
9069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9070 old_postinstall_cmds old_postuninstall_cmds \
9071 compiler \
9072 CC \
9073 LD \
9074 lt_prog_compiler_wl \
9075 lt_prog_compiler_pic \
9076 lt_prog_compiler_static \
9077 lt_prog_compiler_no_builtin_flag \
9078 export_dynamic_flag_spec \
9079 thread_safe_flag_spec \
9080 whole_archive_flag_spec \
9081 enable_shared_with_static_runtimes \
9082 old_archive_cmds \
9083 old_archive_from_new_cmds \
9084 predep_objects \
9085 postdep_objects \
9086 predeps \
9087 postdeps \
9088 compiler_lib_search_path \
9089 archive_cmds \
9090 archive_expsym_cmds \
9091 postinstall_cmds \
9092 postuninstall_cmds \
9093 old_archive_from_expsyms_cmds \
9094 allow_undefined_flag \
9095 no_undefined_flag \
9096 export_symbols_cmds \
9097 hardcode_libdir_flag_spec \
9098 hardcode_libdir_flag_spec_ld \
9099 hardcode_libdir_separator \
9100 hardcode_automatic \
9101 module_cmds \
9102 module_expsym_cmds \
9103 lt_cv_prog_compiler_c_o \
9104 exclude_expsyms \
9105 include_expsyms; do
9107 case $var in
9108 old_archive_cmds | \
9109 old_archive_from_new_cmds | \
9110 archive_cmds | \
9111 archive_expsym_cmds | \
9112 module_cmds | \
9113 module_expsym_cmds | \
9114 old_archive_from_expsyms_cmds | \
9115 export_symbols_cmds | \
9116 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9117 postinstall_cmds | postuninstall_cmds | \
9118 old_postinstall_cmds | old_postuninstall_cmds | \
9119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9120 # Double-quote double-evaled strings.
9121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
9124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9126 esac
9127 done
9129 case $lt_echo in
9130 *'\$0 --fallback-echo"')
9131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9133 esac
9135 cfgfile="${ofile}T"
9136 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9137 $rm -f "$cfgfile"
9138 { echo "$as_me:$LINENO: creating $ofile" >&5
9139 echo "$as_me: creating $ofile" >&6;}
9141 cat <<__EOF__ >> "$cfgfile"
9142 #! $SHELL
9144 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9145 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9148 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9149 # Free Software Foundation, Inc.
9151 # This file is part of GNU Libtool:
9152 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9154 # This program is free software; you can redistribute it and/or modify
9155 # it under the terms of the GNU General Public License as published by
9156 # the Free Software Foundation; either version 2 of the License, or
9157 # (at your option) any later version.
9159 # This program is distributed in the hope that it will be useful, but
9160 # WITHOUT ANY WARRANTY; without even the implied warranty of
9161 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9162 # General Public License for more details.
9164 # You should have received a copy of the GNU General Public License
9165 # along with this program; if not, write to the Free Software
9166 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9168 # As a special exception to the GNU General Public License, if you
9169 # distribute this file as part of a program that contains a
9170 # configuration script generated by Autoconf, you may include it under
9171 # the same distribution terms that you use for the rest of that program.
9173 # A sed program that does not truncate output.
9174 SED=$lt_SED
9176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9177 Xsed="$SED -e s/^X//"
9179 # The HP-UX ksh and POSIX shell print the target directory to stdout
9180 # if CDPATH is set.
9181 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9183 # The names of the tagged configurations supported by this script.
9184 available_tags=
9186 # ### BEGIN LIBTOOL CONFIG
9188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9190 # Set the command separator (default: ~)
9191 _S_=\${LIBTOOL_CMD_SEP-\~}
9193 # Shell to use when invoking shell scripts.
9194 SHELL=$lt_SHELL
9196 # Whether or not to build shared libraries.
9197 build_libtool_libs=$enable_shared
9199 # Whether or not to build static libraries.
9200 build_old_libs=$enable_static
9202 # Whether or not to add -lc for building shared libraries.
9203 build_libtool_need_lc=$archive_cmds_need_lc
9205 # Whether or not to disallow shared libs when runtime libs are static
9206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9208 # Whether or not to optimize for fast installation.
9209 fast_install=$enable_fast_install
9211 # The host system.
9212 host_alias=$host_alias
9213 host=$host
9215 # An echo program that does not interpret backslashes.
9216 echo=$lt_echo
9218 # The archiver.
9219 AR=$lt_AR
9220 AR_FLAGS=$lt_AR_FLAGS
9222 # A C compiler.
9223 LTCC=$lt_LTCC
9225 # A language-specific compiler.
9226 CC=$lt_compiler
9228 # Is the compiler the GNU C compiler?
9229 with_gcc=$GCC
9231 # An ERE matcher.
9232 EGREP=$lt_EGREP
9234 # The linker used to build libraries.
9235 LD=$lt_LD
9237 # Whether we need hard or soft links.
9238 LN_S=$lt_LN_S
9240 # A BSD-compatible nm program.
9241 NM=$lt_NM
9243 # A symbol stripping program
9244 STRIP=$STRIP
9246 # Used to examine libraries when file_magic_cmd begins "file"
9247 MAGIC_CMD=$MAGIC_CMD
9249 # Used on cygwin: DLL creation program.
9250 DLLTOOL="$DLLTOOL"
9252 # Used on cygwin: object dumper.
9253 OBJDUMP="$OBJDUMP"
9255 # Used on cygwin: assembler.
9256 AS="$AS"
9258 # The name of the directory that contains temporary libtool files.
9259 objdir=$objdir
9261 # How to create reloadable object files.
9262 reload_flag=$lt_reload_flag
9263 reload_cmds=$lt_reload_cmds
9265 # How to pass a linker flag through the compiler.
9266 wl=$lt_lt_prog_compiler_wl
9268 # Object file suffix (normally "o").
9269 objext="$ac_objext"
9271 # Old archive suffix (normally "a").
9272 libext="$libext"
9274 # Shared library suffix (normally ".so").
9275 shrext='$shrext'
9277 # Executable file suffix (normally "").
9278 exeext="$exeext"
9280 # Additional compiler flags for building library objects.
9281 pic_flag=$lt_lt_prog_compiler_pic
9282 pic_mode=$pic_mode
9284 # What is the maximum length of a command?
9285 max_cmd_len=$lt_cv_sys_max_cmd_len
9287 # Does compiler simultaneously support -c and -o options?
9288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9290 # Must we lock files when doing compilation ?
9291 need_locks=$lt_need_locks
9293 # Do we need the lib prefix for modules?
9294 need_lib_prefix=$need_lib_prefix
9296 # Do we need a version for libraries?
9297 need_version=$need_version
9299 # Whether dlopen is supported.
9300 dlopen_support=$enable_dlopen
9302 # Whether dlopen of programs is supported.
9303 dlopen_self=$enable_dlopen_self
9305 # Whether dlopen of statically linked programs is supported.
9306 dlopen_self_static=$enable_dlopen_self_static
9308 # Compiler flag to prevent dynamic linking.
9309 link_static_flag=$lt_lt_prog_compiler_static
9311 # Compiler flag to turn off builtin functions.
9312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9314 # Compiler flag to allow reflexive dlopens.
9315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9317 # Compiler flag to generate shared objects directly from archives.
9318 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9320 # Compiler flag to generate thread-safe objects.
9321 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9323 # Library versioning type.
9324 version_type=$version_type
9326 # Format of library name prefix.
9327 libname_spec=$lt_libname_spec
9329 # List of archive names. First name is the real one, the rest are links.
9330 # The last name is the one that the linker finds with -lNAME.
9331 library_names_spec=$lt_library_names_spec
9333 # The coded name of the library, if different from the real name.
9334 soname_spec=$lt_soname_spec
9336 # Commands used to build and install an old-style archive.
9337 RANLIB=$lt_RANLIB
9338 old_archive_cmds=$lt_old_archive_cmds
9339 old_postinstall_cmds=$lt_old_postinstall_cmds
9340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9342 # Create an old-style archive from a shared archive.
9343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9345 # Create a temporary old-style archive to link instead of a shared archive.
9346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9348 # Commands used to build and install a shared archive.
9349 archive_cmds=$lt_archive_cmds
9350 archive_expsym_cmds=$lt_archive_expsym_cmds
9351 postinstall_cmds=$lt_postinstall_cmds
9352 postuninstall_cmds=$lt_postuninstall_cmds
9354 # Commands used to build a loadable module (assumed same as above if empty)
9355 module_cmds=$lt_module_cmds
9356 module_expsym_cmds=$lt_module_expsym_cmds
9358 # Commands to strip libraries.
9359 old_striplib=$lt_old_striplib
9360 striplib=$lt_striplib
9362 # Dependencies to place before the objects being linked to create a
9363 # shared library.
9364 predep_objects=$lt_predep_objects
9366 # Dependencies to place after the objects being linked to create a
9367 # shared library.
9368 postdep_objects=$lt_postdep_objects
9370 # Dependencies to place before the objects being linked to create a
9371 # shared library.
9372 predeps=$lt_predeps
9374 # Dependencies to place after the objects being linked to create a
9375 # shared library.
9376 postdeps=$lt_postdeps
9378 # The library search path used internally by the compiler when linking
9379 # a shared library.
9380 compiler_lib_search_path=$lt_compiler_lib_search_path
9382 # Method to check whether dependent libraries are shared objects.
9383 deplibs_check_method=$lt_deplibs_check_method
9385 # Command to use when deplibs_check_method == file_magic.
9386 file_magic_cmd=$lt_file_magic_cmd
9388 # Flag that allows shared libraries with undefined symbols to be built.
9389 allow_undefined_flag=$lt_allow_undefined_flag
9391 # Flag that forces no undefined symbols.
9392 no_undefined_flag=$lt_no_undefined_flag
9394 # Commands used to finish a libtool library installation in a directory.
9395 finish_cmds=$lt_finish_cmds
9397 # Same as above, but a single script fragment to be evaled but not shown.
9398 finish_eval=$lt_finish_eval
9400 # Take the output of nm and produce a listing of raw symbols and C names.
9401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9403 # Transform the output of nm in a proper C declaration
9404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9406 # Transform the output of nm in a C name address pair
9407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9409 # This is the shared library runtime path variable.
9410 runpath_var=$runpath_var
9412 # This is the shared library path variable.
9413 shlibpath_var=$shlibpath_var
9415 # Is shlibpath searched before the hard-coded library search path?
9416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9418 # How to hardcode a shared library path into an executable.
9419 hardcode_action=$hardcode_action
9421 # Whether we should hardcode library paths into libraries.
9422 hardcode_into_libs=$hardcode_into_libs
9424 # Flag to hardcode \$libdir into a binary during linking.
9425 # This must work even if \$libdir does not exist.
9426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9428 # If ld is used when linking, flag to hardcode \$libdir into
9429 # a binary during linking. This must work even if \$libdir does
9430 # not exist.
9431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9433 # Whether we need a single -rpath flag with a separated argument.
9434 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9437 # resulting binary.
9438 hardcode_direct=$hardcode_direct
9440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9441 # resulting binary.
9442 hardcode_minus_L=$hardcode_minus_L
9444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9445 # the resulting binary.
9446 hardcode_shlibpath_var=$hardcode_shlibpath_var
9448 # Set to yes if building a shared library automatically hardcodes DIR into the library
9449 # and all subsequent libraries and executables linked against it.
9450 hardcode_automatic=$hardcode_automatic
9452 # Variables whose values should be saved in libtool wrapper scripts and
9453 # restored at relink time.
9454 variables_saved_for_relink="$variables_saved_for_relink"
9456 # Whether libtool must link a program against all its dependency libraries.
9457 link_all_deplibs=$link_all_deplibs
9459 # Compile-time system search path for libraries
9460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9462 # Run-time system search path for libraries
9463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9465 # Fix the shell variable \$srcfile for the compiler.
9466 fix_srcfile_path="$fix_srcfile_path"
9468 # Set to yes if exported symbols are required.
9469 always_export_symbols=$always_export_symbols
9471 # The commands to list exported symbols.
9472 export_symbols_cmds=$lt_export_symbols_cmds
9474 # The commands to extract the exported symbol list from a shared archive.
9475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9477 # Symbols that should not be listed in the preloaded symbols.
9478 exclude_expsyms=$lt_exclude_expsyms
9480 # Symbols that must always be exported.
9481 include_expsyms=$lt_include_expsyms
9483 # ### END LIBTOOL CONFIG
9485 __EOF__
9488 case $host_os in
9489 aix3*)
9490 cat <<\EOF >> "$cfgfile"
9492 # AIX sometimes has problems with the GCC collect2 program. For some
9493 # reason, if we set the COLLECT_NAMES environment variable, the problems
9494 # vanish in a puff of smoke.
9495 if test "X${COLLECT_NAMES+set}" != Xset; then
9496 COLLECT_NAMES=
9497 export COLLECT_NAMES
9501 esac
9503 # We use sed instead of cat because bash on DJGPP gets confused if
9504 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9505 # text mode, it properly converts lines to CR/LF. This bash problem
9506 # is reportedly fixed, but why not run on old versions too?
9507 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9509 mv -f "$cfgfile" "$ofile" || \
9510 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9511 chmod +x "$ofile"
9513 else
9514 # If there is no Makefile yet, we rely on a make rule to execute
9515 # `config.status --recheck' to rerun these tests and create the
9516 # libtool script then.
9517 test -f Makefile && make "$ltmain"
9521 ac_ext=c
9522 ac_cpp='$CPP $CPPFLAGS'
9523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9527 CC="$lt_save_CC"
9530 # Check whether --with-tags or --without-tags was given.
9531 if test "${with_tags+set}" = set; then
9532 withval="$with_tags"
9533 tagnames="$withval"
9536 if test -f "$ltmain" && test -n "$tagnames"; then
9537 if test ! -f "${ofile}"; then
9538 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9539 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9542 if test -z "$LTCC"; then
9543 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9544 if test -z "$LTCC"; then
9545 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9546 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9547 else
9548 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9549 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9553 # Extract list of available tagged configurations in $ofile.
9554 # Note that this assumes the entire list is on one line.
9555 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9558 for tagname in $tagnames; do
9559 IFS="$lt_save_ifs"
9560 # Check whether tagname contains only valid characters
9561 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9562 "") ;;
9563 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9564 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9565 { (exit 1); exit 1; }; }
9567 esac
9569 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9570 then
9571 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9572 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9573 { (exit 1); exit 1; }; }
9576 # Update the list of available tags.
9577 if test -n "$tagname"; then
9578 echo appending configuration tag \"$tagname\" to $ofile
9580 case $tagname in
9581 CXX)
9582 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9583 ac_ext=cc
9584 ac_cpp='$CXXCPP $CPPFLAGS'
9585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9592 archive_cmds_need_lc_CXX=no
9593 allow_undefined_flag_CXX=
9594 always_export_symbols_CXX=no
9595 archive_expsym_cmds_CXX=
9596 export_dynamic_flag_spec_CXX=
9597 hardcode_direct_CXX=no
9598 hardcode_libdir_flag_spec_CXX=
9599 hardcode_libdir_flag_spec_ld_CXX=
9600 hardcode_libdir_separator_CXX=
9601 hardcode_minus_L_CXX=no
9602 hardcode_automatic_CXX=no
9603 module_cmds_CXX=
9604 module_expsym_cmds_CXX=
9605 link_all_deplibs_CXX=unknown
9606 old_archive_cmds_CXX=$old_archive_cmds
9607 no_undefined_flag_CXX=
9608 whole_archive_flag_spec_CXX=
9609 enable_shared_with_static_runtimes_CXX=no
9611 # Dependencies to place before and after the object being linked:
9612 predep_objects_CXX=
9613 postdep_objects_CXX=
9614 predeps_CXX=
9615 postdeps_CXX=
9616 compiler_lib_search_path_CXX=
9618 # Source file extension for C++ test sources.
9619 ac_ext=cc
9621 # Object file extension for compiled C++ test sources.
9622 objext=o
9623 objext_CXX=$objext
9625 # Code to be used in simple compile tests
9626 lt_simple_compile_test_code="int some_variable = 0;\n"
9628 # Code to be used in simple link tests
9629 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9631 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9633 # If no C compiler was specified, use CC.
9634 LTCC=${LTCC-"$CC"}
9636 # Allow CC to be a program name with arguments.
9637 compiler=$CC
9640 # Allow CC to be a program name with arguments.
9641 lt_save_CC=$CC
9642 lt_save_LD=$LD
9643 lt_save_GCC=$GCC
9644 GCC=$GXX
9645 lt_save_with_gnu_ld=$with_gnu_ld
9646 lt_save_path_LD=$lt_cv_path_LD
9647 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9648 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9649 else
9650 unset lt_cv_prog_gnu_ld
9652 if test -n "${lt_cv_path_LDCXX+set}"; then
9653 lt_cv_path_LD=$lt_cv_path_LDCXX
9654 else
9655 unset lt_cv_path_LD
9657 test -z "${LDCXX+set}" || LD=$LDCXX
9658 CC=${CXX-"c++"}
9659 compiler=$CC
9660 compiler_CXX=$CC
9661 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9663 # We don't want -fno-exception wen compiling C++ code, so set the
9664 # no_builtin_flag separately
9665 if test "$GXX" = yes; then
9666 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9667 else
9668 lt_prog_compiler_no_builtin_flag_CXX=
9671 if test "$GXX" = yes; then
9672 # Set up default GNU C++ configuration
9675 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9676 if test "${with_gnu_ld+set}" = set; then
9677 withval="$with_gnu_ld"
9678 test "$withval" = no || with_gnu_ld=yes
9679 else
9680 with_gnu_ld=no
9682 ac_prog=ld
9683 if test "$GCC" = yes; then
9684 # Check if gcc -print-prog-name=ld gives a path.
9685 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9686 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9687 case $host in
9688 *-*-mingw*)
9689 # gcc leaves a trailing carriage return which upsets mingw
9690 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9692 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9693 esac
9694 case $ac_prog in
9695 # Accept absolute paths.
9696 [\\/]* | ?:[\\/]*)
9697 re_direlt='/[^/][^/]*/\.\./'
9698 # Canonicalize the path of ld
9699 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9700 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9701 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9702 done
9703 test -z "$LD" && LD="$ac_prog"
9706 # If it fails, then pretend we aren't using GCC.
9707 ac_prog=ld
9710 # If it is relative, then search for the first ld in PATH.
9711 with_gnu_ld=unknown
9713 esac
9714 elif test "$with_gnu_ld" = yes; then
9715 echo "$as_me:$LINENO: checking for GNU ld" >&5
9716 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9717 else
9718 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9719 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9721 if test "${lt_cv_path_LD+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 if test -z "$LD"; then
9725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9726 for ac_dir in $PATH; do
9727 IFS="$lt_save_ifs"
9728 test -z "$ac_dir" && ac_dir=.
9729 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9730 lt_cv_path_LD="$ac_dir/$ac_prog"
9731 # Check to see if the program is GNU ld. I'd rather use --version,
9732 # but apparently some GNU ld's only accept -v.
9733 # Break only if it was the GNU/non-GNU ld that we prefer.
9734 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9735 *GNU* | *'with BFD'*)
9736 test "$with_gnu_ld" != no && break
9739 test "$with_gnu_ld" != yes && break
9741 esac
9743 done
9744 IFS="$lt_save_ifs"
9745 else
9746 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9750 LD="$lt_cv_path_LD"
9751 if test -n "$LD"; then
9752 echo "$as_me:$LINENO: result: $LD" >&5
9753 echo "${ECHO_T}$LD" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756 echo "${ECHO_T}no" >&6
9758 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9759 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9760 { (exit 1); exit 1; }; }
9761 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9762 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9763 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9767 case `"$LD" -v 2>&1 </dev/null` in
9768 *GNU* | *'with BFD'*)
9769 lt_cv_prog_gnu_ld=yes
9772 lt_cv_prog_gnu_ld=no
9774 esac
9776 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9777 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9778 with_gnu_ld=$lt_cv_prog_gnu_ld
9782 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9783 # archiving commands below assume that GNU ld is being used.
9784 if test "$with_gnu_ld" = yes; then
9785 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9786 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'
9788 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9791 # If archive_cmds runs LD, not CC, wlarc should be empty
9792 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9793 # investigate it a little bit more. (MM)
9794 wlarc='${wl}'
9796 # ancient GNU ld didn't support --whole-archive et. al.
9797 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9798 grep 'no-whole-archive' > /dev/null; then
9799 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9800 else
9801 whole_archive_flag_spec_CXX=
9803 else
9804 with_gnu_ld=no
9805 wlarc=
9807 # A generic and very simple default shared library creation
9808 # command for GNU C++ for the case where it uses the native
9809 # linker, instead of GNU ld. If possible, this setting should
9810 # overridden to take advantage of the native linker features on
9811 # the platform it is being used on.
9812 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9815 # Commands to make compiler produce verbose output that lists
9816 # what "hidden" libraries, object files and flags are used when
9817 # linking a shared library.
9818 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9820 else
9821 GXX=no
9822 with_gnu_ld=no
9823 wlarc=
9826 # PORTME: fill in a description of your system's C++ link characteristics
9827 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9828 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9829 ld_shlibs_CXX=yes
9830 case $host_os in
9831 aix3*)
9832 # FIXME: insert proper C++ library support
9833 ld_shlibs_CXX=no
9835 aix4* | aix5*)
9836 if test "$host_cpu" = ia64; then
9837 # On IA64, the linker does run time linking by default, so we don't
9838 # have to do anything special.
9839 aix_use_runtimelinking=no
9840 exp_sym_flag='-Bexport'
9841 no_entry_flag=""
9842 else
9843 aix_use_runtimelinking=no
9845 # Test if we are trying to use run time linking or normal
9846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9847 # need to do runtime linking.
9848 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9849 for ld_flag in $LDFLAGS; do
9850 case $ld_flag in
9851 *-brtl*)
9852 aix_use_runtimelinking=yes
9853 break
9855 esac
9856 done
9857 esac
9859 exp_sym_flag='-bexport'
9860 no_entry_flag='-bnoentry'
9863 # When large executables or shared objects are built, AIX ld can
9864 # have problems creating the table of contents. If linking a library
9865 # or program results in "error TOC overflow" add -mminimal-toc to
9866 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9867 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9869 archive_cmds_CXX=''
9870 hardcode_direct_CXX=yes
9871 hardcode_libdir_separator_CXX=':'
9872 link_all_deplibs_CXX=yes
9874 if test "$GXX" = yes; then
9875 case $host_os in aix4.012|aix4.012.*)
9876 # We only want to do this on AIX 4.2 and lower, the check
9877 # below for broken collect2 doesn't work under 4.3+
9878 collect2name=`${CC} -print-prog-name=collect2`
9879 if test -f "$collect2name" && \
9880 strings "$collect2name" | grep resolve_lib_name >/dev/null
9881 then
9882 # We have reworked collect2
9883 hardcode_direct_CXX=yes
9884 else
9885 # We have old collect2
9886 hardcode_direct_CXX=unsupported
9887 # It fails to find uninstalled libraries when the uninstalled
9888 # path is not listed in the libpath. Setting hardcode_minus_L
9889 # to unsupported forces relinking
9890 hardcode_minus_L_CXX=yes
9891 hardcode_libdir_flag_spec_CXX='-L$libdir'
9892 hardcode_libdir_separator_CXX=
9894 esac
9895 shared_flag='-shared'
9896 else
9897 # not using gcc
9898 if test "$host_cpu" = ia64; then
9899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9900 # chokes on -Wl,-G. The following line is correct:
9901 shared_flag='-G'
9902 else
9903 if test "$aix_use_runtimelinking" = yes; then
9904 shared_flag='${wl}-G'
9905 else
9906 shared_flag='${wl}-bM:SRE'
9911 # It seems that -bexpall does not export symbols beginning with
9912 # underscore (_), so it is better to generate a list of symbols to export.
9913 always_export_symbols_CXX=yes
9914 if test "$aix_use_runtimelinking" = yes; then
9915 # Warning - without using the other runtime loading flags (-brtl),
9916 # -berok will link without error, but may produce a broken library.
9917 allow_undefined_flag_CXX='-berok'
9918 # Determine the default libpath from the value encoded in an empty executable.
9919 cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9921 /* confdefs.h. */
9922 _ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9928 main ()
9932 return 0;
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937 (eval $ac_link) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9950 # Check for a 64-bit object if we didn't find anything.
9951 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; }
9952 }'`; fi
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9963 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9964 else
9965 if test "$host_cpu" = ia64; then
9966 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9967 allow_undefined_flag_CXX="-z nodefs"
9968 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9969 else
9970 # Determine the default libpath from the value encoded in an empty executable.
9971 cat >conftest.$ac_ext <<_ACEOF
9972 #line $LINENO "configure"
9973 /* confdefs.h. */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9980 main ()
9984 return 0;
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
10000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10002 # Check for a 64-bit object if we didn't find anything.
10003 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; }
10004 }'`; fi
10005 else
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10013 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10014 # Warning - without using the other run time loading flags,
10015 # -berok will link without error, but may produce a broken library.
10016 no_undefined_flag_CXX=' ${wl}-bernotok'
10017 allow_undefined_flag_CXX=' ${wl}-berok'
10018 # -bexpall does not export symbols beginning with underscore (_)
10019 always_export_symbols_CXX=yes
10020 # Exported symbols can be pulled into shared objects from archives
10021 whole_archive_flag_spec_CXX=' '
10022 archive_cmds_need_lc_CXX=yes
10023 # This is similar to how AIX traditionally builds it's shared libraries.
10024 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10028 chorus*)
10029 case $cc_basename in
10031 # FIXME: insert proper C++ library support
10032 ld_shlibs_CXX=no
10034 esac
10037 cygwin* | mingw* | pw32*)
10038 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10039 # as there is no search path for DLLs.
10040 hardcode_libdir_flag_spec_CXX='-L$libdir'
10041 allow_undefined_flag_CXX=unsupported
10042 always_export_symbols_CXX=no
10043 enable_shared_with_static_runtimes_CXX=yes
10045 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10046 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10047 # If the export-symbols file already is a .def file (1st line
10048 # is EXPORTS), use it as is; otherwise, prepend...
10049 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10050 cp $export_symbols $output_objdir/$soname.def;
10051 else
10052 echo EXPORTS > $output_objdir/$soname.def;
10053 cat $export_symbols >> $output_objdir/$soname.def;
10054 fi${_S_}
10055 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10056 else
10057 ld_shlibs_CXX=no
10061 darwin* | rhapsody*)
10062 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10063 archive_cmds_need_lc_CXX=no
10064 case "$host_os" in
10065 rhapsody* | darwin1.[012])
10066 allow_undefined_flag_CXX='-undefined suppress'
10068 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
10069 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10071 *) # Darwin 7.0 on
10072 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
10073 10.[012])
10074 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10076 *) # 10.3 on
10077 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
10078 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10079 else
10080 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10083 esac
10085 esac
10086 lt_int_apple_cc_single_mod=no
10087 output_verbose_link_cmd='echo'
10088 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10089 lt_int_apple_cc_single_mod=yes
10091 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10092 archive_cmds_CXX='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10093 else
10094 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10096 module_cmds_CXX='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10098 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10099 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10100 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10101 else
10102 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10104 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10105 hardcode_direct_CXX=no
10106 hardcode_automatic_CXX=yes
10107 hardcode_shlibpath_var_CXX=unsupported
10108 whole_archive_flag_spec_CXX='-all_load $convenience'
10109 link_all_deplibs_CXX=yes
10113 dgux*)
10114 case $cc_basename in
10115 ec++)
10116 # FIXME: insert proper C++ library support
10117 ld_shlibs_CXX=no
10119 ghcx)
10120 # Green Hills C++ Compiler
10121 # FIXME: insert proper C++ library support
10122 ld_shlibs_CXX=no
10125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10128 esac
10130 freebsd12*)
10131 # C++ shared libraries reported to be fairly broken before switch to ELF
10132 ld_shlibs_CXX=no
10134 freebsd-elf*)
10135 archive_cmds_need_lc_CXX=no
10137 freebsd*)
10138 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10139 # conventions
10140 ld_shlibs_CXX=yes
10142 gnu*)
10144 hpux9*)
10145 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10146 hardcode_libdir_separator_CXX=:
10147 export_dynamic_flag_spec_CXX='${wl}-E'
10148 hardcode_direct_CXX=yes
10149 hardcode_minus_L_CXX=yes # Not in the search PATH,
10150 # but as the default
10151 # location of the library.
10153 case $cc_basename in
10155 # FIXME: insert proper C++ library support
10156 ld_shlibs_CXX=no
10158 aCC)
10159 archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10160 # Commands to make compiler produce verbose output that lists
10161 # what "hidden" libraries, object files and flags are used when
10162 # linking a shared library.
10164 # There doesn't appear to be a way to prevent this compiler from
10165 # explicitly linking system object files so we need to strip them
10166 # from the output so that they don't get included in the library
10167 # dependencies.
10168 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10171 if test "$GXX" = yes; then
10172 archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10173 else
10174 # FIXME: insert proper C++ library support
10175 ld_shlibs_CXX=no
10178 esac
10180 hpux10*|hpux11*)
10181 if test $with_gnu_ld = no; then
10182 case "$host_cpu" in
10183 hppa*64*)
10184 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10185 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10186 hardcode_libdir_separator_CXX=:
10188 ia64*)
10189 hardcode_libdir_flag_spec_CXX='-L$libdir'
10192 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10193 hardcode_libdir_separator_CXX=:
10194 export_dynamic_flag_spec_CXX='${wl}-E'
10196 esac
10198 case "$host_cpu" in
10199 hppa*64*)
10200 hardcode_direct_CXX=no
10201 hardcode_shlibpath_var_CXX=no
10203 ia64*)
10204 hardcode_direct_CXX=no
10205 hardcode_shlibpath_var_CXX=no
10206 hardcode_minus_L_CXX=yes # Not in the search PATH,
10207 # but as the default
10208 # location of the library.
10211 hardcode_direct_CXX=yes
10212 hardcode_minus_L_CXX=yes # Not in the search PATH,
10213 # but as the default
10214 # location of the library.
10216 esac
10218 case $cc_basename in
10220 # FIXME: insert proper C++ library support
10221 ld_shlibs_CXX=no
10223 aCC)
10224 case "$host_cpu" in
10225 hppa*64*|ia64*)
10226 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10229 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10231 esac
10232 # Commands to make compiler produce verbose output that lists
10233 # what "hidden" libraries, object files and flags are used when
10234 # linking a shared library.
10236 # There doesn't appear to be a way to prevent this compiler from
10237 # explicitly linking system object files so we need to strip them
10238 # from the output so that they don't get included in the library
10239 # dependencies.
10240 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'
10243 if test "$GXX" = yes; then
10244 if test $with_gnu_ld = no; then
10245 case "$host_cpu" in
10246 ia64*|hppa*64*)
10247 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10250 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'
10252 esac
10254 else
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10259 esac
10261 irix5* | irix6*)
10262 case $cc_basename in
10264 # SGI C++
10265 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10267 # Archives containing C++ object files must be created using
10268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10269 # necessary to make sure instantiated templates are included
10270 # in the archive.
10271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10274 if test "$GXX" = yes; then
10275 if test "$with_gnu_ld" = no; then
10276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10277 else
10278 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'
10281 link_all_deplibs_CXX=yes
10283 esac
10284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10285 hardcode_libdir_separator_CXX=:
10287 linux*)
10288 case $cc_basename in
10289 KCC)
10290 # Kuck and Associates, Inc. (KAI) C++ Compiler
10292 # KCC will only create a shared library if the output file
10293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10294 # to its proper name (with version) after linking.
10295 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'
10296 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'
10297 # Commands to make compiler produce verbose output that lists
10298 # what "hidden" libraries, object files and flags are used when
10299 # linking a shared library.
10301 # There doesn't appear to be a way to prevent this compiler from
10302 # explicitly linking system object files so we need to strip them
10303 # from the output so that they don't get included in the library
10304 # dependencies.
10305 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'
10307 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10310 # Archives containing C++ object files must be created using
10311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10314 icpc)
10315 # Intel C++
10316 with_gnu_ld=yes
10317 archive_cmds_need_lc_CXX=no
10318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10319 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'
10320 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10321 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10322 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10324 cxx)
10325 # Compaq C++
10326 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327 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'
10329 runpath_var=LD_RUN_PATH
10330 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10331 hardcode_libdir_separator_CXX=:
10333 # Commands to make compiler produce verbose output that lists
10334 # what "hidden" libraries, object files and flags are used when
10335 # linking a shared library.
10337 # There doesn't appear to be a way to prevent this compiler from
10338 # explicitly linking system object files so we need to strip them
10339 # from the output so that they don't get included in the library
10340 # dependencies.
10341 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'
10343 esac
10345 lynxos*)
10346 # FIXME: insert proper C++ library support
10347 ld_shlibs_CXX=no
10349 m88k*)
10350 # FIXME: insert proper C++ library support
10351 ld_shlibs_CXX=no
10353 mvs*)
10354 case $cc_basename in
10355 cxx)
10356 # FIXME: insert proper C++ library support
10357 ld_shlibs_CXX=no
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10363 esac
10365 netbsd*)
10366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10367 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10368 wlarc=
10369 hardcode_libdir_flag_spec_CXX='-R$libdir'
10370 hardcode_direct_CXX=yes
10371 hardcode_shlibpath_var_CXX=no
10373 # Workaround some broken pre-1.5 toolchains
10374 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10376 osf3*)
10377 case $cc_basename in
10378 KCC)
10379 # Kuck and Associates, Inc. (KAI) C++ Compiler
10381 # KCC will only create a shared library if the output file
10382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10383 # to its proper name (with version) after linking.
10384 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'
10386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10387 hardcode_libdir_separator_CXX=:
10389 # Archives containing C++ object files must be created using
10390 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10391 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10394 RCC)
10395 # Rational C++ 2.4.1
10396 # FIXME: insert proper C++ library support
10397 ld_shlibs_CXX=no
10399 cxx)
10400 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10401 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10404 hardcode_libdir_separator_CXX=:
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10410 # There doesn't appear to be a way to prevent this compiler from
10411 # explicitly linking system object files so we need to strip them
10412 # from the output so that they don't get included in the library
10413 # dependencies.
10414 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'
10417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10419 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10422 hardcode_libdir_separator_CXX=:
10424 # Commands to make compiler produce verbose output that lists
10425 # what "hidden" libraries, object files and flags are used when
10426 # linking a shared library.
10427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10429 else
10430 # FIXME: insert proper C++ library support
10431 ld_shlibs_CXX=no
10434 esac
10436 osf4* | osf5*)
10437 case $cc_basename in
10438 KCC)
10439 # Kuck and Associates, Inc. (KAI) C++ Compiler
10441 # KCC will only create a shared library if the output file
10442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10443 # to its proper name (with version) after linking.
10444 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'
10446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10447 hardcode_libdir_separator_CXX=:
10449 # Archives containing C++ object files must be created using
10450 # the KAI C++ compiler.
10451 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10453 RCC)
10454 # Rational C++ 2.4.1
10455 # FIXME: insert proper C++ library support
10456 ld_shlibs_CXX=no
10458 cxx)
10459 allow_undefined_flag_CXX=' -expect_unresolved \*'
10460 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10461 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_}
10462 echo "-hidden">> $lib.exp${_S_}
10463 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib${_S_}
10464 $rm $lib.exp'
10466 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10467 hardcode_libdir_separator_CXX=:
10469 # Commands to make compiler produce verbose output that lists
10470 # what "hidden" libraries, object files and flags are used when
10471 # linking a shared library.
10473 # There doesn't appear to be a way to prevent this compiler from
10474 # explicitly linking system object files so we need to strip them
10475 # from the output so that they don't get included in the library
10476 # dependencies.
10477 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'
10480 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10481 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10482 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10485 hardcode_libdir_separator_CXX=:
10487 # Commands to make compiler produce verbose output that lists
10488 # what "hidden" libraries, object files and flags are used when
10489 # linking a shared library.
10490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10492 else
10493 # FIXME: insert proper C++ library support
10494 ld_shlibs_CXX=no
10497 esac
10499 psos*)
10500 # FIXME: insert proper C++ library support
10501 ld_shlibs_CXX=no
10503 sco*)
10504 archive_cmds_need_lc_CXX=no
10505 case $cc_basename in
10507 # FIXME: insert proper C++ library support
10508 ld_shlibs_CXX=no
10511 # FIXME: insert proper C++ library support
10512 ld_shlibs_CXX=no
10514 esac
10516 sunos4*)
10517 case $cc_basename in
10519 # Sun C++ 4.x
10520 # FIXME: insert proper C++ library support
10521 ld_shlibs_CXX=no
10523 lcc)
10524 # Lucid
10525 # FIXME: insert proper C++ library support
10526 ld_shlibs_CXX=no
10529 # FIXME: insert proper C++ library support
10530 ld_shlibs_CXX=no
10532 esac
10534 solaris*)
10535 case $cc_basename in
10537 # Sun C++ 4.2, 5.x and Centerline C++
10538 no_undefined_flag_CXX=' -zdefs'
10539 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10540 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10541 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
10543 hardcode_libdir_flag_spec_CXX='-R$libdir'
10544 hardcode_shlibpath_var_CXX=no
10545 case $host_os in
10546 solaris2.0-5 | solaris2.0-5.*) ;;
10548 # The C++ compiler is used as linker so we must use $wl
10549 # flag to pass the commands to the underlying system
10550 # linker.
10551 # Supported since Solaris 2.6 (maybe 2.5.1?)
10552 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10554 esac
10555 link_all_deplibs_CXX=yes
10557 # Commands to make compiler produce verbose output that lists
10558 # what "hidden" libraries, object files and flags are used when
10559 # linking a shared library.
10561 # There doesn't appear to be a way to prevent this compiler from
10562 # explicitly linking system object files so we need to strip them
10563 # from the output so that they don't get included in the library
10564 # dependencies.
10565 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10567 # Archives containing C++ object files must be created using
10568 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10569 # necessary to make sure instantiated templates are included
10570 # in the archive.
10571 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10573 gcx)
10574 # Green Hills C++ Compiler
10575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10577 # The C++ compiler must be used to create the archive.
10578 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10581 # GNU C++ compiler with Solaris linker
10582 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10583 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10584 if $CC --version | grep -v '^2\.7' > /dev/null; then
10585 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10586 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10587 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
10589 # Commands to make compiler produce verbose output that lists
10590 # what "hidden" libraries, object files and flags are used when
10591 # linking a shared library.
10592 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10593 else
10594 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10595 # platform.
10596 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10597 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10598 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
10600 # Commands to make compiler produce verbose output that lists
10601 # what "hidden" libraries, object files and flags are used when
10602 # linking a shared library.
10603 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10606 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10609 esac
10611 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10612 archive_cmds_need_lc_CXX=no
10614 tandem*)
10615 case $cc_basename in
10616 NCC)
10617 # NonStop-UX NCC 3.20
10618 # FIXME: insert proper C++ library support
10619 ld_shlibs_CXX=no
10622 # FIXME: insert proper C++ library support
10623 ld_shlibs_CXX=no
10625 esac
10627 vxworks*)
10628 # FIXME: insert proper C++ library support
10629 ld_shlibs_CXX=no
10632 # FIXME: insert proper C++ library support
10633 ld_shlibs_CXX=no
10635 esac
10636 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10637 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10638 test "$ld_shlibs_CXX" = no && can_build_shared=no
10640 GCC_CXX="$GXX"
10641 LD_CXX="$LD"
10644 cat > conftest.$ac_ext <<EOF
10645 class Foo
10647 public:
10648 Foo (void) { a = 0; }
10649 private:
10650 int a;
10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; then
10659 # Parse the compiler output and extract the necessary
10660 # objects, libraries and library flags.
10662 # Sentinel used to keep track of whether or not we are before
10663 # the conftest object file.
10664 pre_test_object_deps_done=no
10666 # The `*' in the case matches for architectures that use `case' in
10667 # $output_verbose_cmd can trigger glob expansion during the loop
10668 # eval without this substitution.
10669 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10671 for p in `eval $output_verbose_link_cmd`; do
10672 case $p in
10674 -L* | -R* | -l*)
10675 # Some compilers place space between "-{L,R}" and the path.
10676 # Remove the space.
10677 if test $p = "-L" \
10678 || test $p = "-R"; then
10679 prev=$p
10680 continue
10681 else
10682 prev=
10685 if test "$pre_test_object_deps_done" = no; then
10686 case $p in
10687 -L* | -R*)
10688 # Internal compiler library paths should come after those
10689 # provided the user. The postdeps already come after the
10690 # user supplied libs so there is no need to process them.
10691 if test -z "$compiler_lib_search_path_CXX"; then
10692 compiler_lib_search_path_CXX="${prev}${p}"
10693 else
10694 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10697 # The "-l" case would never come before the object being
10698 # linked, so don't bother handling this case.
10699 esac
10700 else
10701 if test -z "$postdeps_CXX"; then
10702 postdeps_CXX="${prev}${p}"
10703 else
10704 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10709 *.$objext)
10710 # This assumes that the test object file only shows up
10711 # once in the compiler output.
10712 if test "$p" = "conftest.$objext"; then
10713 pre_test_object_deps_done=yes
10714 continue
10717 if test "$pre_test_object_deps_done" = no; then
10718 if test -z "$predep_objects_CXX"; then
10719 predep_objects_CXX="$p"
10720 else
10721 predep_objects_CXX="$predep_objects_CXX $p"
10723 else
10724 if test -z "$postdep_objects_CXX"; then
10725 postdep_objects_CXX="$p"
10726 else
10727 postdep_objects_CXX="$postdep_objects_CXX $p"
10732 *) ;; # Ignore the rest.
10734 esac
10735 done
10737 # Clean up.
10738 rm -f a.out a.exe
10739 else
10740 echo "libtool.m4: error: problem compiling CXX test program"
10743 $rm -f confest.$objext
10745 case " $postdeps_CXX " in
10746 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10747 esac
10749 lt_prog_compiler_wl_CXX=
10750 lt_prog_compiler_pic_CXX=
10751 lt_prog_compiler_static_CXX=
10753 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10754 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10756 # C++ specific cases for pic, static, wl, etc.
10757 if test "$GXX" = yes; then
10758 lt_prog_compiler_wl_CXX='-Wl,'
10759 lt_prog_compiler_static_CXX='-static'
10761 case $host_os in
10762 aix*)
10763 # All AIX code is PIC.
10764 if test "$host_cpu" = ia64; then
10765 # AIX 5 now supports IA64 processor
10766 lt_prog_compiler_static_CXX='-Bstatic'
10769 amigaos*)
10770 # FIXME: we need at least 68020 code to build shared libraries, but
10771 # adding the `-m68020' flag to GCC prevents building anything better,
10772 # like `-m68040'.
10773 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10776 # PIC is the default for these OSes.
10778 mingw* | os2* | pw32*)
10779 # This hack is so that the source file can tell whether it is being
10780 # built for inclusion in a dll (and should export symbols for example).
10781 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10783 darwin* | rhapsody*)
10784 # PIC is the default on this platform
10785 # Common symbols not allowed in MH_DYLIB files
10786 lt_prog_compiler_pic_CXX='-fno-common'
10788 *djgpp*)
10789 # DJGPP does not support shared libraries at all
10790 lt_prog_compiler_pic_CXX=
10792 sysv4*MP*)
10793 if test -d /usr/nec; then
10794 lt_prog_compiler_pic_CXX=-Kconform_pic
10797 hpux*)
10798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10799 # not for PA HP-UX.
10800 case "$host_cpu" in
10801 hppa*64*|ia64*)
10804 lt_prog_compiler_pic_CXX='-fPIC'
10806 esac
10809 lt_prog_compiler_pic_CXX='-fPIC'
10811 esac
10812 else
10813 case $host_os in
10814 aix4* | aix5*)
10815 # All AIX code is PIC.
10816 if test "$host_cpu" = ia64; then
10817 # AIX 5 now supports IA64 processor
10818 lt_prog_compiler_static_CXX='-Bstatic'
10819 else
10820 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10823 chorus*)
10824 case $cc_basename in
10825 cxch68)
10826 # Green Hills C++ Compiler
10827 # _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"
10829 esac
10831 dgux*)
10832 case $cc_basename in
10833 ec++)
10834 lt_prog_compiler_pic_CXX='-KPIC'
10836 ghcx)
10837 # Green Hills C++ Compiler
10838 lt_prog_compiler_pic_CXX='-pic'
10842 esac
10844 freebsd*)
10845 # FreeBSD uses GNU C++
10847 hpux9* | hpux10* | hpux11*)
10848 case $cc_basename in
10850 lt_prog_compiler_wl_CXX='-Wl,'
10851 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10852 if test "$host_cpu" != ia64; then
10853 lt_prog_compiler_pic_CXX='+Z'
10856 aCC)
10857 lt_prog_compiler_wl_CXX='-Wl,'
10858 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10859 case "$host_cpu" in
10860 hppa*64*|ia64*)
10861 # +Z the default
10864 lt_prog_compiler_pic_CXX='+Z'
10866 esac
10870 esac
10872 irix5* | irix6* | nonstopux*)
10873 case $cc_basename in
10875 lt_prog_compiler_wl_CXX='-Wl,'
10876 lt_prog_compiler_static_CXX='-non_shared'
10877 # CC pic flag -KPIC is the default.
10881 esac
10883 linux*)
10884 case $cc_basename in
10885 KCC)
10886 # KAI C++ Compiler
10887 lt_prog_compiler_wl_CXX='--backend -Wl,'
10888 lt_prog_compiler_pic_CXX='-fPIC'
10890 icpc)
10891 # Intel C++
10892 lt_prog_compiler_wl_CXX='-Wl,'
10893 lt_prog_compiler_pic_CXX='-KPIC'
10894 lt_prog_compiler_static_CXX='-static'
10896 cxx)
10897 # Compaq C++
10898 # Make sure the PIC flag is empty. It appears that all Alpha
10899 # Linux and Compaq Tru64 Unix objects are PIC.
10900 lt_prog_compiler_pic_CXX=
10901 lt_prog_compiler_static_CXX='-non_shared'
10905 esac
10907 lynxos*)
10909 m88k*)
10911 mvs*)
10912 case $cc_basename in
10913 cxx)
10914 lt_prog_compiler_pic_CXX='-W c,exportall'
10918 esac
10920 netbsd*)
10922 osf3* | osf4* | osf5*)
10923 case $cc_basename in
10924 KCC)
10925 lt_prog_compiler_wl_CXX='--backend -Wl,'
10927 RCC)
10928 # Rational C++ 2.4.1
10929 lt_prog_compiler_pic_CXX='-pic'
10931 cxx)
10932 # Digital/Compaq C++
10933 lt_prog_compiler_wl_CXX='-Wl,'
10934 # Make sure the PIC flag is empty. It appears that all Alpha
10935 # Linux and Compaq Tru64 Unix objects are PIC.
10936 lt_prog_compiler_pic_CXX=
10937 lt_prog_compiler_static_CXX='-non_shared'
10941 esac
10943 psos*)
10945 sco*)
10946 case $cc_basename in
10948 lt_prog_compiler_pic_CXX='-fPIC'
10952 esac
10954 solaris*)
10955 case $cc_basename in
10957 # Sun C++ 4.2, 5.x and Centerline C++
10958 lt_prog_compiler_pic_CXX='-KPIC'
10959 lt_prog_compiler_static_CXX='-Bstatic'
10960 lt_prog_compiler_wl_CXX='-Qoption ld '
10962 gcx)
10963 # Green Hills C++ Compiler
10964 lt_prog_compiler_pic_CXX='-PIC'
10968 esac
10970 sunos4*)
10971 case $cc_basename in
10973 # Sun C++ 4.x
10974 lt_prog_compiler_pic_CXX='-pic'
10975 lt_prog_compiler_static_CXX='-Bstatic'
10977 lcc)
10978 # Lucid
10979 lt_prog_compiler_pic_CXX='-pic'
10983 esac
10985 tandem*)
10986 case $cc_basename in
10987 NCC)
10988 # NonStop-UX NCC 3.20
10989 lt_prog_compiler_pic_CXX='-KPIC'
10993 esac
10995 unixware*)
10997 vxworks*)
11000 lt_prog_compiler_can_build_shared_CXX=no
11002 esac
11005 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11006 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11009 # Check to make sure the PIC flag actually works.
11011 if test -n "$lt_prog_compiler_pic_CXX"; then
11012 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11013 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11014 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017 lt_prog_compiler_pic_works_CXX=no
11018 ac_outfile=conftest.$ac_objext
11019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11020 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11021 # Insert the option either (1) after the last *FLAGS variable, or
11022 # (2) before a word containing "conftest.", or (3) at the end.
11023 # Note that $ac_compile itself does not contain backslashes and begins
11024 # with a dollar sign (not a hyphen), so the echo should work correctly.
11025 # The option is referenced via a variable to avoid confusing sed.
11026 lt_compile=`echo "$ac_compile" | $SED \
11027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11029 -e 's:$: $lt_compiler_flag:'`
11030 (eval echo "\"\$as_me:10982: $lt_compile\"" >&5)
11031 (eval "$lt_compile" 2>conftest.err)
11032 ac_status=$?
11033 cat conftest.err >&5
11034 echo "$as_me:10986: \$? = $ac_status" >&5
11035 if (exit $ac_status) && test -s "$ac_outfile"; then
11036 # The compiler can only warn and ignore the option if not recognized
11037 # So say no if there are warnings
11038 if test ! -s conftest.err; then
11039 lt_prog_compiler_pic_works_CXX=yes
11042 $rm conftest*
11045 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11046 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11048 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11049 case $lt_prog_compiler_pic_CXX in
11050 "" | " "*) ;;
11051 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11052 esac
11053 else
11054 lt_prog_compiler_pic_CXX=
11055 lt_prog_compiler_can_build_shared_CXX=no
11059 case "$host_os" in
11060 # For platforms which do not support PIC, -DPIC is meaningless:
11061 *djgpp*)
11062 lt_prog_compiler_pic_CXX=
11065 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11067 esac
11069 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11070 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11071 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 lt_cv_prog_compiler_c_o_CXX=no
11075 $rm -r conftest 2>/dev/null
11076 mkdir conftest
11077 cd conftest
11078 mkdir out
11079 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11081 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11082 # that will create temporary files in the current directory regardless of
11083 # the output directory. Thus, making CWD read-only will cause this test
11084 # to fail, enabling locking or at least warning the user not to do parallel
11085 # builds.
11086 chmod -w .
11088 lt_compiler_flag="-o out/conftest2.$ac_objext"
11089 # Insert the option either (1) after the last *FLAGS variable, or
11090 # (2) before a word containing "conftest.", or (3) at the end.
11091 # Note that $ac_compile itself does not contain backslashes and begins
11092 # with a dollar sign (not a hyphen), so the echo should work correctly.
11093 lt_compile=`echo "$ac_compile" | $SED \
11094 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11096 -e 's:$: $lt_compiler_flag:'`
11097 (eval echo "\"\$as_me:11049: $lt_compile\"" >&5)
11098 (eval "$lt_compile" 2>out/conftest.err)
11099 ac_status=$?
11100 cat out/conftest.err >&5
11101 echo "$as_me:11053: \$? = $ac_status" >&5
11102 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11103 then
11104 # The compiler can only warn and ignore the option if not recognized
11105 # So say no if there are warnings
11106 if test ! -s out/conftest.err; then
11107 lt_cv_prog_compiler_c_o_CXX=yes
11110 chmod u+w .
11111 $rm conftest* out/*
11112 rmdir out
11113 cd ..
11114 rmdir conftest
11115 $rm conftest*
11118 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11119 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11122 hard_links="nottested"
11123 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11124 # do not overwrite the value of need_locks provided by the user
11125 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11126 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11127 hard_links=yes
11128 $rm conftest*
11129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11130 touch conftest.a
11131 ln conftest.a conftest.b 2>&5 || hard_links=no
11132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11133 echo "$as_me:$LINENO: result: $hard_links" >&5
11134 echo "${ECHO_T}$hard_links" >&6
11135 if test "$hard_links" = no; then
11136 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11137 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11138 need_locks=warn
11140 else
11141 need_locks=no
11144 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11145 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11147 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11148 case $host_os in
11149 aix4* | aix5*)
11150 # If we're using GNU nm, then we don't want the "-C" option.
11151 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11152 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11153 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'
11154 else
11155 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'
11158 pw32*)
11159 export_symbols_cmds_CXX="$ltdll_cmds"
11161 cygwin* | mingw*)
11162 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11167 esac
11169 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11170 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11171 test "$ld_shlibs_CXX" = no && can_build_shared=no
11173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11174 if test "$GCC" = yes; then
11175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11179 # Do we need to explicitly link libc?
11181 case "x$archive_cmds_need_lc_CXX" in
11182 x|xyes)
11183 # Assume -lc should be added
11184 archive_cmds_need_lc_CXX=yes
11186 if test "$enable_shared" = yes && test "$GCC" = yes; then
11187 case $archive_cmds_CXX in
11188 *"$_S_"*)
11189 # FIXME: we may have to deal with multi-command sequences.
11191 '$CC '*)
11192 # Test whether the compiler implicitly links with -lc since on some
11193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11194 # to ld, don't add -lc before -lgcc.
11195 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11196 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11197 $rm conftest*
11198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201 (eval $ac_compile) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } 2>conftest.err; then
11205 soname=conftest
11206 lib=conftest
11207 libobjs=conftest.$ac_objext
11208 deplibs=
11209 wl=$lt_prog_compiler_wl_CXX
11210 compiler_flags=-v
11211 linker_flags=-v
11212 verstring=
11213 output_objdir=.
11214 libname=conftest
11215 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11216 allow_undefined_flag_CXX=
11217 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11218 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }
11222 then
11223 archive_cmds_need_lc_CXX=no
11224 else
11225 archive_cmds_need_lc_CXX=yes
11227 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11228 else
11229 cat conftest.err 1>&5
11231 $rm conftest*
11232 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11233 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11235 esac
11238 esac
11240 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11241 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11242 hardcode_action_CXX=
11243 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11244 test -n "$runpath_var CXX" || \
11245 test "X$hardcode_automatic_CXX"="Xyes" ; then
11247 # We can hardcode non-existant directories.
11248 if test "$hardcode_direct_CXX" != no &&
11249 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11250 # have to relink, otherwise we might link with an installed library
11251 # when we should be linking with a yet-to-be-installed one
11252 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11253 test "$hardcode_minus_L_CXX" != no; then
11254 # Linking always hardcodes the temporary library directory.
11255 hardcode_action_CXX=relink
11256 else
11257 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11258 hardcode_action_CXX=immediate
11260 else
11261 # We cannot hardcode anything, or else we can only hardcode existing
11262 # directories.
11263 hardcode_action_CXX=unsupported
11265 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11266 echo "${ECHO_T}$hardcode_action_CXX" >&6
11268 if test "$hardcode_action_CXX" = relink; then
11269 # Fast installation is not supported
11270 enable_fast_install=no
11271 elif test "$shlibpath_overrides_runpath" = yes ||
11272 test "$enable_shared" = no; then
11273 # Fast installation is not necessary
11274 enable_fast_install=needless
11277 striplib=
11278 old_striplib=
11279 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11280 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11281 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11282 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11283 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11284 echo "$as_me:$LINENO: result: yes" >&5
11285 echo "${ECHO_T}yes" >&6
11286 else
11287 # FIXME - insert some real tests, host_os isn't really good enough
11288 case $host_os in
11289 NOT-darwin*)
11290 if test -n "$STRIP" ; then
11291 striplib="$STRIP -x"
11292 echo "$as_me:$LINENO: result: yes" >&5
11293 echo "${ECHO_T}yes" >&6
11294 else
11295 echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6
11300 echo "$as_me:$LINENO: result: no" >&5
11301 echo "${ECHO_T}no" >&6
11303 esac
11306 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11307 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11308 library_names_spec=
11309 libname_spec='lib$name'
11310 soname_spec=
11311 shrext=".so"
11312 postinstall_cmds=
11313 postuninstall_cmds=
11314 finish_cmds=
11315 finish_eval=
11316 shlibpath_var=
11317 shlibpath_overrides_runpath=unknown
11318 version_type=none
11319 dynamic_linker="$host_os ld.so"
11320 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11321 if test "$GCC" = yes; then
11322 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11323 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11324 # if the path contains ";" then we assume it to be the separator
11325 # otherwise default to the standard path separator (i.e. ":") - it is
11326 # assumed that no part of a normal pathname contains ";" but that should
11327 # okay in the real world where ";" in dirpaths is itself problematic.
11328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11329 else
11330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11332 else
11333 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11335 need_lib_prefix=unknown
11336 hardcode_into_libs=no
11338 # when you set need_version to no, make sure it does not cause -set_version
11339 # flags to be left without arguments
11340 need_version=unknown
11342 case $host_os in
11343 aix3*)
11344 version_type=linux
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11346 shlibpath_var=LIBPATH
11348 # AIX 3 has no versioning support, so we append a major version to the name.
11349 soname_spec='${libname}${release}${shared_ext}$major'
11352 aix4* | aix5*)
11353 version_type=linux
11354 need_lib_prefix=no
11355 need_version=no
11356 hardcode_into_libs=yes
11357 if test "$host_cpu" = ia64; then
11358 # AIX 5 supports IA64
11359 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 else
11362 # With GCC up to 2.95.x, collect2 would create an import file
11363 # for dependence libraries. The import file would start with
11364 # the line `#! .'. This would cause the generated library to
11365 # depend on `.', always an invalid library. This was fixed in
11366 # development snapshots of GCC prior to 3.0.
11367 case $host_os in
11368 aix4 | aix4.[01] | aix4.[01].*)
11369 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11370 echo ' yes '
11371 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11373 else
11374 can_build_shared=no
11377 esac
11378 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11379 # soname into executable. Probably we can add versioning support to
11380 # collect2, so additional links can be useful in future.
11381 if test "$aix_use_runtimelinking" = yes; then
11382 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11383 # instead of lib<name>.a to let people know that these are not
11384 # typical AIX shared libraries.
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 else
11387 # We preserve .a as extension for shared libraries through AIX4.2
11388 # and later when we are not doing run time linking.
11389 library_names_spec='${libname}${release}.a $libname.a'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11392 shlibpath_var=LIBPATH
11396 amigaos*)
11397 library_names_spec='$libname.ixlibrary $libname.a'
11398 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11399 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'
11402 beos*)
11403 library_names_spec='${libname}${shared_ext}'
11404 dynamic_linker="$host_os ld.so"
11405 shlibpath_var=LIBRARY_PATH
11408 bsdi4*)
11409 version_type=linux
11410 need_version=no
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11413 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11414 shlibpath_var=LD_LIBRARY_PATH
11415 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11416 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11417 # the default ld.so.conf also contains /usr/contrib/lib and
11418 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11419 # libtool to hard-code these into programs
11422 cygwin* | mingw* | pw32*)
11423 version_type=windows
11424 shrext=".dll"
11425 need_version=no
11426 need_lib_prefix=no
11428 case $GCC,$host_os in
11429 yes,cygwin* | yes,mingw* | yes,pw32*)
11430 library_names_spec='$libname.dll.a'
11431 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11432 postinstall_cmds='base_file=`basename \${file}`${_S_}
11433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
11434 dldir=$destdir/`dirname \$dlpath`${_S_}
11435 test -d \$dldir || mkdir -p \$dldir${_S_}
11436 $install_prog $dir/$dlname \$dldir/$dlname'
11437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
11438 dlpath=$dir/\$dldll${_S_}
11439 $rm \$dlpath'
11440 shlibpath_overrides_runpath=yes
11442 case $host_os in
11443 cygwin*)
11444 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11446 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11448 mingw*)
11449 # MinGW DLLs use traditional 'lib' prefix
11450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11451 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11452 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11453 # It is most probably a Windows format PATH printed by
11454 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11455 # path with ; separators, and with drive letters. We can handle the
11456 # drive letters (cygwin fileutils understands them), so leave them,
11457 # especially as we might pass files found there to a mingw objdump,
11458 # which wouldn't understand a cygwinified path. Ahh.
11459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11460 else
11461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11464 pw32*)
11465 # pw32 DLLs use 'pw' prefix rather than 'lib'
11466 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11468 esac
11472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11474 esac
11475 dynamic_linker='Win32 ld.exe'
11476 # FIXME: first we should search . and the directory the executable is in
11477 shlibpath_var=PATH
11480 darwin* | rhapsody*)
11481 dynamic_linker="$host_os dyld"
11482 version_type=darwin
11483 need_lib_prefix=no
11484 need_version=no
11485 # FIXME: Relying on posixy $() will cause problems for
11486 # cross-compilation, but unfortunately the echo tests do not
11487 # yet detect zsh echo's removal of \ escapes.
11488 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
11489 soname_spec='${libname}${release}${major}$shared_ext'
11490 shlibpath_overrides_runpath=yes
11491 shlibpath_var=DYLD_LIBRARY_PATH
11492 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11493 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11494 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11495 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"`
11497 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11500 dgux*)
11501 version_type=linux
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11509 freebsd1*)
11510 dynamic_linker=no
11513 freebsd*)
11514 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11515 version_type=freebsd-$objformat
11516 case $version_type in
11517 freebsd-elf*)
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11519 need_version=no
11520 need_lib_prefix=no
11522 freebsd-*)
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11524 need_version=yes
11526 esac
11527 shlibpath_var=LD_LIBRARY_PATH
11528 case $host_os in
11529 freebsd2*)
11530 shlibpath_overrides_runpath=yes
11532 freebsd3.01* | freebsdelf3.01*)
11533 shlibpath_overrides_runpath=yes
11534 hardcode_into_libs=yes
11536 *) # from 3.2 on
11537 shlibpath_overrides_runpath=no
11538 hardcode_into_libs=yes
11540 esac
11543 gnu*)
11544 version_type=linux
11545 need_lib_prefix=no
11546 need_version=no
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 hardcode_into_libs=yes
11553 hpux9* | hpux10* | hpux11*)
11554 # Give a soname corresponding to the major version so that dld.sl refuses to
11555 # link against other versions.
11556 version_type=sunos
11557 need_lib_prefix=no
11558 need_version=no
11559 case "$host_cpu" in
11560 ia64*)
11561 shrext='.so'
11562 hardcode_into_libs=yes
11563 dynamic_linker="$host_os dld.so"
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 if test "X$HPUX_IA64_MODE" = X32; then
11569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11570 else
11571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11575 hppa*64*)
11576 shrext='.sl'
11577 hardcode_into_libs=yes
11578 dynamic_linker="$host_os dld.sl"
11579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11587 shrext='.sl'
11588 dynamic_linker="$host_os dld.sl"
11589 shlibpath_var=SHLIB_PATH
11590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11594 esac
11595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11596 postinstall_cmds='chmod 555 $lib'
11599 irix5* | irix6* | nonstopux*)
11600 case $host_os in
11601 nonstopux*) version_type=nonstopux ;;
11603 if test "$lt_cv_prog_gnu_ld" = yes; then
11604 version_type=linux
11605 else
11606 version_type=irix
11607 fi ;;
11608 esac
11609 need_lib_prefix=no
11610 need_version=no
11611 soname_spec='${libname}${release}${shared_ext}$major'
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11613 case $host_os in
11614 irix5* | nonstopux*)
11615 libsuff= shlibsuff=
11618 case $LD in # libtool.m4 will add one of these switches to LD
11619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11620 libsuff= shlibsuff= libmagic=32-bit;;
11621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11622 libsuff=32 shlibsuff=N32 libmagic=N32;;
11623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11625 *) libsuff= shlibsuff= libmagic=never-match;;
11626 esac
11628 esac
11629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11630 shlibpath_overrides_runpath=no
11631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11633 hardcode_into_libs=yes
11636 # No shared lib support for Linux oldld, aout, or coff.
11637 linux*oldld* | linux*aout* | linux*coff*)
11638 dynamic_linker=no
11641 # This must be Linux ELF.
11642 linux*)
11643 version_type=linux
11644 need_lib_prefix=no
11645 need_version=no
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647 soname_spec='${libname}${release}${shared_ext}$major'
11648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=no
11651 # This implies no fast_install, which is unacceptable.
11652 # Some rework will be needed to allow for fast_install
11653 # before this can be enabled.
11654 hardcode_into_libs=yes
11656 # We used to test for /lib/ld.so.1 and disable shared libraries on
11657 # powerpc, because MkLinux only supported shared libraries with the
11658 # GNU dynamic linker. Since this was broken with cross compilers,
11659 # most powerpc-linux boxes support dynamic linking these days and
11660 # people can always --disable-shared, the test was removed, and we
11661 # assume the GNU/Linux dynamic linker is in use.
11662 dynamic_linker='GNU/Linux ld.so'
11665 netbsd*)
11666 version_type=sunos
11667 need_lib_prefix=no
11668 need_version=no
11669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672 dynamic_linker='NetBSD (a.out) ld.so'
11673 else
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 dynamic_linker='NetBSD ld.elf_so'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 shlibpath_overrides_runpath=yes
11680 hardcode_into_libs=yes
11683 newsos6)
11684 version_type=linux
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=yes
11690 nto-qnx)
11691 version_type=linux
11692 need_lib_prefix=no
11693 need_version=no
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695 soname_spec='${libname}${release}${shared_ext}$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=yes
11700 openbsd*)
11701 version_type=sunos
11702 need_lib_prefix=no
11703 need_version=no
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11708 case $host_os in
11709 openbsd2.[89] | openbsd2.[89].*)
11710 shlibpath_overrides_runpath=no
11713 shlibpath_overrides_runpath=yes
11715 esac
11716 else
11717 shlibpath_overrides_runpath=yes
11721 os2*)
11722 libname_spec='$name'
11723 shrext=".dll"
11724 need_lib_prefix=no
11725 library_names_spec='$libname${shared_ext} $libname.a'
11726 dynamic_linker='OS/2 ld.exe'
11727 shlibpath_var=LIBPATH
11730 osf3* | osf4* | osf5*)
11731 version_type=osf
11732 need_lib_prefix=no
11733 need_version=no
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11741 sco3.2v5*)
11742 version_type=osf
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 shlibpath_var=LD_LIBRARY_PATH
11748 solaris*)
11749 version_type=linux
11750 need_lib_prefix=no
11751 need_version=no
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753 soname_spec='${libname}${release}${shared_ext}$major'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 shlibpath_overrides_runpath=yes
11756 hardcode_into_libs=yes
11757 # ldd complains unless libraries are executable
11758 postinstall_cmds='chmod +x $lib'
11761 sunos4*)
11762 version_type=sunos
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=yes
11767 if test "$with_gnu_ld" = yes; then
11768 need_lib_prefix=no
11770 need_version=yes
11773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11774 version_type=linux
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 case $host_vendor in
11779 sni)
11780 shlibpath_overrides_runpath=no
11781 need_lib_prefix=no
11782 export_dynamic_flag_spec='${wl}-Blargedynsym'
11783 runpath_var=LD_RUN_PATH
11785 siemens)
11786 need_lib_prefix=no
11788 motorola)
11789 need_lib_prefix=no
11790 need_version=no
11791 shlibpath_overrides_runpath=no
11792 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11794 esac
11797 sysv4*MP*)
11798 if test -d /usr/nec ;then
11799 version_type=linux
11800 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11801 soname_spec='$libname${shared_ext}.$major'
11802 shlibpath_var=LD_LIBRARY_PATH
11806 uts4*)
11807 version_type=linux
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 shlibpath_var=LD_LIBRARY_PATH
11814 dynamic_linker=no
11816 esac
11817 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11818 echo "${ECHO_T}$dynamic_linker" >&6
11819 test "$dynamic_linker" = no && can_build_shared=no
11821 if test "x$enable_dlopen" != xyes; then
11822 enable_dlopen=unknown
11823 enable_dlopen_self=unknown
11824 enable_dlopen_self_static=unknown
11825 else
11826 lt_cv_dlopen=no
11827 lt_cv_dlopen_libs=
11829 case $host_os in
11830 beos*)
11831 lt_cv_dlopen="load_add_on"
11832 lt_cv_dlopen_libs=
11833 lt_cv_dlopen_self=yes
11836 mingw* | pw32*)
11837 lt_cv_dlopen="LoadLibrary"
11838 lt_cv_dlopen_libs=
11841 cygwin*)
11842 lt_cv_dlopen="dlopen"
11843 lt_cv_dlopen_libs=
11846 darwin*)
11847 # if libdl is installed we need to link against it
11848 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11849 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11850 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853 ac_check_lib_save_LIBS=$LIBS
11854 LIBS="-ldl $LIBS"
11855 cat >conftest.$ac_ext <<_ACEOF
11856 #line $LINENO "configure"
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11863 /* Override any gcc2 internal prototype to avoid an error. */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11869 char dlopen ();
11871 main ()
11873 dlopen ();
11875 return 0;
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_cv_lib_dl_dlopen=yes
11891 else
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11895 ac_cv_lib_dl_dlopen=no
11897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11898 LIBS=$ac_check_lib_save_LIBS
11900 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11901 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11902 if test $ac_cv_lib_dl_dlopen = yes; then
11903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11904 else
11906 lt_cv_dlopen="dyld"
11907 lt_cv_dlopen_libs=
11908 lt_cv_dlopen_self=yes
11915 echo "$as_me:$LINENO: checking for shl_load" >&5
11916 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11917 if test "${ac_cv_func_shl_load+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 cat >conftest.$ac_ext <<_ACEOF
11921 #line $LINENO "configure"
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char shl_load (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11931 #ifdef __STDC__
11932 # include <limits.h>
11933 #else
11934 # include <assert.h>
11935 #endif
11936 /* Override any gcc2 internal prototype to avoid an error. */
11937 #ifdef __cplusplus
11938 extern "C"
11940 #endif
11941 /* We use char because int might match the return type of a gcc2
11942 builtin and then its argument prototype would still apply. */
11943 char shl_load ();
11944 /* The GNU C library defines this for functions which it implements
11945 to always fail with ENOSYS. Some functions are actually named
11946 something starting with __ and the normal name is an alias. */
11947 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11948 choke me
11949 #else
11950 char (*f) () = shl_load;
11951 #endif
11952 #ifdef __cplusplus
11954 #endif
11957 main ()
11959 return f != shl_load;
11961 return 0;
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966 (eval $ac_link) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -s conftest$ac_exeext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_func_shl_load=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 ac_cv_func_shl_load=no
11983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11985 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11986 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11987 if test $ac_cv_func_shl_load = yes; then
11988 lt_cv_dlopen="shl_load"
11989 else
11990 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11991 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11992 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995 ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-ldld $LIBS"
11997 cat >conftest.$ac_ext <<_ACEOF
11998 #line $LINENO "configure"
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12005 /* Override any gcc2 internal prototype to avoid an error. */
12006 #ifdef __cplusplus
12007 extern "C"
12008 #endif
12009 /* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12011 char shl_load ();
12013 main ()
12015 shl_load ();
12017 return 0;
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022 (eval $ac_link) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -s conftest$ac_exeext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_cv_lib_dld_shl_load=yes
12033 else
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12037 ac_cv_lib_dld_shl_load=no
12039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12040 LIBS=$ac_check_lib_save_LIBS
12042 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12043 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12044 if test $ac_cv_lib_dld_shl_load = yes; then
12045 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12046 else
12047 echo "$as_me:$LINENO: checking for dlopen" >&5
12048 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12049 if test "${ac_cv_func_dlopen+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 /* System header to define __stub macros and hopefully few prototypes,
12060 which can conflict with char dlopen (); below.
12061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12062 <limits.h> exists even on freestanding compilers. */
12063 #ifdef __STDC__
12064 # include <limits.h>
12065 #else
12066 # include <assert.h>
12067 #endif
12068 /* Override any gcc2 internal prototype to avoid an error. */
12069 #ifdef __cplusplus
12070 extern "C"
12072 #endif
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char dlopen ();
12076 /* The GNU C library defines this for functions which it implements
12077 to always fail with ENOSYS. Some functions are actually named
12078 something starting with __ and the normal name is an alias. */
12079 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12080 choke me
12081 #else
12082 char (*f) () = dlopen;
12083 #endif
12084 #ifdef __cplusplus
12086 #endif
12089 main ()
12091 return f != dlopen;
12093 return 0;
12095 _ACEOF
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -s conftest$ac_exeext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_func_dlopen=yes
12109 else
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_cv_func_dlopen=no
12115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12117 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12118 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12119 if test $ac_cv_func_dlopen = yes; then
12120 lt_cv_dlopen="dlopen"
12121 else
12122 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12123 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12124 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-ldl $LIBS"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12137 /* Override any gcc2 internal prototype to avoid an error. */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 /* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12143 char dlopen ();
12145 main ()
12147 dlopen ();
12149 return 0;
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -s conftest$ac_exeext'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 ac_cv_lib_dl_dlopen=yes
12165 else
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12169 ac_cv_lib_dl_dlopen=no
12171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12172 LIBS=$ac_check_lib_save_LIBS
12174 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12175 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12176 if test $ac_cv_lib_dl_dlopen = yes; then
12177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12178 else
12179 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12180 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12181 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-lsvld $LIBS"
12186 cat >conftest.$ac_ext <<_ACEOF
12187 #line $LINENO "configure"
12188 /* confdefs.h. */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12194 /* Override any gcc2 internal prototype to avoid an error. */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 /* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12200 char dlopen ();
12202 main ()
12204 dlopen ();
12206 return 0;
12208 _ACEOF
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12211 (eval $ac_link) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -s conftest$ac_exeext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_lib_svld_dlopen=yes
12222 else
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_cv_lib_svld_dlopen=no
12228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12231 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12232 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12233 if test $ac_cv_lib_svld_dlopen = yes; then
12234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12235 else
12236 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12237 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12238 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 ac_check_lib_save_LIBS=$LIBS
12242 LIBS="-ldld $LIBS"
12243 cat >conftest.$ac_ext <<_ACEOF
12244 #line $LINENO "configure"
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 /* Override any gcc2 internal prototype to avoid an error. */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */
12257 char dld_link ();
12259 main ()
12261 dld_link ();
12263 return 0;
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_lib_dld_dld_link=yes
12279 else
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 ac_cv_lib_dld_dld_link=no
12285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12288 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12289 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12290 if test $ac_cv_lib_dld_dld_link = yes; then
12291 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12310 esac
12312 if test "x$lt_cv_dlopen" != xno; then
12313 enable_dlopen=yes
12314 else
12315 enable_dlopen=no
12318 case $lt_cv_dlopen in
12319 dlopen)
12320 save_CPPFLAGS="$CPPFLAGS"
12321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12323 save_LDFLAGS="$LDFLAGS"
12324 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12326 save_LIBS="$LIBS"
12327 LIBS="$lt_cv_dlopen_libs $LIBS"
12329 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12330 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12331 if test "${lt_cv_dlopen_self+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334 if test "$cross_compiling" = yes; then :
12335 lt_cv_dlopen_self=cross
12336 else
12337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12338 lt_status=$lt_dlunknown
12339 cat > conftest.$ac_ext <<EOF
12340 #line 12292 "configure"
12341 #include "confdefs.h"
12343 #if HAVE_DLFCN_H
12344 #include <dlfcn.h>
12345 #endif
12347 #include <stdio.h>
12349 #ifdef RTLD_GLOBAL
12350 # define LT_DLGLOBAL RTLD_GLOBAL
12351 #else
12352 # ifdef DL_GLOBAL
12353 # define LT_DLGLOBAL DL_GLOBAL
12354 # else
12355 # define LT_DLGLOBAL 0
12356 # endif
12357 #endif
12359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12360 find out it does not work in some platform. */
12361 #ifndef LT_DLLAZY_OR_NOW
12362 # ifdef RTLD_LAZY
12363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12364 # else
12365 # ifdef DL_LAZY
12366 # define LT_DLLAZY_OR_NOW DL_LAZY
12367 # else
12368 # ifdef RTLD_NOW
12369 # define LT_DLLAZY_OR_NOW RTLD_NOW
12370 # else
12371 # ifdef DL_NOW
12372 # define LT_DLLAZY_OR_NOW DL_NOW
12373 # else
12374 # define LT_DLLAZY_OR_NOW 0
12375 # endif
12376 # endif
12377 # endif
12378 # endif
12379 #endif
12381 #ifdef __cplusplus
12382 extern "C" void exit (int);
12383 #endif
12385 void fnord() { int i=42;}
12386 int main ()
12388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12389 int status = $lt_dlunknown;
12391 if (self)
12393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12395 /* dlclose (self); */
12398 exit (status);
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12406 (./conftest; exit; ) 2>/dev/null
12407 lt_status=$?
12408 case x$lt_status in
12409 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12410 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12411 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12412 esac
12413 else :
12414 # compilation failed
12415 lt_cv_dlopen_self=no
12418 rm -fr conftest*
12422 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12423 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12425 if test "x$lt_cv_dlopen_self" = xyes; then
12426 LDFLAGS="$LDFLAGS $link_static_flag"
12427 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12428 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12429 if test "${lt_cv_dlopen_self_static+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432 if test "$cross_compiling" = yes; then :
12433 lt_cv_dlopen_self_static=cross
12434 else
12435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12436 lt_status=$lt_dlunknown
12437 cat > conftest.$ac_ext <<EOF
12438 #line 12390 "configure"
12439 #include "confdefs.h"
12441 #if HAVE_DLFCN_H
12442 #include <dlfcn.h>
12443 #endif
12445 #include <stdio.h>
12447 #ifdef RTLD_GLOBAL
12448 # define LT_DLGLOBAL RTLD_GLOBAL
12449 #else
12450 # ifdef DL_GLOBAL
12451 # define LT_DLGLOBAL DL_GLOBAL
12452 # else
12453 # define LT_DLGLOBAL 0
12454 # endif
12455 #endif
12457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12458 find out it does not work in some platform. */
12459 #ifndef LT_DLLAZY_OR_NOW
12460 # ifdef RTLD_LAZY
12461 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12462 # else
12463 # ifdef DL_LAZY
12464 # define LT_DLLAZY_OR_NOW DL_LAZY
12465 # else
12466 # ifdef RTLD_NOW
12467 # define LT_DLLAZY_OR_NOW RTLD_NOW
12468 # else
12469 # ifdef DL_NOW
12470 # define LT_DLLAZY_OR_NOW DL_NOW
12471 # else
12472 # define LT_DLLAZY_OR_NOW 0
12473 # endif
12474 # endif
12475 # endif
12476 # endif
12477 #endif
12479 #ifdef __cplusplus
12480 extern "C" void exit (int);
12481 #endif
12483 void fnord() { int i=42;}
12484 int main ()
12486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12487 int status = $lt_dlunknown;
12489 if (self)
12491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12492 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12493 /* dlclose (self); */
12496 exit (status);
12499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500 (eval $ac_link) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12504 (./conftest; exit; ) 2>/dev/null
12505 lt_status=$?
12506 case x$lt_status in
12507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12509 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12510 esac
12511 else :
12512 # compilation failed
12513 lt_cv_dlopen_self_static=no
12516 rm -fr conftest*
12520 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12521 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12524 CPPFLAGS="$save_CPPFLAGS"
12525 LDFLAGS="$save_LDFLAGS"
12526 LIBS="$save_LIBS"
12528 esac
12530 case $lt_cv_dlopen_self in
12531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12532 *) enable_dlopen_self=unknown ;;
12533 esac
12535 case $lt_cv_dlopen_self_static in
12536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12537 *) enable_dlopen_self_static=unknown ;;
12538 esac
12542 # The else clause should only fire when bootstrapping the
12543 # libtool distribution, otherwise you forgot to ship ltmain.sh
12544 # with your package, and you will get complaints that there are
12545 # no rules to generate ltmain.sh.
12546 if test -f "$ltmain"; then
12547 # See if we are running on zsh, and set the options which allow our commands through
12548 # without removal of \ escapes.
12549 if test -n "${ZSH_VERSION+set}" ; then
12550 setopt NO_GLOB_SUBST
12552 # Now quote all the things that may contain metacharacters while being
12553 # careful not to overquote the AC_SUBSTed values. We take copies of the
12554 # variables and quote the copies for generation of the libtool script.
12555 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12556 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12557 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12558 deplibs_check_method reload_flag reload_cmds need_locks \
12559 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12560 lt_cv_sys_global_symbol_to_c_name_address \
12561 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12562 old_postinstall_cmds old_postuninstall_cmds \
12563 compiler_CXX \
12564 CC_CXX \
12565 LD_CXX \
12566 lt_prog_compiler_wl_CXX \
12567 lt_prog_compiler_pic_CXX \
12568 lt_prog_compiler_static_CXX \
12569 lt_prog_compiler_no_builtin_flag_CXX \
12570 export_dynamic_flag_spec_CXX \
12571 thread_safe_flag_spec_CXX \
12572 whole_archive_flag_spec_CXX \
12573 enable_shared_with_static_runtimes_CXX \
12574 old_archive_cmds_CXX \
12575 old_archive_from_new_cmds_CXX \
12576 predep_objects_CXX \
12577 postdep_objects_CXX \
12578 predeps_CXX \
12579 postdeps_CXX \
12580 compiler_lib_search_path_CXX \
12581 archive_cmds_CXX \
12582 archive_expsym_cmds_CXX \
12583 postinstall_cmds_CXX \
12584 postuninstall_cmds_CXX \
12585 old_archive_from_expsyms_cmds_CXX \
12586 allow_undefined_flag_CXX \
12587 no_undefined_flag_CXX \
12588 export_symbols_cmds_CXX \
12589 hardcode_libdir_flag_spec_CXX \
12590 hardcode_libdir_flag_spec_ld_CXX \
12591 hardcode_libdir_separator_CXX \
12592 hardcode_automatic_CXX \
12593 module_cmds_CXX \
12594 module_expsym_cmds_CXX \
12595 lt_cv_prog_compiler_c_o_CXX \
12596 exclude_expsyms_CXX \
12597 include_expsyms_CXX; do
12599 case $var in
12600 old_archive_cmds_CXX | \
12601 old_archive_from_new_cmds_CXX | \
12602 archive_cmds_CXX | \
12603 archive_expsym_cmds_CXX | \
12604 module_cmds_CXX | \
12605 module_expsym_cmds_CXX | \
12606 old_archive_from_expsyms_cmds_CXX | \
12607 export_symbols_cmds_CXX | \
12608 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12609 postinstall_cmds | postuninstall_cmds | \
12610 old_postinstall_cmds | old_postuninstall_cmds | \
12611 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12612 # Double-quote double-evaled strings.
12613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
12616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12618 esac
12619 done
12621 case $lt_echo in
12622 *'\$0 --fallback-echo"')
12623 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12625 esac
12627 cfgfile="$ofile"
12629 cat <<__EOF__ >> "$cfgfile"
12630 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12634 # Set the command separator (default: ~)
12635 _S_=\${LIBTOOL_CMD_SEP-\~}
12637 # Shell to use when invoking shell scripts.
12638 SHELL=$lt_SHELL
12640 # Whether or not to build shared libraries.
12641 build_libtool_libs=$enable_shared
12643 # Whether or not to build static libraries.
12644 build_old_libs=$enable_static
12646 # Whether or not to add -lc for building shared libraries.
12647 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12649 # Whether or not to disallow shared libs when runtime libs are static
12650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12652 # Whether or not to optimize for fast installation.
12653 fast_install=$enable_fast_install
12655 # The host system.
12656 host_alias=$host_alias
12657 host=$host
12659 # An echo program that does not interpret backslashes.
12660 echo=$lt_echo
12662 # The archiver.
12663 AR=$lt_AR
12664 AR_FLAGS=$lt_AR_FLAGS
12666 # A C compiler.
12667 LTCC=$lt_LTCC
12669 # A language-specific compiler.
12670 CC=$lt_compiler_CXX
12672 # Is the compiler the GNU C compiler?
12673 with_gcc=$GCC_CXX
12675 # An ERE matcher.
12676 EGREP=$lt_EGREP
12678 # The linker used to build libraries.
12679 LD=$lt_LD_CXX
12681 # Whether we need hard or soft links.
12682 LN_S=$lt_LN_S
12684 # A BSD-compatible nm program.
12685 NM=$lt_NM
12687 # A symbol stripping program
12688 STRIP=$STRIP
12690 # Used to examine libraries when file_magic_cmd begins "file"
12691 MAGIC_CMD=$MAGIC_CMD
12693 # Used on cygwin: DLL creation program.
12694 DLLTOOL="$DLLTOOL"
12696 # Used on cygwin: object dumper.
12697 OBJDUMP="$OBJDUMP"
12699 # Used on cygwin: assembler.
12700 AS="$AS"
12702 # The name of the directory that contains temporary libtool files.
12703 objdir=$objdir
12705 # How to create reloadable object files.
12706 reload_flag=$lt_reload_flag
12707 reload_cmds=$lt_reload_cmds
12709 # How to pass a linker flag through the compiler.
12710 wl=$lt_lt_prog_compiler_wl_CXX
12712 # Object file suffix (normally "o").
12713 objext="$ac_objext"
12715 # Old archive suffix (normally "a").
12716 libext="$libext"
12718 # Shared library suffix (normally ".so").
12719 shrext='$shrext'
12721 # Executable file suffix (normally "").
12722 exeext="$exeext"
12724 # Additional compiler flags for building library objects.
12725 pic_flag=$lt_lt_prog_compiler_pic_CXX
12726 pic_mode=$pic_mode
12728 # What is the maximum length of a command?
12729 max_cmd_len=$lt_cv_sys_max_cmd_len
12731 # Does compiler simultaneously support -c and -o options?
12732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12734 # Must we lock files when doing compilation ?
12735 need_locks=$lt_need_locks
12737 # Do we need the lib prefix for modules?
12738 need_lib_prefix=$need_lib_prefix
12740 # Do we need a version for libraries?
12741 need_version=$need_version
12743 # Whether dlopen is supported.
12744 dlopen_support=$enable_dlopen
12746 # Whether dlopen of programs is supported.
12747 dlopen_self=$enable_dlopen_self
12749 # Whether dlopen of statically linked programs is supported.
12750 dlopen_self_static=$enable_dlopen_self_static
12752 # Compiler flag to prevent dynamic linking.
12753 link_static_flag=$lt_lt_prog_compiler_static_CXX
12755 # Compiler flag to turn off builtin functions.
12756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12758 # Compiler flag to allow reflexive dlopens.
12759 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12761 # Compiler flag to generate shared objects directly from archives.
12762 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12764 # Compiler flag to generate thread-safe objects.
12765 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12767 # Library versioning type.
12768 version_type=$version_type
12770 # Format of library name prefix.
12771 libname_spec=$lt_libname_spec
12773 # List of archive names. First name is the real one, the rest are links.
12774 # The last name is the one that the linker finds with -lNAME.
12775 library_names_spec=$lt_library_names_spec
12777 # The coded name of the library, if different from the real name.
12778 soname_spec=$lt_soname_spec
12780 # Commands used to build and install an old-style archive.
12781 RANLIB=$lt_RANLIB
12782 old_archive_cmds=$lt_old_archive_cmds_CXX
12783 old_postinstall_cmds=$lt_old_postinstall_cmds
12784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12786 # Create an old-style archive from a shared archive.
12787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12789 # Create a temporary old-style archive to link instead of a shared archive.
12790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12792 # Commands used to build and install a shared archive.
12793 archive_cmds=$lt_archive_cmds_CXX
12794 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12795 postinstall_cmds=$lt_postinstall_cmds
12796 postuninstall_cmds=$lt_postuninstall_cmds
12798 # Commands used to build a loadable module (assumed same as above if empty)
12799 module_cmds=$lt_module_cmds_CXX
12800 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12802 # Commands to strip libraries.
12803 old_striplib=$lt_old_striplib
12804 striplib=$lt_striplib
12806 # Dependencies to place before the objects being linked to create a
12807 # shared library.
12808 predep_objects=$lt_predep_objects_CXX
12810 # Dependencies to place after the objects being linked to create a
12811 # shared library.
12812 postdep_objects=$lt_postdep_objects_CXX
12814 # Dependencies to place before the objects being linked to create a
12815 # shared library.
12816 predeps=$lt_predeps_CXX
12818 # Dependencies to place after the objects being linked to create a
12819 # shared library.
12820 postdeps=$lt_postdeps_CXX
12822 # The library search path used internally by the compiler when linking
12823 # a shared library.
12824 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12826 # Method to check whether dependent libraries are shared objects.
12827 deplibs_check_method=$lt_deplibs_check_method
12829 # Command to use when deplibs_check_method == file_magic.
12830 file_magic_cmd=$lt_file_magic_cmd
12832 # Flag that allows shared libraries with undefined symbols to be built.
12833 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12835 # Flag that forces no undefined symbols.
12836 no_undefined_flag=$lt_no_undefined_flag_CXX
12838 # Commands used to finish a libtool library installation in a directory.
12839 finish_cmds=$lt_finish_cmds
12841 # Same as above, but a single script fragment to be evaled but not shown.
12842 finish_eval=$lt_finish_eval
12844 # Take the output of nm and produce a listing of raw symbols and C names.
12845 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12847 # Transform the output of nm in a proper C declaration
12848 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12850 # Transform the output of nm in a C name address pair
12851 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12853 # This is the shared library runtime path variable.
12854 runpath_var=$runpath_var
12856 # This is the shared library path variable.
12857 shlibpath_var=$shlibpath_var
12859 # Is shlibpath searched before the hard-coded library search path?
12860 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12862 # How to hardcode a shared library path into an executable.
12863 hardcode_action=$hardcode_action_CXX
12865 # Whether we should hardcode library paths into libraries.
12866 hardcode_into_libs=$hardcode_into_libs
12868 # Flag to hardcode \$libdir into a binary during linking.
12869 # This must work even if \$libdir does not exist.
12870 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12872 # If ld is used when linking, flag to hardcode \$libdir into
12873 # a binary during linking. This must work even if \$libdir does
12874 # not exist.
12875 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12877 # Whether we need a single -rpath flag with a separated argument.
12878 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12880 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12881 # resulting binary.
12882 hardcode_direct=$hardcode_direct_CXX
12884 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12885 # resulting binary.
12886 hardcode_minus_L=$hardcode_minus_L_CXX
12888 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12889 # the resulting binary.
12890 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12892 # Set to yes if building a shared library automatically hardcodes DIR into the library
12893 # and all subsequent libraries and executables linked against it.
12894 hardcode_automatic=$hardcode_automatic_CXX
12896 # Variables whose values should be saved in libtool wrapper scripts and
12897 # restored at relink time.
12898 variables_saved_for_relink="$variables_saved_for_relink"
12900 # Whether libtool must link a program against all its dependency libraries.
12901 link_all_deplibs=$link_all_deplibs_CXX
12903 # Compile-time system search path for libraries
12904 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12906 # Run-time system search path for libraries
12907 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12909 # Fix the shell variable \$srcfile for the compiler.
12910 fix_srcfile_path="$fix_srcfile_path_CXX"
12912 # Set to yes if exported symbols are required.
12913 always_export_symbols=$always_export_symbols_CXX
12915 # The commands to list exported symbols.
12916 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12918 # The commands to extract the exported symbol list from a shared archive.
12919 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12921 # Symbols that should not be listed in the preloaded symbols.
12922 exclude_expsyms=$lt_exclude_expsyms_CXX
12924 # Symbols that must always be exported.
12925 include_expsyms=$lt_include_expsyms_CXX
12927 # ### END LIBTOOL TAG CONFIG: $tagname
12929 __EOF__
12932 else
12933 # If there is no Makefile yet, we rely on a make rule to execute
12934 # `config.status --recheck' to rerun these tests and create the
12935 # libtool script then.
12936 test -f Makefile && make "$ltmain"
12940 ac_ext=c
12941 ac_cpp='$CPP $CPPFLAGS'
12942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12946 CC=$lt_save_CC
12947 LDCXX=$LD
12948 LD=$lt_save_LD
12949 GCC=$lt_save_GCC
12950 with_gnu_ldcxx=$with_gnu_ld
12951 with_gnu_ld=$lt_save_with_gnu_ld
12952 lt_cv_path_LDCXX=$lt_cv_path_LD
12953 lt_cv_path_LD=$lt_save_path_LD
12954 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12955 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12957 else
12958 tagname=""
12962 F77)
12963 if test -n "$F77" && test "X$F77" != "Xno"; then
12965 ac_ext=f
12966 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12967 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12971 archive_cmds_need_lc_F77=no
12972 allow_undefined_flag_F77=
12973 always_export_symbols_F77=no
12974 archive_expsym_cmds_F77=
12975 export_dynamic_flag_spec_F77=
12976 hardcode_direct_F77=no
12977 hardcode_libdir_flag_spec_F77=
12978 hardcode_libdir_flag_spec_ld_F77=
12979 hardcode_libdir_separator_F77=
12980 hardcode_minus_L_F77=no
12981 hardcode_automatic_F77=no
12982 module_cmds_F77=
12983 module_expsym_cmds_F77=
12984 link_all_deplibs_F77=unknown
12985 old_archive_cmds_F77=$old_archive_cmds
12986 no_undefined_flag_F77=
12987 whole_archive_flag_spec_F77=
12988 enable_shared_with_static_runtimes_F77=no
12990 # Source file extension for f77 test sources.
12991 ac_ext=f
12993 # Object file extension for compiled f77 test sources.
12994 objext=o
12995 objext_F77=$objext
12997 # Code to be used in simple compile tests
12998 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13000 # Code to be used in simple link tests
13001 lt_simple_link_test_code=" program t\n end\n"
13003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13005 # If no C compiler was specified, use CC.
13006 LTCC=${LTCC-"$CC"}
13008 # Allow CC to be a program name with arguments.
13009 compiler=$CC
13012 # Allow CC to be a program name with arguments.
13013 lt_save_CC="$CC"
13014 CC=${F77-"f77"}
13015 compiler=$CC
13016 compiler_F77=$CC
13017 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13019 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13020 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13021 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13022 echo "${ECHO_T}$can_build_shared" >&6
13024 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13025 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13026 test "$can_build_shared" = "no" && enable_shared=no
13028 # On AIX, shared libraries and static libraries use the same namespace, and
13029 # are all built from PIC.
13030 case "$host_os" in
13031 aix3*)
13032 test "$enable_shared" = yes && enable_static=no
13033 if test -n "$RANLIB"; then
13034 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
13035 postinstall_cmds='$RANLIB $lib'
13038 aix4*)
13039 test "$enable_shared" = yes && enable_static=no
13041 esac
13042 echo "$as_me:$LINENO: result: $enable_shared" >&5
13043 echo "${ECHO_T}$enable_shared" >&6
13045 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13046 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13047 # Make sure either enable_shared or enable_static is yes.
13048 test "$enable_shared" = yes || enable_static=yes
13049 echo "$as_me:$LINENO: result: $enable_static" >&5
13050 echo "${ECHO_T}$enable_static" >&6
13052 test "$ld_shlibs_F77" = no && can_build_shared=no
13054 GCC_F77="$G77"
13055 LD_F77="$LD"
13057 lt_prog_compiler_wl_F77=
13058 lt_prog_compiler_pic_F77=
13059 lt_prog_compiler_static_F77=
13061 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13062 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13064 if test "$GCC" = yes; then
13065 lt_prog_compiler_wl_F77='-Wl,'
13066 lt_prog_compiler_static_F77='-static'
13068 case $host_os in
13069 aix*)
13070 # All AIX code is PIC.
13071 if test "$host_cpu" = ia64; then
13072 # AIX 5 now supports IA64 processor
13073 lt_prog_compiler_static_F77='-Bstatic'
13077 amigaos*)
13078 # FIXME: we need at least 68020 code to build shared libraries, but
13079 # adding the `-m68020' flag to GCC prevents building anything better,
13080 # like `-m68040'.
13081 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13084 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13085 # PIC is the default for these OSes.
13088 mingw* | pw32* | os2*)
13089 # This hack is so that the source file can tell whether it is being
13090 # built for inclusion in a dll (and should export symbols for example).
13091 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13094 darwin* | rhapsody*)
13095 # PIC is the default on this platform
13096 # Common symbols not allowed in MH_DYLIB files
13097 lt_prog_compiler_pic_F77='-fno-common'
13100 msdosdjgpp*)
13101 # Just because we use GCC doesn't mean we suddenly get shared libraries
13102 # on systems that don't support them.
13103 lt_prog_compiler_can_build_shared_F77=no
13104 enable_shared=no
13107 sysv4*MP*)
13108 if test -d /usr/nec; then
13109 lt_prog_compiler_pic_F77=-Kconform_pic
13113 hpux*)
13114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13115 # not for PA HP-UX.
13116 case "$host_cpu" in
13117 hppa*64*|ia64*)
13118 # +Z the default
13121 lt_prog_compiler_pic_F77='-fPIC'
13123 esac
13127 lt_prog_compiler_pic_F77='-fPIC'
13129 esac
13130 else
13131 # PORTME Check for flag to pass linker flags through the system compiler.
13132 case $host_os in
13133 aix*)
13134 lt_prog_compiler_wl_F77='-Wl,'
13135 if test "$host_cpu" = ia64; then
13136 # AIX 5 now supports IA64 processor
13137 lt_prog_compiler_static_F77='-Bstatic'
13138 else
13139 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13143 mingw* | pw32* | os2*)
13144 # This hack is so that the source file can tell whether it is being
13145 # built for inclusion in a dll (and should export symbols for example).
13146 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13149 hpux9* | hpux10* | hpux11*)
13150 lt_prog_compiler_wl_F77='-Wl,'
13151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13152 # not for PA HP-UX.
13153 case "$host_cpu" in
13154 hppa*64*|ia64*)
13155 # +Z the default
13158 lt_prog_compiler_pic_F77='+Z'
13160 esac
13161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13162 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13165 irix5* | irix6* | nonstopux*)
13166 lt_prog_compiler_wl_F77='-Wl,'
13167 # PIC (with -KPIC) is the default.
13168 lt_prog_compiler_static_F77='-non_shared'
13171 newsos6)
13172 lt_prog_compiler_pic_F77='-KPIC'
13173 lt_prog_compiler_static_F77='-Bstatic'
13176 linux*)
13177 case $CC in
13178 icc|ecc)
13179 lt_prog_compiler_wl_F77='-Wl,'
13180 lt_prog_compiler_pic_F77='-KPIC'
13181 lt_prog_compiler_static_F77='-static'
13183 ccc)
13184 lt_prog_compiler_wl_F77='-Wl,'
13185 # All Alpha code is PIC.
13186 lt_prog_compiler_static_F77='-non_shared'
13188 esac
13191 osf3* | osf4* | osf5*)
13192 lt_prog_compiler_wl_F77='-Wl,'
13193 # All OSF/1 code is PIC.
13194 lt_prog_compiler_static_F77='-non_shared'
13197 sco3.2v5*)
13198 lt_prog_compiler_pic_F77='-Kpic'
13199 lt_prog_compiler_static_F77='-dn'
13202 solaris*)
13203 lt_prog_compiler_wl_F77='-Wl,'
13204 lt_prog_compiler_pic_F77='-KPIC'
13205 lt_prog_compiler_static_F77='-Bstatic'
13208 sunos4*)
13209 lt_prog_compiler_wl_F77='-Qoption ld '
13210 lt_prog_compiler_pic_F77='-PIC'
13211 lt_prog_compiler_static_F77='-Bstatic'
13214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13215 lt_prog_compiler_wl_F77='-Wl,'
13216 lt_prog_compiler_pic_F77='-KPIC'
13217 lt_prog_compiler_static_F77='-Bstatic'
13220 sysv4*MP*)
13221 if test -d /usr/nec ;then
13222 lt_prog_compiler_pic_F77='-Kconform_pic'
13223 lt_prog_compiler_static_F77='-Bstatic'
13227 uts4*)
13228 lt_prog_compiler_pic_F77='-pic'
13229 lt_prog_compiler_static_F77='-Bstatic'
13233 lt_prog_compiler_can_build_shared_F77=no
13235 esac
13238 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13239 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13242 # Check to make sure the PIC flag actually works.
13244 if test -n "$lt_prog_compiler_pic_F77"; then
13245 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13246 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13247 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 lt_prog_compiler_pic_works_F77=no
13251 ac_outfile=conftest.$ac_objext
13252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13253 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13254 # Insert the option either (1) after the last *FLAGS variable, or
13255 # (2) before a word containing "conftest.", or (3) at the end.
13256 # Note that $ac_compile itself does not contain backslashes and begins
13257 # with a dollar sign (not a hyphen), so the echo should work correctly.
13258 # The option is referenced via a variable to avoid confusing sed.
13259 lt_compile=`echo "$ac_compile" | $SED \
13260 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13262 -e 's:$: $lt_compiler_flag:'`
13263 (eval echo "\"\$as_me:13212: $lt_compile\"" >&5)
13264 (eval "$lt_compile" 2>conftest.err)
13265 ac_status=$?
13266 cat conftest.err >&5
13267 echo "$as_me:13216: \$? = $ac_status" >&5
13268 if (exit $ac_status) && test -s "$ac_outfile"; then
13269 # The compiler can only warn and ignore the option if not recognized
13270 # So say no if there are warnings
13271 if test ! -s conftest.err; then
13272 lt_prog_compiler_pic_works_F77=yes
13275 $rm conftest*
13278 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13279 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13281 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13282 case $lt_prog_compiler_pic_F77 in
13283 "" | " "*) ;;
13284 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13285 esac
13286 else
13287 lt_prog_compiler_pic_F77=
13288 lt_prog_compiler_can_build_shared_F77=no
13292 case "$host_os" in
13293 # For platforms which do not support PIC, -DPIC is meaningless:
13294 *djgpp*)
13295 lt_prog_compiler_pic_F77=
13298 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13300 esac
13302 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13303 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13304 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307 lt_cv_prog_compiler_c_o_F77=no
13308 $rm -r conftest 2>/dev/null
13309 mkdir conftest
13310 cd conftest
13311 mkdir out
13312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13314 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13315 # that will create temporary files in the current directory regardless of
13316 # the output directory. Thus, making CWD read-only will cause this test
13317 # to fail, enabling locking or at least warning the user not to do parallel
13318 # builds.
13319 chmod -w .
13321 lt_compiler_flag="-o out/conftest2.$ac_objext"
13322 # Insert the option either (1) after the last *FLAGS variable, or
13323 # (2) before a word containing "conftest.", or (3) at the end.
13324 # Note that $ac_compile itself does not contain backslashes and begins
13325 # with a dollar sign (not a hyphen), so the echo should work correctly.
13326 lt_compile=`echo "$ac_compile" | $SED \
13327 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13329 -e 's:$: $lt_compiler_flag:'`
13330 (eval echo "\"\$as_me:13279: $lt_compile\"" >&5)
13331 (eval "$lt_compile" 2>out/conftest.err)
13332 ac_status=$?
13333 cat out/conftest.err >&5
13334 echo "$as_me:13283: \$? = $ac_status" >&5
13335 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13336 then
13337 # The compiler can only warn and ignore the option if not recognized
13338 # So say no if there are warnings
13339 if test ! -s out/conftest.err; then
13340 lt_cv_prog_compiler_c_o_F77=yes
13343 chmod u+w .
13344 $rm conftest* out/*
13345 rmdir out
13346 cd ..
13347 rmdir conftest
13348 $rm conftest*
13351 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13352 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13355 hard_links="nottested"
13356 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13357 # do not overwrite the value of need_locks provided by the user
13358 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13359 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13360 hard_links=yes
13361 $rm conftest*
13362 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13363 touch conftest.a
13364 ln conftest.a conftest.b 2>&5 || hard_links=no
13365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13366 echo "$as_me:$LINENO: result: $hard_links" >&5
13367 echo "${ECHO_T}$hard_links" >&6
13368 if test "$hard_links" = no; then
13369 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13370 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13371 need_locks=warn
13373 else
13374 need_locks=no
13377 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13378 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13380 runpath_var=
13381 allow_undefined_flag_F77=
13382 enable_shared_with_static_runtimes_F77=no
13383 archive_cmds_F77=
13384 archive_expsym_cmds_F77=
13385 old_archive_From_new_cmds_F77=
13386 old_archive_from_expsyms_cmds_F77=
13387 export_dynamic_flag_spec_F77=
13388 whole_archive_flag_spec_F77=
13389 thread_safe_flag_spec_F77=
13390 hardcode_libdir_flag_spec_F77=
13391 hardcode_libdir_flag_spec_ld_F77=
13392 hardcode_libdir_separator_F77=
13393 hardcode_direct_F77=no
13394 hardcode_minus_L_F77=no
13395 hardcode_shlibpath_var_F77=unsupported
13396 link_all_deplibs_F77=unknown
13397 hardcode_automatic_F77=no
13398 module_cmds_F77=
13399 module_expsym_cmds_F77=
13400 always_export_symbols_F77=no
13401 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13402 # include_expsyms should be a list of space-separated symbols to be *always*
13403 # included in the symbol list
13404 include_expsyms_F77=
13405 # exclude_expsyms can be an extended regexp of symbols to exclude
13406 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13407 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13408 # as well as any symbol that contains `d'.
13409 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13410 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13411 # platforms (ab)use it in PIC code, but their linkers get confused if
13412 # the symbol is explicitly referenced. Since portable code cannot
13413 # rely on this symbol name, it's probably fine to never include it in
13414 # preloaded symbol tables.
13415 extract_expsyms_cmds=
13417 case $host_os in
13418 cygwin* | mingw* | pw32*)
13419 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13420 # When not using gcc, we currently assume that we are using
13421 # Microsoft Visual C++.
13422 if test "$GCC" != yes; then
13423 with_gnu_ld=no
13426 openbsd*)
13427 with_gnu_ld=no
13429 esac
13431 ld_shlibs_F77=yes
13432 if test "$with_gnu_ld" = yes; then
13433 # If archive_cmds runs LD, not CC, wlarc should be empty
13434 wlarc='${wl}'
13436 # See if GNU ld supports shared libraries.
13437 case $host_os in
13438 aix3* | aix4* | aix5*)
13439 # On AIX/PPC, the GNU linker is very broken
13440 if test "$host_cpu" != ia64; then
13441 ld_shlibs_F77=no
13442 cat <<EOF 1>&2
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.
13454 amigaos*)
13455 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(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
13464 # them.
13465 ld_shlibs_F77=no
13468 beos*)
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'
13474 else
13475 ld_shlibs_F77=no
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 '\''/^[BCDGS] /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}--image-base=0x10000000 ${wl}--out-implib,$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;
13494 else
13495 echo EXPORTS > $output_objdir/$soname.def;
13496 cat $export_symbols >> $output_objdir/$soname.def;
13497 fi${_S_}
13498 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13499 else
13500 ld_shlibs=no
13504 netbsd*)
13505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13506 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13507 wlarc=
13508 else
13509 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13514 solaris* | sysv5*)
13515 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13516 ld_shlibs_F77=no
13517 cat <<EOF 1>&2
13519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13520 *** create shared libraries on Solaris systems. Therefore, libtool
13521 *** is disabling shared libraries support. We urge you to upgrade GNU
13522 *** binutils to release 2.9.1 or newer. Another option is to modify
13523 *** your PATH or compiler configuration so that the native linker is
13524 *** used, and then restart.
13527 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13528 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13530 else
13531 ld_shlibs_F77=no
13535 sunos4*)
13536 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13537 wlarc=
13538 hardcode_direct_F77=yes
13539 hardcode_shlibpath_var_F77=no
13543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13544 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13545 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13546 else
13547 ld_shlibs_F77=no
13550 esac
13552 if test "$ld_shlibs_F77" = yes; then
13553 runpath_var=LD_RUN_PATH
13554 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13555 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13556 # ancient GNU ld didn't support --whole-archive et. al.
13557 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13558 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13559 else
13560 whole_archive_flag_spec_F77=
13563 else
13564 # PORTME fill in a description of your system's linker (not GNU ld)
13565 case $host_os in
13566 aix3*)
13567 allow_undefined_flag_F77=unsupported
13568 always_export_symbols_F77=yes
13569 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
13570 # Note: this linker hardcodes the directories in LIBPATH if there
13571 # are no directories specified by -L.
13572 hardcode_minus_L_F77=yes
13573 if test "$GCC" = yes && test -z "$link_static_flag"; then
13574 # Neither direct hardcoding nor static linking is supported with a
13575 # broken collect2.
13576 hardcode_direct_F77=unsupported
13580 aix4* | aix5*)
13581 if test "$host_cpu" = ia64; then
13582 # On IA64, the linker does run time linking by default, so we don't
13583 # have to do anything special.
13584 aix_use_runtimelinking=no
13585 exp_sym_flag='-Bexport'
13586 no_entry_flag=""
13587 else
13588 # If we're using GNU nm, then we don't want the "-C" option.
13589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13591 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'
13592 else
13593 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'
13595 aix_use_runtimelinking=no
13597 # Test if we are trying to use run time linking or normal
13598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13599 # need to do runtime linking.
13600 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13601 for ld_flag in $LDFLAGS; do
13602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13603 aix_use_runtimelinking=yes
13604 break
13606 done
13607 esac
13609 exp_sym_flag='-bexport'
13610 no_entry_flag='-bnoentry'
13613 # When large executables or shared objects are built, AIX ld can
13614 # have problems creating the table of contents. If linking a library
13615 # or program results in "error TOC overflow" add -mminimal-toc to
13616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13619 archive_cmds_F77=''
13620 hardcode_direct_F77=yes
13621 hardcode_libdir_separator_F77=':'
13622 link_all_deplibs_F77=yes
13624 if test "$GCC" = yes; then
13625 case $host_os in aix4.012|aix4.012.*)
13626 # We only want to do this on AIX 4.2 and lower, the check
13627 # below for broken collect2 doesn't work under 4.3+
13628 collect2name=`${CC} -print-prog-name=collect2`
13629 if test -f "$collect2name" && \
13630 strings "$collect2name" | grep resolve_lib_name >/dev/null
13631 then
13632 # We have reworked collect2
13633 hardcode_direct_F77=yes
13634 else
13635 # We have old collect2
13636 hardcode_direct_F77=unsupported
13637 # It fails to find uninstalled libraries when the uninstalled
13638 # path is not listed in the libpath. Setting hardcode_minus_L
13639 # to unsupported forces relinking
13640 hardcode_minus_L_F77=yes
13641 hardcode_libdir_flag_spec_F77='-L$libdir'
13642 hardcode_libdir_separator_F77=
13644 esac
13645 shared_flag='-shared'
13646 else
13647 # not using gcc
13648 if test "$host_cpu" = ia64; then
13649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13650 # chokes on -Wl,-G. The following line is correct:
13651 shared_flag='-G'
13652 else
13653 if test "$aix_use_runtimelinking" = yes; then
13654 shared_flag='${wl}-G'
13655 else
13656 shared_flag='${wl}-bM:SRE'
13661 # It seems that -bexpall does not export symbols beginning with
13662 # underscore (_), so it is better to generate a list of symbols to export.
13663 always_export_symbols_F77=yes
13664 if test "$aix_use_runtimelinking" = yes; then
13665 # Warning - without using the other runtime loading flags (-brtl),
13666 # -berok will link without error, but may produce a broken library.
13667 allow_undefined_flag_F77='-berok'
13668 # Determine the default libpath from the value encoded in an empty executable.
13669 cat >conftest.$ac_ext <<_ACEOF
13670 program main
13673 _ACEOF
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13676 (eval $ac_link) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
13680 { ac_try='test -s conftest$ac_exeext'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }; then
13687 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13689 # Check for a 64-bit object if we didn't find anything.
13690 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; }
13691 }'`; fi
13692 else
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13698 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13700 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13701 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13702 else
13703 if test "$host_cpu" = ia64; then
13704 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13705 allow_undefined_flag_F77="-z nodefs"
13706 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13707 else
13708 # Determine the default libpath from the value encoded in an empty executable.
13709 cat >conftest.$ac_ext <<_ACEOF
13710 program main
13713 _ACEOF
13714 rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716 (eval $ac_link) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -s conftest$ac_exeext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13729 # Check for a 64-bit object if we didn't find anything.
13730 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; }
13731 }'`; fi
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13740 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13741 # Warning - without using the other run time loading flags,
13742 # -berok will link without error, but may produce a broken library.
13743 no_undefined_flag_F77=' ${wl}-bernotok'
13744 allow_undefined_flag_F77=' ${wl}-berok'
13745 # -bexpall does not export symbols beginning with underscore (_)
13746 always_export_symbols_F77=yes
13747 # Exported symbols can be pulled into shared objects from archives
13748 whole_archive_flag_spec_F77=' '
13749 archive_cmds_need_lc_F77=yes
13750 # This is similar to how AIX traditionally builds it's shared libraries.
13751 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13756 amigaos*)
13757 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
13758 hardcode_libdir_flag_spec_F77='-L$libdir'
13759 hardcode_minus_L_F77=yes
13760 # see comment about different semantics on the GNU ld section
13761 ld_shlibs_F77=no
13764 bsdi4*)
13765 export_dynamic_flag_spec_F77=-rdynamic
13768 cygwin* | mingw* | pw32*)
13769 # When not using gcc, we currently assume that we are using
13770 # Microsoft Visual C++.
13771 # hardcode_libdir_flag_spec is actually meaningless, as there is
13772 # no search path for DLLs.
13773 hardcode_libdir_flag_spec_F77=' '
13774 allow_undefined_flag_F77=unsupported
13775 # Tell ltmain to make .lib files, not .a files.
13776 libext=lib
13777 # Tell ltmain to make .dll files, not .so files.
13778 shrext=".dll"
13779 # FIXME: Setting linknames here is a bad hack.
13780 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
13781 # The linker will automatically build a .lib file if we build a DLL.
13782 old_archive_From_new_cmds_F77='true'
13783 # FIXME: Should let the user specify the lib program.
13784 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13785 fix_srcfile_path='`cygpath -w "$srcfile"`'
13786 enable_shared_with_static_runtimes_F77=yes
13789 darwin* | rhapsody*)
13790 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13791 archive_cmds_need_lc_F77=no
13792 case "$host_os" in
13793 rhapsody* | darwin1.[012])
13794 allow_undefined_flag_F77='-undefined suppress'
13796 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
13797 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13799 *) # Darwin 7.0 on
13800 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
13801 10.[012])
13802 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13804 *) # 10.3 on
13805 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
13806 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13807 else
13808 allow_undefined_flag_F77='-undefined dynamic_lookup'
13811 esac
13813 esac
13814 # FIXME: Relying on posixy $() will cause problems for
13815 # cross-compilation, but unfortunately the echo tests do not
13816 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13817 # `"' quotes if we put them in here... so don't!
13818 lt_int_apple_cc_single_mod=no
13819 output_verbose_link_cmd='echo'
13820 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13821 lt_int_apple_cc_single_mod=yes
13823 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13824 archive_cmds_F77='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13825 else
13826 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13828 module_cmds_F77='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13830 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13831 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13832 else
13833 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13835 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13836 hardcode_direct_F77=no
13837 hardcode_automatic_F77=yes
13838 hardcode_shlibpath_var_F77=unsupported
13839 whole_archive_flag_spec_F77='-all_load $convenience'
13840 link_all_deplibs_F77=yes
13844 dgux*)
13845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_libdir_flag_spec_F77='-L$libdir'
13847 hardcode_shlibpath_var_F77=no
13850 freebsd1*)
13851 ld_shlibs_F77=no
13854 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13855 # support. Future versions do this automatically, but an explicit c++rt0.o
13856 # does not break anything, and helps significantly (at the cost of a little
13857 # extra space).
13858 freebsd2.2*)
13859 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13860 hardcode_libdir_flag_spec_F77='-R$libdir'
13861 hardcode_direct_F77=yes
13862 hardcode_shlibpath_var_F77=no
13865 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13866 freebsd2*)
13867 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13868 hardcode_direct_F77=yes
13869 hardcode_minus_L_F77=yes
13870 hardcode_shlibpath_var_F77=no
13873 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13874 freebsd*)
13875 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13876 hardcode_libdir_flag_spec_F77='-R$libdir'
13877 hardcode_direct_F77=yes
13878 hardcode_shlibpath_var_F77=no
13881 hpux9*)
13882 if test "$GCC" = yes; then
13883 archive_cmds_F77='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13884 else
13885 archive_cmds_F77='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13887 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13888 hardcode_libdir_separator_F77=:
13889 hardcode_direct_F77=yes
13891 # hardcode_minus_L: Not really in the search PATH,
13892 # but as the default location of the library.
13893 hardcode_minus_L_F77=yes
13894 export_dynamic_flag_spec_F77='${wl}-E'
13897 hpux10* | hpux11*)
13898 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13899 case "$host_cpu" in
13900 hppa*64*|ia64*)
13901 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13904 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13906 esac
13907 else
13908 case "$host_cpu" in
13909 hppa*64*|ia64*)
13910 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13913 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13915 esac
13917 if test "$with_gnu_ld" = no; then
13918 case "$host_cpu" in
13919 hppa*64*)
13920 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13921 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13922 hardcode_libdir_separator_F77=:
13923 hardcode_direct_F77=no
13924 hardcode_shlibpath_var_F77=no
13926 ia64*)
13927 hardcode_libdir_flag_spec_F77='-L$libdir'
13928 hardcode_direct_F77=no
13929 hardcode_shlibpath_var_F77=no
13931 # hardcode_minus_L: Not really in the search PATH,
13932 # but as the default location of the library.
13933 hardcode_minus_L_F77=yes
13936 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13937 hardcode_libdir_separator_F77=:
13938 hardcode_direct_F77=yes
13939 export_dynamic_flag_spec_F77='${wl}-E'
13941 # hardcode_minus_L: Not really in the search PATH,
13942 # but as the default location of the library.
13943 hardcode_minus_L_F77=yes
13945 esac
13949 irix5* | irix6* | nonstopux*)
13950 if test "$GCC" = yes; then
13951 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'
13952 else
13953 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'
13954 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13956 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13957 hardcode_libdir_separator_F77=:
13958 link_all_deplibs_F77=yes
13961 netbsd*)
13962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13963 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13964 else
13965 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13967 hardcode_libdir_flag_spec_F77='-R$libdir'
13968 hardcode_direct_F77=yes
13969 hardcode_shlibpath_var_F77=no
13972 newsos6)
13973 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13974 hardcode_direct_F77=yes
13975 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13976 hardcode_libdir_separator_F77=:
13977 hardcode_shlibpath_var_F77=no
13980 openbsd*)
13981 hardcode_direct_F77=yes
13982 hardcode_shlibpath_var_F77=no
13983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13984 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13985 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13986 export_dynamic_flag_spec_F77='${wl}-E'
13987 else
13988 case $host_os in
13989 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13990 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13991 hardcode_libdir_flag_spec_F77='-R$libdir'
13994 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13995 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13997 esac
14001 os2*)
14002 hardcode_libdir_flag_spec_F77='-L$libdir'
14003 hardcode_minus_L_F77=yes
14004 allow_undefined_flag_F77=unsupported
14005 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14006 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14009 osf3*)
14010 if test "$GCC" = yes; then
14011 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14012 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'
14013 else
14014 allow_undefined_flag_F77=' -expect_unresolved \*'
14015 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'
14017 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14018 hardcode_libdir_separator_F77=:
14021 osf4* | osf5*) # as osf3* with the addition of -msym flag
14022 if test "$GCC" = yes; then
14023 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14024 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'
14025 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14026 else
14027 allow_undefined_flag_F77=' -expect_unresolved \*'
14028 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'
14029 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${_S_}
14030 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib${_S_}$rm $lib.exp'
14032 # Both c and cxx compiler support -rpath directly
14033 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14035 hardcode_libdir_separator_F77=:
14038 sco3.2v5*)
14039 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14040 hardcode_shlibpath_var_F77=no
14041 export_dynamic_flag_spec_F77='${wl}-Bexport'
14042 runpath_var=LD_RUN_PATH
14043 hardcode_runpath_var=yes
14046 solaris*)
14047 no_undefined_flag_F77=' -z text'
14048 if test "$GCC" = yes; then
14049 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14050 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
14051 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
14052 else
14053 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14054 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
14055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
14057 hardcode_libdir_flag_spec_F77='-R$libdir'
14058 hardcode_shlibpath_var_F77=no
14059 case $host_os in
14060 solaris2.[0-5] | solaris2.[0-5].*) ;;
14061 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14062 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14063 esac
14064 link_all_deplibs_F77=yes
14067 sunos4*)
14068 if test "x$host_vendor" = xsequent; then
14069 # Use $CC to link under sequent, because it throws in some extra .o
14070 # files that make .init and .fini sections work.
14071 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14072 else
14073 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14075 hardcode_libdir_flag_spec_F77='-L$libdir'
14076 hardcode_direct_F77=yes
14077 hardcode_minus_L_F77=yes
14078 hardcode_shlibpath_var_F77=no
14081 sysv4)
14082 case $host_vendor in
14083 sni)
14084 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085 hardcode_direct_F77=yes # is this really true???
14087 siemens)
14088 ## LD is ld it makes a PLAMLIB
14089 ## CC just makes a GrossModule.
14090 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14091 reload_cmds_F77='$CC -r -o $output$reload_objs'
14092 hardcode_direct_F77=no
14094 motorola)
14095 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14098 esac
14099 runpath_var='LD_RUN_PATH'
14100 hardcode_shlibpath_var_F77=no
14103 sysv4.3*)
14104 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105 hardcode_shlibpath_var_F77=no
14106 export_dynamic_flag_spec_F77='-Bexport'
14109 sysv4*MP*)
14110 if test -d /usr/nec; then
14111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14112 hardcode_shlibpath_var_F77=no
14113 runpath_var=LD_RUN_PATH
14114 hardcode_runpath_var=yes
14115 ld_shlibs_F77=yes
14119 sysv4.2uw2*)
14120 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14121 hardcode_direct_F77=yes
14122 hardcode_minus_L_F77=no
14123 hardcode_shlibpath_var_F77=no
14124 hardcode_runpath_var=yes
14125 runpath_var=LD_RUN_PATH
14128 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14129 no_undefined_flag_F77='${wl}-z ${wl}text'
14130 if test "$GCC" = yes; then
14131 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14132 else
14133 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14135 runpath_var='LD_RUN_PATH'
14136 hardcode_shlibpath_var_F77=no
14139 sysv5*)
14140 no_undefined_flag_F77=' -z text'
14141 # $CC -shared without GNU ld will not create a library from C++
14142 # object files and a static libstdc++, better avoid it by now
14143 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14144 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
14145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
14146 hardcode_libdir_flag_spec_F77=
14147 hardcode_shlibpath_var_F77=no
14148 runpath_var='LD_RUN_PATH'
14151 uts4*)
14152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14153 hardcode_libdir_flag_spec_F77='-L$libdir'
14154 hardcode_shlibpath_var_F77=no
14158 ld_shlibs_F77=no
14160 esac
14163 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14164 echo "${ECHO_T}$ld_shlibs_F77" >&6
14165 test "$ld_shlibs_F77" = no && can_build_shared=no
14167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14168 if test "$GCC" = yes; then
14169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14173 # Do we need to explicitly link libc?
14175 case "x$archive_cmds_need_lc_F77" in
14176 x|xyes)
14177 # Assume -lc should be added
14178 archive_cmds_need_lc_F77=yes
14180 if test "$enable_shared" = yes && test "$GCC" = yes; then
14181 case $archive_cmds_F77 in
14182 *"$_S_"*)
14183 # FIXME: we may have to deal with multi-command sequences.
14185 '$CC '*)
14186 # Test whether the compiler implicitly links with -lc since on some
14187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14188 # to ld, don't add -lc before -lgcc.
14189 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14190 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14191 $rm conftest*
14192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } 2>conftest.err; then
14199 soname=conftest
14200 lib=conftest
14201 libobjs=conftest.$ac_objext
14202 deplibs=
14203 wl=$lt_prog_compiler_wl_F77
14204 compiler_flags=-v
14205 linker_flags=-v
14206 verstring=
14207 output_objdir=.
14208 libname=conftest
14209 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14210 allow_undefined_flag_F77=
14211 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14212 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }
14216 then
14217 archive_cmds_need_lc_F77=no
14218 else
14219 archive_cmds_need_lc_F77=yes
14221 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14222 else
14223 cat conftest.err 1>&5
14225 $rm conftest*
14226 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14227 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14229 esac
14232 esac
14234 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14235 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14236 hardcode_action_F77=
14237 if test -n "$hardcode_libdir_flag_spec_F77" || \
14238 test -n "$runpath_var F77" || \
14239 test "X$hardcode_automatic_F77"="Xyes" ; then
14241 # We can hardcode non-existant directories.
14242 if test "$hardcode_direct_F77" != no &&
14243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14244 # have to relink, otherwise we might link with an installed library
14245 # when we should be linking with a yet-to-be-installed one
14246 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14247 test "$hardcode_minus_L_F77" != no; then
14248 # Linking always hardcodes the temporary library directory.
14249 hardcode_action_F77=relink
14250 else
14251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14252 hardcode_action_F77=immediate
14254 else
14255 # We cannot hardcode anything, or else we can only hardcode existing
14256 # directories.
14257 hardcode_action_F77=unsupported
14259 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14260 echo "${ECHO_T}$hardcode_action_F77" >&6
14262 if test "$hardcode_action_F77" = relink; then
14263 # Fast installation is not supported
14264 enable_fast_install=no
14265 elif test "$shlibpath_overrides_runpath" = yes ||
14266 test "$enable_shared" = no; then
14267 # Fast installation is not necessary
14268 enable_fast_install=needless
14271 striplib=
14272 old_striplib=
14273 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14274 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14275 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14276 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14277 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14278 echo "$as_me:$LINENO: result: yes" >&5
14279 echo "${ECHO_T}yes" >&6
14280 else
14281 # FIXME - insert some real tests, host_os isn't really good enough
14282 case $host_os in
14283 NOT-darwin*)
14284 if test -n "$STRIP" ; then
14285 striplib="$STRIP -x"
14286 echo "$as_me:$LINENO: result: yes" >&5
14287 echo "${ECHO_T}yes" >&6
14288 else
14289 echo "$as_me:$LINENO: result: no" >&5
14290 echo "${ECHO_T}no" >&6
14294 echo "$as_me:$LINENO: result: no" >&5
14295 echo "${ECHO_T}no" >&6
14297 esac
14300 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14301 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14302 library_names_spec=
14303 libname_spec='lib$name'
14304 soname_spec=
14305 shrext=".so"
14306 postinstall_cmds=
14307 postuninstall_cmds=
14308 finish_cmds=
14309 finish_eval=
14310 shlibpath_var=
14311 shlibpath_overrides_runpath=unknown
14312 version_type=none
14313 dynamic_linker="$host_os ld.so"
14314 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14315 if test "$GCC" = yes; then
14316 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14317 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14318 # if the path contains ";" then we assume it to be the separator
14319 # otherwise default to the standard path separator (i.e. ":") - it is
14320 # assumed that no part of a normal pathname contains ";" but that should
14321 # okay in the real world where ";" in dirpaths is itself problematic.
14322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14323 else
14324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14326 else
14327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14329 need_lib_prefix=unknown
14330 hardcode_into_libs=no
14332 # when you set need_version to no, make sure it does not cause -set_version
14333 # flags to be left without arguments
14334 need_version=unknown
14336 case $host_os in
14337 aix3*)
14338 version_type=linux
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14340 shlibpath_var=LIBPATH
14342 # AIX 3 has no versioning support, so we append a major version to the name.
14343 soname_spec='${libname}${release}${shared_ext}$major'
14346 aix4* | aix5*)
14347 version_type=linux
14348 need_lib_prefix=no
14349 need_version=no
14350 hardcode_into_libs=yes
14351 if test "$host_cpu" = ia64; then
14352 # AIX 5 supports IA64
14353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14354 shlibpath_var=LD_LIBRARY_PATH
14355 else
14356 # With GCC up to 2.95.x, collect2 would create an import file
14357 # for dependence libraries. The import file would start with
14358 # the line `#! .'. This would cause the generated library to
14359 # depend on `.', always an invalid library. This was fixed in
14360 # development snapshots of GCC prior to 3.0.
14361 case $host_os in
14362 aix4 | aix4.[01] | aix4.[01].*)
14363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14364 echo ' yes '
14365 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14367 else
14368 can_build_shared=no
14371 esac
14372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14373 # soname into executable. Probably we can add versioning support to
14374 # collect2, so additional links can be useful in future.
14375 if test "$aix_use_runtimelinking" = yes; then
14376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14377 # instead of lib<name>.a to let people know that these are not
14378 # typical AIX shared libraries.
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 else
14381 # We preserve .a as extension for shared libraries through AIX4.2
14382 # and later when we are not doing run time linking.
14383 library_names_spec='${libname}${release}.a $libname.a'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14386 shlibpath_var=LIBPATH
14390 amigaos*)
14391 library_names_spec='$libname.ixlibrary $libname.a'
14392 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14393 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'
14396 beos*)
14397 library_names_spec='${libname}${shared_ext}'
14398 dynamic_linker="$host_os ld.so"
14399 shlibpath_var=LIBRARY_PATH
14402 bsdi4*)
14403 version_type=linux
14404 need_version=no
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14408 shlibpath_var=LD_LIBRARY_PATH
14409 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14410 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14411 # the default ld.so.conf also contains /usr/contrib/lib and
14412 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14413 # libtool to hard-code these into programs
14416 cygwin* | mingw* | pw32*)
14417 version_type=windows
14418 shrext=".dll"
14419 need_version=no
14420 need_lib_prefix=no
14422 case $GCC,$host_os in
14423 yes,cygwin* | yes,mingw* | yes,pw32*)
14424 library_names_spec='$libname.dll.a'
14425 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14426 postinstall_cmds='base_file=`basename \${file}`${_S_}
14427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
14428 dldir=$destdir/`dirname \$dlpath`${_S_}
14429 test -d \$dldir || mkdir -p \$dldir${_S_}
14430 $install_prog $dir/$dlname \$dldir/$dlname'
14431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
14432 dlpath=$dir/\$dldll${_S_}
14433 $rm \$dlpath'
14434 shlibpath_overrides_runpath=yes
14436 case $host_os in
14437 cygwin*)
14438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14440 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14442 mingw*)
14443 # MinGW DLLs use traditional 'lib' prefix
14444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14445 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14446 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14447 # It is most probably a Windows format PATH printed by
14448 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14449 # path with ; separators, and with drive letters. We can handle the
14450 # drive letters (cygwin fileutils understands them), so leave them,
14451 # especially as we might pass files found there to a mingw objdump,
14452 # which wouldn't understand a cygwinified path. Ahh.
14453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14454 else
14455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14458 pw32*)
14459 # pw32 DLLs use 'pw' prefix rather than 'lib'
14460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14462 esac
14466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14468 esac
14469 dynamic_linker='Win32 ld.exe'
14470 # FIXME: first we should search . and the directory the executable is in
14471 shlibpath_var=PATH
14474 darwin* | rhapsody*)
14475 dynamic_linker="$host_os dyld"
14476 version_type=darwin
14477 need_lib_prefix=no
14478 need_version=no
14479 # FIXME: Relying on posixy $() will cause problems for
14480 # cross-compilation, but unfortunately the echo tests do not
14481 # yet detect zsh echo's removal of \ escapes.
14482 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
14483 soname_spec='${libname}${release}${major}$shared_ext'
14484 shlibpath_overrides_runpath=yes
14485 shlibpath_var=DYLD_LIBRARY_PATH
14486 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14487 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14488 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14489 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"`
14491 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14494 dgux*)
14495 version_type=linux
14496 need_lib_prefix=no
14497 need_version=no
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 shlibpath_var=LD_LIBRARY_PATH
14503 freebsd1*)
14504 dynamic_linker=no
14507 freebsd*)
14508 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14509 version_type=freebsd-$objformat
14510 case $version_type in
14511 freebsd-elf*)
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14513 need_version=no
14514 need_lib_prefix=no
14516 freebsd-*)
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14518 need_version=yes
14520 esac
14521 shlibpath_var=LD_LIBRARY_PATH
14522 case $host_os in
14523 freebsd2*)
14524 shlibpath_overrides_runpath=yes
14526 freebsd3.01* | freebsdelf3.01*)
14527 shlibpath_overrides_runpath=yes
14528 hardcode_into_libs=yes
14530 *) # from 3.2 on
14531 shlibpath_overrides_runpath=no
14532 hardcode_into_libs=yes
14534 esac
14537 gnu*)
14538 version_type=linux
14539 need_lib_prefix=no
14540 need_version=no
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14542 soname_spec='${libname}${release}${shared_ext}$major'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 hardcode_into_libs=yes
14547 hpux9* | hpux10* | hpux11*)
14548 # Give a soname corresponding to the major version so that dld.sl refuses to
14549 # link against other versions.
14550 version_type=sunos
14551 need_lib_prefix=no
14552 need_version=no
14553 case "$host_cpu" in
14554 ia64*)
14555 shrext='.so'
14556 hardcode_into_libs=yes
14557 dynamic_linker="$host_os dld.so"
14558 shlibpath_var=LD_LIBRARY_PATH
14559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 if test "X$HPUX_IA64_MODE" = X32; then
14563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14564 else
14565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14569 hppa*64*)
14570 shrext='.sl'
14571 hardcode_into_libs=yes
14572 dynamic_linker="$host_os dld.sl"
14573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14581 shrext='.sl'
14582 dynamic_linker="$host_os dld.sl"
14583 shlibpath_var=SHLIB_PATH
14584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 soname_spec='${libname}${release}${shared_ext}$major'
14588 esac
14589 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14590 postinstall_cmds='chmod 555 $lib'
14593 irix5* | irix6* | nonstopux*)
14594 case $host_os in
14595 nonstopux*) version_type=nonstopux ;;
14597 if test "$lt_cv_prog_gnu_ld" = yes; then
14598 version_type=linux
14599 else
14600 version_type=irix
14601 fi ;;
14602 esac
14603 need_lib_prefix=no
14604 need_version=no
14605 soname_spec='${libname}${release}${shared_ext}$major'
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14607 case $host_os in
14608 irix5* | nonstopux*)
14609 libsuff= shlibsuff=
14612 case $LD in # libtool.m4 will add one of these switches to LD
14613 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14614 libsuff= shlibsuff= libmagic=32-bit;;
14615 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14616 libsuff=32 shlibsuff=N32 libmagic=N32;;
14617 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14618 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14619 *) libsuff= shlibsuff= libmagic=never-match;;
14620 esac
14622 esac
14623 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14624 shlibpath_overrides_runpath=no
14625 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14626 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14627 hardcode_into_libs=yes
14630 # No shared lib support for Linux oldld, aout, or coff.
14631 linux*oldld* | linux*aout* | linux*coff*)
14632 dynamic_linker=no
14635 # This must be Linux ELF.
14636 linux*)
14637 version_type=linux
14638 need_lib_prefix=no
14639 need_version=no
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=no
14645 # This implies no fast_install, which is unacceptable.
14646 # Some rework will be needed to allow for fast_install
14647 # before this can be enabled.
14648 hardcode_into_libs=yes
14650 # We used to test for /lib/ld.so.1 and disable shared libraries on
14651 # powerpc, because MkLinux only supported shared libraries with the
14652 # GNU dynamic linker. Since this was broken with cross compilers,
14653 # most powerpc-linux boxes support dynamic linking these days and
14654 # people can always --disable-shared, the test was removed, and we
14655 # assume the GNU/Linux dynamic linker is in use.
14656 dynamic_linker='GNU/Linux ld.so'
14659 netbsd*)
14660 version_type=sunos
14661 need_lib_prefix=no
14662 need_version=no
14663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14666 dynamic_linker='NetBSD (a.out) ld.so'
14667 else
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 dynamic_linker='NetBSD ld.elf_so'
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=yes
14674 hardcode_into_libs=yes
14677 newsos6)
14678 version_type=linux
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 shlibpath_overrides_runpath=yes
14684 nto-qnx)
14685 version_type=linux
14686 need_lib_prefix=no
14687 need_version=no
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14690 shlibpath_var=LD_LIBRARY_PATH
14691 shlibpath_overrides_runpath=yes
14694 openbsd*)
14695 version_type=sunos
14696 need_lib_prefix=no
14697 need_version=no
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14702 case $host_os in
14703 openbsd2.[89] | openbsd2.[89].*)
14704 shlibpath_overrides_runpath=no
14707 shlibpath_overrides_runpath=yes
14709 esac
14710 else
14711 shlibpath_overrides_runpath=yes
14715 os2*)
14716 libname_spec='$name'
14717 shrext=".dll"
14718 need_lib_prefix=no
14719 library_names_spec='$libname${shared_ext} $libname.a'
14720 dynamic_linker='OS/2 ld.exe'
14721 shlibpath_var=LIBPATH
14724 osf3* | osf4* | osf5*)
14725 version_type=osf
14726 need_lib_prefix=no
14727 need_version=no
14728 soname_spec='${libname}${release}${shared_ext}$major'
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14732 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14735 sco3.2v5*)
14736 version_type=osf
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 shlibpath_var=LD_LIBRARY_PATH
14742 solaris*)
14743 version_type=linux
14744 need_lib_prefix=no
14745 need_version=no
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=yes
14750 hardcode_into_libs=yes
14751 # ldd complains unless libraries are executable
14752 postinstall_cmds='chmod +x $lib'
14755 sunos4*)
14756 version_type=sunos
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14758 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 shlibpath_overrides_runpath=yes
14761 if test "$with_gnu_ld" = yes; then
14762 need_lib_prefix=no
14764 need_version=yes
14767 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14768 version_type=linux
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770 soname_spec='${libname}${release}${shared_ext}$major'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 case $host_vendor in
14773 sni)
14774 shlibpath_overrides_runpath=no
14775 need_lib_prefix=no
14776 export_dynamic_flag_spec='${wl}-Blargedynsym'
14777 runpath_var=LD_RUN_PATH
14779 siemens)
14780 need_lib_prefix=no
14782 motorola)
14783 need_lib_prefix=no
14784 need_version=no
14785 shlibpath_overrides_runpath=no
14786 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14788 esac
14791 sysv4*MP*)
14792 if test -d /usr/nec ;then
14793 version_type=linux
14794 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14795 soname_spec='$libname${shared_ext}.$major'
14796 shlibpath_var=LD_LIBRARY_PATH
14800 uts4*)
14801 version_type=linux
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 shlibpath_var=LD_LIBRARY_PATH
14808 dynamic_linker=no
14810 esac
14811 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14812 echo "${ECHO_T}$dynamic_linker" >&6
14813 test "$dynamic_linker" = no && can_build_shared=no
14816 # The else clause should only fire when bootstrapping the
14817 # libtool distribution, otherwise you forgot to ship ltmain.sh
14818 # with your package, and you will get complaints that there are
14819 # no rules to generate ltmain.sh.
14820 if test -f "$ltmain"; then
14821 # See if we are running on zsh, and set the options which allow our commands through
14822 # without removal of \ escapes.
14823 if test -n "${ZSH_VERSION+set}" ; then
14824 setopt NO_GLOB_SUBST
14826 # Now quote all the things that may contain metacharacters while being
14827 # careful not to overquote the AC_SUBSTed values. We take copies of the
14828 # variables and quote the copies for generation of the libtool script.
14829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14830 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14831 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14832 deplibs_check_method reload_flag reload_cmds need_locks \
14833 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14834 lt_cv_sys_global_symbol_to_c_name_address \
14835 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14836 old_postinstall_cmds old_postuninstall_cmds \
14837 compiler_F77 \
14838 CC_F77 \
14839 LD_F77 \
14840 lt_prog_compiler_wl_F77 \
14841 lt_prog_compiler_pic_F77 \
14842 lt_prog_compiler_static_F77 \
14843 lt_prog_compiler_no_builtin_flag_F77 \
14844 export_dynamic_flag_spec_F77 \
14845 thread_safe_flag_spec_F77 \
14846 whole_archive_flag_spec_F77 \
14847 enable_shared_with_static_runtimes_F77 \
14848 old_archive_cmds_F77 \
14849 old_archive_from_new_cmds_F77 \
14850 predep_objects_F77 \
14851 postdep_objects_F77 \
14852 predeps_F77 \
14853 postdeps_F77 \
14854 compiler_lib_search_path_F77 \
14855 archive_cmds_F77 \
14856 archive_expsym_cmds_F77 \
14857 postinstall_cmds_F77 \
14858 postuninstall_cmds_F77 \
14859 old_archive_from_expsyms_cmds_F77 \
14860 allow_undefined_flag_F77 \
14861 no_undefined_flag_F77 \
14862 export_symbols_cmds_F77 \
14863 hardcode_libdir_flag_spec_F77 \
14864 hardcode_libdir_flag_spec_ld_F77 \
14865 hardcode_libdir_separator_F77 \
14866 hardcode_automatic_F77 \
14867 module_cmds_F77 \
14868 module_expsym_cmds_F77 \
14869 lt_cv_prog_compiler_c_o_F77 \
14870 exclude_expsyms_F77 \
14871 include_expsyms_F77; do
14873 case $var in
14874 old_archive_cmds_F77 | \
14875 old_archive_from_new_cmds_F77 | \
14876 archive_cmds_F77 | \
14877 archive_expsym_cmds_F77 | \
14878 module_cmds_F77 | \
14879 module_expsym_cmds_F77 | \
14880 old_archive_from_expsyms_cmds_F77 | \
14881 export_symbols_cmds_F77 | \
14882 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14883 postinstall_cmds | postuninstall_cmds | \
14884 old_postinstall_cmds | old_postuninstall_cmds | \
14885 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14886 # Double-quote double-evaled strings.
14887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
14890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14892 esac
14893 done
14895 case $lt_echo in
14896 *'\$0 --fallback-echo"')
14897 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14899 esac
14901 cfgfile="$ofile"
14903 cat <<__EOF__ >> "$cfgfile"
14904 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14906 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14908 # Set the command separator (default: ~)
14909 _S_=\${LIBTOOL_CMD_SEP-\~}
14911 # Shell to use when invoking shell scripts.
14912 SHELL=$lt_SHELL
14914 # Whether or not to build shared libraries.
14915 build_libtool_libs=$enable_shared
14917 # Whether or not to build static libraries.
14918 build_old_libs=$enable_static
14920 # Whether or not to add -lc for building shared libraries.
14921 build_libtool_need_lc=$archive_cmds_need_lc_F77
14923 # Whether or not to disallow shared libs when runtime libs are static
14924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14926 # Whether or not to optimize for fast installation.
14927 fast_install=$enable_fast_install
14929 # The host system.
14930 host_alias=$host_alias
14931 host=$host
14933 # An echo program that does not interpret backslashes.
14934 echo=$lt_echo
14936 # The archiver.
14937 AR=$lt_AR
14938 AR_FLAGS=$lt_AR_FLAGS
14940 # A C compiler.
14941 LTCC=$lt_LTCC
14943 # A language-specific compiler.
14944 CC=$lt_compiler_F77
14946 # Is the compiler the GNU C compiler?
14947 with_gcc=$GCC_F77
14949 # An ERE matcher.
14950 EGREP=$lt_EGREP
14952 # The linker used to build libraries.
14953 LD=$lt_LD_F77
14955 # Whether we need hard or soft links.
14956 LN_S=$lt_LN_S
14958 # A BSD-compatible nm program.
14959 NM=$lt_NM
14961 # A symbol stripping program
14962 STRIP=$STRIP
14964 # Used to examine libraries when file_magic_cmd begins "file"
14965 MAGIC_CMD=$MAGIC_CMD
14967 # Used on cygwin: DLL creation program.
14968 DLLTOOL="$DLLTOOL"
14970 # Used on cygwin: object dumper.
14971 OBJDUMP="$OBJDUMP"
14973 # Used on cygwin: assembler.
14974 AS="$AS"
14976 # The name of the directory that contains temporary libtool files.
14977 objdir=$objdir
14979 # How to create reloadable object files.
14980 reload_flag=$lt_reload_flag
14981 reload_cmds=$lt_reload_cmds
14983 # How to pass a linker flag through the compiler.
14984 wl=$lt_lt_prog_compiler_wl_F77
14986 # Object file suffix (normally "o").
14987 objext="$ac_objext"
14989 # Old archive suffix (normally "a").
14990 libext="$libext"
14992 # Shared library suffix (normally ".so").
14993 shrext='$shrext'
14995 # Executable file suffix (normally "").
14996 exeext="$exeext"
14998 # Additional compiler flags for building library objects.
14999 pic_flag=$lt_lt_prog_compiler_pic_F77
15000 pic_mode=$pic_mode
15002 # What is the maximum length of a command?
15003 max_cmd_len=$lt_cv_sys_max_cmd_len
15005 # Does compiler simultaneously support -c and -o options?
15006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15008 # Must we lock files when doing compilation ?
15009 need_locks=$lt_need_locks
15011 # Do we need the lib prefix for modules?
15012 need_lib_prefix=$need_lib_prefix
15014 # Do we need a version for libraries?
15015 need_version=$need_version
15017 # Whether dlopen is supported.
15018 dlopen_support=$enable_dlopen
15020 # Whether dlopen of programs is supported.
15021 dlopen_self=$enable_dlopen_self
15023 # Whether dlopen of statically linked programs is supported.
15024 dlopen_self_static=$enable_dlopen_self_static
15026 # Compiler flag to prevent dynamic linking.
15027 link_static_flag=$lt_lt_prog_compiler_static_F77
15029 # Compiler flag to turn off builtin functions.
15030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15032 # Compiler flag to allow reflexive dlopens.
15033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15035 # Compiler flag to generate shared objects directly from archives.
15036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15038 # Compiler flag to generate thread-safe objects.
15039 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15041 # Library versioning type.
15042 version_type=$version_type
15044 # Format of library name prefix.
15045 libname_spec=$lt_libname_spec
15047 # List of archive names. First name is the real one, the rest are links.
15048 # The last name is the one that the linker finds with -lNAME.
15049 library_names_spec=$lt_library_names_spec
15051 # The coded name of the library, if different from the real name.
15052 soname_spec=$lt_soname_spec
15054 # Commands used to build and install an old-style archive.
15055 RANLIB=$lt_RANLIB
15056 old_archive_cmds=$lt_old_archive_cmds_F77
15057 old_postinstall_cmds=$lt_old_postinstall_cmds
15058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15060 # Create an old-style archive from a shared archive.
15061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15063 # Create a temporary old-style archive to link instead of a shared archive.
15064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15066 # Commands used to build and install a shared archive.
15067 archive_cmds=$lt_archive_cmds_F77
15068 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15069 postinstall_cmds=$lt_postinstall_cmds
15070 postuninstall_cmds=$lt_postuninstall_cmds
15072 # Commands used to build a loadable module (assumed same as above if empty)
15073 module_cmds=$lt_module_cmds_F77
15074 module_expsym_cmds=$lt_module_expsym_cmds_F77
15076 # Commands to strip libraries.
15077 old_striplib=$lt_old_striplib
15078 striplib=$lt_striplib
15080 # Dependencies to place before the objects being linked to create a
15081 # shared library.
15082 predep_objects=$lt_predep_objects_F77
15084 # Dependencies to place after the objects being linked to create a
15085 # shared library.
15086 postdep_objects=$lt_postdep_objects_F77
15088 # Dependencies to place before the objects being linked to create a
15089 # shared library.
15090 predeps=$lt_predeps_F77
15092 # Dependencies to place after the objects being linked to create a
15093 # shared library.
15094 postdeps=$lt_postdeps_F77
15096 # The library search path used internally by the compiler when linking
15097 # a shared library.
15098 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15100 # Method to check whether dependent libraries are shared objects.
15101 deplibs_check_method=$lt_deplibs_check_method
15103 # Command to use when deplibs_check_method == file_magic.
15104 file_magic_cmd=$lt_file_magic_cmd
15106 # Flag that allows shared libraries with undefined symbols to be built.
15107 allow_undefined_flag=$lt_allow_undefined_flag_F77
15109 # Flag that forces no undefined symbols.
15110 no_undefined_flag=$lt_no_undefined_flag_F77
15112 # Commands used to finish a libtool library installation in a directory.
15113 finish_cmds=$lt_finish_cmds
15115 # Same as above, but a single script fragment to be evaled but not shown.
15116 finish_eval=$lt_finish_eval
15118 # Take the output of nm and produce a listing of raw symbols and C names.
15119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15121 # Transform the output of nm in a proper C declaration
15122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15124 # Transform the output of nm in a C name address pair
15125 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15127 # This is the shared library runtime path variable.
15128 runpath_var=$runpath_var
15130 # This is the shared library path variable.
15131 shlibpath_var=$shlibpath_var
15133 # Is shlibpath searched before the hard-coded library search path?
15134 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15136 # How to hardcode a shared library path into an executable.
15137 hardcode_action=$hardcode_action_F77
15139 # Whether we should hardcode library paths into libraries.
15140 hardcode_into_libs=$hardcode_into_libs
15142 # Flag to hardcode \$libdir into a binary during linking.
15143 # This must work even if \$libdir does not exist.
15144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15146 # If ld is used when linking, flag to hardcode \$libdir into
15147 # a binary during linking. This must work even if \$libdir does
15148 # not exist.
15149 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15151 # Whether we need a single -rpath flag with a separated argument.
15152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15154 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15155 # resulting binary.
15156 hardcode_direct=$hardcode_direct_F77
15158 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15159 # resulting binary.
15160 hardcode_minus_L=$hardcode_minus_L_F77
15162 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15163 # the resulting binary.
15164 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15166 # Set to yes if building a shared library automatically hardcodes DIR into the library
15167 # and all subsequent libraries and executables linked against it.
15168 hardcode_automatic=$hardcode_automatic_F77
15170 # Variables whose values should be saved in libtool wrapper scripts and
15171 # restored at relink time.
15172 variables_saved_for_relink="$variables_saved_for_relink"
15174 # Whether libtool must link a program against all its dependency libraries.
15175 link_all_deplibs=$link_all_deplibs_F77
15177 # Compile-time system search path for libraries
15178 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15180 # Run-time system search path for libraries
15181 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15183 # Fix the shell variable \$srcfile for the compiler.
15184 fix_srcfile_path="$fix_srcfile_path_F77"
15186 # Set to yes if exported symbols are required.
15187 always_export_symbols=$always_export_symbols_F77
15189 # The commands to list exported symbols.
15190 export_symbols_cmds=$lt_export_symbols_cmds_F77
15192 # The commands to extract the exported symbol list from a shared archive.
15193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15195 # Symbols that should not be listed in the preloaded symbols.
15196 exclude_expsyms=$lt_exclude_expsyms_F77
15198 # Symbols that must always be exported.
15199 include_expsyms=$lt_include_expsyms_F77
15201 # ### END LIBTOOL TAG CONFIG: $tagname
15203 __EOF__
15206 else
15207 # If there is no Makefile yet, we rely on a make rule to execute
15208 # `config.status --recheck' to rerun these tests and create the
15209 # libtool script then.
15210 test -f Makefile && make "$ltmain"
15214 ac_ext=c
15215 ac_cpp='$CPP $CPPFLAGS'
15216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15220 CC="$lt_save_CC"
15222 else
15223 tagname=""
15227 GCJ)
15228 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15232 # Source file extension for Java test sources.
15233 ac_ext=java
15235 # Object file extension for compiled Java test sources.
15236 objext=o
15237 objext_GCJ=$objext
15239 # Code to be used in simple compile tests
15240 lt_simple_compile_test_code="class foo {}\n"
15242 # Code to be used in simple link tests
15243 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15245 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15247 # If no C compiler was specified, use CC.
15248 LTCC=${LTCC-"$CC"}
15250 # Allow CC to be a program name with arguments.
15251 compiler=$CC
15254 # Allow CC to be a program name with arguments.
15255 lt_save_CC="$CC"
15256 CC=${GCJ-"gcj"}
15257 compiler=$CC
15258 compiler_GCJ=$CC
15260 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15261 archive_cmds_need_lc_GCJ=no
15264 lt_prog_compiler_no_builtin_flag_GCJ=
15266 if test "$GCC" = yes; then
15267 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15269 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15270 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15271 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274 lt_cv_prog_compiler_rtti_exceptions=no
15275 ac_outfile=conftest.$ac_objext
15276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15277 lt_compiler_flag="-fno-rtti -fno-exceptions"
15278 # Insert the option either (1) after the last *FLAGS variable, or
15279 # (2) before a word containing "conftest.", or (3) at the end.
15280 # Note that $ac_compile itself does not contain backslashes and begins
15281 # with a dollar sign (not a hyphen), so the echo should work correctly.
15282 # The option is referenced via a variable to avoid confusing sed.
15283 lt_compile=`echo "$ac_compile" | $SED \
15284 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15286 -e 's:$: $lt_compiler_flag:'`
15287 (eval echo "\"\$as_me:15219: $lt_compile\"" >&5)
15288 (eval "$lt_compile" 2>conftest.err)
15289 ac_status=$?
15290 cat conftest.err >&5
15291 echo "$as_me:15223: \$? = $ac_status" >&5
15292 if (exit $ac_status) && test -s "$ac_outfile"; then
15293 # The compiler can only warn and ignore the option if not recognized
15294 # So say no if there are warnings
15295 if test ! -s conftest.err; then
15296 lt_cv_prog_compiler_rtti_exceptions=yes
15299 $rm conftest*
15302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15303 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15305 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15306 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15307 else
15313 lt_prog_compiler_wl_GCJ=
15314 lt_prog_compiler_pic_GCJ=
15315 lt_prog_compiler_static_GCJ=
15317 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15318 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15320 if test "$GCC" = yes; then
15321 lt_prog_compiler_wl_GCJ='-Wl,'
15322 lt_prog_compiler_static_GCJ='-static'
15324 case $host_os in
15325 aix*)
15326 # All AIX code is PIC.
15327 if test "$host_cpu" = ia64; then
15328 # AIX 5 now supports IA64 processor
15329 lt_prog_compiler_static_GCJ='-Bstatic'
15333 amigaos*)
15334 # FIXME: we need at least 68020 code to build shared libraries, but
15335 # adding the `-m68020' flag to GCC prevents building anything better,
15336 # like `-m68040'.
15337 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15340 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15341 # PIC is the default for these OSes.
15344 mingw* | pw32* | os2*)
15345 # This hack is so that the source file can tell whether it is being
15346 # built for inclusion in a dll (and should export symbols for example).
15347 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15350 darwin* | rhapsody*)
15351 # PIC is the default on this platform
15352 # Common symbols not allowed in MH_DYLIB files
15353 lt_prog_compiler_pic_GCJ='-fno-common'
15356 msdosdjgpp*)
15357 # Just because we use GCC doesn't mean we suddenly get shared libraries
15358 # on systems that don't support them.
15359 lt_prog_compiler_can_build_shared_GCJ=no
15360 enable_shared=no
15363 sysv4*MP*)
15364 if test -d /usr/nec; then
15365 lt_prog_compiler_pic_GCJ=-Kconform_pic
15369 hpux*)
15370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15371 # not for PA HP-UX.
15372 case "$host_cpu" in
15373 hppa*64*|ia64*)
15374 # +Z the default
15377 lt_prog_compiler_pic_GCJ='-fPIC'
15379 esac
15383 lt_prog_compiler_pic_GCJ='-fPIC'
15385 esac
15386 else
15387 # PORTME Check for flag to pass linker flags through the system compiler.
15388 case $host_os in
15389 aix*)
15390 lt_prog_compiler_wl_GCJ='-Wl,'
15391 if test "$host_cpu" = ia64; then
15392 # AIX 5 now supports IA64 processor
15393 lt_prog_compiler_static_GCJ='-Bstatic'
15394 else
15395 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15399 mingw* | pw32* | os2*)
15400 # This hack is so that the source file can tell whether it is being
15401 # built for inclusion in a dll (and should export symbols for example).
15402 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15405 hpux9* | hpux10* | hpux11*)
15406 lt_prog_compiler_wl_GCJ='-Wl,'
15407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15408 # not for PA HP-UX.
15409 case "$host_cpu" in
15410 hppa*64*|ia64*)
15411 # +Z the default
15414 lt_prog_compiler_pic_GCJ='+Z'
15416 esac
15417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15418 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15421 irix5* | irix6* | nonstopux*)
15422 lt_prog_compiler_wl_GCJ='-Wl,'
15423 # PIC (with -KPIC) is the default.
15424 lt_prog_compiler_static_GCJ='-non_shared'
15427 newsos6)
15428 lt_prog_compiler_pic_GCJ='-KPIC'
15429 lt_prog_compiler_static_GCJ='-Bstatic'
15432 linux*)
15433 case $CC in
15434 icc|ecc)
15435 lt_prog_compiler_wl_GCJ='-Wl,'
15436 lt_prog_compiler_pic_GCJ='-KPIC'
15437 lt_prog_compiler_static_GCJ='-static'
15439 ccc)
15440 lt_prog_compiler_wl_GCJ='-Wl,'
15441 # All Alpha code is PIC.
15442 lt_prog_compiler_static_GCJ='-non_shared'
15444 esac
15447 osf3* | osf4* | osf5*)
15448 lt_prog_compiler_wl_GCJ='-Wl,'
15449 # All OSF/1 code is PIC.
15450 lt_prog_compiler_static_GCJ='-non_shared'
15453 sco3.2v5*)
15454 lt_prog_compiler_pic_GCJ='-Kpic'
15455 lt_prog_compiler_static_GCJ='-dn'
15458 solaris*)
15459 lt_prog_compiler_wl_GCJ='-Wl,'
15460 lt_prog_compiler_pic_GCJ='-KPIC'
15461 lt_prog_compiler_static_GCJ='-Bstatic'
15464 sunos4*)
15465 lt_prog_compiler_wl_GCJ='-Qoption ld '
15466 lt_prog_compiler_pic_GCJ='-PIC'
15467 lt_prog_compiler_static_GCJ='-Bstatic'
15470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15471 lt_prog_compiler_wl_GCJ='-Wl,'
15472 lt_prog_compiler_pic_GCJ='-KPIC'
15473 lt_prog_compiler_static_GCJ='-Bstatic'
15476 sysv4*MP*)
15477 if test -d /usr/nec ;then
15478 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15479 lt_prog_compiler_static_GCJ='-Bstatic'
15483 uts4*)
15484 lt_prog_compiler_pic_GCJ='-pic'
15485 lt_prog_compiler_static_GCJ='-Bstatic'
15489 lt_prog_compiler_can_build_shared_GCJ=no
15491 esac
15494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15495 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15498 # Check to make sure the PIC flag actually works.
15500 if test -n "$lt_prog_compiler_pic_GCJ"; then
15501 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15502 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15503 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506 lt_prog_compiler_pic_works_GCJ=no
15507 ac_outfile=conftest.$ac_objext
15508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15509 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15510 # Insert the option either (1) after the last *FLAGS variable, or
15511 # (2) before a word containing "conftest.", or (3) at the end.
15512 # Note that $ac_compile itself does not contain backslashes and begins
15513 # with a dollar sign (not a hyphen), so the echo should work correctly.
15514 # The option is referenced via a variable to avoid confusing sed.
15515 lt_compile=`echo "$ac_compile" | $SED \
15516 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15518 -e 's:$: $lt_compiler_flag:'`
15519 (eval echo "\"\$as_me:15451: $lt_compile\"" >&5)
15520 (eval "$lt_compile" 2>conftest.err)
15521 ac_status=$?
15522 cat conftest.err >&5
15523 echo "$as_me:15455: \$? = $ac_status" >&5
15524 if (exit $ac_status) && test -s "$ac_outfile"; then
15525 # The compiler can only warn and ignore the option if not recognized
15526 # So say no if there are warnings
15527 if test ! -s conftest.err; then
15528 lt_prog_compiler_pic_works_GCJ=yes
15531 $rm conftest*
15534 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15535 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15537 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15538 case $lt_prog_compiler_pic_GCJ in
15539 "" | " "*) ;;
15540 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15541 esac
15542 else
15543 lt_prog_compiler_pic_GCJ=
15544 lt_prog_compiler_can_build_shared_GCJ=no
15548 case "$host_os" in
15549 # For platforms which do not support PIC, -DPIC is meaningless:
15550 *djgpp*)
15551 lt_prog_compiler_pic_GCJ=
15554 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15556 esac
15558 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15559 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15560 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 lt_cv_prog_compiler_c_o_GCJ=no
15564 $rm -r conftest 2>/dev/null
15565 mkdir conftest
15566 cd conftest
15567 mkdir out
15568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15570 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15571 # that will create temporary files in the current directory regardless of
15572 # the output directory. Thus, making CWD read-only will cause this test
15573 # to fail, enabling locking or at least warning the user not to do parallel
15574 # builds.
15575 chmod -w .
15577 lt_compiler_flag="-o out/conftest2.$ac_objext"
15578 # Insert the option either (1) after the last *FLAGS variable, or
15579 # (2) before a word containing "conftest.", or (3) at the end.
15580 # Note that $ac_compile itself does not contain backslashes and begins
15581 # with a dollar sign (not a hyphen), so the echo should work correctly.
15582 lt_compile=`echo "$ac_compile" | $SED \
15583 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15585 -e 's:$: $lt_compiler_flag:'`
15586 (eval echo "\"\$as_me:15518: $lt_compile\"" >&5)
15587 (eval "$lt_compile" 2>out/conftest.err)
15588 ac_status=$?
15589 cat out/conftest.err >&5
15590 echo "$as_me:15522: \$? = $ac_status" >&5
15591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15592 then
15593 # The compiler can only warn and ignore the option if not recognized
15594 # So say no if there are warnings
15595 if test ! -s out/conftest.err; then
15596 lt_cv_prog_compiler_c_o_GCJ=yes
15599 chmod u+w .
15600 $rm conftest* out/*
15601 rmdir out
15602 cd ..
15603 rmdir conftest
15604 $rm conftest*
15607 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15608 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15611 hard_links="nottested"
15612 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15613 # do not overwrite the value of need_locks provided by the user
15614 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15615 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15616 hard_links=yes
15617 $rm conftest*
15618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15619 touch conftest.a
15620 ln conftest.a conftest.b 2>&5 || hard_links=no
15621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15622 echo "$as_me:$LINENO: result: $hard_links" >&5
15623 echo "${ECHO_T}$hard_links" >&6
15624 if test "$hard_links" = no; then
15625 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15626 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15627 need_locks=warn
15629 else
15630 need_locks=no
15633 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15634 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15636 runpath_var=
15637 allow_undefined_flag_GCJ=
15638 enable_shared_with_static_runtimes_GCJ=no
15639 archive_cmds_GCJ=
15640 archive_expsym_cmds_GCJ=
15641 old_archive_From_new_cmds_GCJ=
15642 old_archive_from_expsyms_cmds_GCJ=
15643 export_dynamic_flag_spec_GCJ=
15644 whole_archive_flag_spec_GCJ=
15645 thread_safe_flag_spec_GCJ=
15646 hardcode_libdir_flag_spec_GCJ=
15647 hardcode_libdir_flag_spec_ld_GCJ=
15648 hardcode_libdir_separator_GCJ=
15649 hardcode_direct_GCJ=no
15650 hardcode_minus_L_GCJ=no
15651 hardcode_shlibpath_var_GCJ=unsupported
15652 link_all_deplibs_GCJ=unknown
15653 hardcode_automatic_GCJ=no
15654 module_cmds_GCJ=
15655 module_expsym_cmds_GCJ=
15656 always_export_symbols_GCJ=no
15657 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15658 # include_expsyms should be a list of space-separated symbols to be *always*
15659 # included in the symbol list
15660 include_expsyms_GCJ=
15661 # exclude_expsyms can be an extended regexp of symbols to exclude
15662 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15663 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15664 # as well as any symbol that contains `d'.
15665 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15666 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15667 # platforms (ab)use it in PIC code, but their linkers get confused if
15668 # the symbol is explicitly referenced. Since portable code cannot
15669 # rely on this symbol name, it's probably fine to never include it in
15670 # preloaded symbol tables.
15671 extract_expsyms_cmds=
15673 case $host_os in
15674 cygwin* | mingw* | pw32*)
15675 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15676 # When not using gcc, we currently assume that we are using
15677 # Microsoft Visual C++.
15678 if test "$GCC" != yes; then
15679 with_gnu_ld=no
15682 openbsd*)
15683 with_gnu_ld=no
15685 esac
15687 ld_shlibs_GCJ=yes
15688 if test "$with_gnu_ld" = yes; then
15689 # If archive_cmds runs LD, not CC, wlarc should be empty
15690 wlarc='${wl}'
15692 # See if GNU ld supports shared libraries.
15693 case $host_os in
15694 aix3* | aix4* | aix5*)
15695 # On AIX/PPC, the GNU linker is very broken
15696 if test "$host_cpu" != ia64; then
15697 ld_shlibs_GCJ=no
15698 cat <<EOF 1>&2
15700 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15701 *** to be unable to reliably create shared libraries on AIX.
15702 *** Therefore, libtool is disabling shared libraries support. If you
15703 *** really care for shared libraries, you may want to modify your PATH
15704 *** so that a non-GNU linker is found, and then restart.
15710 amigaos*)
15711 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
15712 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15713 hardcode_minus_L_GCJ=yes
15715 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15716 # that the semantics of dynamic libraries on AmigaOS, at least up
15717 # to version 4, is to share data among multiple programs linked
15718 # with the same dynamic library. Since this doesn't match the
15719 # behavior of shared libraries on other platforms, we can't use
15720 # them.
15721 ld_shlibs_GCJ=no
15724 beos*)
15725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15726 allow_undefined_flag_GCJ=unsupported
15727 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15728 # support --undefined. This deserves some investigation. FIXME
15729 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15730 else
15731 ld_shlibs_GCJ=no
15735 cygwin* | mingw* | pw32*)
15736 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15737 # as there is no search path for DLLs.
15738 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15739 allow_undefined_flag_GCJ=unsupported
15740 always_export_symbols_GCJ=no
15741 enable_shared_with_static_runtimes_GCJ=yes
15742 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15744 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15745 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15746 # If the export-symbols file already is a .def file (1st line
15747 # is EXPORTS), use it as is; otherwise, prepend...
15748 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15749 cp $export_symbols $output_objdir/$soname.def;
15750 else
15751 echo EXPORTS > $output_objdir/$soname.def;
15752 cat $export_symbols >> $output_objdir/$soname.def;
15753 fi${_S_}
15754 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15755 else
15756 ld_shlibs=no
15760 netbsd*)
15761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15762 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15763 wlarc=
15764 else
15765 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15766 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15770 solaris* | sysv5*)
15771 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15772 ld_shlibs_GCJ=no
15773 cat <<EOF 1>&2
15775 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15776 *** create shared libraries on Solaris systems. Therefore, libtool
15777 *** is disabling shared libraries support. We urge you to upgrade GNU
15778 *** binutils to release 2.9.1 or newer. Another option is to modify
15779 *** your PATH or compiler configuration so that the native linker is
15780 *** used, and then restart.
15783 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15784 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15785 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15786 else
15787 ld_shlibs_GCJ=no
15791 sunos4*)
15792 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15793 wlarc=
15794 hardcode_direct_GCJ=yes
15795 hardcode_shlibpath_var_GCJ=no
15799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15800 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15802 else
15803 ld_shlibs_GCJ=no
15806 esac
15808 if test "$ld_shlibs_GCJ" = yes; then
15809 runpath_var=LD_RUN_PATH
15810 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15811 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15812 # ancient GNU ld didn't support --whole-archive et. al.
15813 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15814 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15815 else
15816 whole_archive_flag_spec_GCJ=
15819 else
15820 # PORTME fill in a description of your system's linker (not GNU ld)
15821 case $host_os in
15822 aix3*)
15823 allow_undefined_flag_GCJ=unsupported
15824 always_export_symbols_GCJ=yes
15825 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
15826 # Note: this linker hardcodes the directories in LIBPATH if there
15827 # are no directories specified by -L.
15828 hardcode_minus_L_GCJ=yes
15829 if test "$GCC" = yes && test -z "$link_static_flag"; then
15830 # Neither direct hardcoding nor static linking is supported with a
15831 # broken collect2.
15832 hardcode_direct_GCJ=unsupported
15836 aix4* | aix5*)
15837 if test "$host_cpu" = ia64; then
15838 # On IA64, the linker does run time linking by default, so we don't
15839 # have to do anything special.
15840 aix_use_runtimelinking=no
15841 exp_sym_flag='-Bexport'
15842 no_entry_flag=""
15843 else
15844 # If we're using GNU nm, then we don't want the "-C" option.
15845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15846 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15847 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'
15848 else
15849 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'
15851 aix_use_runtimelinking=no
15853 # Test if we are trying to use run time linking or normal
15854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15855 # need to do runtime linking.
15856 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15857 for ld_flag in $LDFLAGS; do
15858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15859 aix_use_runtimelinking=yes
15860 break
15862 done
15863 esac
15865 exp_sym_flag='-bexport'
15866 no_entry_flag='-bnoentry'
15869 # When large executables or shared objects are built, AIX ld can
15870 # have problems creating the table of contents. If linking a library
15871 # or program results in "error TOC overflow" add -mminimal-toc to
15872 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15873 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15875 archive_cmds_GCJ=''
15876 hardcode_direct_GCJ=yes
15877 hardcode_libdir_separator_GCJ=':'
15878 link_all_deplibs_GCJ=yes
15880 if test "$GCC" = yes; then
15881 case $host_os in aix4.012|aix4.012.*)
15882 # We only want to do this on AIX 4.2 and lower, the check
15883 # below for broken collect2 doesn't work under 4.3+
15884 collect2name=`${CC} -print-prog-name=collect2`
15885 if test -f "$collect2name" && \
15886 strings "$collect2name" | grep resolve_lib_name >/dev/null
15887 then
15888 # We have reworked collect2
15889 hardcode_direct_GCJ=yes
15890 else
15891 # We have old collect2
15892 hardcode_direct_GCJ=unsupported
15893 # It fails to find uninstalled libraries when the uninstalled
15894 # path is not listed in the libpath. Setting hardcode_minus_L
15895 # to unsupported forces relinking
15896 hardcode_minus_L_GCJ=yes
15897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15898 hardcode_libdir_separator_GCJ=
15900 esac
15901 shared_flag='-shared'
15902 else
15903 # not using gcc
15904 if test "$host_cpu" = ia64; then
15905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15906 # chokes on -Wl,-G. The following line is correct:
15907 shared_flag='-G'
15908 else
15909 if test "$aix_use_runtimelinking" = yes; then
15910 shared_flag='${wl}-G'
15911 else
15912 shared_flag='${wl}-bM:SRE'
15917 # It seems that -bexpall does not export symbols beginning with
15918 # underscore (_), so it is better to generate a list of symbols to export.
15919 always_export_symbols_GCJ=yes
15920 if test "$aix_use_runtimelinking" = yes; then
15921 # Warning - without using the other runtime loading flags (-brtl),
15922 # -berok will link without error, but may produce a broken library.
15923 allow_undefined_flag_GCJ='-berok'
15924 # Determine the default libpath from the value encoded in an empty executable.
15925 cat >conftest.$ac_ext <<_ACEOF
15926 #line $LINENO "configure"
15927 /* confdefs.h. */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15934 main ()
15938 return 0;
15940 _ACEOF
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943 (eval $ac_link) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -s conftest$ac_exeext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15956 # Check for a 64-bit object if we didn't find anything.
15957 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; }
15958 }'`; fi
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15967 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15968 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15969 else
15970 if test "$host_cpu" = ia64; then
15971 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15972 allow_undefined_flag_GCJ="-z nodefs"
15973 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15974 else
15975 # Determine the default libpath from the value encoded in an empty executable.
15976 cat >conftest.$ac_ext <<_ACEOF
15977 #line $LINENO "configure"
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15985 main ()
15989 return 0;
15991 _ACEOF
15992 rm -f conftest.$ac_objext conftest$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>&5
15995 ac_status=$?
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
15998 { ac_try='test -s conftest$ac_exeext'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16007 # Check for a 64-bit object if we didn't find anything.
16008 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; }
16009 }'`; fi
16010 else
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16018 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16019 # Warning - without using the other run time loading flags,
16020 # -berok will link without error, but may produce a broken library.
16021 no_undefined_flag_GCJ=' ${wl}-bernotok'
16022 allow_undefined_flag_GCJ=' ${wl}-berok'
16023 # -bexpall does not export symbols beginning with underscore (_)
16024 always_export_symbols_GCJ=yes
16025 # Exported symbols can be pulled into shared objects from archives
16026 whole_archive_flag_spec_GCJ=' '
16027 archive_cmds_need_lc_GCJ=yes
16028 # This is similar to how AIX traditionally builds it's shared libraries.
16029 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16034 amigaos*)
16035 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
16036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16037 hardcode_minus_L_GCJ=yes
16038 # see comment about different semantics on the GNU ld section
16039 ld_shlibs_GCJ=no
16042 bsdi4*)
16043 export_dynamic_flag_spec_GCJ=-rdynamic
16046 cygwin* | mingw* | pw32*)
16047 # When not using gcc, we currently assume that we are using
16048 # Microsoft Visual C++.
16049 # hardcode_libdir_flag_spec is actually meaningless, as there is
16050 # no search path for DLLs.
16051 hardcode_libdir_flag_spec_GCJ=' '
16052 allow_undefined_flag_GCJ=unsupported
16053 # Tell ltmain to make .lib files, not .a files.
16054 libext=lib
16055 # Tell ltmain to make .dll files, not .so files.
16056 shrext=".dll"
16057 # FIXME: Setting linknames here is a bad hack.
16058 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
16059 # The linker will automatically build a .lib file if we build a DLL.
16060 old_archive_From_new_cmds_GCJ='true'
16061 # FIXME: Should let the user specify the lib program.
16062 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16063 fix_srcfile_path='`cygpath -w "$srcfile"`'
16064 enable_shared_with_static_runtimes_GCJ=yes
16067 darwin* | rhapsody*)
16068 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16069 archive_cmds_need_lc_GCJ=no
16070 case "$host_os" in
16071 rhapsody* | darwin1.[012])
16072 allow_undefined_flag_GCJ='-undefined suppress'
16074 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
16075 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16077 *) # Darwin 7.0 on
16078 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
16079 10.[012])
16080 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16082 *) # 10.3 on
16083 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
16084 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16085 else
16086 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16089 esac
16091 esac
16092 # FIXME: Relying on posixy $() will cause problems for
16093 # cross-compilation, but unfortunately the echo tests do not
16094 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16095 # `"' quotes if we put them in here... so don't!
16096 lt_int_apple_cc_single_mod=no
16097 output_verbose_link_cmd='echo'
16098 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16099 lt_int_apple_cc_single_mod=yes
16101 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16102 archive_cmds_GCJ='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16103 else
16104 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16106 module_cmds_GCJ='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16107 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16108 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16109 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16110 else
16111 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16113 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16114 hardcode_direct_GCJ=no
16115 hardcode_automatic_GCJ=yes
16116 hardcode_shlibpath_var_GCJ=unsupported
16117 whole_archive_flag_spec_GCJ='-all_load $convenience'
16118 link_all_deplibs_GCJ=yes
16122 dgux*)
16123 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16125 hardcode_shlibpath_var_GCJ=no
16128 freebsd1*)
16129 ld_shlibs_GCJ=no
16132 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16133 # support. Future versions do this automatically, but an explicit c++rt0.o
16134 # does not break anything, and helps significantly (at the cost of a little
16135 # extra space).
16136 freebsd2.2*)
16137 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16138 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16139 hardcode_direct_GCJ=yes
16140 hardcode_shlibpath_var_GCJ=no
16143 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16144 freebsd2*)
16145 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16146 hardcode_direct_GCJ=yes
16147 hardcode_minus_L_GCJ=yes
16148 hardcode_shlibpath_var_GCJ=no
16151 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16152 freebsd*)
16153 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16154 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16155 hardcode_direct_GCJ=yes
16156 hardcode_shlibpath_var_GCJ=no
16159 hpux9*)
16160 if test "$GCC" = yes; then
16161 archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16162 else
16163 archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16165 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16166 hardcode_libdir_separator_GCJ=:
16167 hardcode_direct_GCJ=yes
16169 # hardcode_minus_L: Not really in the search PATH,
16170 # but as the default location of the library.
16171 hardcode_minus_L_GCJ=yes
16172 export_dynamic_flag_spec_GCJ='${wl}-E'
16175 hpux10* | hpux11*)
16176 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16177 case "$host_cpu" in
16178 hppa*64*|ia64*)
16179 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16182 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16184 esac
16185 else
16186 case "$host_cpu" in
16187 hppa*64*|ia64*)
16188 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16193 esac
16195 if test "$with_gnu_ld" = no; then
16196 case "$host_cpu" in
16197 hppa*64*)
16198 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16199 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16200 hardcode_libdir_separator_GCJ=:
16201 hardcode_direct_GCJ=no
16202 hardcode_shlibpath_var_GCJ=no
16204 ia64*)
16205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16206 hardcode_direct_GCJ=no
16207 hardcode_shlibpath_var_GCJ=no
16209 # hardcode_minus_L: Not really in the search PATH,
16210 # but as the default location of the library.
16211 hardcode_minus_L_GCJ=yes
16214 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16215 hardcode_libdir_separator_GCJ=:
16216 hardcode_direct_GCJ=yes
16217 export_dynamic_flag_spec_GCJ='${wl}-E'
16219 # hardcode_minus_L: Not really in the search PATH,
16220 # but as the default location of the library.
16221 hardcode_minus_L_GCJ=yes
16223 esac
16227 irix5* | irix6* | nonstopux*)
16228 if test "$GCC" = yes; then
16229 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'
16230 else
16231 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'
16232 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16234 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16235 hardcode_libdir_separator_GCJ=:
16236 link_all_deplibs_GCJ=yes
16239 netbsd*)
16240 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16241 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16242 else
16243 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16245 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16246 hardcode_direct_GCJ=yes
16247 hardcode_shlibpath_var_GCJ=no
16250 newsos6)
16251 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16252 hardcode_direct_GCJ=yes
16253 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16254 hardcode_libdir_separator_GCJ=:
16255 hardcode_shlibpath_var_GCJ=no
16258 openbsd*)
16259 hardcode_direct_GCJ=yes
16260 hardcode_shlibpath_var_GCJ=no
16261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16262 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16264 export_dynamic_flag_spec_GCJ='${wl}-E'
16265 else
16266 case $host_os in
16267 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16269 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16272 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16275 esac
16279 os2*)
16280 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16281 hardcode_minus_L_GCJ=yes
16282 allow_undefined_flag_GCJ=unsupported
16283 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16284 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16287 osf3*)
16288 if test "$GCC" = yes; then
16289 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16290 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'
16291 else
16292 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16293 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'
16295 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16296 hardcode_libdir_separator_GCJ=:
16299 osf4* | osf5*) # as osf3* with the addition of -msym flag
16300 if test "$GCC" = yes; then
16301 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16302 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'
16303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16304 else
16305 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16306 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'
16307 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${_S_}
16308 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib${_S_}$rm $lib.exp'
16310 # Both c and cxx compiler support -rpath directly
16311 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16313 hardcode_libdir_separator_GCJ=:
16316 sco3.2v5*)
16317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16318 hardcode_shlibpath_var_GCJ=no
16319 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16320 runpath_var=LD_RUN_PATH
16321 hardcode_runpath_var=yes
16324 solaris*)
16325 no_undefined_flag_GCJ=' -z text'
16326 if test "$GCC" = yes; then
16327 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16328 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
16329 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
16330 else
16331 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
16333 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
16335 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16336 hardcode_shlibpath_var_GCJ=no
16337 case $host_os in
16338 solaris2.[0-5] | solaris2.[0-5].*) ;;
16339 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16340 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16341 esac
16342 link_all_deplibs_GCJ=yes
16345 sunos4*)
16346 if test "x$host_vendor" = xsequent; then
16347 # Use $CC to link under sequent, because it throws in some extra .o
16348 # files that make .init and .fini sections work.
16349 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16350 else
16351 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16353 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16354 hardcode_direct_GCJ=yes
16355 hardcode_minus_L_GCJ=yes
16356 hardcode_shlibpath_var_GCJ=no
16359 sysv4)
16360 case $host_vendor in
16361 sni)
16362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363 hardcode_direct_GCJ=yes # is this really true???
16365 siemens)
16366 ## LD is ld it makes a PLAMLIB
16367 ## CC just makes a GrossModule.
16368 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16369 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16370 hardcode_direct_GCJ=no
16372 motorola)
16373 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16374 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16376 esac
16377 runpath_var='LD_RUN_PATH'
16378 hardcode_shlibpath_var_GCJ=no
16381 sysv4.3*)
16382 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_shlibpath_var_GCJ=no
16384 export_dynamic_flag_spec_GCJ='-Bexport'
16387 sysv4*MP*)
16388 if test -d /usr/nec; then
16389 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16390 hardcode_shlibpath_var_GCJ=no
16391 runpath_var=LD_RUN_PATH
16392 hardcode_runpath_var=yes
16393 ld_shlibs_GCJ=yes
16397 sysv4.2uw2*)
16398 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16399 hardcode_direct_GCJ=yes
16400 hardcode_minus_L_GCJ=no
16401 hardcode_shlibpath_var_GCJ=no
16402 hardcode_runpath_var=yes
16403 runpath_var=LD_RUN_PATH
16406 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16407 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16408 if test "$GCC" = yes; then
16409 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16410 else
16411 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16413 runpath_var='LD_RUN_PATH'
16414 hardcode_shlibpath_var_GCJ=no
16417 sysv5*)
16418 no_undefined_flag_GCJ=' -z text'
16419 # $CC -shared without GNU ld will not create a library from C++
16420 # object files and a static libstdc++, better avoid it by now
16421 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16422 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
16423 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
16424 hardcode_libdir_flag_spec_GCJ=
16425 hardcode_shlibpath_var_GCJ=no
16426 runpath_var='LD_RUN_PATH'
16429 uts4*)
16430 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16432 hardcode_shlibpath_var_GCJ=no
16436 ld_shlibs_GCJ=no
16438 esac
16441 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16442 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16443 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16446 if test "$GCC" = yes; then
16447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16451 # Do we need to explicitly link libc?
16453 case "x$archive_cmds_need_lc_GCJ" in
16454 x|xyes)
16455 # Assume -lc should be added
16456 archive_cmds_need_lc_GCJ=yes
16458 if test "$enable_shared" = yes && test "$GCC" = yes; then
16459 case $archive_cmds_GCJ in
16460 *"$_S_"*)
16461 # FIXME: we may have to deal with multi-command sequences.
16463 '$CC '*)
16464 # Test whether the compiler implicitly links with -lc since on some
16465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16466 # to ld, don't add -lc before -lgcc.
16467 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16468 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16469 $rm conftest*
16470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } 2>conftest.err; then
16477 soname=conftest
16478 lib=conftest
16479 libobjs=conftest.$ac_objext
16480 deplibs=
16481 wl=$lt_prog_compiler_wl_GCJ
16482 compiler_flags=-v
16483 linker_flags=-v
16484 verstring=
16485 output_objdir=.
16486 libname=conftest
16487 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16488 allow_undefined_flag_GCJ=
16489 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16490 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }
16494 then
16495 archive_cmds_need_lc_GCJ=no
16496 else
16497 archive_cmds_need_lc_GCJ=yes
16499 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16500 else
16501 cat conftest.err 1>&5
16503 $rm conftest*
16504 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16505 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16507 esac
16510 esac
16512 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16513 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16514 hardcode_action_GCJ=
16515 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16516 test -n "$runpath_var GCJ" || \
16517 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16519 # We can hardcode non-existant directories.
16520 if test "$hardcode_direct_GCJ" != no &&
16521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16522 # have to relink, otherwise we might link with an installed library
16523 # when we should be linking with a yet-to-be-installed one
16524 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16525 test "$hardcode_minus_L_GCJ" != no; then
16526 # Linking always hardcodes the temporary library directory.
16527 hardcode_action_GCJ=relink
16528 else
16529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16530 hardcode_action_GCJ=immediate
16532 else
16533 # We cannot hardcode anything, or else we can only hardcode existing
16534 # directories.
16535 hardcode_action_GCJ=unsupported
16537 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16538 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16540 if test "$hardcode_action_GCJ" = relink; then
16541 # Fast installation is not supported
16542 enable_fast_install=no
16543 elif test "$shlibpath_overrides_runpath" = yes ||
16544 test "$enable_shared" = no; then
16545 # Fast installation is not necessary
16546 enable_fast_install=needless
16549 striplib=
16550 old_striplib=
16551 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16552 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16553 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16554 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16555 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16556 echo "$as_me:$LINENO: result: yes" >&5
16557 echo "${ECHO_T}yes" >&6
16558 else
16559 # FIXME - insert some real tests, host_os isn't really good enough
16560 case $host_os in
16561 NOT-darwin*)
16562 if test -n "$STRIP" ; then
16563 striplib="$STRIP -x"
16564 echo "$as_me:$LINENO: result: yes" >&5
16565 echo "${ECHO_T}yes" >&6
16566 else
16567 echo "$as_me:$LINENO: result: no" >&5
16568 echo "${ECHO_T}no" >&6
16572 echo "$as_me:$LINENO: result: no" >&5
16573 echo "${ECHO_T}no" >&6
16575 esac
16578 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16579 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16580 library_names_spec=
16581 libname_spec='lib$name'
16582 soname_spec=
16583 shrext=".so"
16584 postinstall_cmds=
16585 postuninstall_cmds=
16586 finish_cmds=
16587 finish_eval=
16588 shlibpath_var=
16589 shlibpath_overrides_runpath=unknown
16590 version_type=none
16591 dynamic_linker="$host_os ld.so"
16592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16593 if test "$GCC" = yes; then
16594 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16595 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16596 # if the path contains ";" then we assume it to be the separator
16597 # otherwise default to the standard path separator (i.e. ":") - it is
16598 # assumed that no part of a normal pathname contains ";" but that should
16599 # okay in the real world where ";" in dirpaths is itself problematic.
16600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16601 else
16602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16604 else
16605 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16607 need_lib_prefix=unknown
16608 hardcode_into_libs=no
16610 # when you set need_version to no, make sure it does not cause -set_version
16611 # flags to be left without arguments
16612 need_version=unknown
16614 case $host_os in
16615 aix3*)
16616 version_type=linux
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16618 shlibpath_var=LIBPATH
16620 # AIX 3 has no versioning support, so we append a major version to the name.
16621 soname_spec='${libname}${release}${shared_ext}$major'
16624 aix4* | aix5*)
16625 version_type=linux
16626 need_lib_prefix=no
16627 need_version=no
16628 hardcode_into_libs=yes
16629 if test "$host_cpu" = ia64; then
16630 # AIX 5 supports IA64
16631 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 else
16634 # With GCC up to 2.95.x, collect2 would create an import file
16635 # for dependence libraries. The import file would start with
16636 # the line `#! .'. This would cause the generated library to
16637 # depend on `.', always an invalid library. This was fixed in
16638 # development snapshots of GCC prior to 3.0.
16639 case $host_os in
16640 aix4 | aix4.[01] | aix4.[01].*)
16641 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16642 echo ' yes '
16643 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16645 else
16646 can_build_shared=no
16649 esac
16650 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16651 # soname into executable. Probably we can add versioning support to
16652 # collect2, so additional links can be useful in future.
16653 if test "$aix_use_runtimelinking" = yes; then
16654 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16655 # instead of lib<name>.a to let people know that these are not
16656 # typical AIX shared libraries.
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658 else
16659 # We preserve .a as extension for shared libraries through AIX4.2
16660 # and later when we are not doing run time linking.
16661 library_names_spec='${libname}${release}.a $libname.a'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16664 shlibpath_var=LIBPATH
16668 amigaos*)
16669 library_names_spec='$libname.ixlibrary $libname.a'
16670 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16671 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'
16674 beos*)
16675 library_names_spec='${libname}${shared_ext}'
16676 dynamic_linker="$host_os ld.so"
16677 shlibpath_var=LIBRARY_PATH
16680 bsdi4*)
16681 version_type=linux
16682 need_version=no
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684 soname_spec='${libname}${release}${shared_ext}$major'
16685 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16688 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16689 # the default ld.so.conf also contains /usr/contrib/lib and
16690 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16691 # libtool to hard-code these into programs
16694 cygwin* | mingw* | pw32*)
16695 version_type=windows
16696 shrext=".dll"
16697 need_version=no
16698 need_lib_prefix=no
16700 case $GCC,$host_os in
16701 yes,cygwin* | yes,mingw* | yes,pw32*)
16702 library_names_spec='$libname.dll.a'
16703 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16704 postinstall_cmds='base_file=`basename \${file}`${_S_}
16705 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
16706 dldir=$destdir/`dirname \$dlpath`${_S_}
16707 test -d \$dldir || mkdir -p \$dldir${_S_}
16708 $install_prog $dir/$dlname \$dldir/$dlname'
16709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
16710 dlpath=$dir/\$dldll${_S_}
16711 $rm \$dlpath'
16712 shlibpath_overrides_runpath=yes
16714 case $host_os in
16715 cygwin*)
16716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16718 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16720 mingw*)
16721 # MinGW DLLs use traditional 'lib' prefix
16722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16724 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16725 # It is most probably a Windows format PATH printed by
16726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16727 # path with ; separators, and with drive letters. We can handle the
16728 # drive letters (cygwin fileutils understands them), so leave them,
16729 # especially as we might pass files found there to a mingw objdump,
16730 # which wouldn't understand a cygwinified path. Ahh.
16731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16732 else
16733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16736 pw32*)
16737 # pw32 DLLs use 'pw' prefix rather than 'lib'
16738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16740 esac
16744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16746 esac
16747 dynamic_linker='Win32 ld.exe'
16748 # FIXME: first we should search . and the directory the executable is in
16749 shlibpath_var=PATH
16752 darwin* | rhapsody*)
16753 dynamic_linker="$host_os dyld"
16754 version_type=darwin
16755 need_lib_prefix=no
16756 need_version=no
16757 # FIXME: Relying on posixy $() will cause problems for
16758 # cross-compilation, but unfortunately the echo tests do not
16759 # yet detect zsh echo's removal of \ escapes.
16760 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
16761 soname_spec='${libname}${release}${major}$shared_ext'
16762 shlibpath_overrides_runpath=yes
16763 shlibpath_var=DYLD_LIBRARY_PATH
16764 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16765 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16766 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16767 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"`
16769 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16772 dgux*)
16773 version_type=linux
16774 need_lib_prefix=no
16775 need_version=no
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16777 soname_spec='${libname}${release}${shared_ext}$major'
16778 shlibpath_var=LD_LIBRARY_PATH
16781 freebsd1*)
16782 dynamic_linker=no
16785 freebsd*)
16786 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16787 version_type=freebsd-$objformat
16788 case $version_type in
16789 freebsd-elf*)
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16791 need_version=no
16792 need_lib_prefix=no
16794 freebsd-*)
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16796 need_version=yes
16798 esac
16799 shlibpath_var=LD_LIBRARY_PATH
16800 case $host_os in
16801 freebsd2*)
16802 shlibpath_overrides_runpath=yes
16804 freebsd3.01* | freebsdelf3.01*)
16805 shlibpath_overrides_runpath=yes
16806 hardcode_into_libs=yes
16808 *) # from 3.2 on
16809 shlibpath_overrides_runpath=no
16810 hardcode_into_libs=yes
16812 esac
16815 gnu*)
16816 version_type=linux
16817 need_lib_prefix=no
16818 need_version=no
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16820 soname_spec='${libname}${release}${shared_ext}$major'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 hardcode_into_libs=yes
16825 hpux9* | hpux10* | hpux11*)
16826 # Give a soname corresponding to the major version so that dld.sl refuses to
16827 # link against other versions.
16828 version_type=sunos
16829 need_lib_prefix=no
16830 need_version=no
16831 case "$host_cpu" in
16832 ia64*)
16833 shrext='.so'
16834 hardcode_into_libs=yes
16835 dynamic_linker="$host_os dld.so"
16836 shlibpath_var=LD_LIBRARY_PATH
16837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 if test "X$HPUX_IA64_MODE" = X32; then
16841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16842 else
16843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16847 hppa*64*)
16848 shrext='.sl'
16849 hardcode_into_libs=yes
16850 dynamic_linker="$host_os dld.sl"
16851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16859 shrext='.sl'
16860 dynamic_linker="$host_os dld.sl"
16861 shlibpath_var=SHLIB_PATH
16862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16864 soname_spec='${libname}${release}${shared_ext}$major'
16866 esac
16867 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16868 postinstall_cmds='chmod 555 $lib'
16871 irix5* | irix6* | nonstopux*)
16872 case $host_os in
16873 nonstopux*) version_type=nonstopux ;;
16875 if test "$lt_cv_prog_gnu_ld" = yes; then
16876 version_type=linux
16877 else
16878 version_type=irix
16879 fi ;;
16880 esac
16881 need_lib_prefix=no
16882 need_version=no
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16885 case $host_os in
16886 irix5* | nonstopux*)
16887 libsuff= shlibsuff=
16890 case $LD in # libtool.m4 will add one of these switches to LD
16891 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16892 libsuff= shlibsuff= libmagic=32-bit;;
16893 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16894 libsuff=32 shlibsuff=N32 libmagic=N32;;
16895 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16896 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16897 *) libsuff= shlibsuff= libmagic=never-match;;
16898 esac
16900 esac
16901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16902 shlibpath_overrides_runpath=no
16903 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16904 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16905 hardcode_into_libs=yes
16908 # No shared lib support for Linux oldld, aout, or coff.
16909 linux*oldld* | linux*aout* | linux*coff*)
16910 dynamic_linker=no
16913 # This must be Linux ELF.
16914 linux*)
16915 version_type=linux
16916 need_lib_prefix=no
16917 need_version=no
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919 soname_spec='${libname}${release}${shared_ext}$major'
16920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=no
16923 # This implies no fast_install, which is unacceptable.
16924 # Some rework will be needed to allow for fast_install
16925 # before this can be enabled.
16926 hardcode_into_libs=yes
16928 # We used to test for /lib/ld.so.1 and disable shared libraries on
16929 # powerpc, because MkLinux only supported shared libraries with the
16930 # GNU dynamic linker. Since this was broken with cross compilers,
16931 # most powerpc-linux boxes support dynamic linking these days and
16932 # people can always --disable-shared, the test was removed, and we
16933 # assume the GNU/Linux dynamic linker is in use.
16934 dynamic_linker='GNU/Linux ld.so'
16937 netbsd*)
16938 version_type=sunos
16939 need_lib_prefix=no
16940 need_version=no
16941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16944 dynamic_linker='NetBSD (a.out) ld.so'
16945 else
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 dynamic_linker='NetBSD ld.elf_so'
16950 shlibpath_var=LD_LIBRARY_PATH
16951 shlibpath_overrides_runpath=yes
16952 hardcode_into_libs=yes
16955 newsos6)
16956 version_type=linux
16957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16958 shlibpath_var=LD_LIBRARY_PATH
16959 shlibpath_overrides_runpath=yes
16962 nto-qnx)
16963 version_type=linux
16964 need_lib_prefix=no
16965 need_version=no
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967 soname_spec='${libname}${release}${shared_ext}$major'
16968 shlibpath_var=LD_LIBRARY_PATH
16969 shlibpath_overrides_runpath=yes
16972 openbsd*)
16973 version_type=sunos
16974 need_lib_prefix=no
16975 need_version=no
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16978 shlibpath_var=LD_LIBRARY_PATH
16979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16980 case $host_os in
16981 openbsd2.[89] | openbsd2.[89].*)
16982 shlibpath_overrides_runpath=no
16985 shlibpath_overrides_runpath=yes
16987 esac
16988 else
16989 shlibpath_overrides_runpath=yes
16993 os2*)
16994 libname_spec='$name'
16995 shrext=".dll"
16996 need_lib_prefix=no
16997 library_names_spec='$libname${shared_ext} $libname.a'
16998 dynamic_linker='OS/2 ld.exe'
16999 shlibpath_var=LIBPATH
17002 osf3* | osf4* | osf5*)
17003 version_type=osf
17004 need_lib_prefix=no
17005 need_version=no
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17013 sco3.2v5*)
17014 version_type=osf
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017 shlibpath_var=LD_LIBRARY_PATH
17020 solaris*)
17021 version_type=linux
17022 need_lib_prefix=no
17023 need_version=no
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025 soname_spec='${libname}${release}${shared_ext}$major'
17026 shlibpath_var=LD_LIBRARY_PATH
17027 shlibpath_overrides_runpath=yes
17028 hardcode_into_libs=yes
17029 # ldd complains unless libraries are executable
17030 postinstall_cmds='chmod +x $lib'
17033 sunos4*)
17034 version_type=sunos
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17037 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes
17039 if test "$with_gnu_ld" = yes; then
17040 need_lib_prefix=no
17042 need_version=yes
17045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17046 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
17050 case $host_vendor in
17051 sni)
17052 shlibpath_overrides_runpath=no
17053 need_lib_prefix=no
17054 export_dynamic_flag_spec='${wl}-Blargedynsym'
17055 runpath_var=LD_RUN_PATH
17057 siemens)
17058 need_lib_prefix=no
17060 motorola)
17061 need_lib_prefix=no
17062 need_version=no
17063 shlibpath_overrides_runpath=no
17064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17066 esac
17069 sysv4*MP*)
17070 if test -d /usr/nec ;then
17071 version_type=linux
17072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17073 soname_spec='$libname${shared_ext}.$major'
17074 shlibpath_var=LD_LIBRARY_PATH
17078 uts4*)
17079 version_type=linux
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081 soname_spec='${libname}${release}${shared_ext}$major'
17082 shlibpath_var=LD_LIBRARY_PATH
17086 dynamic_linker=no
17088 esac
17089 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17090 echo "${ECHO_T}$dynamic_linker" >&6
17091 test "$dynamic_linker" = no && can_build_shared=no
17093 if test "x$enable_dlopen" != xyes; then
17094 enable_dlopen=unknown
17095 enable_dlopen_self=unknown
17096 enable_dlopen_self_static=unknown
17097 else
17098 lt_cv_dlopen=no
17099 lt_cv_dlopen_libs=
17101 case $host_os in
17102 beos*)
17103 lt_cv_dlopen="load_add_on"
17104 lt_cv_dlopen_libs=
17105 lt_cv_dlopen_self=yes
17108 mingw* | pw32*)
17109 lt_cv_dlopen="LoadLibrary"
17110 lt_cv_dlopen_libs=
17113 cygwin*)
17114 lt_cv_dlopen="dlopen"
17115 lt_cv_dlopen_libs=
17118 darwin*)
17119 # if libdl is installed we need to link against it
17120 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17121 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125 ac_check_lib_save_LIBS=$LIBS
17126 LIBS="-ldl $LIBS"
17127 cat >conftest.$ac_ext <<_ACEOF
17128 #line $LINENO "configure"
17129 /* confdefs.h. */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 /* Override any gcc2 internal prototype to avoid an error. */
17136 #ifdef __cplusplus
17137 extern "C"
17138 #endif
17139 /* We use char because int might match the return type of a gcc2
17140 builtin and then its argument prototype would still apply. */
17141 char dlopen ();
17143 main ()
17145 dlopen ();
17147 return 0;
17149 _ACEOF
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152 (eval $ac_link) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -s conftest$ac_exeext'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; }; then
17162 ac_cv_lib_dl_dlopen=yes
17163 else
17164 echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 ac_cv_lib_dl_dlopen=no
17169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17170 LIBS=$ac_check_lib_save_LIBS
17172 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17174 if test $ac_cv_lib_dl_dlopen = yes; then
17175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17176 else
17178 lt_cv_dlopen="dyld"
17179 lt_cv_dlopen_libs=
17180 lt_cv_dlopen_self=yes
17187 echo "$as_me:$LINENO: checking for shl_load" >&5
17188 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17189 if test "${ac_cv_func_shl_load+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191 else
17192 cat >conftest.$ac_ext <<_ACEOF
17193 #line $LINENO "configure"
17194 /* confdefs.h. */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 /* System header to define __stub macros and hopefully few prototypes,
17200 which can conflict with char shl_load (); below.
17201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17202 <limits.h> exists even on freestanding compilers. */
17203 #ifdef __STDC__
17204 # include <limits.h>
17205 #else
17206 # include <assert.h>
17207 #endif
17208 /* Override any gcc2 internal prototype to avoid an error. */
17209 #ifdef __cplusplus
17210 extern "C"
17212 #endif
17213 /* We use char because int might match the return type of a gcc2
17214 builtin and then its argument prototype would still apply. */
17215 char shl_load ();
17216 /* The GNU C library defines this for functions which it implements
17217 to always fail with ENOSYS. Some functions are actually named
17218 something starting with __ and the normal name is an alias. */
17219 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17220 choke me
17221 #else
17222 char (*f) () = shl_load;
17223 #endif
17224 #ifdef __cplusplus
17226 #endif
17229 main ()
17231 return f != shl_load;
17233 return 0;
17235 _ACEOF
17236 rm -f conftest.$ac_objext conftest$ac_exeext
17237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17238 (eval $ac_link) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try='test -s conftest$ac_exeext'
17243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244 (eval $ac_try) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; }; then
17248 ac_cv_func_shl_load=yes
17249 else
17250 echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_func_shl_load=no
17255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17257 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17258 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17259 if test $ac_cv_func_shl_load = yes; then
17260 lt_cv_dlopen="shl_load"
17261 else
17262 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17263 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17264 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 else
17267 ac_check_lib_save_LIBS=$LIBS
17268 LIBS="-ldld $LIBS"
17269 cat >conftest.$ac_ext <<_ACEOF
17270 #line $LINENO "configure"
17271 /* confdefs.h. */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17277 /* Override any gcc2 internal prototype to avoid an error. */
17278 #ifdef __cplusplus
17279 extern "C"
17280 #endif
17281 /* We use char because int might match the return type of a gcc2
17282 builtin and then its argument prototype would still apply. */
17283 char shl_load ();
17285 main ()
17287 shl_load ();
17289 return 0;
17291 _ACEOF
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
17298 { ac_try='test -s conftest$ac_exeext'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_lib_dld_shl_load=yes
17305 else
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_cv_lib_dld_shl_load=no
17311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17312 LIBS=$ac_check_lib_save_LIBS
17314 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17315 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17316 if test $ac_cv_lib_dld_shl_load = yes; then
17317 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17318 else
17319 echo "$as_me:$LINENO: checking for dlopen" >&5
17320 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17321 if test "${ac_cv_func_dlopen+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324 cat >conftest.$ac_ext <<_ACEOF
17325 #line $LINENO "configure"
17326 /* confdefs.h. */
17327 _ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h. */
17331 /* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char dlopen (); below.
17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334 <limits.h> exists even on freestanding compilers. */
17335 #ifdef __STDC__
17336 # include <limits.h>
17337 #else
17338 # include <assert.h>
17339 #endif
17340 /* Override any gcc2 internal prototype to avoid an error. */
17341 #ifdef __cplusplus
17342 extern "C"
17344 #endif
17345 /* We use char because int might match the return type of a gcc2
17346 builtin and then its argument prototype would still apply. */
17347 char dlopen ();
17348 /* The GNU C library defines this for functions which it implements
17349 to always fail with ENOSYS. Some functions are actually named
17350 something starting with __ and the normal name is an alias. */
17351 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17352 choke me
17353 #else
17354 char (*f) () = dlopen;
17355 #endif
17356 #ifdef __cplusplus
17358 #endif
17361 main ()
17363 return f != dlopen;
17365 return 0;
17367 _ACEOF
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17370 (eval $ac_link) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -s conftest$ac_exeext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_cv_func_dlopen=yes
17381 else
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 ac_cv_func_dlopen=no
17387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17389 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17390 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17391 if test $ac_cv_func_dlopen = yes; then
17392 lt_cv_dlopen="dlopen"
17393 else
17394 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17395 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399 ac_check_lib_save_LIBS=$LIBS
17400 LIBS="-ldl $LIBS"
17401 cat >conftest.$ac_ext <<_ACEOF
17402 #line $LINENO "configure"
17403 /* confdefs.h. */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17409 /* Override any gcc2 internal prototype to avoid an error. */
17410 #ifdef __cplusplus
17411 extern "C"
17412 #endif
17413 /* We use char because int might match the return type of a gcc2
17414 builtin and then its argument prototype would still apply. */
17415 char dlopen ();
17417 main ()
17419 dlopen ();
17421 return 0;
17423 _ACEOF
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426 (eval $ac_link) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -s conftest$ac_exeext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_lib_dl_dlopen=yes
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 ac_cv_lib_dl_dlopen=no
17443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17446 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17447 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17448 if test $ac_cv_lib_dl_dlopen = yes; then
17449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17450 else
17451 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17452 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17453 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456 ac_check_lib_save_LIBS=$LIBS
17457 LIBS="-lsvld $LIBS"
17458 cat >conftest.$ac_ext <<_ACEOF
17459 #line $LINENO "configure"
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17466 /* Override any gcc2 internal prototype to avoid an error. */
17467 #ifdef __cplusplus
17468 extern "C"
17469 #endif
17470 /* We use char because int might match the return type of a gcc2
17471 builtin and then its argument prototype would still apply. */
17472 char dlopen ();
17474 main ()
17476 dlopen ();
17478 return 0;
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_lib_svld_dlopen=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_cv_lib_svld_dlopen=no
17500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17501 LIBS=$ac_check_lib_save_LIBS
17503 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17504 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17505 if test $ac_cv_lib_svld_dlopen = yes; then
17506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17507 else
17508 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17509 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17510 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513 ac_check_lib_save_LIBS=$LIBS
17514 LIBS="-ldld $LIBS"
17515 cat >conftest.$ac_ext <<_ACEOF
17516 #line $LINENO "configure"
17517 /* confdefs.h. */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17523 /* Override any gcc2 internal prototype to avoid an error. */
17524 #ifdef __cplusplus
17525 extern "C"
17526 #endif
17527 /* We use char because int might match the return type of a gcc2
17528 builtin and then its argument prototype would still apply. */
17529 char dld_link ();
17531 main ()
17533 dld_link ();
17535 return 0;
17537 _ACEOF
17538 rm -f conftest.$ac_objext conftest$ac_exeext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17540 (eval $ac_link) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -s conftest$ac_exeext'
17545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17546 (eval $ac_try) 2>&5
17547 ac_status=$?
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 ac_cv_lib_dld_dld_link=yes
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ac_cv_lib_dld_dld_link=no
17557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17558 LIBS=$ac_check_lib_save_LIBS
17560 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17561 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17562 if test $ac_cv_lib_dld_dld_link = yes; then
17563 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17582 esac
17584 if test "x$lt_cv_dlopen" != xno; then
17585 enable_dlopen=yes
17586 else
17587 enable_dlopen=no
17590 case $lt_cv_dlopen in
17591 dlopen)
17592 save_CPPFLAGS="$CPPFLAGS"
17593 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17595 save_LDFLAGS="$LDFLAGS"
17596 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17598 save_LIBS="$LIBS"
17599 LIBS="$lt_cv_dlopen_libs $LIBS"
17601 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17602 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17603 if test "${lt_cv_dlopen_self+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606 if test "$cross_compiling" = yes; then :
17607 lt_cv_dlopen_self=cross
17608 else
17609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17610 lt_status=$lt_dlunknown
17611 cat > conftest.$ac_ext <<EOF
17612 #line 17530 "configure"
17613 #include "confdefs.h"
17615 #if HAVE_DLFCN_H
17616 #include <dlfcn.h>
17617 #endif
17619 #include <stdio.h>
17621 #ifdef RTLD_GLOBAL
17622 # define LT_DLGLOBAL RTLD_GLOBAL
17623 #else
17624 # ifdef DL_GLOBAL
17625 # define LT_DLGLOBAL DL_GLOBAL
17626 # else
17627 # define LT_DLGLOBAL 0
17628 # endif
17629 #endif
17631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17632 find out it does not work in some platform. */
17633 #ifndef LT_DLLAZY_OR_NOW
17634 # ifdef RTLD_LAZY
17635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17636 # else
17637 # ifdef DL_LAZY
17638 # define LT_DLLAZY_OR_NOW DL_LAZY
17639 # else
17640 # ifdef RTLD_NOW
17641 # define LT_DLLAZY_OR_NOW RTLD_NOW
17642 # else
17643 # ifdef DL_NOW
17644 # define LT_DLLAZY_OR_NOW DL_NOW
17645 # else
17646 # define LT_DLLAZY_OR_NOW 0
17647 # endif
17648 # endif
17649 # endif
17650 # endif
17651 #endif
17653 #ifdef __cplusplus
17654 extern "C" void exit (int);
17655 #endif
17657 void fnord() { int i=42;}
17658 int main ()
17660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17661 int status = $lt_dlunknown;
17663 if (self)
17665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17666 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17667 /* dlclose (self); */
17670 exit (status);
17673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17674 (eval $ac_link) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17678 (./conftest; exit; ) 2>/dev/null
17679 lt_status=$?
17680 case x$lt_status in
17681 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17682 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17683 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17684 esac
17685 else :
17686 # compilation failed
17687 lt_cv_dlopen_self=no
17690 rm -fr conftest*
17694 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17695 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17697 if test "x$lt_cv_dlopen_self" = xyes; then
17698 LDFLAGS="$LDFLAGS $link_static_flag"
17699 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17700 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17701 if test "${lt_cv_dlopen_self_static+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704 if test "$cross_compiling" = yes; then :
17705 lt_cv_dlopen_self_static=cross
17706 else
17707 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17708 lt_status=$lt_dlunknown
17709 cat > conftest.$ac_ext <<EOF
17710 #line 17628 "configure"
17711 #include "confdefs.h"
17713 #if HAVE_DLFCN_H
17714 #include <dlfcn.h>
17715 #endif
17717 #include <stdio.h>
17719 #ifdef RTLD_GLOBAL
17720 # define LT_DLGLOBAL RTLD_GLOBAL
17721 #else
17722 # ifdef DL_GLOBAL
17723 # define LT_DLGLOBAL DL_GLOBAL
17724 # else
17725 # define LT_DLGLOBAL 0
17726 # endif
17727 #endif
17729 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17730 find out it does not work in some platform. */
17731 #ifndef LT_DLLAZY_OR_NOW
17732 # ifdef RTLD_LAZY
17733 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17734 # else
17735 # ifdef DL_LAZY
17736 # define LT_DLLAZY_OR_NOW DL_LAZY
17737 # else
17738 # ifdef RTLD_NOW
17739 # define LT_DLLAZY_OR_NOW RTLD_NOW
17740 # else
17741 # ifdef DL_NOW
17742 # define LT_DLLAZY_OR_NOW DL_NOW
17743 # else
17744 # define LT_DLLAZY_OR_NOW 0
17745 # endif
17746 # endif
17747 # endif
17748 # endif
17749 #endif
17751 #ifdef __cplusplus
17752 extern "C" void exit (int);
17753 #endif
17755 void fnord() { int i=42;}
17756 int main ()
17758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17759 int status = $lt_dlunknown;
17761 if (self)
17763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17764 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17765 /* dlclose (self); */
17768 exit (status);
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772 (eval $ac_link) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17776 (./conftest; exit; ) 2>/dev/null
17777 lt_status=$?
17778 case x$lt_status in
17779 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17780 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17781 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17782 esac
17783 else :
17784 # compilation failed
17785 lt_cv_dlopen_self_static=no
17788 rm -fr conftest*
17792 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17793 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17796 CPPFLAGS="$save_CPPFLAGS"
17797 LDFLAGS="$save_LDFLAGS"
17798 LIBS="$save_LIBS"
17800 esac
17802 case $lt_cv_dlopen_self in
17803 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17804 *) enable_dlopen_self=unknown ;;
17805 esac
17807 case $lt_cv_dlopen_self_static in
17808 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17809 *) enable_dlopen_self_static=unknown ;;
17810 esac
17814 # The else clause should only fire when bootstrapping the
17815 # libtool distribution, otherwise you forgot to ship ltmain.sh
17816 # with your package, and you will get complaints that there are
17817 # no rules to generate ltmain.sh.
17818 if test -f "$ltmain"; then
17819 # See if we are running on zsh, and set the options which allow our commands through
17820 # without removal of \ escapes.
17821 if test -n "${ZSH_VERSION+set}" ; then
17822 setopt NO_GLOB_SUBST
17824 # Now quote all the things that may contain metacharacters while being
17825 # careful not to overquote the AC_SUBSTed values. We take copies of the
17826 # variables and quote the copies for generation of the libtool script.
17827 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17828 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17829 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17830 deplibs_check_method reload_flag reload_cmds need_locks \
17831 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17832 lt_cv_sys_global_symbol_to_c_name_address \
17833 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17834 old_postinstall_cmds old_postuninstall_cmds \
17835 compiler_GCJ \
17836 CC_GCJ \
17837 LD_GCJ \
17838 lt_prog_compiler_wl_GCJ \
17839 lt_prog_compiler_pic_GCJ \
17840 lt_prog_compiler_static_GCJ \
17841 lt_prog_compiler_no_builtin_flag_GCJ \
17842 export_dynamic_flag_spec_GCJ \
17843 thread_safe_flag_spec_GCJ \
17844 whole_archive_flag_spec_GCJ \
17845 enable_shared_with_static_runtimes_GCJ \
17846 old_archive_cmds_GCJ \
17847 old_archive_from_new_cmds_GCJ \
17848 predep_objects_GCJ \
17849 postdep_objects_GCJ \
17850 predeps_GCJ \
17851 postdeps_GCJ \
17852 compiler_lib_search_path_GCJ \
17853 archive_cmds_GCJ \
17854 archive_expsym_cmds_GCJ \
17855 postinstall_cmds_GCJ \
17856 postuninstall_cmds_GCJ \
17857 old_archive_from_expsyms_cmds_GCJ \
17858 allow_undefined_flag_GCJ \
17859 no_undefined_flag_GCJ \
17860 export_symbols_cmds_GCJ \
17861 hardcode_libdir_flag_spec_GCJ \
17862 hardcode_libdir_flag_spec_ld_GCJ \
17863 hardcode_libdir_separator_GCJ \
17864 hardcode_automatic_GCJ \
17865 module_cmds_GCJ \
17866 module_expsym_cmds_GCJ \
17867 lt_cv_prog_compiler_c_o_GCJ \
17868 exclude_expsyms_GCJ \
17869 include_expsyms_GCJ; do
17871 case $var in
17872 old_archive_cmds_GCJ | \
17873 old_archive_from_new_cmds_GCJ | \
17874 archive_cmds_GCJ | \
17875 archive_expsym_cmds_GCJ | \
17876 module_cmds_GCJ | \
17877 module_expsym_cmds_GCJ | \
17878 old_archive_from_expsyms_cmds_GCJ | \
17879 export_symbols_cmds_GCJ | \
17880 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17881 postinstall_cmds | postuninstall_cmds | \
17882 old_postinstall_cmds | old_postuninstall_cmds | \
17883 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17884 # Double-quote double-evaled strings.
17885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
17888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17890 esac
17891 done
17893 case $lt_echo in
17894 *'\$0 --fallback-echo"')
17895 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17897 esac
17899 cfgfile="$ofile"
17901 cat <<__EOF__ >> "$cfgfile"
17902 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17904 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17906 # Set the command separator (default: ~)
17907 _S_=\${LIBTOOL_CMD_SEP-\~}
17909 # Shell to use when invoking shell scripts.
17910 SHELL=$lt_SHELL
17912 # Whether or not to build shared libraries.
17913 build_libtool_libs=$enable_shared
17915 # Whether or not to build static libraries.
17916 build_old_libs=$enable_static
17918 # Whether or not to add -lc for building shared libraries.
17919 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17921 # Whether or not to disallow shared libs when runtime libs are static
17922 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17924 # Whether or not to optimize for fast installation.
17925 fast_install=$enable_fast_install
17927 # The host system.
17928 host_alias=$host_alias
17929 host=$host
17931 # An echo program that does not interpret backslashes.
17932 echo=$lt_echo
17934 # The archiver.
17935 AR=$lt_AR
17936 AR_FLAGS=$lt_AR_FLAGS
17938 # A C compiler.
17939 LTCC=$lt_LTCC
17941 # A language-specific compiler.
17942 CC=$lt_compiler_GCJ
17944 # Is the compiler the GNU C compiler?
17945 with_gcc=$GCC_GCJ
17947 # An ERE matcher.
17948 EGREP=$lt_EGREP
17950 # The linker used to build libraries.
17951 LD=$lt_LD_GCJ
17953 # Whether we need hard or soft links.
17954 LN_S=$lt_LN_S
17956 # A BSD-compatible nm program.
17957 NM=$lt_NM
17959 # A symbol stripping program
17960 STRIP=$STRIP
17962 # Used to examine libraries when file_magic_cmd begins "file"
17963 MAGIC_CMD=$MAGIC_CMD
17965 # Used on cygwin: DLL creation program.
17966 DLLTOOL="$DLLTOOL"
17968 # Used on cygwin: object dumper.
17969 OBJDUMP="$OBJDUMP"
17971 # Used on cygwin: assembler.
17972 AS="$AS"
17974 # The name of the directory that contains temporary libtool files.
17975 objdir=$objdir
17977 # How to create reloadable object files.
17978 reload_flag=$lt_reload_flag
17979 reload_cmds=$lt_reload_cmds
17981 # How to pass a linker flag through the compiler.
17982 wl=$lt_lt_prog_compiler_wl_GCJ
17984 # Object file suffix (normally "o").
17985 objext="$ac_objext"
17987 # Old archive suffix (normally "a").
17988 libext="$libext"
17990 # Shared library suffix (normally ".so").
17991 shrext='$shrext'
17993 # Executable file suffix (normally "").
17994 exeext="$exeext"
17996 # Additional compiler flags for building library objects.
17997 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17998 pic_mode=$pic_mode
18000 # What is the maximum length of a command?
18001 max_cmd_len=$lt_cv_sys_max_cmd_len
18003 # Does compiler simultaneously support -c and -o options?
18004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18006 # Must we lock files when doing compilation ?
18007 need_locks=$lt_need_locks
18009 # Do we need the lib prefix for modules?
18010 need_lib_prefix=$need_lib_prefix
18012 # Do we need a version for libraries?
18013 need_version=$need_version
18015 # Whether dlopen is supported.
18016 dlopen_support=$enable_dlopen
18018 # Whether dlopen of programs is supported.
18019 dlopen_self=$enable_dlopen_self
18021 # Whether dlopen of statically linked programs is supported.
18022 dlopen_self_static=$enable_dlopen_self_static
18024 # Compiler flag to prevent dynamic linking.
18025 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18027 # Compiler flag to turn off builtin functions.
18028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18030 # Compiler flag to allow reflexive dlopens.
18031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18033 # Compiler flag to generate shared objects directly from archives.
18034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18036 # Compiler flag to generate thread-safe objects.
18037 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18039 # Library versioning type.
18040 version_type=$version_type
18042 # Format of library name prefix.
18043 libname_spec=$lt_libname_spec
18045 # List of archive names. First name is the real one, the rest are links.
18046 # The last name is the one that the linker finds with -lNAME.
18047 library_names_spec=$lt_library_names_spec
18049 # The coded name of the library, if different from the real name.
18050 soname_spec=$lt_soname_spec
18052 # Commands used to build and install an old-style archive.
18053 RANLIB=$lt_RANLIB
18054 old_archive_cmds=$lt_old_archive_cmds_GCJ
18055 old_postinstall_cmds=$lt_old_postinstall_cmds
18056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18058 # Create an old-style archive from a shared archive.
18059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18061 # Create a temporary old-style archive to link instead of a shared archive.
18062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18064 # Commands used to build and install a shared archive.
18065 archive_cmds=$lt_archive_cmds_GCJ
18066 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18067 postinstall_cmds=$lt_postinstall_cmds
18068 postuninstall_cmds=$lt_postuninstall_cmds
18070 # Commands used to build a loadable module (assumed same as above if empty)
18071 module_cmds=$lt_module_cmds_GCJ
18072 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18074 # Commands to strip libraries.
18075 old_striplib=$lt_old_striplib
18076 striplib=$lt_striplib
18078 # Dependencies to place before the objects being linked to create a
18079 # shared library.
18080 predep_objects=$lt_predep_objects_GCJ
18082 # Dependencies to place after the objects being linked to create a
18083 # shared library.
18084 postdep_objects=$lt_postdep_objects_GCJ
18086 # Dependencies to place before the objects being linked to create a
18087 # shared library.
18088 predeps=$lt_predeps_GCJ
18090 # Dependencies to place after the objects being linked to create a
18091 # shared library.
18092 postdeps=$lt_postdeps_GCJ
18094 # The library search path used internally by the compiler when linking
18095 # a shared library.
18096 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18098 # Method to check whether dependent libraries are shared objects.
18099 deplibs_check_method=$lt_deplibs_check_method
18101 # Command to use when deplibs_check_method == file_magic.
18102 file_magic_cmd=$lt_file_magic_cmd
18104 # Flag that allows shared libraries with undefined symbols to be built.
18105 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18107 # Flag that forces no undefined symbols.
18108 no_undefined_flag=$lt_no_undefined_flag_GCJ
18110 # Commands used to finish a libtool library installation in a directory.
18111 finish_cmds=$lt_finish_cmds
18113 # Same as above, but a single script fragment to be evaled but not shown.
18114 finish_eval=$lt_finish_eval
18116 # Take the output of nm and produce a listing of raw symbols and C names.
18117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18119 # Transform the output of nm in a proper C declaration
18120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18122 # Transform the output of nm in a C name address pair
18123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18125 # This is the shared library runtime path variable.
18126 runpath_var=$runpath_var
18128 # This is the shared library path variable.
18129 shlibpath_var=$shlibpath_var
18131 # Is shlibpath searched before the hard-coded library search path?
18132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18134 # How to hardcode a shared library path into an executable.
18135 hardcode_action=$hardcode_action_GCJ
18137 # Whether we should hardcode library paths into libraries.
18138 hardcode_into_libs=$hardcode_into_libs
18140 # Flag to hardcode \$libdir into a binary during linking.
18141 # This must work even if \$libdir does not exist.
18142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18144 # If ld is used when linking, flag to hardcode \$libdir into
18145 # a binary during linking. This must work even if \$libdir does
18146 # not exist.
18147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18149 # Whether we need a single -rpath flag with a separated argument.
18150 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18153 # resulting binary.
18154 hardcode_direct=$hardcode_direct_GCJ
18156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18157 # resulting binary.
18158 hardcode_minus_L=$hardcode_minus_L_GCJ
18160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18161 # the resulting binary.
18162 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18164 # Set to yes if building a shared library automatically hardcodes DIR into the library
18165 # and all subsequent libraries and executables linked against it.
18166 hardcode_automatic=$hardcode_automatic_GCJ
18168 # Variables whose values should be saved in libtool wrapper scripts and
18169 # restored at relink time.
18170 variables_saved_for_relink="$variables_saved_for_relink"
18172 # Whether libtool must link a program against all its dependency libraries.
18173 link_all_deplibs=$link_all_deplibs_GCJ
18175 # Compile-time system search path for libraries
18176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18178 # Run-time system search path for libraries
18179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18181 # Fix the shell variable \$srcfile for the compiler.
18182 fix_srcfile_path="$fix_srcfile_path_GCJ"
18184 # Set to yes if exported symbols are required.
18185 always_export_symbols=$always_export_symbols_GCJ
18187 # The commands to list exported symbols.
18188 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18190 # The commands to extract the exported symbol list from a shared archive.
18191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18193 # Symbols that should not be listed in the preloaded symbols.
18194 exclude_expsyms=$lt_exclude_expsyms_GCJ
18196 # Symbols that must always be exported.
18197 include_expsyms=$lt_include_expsyms_GCJ
18199 # ### END LIBTOOL TAG CONFIG: $tagname
18201 __EOF__
18204 else
18205 # If there is no Makefile yet, we rely on a make rule to execute
18206 # `config.status --recheck' to rerun these tests and create the
18207 # libtool script then.
18208 test -f Makefile && make "$ltmain"
18212 ac_ext=c
18213 ac_cpp='$CPP $CPPFLAGS'
18214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18218 CC="$lt_save_CC"
18220 else
18221 tagname=""
18229 # Source file extension for RC test sources.
18230 ac_ext=rc
18232 # Object file extension for compiled RC test sources.
18233 objext=o
18234 objext_RC=$objext
18236 # Code to be used in simple compile tests
18237 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18239 # Code to be used in simple link tests
18240 lt_simple_link_test_code="$lt_simple_compile_test_code"
18242 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18244 # If no C compiler was specified, use CC.
18245 LTCC=${LTCC-"$CC"}
18247 # Allow CC to be a program name with arguments.
18248 compiler=$CC
18251 # Allow CC to be a program name with arguments.
18252 lt_save_CC="$CC"
18253 CC=${RC-"windres"}
18254 compiler=$CC
18255 compiler_RC=$CC
18256 lt_cv_prog_compiler_c_o_RC=yes
18258 # The else clause should only fire when bootstrapping the
18259 # libtool distribution, otherwise you forgot to ship ltmain.sh
18260 # with your package, and you will get complaints that there are
18261 # no rules to generate ltmain.sh.
18262 if test -f "$ltmain"; then
18263 # See if we are running on zsh, and set the options which allow our commands through
18264 # without removal of \ escapes.
18265 if test -n "${ZSH_VERSION+set}" ; then
18266 setopt NO_GLOB_SUBST
18268 # Now quote all the things that may contain metacharacters while being
18269 # careful not to overquote the AC_SUBSTed values. We take copies of the
18270 # variables and quote the copies for generation of the libtool script.
18271 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18272 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18273 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18274 deplibs_check_method reload_flag reload_cmds need_locks \
18275 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18276 lt_cv_sys_global_symbol_to_c_name_address \
18277 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18278 old_postinstall_cmds old_postuninstall_cmds \
18279 compiler_RC \
18280 CC_RC \
18281 LD_RC \
18282 lt_prog_compiler_wl_RC \
18283 lt_prog_compiler_pic_RC \
18284 lt_prog_compiler_static_RC \
18285 lt_prog_compiler_no_builtin_flag_RC \
18286 export_dynamic_flag_spec_RC \
18287 thread_safe_flag_spec_RC \
18288 whole_archive_flag_spec_RC \
18289 enable_shared_with_static_runtimes_RC \
18290 old_archive_cmds_RC \
18291 old_archive_from_new_cmds_RC \
18292 predep_objects_RC \
18293 postdep_objects_RC \
18294 predeps_RC \
18295 postdeps_RC \
18296 compiler_lib_search_path_RC \
18297 archive_cmds_RC \
18298 archive_expsym_cmds_RC \
18299 postinstall_cmds_RC \
18300 postuninstall_cmds_RC \
18301 old_archive_from_expsyms_cmds_RC \
18302 allow_undefined_flag_RC \
18303 no_undefined_flag_RC \
18304 export_symbols_cmds_RC \
18305 hardcode_libdir_flag_spec_RC \
18306 hardcode_libdir_flag_spec_ld_RC \
18307 hardcode_libdir_separator_RC \
18308 hardcode_automatic_RC \
18309 module_cmds_RC \
18310 module_expsym_cmds_RC \
18311 lt_cv_prog_compiler_c_o_RC \
18312 exclude_expsyms_RC \
18313 include_expsyms_RC; do
18315 case $var in
18316 old_archive_cmds_RC | \
18317 old_archive_from_new_cmds_RC | \
18318 archive_cmds_RC | \
18319 archive_expsym_cmds_RC | \
18320 module_cmds_RC | \
18321 module_expsym_cmds_RC | \
18322 old_archive_from_expsyms_cmds_RC | \
18323 export_symbols_cmds_RC | \
18324 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18325 postinstall_cmds | postuninstall_cmds | \
18326 old_postinstall_cmds | old_postuninstall_cmds | \
18327 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18328 # Double-quote double-evaled strings.
18329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
18332 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18334 esac
18335 done
18337 case $lt_echo in
18338 *'\$0 --fallback-echo"')
18339 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18341 esac
18343 cfgfile="$ofile"
18345 cat <<__EOF__ >> "$cfgfile"
18346 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18350 # Set the command separator (default: ~)
18351 _S_=\${LIBTOOL_CMD_SEP-\~}
18353 # Shell to use when invoking shell scripts.
18354 SHELL=$lt_SHELL
18356 # Whether or not to build shared libraries.
18357 build_libtool_libs=$enable_shared
18359 # Whether or not to build static libraries.
18360 build_old_libs=$enable_static
18362 # Whether or not to add -lc for building shared libraries.
18363 build_libtool_need_lc=$archive_cmds_need_lc_RC
18365 # Whether or not to disallow shared libs when runtime libs are static
18366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18368 # Whether or not to optimize for fast installation.
18369 fast_install=$enable_fast_install
18371 # The host system.
18372 host_alias=$host_alias
18373 host=$host
18375 # An echo program that does not interpret backslashes.
18376 echo=$lt_echo
18378 # The archiver.
18379 AR=$lt_AR
18380 AR_FLAGS=$lt_AR_FLAGS
18382 # A C compiler.
18383 LTCC=$lt_LTCC
18385 # A language-specific compiler.
18386 CC=$lt_compiler_RC
18388 # Is the compiler the GNU C compiler?
18389 with_gcc=$GCC_RC
18391 # An ERE matcher.
18392 EGREP=$lt_EGREP
18394 # The linker used to build libraries.
18395 LD=$lt_LD_RC
18397 # Whether we need hard or soft links.
18398 LN_S=$lt_LN_S
18400 # A BSD-compatible nm program.
18401 NM=$lt_NM
18403 # A symbol stripping program
18404 STRIP=$STRIP
18406 # Used to examine libraries when file_magic_cmd begins "file"
18407 MAGIC_CMD=$MAGIC_CMD
18409 # Used on cygwin: DLL creation program.
18410 DLLTOOL="$DLLTOOL"
18412 # Used on cygwin: object dumper.
18413 OBJDUMP="$OBJDUMP"
18415 # Used on cygwin: assembler.
18416 AS="$AS"
18418 # The name of the directory that contains temporary libtool files.
18419 objdir=$objdir
18421 # How to create reloadable object files.
18422 reload_flag=$lt_reload_flag
18423 reload_cmds=$lt_reload_cmds
18425 # How to pass a linker flag through the compiler.
18426 wl=$lt_lt_prog_compiler_wl_RC
18428 # Object file suffix (normally "o").
18429 objext="$ac_objext"
18431 # Old archive suffix (normally "a").
18432 libext="$libext"
18434 # Shared library suffix (normally ".so").
18435 shrext='$shrext'
18437 # Executable file suffix (normally "").
18438 exeext="$exeext"
18440 # Additional compiler flags for building library objects.
18441 pic_flag=$lt_lt_prog_compiler_pic_RC
18442 pic_mode=$pic_mode
18444 # What is the maximum length of a command?
18445 max_cmd_len=$lt_cv_sys_max_cmd_len
18447 # Does compiler simultaneously support -c and -o options?
18448 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18450 # Must we lock files when doing compilation ?
18451 need_locks=$lt_need_locks
18453 # Do we need the lib prefix for modules?
18454 need_lib_prefix=$need_lib_prefix
18456 # Do we need a version for libraries?
18457 need_version=$need_version
18459 # Whether dlopen is supported.
18460 dlopen_support=$enable_dlopen
18462 # Whether dlopen of programs is supported.
18463 dlopen_self=$enable_dlopen_self
18465 # Whether dlopen of statically linked programs is supported.
18466 dlopen_self_static=$enable_dlopen_self_static
18468 # Compiler flag to prevent dynamic linking.
18469 link_static_flag=$lt_lt_prog_compiler_static_RC
18471 # Compiler flag to turn off builtin functions.
18472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18474 # Compiler flag to allow reflexive dlopens.
18475 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18477 # Compiler flag to generate shared objects directly from archives.
18478 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18480 # Compiler flag to generate thread-safe objects.
18481 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18483 # Library versioning type.
18484 version_type=$version_type
18486 # Format of library name prefix.
18487 libname_spec=$lt_libname_spec
18489 # List of archive names. First name is the real one, the rest are links.
18490 # The last name is the one that the linker finds with -lNAME.
18491 library_names_spec=$lt_library_names_spec
18493 # The coded name of the library, if different from the real name.
18494 soname_spec=$lt_soname_spec
18496 # Commands used to build and install an old-style archive.
18497 RANLIB=$lt_RANLIB
18498 old_archive_cmds=$lt_old_archive_cmds_RC
18499 old_postinstall_cmds=$lt_old_postinstall_cmds
18500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18502 # Create an old-style archive from a shared archive.
18503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18505 # Create a temporary old-style archive to link instead of a shared archive.
18506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18508 # Commands used to build and install a shared archive.
18509 archive_cmds=$lt_archive_cmds_RC
18510 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18511 postinstall_cmds=$lt_postinstall_cmds
18512 postuninstall_cmds=$lt_postuninstall_cmds
18514 # Commands used to build a loadable module (assumed same as above if empty)
18515 module_cmds=$lt_module_cmds_RC
18516 module_expsym_cmds=$lt_module_expsym_cmds_RC
18518 # Commands to strip libraries.
18519 old_striplib=$lt_old_striplib
18520 striplib=$lt_striplib
18522 # Dependencies to place before the objects being linked to create a
18523 # shared library.
18524 predep_objects=$lt_predep_objects_RC
18526 # Dependencies to place after the objects being linked to create a
18527 # shared library.
18528 postdep_objects=$lt_postdep_objects_RC
18530 # Dependencies to place before the objects being linked to create a
18531 # shared library.
18532 predeps=$lt_predeps_RC
18534 # Dependencies to place after the objects being linked to create a
18535 # shared library.
18536 postdeps=$lt_postdeps_RC
18538 # The library search path used internally by the compiler when linking
18539 # a shared library.
18540 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18542 # Method to check whether dependent libraries are shared objects.
18543 deplibs_check_method=$lt_deplibs_check_method
18545 # Command to use when deplibs_check_method == file_magic.
18546 file_magic_cmd=$lt_file_magic_cmd
18548 # Flag that allows shared libraries with undefined symbols to be built.
18549 allow_undefined_flag=$lt_allow_undefined_flag_RC
18551 # Flag that forces no undefined symbols.
18552 no_undefined_flag=$lt_no_undefined_flag_RC
18554 # Commands used to finish a libtool library installation in a directory.
18555 finish_cmds=$lt_finish_cmds
18557 # Same as above, but a single script fragment to be evaled but not shown.
18558 finish_eval=$lt_finish_eval
18560 # Take the output of nm and produce a listing of raw symbols and C names.
18561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18563 # Transform the output of nm in a proper C declaration
18564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18566 # Transform the output of nm in a C name address pair
18567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18569 # This is the shared library runtime path variable.
18570 runpath_var=$runpath_var
18572 # This is the shared library path variable.
18573 shlibpath_var=$shlibpath_var
18575 # Is shlibpath searched before the hard-coded library search path?
18576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18578 # How to hardcode a shared library path into an executable.
18579 hardcode_action=$hardcode_action_RC
18581 # Whether we should hardcode library paths into libraries.
18582 hardcode_into_libs=$hardcode_into_libs
18584 # Flag to hardcode \$libdir into a binary during linking.
18585 # This must work even if \$libdir does not exist.
18586 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18588 # If ld is used when linking, flag to hardcode \$libdir into
18589 # a binary during linking. This must work even if \$libdir does
18590 # not exist.
18591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18593 # Whether we need a single -rpath flag with a separated argument.
18594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18596 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18597 # resulting binary.
18598 hardcode_direct=$hardcode_direct_RC
18600 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18601 # resulting binary.
18602 hardcode_minus_L=$hardcode_minus_L_RC
18604 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18605 # the resulting binary.
18606 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18608 # Set to yes if building a shared library automatically hardcodes DIR into the library
18609 # and all subsequent libraries and executables linked against it.
18610 hardcode_automatic=$hardcode_automatic_RC
18612 # Variables whose values should be saved in libtool wrapper scripts and
18613 # restored at relink time.
18614 variables_saved_for_relink="$variables_saved_for_relink"
18616 # Whether libtool must link a program against all its dependency libraries.
18617 link_all_deplibs=$link_all_deplibs_RC
18619 # Compile-time system search path for libraries
18620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18622 # Run-time system search path for libraries
18623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18625 # Fix the shell variable \$srcfile for the compiler.
18626 fix_srcfile_path="$fix_srcfile_path_RC"
18628 # Set to yes if exported symbols are required.
18629 always_export_symbols=$always_export_symbols_RC
18631 # The commands to list exported symbols.
18632 export_symbols_cmds=$lt_export_symbols_cmds_RC
18634 # The commands to extract the exported symbol list from a shared archive.
18635 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18637 # Symbols that should not be listed in the preloaded symbols.
18638 exclude_expsyms=$lt_exclude_expsyms_RC
18640 # Symbols that must always be exported.
18641 include_expsyms=$lt_include_expsyms_RC
18643 # ### END LIBTOOL TAG CONFIG: $tagname
18645 __EOF__
18648 else
18649 # If there is no Makefile yet, we rely on a make rule to execute
18650 # `config.status --recheck' to rerun these tests and create the
18651 # libtool script then.
18652 test -f Makefile && make "$ltmain"
18656 ac_ext=c
18657 ac_cpp='$CPP $CPPFLAGS'
18658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18662 CC="$lt_save_CC"
18667 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18668 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18669 { (exit 1); exit 1; }; }
18671 esac
18673 # Append the new tag name to the list of available tags.
18674 if test -n "$tagname" ; then
18675 available_tags="$available_tags $tagname"
18678 done
18679 IFS="$lt_save_ifs"
18681 # Now substitute the updated list of available tags.
18682 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18683 mv "${ofile}T" "$ofile"
18684 chmod +x "$ofile"
18685 else
18686 rm -f "${ofile}T"
18687 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18688 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18689 { (exit 1); exit 1; }; }
18695 # This can be used to rebuild libtool when needed
18696 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18698 # Always use our own libtool.
18699 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18701 # Prevent multiple expansion
18729 ac_header_dirent=no
18730 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18731 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18732 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
18733 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 else
18737 cat >conftest.$ac_ext <<_ACEOF
18738 #line $LINENO "configure"
18739 /* confdefs.h. */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h. */
18744 #include <sys/types.h>
18745 #include <$ac_hdr>
18748 main ()
18750 if ((DIR *) 0)
18751 return 0;
18753 return 0;
18755 _ACEOF
18756 rm -f conftest.$ac_objext
18757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18758 (eval $ac_compile) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } &&
18762 { ac_try='test -s conftest.$ac_objext'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
18768 eval "$as_ac_Header=yes"
18769 else
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 eval "$as_ac_Header=no"
18775 rm -f conftest.$ac_objext conftest.$ac_ext
18777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18780 cat >>confdefs.h <<_ACEOF
18781 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18782 _ACEOF
18784 ac_header_dirent=$ac_hdr; break
18787 done
18788 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18789 if test $ac_header_dirent = dirent.h; then
18790 echo "$as_me:$LINENO: checking for library containing opendir" >&5
18791 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
18792 if test "${ac_cv_search_opendir+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795 ac_func_search_save_LIBS=$LIBS
18796 ac_cv_search_opendir=no
18797 cat >conftest.$ac_ext <<_ACEOF
18798 #line $LINENO "configure"
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18805 /* Override any gcc2 internal prototype to avoid an error. */
18806 #ifdef __cplusplus
18807 extern "C"
18808 #endif
18809 /* We use char because int might match the return type of a gcc2
18810 builtin and then its argument prototype would still apply. */
18811 char opendir ();
18813 main ()
18815 opendir ();
18817 return 0;
18819 _ACEOF
18820 rm -f conftest.$ac_objext conftest$ac_exeext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18822 (eval $ac_link) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
18826 { ac_try='test -s conftest$ac_exeext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_cv_search_opendir="none required"
18833 else
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18839 if test "$ac_cv_search_opendir" = no; then
18840 for ac_lib in dir; do
18841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18842 cat >conftest.$ac_ext <<_ACEOF
18843 #line $LINENO "configure"
18844 /* confdefs.h. */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18850 /* Override any gcc2 internal prototype to avoid an error. */
18851 #ifdef __cplusplus
18852 extern "C"
18853 #endif
18854 /* We use char because int might match the return type of a gcc2
18855 builtin and then its argument prototype would still apply. */
18856 char opendir ();
18858 main ()
18860 opendir ();
18862 return 0;
18864 _ACEOF
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18867 (eval $ac_link) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18877 ac_cv_search_opendir="-l$ac_lib"
18878 break
18879 else
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18885 done
18887 LIBS=$ac_func_search_save_LIBS
18889 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
18890 echo "${ECHO_T}$ac_cv_search_opendir" >&6
18891 if test "$ac_cv_search_opendir" != no; then
18892 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
18896 else
18897 echo "$as_me:$LINENO: checking for library containing opendir" >&5
18898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
18899 if test "${ac_cv_search_opendir+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902 ac_func_search_save_LIBS=$LIBS
18903 ac_cv_search_opendir=no
18904 cat >conftest.$ac_ext <<_ACEOF
18905 #line $LINENO "configure"
18906 /* confdefs.h. */
18907 _ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18912 /* Override any gcc2 internal prototype to avoid an error. */
18913 #ifdef __cplusplus
18914 extern "C"
18915 #endif
18916 /* We use char because int might match the return type of a gcc2
18917 builtin and then its argument prototype would still apply. */
18918 char opendir ();
18920 main ()
18922 opendir ();
18924 return 0;
18926 _ACEOF
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18929 (eval $ac_link) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -s conftest$ac_exeext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_search_opendir="none required"
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18946 if test "$ac_cv_search_opendir" = no; then
18947 for ac_lib in x; do
18948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18949 cat >conftest.$ac_ext <<_ACEOF
18950 #line $LINENO "configure"
18951 /* confdefs.h. */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18957 /* Override any gcc2 internal prototype to avoid an error. */
18958 #ifdef __cplusplus
18959 extern "C"
18960 #endif
18961 /* We use char because int might match the return type of a gcc2
18962 builtin and then its argument prototype would still apply. */
18963 char opendir ();
18965 main ()
18967 opendir ();
18969 return 0;
18971 _ACEOF
18972 rm -f conftest.$ac_objext conftest$ac_exeext
18973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18974 (eval $ac_link) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } &&
18978 { ac_try='test -s conftest$ac_exeext'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_search_opendir="-l$ac_lib"
18985 break
18986 else
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18992 done
18994 LIBS=$ac_func_search_save_LIBS
18996 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
18997 echo "${ECHO_T}$ac_cv_search_opendir" >&6
18998 if test "$ac_cv_search_opendir" != no; then
18999 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19005 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19006 if test "${enable_ltdl_install+set}" = set; then
19007 enableval="$enable_ltdl_install"
19013 if test x"${enable_ltdl_install-no}" != xno; then
19014 INSTALL_LTDL_TRUE=
19015 INSTALL_LTDL_FALSE='#'
19016 else
19017 INSTALL_LTDL_TRUE='#'
19018 INSTALL_LTDL_FALSE=
19023 if test x"${enable_ltdl_convenience-no}" != xno; then
19024 CONVENIENCE_LTDL_TRUE=
19025 CONVENIENCE_LTDL_FALSE='#'
19026 else
19027 CONVENIENCE_LTDL_TRUE='#'
19028 CONVENIENCE_LTDL_FALSE=
19033 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19034 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19035 if test "${libltdl_cv_shlibext+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19039 module=yes
19040 eval libltdl_cv_shlibext=$shrext
19043 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19044 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19045 if test -n "$libltdl_cv_shlibext"; then
19047 cat >>confdefs.h <<_ACEOF
19048 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19049 _ACEOF
19054 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19055 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19056 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 else
19059 libltdl_cv_shlibpath_var="$shlibpath_var"
19061 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19062 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19063 if test -n "$libltdl_cv_shlibpath_var"; then
19065 cat >>confdefs.h <<_ACEOF
19066 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19067 _ACEOF
19072 echo "$as_me:$LINENO: checking for the default library search path" >&5
19073 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19074 if test "${libltdl_cv_sys_search_path+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19079 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19080 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19081 if test -n "$libltdl_cv_sys_search_path"; then
19082 sys_search_path=
19083 for dir in $libltdl_cv_sys_search_path; do
19084 if test -z "$sys_search_path"; then
19085 sys_search_path="$dir"
19086 else
19087 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19089 done
19091 cat >>confdefs.h <<_ACEOF
19092 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19093 _ACEOF
19097 echo "$as_me:$LINENO: checking for objdir" >&5
19098 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
19099 if test "${libltdl_cv_objdir+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 else
19102 libltdl_cv_objdir="$objdir"
19103 if test -n "$objdir"; then
19105 else
19106 rm -f .libs 2>/dev/null
19107 mkdir .libs 2>/dev/null
19108 if test -d .libs; then
19109 libltdl_cv_objdir=.libs
19110 else
19111 # MS-DOS does not allow filenames that begin with a dot.
19112 libltdl_cv_objdir=_libs
19114 rmdir .libs 2>/dev/null
19118 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19119 echo "${ECHO_T}$libltdl_cv_objdir" >&6
19121 cat >>confdefs.h <<_ACEOF
19122 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19123 _ACEOF
19127 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19128 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
19129 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19133 libltdl_cv_preloaded_symbols=yes
19134 else
19135 libltdl_cv_preloaded_symbols=no
19139 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19140 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
19141 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19143 cat >>confdefs.h <<\_ACEOF
19144 #define HAVE_PRELOADED_SYMBOLS 1
19145 _ACEOF
19149 LIBADD_DL=
19151 ac_ext=c
19152 ac_cpp='$CPP $CPPFLAGS'
19153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19158 echo "$as_me:$LINENO: checking for shl_load" >&5
19159 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19160 if test "${ac_cv_func_shl_load+set}" = set; then
19161 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 else
19163 cat >conftest.$ac_ext <<_ACEOF
19164 #line $LINENO "configure"
19165 /* confdefs.h. */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170 /* System header to define __stub macros and hopefully few prototypes,
19171 which can conflict with char shl_load (); below.
19172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19173 <limits.h> exists even on freestanding compilers. */
19174 #ifdef __STDC__
19175 # include <limits.h>
19176 #else
19177 # include <assert.h>
19178 #endif
19179 /* Override any gcc2 internal prototype to avoid an error. */
19180 #ifdef __cplusplus
19181 extern "C"
19183 #endif
19184 /* We use char because int might match the return type of a gcc2
19185 builtin and then its argument prototype would still apply. */
19186 char shl_load ();
19187 /* The GNU C library defines this for functions which it implements
19188 to always fail with ENOSYS. Some functions are actually named
19189 something starting with __ and the normal name is an alias. */
19190 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19191 choke me
19192 #else
19193 char (*f) () = shl_load;
19194 #endif
19195 #ifdef __cplusplus
19197 #endif
19200 main ()
19202 return f != shl_load;
19204 return 0;
19206 _ACEOF
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209 (eval $ac_link) 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -s conftest$ac_exeext'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; }; then
19219 ac_cv_func_shl_load=yes
19220 else
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19224 ac_cv_func_shl_load=no
19226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19228 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19229 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19230 if test $ac_cv_func_shl_load = yes; then
19232 cat >>confdefs.h <<\_ACEOF
19233 #define HAVE_SHL_LOAD 1
19234 _ACEOF
19236 else
19237 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19238 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19239 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 else
19242 ac_check_lib_save_LIBS=$LIBS
19243 LIBS="-ldld $LIBS"
19244 cat >conftest.$ac_ext <<_ACEOF
19245 #line $LINENO "configure"
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19252 /* Override any gcc2 internal prototype to avoid an error. */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 /* We use char because int might match the return type of a gcc2
19257 builtin and then its argument prototype would still apply. */
19258 char shl_load ();
19260 main ()
19262 shl_load ();
19264 return 0;
19266 _ACEOF
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19269 (eval $ac_link) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
19273 { ac_try='test -s conftest$ac_exeext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_cv_lib_dld_shl_load=yes
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_cv_lib_dld_shl_load=no
19286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19287 LIBS=$ac_check_lib_save_LIBS
19289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19290 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19291 if test $ac_cv_lib_dld_shl_load = yes; then
19293 cat >>confdefs.h <<\_ACEOF
19294 #define HAVE_SHL_LOAD 1
19295 _ACEOF
19297 LIBADD_DL="$LIBADD_DL -ldld"
19298 else
19299 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304 ac_check_lib_save_LIBS=$LIBS
19305 LIBS="-ldl $LIBS"
19306 cat >conftest.$ac_ext <<_ACEOF
19307 #line $LINENO "configure"
19308 /* confdefs.h. */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19314 /* Override any gcc2 internal prototype to avoid an error. */
19315 #ifdef __cplusplus
19316 extern "C"
19317 #endif
19318 /* We use char because int might match the return type of a gcc2
19319 builtin and then its argument prototype would still apply. */
19320 char dlopen ();
19322 main ()
19324 dlopen ();
19326 return 0;
19328 _ACEOF
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331 (eval $ac_link) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -s conftest$ac_exeext'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19341 ac_cv_lib_dl_dlopen=yes
19342 else
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 ac_cv_lib_dl_dlopen=no
19348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19349 LIBS=$ac_check_lib_save_LIBS
19351 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19353 if test $ac_cv_lib_dl_dlopen = yes; then
19355 cat >>confdefs.h <<\_ACEOF
19356 #define HAVE_LIBDL 1
19357 _ACEOF
19359 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19360 else
19361 cat >conftest.$ac_ext <<_ACEOF
19362 #line $LINENO "configure"
19363 /* confdefs.h. */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 #if HAVE_DLFCN_H
19369 # include <dlfcn.h>
19370 #endif
19373 main ()
19375 dlopen(0, 0);
19377 return 0;
19379 _ACEOF
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19382 (eval $ac_link) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_LIBDL 1
19395 _ACEOF
19396 libltdl_cv_func_dlopen="yes"
19397 else
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19402 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406 ac_check_lib_save_LIBS=$LIBS
19407 LIBS="-lsvld $LIBS"
19408 cat >conftest.$ac_ext <<_ACEOF
19409 #line $LINENO "configure"
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any gcc2 internal prototype to avoid an error. */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 /* We use char because int might match the return type of a gcc2
19421 builtin and then its argument prototype would still apply. */
19422 char dlopen ();
19424 main ()
19426 dlopen ();
19428 return 0;
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19433 (eval $ac_link) 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -s conftest$ac_exeext'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_lib_svld_dlopen=yes
19444 else
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_cv_lib_svld_dlopen=no
19450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19454 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19455 if test $ac_cv_lib_svld_dlopen = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_LIBDL 1
19459 _ACEOF
19461 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
19462 else
19463 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19464 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19465 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 else
19468 ac_check_lib_save_LIBS=$LIBS
19469 LIBS="-ldld $LIBS"
19470 cat >conftest.$ac_ext <<_ACEOF
19471 #line $LINENO "configure"
19472 /* confdefs.h. */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 /* Override any gcc2 internal prototype to avoid an error. */
19479 #ifdef __cplusplus
19480 extern "C"
19481 #endif
19482 /* We use char because int might match the return type of a gcc2
19483 builtin and then its argument prototype would still apply. */
19484 char dld_link ();
19486 main ()
19488 dld_link ();
19490 return 0;
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19495 (eval $ac_link) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } &&
19499 { ac_try='test -s conftest$ac_exeext'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 ac_cv_lib_dld_dld_link=yes
19506 else
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19510 ac_cv_lib_dld_dld_link=no
19512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19516 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19517 if test $ac_cv_lib_dld_dld_link = yes; then
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE_DLD 1
19521 _ACEOF
19523 LIBADD_DL="$LIBADD_DL -ldld"
19524 else
19525 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19526 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
19527 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19529 else
19530 cat >conftest.$ac_ext <<_ACEOF
19531 #line $LINENO "configure"
19532 /* confdefs.h. */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19537 /* System header to define __stub macros and hopefully few prototypes,
19538 which can conflict with char _dyld_func_lookup (); below.
19539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540 <limits.h> exists even on freestanding compilers. */
19541 #ifdef __STDC__
19542 # include <limits.h>
19543 #else
19544 # include <assert.h>
19545 #endif
19546 /* Override any gcc2 internal prototype to avoid an error. */
19547 #ifdef __cplusplus
19548 extern "C"
19550 #endif
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19553 char _dyld_func_lookup ();
19554 /* The GNU C library defines this for functions which it implements
19555 to always fail with ENOSYS. Some functions are actually named
19556 something starting with __ and the normal name is an alias. */
19557 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
19558 choke me
19559 #else
19560 char (*f) () = _dyld_func_lookup;
19561 #endif
19562 #ifdef __cplusplus
19564 #endif
19567 main ()
19569 return f != _dyld_func_lookup;
19571 return 0;
19573 _ACEOF
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19576 (eval $ac_link) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -s conftest$ac_exeext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_cv_func__dyld_func_lookup=yes
19587 else
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19591 ac_cv_func__dyld_func_lookup=no
19593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19595 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
19596 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
19597 if test $ac_cv_func__dyld_func_lookup = yes; then
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_DYLD 1
19601 _ACEOF
19613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19624 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19625 then
19626 lt_save_LIBS="$LIBS"
19627 LIBS="$LIBS $LIBADD_DL"
19629 for ac_func in dlerror
19631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19632 echo "$as_me:$LINENO: checking for $ac_func" >&5
19633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19634 if eval "test \"\${$as_ac_var+set}\" = set"; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637 cat >conftest.$ac_ext <<_ACEOF
19638 #line $LINENO "configure"
19639 /* confdefs.h. */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 /* System header to define __stub macros and hopefully few prototypes,
19645 which can conflict with char $ac_func (); below.
19646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19647 <limits.h> exists even on freestanding compilers. */
19648 #ifdef __STDC__
19649 # include <limits.h>
19650 #else
19651 # include <assert.h>
19652 #endif
19653 /* Override any gcc2 internal prototype to avoid an error. */
19654 #ifdef __cplusplus
19655 extern "C"
19657 #endif
19658 /* We use char because int might match the return type of a gcc2
19659 builtin and then its argument prototype would still apply. */
19660 char $ac_func ();
19661 /* The GNU C library defines this for functions which it implements
19662 to always fail with ENOSYS. Some functions are actually named
19663 something starting with __ and the normal name is an alias. */
19664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19665 choke me
19666 #else
19667 char (*f) () = $ac_func;
19668 #endif
19669 #ifdef __cplusplus
19671 #endif
19674 main ()
19676 return f != $ac_func;
19678 return 0;
19680 _ACEOF
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19683 (eval $ac_link) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
19687 { ac_try='test -s conftest$ac_exeext'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 eval "$as_ac_var=yes"
19694 else
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 eval "$as_ac_var=no"
19700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19704 if test `eval echo '${'$as_ac_var'}'` = yes; then
19705 cat >>confdefs.h <<_ACEOF
19706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19707 _ACEOF
19710 done
19712 LIBS="$lt_save_LIBS"
19714 ac_ext=c
19715 ac_cpp='$CPP $CPPFLAGS'
19716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19722 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
19723 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
19724 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727 ac_cv_sys_symbol_underscore=no
19728 cat > conftest.$ac_ext <<EOF
19729 void nm_test_func(){}
19730 int main(){nm_test_func;return 0;}
19732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19733 (eval $ac_compile) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; then
19737 # Now try to grab the symbols.
19738 ac_nlist=conftest.nm
19739 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
19740 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && test -s "$ac_nlist"; then
19744 # See whether the symbols have a leading underscore.
19745 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19746 ac_cv_sys_symbol_underscore=yes
19747 else
19748 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19750 else
19751 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19754 else
19755 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19757 else
19758 echo "configure: failed program was:" >&5
19759 cat conftest.c >&5
19761 rm -rf conftest*
19764 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
19765 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
19768 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
19769 if test x"$libltdl_cv_func_dlopen" = xyes ||
19770 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19771 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
19772 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
19773 if test "${libltdl_cv_need_uscore+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 else
19776 libltdl_cv_need_uscore=unknown
19777 save_LIBS="$LIBS"
19778 LIBS="$LIBS $LIBADD_DL"
19779 if test "$cross_compiling" = yes; then :
19780 libltdl_cv_need_uscore=cross
19781 else
19782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19783 lt_status=$lt_dlunknown
19784 cat > conftest.$ac_ext <<EOF
19785 #line 19697 "configure"
19786 #include "confdefs.h"
19788 #if HAVE_DLFCN_H
19789 #include <dlfcn.h>
19790 #endif
19792 #include <stdio.h>
19794 #ifdef RTLD_GLOBAL
19795 # define LT_DLGLOBAL RTLD_GLOBAL
19796 #else
19797 # ifdef DL_GLOBAL
19798 # define LT_DLGLOBAL DL_GLOBAL
19799 # else
19800 # define LT_DLGLOBAL 0
19801 # endif
19802 #endif
19804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19805 find out it does not work in some platform. */
19806 #ifndef LT_DLLAZY_OR_NOW
19807 # ifdef RTLD_LAZY
19808 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19809 # else
19810 # ifdef DL_LAZY
19811 # define LT_DLLAZY_OR_NOW DL_LAZY
19812 # else
19813 # ifdef RTLD_NOW
19814 # define LT_DLLAZY_OR_NOW RTLD_NOW
19815 # else
19816 # ifdef DL_NOW
19817 # define LT_DLLAZY_OR_NOW DL_NOW
19818 # else
19819 # define LT_DLLAZY_OR_NOW 0
19820 # endif
19821 # endif
19822 # endif
19823 # endif
19824 #endif
19826 #ifdef __cplusplus
19827 extern "C" void exit (int);
19828 #endif
19830 void fnord() { int i=42;}
19831 int main ()
19833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19834 int status = $lt_dlunknown;
19836 if (self)
19838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19839 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19840 /* dlclose (self); */
19843 exit (status);
19846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19847 (eval $ac_link) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19851 (./conftest; exit; ) 2>/dev/null
19852 lt_status=$?
19853 case x$lt_status in
19854 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19855 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19856 x$lt_unknown|x*) ;;
19857 esac
19858 else :
19859 # compilation failed
19863 rm -fr conftest*
19865 LIBS="$save_LIBS"
19868 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
19869 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
19873 if test x"$libltdl_cv_need_uscore" = xyes; then
19875 cat >>confdefs.h <<\_ACEOF
19876 #define NEED_USCORE 1
19877 _ACEOF
19882 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
19883 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
19884 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887 # PORTME does your system automatically load deplibs for dlopen?
19888 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19889 # For now, we just catch OSes we know something about -- in the
19890 # future, we'll try test this programmatically.
19891 libltdl_cv_sys_dlopen_deplibs=unknown
19892 case "$host_os" in
19893 aix3*|aix4.1.*|aix4.2.*)
19894 # Unknown whether this is true for these versions of AIX, but
19895 # we want this `case' here to explicitly catch those versions.
19896 libltdl_cv_sys_dlopen_deplibs=unknown
19898 aix[45]*)
19899 libltdl_cv_sys_dlopen_deplibs=yes
19901 darwin*)
19902 # Assuming the user has installed a libdl from somewhere, this is true
19903 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19904 libltdl_cv_sys_dlopen_deplibs=yes
19906 gnu*)
19907 libltdl_cv_sys_dlopen_deplibs=yes
19909 hpux10*|hpux11*)
19910 libltdl_cv_sys_dlopen_deplibs=yes
19912 irix[12345]*|irix6.[01]*)
19913 # Catch all versions of IRIX before 6.2, and indicate that we don't
19914 # know how it worked for any of those versions.
19915 libltdl_cv_sys_dlopen_deplibs=unknown
19917 irix*)
19918 # The case above catches anything before 6.2, and it's known that
19919 # at 6.2 and later dlopen does load deplibs.
19920 libltdl_cv_sys_dlopen_deplibs=yes
19922 linux*)
19923 libltdl_cv_sys_dlopen_deplibs=yes
19925 netbsd*)
19926 libltdl_cv_sys_dlopen_deplibs=yes
19928 openbsd*)
19929 libltdl_cv_sys_dlopen_deplibs=yes
19931 osf[1234]*)
19932 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19933 # it did *not* use an RPATH in a shared library to find objects the
19934 # library depends on, so we explictly say `no'.
19935 libltdl_cv_sys_dlopen_deplibs=no
19937 osf5.0|osf5.0a|osf5.1)
19938 # dlopen *does* load deplibs and with the right loader patch applied
19939 # it even uses RPATH in a shared library to search for shared objects
19940 # that the library depends on, but there's no easy way to know if that
19941 # patch is installed. Since this is the case, all we can really
19942 # say is unknown -- it depends on the patch being installed. If
19943 # it is, this changes to `yes'. Without it, it would be `no'.
19944 libltdl_cv_sys_dlopen_deplibs=unknown
19946 osf*)
19947 # the two cases above should catch all versions of osf <= 5.1. Read
19948 # the comments above for what we know about them.
19949 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19950 # is used to find them so we can finally say `yes'.
19951 libltdl_cv_sys_dlopen_deplibs=yes
19953 solaris*)
19954 libltdl_cv_sys_dlopen_deplibs=yes
19956 esac
19959 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
19960 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
19961 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
19963 cat >>confdefs.h <<\_ACEOF
19964 #define LTDL_DLOPEN_DEPLIBS 1
19965 _ACEOF
19970 for ac_header in argz.h
19972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974 echo "$as_me:$LINENO: checking for $ac_header" >&5
19975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19981 else
19982 # Is the header compilable?
19983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19985 cat >conftest.$ac_ext <<_ACEOF
19986 #line $LINENO "configure"
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 $ac_includes_default
19993 #include <$ac_header>
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_header_compiler=yes
20008 else
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20012 ac_header_compiler=no
20014 rm -f conftest.$ac_objext conftest.$ac_ext
20015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20016 echo "${ECHO_T}$ac_header_compiler" >&6
20018 # Is the header present?
20019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20021 cat >conftest.$ac_ext <<_ACEOF
20022 #line $LINENO "configure"
20023 /* confdefs.h. */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028 #include <$ac_header>
20029 _ACEOF
20030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } >/dev/null; then
20038 if test -s conftest.err; then
20039 ac_cpp_err=$ac_c_preproc_warn_flag
20040 else
20041 ac_cpp_err=
20043 else
20044 ac_cpp_err=yes
20046 if test -z "$ac_cpp_err"; then
20047 ac_header_preproc=yes
20048 else
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_header_preproc=no
20054 rm -f conftest.err conftest.$ac_ext
20055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20056 echo "${ECHO_T}$ac_header_preproc" >&6
20058 # So? What about this header?
20059 case $ac_header_compiler:$ac_header_preproc in
20060 yes:no )
20061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066 cat <<\_ASBOX
20067 ## ------------------------------------ ##
20068 ## Report this to bug-autoconf@gnu.org. ##
20069 ## ------------------------------------ ##
20070 _ASBOX
20072 sed "s/^/$as_me: WARNING: /" >&2
20074 no:yes )
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20082 cat <<\_ASBOX
20083 ## ------------------------------------ ##
20084 ## Report this to bug-autoconf@gnu.org. ##
20085 ## ------------------------------------ ##
20086 _ASBOX
20088 sed "s/^/$as_me: WARNING: /" >&2
20090 esac
20091 echo "$as_me:$LINENO: checking for $ac_header" >&5
20092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096 eval "$as_ac_Header=$ac_header_preproc"
20098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20103 cat >>confdefs.h <<_ACEOF
20104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20105 _ACEOF
20109 done
20112 echo "$as_me:$LINENO: checking for error_t" >&5
20113 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
20114 if test "${ac_cv_type_error_t+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117 cat >conftest.$ac_ext <<_ACEOF
20118 #line $LINENO "configure"
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 #if HAVE_ARGZ_H
20125 # include <argz.h>
20126 #endif
20129 main ()
20131 if ((error_t *) 0)
20132 return 0;
20133 if (sizeof (error_t))
20134 return 0;
20136 return 0;
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -s conftest.$ac_objext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_type_error_t=yes
20152 else
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_cv_type_error_t=no
20158 rm -f conftest.$ac_objext conftest.$ac_ext
20160 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20161 echo "${ECHO_T}$ac_cv_type_error_t" >&6
20162 if test $ac_cv_type_error_t = yes; then
20164 cat >>confdefs.h <<_ACEOF
20165 #define HAVE_ERROR_T 1
20166 _ACEOF
20169 else
20171 cat >>confdefs.h <<\_ACEOF
20172 #define error_t int
20173 _ACEOF
20183 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20186 echo "$as_me:$LINENO: checking for $ac_func" >&5
20187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20188 if eval "test \"\${$as_ac_var+set}\" = set"; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191 cat >conftest.$ac_ext <<_ACEOF
20192 #line $LINENO "configure"
20193 /* confdefs.h. */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 /* System header to define __stub macros and hopefully few prototypes,
20199 which can conflict with char $ac_func (); below.
20200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20201 <limits.h> exists even on freestanding compilers. */
20202 #ifdef __STDC__
20203 # include <limits.h>
20204 #else
20205 # include <assert.h>
20206 #endif
20207 /* Override any gcc2 internal prototype to avoid an error. */
20208 #ifdef __cplusplus
20209 extern "C"
20211 #endif
20212 /* We use char because int might match the return type of a gcc2
20213 builtin and then its argument prototype would still apply. */
20214 char $ac_func ();
20215 /* The GNU C library defines this for functions which it implements
20216 to always fail with ENOSYS. Some functions are actually named
20217 something starting with __ and the normal name is an alias. */
20218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20219 choke me
20220 #else
20221 char (*f) () = $ac_func;
20222 #endif
20223 #ifdef __cplusplus
20225 #endif
20228 main ()
20230 return f != $ac_func;
20232 return 0;
20234 _ACEOF
20235 rm -f conftest.$ac_objext conftest$ac_exeext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237 (eval $ac_link) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
20241 { ac_try='test -s conftest$ac_exeext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 eval "$as_ac_var=yes"
20248 else
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 eval "$as_ac_var=no"
20254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20258 if test `eval echo '${'$as_ac_var'}'` = yes; then
20259 cat >>confdefs.h <<_ACEOF
20260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20261 _ACEOF
20264 done
20293 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20294 stdio.h unistd.h
20296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20298 echo "$as_me:$LINENO: checking for $ac_header" >&5
20299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20305 else
20306 # Is the header compilable?
20307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20309 cat >conftest.$ac_ext <<_ACEOF
20310 #line $LINENO "configure"
20311 /* confdefs.h. */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 $ac_includes_default
20317 #include <$ac_header>
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20321 (eval $ac_compile) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
20325 { ac_try='test -s conftest.$ac_objext'
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
20331 ac_header_compiler=yes
20332 else
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20336 ac_header_compiler=no
20338 rm -f conftest.$ac_objext conftest.$ac_ext
20339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20340 echo "${ECHO_T}$ac_header_compiler" >&6
20342 # Is the header present?
20343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20345 cat >conftest.$ac_ext <<_ACEOF
20346 #line $LINENO "configure"
20347 /* confdefs.h. */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20352 #include <$ac_header>
20353 _ACEOF
20354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20356 ac_status=$?
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } >/dev/null; then
20362 if test -s conftest.err; then
20363 ac_cpp_err=$ac_c_preproc_warn_flag
20364 else
20365 ac_cpp_err=
20367 else
20368 ac_cpp_err=yes
20370 if test -z "$ac_cpp_err"; then
20371 ac_header_preproc=yes
20372 else
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20376 ac_header_preproc=no
20378 rm -f conftest.err conftest.$ac_ext
20379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20380 echo "${ECHO_T}$ac_header_preproc" >&6
20382 # So? What about this header?
20383 case $ac_header_compiler:$ac_header_preproc in
20384 yes:no )
20385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20390 cat <<\_ASBOX
20391 ## ------------------------------------ ##
20392 ## Report this to bug-autoconf@gnu.org. ##
20393 ## ------------------------------------ ##
20394 _ASBOX
20396 sed "s/^/$as_me: WARNING: /" >&2
20398 no:yes )
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20406 cat <<\_ASBOX
20407 ## ------------------------------------ ##
20408 ## Report this to bug-autoconf@gnu.org. ##
20409 ## ------------------------------------ ##
20410 _ASBOX
20412 sed "s/^/$as_me: WARNING: /" >&2
20414 esac
20415 echo "$as_me:$LINENO: checking for $ac_header" >&5
20416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420 eval "$as_ac_Header=$ac_header_preproc"
20422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20427 cat >>confdefs.h <<_ACEOF
20428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20429 _ACEOF
20433 done
20439 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
20441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20443 echo "$as_me:$LINENO: checking for $ac_header" >&5
20444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20450 else
20451 # Is the header compilable?
20452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20455 #line $LINENO "configure"
20456 /* confdefs.h. */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 $ac_includes_default
20462 #include <$ac_header>
20463 _ACEOF
20464 rm -f conftest.$ac_objext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20466 (eval $ac_compile) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -s conftest.$ac_objext'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 ac_header_compiler=yes
20477 else
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_header_compiler=no
20483 rm -f conftest.$ac_objext conftest.$ac_ext
20484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20485 echo "${ECHO_T}$ac_header_compiler" >&6
20487 # Is the header present?
20488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20490 cat >conftest.$ac_ext <<_ACEOF
20491 #line $LINENO "configure"
20492 /* confdefs.h. */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 #include <$ac_header>
20498 _ACEOF
20499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20501 ac_status=$?
20502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } >/dev/null; then
20507 if test -s conftest.err; then
20508 ac_cpp_err=$ac_c_preproc_warn_flag
20509 else
20510 ac_cpp_err=
20512 else
20513 ac_cpp_err=yes
20515 if test -z "$ac_cpp_err"; then
20516 ac_header_preproc=yes
20517 else
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_header_preproc=no
20523 rm -f conftest.err conftest.$ac_ext
20524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20525 echo "${ECHO_T}$ac_header_preproc" >&6
20527 # So? What about this header?
20528 case $ac_header_compiler:$ac_header_preproc in
20529 yes:no )
20530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20535 cat <<\_ASBOX
20536 ## ------------------------------------ ##
20537 ## Report this to bug-autoconf@gnu.org. ##
20538 ## ------------------------------------ ##
20539 _ASBOX
20541 sed "s/^/$as_me: WARNING: /" >&2
20543 no:yes )
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20551 cat <<\_ASBOX
20552 ## ------------------------------------ ##
20553 ## Report this to bug-autoconf@gnu.org. ##
20554 ## ------------------------------------ ##
20555 _ASBOX
20557 sed "s/^/$as_me: WARNING: /" >&2
20559 esac
20560 echo "$as_me:$LINENO: checking for $ac_header" >&5
20561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565 eval "$as_ac_Header=$ac_header_preproc"
20567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20572 cat >>confdefs.h <<_ACEOF
20573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20574 _ACEOF
20578 done
20582 for ac_header in string.h strings.h
20584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20586 echo "$as_me:$LINENO: checking for $ac_header" >&5
20587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20593 else
20594 # Is the header compilable?
20595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20597 cat >conftest.$ac_ext <<_ACEOF
20598 #line $LINENO "configure"
20599 /* confdefs.h. */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604 $ac_includes_default
20605 #include <$ac_header>
20606 _ACEOF
20607 rm -f conftest.$ac_objext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20609 (eval $ac_compile) 2>&5
20610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -s conftest.$ac_objext'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_header_compiler=yes
20620 else
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_header_compiler=no
20626 rm -f conftest.$ac_objext conftest.$ac_ext
20627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628 echo "${ECHO_T}$ac_header_compiler" >&6
20630 # Is the header present?
20631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20633 cat >conftest.$ac_ext <<_ACEOF
20634 #line $LINENO "configure"
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 #include <$ac_header>
20641 _ACEOF
20642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } >/dev/null; then
20650 if test -s conftest.err; then
20651 ac_cpp_err=$ac_c_preproc_warn_flag
20652 else
20653 ac_cpp_err=
20655 else
20656 ac_cpp_err=yes
20658 if test -z "$ac_cpp_err"; then
20659 ac_header_preproc=yes
20660 else
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_header_preproc=no
20666 rm -f conftest.err conftest.$ac_ext
20667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20668 echo "${ECHO_T}$ac_header_preproc" >&6
20670 # So? What about this header?
20671 case $ac_header_compiler:$ac_header_preproc in
20672 yes:no )
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20678 cat <<\_ASBOX
20679 ## ------------------------------------ ##
20680 ## Report this to bug-autoconf@gnu.org. ##
20681 ## ------------------------------------ ##
20682 _ASBOX
20684 sed "s/^/$as_me: WARNING: /" >&2
20686 no:yes )
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20694 cat <<\_ASBOX
20695 ## ------------------------------------ ##
20696 ## Report this to bug-autoconf@gnu.org. ##
20697 ## ------------------------------------ ##
20698 _ASBOX
20700 sed "s/^/$as_me: WARNING: /" >&2
20702 esac
20703 echo "$as_me:$LINENO: checking for $ac_header" >&5
20704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708 eval "$as_ac_Header=$ac_header_preproc"
20710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20715 cat >>confdefs.h <<_ACEOF
20716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20717 _ACEOF
20718 break
20721 done
20726 for ac_func in strchr index
20728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20729 echo "$as_me:$LINENO: checking for $ac_func" >&5
20730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20731 if eval "test \"\${$as_ac_var+set}\" = set"; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734 cat >conftest.$ac_ext <<_ACEOF
20735 #line $LINENO "configure"
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20741 /* System header to define __stub macros and hopefully few prototypes,
20742 which can conflict with char $ac_func (); below.
20743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20744 <limits.h> exists even on freestanding compilers. */
20745 #ifdef __STDC__
20746 # include <limits.h>
20747 #else
20748 # include <assert.h>
20749 #endif
20750 /* Override any gcc2 internal prototype to avoid an error. */
20751 #ifdef __cplusplus
20752 extern "C"
20754 #endif
20755 /* We use char because int might match the return type of a gcc2
20756 builtin and then its argument prototype would still apply. */
20757 char $ac_func ();
20758 /* The GNU C library defines this for functions which it implements
20759 to always fail with ENOSYS. Some functions are actually named
20760 something starting with __ and the normal name is an alias. */
20761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20762 choke me
20763 #else
20764 char (*f) () = $ac_func;
20765 #endif
20766 #ifdef __cplusplus
20768 #endif
20771 main ()
20773 return f != $ac_func;
20775 return 0;
20777 _ACEOF
20778 rm -f conftest.$ac_objext conftest$ac_exeext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20780 (eval $ac_link) 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } &&
20784 { ac_try='test -s conftest$ac_exeext'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20787 ac_status=$?
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; }; then
20790 eval "$as_ac_var=yes"
20791 else
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 eval "$as_ac_var=no"
20797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20801 if test `eval echo '${'$as_ac_var'}'` = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20804 _ACEOF
20805 break
20807 done
20811 for ac_func in strrchr rindex
20813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_var+set}\" = set"; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 cat >conftest.$ac_ext <<_ACEOF
20820 #line $LINENO "configure"
20821 /* confdefs.h. */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20826 /* System header to define __stub macros and hopefully few prototypes,
20827 which can conflict with char $ac_func (); below.
20828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20829 <limits.h> exists even on freestanding compilers. */
20830 #ifdef __STDC__
20831 # include <limits.h>
20832 #else
20833 # include <assert.h>
20834 #endif
20835 /* Override any gcc2 internal prototype to avoid an error. */
20836 #ifdef __cplusplus
20837 extern "C"
20839 #endif
20840 /* We use char because int might match the return type of a gcc2
20841 builtin and then its argument prototype would still apply. */
20842 char $ac_func ();
20843 /* The GNU C library defines this for functions which it implements
20844 to always fail with ENOSYS. Some functions are actually named
20845 something starting with __ and the normal name is an alias. */
20846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20847 choke me
20848 #else
20849 char (*f) () = $ac_func;
20850 #endif
20851 #ifdef __cplusplus
20853 #endif
20856 main ()
20858 return f != $ac_func;
20860 return 0;
20862 _ACEOF
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20865 (eval $ac_link) 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -s conftest$ac_exeext'
20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871 (eval $ac_try) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); }; }; then
20875 eval "$as_ac_var=yes"
20876 else
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 eval "$as_ac_var=no"
20882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20886 if test `eval echo '${'$as_ac_var'}'` = yes; then
20887 cat >>confdefs.h <<_ACEOF
20888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20889 _ACEOF
20890 break
20892 done
20896 for ac_func in memcpy bcopy
20898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20899 echo "$as_me:$LINENO: checking for $ac_func" >&5
20900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20901 if eval "test \"\${$as_ac_var+set}\" = set"; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904 cat >conftest.$ac_ext <<_ACEOF
20905 #line $LINENO "configure"
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 /* System header to define __stub macros and hopefully few prototypes,
20912 which can conflict with char $ac_func (); below.
20913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20914 <limits.h> exists even on freestanding compilers. */
20915 #ifdef __STDC__
20916 # include <limits.h>
20917 #else
20918 # include <assert.h>
20919 #endif
20920 /* Override any gcc2 internal prototype to avoid an error. */
20921 #ifdef __cplusplus
20922 extern "C"
20924 #endif
20925 /* We use char because int might match the return type of a gcc2
20926 builtin and then its argument prototype would still apply. */
20927 char $ac_func ();
20928 /* The GNU C library defines this for functions which it implements
20929 to always fail with ENOSYS. Some functions are actually named
20930 something starting with __ and the normal name is an alias. */
20931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20932 choke me
20933 #else
20934 char (*f) () = $ac_func;
20935 #endif
20936 #ifdef __cplusplus
20938 #endif
20941 main ()
20943 return f != $ac_func;
20945 return 0;
20947 _ACEOF
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20950 (eval $ac_link) 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } &&
20954 { ac_try='test -s conftest$ac_exeext'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 eval "$as_ac_var=yes"
20961 else
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 eval "$as_ac_var=no"
20967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20971 if test `eval echo '${'$as_ac_var'}'` = yes; then
20972 cat >>confdefs.h <<_ACEOF
20973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20974 _ACEOF
20975 break
20977 done
20981 for ac_func in memmove strcmp
20983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20984 echo "$as_me:$LINENO: checking for $ac_func" >&5
20985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20986 if eval "test \"\${$as_ac_var+set}\" = set"; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989 cat >conftest.$ac_ext <<_ACEOF
20990 #line $LINENO "configure"
20991 /* confdefs.h. */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 /* System header to define __stub macros and hopefully few prototypes,
20997 which can conflict with char $ac_func (); below.
20998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20999 <limits.h> exists even on freestanding compilers. */
21000 #ifdef __STDC__
21001 # include <limits.h>
21002 #else
21003 # include <assert.h>
21004 #endif
21005 /* Override any gcc2 internal prototype to avoid an error. */
21006 #ifdef __cplusplus
21007 extern "C"
21009 #endif
21010 /* We use char because int might match the return type of a gcc2
21011 builtin and then its argument prototype would still apply. */
21012 char $ac_func ();
21013 /* The GNU C library defines this for functions which it implements
21014 to always fail with ENOSYS. Some functions are actually named
21015 something starting with __ and the normal name is an alias. */
21016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21017 choke me
21018 #else
21019 char (*f) () = $ac_func;
21020 #endif
21021 #ifdef __cplusplus
21023 #endif
21026 main ()
21028 return f != $ac_func;
21030 return 0;
21032 _ACEOF
21033 rm -f conftest.$ac_objext conftest$ac_exeext
21034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21035 (eval $ac_link) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 eval "$as_ac_var=yes"
21046 else
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 eval "$as_ac_var=no"
21052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21056 if test `eval echo '${'$as_ac_var'}'` = yes; then
21057 cat >>confdefs.h <<_ACEOF
21058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21059 _ACEOF
21062 done
21067 for ac_func in closedir opendir readdir
21069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21070 echo "$as_me:$LINENO: checking for $ac_func" >&5
21071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21072 if eval "test \"\${$as_ac_var+set}\" = set"; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075 cat >conftest.$ac_ext <<_ACEOF
21076 #line $LINENO "configure"
21077 /* confdefs.h. */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 /* System header to define __stub macros and hopefully few prototypes,
21083 which can conflict with char $ac_func (); below.
21084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21085 <limits.h> exists even on freestanding compilers. */
21086 #ifdef __STDC__
21087 # include <limits.h>
21088 #else
21089 # include <assert.h>
21090 #endif
21091 /* Override any gcc2 internal prototype to avoid an error. */
21092 #ifdef __cplusplus
21093 extern "C"
21095 #endif
21096 /* We use char because int might match the return type of a gcc2
21097 builtin and then its argument prototype would still apply. */
21098 char $ac_func ();
21099 /* The GNU C library defines this for functions which it implements
21100 to always fail with ENOSYS. Some functions are actually named
21101 something starting with __ and the normal name is an alias. */
21102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21103 choke me
21104 #else
21105 char (*f) () = $ac_func;
21106 #endif
21107 #ifdef __cplusplus
21109 #endif
21112 main ()
21114 return f != $ac_func;
21116 return 0;
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21121 (eval $ac_link) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } &&
21125 { ac_try='test -s conftest$ac_exeext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 eval "$as_ac_var=yes"
21132 else
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 eval "$as_ac_var=no"
21138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21142 if test `eval echo '${'$as_ac_var'}'` = yes; then
21143 cat >>confdefs.h <<_ACEOF
21144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21145 _ACEOF
21148 done
21153 ## -------- ##
21154 ## Outputs. ##
21155 ## -------- ##
21156 ac_config_files="$ac_config_files Makefile"
21158 cat >confcache <<\_ACEOF
21159 # This file is a shell script that caches the results of configure
21160 # tests run on this system so they can be shared between configure
21161 # scripts and configure runs, see configure's option --config-cache.
21162 # It is not useful on other systems. If it contains results you don't
21163 # want to keep, you may remove or edit it.
21165 # config.status only pays attention to the cache file if you give it
21166 # the --recheck option to rerun configure.
21168 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21169 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21170 # following values.
21172 _ACEOF
21174 # The following way of writing the cache mishandles newlines in values,
21175 # but we know of no workaround that is simple, portable, and efficient.
21176 # So, don't put newlines in cache variables' values.
21177 # Ultrix sh set writes to stderr and can't be redirected directly,
21178 # and sets the high bit in the cache file unless we assign to the vars.
21180 (set) 2>&1 |
21181 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21182 *ac_space=\ *)
21183 # `set' does not quote correctly, so add quotes (double-quote
21184 # substitution turns \\\\ into \\, and sed turns \\ into \).
21185 sed -n \
21186 "s/'/'\\\\''/g;
21187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21190 # `set' quotes correctly as required by POSIX, so do not add quotes.
21191 sed -n \
21192 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21194 esac;
21196 sed '
21197 t clear
21198 : clear
21199 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21200 t end
21201 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21202 : end' >>confcache
21203 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21204 if test -w $cache_file; then
21205 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21206 cat confcache >$cache_file
21207 else
21208 echo "not updating unwritable cache $cache_file"
21211 rm -f confcache
21213 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21214 # Let make expand exec_prefix.
21215 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21217 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21218 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21219 # trailing colons and then remove the whole line if VPATH becomes empty
21220 # (actually we leave an empty line to preserve line numbers).
21221 if test "x$srcdir" = x.; then
21222 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21223 s/:*\$(srcdir):*/:/;
21224 s/:*\${srcdir}:*/:/;
21225 s/:*@srcdir@:*/:/;
21226 s/^\([^=]*=[ ]*\):*/\1/;
21227 s/:*$//;
21228 s/^[^=]*=[ ]*$//;
21232 DEFS=-DHAVE_CONFIG_H
21234 ac_libobjs=
21235 ac_ltlibobjs=
21236 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21237 # 1. Remove the extension, and $U if already installed.
21238 ac_i=`echo "$ac_i" |
21239 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21240 # 2. Add them.
21241 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21242 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21243 done
21244 LIBOBJS=$ac_libobjs
21246 LTLIBOBJS=$ac_ltlibobjs
21249 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21250 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21251 Usually this means the macro was only invoked conditionally." >&5
21252 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21253 Usually this means the macro was only invoked conditionally." >&2;}
21254 { (exit 1); exit 1; }; }
21256 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21257 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21258 Usually this means the macro was only invoked conditionally." >&5
21259 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21260 Usually this means the macro was only invoked conditionally." >&2;}
21261 { (exit 1); exit 1; }; }
21263 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21264 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21265 Usually this means the macro was only invoked conditionally." >&5
21266 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21267 Usually this means the macro was only invoked conditionally." >&2;}
21268 { (exit 1); exit 1; }; }
21270 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21271 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21272 Usually this means the macro was only invoked conditionally." >&5
21273 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21274 Usually this means the macro was only invoked conditionally." >&2;}
21275 { (exit 1); exit 1; }; }
21277 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21278 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21279 Usually this means the macro was only invoked conditionally." >&5
21280 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21281 Usually this means the macro was only invoked conditionally." >&2;}
21282 { (exit 1); exit 1; }; }
21285 : ${CONFIG_STATUS=./config.status}
21286 ac_clean_files_save=$ac_clean_files
21287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21288 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21289 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21290 cat >$CONFIG_STATUS <<_ACEOF
21291 #! $SHELL
21292 # Generated by $as_me.
21293 # Run this file to recreate the current configuration.
21294 # Compiler output produced by configure, useful for debugging
21295 # configure, is in config.log if it exists.
21297 debug=false
21298 ac_cs_recheck=false
21299 ac_cs_silent=false
21300 SHELL=\${CONFIG_SHELL-$SHELL}
21301 _ACEOF
21303 cat >>$CONFIG_STATUS <<\_ACEOF
21304 ## --------------------- ##
21305 ## M4sh Initialization. ##
21306 ## --------------------- ##
21308 # Be Bourne compatible
21309 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21310 emulate sh
21311 NULLCMD=:
21312 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21313 # is contrary to our usage. Disable this feature.
21314 alias -g '${1+"$@"}'='"$@"'
21315 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21316 set -o posix
21319 # Support unset when possible.
21320 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21321 as_unset=unset
21322 else
21323 as_unset=false
21327 # Work around bugs in pre-3.0 UWIN ksh.
21328 $as_unset ENV MAIL MAILPATH
21329 PS1='$ '
21330 PS2='> '
21331 PS4='+ '
21333 # NLS nuisances.
21334 for as_var in \
21335 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21336 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21337 LC_TELEPHONE LC_TIME
21339 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
21340 eval $as_var=C; export $as_var
21341 else
21342 $as_unset $as_var
21344 done
21346 # Required to use basename.
21347 if expr a : '\(a\)' >/dev/null 2>&1; then
21348 as_expr=expr
21349 else
21350 as_expr=false
21353 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21354 as_basename=basename
21355 else
21356 as_basename=false
21360 # Name of the executable.
21361 as_me=`$as_basename "$0" ||
21362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21363 X"$0" : 'X\(//\)$' \| \
21364 X"$0" : 'X\(/\)$' \| \
21365 . : '\(.\)' 2>/dev/null ||
21366 echo X/"$0" |
21367 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21368 /^X\/\(\/\/\)$/{ s//\1/; q; }
21369 /^X\/\(\/\).*/{ s//\1/; q; }
21370 s/.*/./; q'`
21373 # PATH needs CR, and LINENO needs CR and PATH.
21374 # Avoid depending upon Character Ranges.
21375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21378 as_cr_digits='0123456789'
21379 as_cr_alnum=$as_cr_Letters$as_cr_digits
21381 # The user is always right.
21382 if test "${PATH_SEPARATOR+set}" != set; then
21383 echo "#! /bin/sh" >conf$$.sh
21384 echo "exit 0" >>conf$$.sh
21385 chmod +x conf$$.sh
21386 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21387 PATH_SEPARATOR=';'
21388 else
21389 PATH_SEPARATOR=:
21391 rm -f conf$$.sh
21395 as_lineno_1=$LINENO
21396 as_lineno_2=$LINENO
21397 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21398 test "x$as_lineno_1" != "x$as_lineno_2" &&
21399 test "x$as_lineno_3" = "x$as_lineno_2" || {
21400 # Find who we are. Look in the path if we contain no path at all
21401 # relative or not.
21402 case $0 in
21403 *[\\/]* ) as_myself=$0 ;;
21404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21405 for as_dir in $PATH
21407 IFS=$as_save_IFS
21408 test -z "$as_dir" && as_dir=.
21409 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21410 done
21413 esac
21414 # We did not find ourselves, most probably we were run as `sh COMMAND'
21415 # in which case we are not to be found in the path.
21416 if test "x$as_myself" = x; then
21417 as_myself=$0
21419 if test ! -f "$as_myself"; then
21420 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21421 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21422 { (exit 1); exit 1; }; }
21424 case $CONFIG_SHELL in
21426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21427 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21429 IFS=$as_save_IFS
21430 test -z "$as_dir" && as_dir=.
21431 for as_base in sh bash ksh sh5; do
21432 case $as_dir in
21434 if ("$as_dir/$as_base" -c '
21435 as_lineno_1=$LINENO
21436 as_lineno_2=$LINENO
21437 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21438 test "x$as_lineno_1" != "x$as_lineno_2" &&
21439 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21440 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21441 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21442 CONFIG_SHELL=$as_dir/$as_base
21443 export CONFIG_SHELL
21444 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21445 fi;;
21446 esac
21447 done
21448 done
21450 esac
21452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21453 # uniformly replaced by the line number. The first 'sed' inserts a
21454 # line-number line before each line; the second 'sed' does the real
21455 # work. The second script uses 'N' to pair each line-number line
21456 # with the numbered line, and appends trailing '-' during
21457 # substitution so that $LINENO is not a special case at line end.
21458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21459 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21460 sed '=' <$as_myself |
21461 sed '
21463 s,$,-,
21464 : loop
21465 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21466 t loop
21467 s,-$,,
21468 s,^['$as_cr_digits']*\n,,
21469 ' >$as_me.lineno &&
21470 chmod +x $as_me.lineno ||
21471 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21472 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21473 { (exit 1); exit 1; }; }
21475 # Don't try to exec as it changes $[0], causing all sort of problems
21476 # (the dirname of $[0] is not the place where we might find the
21477 # original and so on. Autoconf is especially sensible to this).
21478 . ./$as_me.lineno
21479 # Exit status is that of the last command.
21480 exit
21484 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21485 *c*,-n*) ECHO_N= ECHO_C='
21486 ' ECHO_T=' ' ;;
21487 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21488 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21489 esac
21491 if expr a : '\(a\)' >/dev/null 2>&1; then
21492 as_expr=expr
21493 else
21494 as_expr=false
21497 rm -f conf$$ conf$$.exe conf$$.file
21498 echo >conf$$.file
21499 if ln -s conf$$.file conf$$ 2>/dev/null; then
21500 # We could just check for DJGPP; but this test a) works b) is more generic
21501 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21502 if test -f conf$$.exe; then
21503 # Don't use ln at all; we don't have any links
21504 as_ln_s='cp -p'
21505 else
21506 as_ln_s='ln -s'
21508 elif ln conf$$.file conf$$ 2>/dev/null; then
21509 as_ln_s=ln
21510 else
21511 as_ln_s='cp -p'
21513 rm -f conf$$ conf$$.exe conf$$.file
21515 if mkdir -p . 2>/dev/null; then
21516 as_mkdir_p=:
21517 else
21518 as_mkdir_p=false
21521 as_executable_p="test -f"
21523 # Sed expression to map a string onto a valid CPP name.
21524 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21526 # Sed expression to map a string onto a valid variable name.
21527 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21530 # IFS
21531 # We need space, tab and new line, in precisely that order.
21532 as_nl='
21534 IFS=" $as_nl"
21536 # CDPATH.
21537 $as_unset CDPATH
21539 exec 6>&1
21541 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21542 # report actual input values of CONFIG_FILES etc. instead of their
21543 # values after options handling. Logging --version etc. is OK.
21544 exec 5>>config.log
21546 echo
21547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21548 ## Running $as_me. ##
21549 _ASBOX
21550 } >&5
21551 cat >&5 <<_CSEOF
21553 This file was extended by libltdl $as_me 1.2, which was
21554 generated by GNU Autoconf 2.57. Invocation command line was
21556 CONFIG_FILES = $CONFIG_FILES
21557 CONFIG_HEADERS = $CONFIG_HEADERS
21558 CONFIG_LINKS = $CONFIG_LINKS
21559 CONFIG_COMMANDS = $CONFIG_COMMANDS
21560 $ $0 $@
21562 _CSEOF
21563 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21564 echo >&5
21565 _ACEOF
21567 # Files that config.status was made for.
21568 if test -n "$ac_config_files"; then
21569 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21572 if test -n "$ac_config_headers"; then
21573 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21576 if test -n "$ac_config_links"; then
21577 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21580 if test -n "$ac_config_commands"; then
21581 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21584 cat >>$CONFIG_STATUS <<\_ACEOF
21586 ac_cs_usage="\
21587 \`$as_me' instantiates files from templates according to the
21588 current configuration.
21590 Usage: $0 [OPTIONS] [FILE]...
21592 -h, --help print this help, then exit
21593 -V, --version print version number, then exit
21594 -q, --quiet do not print progress messages
21595 -d, --debug don't remove temporary files
21596 --recheck update $as_me by reconfiguring in the same conditions
21597 --file=FILE[:TEMPLATE]
21598 instantiate the configuration file FILE
21599 --header=FILE[:TEMPLATE]
21600 instantiate the configuration header FILE
21602 Configuration files:
21603 $config_files
21605 Configuration headers:
21606 $config_headers
21608 Configuration commands:
21609 $config_commands
21611 Report bugs to <bug-autoconf@gnu.org>."
21612 _ACEOF
21614 cat >>$CONFIG_STATUS <<_ACEOF
21615 ac_cs_version="\\
21616 libltdl config.status 1.2
21617 configured by $0, generated by GNU Autoconf 2.57,
21618 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21620 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21621 Free Software Foundation, Inc.
21622 This config.status script is free software; the Free Software Foundation
21623 gives unlimited permission to copy, distribute and modify it."
21624 srcdir=$srcdir
21625 INSTALL="$INSTALL"
21626 _ACEOF
21628 cat >>$CONFIG_STATUS <<\_ACEOF
21629 # If no file are specified by the user, then we need to provide default
21630 # value. By we need to know if files were specified by the user.
21631 ac_need_defaults=:
21632 while test $# != 0
21634 case $1 in
21635 --*=*)
21636 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21637 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21638 ac_shift=:
21641 ac_option=$1
21642 ac_optarg=$2
21643 ac_shift=shift
21645 *) # This is not an option, so the user has probably given explicit
21646 # arguments.
21647 ac_option=$1
21648 ac_need_defaults=false;;
21649 esac
21651 case $ac_option in
21652 # Handling of the options.
21653 _ACEOF
21654 cat >>$CONFIG_STATUS <<\_ACEOF
21655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21656 ac_cs_recheck=: ;;
21657 --version | --vers* | -V )
21658 echo "$ac_cs_version"; exit 0 ;;
21659 --he | --h)
21660 # Conflict between --help and --header
21661 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21662 Try \`$0 --help' for more information." >&5
21663 echo "$as_me: error: ambiguous option: $1
21664 Try \`$0 --help' for more information." >&2;}
21665 { (exit 1); exit 1; }; };;
21666 --help | --hel | -h )
21667 echo "$ac_cs_usage"; exit 0 ;;
21668 --debug | --d* | -d )
21669 debug=: ;;
21670 --file | --fil | --fi | --f )
21671 $ac_shift
21672 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21673 ac_need_defaults=false;;
21674 --header | --heade | --head | --hea )
21675 $ac_shift
21676 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21677 ac_need_defaults=false;;
21678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21679 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21680 ac_cs_silent=: ;;
21682 # This is an error.
21683 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21684 Try \`$0 --help' for more information." >&5
21685 echo "$as_me: error: unrecognized option: $1
21686 Try \`$0 --help' for more information." >&2;}
21687 { (exit 1); exit 1; }; } ;;
21689 *) ac_config_targets="$ac_config_targets $1" ;;
21691 esac
21692 shift
21693 done
21695 ac_configure_extra_args=
21697 if $ac_cs_silent; then
21698 exec 6>/dev/null
21699 ac_configure_extra_args="$ac_configure_extra_args --silent"
21702 _ACEOF
21703 cat >>$CONFIG_STATUS <<_ACEOF
21704 if \$ac_cs_recheck; then
21705 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21706 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21709 _ACEOF
21711 cat >>$CONFIG_STATUS <<_ACEOF
21713 # INIT-COMMANDS section.
21716 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21718 _ACEOF
21722 cat >>$CONFIG_STATUS <<\_ACEOF
21723 for ac_config_target in $ac_config_targets
21725 case "$ac_config_target" in
21726 # Handling of arguments.
21727 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21728 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21729 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
21730 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21731 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21732 { (exit 1); exit 1; }; };;
21733 esac
21734 done
21736 # If the user did not use the arguments to specify the items to instantiate,
21737 # then the envvar interface is used. Set only those that are not.
21738 # We use the long form for the default assignment because of an extremely
21739 # bizarre bug on SunOS 4.1.3.
21740 if $ac_need_defaults; then
21741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21746 # Have a temporary directory for convenience. Make it in the build tree
21747 # simply because there is no reason to put it here, and in addition,
21748 # creating and moving files from /tmp can sometimes cause problems.
21749 # Create a temporary directory, and hook for its removal unless debugging.
21750 $debug ||
21752 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21753 trap '{ (exit 1); exit 1; }' 1 2 13 15
21756 # Create a (secure) tmp directory for tmp files.
21759 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21760 test -n "$tmp" && test -d "$tmp"
21761 } ||
21763 tmp=./confstat$$-$RANDOM
21764 (umask 077 && mkdir $tmp)
21765 } ||
21767 echo "$me: cannot create a temporary directory in ." >&2
21768 { (exit 1); exit 1; }
21771 _ACEOF
21773 cat >>$CONFIG_STATUS <<_ACEOF
21776 # CONFIG_FILES section.
21779 # No need to generate the scripts if there are no CONFIG_FILES.
21780 # This happens for instance when ./config.status config.h
21781 if test -n "\$CONFIG_FILES"; then
21782 # Protect against being on the right side of a sed subst in config.status.
21783 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21784 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21785 s,@SHELL@,$SHELL,;t t
21786 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21787 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21788 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21789 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21790 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21791 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21792 s,@exec_prefix@,$exec_prefix,;t t
21793 s,@prefix@,$prefix,;t t
21794 s,@program_transform_name@,$program_transform_name,;t t
21795 s,@bindir@,$bindir,;t t
21796 s,@sbindir@,$sbindir,;t t
21797 s,@libexecdir@,$libexecdir,;t t
21798 s,@datadir@,$datadir,;t t
21799 s,@sysconfdir@,$sysconfdir,;t t
21800 s,@sharedstatedir@,$sharedstatedir,;t t
21801 s,@localstatedir@,$localstatedir,;t t
21802 s,@libdir@,$libdir,;t t
21803 s,@includedir@,$includedir,;t t
21804 s,@oldincludedir@,$oldincludedir,;t t
21805 s,@infodir@,$infodir,;t t
21806 s,@mandir@,$mandir,;t t
21807 s,@build_alias@,$build_alias,;t t
21808 s,@host_alias@,$host_alias,;t t
21809 s,@target_alias@,$target_alias,;t t
21810 s,@DEFS@,$DEFS,;t t
21811 s,@ECHO_C@,$ECHO_C,;t t
21812 s,@ECHO_N@,$ECHO_N,;t t
21813 s,@ECHO_T@,$ECHO_T,;t t
21814 s,@LIBS@,$LIBS,;t t
21815 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21816 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21817 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21818 s,@CYGPATH_W@,$CYGPATH_W,;t t
21819 s,@PACKAGE@,$PACKAGE,;t t
21820 s,@VERSION@,$VERSION,;t t
21821 s,@ACLOCAL@,$ACLOCAL,;t t
21822 s,@AUTOCONF@,$AUTOCONF,;t t
21823 s,@AUTOMAKE@,$AUTOMAKE,;t t
21824 s,@AUTOHEADER@,$AUTOHEADER,;t t
21825 s,@MAKEINFO@,$MAKEINFO,;t t
21826 s,@AMTAR@,$AMTAR,;t t
21827 s,@install_sh@,$install_sh,;t t
21828 s,@STRIP@,$STRIP,;t t
21829 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21830 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21831 s,@AWK@,$AWK,;t t
21832 s,@SET_MAKE@,$SET_MAKE,;t t
21833 s,@am__leading_dot@,$am__leading_dot,;t t
21834 s,@CC@,$CC,;t t
21835 s,@CFLAGS@,$CFLAGS,;t t
21836 s,@LDFLAGS@,$LDFLAGS,;t t
21837 s,@CPPFLAGS@,$CPPFLAGS,;t t
21838 s,@ac_ct_CC@,$ac_ct_CC,;t t
21839 s,@EXEEXT@,$EXEEXT,;t t
21840 s,@OBJEXT@,$OBJEXT,;t t
21841 s,@DEPDIR@,$DEPDIR,;t t
21842 s,@am__include@,$am__include,;t t
21843 s,@am__quote@,$am__quote,;t t
21844 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21845 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21846 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21847 s,@CCDEPMODE@,$CCDEPMODE,;t t
21848 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21849 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21850 s,@build@,$build,;t t
21851 s,@build_cpu@,$build_cpu,;t t
21852 s,@build_vendor@,$build_vendor,;t t
21853 s,@build_os@,$build_os,;t t
21854 s,@host@,$host,;t t
21855 s,@host_cpu@,$host_cpu,;t t
21856 s,@host_vendor@,$host_vendor,;t t
21857 s,@host_os@,$host_os,;t t
21858 s,@EGREP@,$EGREP,;t t
21859 s,@LN_S@,$LN_S,;t t
21860 s,@ECHO@,$ECHO,;t t
21861 s,@AR@,$AR,;t t
21862 s,@ac_ct_AR@,$ac_ct_AR,;t t
21863 s,@RANLIB@,$RANLIB,;t t
21864 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21865 s,@DLLTOOL@,$DLLTOOL,;t t
21866 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21867 s,@AS@,$AS,;t t
21868 s,@ac_ct_AS@,$ac_ct_AS,;t t
21869 s,@OBJDUMP@,$OBJDUMP,;t t
21870 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21871 s,@CPP@,$CPP,;t t
21872 s,@CXX@,$CXX,;t t
21873 s,@CXXFLAGS@,$CXXFLAGS,;t t
21874 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21875 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21876 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21877 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21878 s,@CXXCPP@,$CXXCPP,;t t
21879 s,@F77@,$F77,;t t
21880 s,@FFLAGS@,$FFLAGS,;t t
21881 s,@ac_ct_F77@,$ac_ct_F77,;t t
21882 s,@LIBTOOL@,$LIBTOOL,;t t
21883 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
21884 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
21885 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
21886 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
21887 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
21888 s,@LIBADD_DL@,$LIBADD_DL,;t t
21889 s,@LIBOBJS@,$LIBOBJS,;t t
21890 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21891 CEOF
21893 _ACEOF
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896 # Split the substitutions into bite-sized pieces for seds with
21897 # small command number limits, like on Digital OSF/1 and HP-UX.
21898 ac_max_sed_lines=48
21899 ac_sed_frag=1 # Number of current file.
21900 ac_beg=1 # First line for current file.
21901 ac_end=$ac_max_sed_lines # Line after last line for current file.
21902 ac_more_lines=:
21903 ac_sed_cmds=
21904 while $ac_more_lines; do
21905 if test $ac_beg -gt 1; then
21906 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21907 else
21908 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21910 if test ! -s $tmp/subs.frag; then
21911 ac_more_lines=false
21912 else
21913 # The purpose of the label and of the branching condition is to
21914 # speed up the sed processing (if there are no `@' at all, there
21915 # is no need to browse any of the substitutions).
21916 # These are the two extra sed commands mentioned above.
21917 (echo ':t
21918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21919 if test -z "$ac_sed_cmds"; then
21920 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21921 else
21922 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21924 ac_sed_frag=`expr $ac_sed_frag + 1`
21925 ac_beg=$ac_end
21926 ac_end=`expr $ac_end + $ac_max_sed_lines`
21928 done
21929 if test -z "$ac_sed_cmds"; then
21930 ac_sed_cmds=cat
21932 fi # test -n "$CONFIG_FILES"
21934 _ACEOF
21935 cat >>$CONFIG_STATUS <<\_ACEOF
21936 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21938 case $ac_file in
21939 - | *:- | *:-:* ) # input from stdin
21940 cat >$tmp/stdin
21941 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21943 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21945 * ) ac_file_in=$ac_file.in ;;
21946 esac
21948 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21949 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21951 X"$ac_file" : 'X\(//\)[^/]' \| \
21952 X"$ac_file" : 'X\(//\)$' \| \
21953 X"$ac_file" : 'X\(/\)' \| \
21954 . : '\(.\)' 2>/dev/null ||
21955 echo X"$ac_file" |
21956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21957 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21958 /^X\(\/\/\)$/{ s//\1/; q; }
21959 /^X\(\/\).*/{ s//\1/; q; }
21960 s/.*/./; q'`
21961 { if $as_mkdir_p; then
21962 mkdir -p "$ac_dir"
21963 else
21964 as_dir="$ac_dir"
21965 as_dirs=
21966 while test ! -d "$as_dir"; do
21967 as_dirs="$as_dir $as_dirs"
21968 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21970 X"$as_dir" : 'X\(//\)[^/]' \| \
21971 X"$as_dir" : 'X\(//\)$' \| \
21972 X"$as_dir" : 'X\(/\)' \| \
21973 . : '\(.\)' 2>/dev/null ||
21974 echo X"$as_dir" |
21975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21977 /^X\(\/\/\)$/{ s//\1/; q; }
21978 /^X\(\/\).*/{ s//\1/; q; }
21979 s/.*/./; q'`
21980 done
21981 test ! -n "$as_dirs" || mkdir $as_dirs
21982 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21983 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21984 { (exit 1); exit 1; }; }; }
21986 ac_builddir=.
21988 if test "$ac_dir" != .; then
21989 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21990 # A "../" for each directory in $ac_dir_suffix.
21991 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21992 else
21993 ac_dir_suffix= ac_top_builddir=
21996 case $srcdir in
21997 .) # No --srcdir option. We are building in place.
21998 ac_srcdir=.
21999 if test -z "$ac_top_builddir"; then
22000 ac_top_srcdir=.
22001 else
22002 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22003 fi ;;
22004 [\\/]* | ?:[\\/]* ) # Absolute path.
22005 ac_srcdir=$srcdir$ac_dir_suffix;
22006 ac_top_srcdir=$srcdir ;;
22007 *) # Relative path.
22008 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22009 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22010 esac
22011 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22012 # absolute.
22013 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22014 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22015 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22016 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22019 case $INSTALL in
22020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22021 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22022 esac
22024 if test x"$ac_file" != x-; then
22025 { echo "$as_me:$LINENO: creating $ac_file" >&5
22026 echo "$as_me: creating $ac_file" >&6;}
22027 rm -f "$ac_file"
22029 # Let's still pretend it is `configure' which instantiates (i.e., don't
22030 # use $as_me), people would be surprised to read:
22031 # /* config.h. Generated by config.status. */
22032 if test x"$ac_file" = x-; then
22033 configure_input=
22034 else
22035 configure_input="$ac_file. "
22037 configure_input=$configure_input"Generated from `echo $ac_file_in |
22038 sed 's,.*/,,'` by configure."
22040 # First look for the input files in the build tree, otherwise in the
22041 # src tree.
22042 ac_file_inputs=`IFS=:
22043 for f in $ac_file_in; do
22044 case $f in
22045 -) echo $tmp/stdin ;;
22046 [\\/$]*)
22047 # Absolute (can't be DOS-style, as IFS=:)
22048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22049 echo "$as_me: error: cannot find input file: $f" >&2;}
22050 { (exit 1); exit 1; }; }
22051 echo $f;;
22052 *) # Relative
22053 if test -f "$f"; then
22054 # Build tree
22055 echo $f
22056 elif test -f "$srcdir/$f"; then
22057 # Source tree
22058 echo $srcdir/$f
22059 else
22060 # /dev/null tree
22061 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22062 echo "$as_me: error: cannot find input file: $f" >&2;}
22063 { (exit 1); exit 1; }; }
22064 fi;;
22065 esac
22066 done` || { (exit 1); exit 1; }
22067 _ACEOF
22068 cat >>$CONFIG_STATUS <<_ACEOF
22069 sed "$ac_vpsub
22070 $extrasub
22071 _ACEOF
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22075 s,@configure_input@,$configure_input,;t t
22076 s,@srcdir@,$ac_srcdir,;t t
22077 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22078 s,@top_srcdir@,$ac_top_srcdir,;t t
22079 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22080 s,@builddir@,$ac_builddir,;t t
22081 s,@abs_builddir@,$ac_abs_builddir,;t t
22082 s,@top_builddir@,$ac_top_builddir,;t t
22083 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22084 s,@INSTALL@,$ac_INSTALL,;t t
22085 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22086 rm -f $tmp/stdin
22087 if test x"$ac_file" != x-; then
22088 mv $tmp/out $ac_file
22089 else
22090 cat $tmp/out
22091 rm -f $tmp/out
22094 done
22095 _ACEOF
22096 cat >>$CONFIG_STATUS <<\_ACEOF
22099 # CONFIG_HEADER section.
22102 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22103 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22105 # ac_d sets the value in "#define NAME VALUE" lines.
22106 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22107 ac_dB='[ ].*$,\1#\2'
22108 ac_dC=' '
22109 ac_dD=',;t'
22110 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22111 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22112 ac_uB='$,\1#\2define\3'
22113 ac_uC=' '
22114 ac_uD=',;t'
22116 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22118 case $ac_file in
22119 - | *:- | *:-:* ) # input from stdin
22120 cat >$tmp/stdin
22121 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22123 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22125 * ) ac_file_in=$ac_file.in ;;
22126 esac
22128 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22129 echo "$as_me: creating $ac_file" >&6;}
22131 # First look for the input files in the build tree, otherwise in the
22132 # src tree.
22133 ac_file_inputs=`IFS=:
22134 for f in $ac_file_in; do
22135 case $f in
22136 -) echo $tmp/stdin ;;
22137 [\\/$]*)
22138 # Absolute (can't be DOS-style, as IFS=:)
22139 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22140 echo "$as_me: error: cannot find input file: $f" >&2;}
22141 { (exit 1); exit 1; }; }
22142 echo $f;;
22143 *) # Relative
22144 if test -f "$f"; then
22145 # Build tree
22146 echo $f
22147 elif test -f "$srcdir/$f"; then
22148 # Source tree
22149 echo $srcdir/$f
22150 else
22151 # /dev/null tree
22152 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22153 echo "$as_me: error: cannot find input file: $f" >&2;}
22154 { (exit 1); exit 1; }; }
22155 fi;;
22156 esac
22157 done` || { (exit 1); exit 1; }
22158 # Remove the trailing spaces.
22159 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22161 _ACEOF
22163 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22164 # `conftest.undefs', that substitutes the proper values into
22165 # config.h.in to produce config.h. The first handles `#define'
22166 # templates, and the second `#undef' templates.
22167 # And first: Protect against being on the right side of a sed subst in
22168 # config.status. Protect against being in an unquoted here document
22169 # in config.status.
22170 rm -f conftest.defines conftest.undefs
22171 # Using a here document instead of a string reduces the quoting nightmare.
22172 # Putting comments in sed scripts is not portable.
22174 # `end' is used to avoid that the second main sed command (meant for
22175 # 0-ary CPP macros) applies to n-ary macro definitions.
22176 # See the Autoconf documentation for `clear'.
22177 cat >confdef2sed.sed <<\_ACEOF
22178 s/[\\&,]/\\&/g
22179 s,[\\$`],\\&,g
22180 t clear
22181 : clear
22182 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22183 t end
22184 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22185 : end
22186 _ACEOF
22187 # If some macros were called several times there might be several times
22188 # the same #defines, which is useless. Nevertheless, we may not want to
22189 # sort them, since we want the *last* AC-DEFINE to be honored.
22190 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22191 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22192 rm -f confdef2sed.sed
22194 # This sed command replaces #undef with comments. This is necessary, for
22195 # example, in the case of _POSIX_SOURCE, which is predefined and required
22196 # on some systems where configure will not decide to define it.
22197 cat >>conftest.undefs <<\_ACEOF
22198 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22199 _ACEOF
22201 # Break up conftest.defines because some shells have a limit on the size
22202 # of here documents, and old seds have small limits too (100 cmds).
22203 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22204 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22205 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22206 echo ' :' >>$CONFIG_STATUS
22207 rm -f conftest.tail
22208 while grep . conftest.defines >/dev/null
22210 # Write a limited-size here document to $tmp/defines.sed.
22211 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22212 # Speed up: don't consider the non `#define' lines.
22213 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22214 # Work around the forget-to-reset-the-flag bug.
22215 echo 't clr' >>$CONFIG_STATUS
22216 echo ': clr' >>$CONFIG_STATUS
22217 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22218 echo 'CEOF
22219 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22220 rm -f $tmp/in
22221 mv $tmp/out $tmp/in
22222 ' >>$CONFIG_STATUS
22223 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22224 rm -f conftest.defines
22225 mv conftest.tail conftest.defines
22226 done
22227 rm -f conftest.defines
22228 echo ' fi # grep' >>$CONFIG_STATUS
22229 echo >>$CONFIG_STATUS
22231 # Break up conftest.undefs because some shells have a limit on the size
22232 # of here documents, and old seds have small limits too (100 cmds).
22233 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22234 rm -f conftest.tail
22235 while grep . conftest.undefs >/dev/null
22237 # Write a limited-size here document to $tmp/undefs.sed.
22238 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22239 # Speed up: don't consider the non `#undef'
22240 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22241 # Work around the forget-to-reset-the-flag bug.
22242 echo 't clr' >>$CONFIG_STATUS
22243 echo ': clr' >>$CONFIG_STATUS
22244 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22245 echo 'CEOF
22246 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22247 rm -f $tmp/in
22248 mv $tmp/out $tmp/in
22249 ' >>$CONFIG_STATUS
22250 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22251 rm -f conftest.undefs
22252 mv conftest.tail conftest.undefs
22253 done
22254 rm -f conftest.undefs
22256 cat >>$CONFIG_STATUS <<\_ACEOF
22257 # Let's still pretend it is `configure' which instantiates (i.e., don't
22258 # use $as_me), people would be surprised to read:
22259 # /* config.h. Generated by config.status. */
22260 if test x"$ac_file" = x-; then
22261 echo "/* Generated by configure. */" >$tmp/config.h
22262 else
22263 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22265 cat $tmp/in >>$tmp/config.h
22266 rm -f $tmp/in
22267 if test x"$ac_file" != x-; then
22268 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22269 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22270 echo "$as_me: $ac_file is unchanged" >&6;}
22271 else
22272 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22274 X"$ac_file" : 'X\(//\)[^/]' \| \
22275 X"$ac_file" : 'X\(//\)$' \| \
22276 X"$ac_file" : 'X\(/\)' \| \
22277 . : '\(.\)' 2>/dev/null ||
22278 echo X"$ac_file" |
22279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22281 /^X\(\/\/\)$/{ s//\1/; q; }
22282 /^X\(\/\).*/{ s//\1/; q; }
22283 s/.*/./; q'`
22284 { if $as_mkdir_p; then
22285 mkdir -p "$ac_dir"
22286 else
22287 as_dir="$ac_dir"
22288 as_dirs=
22289 while test ! -d "$as_dir"; do
22290 as_dirs="$as_dir $as_dirs"
22291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22293 X"$as_dir" : 'X\(//\)[^/]' \| \
22294 X"$as_dir" : 'X\(//\)$' \| \
22295 X"$as_dir" : 'X\(/\)' \| \
22296 . : '\(.\)' 2>/dev/null ||
22297 echo X"$as_dir" |
22298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22300 /^X\(\/\/\)$/{ s//\1/; q; }
22301 /^X\(\/\).*/{ s//\1/; q; }
22302 s/.*/./; q'`
22303 done
22304 test ! -n "$as_dirs" || mkdir $as_dirs
22305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22306 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22307 { (exit 1); exit 1; }; }; }
22309 rm -f $ac_file
22310 mv $tmp/config.h $ac_file
22312 else
22313 cat $tmp/config.h
22314 rm -f $tmp/config.h
22316 # Compute $ac_file's index in $config_headers.
22317 _am_stamp_count=1
22318 for _am_header in $config_headers :; do
22319 case $_am_header in
22320 $ac_file | $ac_file:* )
22321 break ;;
22323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22324 esac
22325 done
22326 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22327 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22328 X$ac_file : 'X\(//\)[^/]' \| \
22329 X$ac_file : 'X\(//\)$' \| \
22330 X$ac_file : 'X\(/\)' \| \
22331 . : '\(.\)' 2>/dev/null ||
22332 echo X$ac_file |
22333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22335 /^X\(\/\/\)$/{ s//\1/; q; }
22336 /^X\(\/\).*/{ s//\1/; q; }
22337 s/.*/./; q'`/stamp-h$_am_stamp_count
22338 done
22339 _ACEOF
22340 cat >>$CONFIG_STATUS <<\_ACEOF
22343 # CONFIG_COMMANDS section.
22345 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22346 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22347 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22348 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22349 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22350 X"$ac_dest" : 'X\(//\)[^/]' \| \
22351 X"$ac_dest" : 'X\(//\)$' \| \
22352 X"$ac_dest" : 'X\(/\)' \| \
22353 . : '\(.\)' 2>/dev/null ||
22354 echo X"$ac_dest" |
22355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22357 /^X\(\/\/\)$/{ s//\1/; q; }
22358 /^X\(\/\).*/{ s//\1/; q; }
22359 s/.*/./; q'`
22360 ac_builddir=.
22362 if test "$ac_dir" != .; then
22363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22364 # A "../" for each directory in $ac_dir_suffix.
22365 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22366 else
22367 ac_dir_suffix= ac_top_builddir=
22370 case $srcdir in
22371 .) # No --srcdir option. We are building in place.
22372 ac_srcdir=.
22373 if test -z "$ac_top_builddir"; then
22374 ac_top_srcdir=.
22375 else
22376 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22377 fi ;;
22378 [\\/]* | ?:[\\/]* ) # Absolute path.
22379 ac_srcdir=$srcdir$ac_dir_suffix;
22380 ac_top_srcdir=$srcdir ;;
22381 *) # Relative path.
22382 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22383 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22384 esac
22385 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22386 # absolute.
22387 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22388 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22389 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22390 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22393 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22394 echo "$as_me: executing $ac_dest commands" >&6;}
22395 case $ac_dest in
22396 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22397 # Strip MF so we end up with the name of the file.
22398 mf=`echo "$mf" | sed -e 's/:.*$//'`
22399 # Check whether this is an Automake generated Makefile or not.
22400 # We used to match only the files named `Makefile.in', but
22401 # some people rename them; so instead we look at the file content.
22402 # Grep'ing the first line is not enough: some people post-process
22403 # each Makefile.in and add a new line on top of each file to say so.
22404 # So let's grep whole file.
22405 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22406 dirpart=`(dirname "$mf") 2>/dev/null ||
22407 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22408 X"$mf" : 'X\(//\)[^/]' \| \
22409 X"$mf" : 'X\(//\)$' \| \
22410 X"$mf" : 'X\(/\)' \| \
22411 . : '\(.\)' 2>/dev/null ||
22412 echo X"$mf" |
22413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22415 /^X\(\/\/\)$/{ s//\1/; q; }
22416 /^X\(\/\).*/{ s//\1/; q; }
22417 s/.*/./; q'`
22418 else
22419 continue
22421 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22422 # Extract the definition of DEP_FILES from the Makefile without
22423 # running `make'.
22424 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22425 test -z "$DEPDIR" && continue
22426 # When using ansi2knr, U may be empty or an underscore; expand it
22427 U=`sed -n -e '/^U = / s///p' < "$mf"`
22428 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22429 # We invoke sed twice because it is the simplest approach to
22430 # changing $(DEPDIR) to its actual value in the expansion.
22431 for file in `sed -n -e '
22432 /^DEP_FILES = .*\\\\$/ {
22433 s/^DEP_FILES = //
22434 :loop
22435 s/\\\\$//
22438 /\\\\$/ b loop
22441 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22442 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22443 # Make sure the directory exists.
22444 test -f "$dirpart/$file" && continue
22445 fdir=`(dirname "$file") 2>/dev/null ||
22446 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22447 X"$file" : 'X\(//\)[^/]' \| \
22448 X"$file" : 'X\(//\)$' \| \
22449 X"$file" : 'X\(/\)' \| \
22450 . : '\(.\)' 2>/dev/null ||
22451 echo X"$file" |
22452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22454 /^X\(\/\/\)$/{ s//\1/; q; }
22455 /^X\(\/\).*/{ s//\1/; q; }
22456 s/.*/./; q'`
22457 { if $as_mkdir_p; then
22458 mkdir -p $dirpart/$fdir
22459 else
22460 as_dir=$dirpart/$fdir
22461 as_dirs=
22462 while test ! -d "$as_dir"; do
22463 as_dirs="$as_dir $as_dirs"
22464 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22466 X"$as_dir" : 'X\(//\)[^/]' \| \
22467 X"$as_dir" : 'X\(//\)$' \| \
22468 X"$as_dir" : 'X\(/\)' \| \
22469 . : '\(.\)' 2>/dev/null ||
22470 echo X"$as_dir" |
22471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22473 /^X\(\/\/\)$/{ s//\1/; q; }
22474 /^X\(\/\).*/{ s//\1/; q; }
22475 s/.*/./; q'`
22476 done
22477 test ! -n "$as_dirs" || mkdir $as_dirs
22478 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22479 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22480 { (exit 1); exit 1; }; }; }
22482 # echo "creating $dirpart/$file"
22483 echo '# dummy' > "$dirpart/$file"
22484 done
22485 done
22487 esac
22488 done
22489 _ACEOF
22491 cat >>$CONFIG_STATUS <<\_ACEOF
22493 { (exit 0); exit 0; }
22494 _ACEOF
22495 chmod +x $CONFIG_STATUS
22496 ac_clean_files=$ac_clean_files_save
22499 # configure is writing to config.log, and then calls config.status.
22500 # config.status does its own redirection, appending to config.log.
22501 # Unfortunately, on DOS this fails, as config.log is still kept open
22502 # by configure, so config.status won't be able to write to it; its
22503 # output is simply discarded. So we exec the FD to /dev/null,
22504 # effectively closing config.log, so it can be properly (re)opened and
22505 # appended to by config.status. When coming back to configure, we
22506 # need to make the FD available again.
22507 if test "$no_create" != yes; then
22508 ac_cs_success=:
22509 ac_config_status_args=
22510 test "$silent" = yes &&
22511 ac_config_status_args="$ac_config_status_args --quiet"
22512 exec 5>/dev/null
22513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22514 exec 5>>config.log
22515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22516 # would make configure fail if this is the last instruction.
22517 $ac_cs_success || { (exit 1); exit 1; }