* include/Makefile.am (/gthr.h): Don't add
[official-gcc.git] / libjava / libltdl / configure
blob5e4022364813f52d21b3983cae97e6a49bb5d0fd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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 -z "`(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 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 esac
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
278 exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
296 done
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
320 done
321 IFS="$lt_save_ifs"
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
369 prev="$cmd"
370 done
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 exec 6>&1
408 # Initializations.
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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'
469 ac_subst_files=''
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
509 ac_prev=
510 for ac_option
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
523 case $ac_option in
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
542 --config-cache | -C)
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 esac
806 done
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
881 else
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 _ACEOF
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1008 cat <<\_ACEOF
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libltdl 1.2:";;
1024 esac
1025 cat <<\_ACEOF
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
1032 --disable-dependency-tracking speeds up one-time build
1033 --enable-dependency-tracking do not reject slow dependency extractors
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-ltdl-install install libltdl
1043 Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
1052 Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1059 CPP C preprocessor
1060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
1062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1069 Report bugs to <bug-libtool@gnu.org>.
1070 _ACEOF
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085 ac_dir_suffix= ac_top_builddir=
1088 case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1109 case "$ac_dir" in
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1127 case $ac_srcdir in
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 esac;;
1141 esac
1143 cd $ac_dir
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1146 echo
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1149 echo
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1153 echo
1154 $ac_configure --help
1155 else
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 cd "$ac_popdir"
1159 done
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164 cat <<\_ACEOF
1165 libltdl configure 1.2
1166 generated by GNU Autoconf 2.59
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1171 _ACEOF
1172 exit 0
1174 exec 5>config.log
1175 cat >&5 <<_ACEOF
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1179 It was created by libltdl $as_me 1.2, which was
1180 generated by GNU Autoconf 2.59. Invocation command line was
1182 $ $0 $@
1184 _ACEOF
1186 cat <<_ASUNAME
1187 ## --------- ##
1188 ## Platform. ##
1189 ## --------- ##
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208 _ASUNAME
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 for as_dir in $PATH
1213 IFS=$as_save_IFS
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1216 done
1218 } >&5
1220 cat >&5 <<_ACEOF
1223 ## ----------- ##
1224 ## Core tests. ##
1225 ## ----------- ##
1227 _ACEOF
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1235 ac_configure_args=
1236 ac_configure_args0=
1237 ac_configure_args1=
1238 ac_sep=
1239 ac_must_keep_next=false
1240 for ac_pass in 1 2
1242 for ac_arg
1244 case $ac_arg in
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 continue ;;
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 esac
1252 case $ac_pass in
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1258 else
1259 case $ac_arg in
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 esac
1268 -* ) ac_must_keep_next=true ;;
1269 esac
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1273 ac_sep=" "
1275 esac
1276 done
1277 done
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log. We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1289 echo
1291 cat <<\_ASBOX
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1295 _ASBOX
1296 echo
1297 # The following way of writing the cache mishandles newlines in values,
1299 (set) 2>&1 |
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 *ac_space=\ *)
1302 sed -n \
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307 sed -n \
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 esac;
1312 echo
1314 cat <<\_ASBOX
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1318 _ASBOX
1319 echo
1320 for ac_var in $ac_subst_vars
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1324 done | sort
1325 echo
1327 if test -n "$ac_subst_files"; then
1328 cat <<\_ASBOX
1329 ## ------------- ##
1330 ## Output files. ##
1331 ## ------------- ##
1332 _ASBOX
1333 echo
1334 for ac_var in $ac_subst_files
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1338 done | sort
1339 echo
1342 if test -s confdefs.h; then
1343 cat <<\_ASBOX
1344 ## ----------- ##
1345 ## confdefs.h. ##
1346 ## ----------- ##
1347 _ASBOX
1348 echo
1349 sed "/^$/d" confdefs.h | sort
1350 echo
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1355 } >&5
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 exit $exit_status
1360 for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 done
1363 ac_signal=0
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 echo >confdefs.h
1370 # Predefined preprocessor variables.
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 _ACEOF
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 _ACEOF
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 _ACEOF
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 _ACEOF
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 _ACEOF
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 else
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1411 . "$ac_site_file"
1413 done
1415 if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1421 case $cache_file in
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1424 esac
1426 else
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1429 >$cache_file
1432 # Check that the precious variables saved in the cache have kept the same
1433 # value.
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1442 set,)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,set)
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1450 ,);;
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456 echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458 echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1474 done
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1483 ac_ext=c
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518 ## ------------------------------- ##
1519 ## Libltdl specific configuration. ##
1520 ## ------------------------------- ##
1522 ac_aux_dir=
1523 for ac_dir in . $srcdir/.; do
1524 if test -f $ac_dir/install-sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1527 break
1528 elif test -f $ac_dir/install.sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1531 break
1532 elif test -f $ac_dir/shtool; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 break
1537 done
1538 if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1541 { (exit 1); exit 1; }; }
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1548 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1549 if test -f ${srcdir}/ltmain.sh; then
1550 # if libltdl is libtoolized, it is assumed to be stand-alone and
1551 # installed unless the command line overrides it (tested above)
1552 enable_ltdl_install=yes
1553 else
1554 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1555 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1556 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1557 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1558 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1559 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1560 { (exit 1); exit 1; }; }
1565 ## ------------------------ ##
1566 ## Automake Initialisation. ##
1567 ## ------------------------ ##
1568 am__api_version="1.8"
1569 # Find a good install program. We prefer a C program (faster),
1570 # so one script is as good as another. But avoid the broken or
1571 # incompatible versions:
1572 # SysV /etc/install, /usr/sbin/install
1573 # SunOS /usr/etc/install
1574 # IRIX /sbin/install
1575 # AIX /bin/install
1576 # AmigaOS /C/install, which installs bootblocks on floppy discs
1577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1580 # OS/2's system install, which has a completely different semantic
1581 # ./install, which can be erroneously created by make from ./install.sh.
1582 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1583 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1584 if test -z "$INSTALL"; then
1585 if test "${ac_cv_path_install+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1591 IFS=$as_save_IFS
1592 test -z "$as_dir" && as_dir=.
1593 # Account for people who put trailing slashes in PATH elements.
1594 case $as_dir/ in
1595 ./ | .// | /cC/* | \
1596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1597 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1598 /usr/ucb/* ) ;;
1600 # OSF1 and SCO ODT 3.0 have their own names for install.
1601 # Don't use installbsd from OSF since it installs stuff as root
1602 # by default.
1603 for ac_prog in ginstall scoinst install; do
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1606 if test $ac_prog = install &&
1607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # AIX install. It has an incompatible calling convention.
1610 elif test $ac_prog = install &&
1611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1612 # program-specific install script used by HP pwplus--don't use.
1614 else
1615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1616 break 3
1619 done
1620 done
1622 esac
1623 done
1627 if test "${ac_cv_path_install+set}" = set; then
1628 INSTALL=$ac_cv_path_install
1629 else
1630 # As a last resort, use the slow shell script. We don't cache a
1631 # path for INSTALL within a source directory, because that will
1632 # break other packages using the cache if that directory is
1633 # removed, or if the path is relative.
1634 INSTALL=$ac_install_sh
1637 echo "$as_me:$LINENO: result: $INSTALL" >&5
1638 echo "${ECHO_T}$INSTALL" >&6
1640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1641 # It thinks the first close brace ends the variable substitution.
1642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1648 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1649 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1650 # Just in case
1651 sleep 1
1652 echo timestamp > conftest.file
1653 # Do `set' in a subshell so we don't clobber the current shell's
1654 # arguments. Must try -L first in case configure is actually a
1655 # symlink; some systems play weird games with the mod time of symlinks
1656 # (eg FreeBSD returns the mod time of the symlink's containing
1657 # directory).
1658 if (
1659 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1660 if test "$*" = "X"; then
1661 # -L didn't work.
1662 set X `ls -t $srcdir/configure conftest.file`
1664 rm -f conftest.file
1665 if test "$*" != "X $srcdir/configure conftest.file" \
1666 && test "$*" != "X conftest.file $srcdir/configure"; then
1668 # If neither matched, then we have a broken ls. This can happen
1669 # if, for instance, CONFIG_SHELL is bash and it inherits a
1670 # broken ls alias from the environment. This has actually
1671 # happened. Such a system could not be considered "sane".
1672 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1673 alias in your environment" >&5
1674 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1675 alias in your environment" >&2;}
1676 { (exit 1); exit 1; }; }
1679 test "$2" = conftest.file
1681 then
1682 # Ok.
1684 else
1685 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1686 Check your system clock" >&5
1687 echo "$as_me: error: newly created file is older than distributed files!
1688 Check your system clock" >&2;}
1689 { (exit 1); exit 1; }; }
1691 echo "$as_me:$LINENO: result: yes" >&5
1692 echo "${ECHO_T}yes" >&6
1693 test "$program_prefix" != NONE &&
1694 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1695 # Use a double $ so make ignores it.
1696 test "$program_suffix" != NONE &&
1697 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1698 # Double any \ or $. echo might interpret backslashes.
1699 # By default was `s,x,x', remove it if useless.
1700 cat <<\_ACEOF >conftest.sed
1701 s/[\\$]/&&/g;s/;s,x,x,$//
1702 _ACEOF
1703 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1704 rm conftest.sed
1706 # expand $ac_aux_dir to an absolute path
1707 am_aux_dir=`cd $ac_aux_dir && pwd`
1709 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1710 # Use eval to expand $SHELL
1711 if eval "$MISSING --run true"; then
1712 am_missing_run="$MISSING --run "
1713 else
1714 am_missing_run=
1715 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1716 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1719 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1720 # Keeping the `.' argument allows $(mkdir_p) to be used without
1721 # argument. Indeed, we sometimes output rules like
1722 # $(mkdir_p) $(somedir)
1723 # where $(somedir) is conditionally defined.
1724 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1725 # expensive solution, as it forces Make to start a sub-shell.)
1726 mkdir_p='mkdir -p -- .'
1727 else
1728 # On NextStep and OpenStep, the `mkdir' command does not
1729 # recognize any option. It will interpret all options as
1730 # directories to create, and then abort because `.' already
1731 # exists.
1732 for d in ./-p ./--version;
1734 test -d $d && rmdir $d
1735 done
1736 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1737 if test -f "$ac_aux_dir/mkinstalldirs"; then
1738 mkdir_p='$(mkinstalldirs)'
1739 else
1740 mkdir_p='$(install_sh) -d'
1744 for ac_prog in gawk mawk nawk awk
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747 set dummy $ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_AWK+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$AWK"; then
1754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_AWK="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 AWK=$ac_cv_prog_AWK
1773 if test -n "$AWK"; then
1774 echo "$as_me:$LINENO: result: $AWK" >&5
1775 echo "${ECHO_T}$AWK" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$AWK" && break
1782 done
1784 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1785 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1786 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1787 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790 cat >conftest.make <<\_ACEOF
1791 all:
1792 @echo 'ac_maketemp="$(MAKE)"'
1793 _ACEOF
1794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1795 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1796 if test -n "$ac_maketemp"; then
1797 eval ac_cv_prog_make_${ac_make}_set=yes
1798 else
1799 eval ac_cv_prog_make_${ac_make}_set=no
1801 rm -f conftest.make
1803 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1804 echo "$as_me:$LINENO: result: yes" >&5
1805 echo "${ECHO_T}yes" >&6
1806 SET_MAKE=
1807 else
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 SET_MAKE="MAKE=${MAKE-make}"
1813 rm -rf .tst 2>/dev/null
1814 mkdir .tst 2>/dev/null
1815 if test -d .tst; then
1816 am__leading_dot=.
1817 else
1818 am__leading_dot=_
1820 rmdir .tst 2>/dev/null
1822 # test to see if srcdir already configured
1823 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1824 test -f $srcdir/config.status; then
1825 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1826 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1827 { (exit 1); exit 1; }; }
1830 # test whether we have cygpath
1831 if test -z "$CYGPATH_W"; then
1832 if (cygpath --version) >/dev/null 2>/dev/null; then
1833 CYGPATH_W='cygpath -w'
1834 else
1835 CYGPATH_W=echo
1840 # Define the identity of the package.
1841 PACKAGE=libltdl
1842 VERSION=1.2
1845 # Some tools Automake needs.
1847 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1850 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1853 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1856 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1859 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1862 AMTAR=${AMTAR-"${am_missing_run}tar"}
1864 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1866 # Installed binaries are usually stripped using `strip' when the user
1867 # run `make install-strip'. However `strip' might not be the right
1868 # tool to use in cross-compilation environments, therefore Automake
1869 # will honor the `STRIP' environment variable to overrule this program.
1870 if test "$cross_compiling" != no; then
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}strip; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_STRIP+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$STRIP"; then
1880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1893 done
1894 done
1898 STRIP=$ac_cv_prog_STRIP
1899 if test -n "$STRIP"; then
1900 echo "$as_me:$LINENO: result: $STRIP" >&5
1901 echo "${ECHO_T}$STRIP" >&6
1902 else
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$ac_cv_prog_STRIP"; then
1909 ac_ct_STRIP=$STRIP
1910 # Extract the first word of "strip", so it can be a program name with args.
1911 set dummy strip; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 if test -n "$ac_ct_STRIP"; then
1918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_STRIP="strip"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1931 done
1932 done
1934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1938 if test -n "$ac_ct_STRIP"; then
1939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1940 echo "${ECHO_T}$ac_ct_STRIP" >&6
1941 else
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1946 STRIP=$ac_ct_STRIP
1947 else
1948 STRIP="$ac_cv_prog_STRIP"
1952 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1954 # We need awk for the "check" target. The system "awk" is bad on
1955 # some platforms.
1959 ac_config_headers="$ac_config_headers config.h:config-h.in"
1961 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1962 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1963 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1964 if test "${enable_maintainer_mode+set}" = set; then
1965 enableval="$enable_maintainer_mode"
1966 USE_MAINTAINER_MODE=$enableval
1967 else
1968 USE_MAINTAINER_MODE=no
1970 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1971 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1974 if test $USE_MAINTAINER_MODE = yes; then
1975 MAINTAINER_MODE_TRUE=
1976 MAINTAINER_MODE_FALSE='#'
1977 else
1978 MAINTAINER_MODE_TRUE='#'
1979 MAINTAINER_MODE_FALSE=
1982 MAINT=$MAINTAINER_MODE_TRUE
1987 ## ------------------ ##
1988 ## C compiler checks. ##
1989 ## ------------------ ##
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2017 done
2018 done
2022 CC=$ac_cv_prog_CC
2023 if test -n "$CC"; then
2024 echo "$as_me:$LINENO: result: $CC" >&5
2025 echo "${ECHO_T}$CC" >&6
2026 else
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2032 if test -z "$ac_cv_prog_CC"; then
2033 ac_ct_CC=$CC
2034 # Extract the first word of "gcc", so it can be a program name with args.
2035 set dummy gcc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$ac_ct_CC"; then
2042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_ac_ct_CC="gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061 if test -n "$ac_ct_CC"; then
2062 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063 echo "${ECHO_T}$ac_ct_CC" >&6
2064 else
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2069 CC=$ac_ct_CC
2070 else
2071 CC="$ac_cv_prog_CC"
2074 if test -z "$CC"; then
2075 if test -n "$ac_tool_prefix"; then
2076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}cc; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_CC="${ac_tool_prefix}cc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2097 done
2098 done
2102 CC=$ac_cv_prog_CC
2103 if test -n "$CC"; then
2104 echo "$as_me:$LINENO: result: $CC" >&5
2105 echo "${ECHO_T}$CC" >&6
2106 else
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2112 if test -z "$ac_cv_prog_CC"; then
2113 ac_ct_CC=$CC
2114 # Extract the first word of "cc", so it can be a program name with args.
2115 set dummy cc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC="cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2135 done
2136 done
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6
2144 else
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2149 CC=$ac_ct_CC
2150 else
2151 CC="$ac_cv_prog_CC"
2155 if test -z "$CC"; then
2156 # Extract the first word of "cc", so it can be a program name with args.
2157 set dummy cc; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2165 else
2166 ac_prog_rejected=no
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2175 ac_prog_rejected=yes
2176 continue
2178 ac_cv_prog_CC="cc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2182 done
2183 done
2185 if test $ac_prog_rejected = yes; then
2186 # We found a bogon in the path, so make sure we never use it.
2187 set dummy $ac_cv_prog_CC
2188 shift
2189 if test $# != 0; then
2190 # We chose a different compiler from the bogus one.
2191 # However, it has the same basename, so the bogon will be chosen
2192 # first if we set CC to just the basename; use the full file name.
2193 shift
2194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2199 CC=$ac_cv_prog_CC
2200 if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2203 else
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2209 if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then
2211 for ac_prog in cl
2213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2234 done
2235 done
2239 CC=$ac_cv_prog_CC
2240 if test -n "$CC"; then
2241 echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6
2243 else
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2248 test -n "$CC" && break
2249 done
2251 if test -z "$CC"; then
2252 ac_ct_CC=$CC
2253 for ac_prog in cl
2255 # Extract the first word of "$ac_prog", so it can be a program name with args.
2256 set dummy $ac_prog; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2276 done
2277 done
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6
2285 else
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2290 test -n "$ac_ct_CC" && break
2291 done
2293 CC=$ac_ct_CC
2299 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: no acceptable C compiler found in \$PATH
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2305 # Provide some information about the compiler.
2306 echo "$as_me:$LINENO:" \
2307 "checking for C compiler version" >&5
2308 ac_compiler=`set X $ac_compile; echo $2`
2309 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2310 (eval $ac_compiler --version </dev/null >&5) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }
2314 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2315 (eval $ac_compiler -v </dev/null >&5) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2320 (eval $ac_compiler -V </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2325 cat >conftest.$ac_ext <<_ACEOF
2326 /* confdefs.h. */
2327 _ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2333 main ()
2337 return 0;
2339 _ACEOF
2340 ac_clean_files_save=$ac_clean_files
2341 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2342 # Try to create an executable without -o first, disregard a.out.
2343 # It will help us diagnose broken compilers, and finding out an intuition
2344 # of exeext.
2345 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2346 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2347 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2348 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2349 (eval $ac_link_default) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 # Find the output, starting from the most likely. This scheme is
2354 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2355 # resort.
2357 # Be careful to initialize this variable, since it used to be cached.
2358 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2359 ac_cv_exeext=
2360 # b.out is created by i960 compilers.
2361 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2363 test -f "$ac_file" || continue
2364 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2367 conftest.$ac_ext )
2368 # This is the source file.
2370 [ab].out )
2371 # We found the default executable, but exeext='' is most
2372 # certainly right.
2373 break;;
2374 *.* )
2375 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376 # FIXME: I believe we export ac_cv_exeext for Libtool,
2377 # but it would be cool to find out if it's true. Does anybody
2378 # maintain Libtool? --akim.
2379 export ac_cv_exeext
2380 break;;
2382 break;;
2383 esac
2384 done
2385 else
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393 { (exit 77); exit 77; }; }
2396 ac_exeext=$ac_cv_exeext
2397 echo "$as_me:$LINENO: result: $ac_file" >&5
2398 echo "${ECHO_T}$ac_file" >&6
2400 # Check the compiler produces executables we can run. If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2403 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2404 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2405 # If not cross compiling, check that we can run a simple program.
2406 if test "$cross_compiling" != yes; then
2407 if { ac_try='./$ac_file'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 cross_compiling=no
2414 else
2415 if test "$cross_compiling" = maybe; then
2416 cross_compiling=yes
2417 else
2418 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2419 If you meant to cross compile, use \`--host'.
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2428 echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6
2431 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2432 ac_clean_files=$ac_clean_files_save
2433 # Check the compiler produces executables we can run. If not, either
2434 # the compiler is broken, or we cross compile.
2435 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2436 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2437 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2438 echo "${ECHO_T}$cross_compiling" >&6
2440 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2441 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2443 (eval $ac_link) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then
2447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2448 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2449 # work properly (i.e., refer to `conftest.exe'), while it won't with
2450 # `rm'.
2451 for ac_file in conftest.exe conftest conftest.*; do
2452 test -f "$ac_file" || continue
2453 case $ac_file in
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 export ac_cv_exeext
2457 break;;
2458 * ) break;;
2459 esac
2460 done
2461 else
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&2;}
2466 { (exit 1); exit 1; }; }
2469 rm -f conftest$ac_cv_exeext
2470 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2471 echo "${ECHO_T}$ac_cv_exeext" >&6
2473 rm -f conftest.$ac_ext
2474 EXEEXT=$ac_cv_exeext
2475 ac_exeext=$EXEEXT
2476 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2478 if test "${ac_cv_objext+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2489 main ()
2493 return 0;
2495 _ACEOF
2496 rm -f conftest.o conftest.obj
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then
2502 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2503 case $ac_file in
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2506 break;;
2507 esac
2508 done
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2513 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2514 See \`config.log' for more details." >&5
2515 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2516 See \`config.log' for more details." >&2;}
2517 { (exit 1); exit 1; }; }
2520 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2522 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2523 echo "${ECHO_T}$ac_cv_objext" >&6
2524 OBJEXT=$ac_cv_objext
2525 ac_objext=$OBJEXT
2526 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2527 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2528 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h. */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2539 main ()
2541 #ifndef __GNUC__
2542 choke me
2543 #endif
2546 return 0;
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 ac_compiler_gnu=yes
2571 else
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 ac_compiler_gnu=no
2577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2581 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2583 GCC=`test $ac_compiler_gnu = yes && echo yes`
2584 ac_test_CFLAGS=${CFLAGS+set}
2585 ac_save_CFLAGS=$CFLAGS
2586 CFLAGS="-g"
2587 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2589 if test "${ac_cv_prog_cc_g+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 cat >conftest.$ac_ext <<_ACEOF
2593 /* confdefs.h. */
2594 _ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2600 main ()
2604 return 0;
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv_prog_cc_g=yes
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2633 ac_cv_prog_cc_g=no
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2638 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2639 if test "$ac_test_CFLAGS" = set; then
2640 CFLAGS=$ac_save_CFLAGS
2641 elif test $ac_cv_prog_cc_g = yes; then
2642 if test "$GCC" = yes; then
2643 CFLAGS="-g -O2"
2644 else
2645 CFLAGS="-g"
2647 else
2648 if test "$GCC" = yes; then
2649 CFLAGS="-O2"
2650 else
2651 CFLAGS=
2654 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2655 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2656 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659 ac_cv_prog_cc_stdc=no
2660 ac_save_CC=$CC
2661 cat >conftest.$ac_ext <<_ACEOF
2662 /* confdefs.h. */
2663 _ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2667 #include <stdarg.h>
2668 #include <stdio.h>
2669 #include <sys/types.h>
2670 #include <sys/stat.h>
2671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2672 struct buf { int x; };
2673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2674 static char *e (p, i)
2675 char **p;
2676 int i;
2678 return p[i];
2680 static char *f (char * (*g) (char **, int), char **p, ...)
2682 char *s;
2683 va_list v;
2684 va_start (v,p);
2685 s = g (p, va_arg (v,int));
2686 va_end (v);
2687 return s;
2690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2691 function prototypes and stuff, but not '\xHH' hex character constants.
2692 These don't provoke an error unfortunately, instead are silently treated
2693 as 'x'. The following induces an error, until -std1 is added to get
2694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2695 array size at least. It's necessary to write '\x00'==0 to get something
2696 that's true only with -std1. */
2697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2699 int test (int i, double x);
2700 struct s1 {int (*f) (int a);};
2701 struct s2 {int (*f) (double a);};
2702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2703 int argc;
2704 char **argv;
2706 main ()
2708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2710 return 0;
2712 _ACEOF
2713 # Don't try gcc -ansi; that turns off useful extensions and
2714 # breaks some systems' header files.
2715 # AIX -qlanglvl=ansi
2716 # Ultrix and OSF/1 -std1
2717 # HP-UX 10.20 and later -Ae
2718 # HP-UX older versions -Aa -D_HPUX_SOURCE
2719 # SVR4 -Xc -D__EXTENSIONS__
2720 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722 CC="$ac_save_CC $ac_arg"
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725 (eval $ac_compile) 2>conftest.er1
2726 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_cv_prog_cc_stdc=$ac_arg
2745 break
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2751 rm -f conftest.err conftest.$ac_objext
2752 done
2753 rm -f conftest.$ac_ext conftest.$ac_objext
2754 CC=$ac_save_CC
2758 case "x$ac_cv_prog_cc_stdc" in
2759 x|xno)
2760 echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6 ;;
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2765 CC="$CC $ac_cv_prog_cc_stdc" ;;
2766 esac
2768 # Some people use a C++ compiler to compile C. Since we use `exit',
2769 # in C++ we need to declare it. In case someone uses the same compiler
2770 # for both compiling C and C++ we need to have the C++ compiler decide
2771 # the declaration of exit, since it's the most demanding environment.
2772 cat >conftest.$ac_ext <<_ACEOF
2773 #ifndef __cplusplus
2774 choke me
2775 #endif
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 for ac_declaration in \
2799 '' \
2800 'extern "C" void std::exit (int) throw (); using std::exit;' \
2801 'extern "C" void std::exit (int); using std::exit;' \
2802 'extern "C" void exit (int) throw ();' \
2803 'extern "C" void exit (int);' \
2804 'void exit (int);'
2806 cat >conftest.$ac_ext <<_ACEOF
2807 /* confdefs.h. */
2808 _ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2812 $ac_declaration
2813 #include <stdlib.h>
2815 main ()
2817 exit (42);
2819 return 0;
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 continue
2850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851 cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h. */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 $ac_declaration
2859 main ()
2861 exit (42);
2863 return 0;
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 (eval $ac_compile) 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 break
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894 done
2895 rm -f conftest*
2896 if test -n "$ac_declaration"; then
2897 echo '#ifdef __cplusplus' >>confdefs.h
2898 echo $ac_declaration >>confdefs.h
2899 echo '#endif' >>confdefs.h
2902 else
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_ext=c
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 DEPDIR="${am__leading_dot}deps"
2915 ac_config_commands="$ac_config_commands depfiles"
2918 am_make=${MAKE-make}
2919 cat > confinc << 'END'
2920 am__doit:
2921 @echo done
2922 .PHONY: am__doit
2924 # If we don't find an include directive, just comment out the code.
2925 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2926 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2927 am__include="#"
2928 am__quote=
2929 _am_result=none
2930 # First try GNU make style include.
2931 echo "include confinc" > confmf
2932 # We grep out `Entering directory' and `Leaving directory'
2933 # messages which can occur if `w' ends up in MAKEFLAGS.
2934 # In particular we don't look at `^make:' because GNU make might
2935 # be invoked under some other name (usually "gmake"), in which
2936 # case it prints its new name instead of `make'.
2937 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2938 am__include=include
2939 am__quote=
2940 _am_result=GNU
2942 # Now try BSD make style include.
2943 if test "$am__include" = "#"; then
2944 echo '.include "confinc"' > confmf
2945 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2946 am__include=.include
2947 am__quote="\""
2948 _am_result=BSD
2953 echo "$as_me:$LINENO: result: $_am_result" >&5
2954 echo "${ECHO_T}$_am_result" >&6
2955 rm -f confinc confmf
2957 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2958 if test "${enable_dependency_tracking+set}" = set; then
2959 enableval="$enable_dependency_tracking"
2962 if test "x$enable_dependency_tracking" != xno; then
2963 am_depcomp="$ac_aux_dir/depcomp"
2964 AMDEPBACKSLASH='\'
2968 if test "x$enable_dependency_tracking" != xno; then
2969 AMDEP_TRUE=
2970 AMDEP_FALSE='#'
2971 else
2972 AMDEP_TRUE='#'
2973 AMDEP_FALSE=
2979 depcc="$CC" am_compiler_list=
2981 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2982 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2983 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2987 # We make a subdir and do the tests there. Otherwise we can end up
2988 # making bogus files that we don't know about and never remove. For
2989 # instance it was reported that on HP-UX the gcc test will end up
2990 # making a dummy file named `D' -- because `-MD' means `put the output
2991 # in D'.
2992 mkdir conftest.dir
2993 # Copy depcomp to subdir because otherwise we won't find it if we're
2994 # using a relative directory.
2995 cp "$am_depcomp" conftest.dir
2996 cd conftest.dir
2997 # We will build objects and dependencies in a subdirectory because
2998 # it helps to detect inapplicable dependency modes. For instance
2999 # both Tru64's cc and ICC support -MD to output dependencies as a
3000 # side effect of compilation, but ICC will put the dependencies in
3001 # the current directory while Tru64 will put them in the object
3002 # directory.
3003 mkdir sub
3005 am_cv_CC_dependencies_compiler_type=none
3006 if test "$am_compiler_list" = ""; then
3007 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3009 for depmode in $am_compiler_list; do
3010 # Setup a source with many dependencies, because some compilers
3011 # like to wrap large dependency lists on column 80 (with \), and
3012 # we should not choose a depcomp mode which is confused by this.
3014 # We need to recreate these files for each test, as the compiler may
3015 # overwrite some of them when testing with obscure command lines.
3016 # This happens at least with the AIX C compiler.
3017 : > sub/conftest.c
3018 for i in 1 2 3 4 5 6; do
3019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3020 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3021 # Solaris 8's {/usr,}/bin/sh.
3022 touch sub/conftst$i.h
3023 done
3024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3026 case $depmode in
3027 nosideeffect)
3028 # after this tag, mechanisms are not by side-effect, so they'll
3029 # only be used when explicitly requested
3030 if test "x$enable_dependency_tracking" = xyes; then
3031 continue
3032 else
3033 break
3036 none) break ;;
3037 esac
3038 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3039 # mode. It turns out that the SunPro C++ compiler does not properly
3040 # handle `-M -o', and we need to detect this.
3041 if depmode=$depmode \
3042 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3043 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3044 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3045 >/dev/null 2>conftest.err &&
3046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3047 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3049 # icc doesn't choke on unknown options, it will just issue warnings
3050 # or remarks (even with -Werror). So we grep stderr for any message
3051 # that says an option was ignored or not supported.
3052 # When given -MP, icc 7.0 and 7.1 complain thusly:
3053 # icc: Command line warning: ignoring option '-M'; no argument required
3054 # The diagnosis changed in icc 8.0:
3055 # icc: Command line remark: option '-MP' not supported
3056 if (grep 'ignoring option' conftest.err ||
3057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3058 am_cv_CC_dependencies_compiler_type=$depmode
3059 break
3062 done
3064 cd ..
3065 rm -rf conftest.dir
3066 else
3067 am_cv_CC_dependencies_compiler_type=none
3071 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3072 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3073 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3078 test "x$enable_dependency_tracking" != xno \
3079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3080 am__fastdepCC_TRUE=
3081 am__fastdepCC_FALSE='#'
3082 else
3083 am__fastdepCC_TRUE='#'
3084 am__fastdepCC_FALSE=
3089 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3091 if test "${ac_cv_c_const+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3102 main ()
3104 /* FIXME: Include the comments suggested by Paul. */
3105 #ifndef __cplusplus
3106 /* Ultrix mips cc rejects this. */
3107 typedef int charset[2];
3108 const charset x;
3109 /* SunOS 4.1.1 cc rejects this. */
3110 char const *const *ccp;
3111 char **p;
3112 /* NEC SVR4.0.2 mips cc rejects this. */
3113 struct point {int x, y;};
3114 static struct point const zero = {0,0};
3115 /* AIX XL C 1.02.0.0 rejects this.
3116 It does not let you subtract one const X* pointer from another in
3117 an arm of an if-expression whose if-part is not a constant
3118 expression */
3119 const char *g = "string";
3120 ccp = &g + (g ? g-g : 0);
3121 /* HPUX 7.0 cc rejects these. */
3122 ++ccp;
3123 p = (char**) ccp;
3124 ccp = (char const *const *) p;
3125 { /* SCO 3.2v4 cc rejects this. */
3126 char *t;
3127 char const *s = 0 ? (char *) 0 : (char const *) 0;
3129 *t++ = 0;
3131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3132 int x[] = {25, 17};
3133 const int *foo = &x[0];
3134 ++foo;
3136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3137 typedef const int *iptr;
3138 iptr p = 0;
3139 ++p;
3141 { /* AIX XL C 1.02.0.0 rejects this saying
3142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3143 struct s { int j; const int *ap[3]; };
3144 struct s *b; b->j = 5;
3146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3147 const int foo = 10;
3149 #endif
3152 return 0;
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172 (eval $ac_try) 2>&5
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }; }; then
3176 ac_cv_c_const=yes
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 ac_cv_c_const=no
3183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3186 echo "${ECHO_T}$ac_cv_c_const" >&6
3187 if test $ac_cv_c_const = no; then
3189 cat >>confdefs.h <<\_ACEOF
3190 #define const
3191 _ACEOF
3195 echo "$as_me:$LINENO: checking for inline" >&5
3196 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3197 if test "${ac_cv_c_inline+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 ac_cv_c_inline=no
3201 for ac_kw in inline __inline__ __inline; do
3202 cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h. */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208 #ifndef __cplusplus
3209 typedef int foo_t;
3210 static $ac_kw foo_t static_foo () {return 0; }
3211 $ac_kw foo_t foo () {return 0; }
3212 #endif
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217 (eval $ac_compile) 2>conftest.er1
3218 ac_status=$?
3219 grep -v '^ *+' conftest.er1 >conftest.err
3220 rm -f conftest.er1
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 (eval $ac_try) 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 ac_cv_c_inline=$ac_kw; break
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3243 done
3246 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3247 echo "${ECHO_T}$ac_cv_c_inline" >&6
3250 case $ac_cv_c_inline in
3251 inline | yes) ;;
3253 case $ac_cv_c_inline in
3254 no) ac_val=;;
3255 *) ac_val=$ac_cv_c_inline;;
3256 esac
3257 cat >>confdefs.h <<_ACEOF
3258 #ifndef __cplusplus
3259 #define inline $ac_val
3260 #endif
3261 _ACEOF
3263 esac
3267 ## ----------------------- ##
3268 ## Libtool initialisation. ##
3269 ## ----------------------- ##
3272 # Check whether --enable-shared or --disable-shared was given.
3273 if test "${enable_shared+set}" = set; then
3274 enableval="$enable_shared"
3275 p=${PACKAGE-default}
3276 case $enableval in
3277 yes) enable_shared=yes ;;
3278 no) enable_shared=no ;;
3280 enable_shared=no
3281 # Look at the argument we got. We use all the common list separators.
3282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3283 for pkg in $enableval; do
3284 IFS="$lt_save_ifs"
3285 if test "X$pkg" = "X$p"; then
3286 enable_shared=yes
3288 done
3289 IFS="$lt_save_ifs"
3291 esac
3292 else
3293 enable_shared=yes
3296 # Check whether --enable-static or --disable-static was given.
3297 if test "${enable_static+set}" = set; then
3298 enableval="$enable_static"
3299 p=${PACKAGE-default}
3300 case $enableval in
3301 yes) enable_static=yes ;;
3302 no) enable_static=no ;;
3304 enable_static=no
3305 # Look at the argument we got. We use all the common list separators.
3306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3307 for pkg in $enableval; do
3308 IFS="$lt_save_ifs"
3309 if test "X$pkg" = "X$p"; then
3310 enable_static=yes
3312 done
3313 IFS="$lt_save_ifs"
3315 esac
3316 else
3317 enable_static=yes
3320 # Check whether --enable-fast-install or --disable-fast-install was given.
3321 if test "${enable_fast_install+set}" = set; then
3322 enableval="$enable_fast_install"
3323 p=${PACKAGE-default}
3324 case $enableval in
3325 yes) enable_fast_install=yes ;;
3326 no) enable_fast_install=no ;;
3328 enable_fast_install=no
3329 # Look at the argument we got. We use all the common list separators.
3330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3331 for pkg in $enableval; do
3332 IFS="$lt_save_ifs"
3333 if test "X$pkg" = "X$p"; then
3334 enable_fast_install=yes
3336 done
3337 IFS="$lt_save_ifs"
3339 esac
3340 else
3341 enable_fast_install=yes
3344 # Make sure we can run config.sub.
3345 $ac_config_sub sun4 >/dev/null 2>&1 ||
3346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3348 { (exit 1); exit 1; }; }
3350 echo "$as_me:$LINENO: checking build system type" >&5
3351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3352 if test "${ac_cv_build+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 ac_cv_build_alias=$build_alias
3356 test -z "$ac_cv_build_alias" &&
3357 ac_cv_build_alias=`$ac_config_guess`
3358 test -z "$ac_cv_build_alias" &&
3359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3361 { (exit 1); exit 1; }; }
3362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3365 { (exit 1); exit 1; }; }
3368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3369 echo "${ECHO_T}$ac_cv_build" >&6
3370 build=$ac_cv_build
3371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3376 echo "$as_me:$LINENO: checking host system type" >&5
3377 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3378 if test "${ac_cv_host+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 ac_cv_host_alias=$host_alias
3382 test -z "$ac_cv_host_alias" &&
3383 ac_cv_host_alias=$ac_cv_build_alias
3384 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3386 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3387 { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3391 echo "${ECHO_T}$ac_cv_host" >&6
3392 host=$ac_cv_host
3393 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3394 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3395 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3398 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3399 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3400 if test "${lt_cv_path_SED+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 # Loop through the user's path and test for sed and gsed.
3404 # Then use that list of sed's as ones to test for truncation.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for lt_ac_prog in sed gsed; do
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3413 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3415 done
3416 done
3417 done
3418 lt_ac_max=0
3419 lt_ac_count=0
3420 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3421 # along with /bin/sed that truncates output.
3422 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3423 test ! -f $lt_ac_sed && break
3424 cat /dev/null > conftest.in
3425 lt_ac_count=0
3426 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3427 # Check for GNU sed and select it if it is found.
3428 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3429 lt_cv_path_SED=$lt_ac_sed
3430 break
3432 while true; do
3433 cat conftest.in conftest.in >conftest.tmp
3434 mv conftest.tmp conftest.in
3435 cp conftest.in conftest.nl
3436 echo >>conftest.nl
3437 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3438 cmp -s conftest.out conftest.nl || break
3439 # 10000 chars as input seems more than enough
3440 test $lt_ac_count -gt 10 && break
3441 lt_ac_count=`expr $lt_ac_count + 1`
3442 if test $lt_ac_count -gt $lt_ac_max; then
3443 lt_ac_max=$lt_ac_count
3444 lt_cv_path_SED=$lt_ac_sed
3446 done
3447 done
3448 SED=$lt_cv_path_SED
3452 echo "$as_me:$LINENO: result: $SED" >&5
3453 echo "${ECHO_T}$SED" >&6
3455 echo "$as_me:$LINENO: checking for egrep" >&5
3456 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3457 if test "${ac_cv_prog_egrep+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3461 then ac_cv_prog_egrep='grep -E'
3462 else ac_cv_prog_egrep='egrep'
3465 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3466 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3467 EGREP=$ac_cv_prog_egrep
3471 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3472 if test "${with_gnu_ld+set}" = set; then
3473 withval="$with_gnu_ld"
3474 test "$withval" = no || with_gnu_ld=yes
3475 else
3476 with_gnu_ld=no
3478 ac_prog=ld
3479 if test "$GCC" = yes; then
3480 # Check if gcc -print-prog-name=ld gives a path.
3481 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3482 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3483 case $host in
3484 *-*-mingw*)
3485 # gcc leaves a trailing carriage return which upsets mingw
3486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3489 esac
3490 case $ac_prog in
3491 # Accept absolute paths.
3492 [\\/]* | ?:[\\/]*)
3493 re_direlt='/[^/][^/]*/\.\./'
3494 # Canonicalize the path of ld
3495 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3496 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3497 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3498 done
3499 test -z "$LD" && LD="$ac_prog"
3502 # If it fails, then pretend we aren't using GCC.
3503 ac_prog=ld
3506 # If it is relative, then search for the first ld in PATH.
3507 with_gnu_ld=unknown
3509 esac
3510 elif test "$with_gnu_ld" = yes; then
3511 echo "$as_me:$LINENO: checking for GNU ld" >&5
3512 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3513 else
3514 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3515 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3517 if test "${lt_cv_path_LD+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 if test -z "$LD"; then
3521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3522 for ac_dir in $PATH; do
3523 IFS="$lt_save_ifs"
3524 test -z "$ac_dir" && ac_dir=.
3525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3526 lt_cv_path_LD="$ac_dir/$ac_prog"
3527 # Check to see if the program is GNU ld. I'd rather use --version,
3528 # but apparently some GNU ld's only accept -v.
3529 # Break only if it was the GNU/non-GNU ld that we prefer.
3530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3531 *GNU* | *'with BFD'*)
3532 test "$with_gnu_ld" != no && break
3535 test "$with_gnu_ld" != yes && break
3537 esac
3539 done
3540 IFS="$lt_save_ifs"
3541 else
3542 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3546 LD="$lt_cv_path_LD"
3547 if test -n "$LD"; then
3548 echo "$as_me:$LINENO: result: $LD" >&5
3549 echo "${ECHO_T}$LD" >&6
3550 else
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3554 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3555 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3556 { (exit 1); exit 1; }; }
3557 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3558 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3559 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3563 case `"$LD" -v 2>&1 </dev/null` in
3564 *GNU* | *'with BFD'*)
3565 lt_cv_prog_gnu_ld=yes
3568 lt_cv_prog_gnu_ld=no
3570 esac
3572 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3573 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3574 with_gnu_ld=$lt_cv_prog_gnu_ld
3577 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3578 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3579 if test "${lt_cv_ld_reload_flag+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 lt_cv_ld_reload_flag='-r'
3584 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3585 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3586 reload_flag=$lt_cv_ld_reload_flag
3587 case $reload_flag in
3588 "" | " "*) ;;
3589 *) reload_flag=" $reload_flag" ;;
3590 esac
3591 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3593 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3594 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3595 if test "${lt_cv_path_NM+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 if test -n "$NM"; then
3599 # Let the user override the test.
3600 lt_cv_path_NM="$NM"
3601 else
3602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3603 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3604 IFS="$lt_save_ifs"
3605 test -z "$ac_dir" && ac_dir=.
3606 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3608 # Check to see if the nm accepts a BSD-compat flag.
3609 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3610 # nm: unknown option "B" ignored
3611 # Tru64's nm complains that /dev/null is an invalid object file
3612 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3613 */dev/null* | *'Invalid file or object type'*)
3614 lt_cv_path_NM="$tmp_nm -B"
3615 break
3618 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3619 */dev/null*)
3620 lt_cv_path_NM="$tmp_nm -p"
3621 break
3624 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3625 continue # so that we can try to find one that supports BSD flags
3627 esac
3628 esac
3630 done
3631 IFS="$lt_save_ifs"
3632 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3635 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3636 echo "${ECHO_T}$lt_cv_path_NM" >&6
3637 NM="$lt_cv_path_NM"
3639 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3640 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3641 LN_S=$as_ln_s
3642 if test "$LN_S" = "ln -s"; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3647 echo "${ECHO_T}no, using $LN_S" >&6
3650 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3651 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3652 if test "${lt_cv_deplibs_check_method+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 lt_cv_file_magic_cmd='$MAGIC_CMD'
3656 lt_cv_file_magic_test_file=
3657 lt_cv_deplibs_check_method='unknown'
3658 # Need to set the preceding variable on all platforms that support
3659 # interlibrary dependencies.
3660 # 'none' -- dependencies not supported.
3661 # `unknown' -- same as none, but documents that we really don't know.
3662 # 'pass_all' -- all dependencies passed with no checks.
3663 # 'test_compile' -- check by making test program.
3664 # 'file_magic [[regex]]' -- check by looking for files in library path
3665 # which responds to the $file_magic_cmd with a given extended regex.
3666 # If you have `file' or equivalent on your system and you're not sure
3667 # whether `pass_all' will *always* work, you probably want this one.
3669 case $host_os in
3670 aix4* | aix5*)
3671 lt_cv_deplibs_check_method=pass_all
3674 beos*)
3675 lt_cv_deplibs_check_method=pass_all
3678 bsdi4*)
3679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3680 lt_cv_file_magic_cmd='/usr/bin/file -L'
3681 lt_cv_file_magic_test_file=/shlib/libc.so
3684 cygwin* | mingw* | pw32*)
3685 # win32_libid is a shell function defined in ltmain.sh
3686 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3687 lt_cv_file_magic_cmd='win32_libid'
3690 darwin* | rhapsody*)
3691 # this will be overwritten by pass_all, but leave it in just in case
3692 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3693 lt_cv_file_magic_cmd='/usr/bin/file -L'
3694 case "$host_os" in
3695 rhapsody* | darwin1.[012])
3696 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3698 *) # Darwin 1.3 on
3699 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3701 esac
3702 lt_cv_deplibs_check_method=pass_all
3705 freebsd*)
3706 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3707 case $host_cpu in
3708 i*86 )
3709 # Not sure whether the presence of OpenBSD here was a mistake.
3710 # Let's accept both of them until this is cleared up.
3711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3712 lt_cv_file_magic_cmd=/usr/bin/file
3713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3715 esac
3716 else
3717 lt_cv_deplibs_check_method=pass_all
3721 gnu*)
3722 lt_cv_deplibs_check_method=pass_all
3725 hpux10.20* | hpux11*)
3726 lt_cv_file_magic_cmd=/usr/bin/file
3727 case "$host_cpu" in
3728 ia64*)
3729 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3730 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3732 hppa*64*)
3733 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]'
3734 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3738 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3740 esac
3743 irix5* | irix6* | nonstopux*)
3744 case $host_os in
3745 irix5* | nonstopux*)
3746 # this will be overridden with pass_all, but let us keep it just in case
3747 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3750 case $LD in
3751 *-32|*"-32 ") libmagic=32-bit;;
3752 *-n32|*"-n32 ") libmagic=N32;;
3753 *-64|*"-64 ") libmagic=64-bit;;
3754 *) libmagic=never-match;;
3755 esac
3756 # this will be overridden with pass_all, but let us keep it just in case
3757 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3759 esac
3760 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3761 lt_cv_deplibs_check_method=pass_all
3764 # This must be Linux ELF.
3765 linux*)
3766 case $host_cpu in
3767 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3768 lt_cv_deplibs_check_method=pass_all ;;
3770 # glibc up to 2.1.1 does not perform some relocations on ARM
3771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3772 esac
3773 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3776 netbsd*)
3777 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3779 else
3780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3784 newos6*)
3785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3786 lt_cv_file_magic_cmd=/usr/bin/file
3787 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3790 nto-qnx)
3791 lt_cv_deplibs_check_method=unknown
3794 openbsd*)
3795 lt_cv_file_magic_cmd=/usr/bin/file
3796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3798 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3799 else
3800 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3804 osf3* | osf4* | osf5*)
3805 # this will be overridden with pass_all, but let us keep it just in case
3806 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3807 lt_cv_file_magic_test_file=/shlib/libc.so
3808 lt_cv_deplibs_check_method=pass_all
3811 sco3.2v5*)
3812 lt_cv_deplibs_check_method=pass_all
3815 solaris*)
3816 lt_cv_deplibs_check_method=pass_all
3817 lt_cv_file_magic_test_file=/lib/libc.so
3820 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3821 case $host_vendor in
3822 motorola)
3823 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]'
3824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3826 ncr)
3827 lt_cv_deplibs_check_method=pass_all
3829 sequent)
3830 lt_cv_file_magic_cmd='/bin/file'
3831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3833 sni)
3834 lt_cv_file_magic_cmd='/bin/file'
3835 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3836 lt_cv_file_magic_test_file=/lib/libc.so
3838 siemens)
3839 lt_cv_deplibs_check_method=pass_all
3841 esac
3844 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3845 lt_cv_deplibs_check_method=pass_all
3847 esac
3850 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3851 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3852 file_magic_cmd=$lt_cv_file_magic_cmd
3853 deplibs_check_method=$lt_cv_deplibs_check_method
3854 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3859 # If no C compiler was specified, use CC.
3860 LTCC=${LTCC-"$CC"}
3862 # Allow CC to be a program name with arguments.
3863 compiler=$CC
3865 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3866 if test "${enable_libtool_lock+set}" = set; then
3867 enableval="$enable_libtool_lock"
3870 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3872 # Some flags need to be propagated to the compiler or linker for good
3873 # libtool support.
3874 case $host in
3875 ia64-*-hpux*)
3876 # Find out which ABI we are using.
3877 echo 'int i;' > conftest.$ac_ext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879 (eval $ac_compile) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; then
3883 case `/usr/bin/file conftest.$ac_objext` in
3884 *ELF-32*)
3885 HPUX_IA64_MODE="32"
3887 *ELF-64*)
3888 HPUX_IA64_MODE="64"
3890 esac
3892 rm -rf conftest*
3894 *-*-irix6*)
3895 # Find out which ABI we are using.
3896 echo '#line 3896 "configure"' > conftest.$ac_ext
3897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898 (eval $ac_compile) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; then
3902 if test "$lt_cv_prog_gnu_ld" = yes; then
3903 case `/usr/bin/file conftest.$ac_objext` in
3904 *32-bit*)
3905 LD="${LD-ld} -melf32bsmip"
3907 *N32*)
3908 LD="${LD-ld} -melf32bmipn32"
3910 *64-bit*)
3911 LD="${LD-ld} -melf64bmip"
3913 esac
3914 else
3915 case `/usr/bin/file conftest.$ac_objext` in
3916 *32-bit*)
3917 LD="${LD-ld} -32"
3919 *N32*)
3920 LD="${LD-ld} -n32"
3922 *64-bit*)
3923 LD="${LD-ld} -64"
3925 esac
3928 rm -rf conftest*
3931 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3932 # Find out which ABI we are using.
3933 echo 'int i;' > conftest.$ac_ext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935 (eval $ac_compile) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; then
3939 case "`/usr/bin/file conftest.o`" in
3940 *32-bit*)
3941 case $host in
3942 x86_64-*linux*)
3943 LD="${LD-ld} -m elf_i386"
3945 ppc64-*linux*)
3946 LD="${LD-ld} -m elf32ppclinux"
3948 s390x-*linux*)
3949 LD="${LD-ld} -m elf_s390"
3951 sparc64-*linux*)
3952 LD="${LD-ld} -m elf32_sparc"
3954 esac
3956 *64-bit*)
3957 case $host in
3958 x86_64-*linux*)
3959 LD="${LD-ld} -m elf_x86_64"
3961 ppc*-*linux*|powerpc*-*linux*)
3962 LD="${LD-ld} -m elf64ppc"
3964 s390*-*linux*)
3965 LD="${LD-ld} -m elf64_s390"
3967 sparc*-*linux*)
3968 LD="${LD-ld} -m elf64_sparc"
3970 esac
3972 esac
3974 rm -rf conftest*
3977 *-*-sco3.2v5*)
3978 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3979 SAVE_CFLAGS="$CFLAGS"
3980 CFLAGS="$CFLAGS -belf"
3981 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3982 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3983 if test "${lt_cv_cc_needs_belf+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 ac_ext=c
3987 ac_cpp='$CPP $CPPFLAGS'
3988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h. */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
4000 main ()
4004 return 0;
4006 _ACEOF
4007 rm -f conftest.$ac_objext conftest$ac_exeext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest$ac_exeext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 lt_cv_cc_needs_belf=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 lt_cv_cc_needs_belf=no
4035 rm -f conftest.err conftest.$ac_objext \
4036 conftest$ac_exeext conftest.$ac_ext
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4045 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4046 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4047 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4048 CFLAGS="$SAVE_CFLAGS"
4051 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 if test -n "$DLLTOOL"; then
4061 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4079 DLLTOOL=$ac_cv_prog_DLLTOOL
4080 if test -n "$DLLTOOL"; then
4081 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4082 echo "${ECHO_T}$DLLTOOL" >&6
4083 else
4084 echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4089 if test -z "$ac_cv_prog_DLLTOOL"; then
4090 ac_ct_DLLTOOL=$DLLTOOL
4091 # Extract the first word of "dlltool", so it can be a program name with args.
4092 set dummy dlltool; ac_word=$2
4093 echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 if test -n "$ac_ct_DLLTOOL"; then
4099 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4112 done
4113 done
4115 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4118 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4119 if test -n "$ac_ct_DLLTOOL"; then
4120 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4121 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4122 else
4123 echo "$as_me:$LINENO: result: no" >&5
4124 echo "${ECHO_T}no" >&6
4127 DLLTOOL=$ac_ct_DLLTOOL
4128 else
4129 DLLTOOL="$ac_cv_prog_DLLTOOL"
4132 if test -n "$ac_tool_prefix"; then
4133 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4134 set dummy ${ac_tool_prefix}as; ac_word=$2
4135 echo "$as_me:$LINENO: checking for $ac_word" >&5
4136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137 if test "${ac_cv_prog_AS+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 if test -n "$AS"; then
4141 ac_cv_prog_AS="$AS" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_AS="${ac_tool_prefix}as"
4151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4154 done
4155 done
4159 AS=$ac_cv_prog_AS
4160 if test -n "$AS"; then
4161 echo "$as_me:$LINENO: result: $AS" >&5
4162 echo "${ECHO_T}$AS" >&6
4163 else
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4169 if test -z "$ac_cv_prog_AS"; then
4170 ac_ct_AS=$AS
4171 # Extract the first word of "as", so it can be a program name with args.
4172 set dummy as; ac_word=$2
4173 echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 if test -n "$ac_ct_AS"; then
4179 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_ac_ct_AS="as"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4195 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4198 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4199 if test -n "$ac_ct_AS"; then
4200 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4201 echo "${ECHO_T}$ac_ct_AS" >&6
4202 else
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4207 AS=$ac_ct_AS
4208 else
4209 AS="$ac_cv_prog_AS"
4212 if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4214 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 if test -n "$OBJDUMP"; then
4221 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4234 done
4235 done
4239 OBJDUMP=$ac_cv_prog_OBJDUMP
4240 if test -n "$OBJDUMP"; then
4241 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4242 echo "${ECHO_T}$OBJDUMP" >&6
4243 else
4244 echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6
4249 if test -z "$ac_cv_prog_OBJDUMP"; then
4250 ac_ct_OBJDUMP=$OBJDUMP
4251 # Extract the first word of "objdump", so it can be a program name with args.
4252 set dummy objdump; ac_word=$2
4253 echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4255 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 if test -n "$ac_ct_OBJDUMP"; then
4259 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4272 done
4273 done
4275 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4278 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4279 if test -n "$ac_ct_OBJDUMP"; then
4280 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4281 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4287 OBJDUMP=$ac_ct_OBJDUMP
4288 else
4289 OBJDUMP="$ac_cv_prog_OBJDUMP"
4294 esac
4296 need_locks="$enable_libtool_lock"
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4305 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4306 # On Suns, sometimes $CPP names a directory.
4307 if test -n "$CPP" && test -d "$CPP"; then
4308 CPP=
4310 if test -z "$CPP"; then
4311 if test "${ac_cv_prog_CPP+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 # Double quotes because CPP needs to be expanded
4315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4317 ac_preproc_ok=false
4318 for ac_c_preproc_warn_flag in '' yes
4320 # Use a header file that comes with gcc, so configuring glibc
4321 # with a fresh cross-compiler works.
4322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323 # <limits.h> exists even on freestanding compilers.
4324 # On the NeXT, cc -E runs the code through the compiler's parser,
4325 # not just through cpp. "Syntax error" is here to catch this case.
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 #ifdef __STDC__
4333 # include <limits.h>
4334 #else
4335 # include <assert.h>
4336 #endif
4337 Syntax error
4338 _ACEOF
4339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4341 ac_status=$?
4342 grep -v '^ *+' conftest.er1 >conftest.err
4343 rm -f conftest.er1
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } >/dev/null; then
4347 if test -s conftest.err; then
4348 ac_cpp_err=$ac_c_preproc_warn_flag
4349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4350 else
4351 ac_cpp_err=
4353 else
4354 ac_cpp_err=yes
4356 if test -z "$ac_cpp_err"; then
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 # Broken: fails on valid input.
4363 continue
4365 rm -f conftest.err conftest.$ac_ext
4367 # OK, works on sane cases. Now check whether non-existent headers
4368 # can be detected and how.
4369 cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h. */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375 #include <ac_nonexistent.h>
4376 _ACEOF
4377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4379 ac_status=$?
4380 grep -v '^ *+' conftest.er1 >conftest.err
4381 rm -f conftest.er1
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } >/dev/null; then
4385 if test -s conftest.err; then
4386 ac_cpp_err=$ac_c_preproc_warn_flag
4387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4388 else
4389 ac_cpp_err=
4391 else
4392 ac_cpp_err=yes
4394 if test -z "$ac_cpp_err"; then
4395 # Broken: success on invalid input.
4396 continue
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 # Passes both tests.
4402 ac_preproc_ok=:
4403 break
4405 rm -f conftest.err conftest.$ac_ext
4407 done
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.err conftest.$ac_ext
4410 if $ac_preproc_ok; then
4411 break
4414 done
4415 ac_cv_prog_CPP=$CPP
4418 CPP=$ac_cv_prog_CPP
4419 else
4420 ac_cv_prog_CPP=$CPP
4422 echo "$as_me:$LINENO: result: $CPP" >&5
4423 echo "${ECHO_T}$CPP" >&6
4424 ac_preproc_ok=false
4425 for ac_c_preproc_warn_flag in '' yes
4427 # Use a header file that comes with gcc, so configuring glibc
4428 # with a fresh cross-compiler works.
4429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4430 # <limits.h> exists even on freestanding compilers.
4431 # On the NeXT, cc -E runs the code through the compiler's parser,
4432 # not just through cpp. "Syntax error" is here to catch this case.
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 #ifdef __STDC__
4440 # include <limits.h>
4441 #else
4442 # include <assert.h>
4443 #endif
4444 Syntax error
4445 _ACEOF
4446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } >/dev/null; then
4454 if test -s conftest.err; then
4455 ac_cpp_err=$ac_c_preproc_warn_flag
4456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4457 else
4458 ac_cpp_err=
4460 else
4461 ac_cpp_err=yes
4463 if test -z "$ac_cpp_err"; then
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 # Broken: fails on valid input.
4470 continue
4472 rm -f conftest.err conftest.$ac_ext
4474 # OK, works on sane cases. Now check whether non-existent headers
4475 # can be detected and how.
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <ac_nonexistent.h>
4483 _ACEOF
4484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } >/dev/null; then
4492 if test -s conftest.err; then
4493 ac_cpp_err=$ac_c_preproc_warn_flag
4494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4495 else
4496 ac_cpp_err=
4498 else
4499 ac_cpp_err=yes
4501 if test -z "$ac_cpp_err"; then
4502 # Broken: success on invalid input.
4503 continue
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 # Passes both tests.
4509 ac_preproc_ok=:
4510 break
4512 rm -f conftest.err conftest.$ac_ext
4514 done
4515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4516 rm -f conftest.err conftest.$ac_ext
4517 if $ac_preproc_ok; then
4519 else
4520 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4521 See \`config.log' for more details." >&5
4522 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4523 See \`config.log' for more details." >&2;}
4524 { (exit 1); exit 1; }; }
4527 ac_ext=c
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4535 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4536 if test "${ac_cv_header_stdc+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 #include <stdlib.h>
4546 #include <stdarg.h>
4547 #include <string.h>
4548 #include <float.h>
4551 main ()
4555 return 0;
4557 _ACEOF
4558 rm -f conftest.$ac_objext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>conftest.er1
4561 ac_status=$?
4562 grep -v '^ *+' conftest.er1 >conftest.err
4563 rm -f conftest.er1
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 ac_cv_header_stdc=yes
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_cv_header_stdc=no
4586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588 if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 #include <string.h>
4598 _ACEOF
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "memchr" >/dev/null 2>&1; then
4602 else
4603 ac_cv_header_stdc=no
4605 rm -f conftest*
4609 if test $ac_cv_header_stdc = yes; then
4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #include <stdlib.h>
4619 _ACEOF
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621 $EGREP "free" >/dev/null 2>&1; then
4623 else
4624 ac_cv_header_stdc=no
4626 rm -f conftest*
4630 if test $ac_cv_header_stdc = yes; then
4631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4632 if test "$cross_compiling" = yes; then
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <ctype.h>
4642 #if ((' ' & 0x0FF) == 0x020)
4643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4645 #else
4646 # define ISLOWER(c) \
4647 (('a' <= (c) && (c) <= 'i') \
4648 || ('j' <= (c) && (c) <= 'r') \
4649 || ('s' <= (c) && (c) <= 'z'))
4650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4651 #endif
4653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4655 main ()
4657 int i;
4658 for (i = 0; i < 256; i++)
4659 if (XOR (islower (i), ISLOWER (i))
4660 || toupper (i) != TOUPPER (i))
4661 exit(2);
4662 exit (0);
4664 _ACEOF
4665 rm -f conftest$ac_exeext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4667 (eval $ac_link) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4677 else
4678 echo "$as_me: program exited with status $ac_status" >&5
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 ( exit $ac_status )
4683 ac_cv_header_stdc=no
4685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4690 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4691 if test $ac_cv_header_stdc = yes; then
4693 cat >>confdefs.h <<\_ACEOF
4694 #define STDC_HEADERS 1
4695 _ACEOF
4699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4710 inttypes.h stdint.h unistd.h
4712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713 echo "$as_me:$LINENO: checking for $ac_header" >&5
4714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_includes_default
4726 #include <$ac_header>
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 eval "$as_ac_Header=yes"
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 eval "$as_ac_Header=no"
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4761 cat >>confdefs.h <<_ACEOF
4762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4763 _ACEOF
4767 done
4771 for ac_header in dlfcn.h
4773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775 echo "$as_me:$LINENO: checking for $ac_header" >&5
4776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4782 else
4783 # Is the header compilable?
4784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4793 #include <$ac_header>
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 ac_header_compiler=yes
4817 else
4818 echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 ac_header_compiler=no
4823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4825 echo "${ECHO_T}$ac_header_compiler" >&6
4827 # Is the header present?
4828 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #include <$ac_header>
4837 _ACEOF
4838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_c_preproc_warn_flag
4848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4849 else
4850 ac_cpp_err=
4852 else
4853 ac_cpp_err=yes
4855 if test -z "$ac_cpp_err"; then
4856 ac_header_preproc=yes
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_header_preproc=no
4863 rm -f conftest.err conftest.$ac_ext
4864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4865 echo "${ECHO_T}$ac_header_preproc" >&6
4867 # So? What about this header?
4868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4869 yes:no: )
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4874 ac_header_preproc=yes
4876 no:yes:* )
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4890 cat <<\_ASBOX
4891 ## ---------------------------------- ##
4892 ## Report this to bug-libtool@gnu.org ##
4893 ## ---------------------------------- ##
4894 _ASBOX
4896 sed "s/^/$as_me: WARNING: /" >&2
4898 esac
4899 echo "$as_me:$LINENO: checking for $ac_header" >&5
4900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 eval "$as_ac_Header=\$ac_header_preproc"
4906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4911 cat >>confdefs.h <<_ACEOF
4912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4913 _ACEOF
4917 done
4919 ac_ext=cc
4920 ac_cpp='$CXXCPP $CPPFLAGS'
4921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4924 if test -n "$ac_tool_prefix"; then
4925 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4929 echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4931 if test "${ac_cv_prog_CXX+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 if test -n "$CXX"; then
4935 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4953 CXX=$ac_cv_prog_CXX
4954 if test -n "$CXX"; then
4955 echo "$as_me:$LINENO: result: $CXX" >&5
4956 echo "${ECHO_T}$CXX" >&6
4957 else
4958 echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4962 test -n "$CXX" && break
4963 done
4965 if test -z "$CXX"; then
4966 ac_ct_CXX=$CXX
4967 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4969 # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976 if test -n "$ac_ct_CXX"; then
4977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_ac_ct_CXX="$ac_prog"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4995 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4996 if test -n "$ac_ct_CXX"; then
4997 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4998 echo "${ECHO_T}$ac_ct_CXX" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5004 test -n "$ac_ct_CXX" && break
5005 done
5006 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5008 CXX=$ac_ct_CXX
5012 # Provide some information about the compiler.
5013 echo "$as_me:$LINENO:" \
5014 "checking for C++ compiler version" >&5
5015 ac_compiler=`set X $ac_compile; echo $2`
5016 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5017 (eval $ac_compiler --version </dev/null >&5) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }
5021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5022 (eval $ac_compiler -v </dev/null >&5) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }
5026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5027 (eval $ac_compiler -V </dev/null >&5) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }
5032 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5045 main ()
5047 #ifndef __GNUC__
5048 choke me
5049 #endif
5052 return 0;
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_compiler_gnu=yes
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_compiler_gnu=no
5083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5087 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5088 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5089 GXX=`test $ac_compiler_gnu = yes && echo yes`
5090 ac_test_CXXFLAGS=${CXXFLAGS+set}
5091 ac_save_CXXFLAGS=$CXXFLAGS
5092 CXXFLAGS="-g"
5093 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5094 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5095 if test "${ac_cv_prog_cxx_g+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5106 main ()
5110 return 0;
5112 _ACEOF
5113 rm -f conftest.$ac_objext
5114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115 (eval $ac_compile) 2>conftest.er1
5116 ac_status=$?
5117 grep -v '^ *+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; } &&
5128 { ac_try='test -s conftest.$ac_objext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_prog_cxx_g=yes
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ac_cv_prog_cxx_g=no
5141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5144 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5145 if test "$ac_test_CXXFLAGS" = set; then
5146 CXXFLAGS=$ac_save_CXXFLAGS
5147 elif test $ac_cv_prog_cxx_g = yes; then
5148 if test "$GXX" = yes; then
5149 CXXFLAGS="-g -O2"
5150 else
5151 CXXFLAGS="-g"
5153 else
5154 if test "$GXX" = yes; then
5155 CXXFLAGS="-O2"
5156 else
5157 CXXFLAGS=
5160 for ac_declaration in \
5161 '' \
5162 'extern "C" void std::exit (int) throw (); using std::exit;' \
5163 'extern "C" void std::exit (int); using std::exit;' \
5164 'extern "C" void exit (int) throw ();' \
5165 'extern "C" void exit (int);' \
5166 'void exit (int);'
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_declaration
5175 #include <stdlib.h>
5177 main ()
5179 exit (42);
5181 return 0;
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 continue
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213 cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h. */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 $ac_declaration
5221 main ()
5223 exit (42);
5225 return 0;
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 break
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5256 done
5257 rm -f conftest*
5258 if test -n "$ac_declaration"; then
5259 echo '#ifdef __cplusplus' >>confdefs.h
5260 echo $ac_declaration >>confdefs.h
5261 echo '#endif' >>confdefs.h
5264 ac_ext=cc
5265 ac_cpp='$CXXCPP $CPPFLAGS'
5266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270 depcc="$CXX" am_compiler_list=
5272 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5273 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5274 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5278 # We make a subdir and do the tests there. Otherwise we can end up
5279 # making bogus files that we don't know about and never remove. For
5280 # instance it was reported that on HP-UX the gcc test will end up
5281 # making a dummy file named `D' -- because `-MD' means `put the output
5282 # in D'.
5283 mkdir conftest.dir
5284 # Copy depcomp to subdir because otherwise we won't find it if we're
5285 # using a relative directory.
5286 cp "$am_depcomp" conftest.dir
5287 cd conftest.dir
5288 # We will build objects and dependencies in a subdirectory because
5289 # it helps to detect inapplicable dependency modes. For instance
5290 # both Tru64's cc and ICC support -MD to output dependencies as a
5291 # side effect of compilation, but ICC will put the dependencies in
5292 # the current directory while Tru64 will put them in the object
5293 # directory.
5294 mkdir sub
5296 am_cv_CXX_dependencies_compiler_type=none
5297 if test "$am_compiler_list" = ""; then
5298 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5300 for depmode in $am_compiler_list; do
5301 # Setup a source with many dependencies, because some compilers
5302 # like to wrap large dependency lists on column 80 (with \), and
5303 # we should not choose a depcomp mode which is confused by this.
5305 # We need to recreate these files for each test, as the compiler may
5306 # overwrite some of them when testing with obscure command lines.
5307 # This happens at least with the AIX C compiler.
5308 : > sub/conftest.c
5309 for i in 1 2 3 4 5 6; do
5310 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5311 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5312 # Solaris 8's {/usr,}/bin/sh.
5313 touch sub/conftst$i.h
5314 done
5315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5317 case $depmode in
5318 nosideeffect)
5319 # after this tag, mechanisms are not by side-effect, so they'll
5320 # only be used when explicitly requested
5321 if test "x$enable_dependency_tracking" = xyes; then
5322 continue
5323 else
5324 break
5327 none) break ;;
5328 esac
5329 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5330 # mode. It turns out that the SunPro C++ compiler does not properly
5331 # handle `-M -o', and we need to detect this.
5332 if depmode=$depmode \
5333 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5334 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5335 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5336 >/dev/null 2>conftest.err &&
5337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5338 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5340 # icc doesn't choke on unknown options, it will just issue warnings
5341 # or remarks (even with -Werror). So we grep stderr for any message
5342 # that says an option was ignored or not supported.
5343 # When given -MP, icc 7.0 and 7.1 complain thusly:
5344 # icc: Command line warning: ignoring option '-M'; no argument required
5345 # The diagnosis changed in icc 8.0:
5346 # icc: Command line remark: option '-MP' not supported
5347 if (grep 'ignoring option' conftest.err ||
5348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5349 am_cv_CXX_dependencies_compiler_type=$depmode
5350 break
5353 done
5355 cd ..
5356 rm -rf conftest.dir
5357 else
5358 am_cv_CXX_dependencies_compiler_type=none
5362 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5363 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5364 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5369 test "x$enable_dependency_tracking" != xno \
5370 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5371 am__fastdepCXX_TRUE=
5372 am__fastdepCXX_FALSE='#'
5373 else
5374 am__fastdepCXX_TRUE='#'
5375 am__fastdepCXX_FALSE=
5379 ac_ext=cc
5380 ac_cpp='$CXXCPP $CPPFLAGS'
5381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5384 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5385 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5386 if test -z "$CXXCPP"; then
5387 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 # Double quotes because CXXCPP needs to be expanded
5391 for CXXCPP in "$CXX -E" "/lib/cpp"
5393 ac_preproc_ok=false
5394 for ac_cxx_preproc_warn_flag in '' yes
5396 # Use a header file that comes with gcc, so configuring glibc
5397 # with a fresh cross-compiler works.
5398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 # <limits.h> exists even on freestanding compilers.
5400 # On the NeXT, cc -E runs the code through the compiler's parser,
5401 # not just through cpp. "Syntax error" is here to catch this case.
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #ifdef __STDC__
5409 # include <limits.h>
5410 #else
5411 # include <assert.h>
5412 #endif
5413 Syntax error
5414 _ACEOF
5415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null; then
5423 if test -s conftest.err; then
5424 ac_cpp_err=$ac_cxx_preproc_warn_flag
5425 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5426 else
5427 ac_cpp_err=
5429 else
5430 ac_cpp_err=yes
5432 if test -z "$ac_cpp_err"; then
5434 else
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5438 # Broken: fails on valid input.
5439 continue
5441 rm -f conftest.err conftest.$ac_ext
5443 # OK, works on sane cases. Now check whether non-existent headers
5444 # can be detected and how.
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <ac_nonexistent.h>
5452 _ACEOF
5453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } >/dev/null; then
5461 if test -s conftest.err; then
5462 ac_cpp_err=$ac_cxx_preproc_warn_flag
5463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5464 else
5465 ac_cpp_err=
5467 else
5468 ac_cpp_err=yes
5470 if test -z "$ac_cpp_err"; then
5471 # Broken: success on invalid input.
5472 continue
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 # Passes both tests.
5478 ac_preproc_ok=:
5479 break
5481 rm -f conftest.err conftest.$ac_ext
5483 done
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then
5487 break
5490 done
5491 ac_cv_prog_CXXCPP=$CXXCPP
5494 CXXCPP=$ac_cv_prog_CXXCPP
5495 else
5496 ac_cv_prog_CXXCPP=$CXXCPP
5498 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5499 echo "${ECHO_T}$CXXCPP" >&6
5500 ac_preproc_ok=false
5501 for ac_cxx_preproc_warn_flag in '' yes
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 #ifdef __STDC__
5516 # include <limits.h>
5517 #else
5518 # include <assert.h>
5519 #endif
5520 Syntax error
5521 _ACEOF
5522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } >/dev/null; then
5530 if test -s conftest.err; then
5531 ac_cpp_err=$ac_cxx_preproc_warn_flag
5532 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5533 else
5534 ac_cpp_err=
5536 else
5537 ac_cpp_err=yes
5539 if test -z "$ac_cpp_err"; then
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 # Broken: fails on valid input.
5546 continue
5548 rm -f conftest.err conftest.$ac_ext
5550 # OK, works on sane cases. Now check whether non-existent headers
5551 # can be detected and how.
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <ac_nonexistent.h>
5559 _ACEOF
5560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } >/dev/null; then
5568 if test -s conftest.err; then
5569 ac_cpp_err=$ac_cxx_preproc_warn_flag
5570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5571 else
5572 ac_cpp_err=
5574 else
5575 ac_cpp_err=yes
5577 if test -z "$ac_cpp_err"; then
5578 # Broken: success on invalid input.
5579 continue
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 # Passes both tests.
5585 ac_preproc_ok=:
5586 break
5588 rm -f conftest.err conftest.$ac_ext
5590 done
5591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5592 rm -f conftest.err conftest.$ac_ext
5593 if $ac_preproc_ok; then
5595 else
5596 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5597 See \`config.log' for more details." >&5
5598 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5599 See \`config.log' for more details." >&2;}
5600 { (exit 1); exit 1; }; }
5603 ac_ext=cc
5604 ac_cpp='$CXXCPP $CPPFLAGS'
5605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5610 ac_ext=f
5611 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5612 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5613 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5614 if test -n "$ac_tool_prefix"; then
5615 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_prog_F77+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 if test -n "$F77"; then
5625 ac_cv_prog_F77="$F77" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5638 done
5639 done
5643 F77=$ac_cv_prog_F77
5644 if test -n "$F77"; then
5645 echo "$as_me:$LINENO: result: $F77" >&5
5646 echo "${ECHO_T}$F77" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649 echo "${ECHO_T}no" >&6
5652 test -n "$F77" && break
5653 done
5655 if test -z "$F77"; then
5656 ac_ct_F77=$F77
5657 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5659 # Extract the first word of "$ac_prog", so it can be a program name with args.
5660 set dummy $ac_prog; ac_word=$2
5661 echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5663 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 if test -n "$ac_ct_F77"; then
5667 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_ac_ct_F77="$ac_prog"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5680 done
5681 done
5685 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5686 if test -n "$ac_ct_F77"; then
5687 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5688 echo "${ECHO_T}$ac_ct_F77" >&6
5689 else
5690 echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5694 test -n "$ac_ct_F77" && break
5695 done
5697 F77=$ac_ct_F77
5701 # Provide some information about the compiler.
5702 echo "$as_me:5702:" \
5703 "checking for Fortran 77 compiler version" >&5
5704 ac_compiler=`set X $ac_compile; echo $2`
5705 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5706 (eval $ac_compiler --version </dev/null >&5) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }
5710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5711 (eval $ac_compiler -v </dev/null >&5) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }
5715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5716 (eval $ac_compiler -V </dev/null >&5) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }
5720 rm -f a.out
5722 # If we don't use `.F' as extension, the preprocessor is not run on the
5723 # input file. (Note that this only needs to work for GNU compilers.)
5724 ac_save_ext=$ac_ext
5725 ac_ext=F
5726 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5727 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5728 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 program main
5733 #ifndef __GNUC__
5734 choke me
5735 #endif
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741 (eval $ac_compile) 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 (eval $ac_try) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_compiler_gnu=yes
5761 else
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ac_compiler_gnu=no
5767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5768 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5771 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5772 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5773 ac_ext=$ac_save_ext
5774 ac_test_FFLAGS=${FFLAGS+set}
5775 ac_save_FFLAGS=$FFLAGS
5776 FFLAGS=
5777 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5778 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5779 if test "${ac_cv_prog_f77_g+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 FFLAGS=-g
5783 cat >conftest.$ac_ext <<_ACEOF
5784 program main
5787 _ACEOF
5788 rm -f conftest.$ac_objext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5790 (eval $ac_compile) 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; } &&
5803 { ac_try='test -s conftest.$ac_objext'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_prog_f77_g=yes
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 ac_cv_prog_f77_g=no
5816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5820 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5821 if test "$ac_test_FFLAGS" = set; then
5822 FFLAGS=$ac_save_FFLAGS
5823 elif test $ac_cv_prog_f77_g = yes; then
5824 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5825 FFLAGS="-g -O2"
5826 else
5827 FFLAGS="-g"
5829 else
5830 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5831 FFLAGS="-O2"
5832 else
5833 FFLAGS=
5837 G77=`test $ac_compiler_gnu = yes && echo yes`
5838 ac_ext=c
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5848 # find the maximum length of command line arguments
5849 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5850 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5851 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5855 testring="ABCD"
5857 case $build_os in
5858 msdosdjgpp*)
5859 # On DJGPP, this test can blow up pretty badly due to problems in libc
5860 # (any single argument exceeding 2000 bytes causes a buffer overrun
5861 # during glob expansion). Even if it were fixed, the result of this
5862 # check would be larger than it should be.
5863 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5866 gnu*)
5867 # Under GNU Hurd, this test is not required because there is
5868 # no limit to the length of command line arguments.
5869 # Libtool will interpret -1 as no limit whatsoever
5870 lt_cv_sys_max_cmd_len=-1;
5873 cygwin* | mingw*)
5874 # On Win9x/ME, this test blows up -- it succeeds, but takes
5875 # about 5 minutes as the teststring grows exponentially.
5876 # Worse, since 9x/ME are not pre-emptively multitasking,
5877 # you end up with a "frozen" computer, even though with patience
5878 # the test eventually succeeds (with a max line length of 256k).
5879 # Instead, let's just punt: use the minimum linelength reported by
5880 # all of the supported platforms: 8192 (on NT/2K/XP).
5881 lt_cv_sys_max_cmd_len=8192;
5885 # If test is not a shell built-in, we'll probably end up computing a
5886 # maximum length that is only half of the actual maximum length, but
5887 # we can't tell.
5888 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5889 = "XX$testring") >/dev/null 2>&1 &&
5890 new_result=`expr "X$testring" : ".*" 2>&1` &&
5891 lt_cv_sys_max_cmd_len=$new_result &&
5892 test $i != 17 # 1/2 MB should be enough
5894 i=`expr $i + 1`
5895 testring=$testring$testring
5896 done
5897 testring=
5898 # Add a significant safety factor because C++ compilers can tack on massive
5899 # amounts of additional arguments before passing them to the linker.
5900 # It appears as though 1/2 is a usable value.
5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5903 esac
5907 if test -n $lt_cv_sys_max_cmd_len ; then
5908 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5909 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5910 else
5911 echo "$as_me:$LINENO: result: none" >&5
5912 echo "${ECHO_T}none" >&6
5918 # Check for command to grab the raw symbol name followed by C symbol from nm.
5919 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5920 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5921 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5925 # These are sane defaults that work on at least a few old systems.
5926 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5928 # Character class describing NM global symbol codes.
5929 symcode='[BCDEGRST]'
5931 # Regexp to match symbols that can be accessed directly from C.
5932 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5934 # Transform the above into a raw symbol and a C symbol.
5935 symxfrm='\1 \2\3 \3'
5937 # Transform an extracted symbol line into a proper C declaration
5938 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5940 # Transform an extracted symbol line into symbol name and symbol address
5941 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'"
5943 # Define system-specific variables.
5944 case $host_os in
5945 aix*)
5946 symcode='[BCDT]'
5948 cygwin* | mingw* | pw32*)
5949 symcode='[ABCDGISTW]'
5951 hpux*) # Its linker distinguishes data from code symbols
5952 if test "$host_cpu" = ia64; then
5953 symcode='[ABCDEGRST]'
5955 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5956 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'"
5958 irix* | nonstopux*)
5959 symcode='[BCDEGRST]'
5961 osf*)
5962 symcode='[BCDEGQRST]'
5964 solaris* | sysv5*)
5965 symcode='[BDT]'
5967 sysv4)
5968 symcode='[DFNSTU]'
5970 esac
5972 # Handle CRLF in mingw tool chain
5973 opt_cr=
5974 case $build_os in
5975 mingw*)
5976 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5978 esac
5980 # If we're using GNU nm, then use its standard symbol codes.
5981 case `$NM -V 2>&1` in
5982 *GNU* | *'with BFD'*)
5983 symcode='[ABCDGISTW]' ;;
5984 esac
5986 # Try without a prefix undercore, then with it.
5987 for ac_symprfx in "" "_"; do
5989 # Write the raw and C identifiers.
5990 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5992 # Check to see that the pipe works correctly.
5993 pipe_works=no
5995 rm -f conftest*
5996 cat > conftest.$ac_ext <<EOF
5997 #ifdef __cplusplus
5998 extern "C" {
5999 #endif
6000 char nm_test_var;
6001 void nm_test_func(){}
6002 #ifdef __cplusplus
6004 #endif
6005 int main(){nm_test_var='a';nm_test_func();return(0);}
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; then
6013 # Now try to grab the symbols.
6014 nlist=conftest.nm
6015 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6016 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && test -s "$nlist"; then
6020 # Try sorting and uniquifying the output.
6021 if sort "$nlist" | uniq > "$nlist"T; then
6022 mv -f "$nlist"T "$nlist"
6023 else
6024 rm -f "$nlist"T
6027 # Make sure that we snagged all the symbols we need.
6028 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6029 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6030 cat <<EOF > conftest.$ac_ext
6031 #ifdef __cplusplus
6032 extern "C" {
6033 #endif
6036 # Now generate the symbol file.
6037 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6039 cat <<EOF >> conftest.$ac_ext
6040 #if defined (__STDC__) && __STDC__
6041 # define lt_ptr_t void *
6042 #else
6043 # define lt_ptr_t char *
6044 # define const
6045 #endif
6047 /* The mapping between symbol names and symbols. */
6048 const struct {
6049 const char *name;
6050 lt_ptr_t address;
6052 lt_preloaded_symbols[] =
6055 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6056 cat <<\EOF >> conftest.$ac_ext
6057 {0, (lt_ptr_t) 0}
6060 #ifdef __cplusplus
6062 #endif
6064 # Now try linking the two files.
6065 mv conftest.$ac_objext conftstm.$ac_objext
6066 lt_save_LIBS="$LIBS"
6067 lt_save_CFLAGS="$CFLAGS"
6068 LIBS="conftstm.$ac_objext"
6069 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6071 (eval $ac_link) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6075 pipe_works=yes
6077 LIBS="$lt_save_LIBS"
6078 CFLAGS="$lt_save_CFLAGS"
6079 else
6080 echo "cannot find nm_test_func in $nlist" >&5
6082 else
6083 echo "cannot find nm_test_var in $nlist" >&5
6085 else
6086 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6088 else
6089 echo "$progname: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 rm -f conftest* conftst*
6094 # Do not use the global_symbol_pipe unless it works.
6095 if test "$pipe_works" = yes; then
6096 break
6097 else
6098 lt_cv_sys_global_symbol_pipe=
6100 done
6104 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6105 lt_cv_sys_global_symbol_to_cdecl=
6107 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6108 echo "$as_me:$LINENO: result: failed" >&5
6109 echo "${ECHO_T}failed" >&6
6110 else
6111 echo "$as_me:$LINENO: result: ok" >&5
6112 echo "${ECHO_T}ok" >&6
6115 echo "$as_me:$LINENO: checking for objdir" >&5
6116 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6117 if test "${lt_cv_objdir+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 rm -f .libs 2>/dev/null
6121 mkdir .libs 2>/dev/null
6122 if test -d .libs; then
6123 lt_cv_objdir=.libs
6124 else
6125 # MS-DOS does not allow filenames that begin with a dot.
6126 lt_cv_objdir=_libs
6128 rmdir .libs 2>/dev/null
6130 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6131 echo "${ECHO_T}$lt_cv_objdir" >&6
6132 objdir=$lt_cv_objdir
6138 case $host_os in
6139 aix3*)
6140 # AIX sometimes has problems with the GCC collect2 program. For some
6141 # reason, if we set the COLLECT_NAMES environment variable, the problems
6142 # vanish in a puff of smoke.
6143 if test "X${COLLECT_NAMES+set}" != Xset; then
6144 COLLECT_NAMES=
6145 export COLLECT_NAMES
6148 esac
6150 # Sed substitution that helps us do robust quoting. It backslashifies
6151 # metacharacters that are still active within double-quoted strings.
6152 Xsed='sed -e s/^X//'
6153 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6155 # Same as above, but do not quote variable references.
6156 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6158 # Sed substitution to delay expansion of an escaped shell variable in a
6159 # double_quote_subst'ed string.
6160 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6162 # Sed substitution to avoid accidental globbing in evaled expressions
6163 no_glob_subst='s/\*/\\\*/g'
6165 # Constants:
6166 rm="rm -f"
6168 # Global variables:
6169 default_ofile=libtool
6170 can_build_shared=yes
6172 # All known linkers require a `.a' archive for static linking (except M$VC,
6173 # which needs '.lib').
6174 libext=a
6175 ltmain="$ac_aux_dir/ltmain.sh"
6176 ofile="$default_ofile"
6177 with_gnu_ld="$lt_cv_prog_gnu_ld"
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6181 set dummy ${ac_tool_prefix}ar; ac_word=$2
6182 echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6184 if test "${ac_cv_prog_AR+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 if test -n "$AR"; then
6188 ac_cv_prog_AR="$AR" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197 ac_cv_prog_AR="${ac_tool_prefix}ar"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6201 done
6202 done
6206 AR=$ac_cv_prog_AR
6207 if test -n "$AR"; then
6208 echo "$as_me:$LINENO: result: $AR" >&5
6209 echo "${ECHO_T}$AR" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6
6216 if test -z "$ac_cv_prog_AR"; then
6217 ac_ct_AR=$AR
6218 # Extract the first word of "ar", so it can be a program name with args.
6219 set dummy ar; ac_word=$2
6220 echo "$as_me:$LINENO: checking for $ac_word" >&5
6221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6222 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 if test -n "$ac_ct_AR"; then
6226 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235 ac_cv_prog_ac_ct_AR="ar"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6239 done
6240 done
6242 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6245 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6246 if test -n "$ac_ct_AR"; then
6247 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6248 echo "${ECHO_T}$ac_ct_AR" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6
6254 AR=$ac_ct_AR
6255 else
6256 AR="$ac_cv_prog_AR"
6259 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6262 echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6264 if test "${ac_cv_prog_RANLIB+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 if test -n "$RANLIB"; then
6268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6281 done
6282 done
6286 RANLIB=$ac_cv_prog_RANLIB
6287 if test -n "$RANLIB"; then
6288 echo "$as_me:$LINENO: result: $RANLIB" >&5
6289 echo "${ECHO_T}$RANLIB" >&6
6290 else
6291 echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6
6296 if test -z "$ac_cv_prog_RANLIB"; then
6297 ac_ct_RANLIB=$RANLIB
6298 # Extract the first word of "ranlib", so it can be a program name with args.
6299 set dummy ranlib; ac_word=$2
6300 echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6302 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305 if test -n "$ac_ct_RANLIB"; then
6306 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_ac_ct_RANLIB="ranlib"
6316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6319 done
6320 done
6322 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6325 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6326 if test -n "$ac_ct_RANLIB"; then
6327 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6328 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6329 else
6330 echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6334 RANLIB=$ac_ct_RANLIB
6335 else
6336 RANLIB="$ac_cv_prog_RANLIB"
6339 if test -n "$ac_tool_prefix"; then
6340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}strip; ac_word=$2
6342 echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6344 if test "${ac_cv_prog_STRIP+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347 if test -n "$STRIP"; then
6348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6361 done
6362 done
6366 STRIP=$ac_cv_prog_STRIP
6367 if test -n "$STRIP"; then
6368 echo "$as_me:$LINENO: result: $STRIP" >&5
6369 echo "${ECHO_T}$STRIP" >&6
6370 else
6371 echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6
6376 if test -z "$ac_cv_prog_STRIP"; then
6377 ac_ct_STRIP=$STRIP
6378 # Extract the first word of "strip", so it can be a program name with args.
6379 set dummy strip; ac_word=$2
6380 echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6382 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 if test -n "$ac_ct_STRIP"; then
6386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_STRIP="strip"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6402 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6405 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6406 if test -n "$ac_ct_STRIP"; then
6407 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6408 echo "${ECHO_T}$ac_ct_STRIP" >&6
6409 else
6410 echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6414 STRIP=$ac_ct_STRIP
6415 else
6416 STRIP="$ac_cv_prog_STRIP"
6420 old_CC="$CC"
6421 old_CFLAGS="$CFLAGS"
6423 # Set sane defaults for various variables
6424 test -z "$AR" && AR=ar
6425 test -z "$AR_FLAGS" && AR_FLAGS=cru
6426 test -z "$AS" && AS=as
6427 test -z "$CC" && CC=cc
6428 test -z "$LTCC" && LTCC=$CC
6429 test -z "$DLLTOOL" && DLLTOOL=dlltool
6430 test -z "$LD" && LD=ld
6431 test -z "$LN_S" && LN_S="ln -s"
6432 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6433 test -z "$NM" && NM=nm
6434 test -z "$SED" && SED=sed
6435 test -z "$OBJDUMP" && OBJDUMP=objdump
6436 test -z "$RANLIB" && RANLIB=:
6437 test -z "$STRIP" && STRIP=:
6438 test -z "$ac_objext" && ac_objext=o
6440 # Determine commands to create old-style static archives.
6441 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6442 old_postinstall_cmds='chmod 644 $oldlib'
6443 old_postuninstall_cmds=
6445 if test -n "$RANLIB"; then
6446 case $host_os in
6447 openbsd*)
6448 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6451 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6453 esac
6454 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6457 # Only perform the check for file, if the check method requires it
6458 case $deplibs_check_method in
6459 file_magic*)
6460 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6461 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6462 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6463 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 case $MAGIC_CMD in
6467 [\\/*] | ?:[\\/]*)
6468 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6471 lt_save_MAGIC_CMD="$MAGIC_CMD"
6472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6473 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6474 for ac_dir in $ac_dummy; do
6475 IFS="$lt_save_ifs"
6476 test -z "$ac_dir" && ac_dir=.
6477 if test -f $ac_dir/${ac_tool_prefix}file; then
6478 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6479 if test -n "$file_magic_test_file"; then
6480 case $deplibs_check_method in
6481 "file_magic "*)
6482 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6484 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6485 $EGREP "$file_magic_regex" > /dev/null; then
6487 else
6488 cat <<EOF 1>&2
6490 *** Warning: the command libtool uses to detect shared libraries,
6491 *** $file_magic_cmd, produces output that libtool cannot recognize.
6492 *** The result is that libtool may fail to recognize shared libraries
6493 *** as such. This will affect the creation of libtool libraries that
6494 *** depend on shared libraries, but programs linked with such libtool
6495 *** libraries will work regardless of this problem. Nevertheless, you
6496 *** may want to report the problem to your system manager and/or to
6497 *** bug-libtool@gnu.org
6500 fi ;;
6501 esac
6503 break
6505 done
6506 IFS="$lt_save_ifs"
6507 MAGIC_CMD="$lt_save_MAGIC_CMD"
6509 esac
6512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6513 if test -n "$MAGIC_CMD"; then
6514 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6515 echo "${ECHO_T}$MAGIC_CMD" >&6
6516 else
6517 echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6
6521 if test -z "$lt_cv_path_MAGIC_CMD"; then
6522 if test -n "$ac_tool_prefix"; then
6523 echo "$as_me:$LINENO: checking for file" >&5
6524 echo $ECHO_N "checking for file... $ECHO_C" >&6
6525 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 case $MAGIC_CMD in
6529 [\\/*] | ?:[\\/]*)
6530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6533 lt_save_MAGIC_CMD="$MAGIC_CMD"
6534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6535 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6536 for ac_dir in $ac_dummy; do
6537 IFS="$lt_save_ifs"
6538 test -z "$ac_dir" && ac_dir=.
6539 if test -f $ac_dir/file; then
6540 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6541 if test -n "$file_magic_test_file"; then
6542 case $deplibs_check_method in
6543 "file_magic "*)
6544 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6546 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6547 $EGREP "$file_magic_regex" > /dev/null; then
6549 else
6550 cat <<EOF 1>&2
6552 *** Warning: the command libtool uses to detect shared libraries,
6553 *** $file_magic_cmd, produces output that libtool cannot recognize.
6554 *** The result is that libtool may fail to recognize shared libraries
6555 *** as such. This will affect the creation of libtool libraries that
6556 *** depend on shared libraries, but programs linked with such libtool
6557 *** libraries will work regardless of this problem. Nevertheless, you
6558 *** may want to report the problem to your system manager and/or to
6559 *** bug-libtool@gnu.org
6562 fi ;;
6563 esac
6565 break
6567 done
6568 IFS="$lt_save_ifs"
6569 MAGIC_CMD="$lt_save_MAGIC_CMD"
6571 esac
6574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6575 if test -n "$MAGIC_CMD"; then
6576 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6577 echo "${ECHO_T}$MAGIC_CMD" >&6
6578 else
6579 echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6
6583 else
6584 MAGIC_CMD=:
6590 esac
6592 enable_dlopen=no
6593 enable_win32_dll=yes
6595 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6596 if test "${enable_libtool_lock+set}" = set; then
6597 enableval="$enable_libtool_lock"
6600 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6603 # Check whether --with-pic or --without-pic was given.
6604 if test "${with_pic+set}" = set; then
6605 withval="$with_pic"
6606 pic_mode="$withval"
6607 else
6608 pic_mode=default
6610 test -z "$pic_mode" && pic_mode=default
6612 # Use C for the default configuration in the libtool script
6613 tagname=
6614 lt_save_CC="$CC"
6615 ac_ext=c
6616 ac_cpp='$CPP $CPPFLAGS'
6617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622 # Source file extension for C test sources.
6623 ac_ext=c
6625 # Object file extension for compiled C test sources.
6626 objext=o
6627 objext=$objext
6629 # Code to be used in simple compile tests
6630 lt_simple_compile_test_code="int some_variable = 0;\n"
6632 # Code to be used in simple link tests
6633 lt_simple_link_test_code='int main(){return(0);}\n'
6636 # If no C compiler was specified, use CC.
6637 LTCC=${LTCC-"$CC"}
6639 # Allow CC to be a program name with arguments.
6640 compiler=$CC
6644 # Check for any special shared library compilation flags.
6646 lt_prog_cc_shlib=
6647 if test "$GCC" = no; then
6648 case $host_os in
6649 sco3.2v5*)
6650 lt_prog_cc_shlib='-belf'
6652 esac
6654 if test -n "$lt_prog_cc_shlib"; then
6655 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6656 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6657 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6658 else
6659 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6660 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6661 lt_cv_prog_cc_can_build_shared=no
6667 # Check to make sure the static flag actually works.
6669 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6670 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6671 if test "${lt_prog_compiler_static_works+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 lt_prog_compiler_static_works=no
6675 save_LDFLAGS="$LDFLAGS"
6676 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6677 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6678 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6679 # The compiler can only warn and ignore the option if not recognized
6680 # So say no if there are warnings
6681 if test -s conftest.err; then
6682 # Append any errors to the config.log.
6683 cat conftest.err 1>&5
6684 else
6685 lt_prog_compiler_static_works=yes
6688 $rm conftest*
6689 LDFLAGS="$save_LDFLAGS"
6692 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6693 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6695 if test x"$lt_prog_compiler_static_works" = xyes; then
6697 else
6698 lt_prog_compiler_static=
6703 ## CAVEAT EMPTOR:
6704 ## There is no encapsulation within the following macros, do not change
6705 ## the running order or otherwise move them around unless you know exactly
6706 ## what you are doing...
6708 lt_prog_compiler_no_builtin_flag=
6710 if test "$GCC" = yes; then
6711 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6713 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6714 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6715 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 lt_cv_prog_compiler_rtti_exceptions=no
6719 ac_outfile=conftest.$ac_objext
6720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6721 lt_compiler_flag="-fno-rtti -fno-exceptions"
6722 # Insert the option either (1) after the last *FLAGS variable, or
6723 # (2) before a word containing "conftest.", or (3) at the end.
6724 # Note that $ac_compile itself does not contain backslashes and begins
6725 # with a dollar sign (not a hyphen), so the echo should work correctly.
6726 # The option is referenced via a variable to avoid confusing sed.
6727 lt_compile=`echo "$ac_compile" | $SED \
6728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730 -e 's:$: $lt_compiler_flag:'`
6731 (eval echo "\"\$as_me:6731: $lt_compile\"" >&5)
6732 (eval "$lt_compile" 2>conftest.err)
6733 ac_status=$?
6734 cat conftest.err >&5
6735 echo "$as_me:6735: \$? = $ac_status" >&5
6736 if (exit $ac_status) && test -s "$ac_outfile"; then
6737 # The compiler can only warn and ignore the option if not recognized
6738 # So say no if there are warnings
6739 if test ! -s conftest.err; then
6740 lt_cv_prog_compiler_rtti_exceptions=yes
6743 $rm conftest*
6746 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6747 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6749 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6750 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6751 else
6757 lt_prog_compiler_wl=
6758 lt_prog_compiler_pic=
6759 lt_prog_compiler_static=
6761 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6762 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6764 if test "$GCC" = yes; then
6765 lt_prog_compiler_wl='-Wl,'
6766 lt_prog_compiler_static='-static'
6768 case $host_os in
6769 aix*)
6770 # All AIX code is PIC.
6771 if test "$host_cpu" = ia64; then
6772 # AIX 5 now supports IA64 processor
6773 lt_prog_compiler_static='-Bstatic'
6777 amigaos*)
6778 # FIXME: we need at least 68020 code to build shared libraries, but
6779 # adding the `-m68020' flag to GCC prevents building anything better,
6780 # like `-m68040'.
6781 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6784 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6785 # PIC is the default for these OSes.
6788 mingw* | pw32* | os2*)
6789 # This hack is so that the source file can tell whether it is being
6790 # built for inclusion in a dll (and should export symbols for example).
6791 lt_prog_compiler_pic='-DDLL_EXPORT'
6794 darwin* | rhapsody*)
6795 # PIC is the default on this platform
6796 # Common symbols not allowed in MH_DYLIB files
6797 lt_prog_compiler_pic='-fno-common'
6800 msdosdjgpp*)
6801 # Just because we use GCC doesn't mean we suddenly get shared libraries
6802 # on systems that don't support them.
6803 lt_prog_compiler_can_build_shared=no
6804 enable_shared=no
6807 sysv4*MP*)
6808 if test -d /usr/nec; then
6809 lt_prog_compiler_pic=-Kconform_pic
6813 hpux*)
6814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6815 # not for PA HP-UX.
6816 case "$host_cpu" in
6817 hppa*64*|ia64*)
6818 # +Z the default
6821 lt_prog_compiler_pic='-fPIC'
6823 esac
6827 lt_prog_compiler_pic='-fPIC'
6829 esac
6830 else
6831 # PORTME Check for flag to pass linker flags through the system compiler.
6832 case $host_os in
6833 aix*)
6834 lt_prog_compiler_wl='-Wl,'
6835 if test "$host_cpu" = ia64; then
6836 # AIX 5 now supports IA64 processor
6837 lt_prog_compiler_static='-Bstatic'
6838 else
6839 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6843 mingw* | pw32* | os2*)
6844 # This hack is so that the source file can tell whether it is being
6845 # built for inclusion in a dll (and should export symbols for example).
6846 lt_prog_compiler_pic='-DDLL_EXPORT'
6849 hpux9* | hpux10* | hpux11*)
6850 lt_prog_compiler_wl='-Wl,'
6851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6852 # not for PA HP-UX.
6853 case "$host_cpu" in
6854 hppa*64*|ia64*)
6855 # +Z the default
6858 lt_prog_compiler_pic='+Z'
6860 esac
6861 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6862 lt_prog_compiler_static='${wl}-a ${wl}archive'
6865 irix5* | irix6* | nonstopux*)
6866 lt_prog_compiler_wl='-Wl,'
6867 # PIC (with -KPIC) is the default.
6868 lt_prog_compiler_static='-non_shared'
6871 newsos6)
6872 lt_prog_compiler_pic='-KPIC'
6873 lt_prog_compiler_static='-Bstatic'
6876 linux*)
6877 case $CC in
6878 icc|ecc)
6879 lt_prog_compiler_wl='-Wl,'
6880 lt_prog_compiler_pic='-KPIC'
6881 lt_prog_compiler_static='-static'
6883 ccc)
6884 lt_prog_compiler_wl='-Wl,'
6885 # All Alpha code is PIC.
6886 lt_prog_compiler_static='-non_shared'
6888 esac
6891 osf3* | osf4* | osf5*)
6892 lt_prog_compiler_wl='-Wl,'
6893 # All OSF/1 code is PIC.
6894 lt_prog_compiler_static='-non_shared'
6897 sco3.2v5*)
6898 lt_prog_compiler_pic='-Kpic'
6899 lt_prog_compiler_static='-dn'
6902 solaris*)
6903 lt_prog_compiler_wl='-Wl,'
6904 lt_prog_compiler_pic='-KPIC'
6905 lt_prog_compiler_static='-Bstatic'
6908 sunos4*)
6909 lt_prog_compiler_wl='-Qoption ld '
6910 lt_prog_compiler_pic='-PIC'
6911 lt_prog_compiler_static='-Bstatic'
6914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6915 lt_prog_compiler_wl='-Wl,'
6916 lt_prog_compiler_pic='-KPIC'
6917 lt_prog_compiler_static='-Bstatic'
6920 sysv4*MP*)
6921 if test -d /usr/nec ;then
6922 lt_prog_compiler_pic='-Kconform_pic'
6923 lt_prog_compiler_static='-Bstatic'
6927 uts4*)
6928 lt_prog_compiler_pic='-pic'
6929 lt_prog_compiler_static='-Bstatic'
6933 lt_prog_compiler_can_build_shared=no
6935 esac
6938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6939 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6942 # Check to make sure the PIC flag actually works.
6944 if test -n "$lt_prog_compiler_pic"; then
6945 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6946 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6947 if test "${lt_prog_compiler_pic_works+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 lt_prog_compiler_pic_works=no
6951 ac_outfile=conftest.$ac_objext
6952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6953 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6954 # Insert the option either (1) after the last *FLAGS variable, or
6955 # (2) before a word containing "conftest.", or (3) at the end.
6956 # Note that $ac_compile itself does not contain backslashes and begins
6957 # with a dollar sign (not a hyphen), so the echo should work correctly.
6958 # The option is referenced via a variable to avoid confusing sed.
6959 lt_compile=`echo "$ac_compile" | $SED \
6960 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6962 -e 's:$: $lt_compiler_flag:'`
6963 (eval echo "\"\$as_me:6963: $lt_compile\"" >&5)
6964 (eval "$lt_compile" 2>conftest.err)
6965 ac_status=$?
6966 cat conftest.err >&5
6967 echo "$as_me:6967: \$? = $ac_status" >&5
6968 if (exit $ac_status) && test -s "$ac_outfile"; then
6969 # The compiler can only warn and ignore the option if not recognized
6970 # So say no if there are warnings
6971 if test ! -s conftest.err; then
6972 lt_prog_compiler_pic_works=yes
6975 $rm conftest*
6978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6979 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6981 if test x"$lt_prog_compiler_pic_works" = xyes; then
6982 case $lt_prog_compiler_pic in
6983 "" | " "*) ;;
6984 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6985 esac
6986 else
6987 lt_prog_compiler_pic=
6988 lt_prog_compiler_can_build_shared=no
6992 case "$host_os" in
6993 # For platforms which do not support PIC, -DPIC is meaningless:
6994 *djgpp*)
6995 lt_prog_compiler_pic=
6998 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7000 esac
7002 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7003 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7004 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 lt_cv_prog_compiler_c_o=no
7008 $rm -r conftest 2>/dev/null
7009 mkdir conftest
7010 cd conftest
7011 mkdir out
7012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7014 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7015 # that will create temporary files in the current directory regardless of
7016 # the output directory. Thus, making CWD read-only will cause this test
7017 # to fail, enabling locking or at least warning the user not to do parallel
7018 # builds.
7019 chmod -w .
7021 lt_compiler_flag="-o out/conftest2.$ac_objext"
7022 # Insert the option either (1) after the last *FLAGS variable, or
7023 # (2) before a word containing "conftest.", or (3) at the end.
7024 # Note that $ac_compile itself does not contain backslashes and begins
7025 # with a dollar sign (not a hyphen), so the echo should work correctly.
7026 lt_compile=`echo "$ac_compile" | $SED \
7027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7029 -e 's:$: $lt_compiler_flag:'`
7030 (eval echo "\"\$as_me:7030: $lt_compile\"" >&5)
7031 (eval "$lt_compile" 2>out/conftest.err)
7032 ac_status=$?
7033 cat out/conftest.err >&5
7034 echo "$as_me:7034: \$? = $ac_status" >&5
7035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7036 then
7037 # The compiler can only warn and ignore the option if not recognized
7038 # So say no if there are warnings
7039 if test ! -s out/conftest.err; then
7040 lt_cv_prog_compiler_c_o=yes
7043 chmod u+w .
7044 $rm conftest* out/*
7045 rmdir out
7046 cd ..
7047 rmdir conftest
7048 $rm conftest*
7051 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7052 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7055 hard_links="nottested"
7056 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7057 # do not overwrite the value of need_locks provided by the user
7058 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7059 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7060 hard_links=yes
7061 $rm conftest*
7062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7063 touch conftest.a
7064 ln conftest.a conftest.b 2>&5 || hard_links=no
7065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7066 echo "$as_me:$LINENO: result: $hard_links" >&5
7067 echo "${ECHO_T}$hard_links" >&6
7068 if test "$hard_links" = no; then
7069 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7070 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7071 need_locks=warn
7073 else
7074 need_locks=no
7077 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7078 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7080 runpath_var=
7081 allow_undefined_flag=
7082 enable_shared_with_static_runtimes=no
7083 archive_cmds=
7084 archive_expsym_cmds=
7085 old_archive_From_new_cmds=
7086 old_archive_from_expsyms_cmds=
7087 export_dynamic_flag_spec=
7088 whole_archive_flag_spec=
7089 thread_safe_flag_spec=
7090 hardcode_libdir_flag_spec=
7091 hardcode_libdir_flag_spec_ld=
7092 hardcode_libdir_separator=
7093 hardcode_direct=no
7094 hardcode_minus_L=no
7095 hardcode_shlibpath_var=unsupported
7096 link_all_deplibs=unknown
7097 hardcode_automatic=no
7098 module_cmds=
7099 module_expsym_cmds=
7100 always_export_symbols=no
7101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7102 # include_expsyms should be a list of space-separated symbols to be *always*
7103 # included in the symbol list
7104 include_expsyms=
7105 # exclude_expsyms can be an extended regexp of symbols to exclude
7106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7108 # as well as any symbol that contains `d'.
7109 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7111 # platforms (ab)use it in PIC code, but their linkers get confused if
7112 # the symbol is explicitly referenced. Since portable code cannot
7113 # rely on this symbol name, it's probably fine to never include it in
7114 # preloaded symbol tables.
7115 extract_expsyms_cmds=
7117 case $host_os in
7118 cygwin* | mingw* | pw32*)
7119 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7120 # When not using gcc, we currently assume that we are using
7121 # Microsoft Visual C++.
7122 if test "$GCC" != yes; then
7123 with_gnu_ld=no
7126 openbsd*)
7127 with_gnu_ld=no
7129 esac
7131 ld_shlibs=yes
7132 if test "$with_gnu_ld" = yes; then
7133 # If archive_cmds runs LD, not CC, wlarc should be empty
7134 wlarc='${wl}'
7136 # See if GNU ld supports shared libraries.
7137 case $host_os in
7138 aix3* | aix4* | aix5*)
7139 # On AIX/PPC, the GNU linker is very broken
7140 if test "$host_cpu" != ia64; then
7141 ld_shlibs=no
7142 cat <<EOF 1>&2
7144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7145 *** to be unable to reliably create shared libraries on AIX.
7146 *** Therefore, libtool is disabling shared libraries support. If you
7147 *** really care for shared libraries, you may want to modify your PATH
7148 *** so that a non-GNU linker is found, and then restart.
7154 amigaos*)
7155 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7156 hardcode_libdir_flag_spec='-L$libdir'
7157 hardcode_minus_L=yes
7159 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7160 # that the semantics of dynamic libraries on AmigaOS, at least up
7161 # to version 4, is to share data among multiple programs linked
7162 # with the same dynamic library. Since this doesn't match the
7163 # behavior of shared libraries on other platforms, we can't use
7164 # them.
7165 ld_shlibs=no
7168 beos*)
7169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7170 allow_undefined_flag=unsupported
7171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7172 # support --undefined. This deserves some investigation. FIXME
7173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7174 else
7175 ld_shlibs=no
7179 cygwin* | mingw* | pw32*)
7180 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7181 # as there is no search path for DLLs.
7182 hardcode_libdir_flag_spec='-L$libdir'
7183 allow_undefined_flag=unsupported
7184 always_export_symbols=no
7185 enable_shared_with_static_runtimes=yes
7186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7188 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7190 # If the export-symbols file already is a .def file (1st line
7191 # is EXPORTS), use it as is; otherwise, prepend...
7192 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7193 cp $export_symbols $output_objdir/$soname.def;
7194 else
7195 echo EXPORTS > $output_objdir/$soname.def;
7196 cat $export_symbols >> $output_objdir/$soname.def;
7198 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7199 else
7200 ld_shlibs=no
7204 netbsd*)
7205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7206 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7207 wlarc=
7208 else
7209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7214 solaris* | sysv5*)
7215 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7216 ld_shlibs=no
7217 cat <<EOF 1>&2
7219 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7220 *** create shared libraries on Solaris systems. Therefore, libtool
7221 *** is disabling shared libraries support. We urge you to upgrade GNU
7222 *** binutils to release 2.9.1 or newer. Another option is to modify
7223 *** your PATH or compiler configuration so that the native linker is
7224 *** used, and then restart.
7227 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7229 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7230 else
7231 ld_shlibs=no
7235 sunos4*)
7236 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7237 wlarc=
7238 hardcode_direct=yes
7239 hardcode_shlibpath_var=no
7243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7246 else
7247 ld_shlibs=no
7250 esac
7252 if test "$ld_shlibs" = yes; then
7253 runpath_var=LD_RUN_PATH
7254 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7255 export_dynamic_flag_spec='${wl}--export-dynamic'
7256 # ancient GNU ld didn't support --whole-archive et. al.
7257 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7258 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7259 else
7260 whole_archive_flag_spec=
7263 else
7264 # PORTME fill in a description of your system's linker (not GNU ld)
7265 case $host_os in
7266 aix3*)
7267 allow_undefined_flag=unsupported
7268 always_export_symbols=yes
7269 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7270 # Note: this linker hardcodes the directories in LIBPATH if there
7271 # are no directories specified by -L.
7272 hardcode_minus_L=yes
7273 if test "$GCC" = yes && test -z "$link_static_flag"; then
7274 # Neither direct hardcoding nor static linking is supported with a
7275 # broken collect2.
7276 hardcode_direct=unsupported
7280 aix4* | aix5*)
7281 if test "$host_cpu" = ia64; then
7282 # On IA64, the linker does run time linking by default, so we don't
7283 # have to do anything special.
7284 aix_use_runtimelinking=no
7285 exp_sym_flag='-Bexport'
7286 no_entry_flag=""
7287 else
7288 # If we're using GNU nm, then we don't want the "-C" option.
7289 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7290 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7291 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'
7292 else
7293 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'
7295 aix_use_runtimelinking=no
7297 # Test if we are trying to use run time linking or normal
7298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7299 # need to do runtime linking.
7300 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7301 for ld_flag in $LDFLAGS; do
7302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7303 aix_use_runtimelinking=yes
7304 break
7306 done
7307 esac
7309 exp_sym_flag='-bexport'
7310 no_entry_flag='-bnoentry'
7313 # When large executables or shared objects are built, AIX ld can
7314 # have problems creating the table of contents. If linking a library
7315 # or program results in "error TOC overflow" add -mminimal-toc to
7316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7319 archive_cmds=''
7320 hardcode_direct=yes
7321 hardcode_libdir_separator=':'
7322 link_all_deplibs=yes
7324 if test "$GCC" = yes; then
7325 case $host_os in aix4.012|aix4.012.*)
7326 # We only want to do this on AIX 4.2 and lower, the check
7327 # below for broken collect2 doesn't work under 4.3+
7328 collect2name=`${CC} -print-prog-name=collect2`
7329 if test -f "$collect2name" && \
7330 strings "$collect2name" | grep resolve_lib_name >/dev/null
7331 then
7332 # We have reworked collect2
7333 hardcode_direct=yes
7334 else
7335 # We have old collect2
7336 hardcode_direct=unsupported
7337 # It fails to find uninstalled libraries when the uninstalled
7338 # path is not listed in the libpath. Setting hardcode_minus_L
7339 # to unsupported forces relinking
7340 hardcode_minus_L=yes
7341 hardcode_libdir_flag_spec='-L$libdir'
7342 hardcode_libdir_separator=
7344 esac
7345 shared_flag='-shared'
7346 else
7347 # not using gcc
7348 if test "$host_cpu" = ia64; then
7349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7350 # chokes on -Wl,-G. The following line is correct:
7351 shared_flag='-G'
7352 else
7353 if test "$aix_use_runtimelinking" = yes; then
7354 shared_flag='${wl}-G'
7355 else
7356 shared_flag='${wl}-bM:SRE'
7361 # It seems that -bexpall does not export symbols beginning with
7362 # underscore (_), so it is better to generate a list of symbols to export.
7363 always_export_symbols=yes
7364 if test "$aix_use_runtimelinking" = yes; then
7365 # Warning - without using the other runtime loading flags (-brtl),
7366 # -berok will link without error, but may produce a broken library.
7367 allow_undefined_flag='-berok'
7368 # Determine the default libpath from the value encoded in an empty executable.
7369 cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h. */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7377 main ()
7381 return 0;
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } &&
7393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 (eval $ac_try) 2>&5
7396 ac_status=$?
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; } &&
7399 { ac_try='test -s conftest$ac_exeext'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; }; then
7406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7408 # Check for a 64-bit object if we didn't find anything.
7409 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; }
7410 }'`; fi
7411 else
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7416 rm -f conftest.err conftest.$ac_objext \
7417 conftest$ac_exeext conftest.$ac_ext
7418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7420 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7421 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"
7422 else
7423 if test "$host_cpu" = ia64; then
7424 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7425 allow_undefined_flag="-z nodefs"
7426 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"
7427 else
7428 # Determine the default libpath from the value encoded in an empty executable.
7429 cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h. */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7437 main ()
7441 return 0;
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7468 # Check for a 64-bit object if we didn't find anything.
7469 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; }
7470 }'`; fi
7471 else
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7476 rm -f conftest.err conftest.$ac_objext \
7477 conftest$ac_exeext conftest.$ac_ext
7478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7481 # Warning - without using the other run time loading flags,
7482 # -berok will link without error, but may produce a broken library.
7483 no_undefined_flag=' ${wl}-bernotok'
7484 allow_undefined_flag=' ${wl}-berok'
7485 # -bexpall does not export symbols beginning with underscore (_)
7486 always_export_symbols=yes
7487 # Exported symbols can be pulled into shared objects from archives
7488 whole_archive_flag_spec=' '
7489 archive_cmds_need_lc=yes
7490 # This is similar to how AIX traditionally builds it's shared libraries.
7491 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7496 amigaos*)
7497 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7498 hardcode_libdir_flag_spec='-L$libdir'
7499 hardcode_minus_L=yes
7500 # see comment about different semantics on the GNU ld section
7501 ld_shlibs=no
7504 bsdi4*)
7505 export_dynamic_flag_spec=-rdynamic
7508 cygwin* | mingw* | pw32*)
7509 # When not using gcc, we currently assume that we are using
7510 # Microsoft Visual C++.
7511 # hardcode_libdir_flag_spec is actually meaningless, as there is
7512 # no search path for DLLs.
7513 hardcode_libdir_flag_spec=' '
7514 allow_undefined_flag=unsupported
7515 # Tell ltmain to make .lib files, not .a files.
7516 libext=lib
7517 # Tell ltmain to make .dll files, not .so files.
7518 shrext=".dll"
7519 # FIXME: Setting linknames here is a bad hack.
7520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7521 # The linker will automatically build a .lib file if we build a DLL.
7522 old_archive_From_new_cmds='true'
7523 # FIXME: Should let the user specify the lib program.
7524 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7525 fix_srcfile_path='`cygpath -w "$srcfile"`'
7526 enable_shared_with_static_runtimes=yes
7529 darwin* | rhapsody*)
7530 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7531 archive_cmds_need_lc=no
7532 case "$host_os" in
7533 rhapsody* | darwin1.[012])
7534 allow_undefined_flag='-undefined suppress'
7536 *) # Darwin 1.3 on
7537 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7539 esac
7540 # FIXME: Relying on posixy $() will cause problems for
7541 # cross-compilation, but unfortunately the echo tests do not
7542 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7543 # `"' quotes if we put them in here... so don't!
7544 lt_int_apple_cc_single_mod=no
7545 output_verbose_link_cmd='echo'
7546 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7547 lt_int_apple_cc_single_mod=yes
7549 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7550 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7551 else
7552 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7554 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7556 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7557 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7558 else
7559 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7561 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7562 hardcode_direct=no
7563 hardcode_automatic=yes
7564 hardcode_shlibpath_var=unsupported
7565 whole_archive_flag_spec='-all_load $convenience'
7566 link_all_deplibs=yes
7570 dgux*)
7571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7572 hardcode_libdir_flag_spec='-L$libdir'
7573 hardcode_shlibpath_var=no
7576 freebsd1*)
7577 ld_shlibs=no
7580 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7581 # support. Future versions do this automatically, but an explicit c++rt0.o
7582 # does not break anything, and helps significantly (at the cost of a little
7583 # extra space).
7584 freebsd2.2*)
7585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7586 hardcode_libdir_flag_spec='-R$libdir'
7587 hardcode_direct=yes
7588 hardcode_shlibpath_var=no
7591 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7592 freebsd2*)
7593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7594 hardcode_direct=yes
7595 hardcode_minus_L=yes
7596 hardcode_shlibpath_var=no
7599 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7600 freebsd*)
7601 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7602 hardcode_libdir_flag_spec='-R$libdir'
7603 hardcode_direct=yes
7604 hardcode_shlibpath_var=no
7607 hpux9*)
7608 if test "$GCC" = yes; then
7609 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7610 else
7611 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7613 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7614 hardcode_libdir_separator=:
7615 hardcode_direct=yes
7617 # hardcode_minus_L: Not really in the search PATH,
7618 # but as the default location of the library.
7619 hardcode_minus_L=yes
7620 export_dynamic_flag_spec='${wl}-E'
7623 hpux10* | hpux11*)
7624 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7625 case "$host_cpu" in
7626 hppa*64*|ia64*)
7627 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7630 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7632 esac
7633 else
7634 case "$host_cpu" in
7635 hppa*64*|ia64*)
7636 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7639 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7641 esac
7643 if test "$with_gnu_ld" = no; then
7644 case "$host_cpu" in
7645 hppa*64*)
7646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7647 hardcode_libdir_flag_spec_ld='+b $libdir'
7648 hardcode_libdir_separator=:
7649 hardcode_direct=no
7650 hardcode_shlibpath_var=no
7652 ia64*)
7653 hardcode_libdir_flag_spec='-L$libdir'
7654 hardcode_direct=no
7655 hardcode_shlibpath_var=no
7657 # hardcode_minus_L: Not really in the search PATH,
7658 # but as the default location of the library.
7659 hardcode_minus_L=yes
7662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7663 hardcode_libdir_separator=:
7664 hardcode_direct=yes
7665 export_dynamic_flag_spec='${wl}-E'
7667 # hardcode_minus_L: Not really in the search PATH,
7668 # but as the default location of the library.
7669 hardcode_minus_L=yes
7671 esac
7675 irix5* | irix6* | nonstopux*)
7676 if test "$GCC" = yes; then
7677 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'
7678 else
7679 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'
7680 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7683 hardcode_libdir_separator=:
7684 link_all_deplibs=yes
7687 netbsd*)
7688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7690 else
7691 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7693 hardcode_libdir_flag_spec='-R$libdir'
7694 hardcode_direct=yes
7695 hardcode_shlibpath_var=no
7698 newsos6)
7699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7700 hardcode_direct=yes
7701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7702 hardcode_libdir_separator=:
7703 hardcode_shlibpath_var=no
7706 openbsd*)
7707 hardcode_direct=yes
7708 hardcode_shlibpath_var=no
7709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7712 export_dynamic_flag_spec='${wl}-E'
7713 else
7714 case $host_os in
7715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7717 hardcode_libdir_flag_spec='-R$libdir'
7720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7721 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7723 esac
7727 os2*)
7728 hardcode_libdir_flag_spec='-L$libdir'
7729 hardcode_minus_L=yes
7730 allow_undefined_flag=unsupported
7731 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7732 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7735 osf3*)
7736 if test "$GCC" = yes; then
7737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7738 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'
7739 else
7740 allow_undefined_flag=' -expect_unresolved \*'
7741 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'
7743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7744 hardcode_libdir_separator=:
7747 osf4* | osf5*) # as osf3* with the addition of -msym flag
7748 if test "$GCC" = yes; then
7749 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7750 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'
7751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7752 else
7753 allow_undefined_flag=' -expect_unresolved \*'
7754 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'
7755 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7756 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7758 # Both c and cxx compiler support -rpath directly
7759 hardcode_libdir_flag_spec='-rpath $libdir'
7761 hardcode_libdir_separator=:
7764 sco3.2v5*)
7765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7766 hardcode_shlibpath_var=no
7767 export_dynamic_flag_spec='${wl}-Bexport'
7768 runpath_var=LD_RUN_PATH
7769 hardcode_runpath_var=yes
7772 solaris*)
7773 no_undefined_flag=' -z text'
7774 if test "$GCC" = yes; then
7775 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7776 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7777 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7778 else
7779 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7780 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7783 hardcode_libdir_flag_spec='-R$libdir'
7784 hardcode_shlibpath_var=no
7785 case $host_os in
7786 solaris2.[0-5] | solaris2.[0-5].*) ;;
7787 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7788 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7789 esac
7790 link_all_deplibs=yes
7793 sunos4*)
7794 if test "x$host_vendor" = xsequent; then
7795 # Use $CC to link under sequent, because it throws in some extra .o
7796 # files that make .init and .fini sections work.
7797 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7798 else
7799 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7801 hardcode_libdir_flag_spec='-L$libdir'
7802 hardcode_direct=yes
7803 hardcode_minus_L=yes
7804 hardcode_shlibpath_var=no
7807 sysv4)
7808 case $host_vendor in
7809 sni)
7810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7811 hardcode_direct=yes # is this really true???
7813 siemens)
7814 ## LD is ld it makes a PLAMLIB
7815 ## CC just makes a GrossModule.
7816 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7817 reload_cmds='$CC -r -o $output$reload_objs'
7818 hardcode_direct=no
7820 motorola)
7821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7822 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7824 esac
7825 runpath_var='LD_RUN_PATH'
7826 hardcode_shlibpath_var=no
7829 sysv4.3*)
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_shlibpath_var=no
7832 export_dynamic_flag_spec='-Bexport'
7835 sysv4*MP*)
7836 if test -d /usr/nec; then
7837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7838 hardcode_shlibpath_var=no
7839 runpath_var=LD_RUN_PATH
7840 hardcode_runpath_var=yes
7841 ld_shlibs=yes
7845 sysv4.2uw2*)
7846 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7847 hardcode_direct=yes
7848 hardcode_minus_L=no
7849 hardcode_shlibpath_var=no
7850 hardcode_runpath_var=yes
7851 runpath_var=LD_RUN_PATH
7854 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7855 no_undefined_flag='${wl}-z ${wl}text'
7856 if test "$GCC" = yes; then
7857 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7858 else
7859 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7861 runpath_var='LD_RUN_PATH'
7862 hardcode_shlibpath_var=no
7865 sysv5*)
7866 no_undefined_flag=' -z text'
7867 # $CC -shared without GNU ld will not create a library from C++
7868 # object files and a static libstdc++, better avoid it by now
7869 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7870 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7871 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7872 hardcode_libdir_flag_spec=
7873 hardcode_shlibpath_var=no
7874 runpath_var='LD_RUN_PATH'
7877 uts4*)
7878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7879 hardcode_libdir_flag_spec='-L$libdir'
7880 hardcode_shlibpath_var=no
7884 ld_shlibs=no
7886 esac
7889 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7890 echo "${ECHO_T}$ld_shlibs" >&6
7891 test "$ld_shlibs" = no && can_build_shared=no
7893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7894 if test "$GCC" = yes; then
7895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7899 # Do we need to explicitly link libc?
7901 case "x$archive_cmds_need_lc" in
7902 x|xyes)
7903 # Assume -lc should be added
7904 archive_cmds_need_lc=yes
7906 if test "$enable_shared" = yes && test "$GCC" = yes; then
7907 case $archive_cmds in
7908 *'~'*)
7909 # FIXME: we may have to deal with multi-command sequences.
7911 '$CC '*)
7912 # Test whether the compiler implicitly links with -lc since on some
7913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7914 # to ld, don't add -lc before -lgcc.
7915 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7916 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7917 $rm conftest*
7918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7921 (eval $ac_compile) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } 2>conftest.err; then
7925 soname=conftest
7926 lib=conftest
7927 libobjs=conftest.$ac_objext
7928 deplibs=
7929 wl=$lt_prog_compiler_wl
7930 compiler_flags=-v
7931 linker_flags=-v
7932 verstring=
7933 output_objdir=.
7934 libname=conftest
7935 lt_save_allow_undefined_flag=$allow_undefined_flag
7936 allow_undefined_flag=
7937 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7938 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }
7942 then
7943 archive_cmds_need_lc=no
7944 else
7945 archive_cmds_need_lc=yes
7947 allow_undefined_flag=$lt_save_allow_undefined_flag
7948 else
7949 cat conftest.err 1>&5
7951 $rm conftest*
7952 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7953 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7955 esac
7958 esac
7960 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7961 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7962 hardcode_action=
7963 if test -n "$hardcode_libdir_flag_spec" || \
7964 test -n "$runpath_var " || \
7965 test "X$hardcode_automatic"="Xyes" ; then
7967 # We can hardcode non-existant directories.
7968 if test "$hardcode_direct" != no &&
7969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7970 # have to relink, otherwise we might link with an installed library
7971 # when we should be linking with a yet-to-be-installed one
7972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7973 test "$hardcode_minus_L" != no; then
7974 # Linking always hardcodes the temporary library directory.
7975 hardcode_action=relink
7976 else
7977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7978 hardcode_action=immediate
7980 else
7981 # We cannot hardcode anything, or else we can only hardcode existing
7982 # directories.
7983 hardcode_action=unsupported
7985 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7986 echo "${ECHO_T}$hardcode_action" >&6
7988 if test "$hardcode_action" = relink; then
7989 # Fast installation is not supported
7990 enable_fast_install=no
7991 elif test "$shlibpath_overrides_runpath" = yes ||
7992 test "$enable_shared" = no; then
7993 # Fast installation is not necessary
7994 enable_fast_install=needless
7997 striplib=
7998 old_striplib=
7999 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8000 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8001 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8002 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8003 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8004 echo "$as_me:$LINENO: result: yes" >&5
8005 echo "${ECHO_T}yes" >&6
8006 else
8007 # FIXME - insert some real tests, host_os isn't really good enough
8008 case $host_os in
8009 darwin*)
8010 if test -n "$STRIP" ; then
8011 striplib="$STRIP -x"
8012 echo "$as_me:$LINENO: result: yes" >&5
8013 echo "${ECHO_T}yes" >&6
8014 else
8015 echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6
8020 echo "$as_me:$LINENO: result: no" >&5
8021 echo "${ECHO_T}no" >&6
8023 esac
8026 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8028 library_names_spec=
8029 libname_spec='lib$name'
8030 soname_spec=
8031 shrext=".so"
8032 postinstall_cmds=
8033 postuninstall_cmds=
8034 finish_cmds=
8035 finish_eval=
8036 shlibpath_var=
8037 shlibpath_overrides_runpath=unknown
8038 version_type=none
8039 dynamic_linker="$host_os ld.so"
8040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8041 if test "$GCC" = yes; then
8042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8044 # if the path contains ";" then we assume it to be the separator
8045 # otherwise default to the standard path separator (i.e. ":") - it is
8046 # assumed that no part of a normal pathname contains ";" but that should
8047 # okay in the real world where ";" in dirpaths is itself problematic.
8048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8049 else
8050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8052 else
8053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8055 need_lib_prefix=unknown
8056 hardcode_into_libs=no
8058 # when you set need_version to no, make sure it does not cause -set_version
8059 # flags to be left without arguments
8060 need_version=unknown
8062 case $host_os in
8063 aix3*)
8064 version_type=linux
8065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8066 shlibpath_var=LIBPATH
8068 # AIX 3 has no versioning support, so we append a major version to the name.
8069 soname_spec='${libname}${release}${shared_ext}$major'
8072 aix4* | aix5*)
8073 version_type=linux
8074 need_lib_prefix=no
8075 need_version=no
8076 hardcode_into_libs=yes
8077 if test "$host_cpu" = ia64; then
8078 # AIX 5 supports IA64
8079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8080 shlibpath_var=LD_LIBRARY_PATH
8081 else
8082 # With GCC up to 2.95.x, collect2 would create an import file
8083 # for dependence libraries. The import file would start with
8084 # the line `#! .'. This would cause the generated library to
8085 # depend on `.', always an invalid library. This was fixed in
8086 # development snapshots of GCC prior to 3.0.
8087 case $host_os in
8088 aix4 | aix4.[01] | aix4.[01].*)
8089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8090 echo ' yes '
8091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8093 else
8094 can_build_shared=no
8097 esac
8098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8099 # soname into executable. Probably we can add versioning support to
8100 # collect2, so additional links can be useful in future.
8101 if test "$aix_use_runtimelinking" = yes; then
8102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8103 # instead of lib<name>.a to let people know that these are not
8104 # typical AIX shared libraries.
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106 else
8107 # We preserve .a as extension for shared libraries through AIX4.2
8108 # and later when we are not doing run time linking.
8109 library_names_spec='${libname}${release}.a $libname.a'
8110 soname_spec='${libname}${release}${shared_ext}$major'
8112 shlibpath_var=LIBPATH
8116 amigaos*)
8117 library_names_spec='$libname.ixlibrary $libname.a'
8118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8119 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'
8122 beos*)
8123 library_names_spec='${libname}${shared_ext}'
8124 dynamic_linker="$host_os ld.so"
8125 shlibpath_var=LIBRARY_PATH
8128 bsdi4*)
8129 version_type=linux
8130 need_version=no
8131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8132 soname_spec='${libname}${release}${shared_ext}$major'
8133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8134 shlibpath_var=LD_LIBRARY_PATH
8135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8137 # the default ld.so.conf also contains /usr/contrib/lib and
8138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8139 # libtool to hard-code these into programs
8142 cygwin* | mingw* | pw32*)
8143 version_type=windows
8144 shrext=".dll"
8145 need_version=no
8146 need_lib_prefix=no
8148 case $GCC,$host_os in
8149 yes,cygwin* | yes,mingw* | yes,pw32*)
8150 library_names_spec='$libname.dll.a'
8151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8152 postinstall_cmds='base_file=`basename \${file}`~
8153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8154 dldir=$destdir/`dirname \$dlpath`~
8155 test -d \$dldir || mkdir -p \$dldir~
8156 $install_prog $dir/$dlname \$dldir/$dlname'
8157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8158 dlpath=$dir/\$dldll~
8159 $rm \$dlpath'
8160 shlibpath_overrides_runpath=yes
8162 case $host_os in
8163 cygwin*)
8164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8166 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8168 mingw*)
8169 # MinGW DLLs use traditional 'lib' prefix
8170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8172 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8173 # It is most probably a Windows format PATH printed by
8174 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8175 # path with ; separators, and with drive letters. We can handle the
8176 # drive letters (cygwin fileutils understands them), so leave them,
8177 # especially as we might pass files found there to a mingw objdump,
8178 # which wouldn't understand a cygwinified path. Ahh.
8179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8180 else
8181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8184 pw32*)
8185 # pw32 DLLs use 'pw' prefix rather than 'lib'
8186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8188 esac
8192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8194 esac
8195 dynamic_linker='Win32 ld.exe'
8196 # FIXME: first we should search . and the directory the executable is in
8197 shlibpath_var=PATH
8200 darwin* | rhapsody*)
8201 dynamic_linker="$host_os dyld"
8202 version_type=darwin
8203 need_lib_prefix=no
8204 need_version=no
8205 # FIXME: Relying on posixy $() will cause problems for
8206 # cross-compilation, but unfortunately the echo tests do not
8207 # yet detect zsh echo's removal of \ escapes.
8208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8209 soname_spec='${libname}${release}${major}$shared_ext'
8210 shlibpath_overrides_runpath=yes
8211 shlibpath_var=DYLD_LIBRARY_PATH
8212 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8214 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8215 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"`
8217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8220 dgux*)
8221 version_type=linux
8222 need_lib_prefix=no
8223 need_version=no
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8225 soname_spec='${libname}${release}${shared_ext}$major'
8226 shlibpath_var=LD_LIBRARY_PATH
8229 freebsd1*)
8230 dynamic_linker=no
8233 freebsd*)
8234 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8235 version_type=freebsd-$objformat
8236 case $version_type in
8237 freebsd-elf*)
8238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8239 need_version=no
8240 need_lib_prefix=no
8242 freebsd-*)
8243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8244 need_version=yes
8246 esac
8247 shlibpath_var=LD_LIBRARY_PATH
8248 case $host_os in
8249 freebsd2*)
8250 shlibpath_overrides_runpath=yes
8252 freebsd3.01* | freebsdelf3.01*)
8253 shlibpath_overrides_runpath=yes
8254 hardcode_into_libs=yes
8256 *) # from 3.2 on
8257 shlibpath_overrides_runpath=no
8258 hardcode_into_libs=yes
8260 esac
8263 gnu*)
8264 version_type=linux
8265 need_lib_prefix=no
8266 need_version=no
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 shlibpath_var=LD_LIBRARY_PATH
8270 hardcode_into_libs=yes
8273 hpux9* | hpux10* | hpux11*)
8274 # Give a soname corresponding to the major version so that dld.sl refuses to
8275 # link against other versions.
8276 version_type=sunos
8277 need_lib_prefix=no
8278 need_version=no
8279 case "$host_cpu" in
8280 ia64*)
8281 shrext='.so'
8282 hardcode_into_libs=yes
8283 dynamic_linker="$host_os dld.so"
8284 shlibpath_var=LD_LIBRARY_PATH
8285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8287 soname_spec='${libname}${release}${shared_ext}$major'
8288 if test "X$HPUX_IA64_MODE" = X32; then
8289 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8290 else
8291 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8295 hppa*64*)
8296 shrext='.sl'
8297 hardcode_into_libs=yes
8298 dynamic_linker="$host_os dld.sl"
8299 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302 soname_spec='${libname}${release}${shared_ext}$major'
8303 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8307 shrext='.sl'
8308 dynamic_linker="$host_os dld.sl"
8309 shlibpath_var=SHLIB_PATH
8310 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
8314 esac
8315 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8316 postinstall_cmds='chmod 555 $lib'
8319 irix5* | irix6* | nonstopux*)
8320 case $host_os in
8321 nonstopux*) version_type=nonstopux ;;
8323 if test "$lt_cv_prog_gnu_ld" = yes; then
8324 version_type=linux
8325 else
8326 version_type=irix
8327 fi ;;
8328 esac
8329 need_lib_prefix=no
8330 need_version=no
8331 soname_spec='${libname}${release}${shared_ext}$major'
8332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8333 case $host_os in
8334 irix5* | nonstopux*)
8335 libsuff= shlibsuff=
8338 case $LD in # libtool.m4 will add one of these switches to LD
8339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8340 libsuff= shlibsuff= libmagic=32-bit;;
8341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8342 libsuff=32 shlibsuff=N32 libmagic=N32;;
8343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8345 *) libsuff= shlibsuff= libmagic=never-match;;
8346 esac
8348 esac
8349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8350 shlibpath_overrides_runpath=no
8351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8353 hardcode_into_libs=yes
8356 # No shared lib support for Linux oldld, aout, or coff.
8357 linux*oldld* | linux*aout* | linux*coff*)
8358 dynamic_linker=no
8361 # This must be Linux ELF.
8362 linux*)
8363 version_type=linux
8364 need_lib_prefix=no
8365 need_version=no
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 shlibpath_overrides_runpath=no
8371 # This implies no fast_install, which is unacceptable.
8372 # Some rework will be needed to allow for fast_install
8373 # before this can be enabled.
8374 hardcode_into_libs=yes
8376 # We used to test for /lib/ld.so.1 and disable shared libraries on
8377 # powerpc, because MkLinux only supported shared libraries with the
8378 # GNU dynamic linker. Since this was broken with cross compilers,
8379 # most powerpc-linux boxes support dynamic linking these days and
8380 # people can always --disable-shared, the test was removed, and we
8381 # assume the GNU/Linux dynamic linker is in use.
8382 dynamic_linker='GNU/Linux ld.so'
8385 netbsd*)
8386 version_type=sunos
8387 need_lib_prefix=no
8388 need_version=no
8389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8392 dynamic_linker='NetBSD (a.out) ld.so'
8393 else
8394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8395 soname_spec='${libname}${release}${shared_ext}$major'
8396 dynamic_linker='NetBSD ld.elf_so'
8398 shlibpath_var=LD_LIBRARY_PATH
8399 shlibpath_overrides_runpath=yes
8400 hardcode_into_libs=yes
8403 newsos6)
8404 version_type=linux
8405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8406 shlibpath_var=LD_LIBRARY_PATH
8407 shlibpath_overrides_runpath=yes
8410 nto-qnx)
8411 version_type=linux
8412 need_lib_prefix=no
8413 need_version=no
8414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8415 soname_spec='${libname}${release}${shared_ext}$major'
8416 shlibpath_var=LD_LIBRARY_PATH
8417 shlibpath_overrides_runpath=yes
8420 openbsd*)
8421 version_type=sunos
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8428 case $host_os in
8429 openbsd2.[89] | openbsd2.[89].*)
8430 shlibpath_overrides_runpath=no
8433 shlibpath_overrides_runpath=yes
8435 esac
8436 else
8437 shlibpath_overrides_runpath=yes
8441 os2*)
8442 libname_spec='$name'
8443 shrext=".dll"
8444 need_lib_prefix=no
8445 library_names_spec='$libname${shared_ext} $libname.a'
8446 dynamic_linker='OS/2 ld.exe'
8447 shlibpath_var=LIBPATH
8450 osf3* | osf4* | osf5*)
8451 version_type=osf
8452 need_lib_prefix=no
8453 need_version=no
8454 soname_spec='${libname}${release}${shared_ext}$major'
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456 shlibpath_var=LD_LIBRARY_PATH
8457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8461 sco3.2v5*)
8462 version_type=osf
8463 soname_spec='${libname}${release}${shared_ext}$major'
8464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465 shlibpath_var=LD_LIBRARY_PATH
8468 solaris*)
8469 version_type=linux
8470 need_lib_prefix=no
8471 need_version=no
8472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8473 soname_spec='${libname}${release}${shared_ext}$major'
8474 shlibpath_var=LD_LIBRARY_PATH
8475 shlibpath_overrides_runpath=yes
8476 hardcode_into_libs=yes
8477 # ldd complains unless libraries are executable
8478 postinstall_cmds='chmod +x $lib'
8481 sunos4*)
8482 version_type=sunos
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8485 shlibpath_var=LD_LIBRARY_PATH
8486 shlibpath_overrides_runpath=yes
8487 if test "$with_gnu_ld" = yes; then
8488 need_lib_prefix=no
8490 need_version=yes
8493 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8494 version_type=linux
8495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8496 soname_spec='${libname}${release}${shared_ext}$major'
8497 shlibpath_var=LD_LIBRARY_PATH
8498 case $host_vendor in
8499 sni)
8500 shlibpath_overrides_runpath=no
8501 need_lib_prefix=no
8502 export_dynamic_flag_spec='${wl}-Blargedynsym'
8503 runpath_var=LD_RUN_PATH
8505 siemens)
8506 need_lib_prefix=no
8508 motorola)
8509 need_lib_prefix=no
8510 need_version=no
8511 shlibpath_overrides_runpath=no
8512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8514 esac
8517 sysv4*MP*)
8518 if test -d /usr/nec ;then
8519 version_type=linux
8520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8521 soname_spec='$libname${shared_ext}.$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8526 uts4*)
8527 version_type=linux
8528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8529 soname_spec='${libname}${release}${shared_ext}$major'
8530 shlibpath_var=LD_LIBRARY_PATH
8534 dynamic_linker=no
8536 esac
8537 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8538 echo "${ECHO_T}$dynamic_linker" >&6
8539 test "$dynamic_linker" = no && can_build_shared=no
8541 if test "x$enable_dlopen" != xyes; then
8542 enable_dlopen=unknown
8543 enable_dlopen_self=unknown
8544 enable_dlopen_self_static=unknown
8545 else
8546 lt_cv_dlopen=no
8547 lt_cv_dlopen_libs=
8549 case $host_os in
8550 beos*)
8551 lt_cv_dlopen="load_add_on"
8552 lt_cv_dlopen_libs=
8553 lt_cv_dlopen_self=yes
8556 mingw* | pw32*)
8557 lt_cv_dlopen="LoadLibrary"
8558 lt_cv_dlopen_libs=
8561 cygwin*)
8562 lt_cv_dlopen="dlopen"
8563 lt_cv_dlopen_libs=
8566 darwin*)
8567 # if libdl is installed we need to link against it
8568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573 ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-ldl $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 /* We use char because int might match the return type of a gcc2
8587 builtin and then its argument prototype would still apply. */
8588 char dlopen ();
8590 main ()
8592 dlopen ();
8594 return 0;
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 (eval $ac_try) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_lib_dl_dlopen=yes
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_lib_dl_dlopen=no
8625 rm -f conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8627 LIBS=$ac_check_lib_save_LIBS
8629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8631 if test $ac_cv_lib_dl_dlopen = yes; then
8632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8633 else
8635 lt_cv_dlopen="dyld"
8636 lt_cv_dlopen_libs=
8637 lt_cv_dlopen_self=yes
8644 echo "$as_me:$LINENO: checking for shl_load" >&5
8645 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8646 if test "${ac_cv_func_shl_load+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8657 #define shl_load innocuous_shl_load
8659 /* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char shl_load (); below.
8661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8662 <limits.h> exists even on freestanding compilers. */
8664 #ifdef __STDC__
8665 # include <limits.h>
8666 #else
8667 # include <assert.h>
8668 #endif
8670 #undef shl_load
8672 /* Override any gcc2 internal prototype to avoid an error. */
8673 #ifdef __cplusplus
8674 extern "C"
8676 #endif
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8679 char shl_load ();
8680 /* The GNU C library defines this for functions which it implements
8681 to always fail with ENOSYS. Some functions are actually named
8682 something starting with __ and the normal name is an alias. */
8683 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8684 choke me
8685 #else
8686 char (*f) () = shl_load;
8687 #endif
8688 #ifdef __cplusplus
8690 #endif
8693 main ()
8695 return f != shl_load;
8697 return 0;
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; } &&
8715 { ac_try='test -s conftest$ac_exeext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 (eval $ac_try) 2>&5
8718 ac_status=$?
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_cv_func_shl_load=yes
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ac_cv_func_shl_load=no
8728 rm -f conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8731 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8733 if test $ac_cv_func_shl_load = yes; then
8734 lt_cv_dlopen="shl_load"
8735 else
8736 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8737 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741 ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-ldld $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8750 /* Override any gcc2 internal prototype to avoid an error. */
8751 #ifdef __cplusplus
8752 extern "C"
8753 #endif
8754 /* We use char because int might match the return type of a gcc2
8755 builtin and then its argument prototype would still apply. */
8756 char shl_load ();
8758 main ()
8760 shl_load ();
8762 return 0;
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767 (eval $ac_link) 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; } &&
8780 { ac_try='test -s conftest$ac_exeext'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; }; then
8786 ac_cv_lib_dld_shl_load=yes
8787 else
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_cv_lib_dld_shl_load=no
8793 rm -f conftest.err conftest.$ac_objext \
8794 conftest$ac_exeext conftest.$ac_ext
8795 LIBS=$ac_check_lib_save_LIBS
8797 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8799 if test $ac_cv_lib_dld_shl_load = yes; then
8800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8801 else
8802 echo "$as_me:$LINENO: checking for dlopen" >&5
8803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8804 if test "${ac_cv_func_dlopen+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h. */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8815 #define dlopen innocuous_dlopen
8817 /* System header to define __stub macros and hopefully few prototypes,
8818 which can conflict with char dlopen (); below.
8819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8820 <limits.h> exists even on freestanding compilers. */
8822 #ifdef __STDC__
8823 # include <limits.h>
8824 #else
8825 # include <assert.h>
8826 #endif
8828 #undef dlopen
8830 /* Override any gcc2 internal prototype to avoid an error. */
8831 #ifdef __cplusplus
8832 extern "C"
8834 #endif
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8837 char dlopen ();
8838 /* The GNU C library defines this for functions which it implements
8839 to always fail with ENOSYS. Some functions are actually named
8840 something starting with __ and the normal name is an alias. */
8841 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8842 choke me
8843 #else
8844 char (*f) () = dlopen;
8845 #endif
8846 #ifdef __cplusplus
8848 #endif
8851 main ()
8853 return f != dlopen;
8855 return 0;
8857 _ACEOF
8858 rm -f conftest.$ac_objext conftest$ac_exeext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8860 (eval $ac_link) 2>conftest.er1
8861 ac_status=$?
8862 grep -v '^ *+' conftest.er1 >conftest.err
8863 rm -f conftest.er1
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; } &&
8873 { ac_try='test -s conftest$ac_exeext'
8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 (eval $ac_try) 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_func_dlopen=yes
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 ac_cv_func_dlopen=no
8886 rm -f conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8889 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8890 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8891 if test $ac_cv_func_dlopen = yes; then
8892 lt_cv_dlopen="dlopen"
8893 else
8894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-ldl $LIBS"
8901 cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h. */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8908 /* Override any gcc2 internal prototype to avoid an error. */
8909 #ifdef __cplusplus
8910 extern "C"
8911 #endif
8912 /* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8914 char dlopen ();
8916 main ()
8918 dlopen ();
8920 return 0;
8922 _ACEOF
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925 (eval $ac_link) 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; } &&
8938 { ac_try='test -s conftest$ac_exeext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_lib_dl_dlopen=yes
8945 else
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 ac_cv_lib_dl_dlopen=no
8951 rm -f conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953 LIBS=$ac_check_lib_save_LIBS
8955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8957 if test $ac_cv_lib_dl_dlopen = yes; then
8958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8959 else
8960 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8961 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965 ac_check_lib_save_LIBS=$LIBS
8966 LIBS="-lsvld $LIBS"
8967 cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h. */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8974 /* Override any gcc2 internal prototype to avoid an error. */
8975 #ifdef __cplusplus
8976 extern "C"
8977 #endif
8978 /* We use char because int might match the return type of a gcc2
8979 builtin and then its argument prototype would still apply. */
8980 char dlopen ();
8982 main ()
8984 dlopen ();
8986 return 0;
8988 _ACEOF
8989 rm -f conftest.$ac_objext conftest$ac_exeext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8991 (eval $ac_link) 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest$ac_exeext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_cv_lib_svld_dlopen=yes
9011 else
9012 echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9015 ac_cv_lib_svld_dlopen=no
9017 rm -f conftest.err conftest.$ac_objext \
9018 conftest$ac_exeext conftest.$ac_ext
9019 LIBS=$ac_check_lib_save_LIBS
9021 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9022 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9023 if test $ac_cv_lib_svld_dlopen = yes; then
9024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9025 else
9026 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9027 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031 ac_check_lib_save_LIBS=$LIBS
9032 LIBS="-ldld $LIBS"
9033 cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h. */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9040 /* Override any gcc2 internal prototype to avoid an error. */
9041 #ifdef __cplusplus
9042 extern "C"
9043 #endif
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9046 char dld_link ();
9048 main ()
9050 dld_link ();
9052 return 0;
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_lib_dld_dld_link=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ac_cv_lib_dld_dld_link=no
9083 rm -f conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9089 if test $ac_cv_lib_dld_dld_link = yes; then
9090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9109 esac
9111 if test "x$lt_cv_dlopen" != xno; then
9112 enable_dlopen=yes
9113 else
9114 enable_dlopen=no
9117 case $lt_cv_dlopen in
9118 dlopen)
9119 save_CPPFLAGS="$CPPFLAGS"
9120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9122 save_LDFLAGS="$LDFLAGS"
9123 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9125 save_LIBS="$LIBS"
9126 LIBS="$lt_cv_dlopen_libs $LIBS"
9128 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9130 if test "${lt_cv_dlopen_self+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133 if test "$cross_compiling" = yes; then :
9134 lt_cv_dlopen_self=cross
9135 else
9136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9137 lt_status=$lt_dlunknown
9138 cat > conftest.$ac_ext <<EOF
9139 #line 9139 "configure"
9140 #include "confdefs.h"
9142 #if HAVE_DLFCN_H
9143 #include <dlfcn.h>
9144 #endif
9146 #include <stdio.h>
9148 #ifdef RTLD_GLOBAL
9149 # define LT_DLGLOBAL RTLD_GLOBAL
9150 #else
9151 # ifdef DL_GLOBAL
9152 # define LT_DLGLOBAL DL_GLOBAL
9153 # else
9154 # define LT_DLGLOBAL 0
9155 # endif
9156 #endif
9158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9159 find out it does not work in some platform. */
9160 #ifndef LT_DLLAZY_OR_NOW
9161 # ifdef RTLD_LAZY
9162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9163 # else
9164 # ifdef DL_LAZY
9165 # define LT_DLLAZY_OR_NOW DL_LAZY
9166 # else
9167 # ifdef RTLD_NOW
9168 # define LT_DLLAZY_OR_NOW RTLD_NOW
9169 # else
9170 # ifdef DL_NOW
9171 # define LT_DLLAZY_OR_NOW DL_NOW
9172 # else
9173 # define LT_DLLAZY_OR_NOW 0
9174 # endif
9175 # endif
9176 # endif
9177 # endif
9178 #endif
9180 #ifdef __cplusplus
9181 extern "C" void exit (int);
9182 #endif
9184 void fnord() { int i=42;}
9185 int main ()
9187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9188 int status = $lt_dlunknown;
9190 if (self)
9192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9194 /* dlclose (self); */
9197 exit (status);
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9205 (./conftest; exit; ) 2>/dev/null
9206 lt_status=$?
9207 case x$lt_status in
9208 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9209 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9210 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9211 esac
9212 else :
9213 # compilation failed
9214 lt_cv_dlopen_self=no
9217 rm -fr conftest*
9221 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9222 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9224 if test "x$lt_cv_dlopen_self" = xyes; then
9225 LDFLAGS="$LDFLAGS $link_static_flag"
9226 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9227 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9228 if test "${lt_cv_dlopen_self_static+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231 if test "$cross_compiling" = yes; then :
9232 lt_cv_dlopen_self_static=cross
9233 else
9234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9235 lt_status=$lt_dlunknown
9236 cat > conftest.$ac_ext <<EOF
9237 #line 9237 "configure"
9238 #include "confdefs.h"
9240 #if HAVE_DLFCN_H
9241 #include <dlfcn.h>
9242 #endif
9244 #include <stdio.h>
9246 #ifdef RTLD_GLOBAL
9247 # define LT_DLGLOBAL RTLD_GLOBAL
9248 #else
9249 # ifdef DL_GLOBAL
9250 # define LT_DLGLOBAL DL_GLOBAL
9251 # else
9252 # define LT_DLGLOBAL 0
9253 # endif
9254 #endif
9256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9257 find out it does not work in some platform. */
9258 #ifndef LT_DLLAZY_OR_NOW
9259 # ifdef RTLD_LAZY
9260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9261 # else
9262 # ifdef DL_LAZY
9263 # define LT_DLLAZY_OR_NOW DL_LAZY
9264 # else
9265 # ifdef RTLD_NOW
9266 # define LT_DLLAZY_OR_NOW RTLD_NOW
9267 # else
9268 # ifdef DL_NOW
9269 # define LT_DLLAZY_OR_NOW DL_NOW
9270 # else
9271 # define LT_DLLAZY_OR_NOW 0
9272 # endif
9273 # endif
9274 # endif
9275 # endif
9276 #endif
9278 #ifdef __cplusplus
9279 extern "C" void exit (int);
9280 #endif
9282 void fnord() { int i=42;}
9283 int main ()
9285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9286 int status = $lt_dlunknown;
9288 if (self)
9290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9292 /* dlclose (self); */
9295 exit (status);
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9303 (./conftest; exit; ) 2>/dev/null
9304 lt_status=$?
9305 case x$lt_status in
9306 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9307 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9308 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9309 esac
9310 else :
9311 # compilation failed
9312 lt_cv_dlopen_self_static=no
9315 rm -fr conftest*
9319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9320 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9323 CPPFLAGS="$save_CPPFLAGS"
9324 LDFLAGS="$save_LDFLAGS"
9325 LIBS="$save_LIBS"
9327 esac
9329 case $lt_cv_dlopen_self in
9330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9331 *) enable_dlopen_self=unknown ;;
9332 esac
9334 case $lt_cv_dlopen_self_static in
9335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9336 *) enable_dlopen_self_static=unknown ;;
9337 esac
9341 # Report which librarie types wil actually be built
9342 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9343 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9344 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9345 echo "${ECHO_T}$can_build_shared" >&6
9347 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9348 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9349 test "$can_build_shared" = "no" && enable_shared=no
9351 # On AIX, shared libraries and static libraries use the same namespace, and
9352 # are all built from PIC.
9353 case "$host_os" in
9354 aix3*)
9355 test "$enable_shared" = yes && enable_static=no
9356 if test -n "$RANLIB"; then
9357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9358 postinstall_cmds='$RANLIB $lib'
9362 aix4*)
9363 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9364 test "$enable_shared" = yes && enable_static=no
9367 darwin* | rhapsody*)
9368 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9369 archive_cmds_need_lc=no
9370 case "$host_os" in
9371 rhapsody* | darwin1.[012])
9372 allow_undefined_flag='-undefined suppress'
9374 *) # Darwin 1.3 on
9375 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9377 esac
9378 # FIXME: Relying on posixy $() will cause problems for
9379 # cross-compilation, but unfortunately the echo tests do not
9380 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
9381 # `"' quotes if we put them in here... so don't!
9382 output_verbose_link_cmd='echo'
9383 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9384 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9385 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9386 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9387 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9388 hardcode_direct=no
9389 hardcode_automatic=yes
9390 hardcode_shlibpath_var=unsupported
9391 whole_archive_flag_spec='-all_load $convenience'
9392 link_all_deplibs=yes
9395 esac
9396 echo "$as_me:$LINENO: result: $enable_shared" >&5
9397 echo "${ECHO_T}$enable_shared" >&6
9399 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9400 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9401 # Make sure either enable_shared or enable_static is yes.
9402 test "$enable_shared" = yes || enable_static=yes
9403 echo "$as_me:$LINENO: result: $enable_static" >&5
9404 echo "${ECHO_T}$enable_static" >&6
9406 # The else clause should only fire when bootstrapping the
9407 # libtool distribution, otherwise you forgot to ship ltmain.sh
9408 # with your package, and you will get complaints that there are
9409 # no rules to generate ltmain.sh.
9410 if test -f "$ltmain"; then
9411 # See if we are running on zsh, and set the options which allow our commands through
9412 # without removal of \ escapes.
9413 if test -n "${ZSH_VERSION+set}" ; then
9414 setopt NO_GLOB_SUBST
9416 # Now quote all the things that may contain metacharacters while being
9417 # careful not to overquote the AC_SUBSTed values. We take copies of the
9418 # variables and quote the copies for generation of the libtool script.
9419 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9420 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9421 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9422 deplibs_check_method reload_flag reload_cmds need_locks \
9423 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9424 lt_cv_sys_global_symbol_to_c_name_address \
9425 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9426 old_postinstall_cmds old_postuninstall_cmds \
9427 compiler \
9428 CC \
9429 LD \
9430 lt_prog_compiler_wl \
9431 lt_prog_compiler_pic \
9432 lt_prog_compiler_static \
9433 lt_prog_compiler_no_builtin_flag \
9434 export_dynamic_flag_spec \
9435 thread_safe_flag_spec \
9436 whole_archive_flag_spec \
9437 enable_shared_with_static_runtimes \
9438 old_archive_cmds \
9439 old_archive_from_new_cmds \
9440 predep_objects \
9441 postdep_objects \
9442 predeps \
9443 postdeps \
9444 compiler_lib_search_path \
9445 archive_cmds \
9446 archive_expsym_cmds \
9447 postinstall_cmds \
9448 postuninstall_cmds \
9449 old_archive_from_expsyms_cmds \
9450 allow_undefined_flag \
9451 no_undefined_flag \
9452 export_symbols_cmds \
9453 hardcode_libdir_flag_spec \
9454 hardcode_libdir_flag_spec_ld \
9455 hardcode_libdir_separator \
9456 hardcode_automatic \
9457 module_cmds \
9458 module_expsym_cmds \
9459 lt_cv_prog_compiler_c_o \
9460 exclude_expsyms \
9461 include_expsyms; do
9463 case $var in
9464 old_archive_cmds | \
9465 old_archive_from_new_cmds | \
9466 archive_cmds | \
9467 archive_expsym_cmds | \
9468 module_cmds | \
9469 module_expsym_cmds | \
9470 old_archive_from_expsyms_cmds | \
9471 export_symbols_cmds | \
9472 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9473 postinstall_cmds | postuninstall_cmds | \
9474 old_postinstall_cmds | old_postuninstall_cmds | \
9475 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9476 # Double-quote double-evaled strings.
9477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9482 esac
9483 done
9485 case $lt_echo in
9486 *'\$0 --fallback-echo"')
9487 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9489 esac
9491 cfgfile="${ofile}T"
9492 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9493 $rm -f "$cfgfile"
9494 { echo "$as_me:$LINENO: creating $ofile" >&5
9495 echo "$as_me: creating $ofile" >&6;}
9497 cat <<__EOF__ >> "$cfgfile"
9498 #! $SHELL
9500 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9501 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9502 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9504 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9505 # Free Software Foundation, Inc.
9507 # This file is part of GNU Libtool:
9508 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9510 # This program is free software; you can redistribute it and/or modify
9511 # it under the terms of the GNU General Public License as published by
9512 # the Free Software Foundation; either version 2 of the License, or
9513 # (at your option) any later version.
9515 # This program is distributed in the hope that it will be useful, but
9516 # WITHOUT ANY WARRANTY; without even the implied warranty of
9517 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9518 # General Public License for more details.
9520 # You should have received a copy of the GNU General Public License
9521 # along with this program; if not, write to the Free Software
9522 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9524 # As a special exception to the GNU General Public License, if you
9525 # distribute this file as part of a program that contains a
9526 # configuration script generated by Autoconf, you may include it under
9527 # the same distribution terms that you use for the rest of that program.
9529 # A sed program that does not truncate output.
9530 SED=$lt_SED
9532 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9533 Xsed="$SED -e s/^X//"
9535 # The HP-UX ksh and POSIX shell print the target directory to stdout
9536 # if CDPATH is set.
9537 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9539 # The names of the tagged configurations supported by this script.
9540 available_tags=
9542 # ### BEGIN LIBTOOL CONFIG
9544 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9546 # Shell to use when invoking shell scripts.
9547 SHELL=$lt_SHELL
9549 # Whether or not to build shared libraries.
9550 build_libtool_libs=$enable_shared
9552 # Whether or not to build static libraries.
9553 build_old_libs=$enable_static
9555 # Whether or not to add -lc for building shared libraries.
9556 build_libtool_need_lc=$archive_cmds_need_lc
9558 # Whether or not to disallow shared libs when runtime libs are static
9559 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9561 # Whether or not to optimize for fast installation.
9562 fast_install=$enable_fast_install
9564 # The host system.
9565 host_alias=$host_alias
9566 host=$host
9568 # An echo program that does not interpret backslashes.
9569 echo=$lt_echo
9571 # The archiver.
9572 AR=$lt_AR
9573 AR_FLAGS=$lt_AR_FLAGS
9575 # A C compiler.
9576 LTCC=$lt_LTCC
9578 # A language-specific compiler.
9579 CC=$lt_compiler
9581 # Is the compiler the GNU C compiler?
9582 with_gcc=$GCC
9584 # An ERE matcher.
9585 EGREP=$lt_EGREP
9587 # The linker used to build libraries.
9588 LD=$lt_LD
9590 # Whether we need hard or soft links.
9591 LN_S=$lt_LN_S
9593 # A BSD-compatible nm program.
9594 NM=$lt_NM
9596 # A symbol stripping program
9597 STRIP=$STRIP
9599 # Used to examine libraries when file_magic_cmd begins "file"
9600 MAGIC_CMD=$MAGIC_CMD
9602 # Used on cygwin: DLL creation program.
9603 DLLTOOL="$DLLTOOL"
9605 # Used on cygwin: object dumper.
9606 OBJDUMP="$OBJDUMP"
9608 # Used on cygwin: assembler.
9609 AS="$AS"
9611 # The name of the directory that contains temporary libtool files.
9612 objdir=$objdir
9614 # How to create reloadable object files.
9615 reload_flag=$lt_reload_flag
9616 reload_cmds=$lt_reload_cmds
9618 # How to pass a linker flag through the compiler.
9619 wl=$lt_lt_prog_compiler_wl
9621 # Object file suffix (normally "o").
9622 objext="$ac_objext"
9624 # Old archive suffix (normally "a").
9625 libext="$libext"
9627 # Shared library suffix (normally ".so").
9628 shrext='$shrext'
9630 # Executable file suffix (normally "").
9631 exeext="$exeext"
9633 # Additional compiler flags for building library objects.
9634 pic_flag=$lt_lt_prog_compiler_pic
9635 pic_mode=$pic_mode
9637 # What is the maximum length of a command?
9638 max_cmd_len=$lt_cv_sys_max_cmd_len
9640 # Does compiler simultaneously support -c and -o options?
9641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9643 # Must we lock files when doing compilation ?
9644 need_locks=$lt_need_locks
9646 # Do we need the lib prefix for modules?
9647 need_lib_prefix=$need_lib_prefix
9649 # Do we need a version for libraries?
9650 need_version=$need_version
9652 # Whether dlopen is supported.
9653 dlopen_support=$enable_dlopen
9655 # Whether dlopen of programs is supported.
9656 dlopen_self=$enable_dlopen_self
9658 # Whether dlopen of statically linked programs is supported.
9659 dlopen_self_static=$enable_dlopen_self_static
9661 # Compiler flag to prevent dynamic linking.
9662 link_static_flag=$lt_lt_prog_compiler_static
9664 # Compiler flag to turn off builtin functions.
9665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9667 # Compiler flag to allow reflexive dlopens.
9668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9670 # Compiler flag to generate shared objects directly from archives.
9671 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9673 # Compiler flag to generate thread-safe objects.
9674 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9676 # Library versioning type.
9677 version_type=$version_type
9679 # Format of library name prefix.
9680 libname_spec=$lt_libname_spec
9682 # List of archive names. First name is the real one, the rest are links.
9683 # The last name is the one that the linker finds with -lNAME.
9684 library_names_spec=$lt_library_names_spec
9686 # The coded name of the library, if different from the real name.
9687 soname_spec=$lt_soname_spec
9689 # Commands used to build and install an old-style archive.
9690 RANLIB=$lt_RANLIB
9691 old_archive_cmds=$lt_old_archive_cmds
9692 old_postinstall_cmds=$lt_old_postinstall_cmds
9693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9695 # Create an old-style archive from a shared archive.
9696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9698 # Create a temporary old-style archive to link instead of a shared archive.
9699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9701 # Commands used to build and install a shared archive.
9702 archive_cmds=$lt_archive_cmds
9703 archive_expsym_cmds=$lt_archive_expsym_cmds
9704 postinstall_cmds=$lt_postinstall_cmds
9705 postuninstall_cmds=$lt_postuninstall_cmds
9707 # Commands used to build a loadable module (assumed same as above if empty)
9708 module_cmds=$lt_module_cmds
9709 module_expsym_cmds=$lt_module_expsym_cmds
9711 # Commands to strip libraries.
9712 old_striplib=$lt_old_striplib
9713 striplib=$lt_striplib
9715 # Dependencies to place before the objects being linked to create a
9716 # shared library.
9717 predep_objects=$lt_predep_objects
9719 # Dependencies to place after the objects being linked to create a
9720 # shared library.
9721 postdep_objects=$lt_postdep_objects
9723 # Dependencies to place before the objects being linked to create a
9724 # shared library.
9725 predeps=$lt_predeps
9727 # Dependencies to place after the objects being linked to create a
9728 # shared library.
9729 postdeps=$lt_postdeps
9731 # The library search path used internally by the compiler when linking
9732 # a shared library.
9733 compiler_lib_search_path=$lt_compiler_lib_search_path
9735 # Method to check whether dependent libraries are shared objects.
9736 deplibs_check_method=$lt_deplibs_check_method
9738 # Command to use when deplibs_check_method == file_magic.
9739 file_magic_cmd=$lt_file_magic_cmd
9741 # Flag that allows shared libraries with undefined symbols to be built.
9742 allow_undefined_flag=$lt_allow_undefined_flag
9744 # Flag that forces no undefined symbols.
9745 no_undefined_flag=$lt_no_undefined_flag
9747 # Commands used to finish a libtool library installation in a directory.
9748 finish_cmds=$lt_finish_cmds
9750 # Same as above, but a single script fragment to be evaled but not shown.
9751 finish_eval=$lt_finish_eval
9753 # Take the output of nm and produce a listing of raw symbols and C names.
9754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9756 # Transform the output of nm in a proper C declaration
9757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9759 # Transform the output of nm in a C name address pair
9760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9762 # This is the shared library runtime path variable.
9763 runpath_var=$runpath_var
9765 # This is the shared library path variable.
9766 shlibpath_var=$shlibpath_var
9768 # Is shlibpath searched before the hard-coded library search path?
9769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9771 # How to hardcode a shared library path into an executable.
9772 hardcode_action=$hardcode_action
9774 # Whether we should hardcode library paths into libraries.
9775 hardcode_into_libs=$hardcode_into_libs
9777 # Flag to hardcode \$libdir into a binary during linking.
9778 # This must work even if \$libdir does not exist.
9779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9781 # If ld is used when linking, flag to hardcode \$libdir into
9782 # a binary during linking. This must work even if \$libdir does
9783 # not exist.
9784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9786 # Whether we need a single -rpath flag with a separated argument.
9787 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9790 # resulting binary.
9791 hardcode_direct=$hardcode_direct
9793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9794 # resulting binary.
9795 hardcode_minus_L=$hardcode_minus_L
9797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9798 # the resulting binary.
9799 hardcode_shlibpath_var=$hardcode_shlibpath_var
9801 # Set to yes if building a shared library automatically hardcodes DIR into the library
9802 # and all subsequent libraries and executables linked against it.
9803 hardcode_automatic=$hardcode_automatic
9805 # Variables whose values should be saved in libtool wrapper scripts and
9806 # restored at relink time.
9807 variables_saved_for_relink="$variables_saved_for_relink"
9809 # Whether libtool must link a program against all its dependency libraries.
9810 link_all_deplibs=$link_all_deplibs
9812 # Compile-time system search path for libraries
9813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9815 # Run-time system search path for libraries
9816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9818 # Fix the shell variable \$srcfile for the compiler.
9819 fix_srcfile_path="$fix_srcfile_path"
9821 # Set to yes if exported symbols are required.
9822 always_export_symbols=$always_export_symbols
9824 # The commands to list exported symbols.
9825 export_symbols_cmds=$lt_export_symbols_cmds
9827 # The commands to extract the exported symbol list from a shared archive.
9828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9830 # Symbols that should not be listed in the preloaded symbols.
9831 exclude_expsyms=$lt_exclude_expsyms
9833 # Symbols that must always be exported.
9834 include_expsyms=$lt_include_expsyms
9836 # ### END LIBTOOL CONFIG
9838 __EOF__
9841 case $host_os in
9842 aix3*)
9843 cat <<\EOF >> "$cfgfile"
9845 # AIX sometimes has problems with the GCC collect2 program. For some
9846 # reason, if we set the COLLECT_NAMES environment variable, the problems
9847 # vanish in a puff of smoke.
9848 if test "X${COLLECT_NAMES+set}" != Xset; then
9849 COLLECT_NAMES=
9850 export COLLECT_NAMES
9854 esac
9856 # We use sed instead of cat because bash on DJGPP gets confused if
9857 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9858 # text mode, it properly converts lines to CR/LF. This bash problem
9859 # is reportedly fixed, but why not run on old versions too?
9860 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9862 mv -f "$cfgfile" "$ofile" || \
9863 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9864 chmod +x "$ofile"
9866 else
9867 # If there is no Makefile yet, we rely on a make rule to execute
9868 # `config.status --recheck' to rerun these tests and create the
9869 # libtool script then.
9870 test -f Makefile && make "$ltmain"
9874 ac_ext=c
9875 ac_cpp='$CPP $CPPFLAGS'
9876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9880 CC="$lt_save_CC"
9883 # Check whether --with-tags or --without-tags was given.
9884 if test "${with_tags+set}" = set; then
9885 withval="$with_tags"
9886 tagnames="$withval"
9889 if test -f "$ltmain" && test -n "$tagnames"; then
9890 if test ! -f "${ofile}"; then
9891 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9892 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9895 if test -z "$LTCC"; then
9896 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9897 if test -z "$LTCC"; then
9898 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9899 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9900 else
9901 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9902 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9906 # Extract list of available tagged configurations in $ofile.
9907 # Note that this assumes the entire list is on one line.
9908 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9911 for tagname in $tagnames; do
9912 IFS="$lt_save_ifs"
9913 # Check whether tagname contains only valid characters
9914 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9915 "") ;;
9916 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9917 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9918 { (exit 1); exit 1; }; }
9920 esac
9922 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9923 then
9924 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9925 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9926 { (exit 1); exit 1; }; }
9929 # Update the list of available tags.
9930 if test -n "$tagname"; then
9931 echo appending configuration tag \"$tagname\" to $ofile
9933 case $tagname in
9934 CXX)
9935 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9936 ac_ext=cc
9937 ac_cpp='$CXXCPP $CPPFLAGS'
9938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9945 archive_cmds_need_lc_CXX=no
9946 allow_undefined_flag_CXX=
9947 always_export_symbols_CXX=no
9948 archive_expsym_cmds_CXX=
9949 export_dynamic_flag_spec_CXX=
9950 hardcode_direct_CXX=no
9951 hardcode_libdir_flag_spec_CXX=
9952 hardcode_libdir_flag_spec_ld_CXX=
9953 hardcode_libdir_separator_CXX=
9954 hardcode_minus_L_CXX=no
9955 hardcode_automatic_CXX=no
9956 module_cmds_CXX=
9957 module_expsym_cmds_CXX=
9958 link_all_deplibs_CXX=unknown
9959 old_archive_cmds_CXX=$old_archive_cmds
9960 no_undefined_flag_CXX=
9961 whole_archive_flag_spec_CXX=
9962 enable_shared_with_static_runtimes_CXX=no
9964 # Dependencies to place before and after the object being linked:
9965 predep_objects_CXX=
9966 postdep_objects_CXX=
9967 predeps_CXX=
9968 postdeps_CXX=
9969 compiler_lib_search_path_CXX=
9971 # Source file extension for C++ test sources.
9972 ac_ext=cc
9974 # Object file extension for compiled C++ test sources.
9975 objext=o
9976 objext_CXX=$objext
9978 # Code to be used in simple compile tests
9979 lt_simple_compile_test_code="int some_variable = 0;\n"
9981 # Code to be used in simple link tests
9982 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9986 # If no C compiler was specified, use CC.
9987 LTCC=${LTCC-"$CC"}
9989 # Allow CC to be a program name with arguments.
9990 compiler=$CC
9993 # Allow CC to be a program name with arguments.
9994 lt_save_CC=$CC
9995 lt_save_LD=$LD
9996 lt_save_GCC=$GCC
9997 GCC=$GXX
9998 lt_save_with_gnu_ld=$with_gnu_ld
9999 lt_save_path_LD=$lt_cv_path_LD
10000 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10001 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10002 else
10003 unset lt_cv_prog_gnu_ld
10005 if test -n "${lt_cv_path_LDCXX+set}"; then
10006 lt_cv_path_LD=$lt_cv_path_LDCXX
10007 else
10008 unset lt_cv_path_LD
10010 test -z "${LDCXX+set}" || LD=$LDCXX
10011 CC=${CXX-"c++"}
10012 compiler=$CC
10013 compiler_CXX=$CC
10014 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10016 # We don't want -fno-exception wen compiling C++ code, so set the
10017 # no_builtin_flag separately
10018 if test "$GXX" = yes; then
10019 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10020 else
10021 lt_prog_compiler_no_builtin_flag_CXX=
10024 if test "$GXX" = yes; then
10025 # Set up default GNU C++ configuration
10028 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10029 if test "${with_gnu_ld+set}" = set; then
10030 withval="$with_gnu_ld"
10031 test "$withval" = no || with_gnu_ld=yes
10032 else
10033 with_gnu_ld=no
10035 ac_prog=ld
10036 if test "$GCC" = yes; then
10037 # Check if gcc -print-prog-name=ld gives a path.
10038 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10039 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10040 case $host in
10041 *-*-mingw*)
10042 # gcc leaves a trailing carriage return which upsets mingw
10043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10046 esac
10047 case $ac_prog in
10048 # Accept absolute paths.
10049 [\\/]* | ?:[\\/]*)
10050 re_direlt='/[^/][^/]*/\.\./'
10051 # Canonicalize the path of ld
10052 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10053 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10054 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10055 done
10056 test -z "$LD" && LD="$ac_prog"
10059 # If it fails, then pretend we aren't using GCC.
10060 ac_prog=ld
10063 # If it is relative, then search for the first ld in PATH.
10064 with_gnu_ld=unknown
10066 esac
10067 elif test "$with_gnu_ld" = yes; then
10068 echo "$as_me:$LINENO: checking for GNU ld" >&5
10069 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10070 else
10071 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10072 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10074 if test "${lt_cv_path_LD+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 if test -z "$LD"; then
10078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10079 for ac_dir in $PATH; do
10080 IFS="$lt_save_ifs"
10081 test -z "$ac_dir" && ac_dir=.
10082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10083 lt_cv_path_LD="$ac_dir/$ac_prog"
10084 # Check to see if the program is GNU ld. I'd rather use --version,
10085 # but apparently some GNU ld's only accept -v.
10086 # Break only if it was the GNU/non-GNU ld that we prefer.
10087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10088 *GNU* | *'with BFD'*)
10089 test "$with_gnu_ld" != no && break
10092 test "$with_gnu_ld" != yes && break
10094 esac
10096 done
10097 IFS="$lt_save_ifs"
10098 else
10099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10103 LD="$lt_cv_path_LD"
10104 if test -n "$LD"; then
10105 echo "$as_me:$LINENO: result: $LD" >&5
10106 echo "${ECHO_T}$LD" >&6
10107 else
10108 echo "$as_me:$LINENO: result: no" >&5
10109 echo "${ECHO_T}no" >&6
10111 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10112 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10113 { (exit 1); exit 1; }; }
10114 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10115 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10116 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10120 case `"$LD" -v 2>&1 </dev/null` in
10121 *GNU* | *'with BFD'*)
10122 lt_cv_prog_gnu_ld=yes
10125 lt_cv_prog_gnu_ld=no
10127 esac
10129 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10130 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10131 with_gnu_ld=$lt_cv_prog_gnu_ld
10135 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10136 # archiving commands below assume that GNU ld is being used.
10137 if test "$with_gnu_ld" = yes; then
10138 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10139 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'
10141 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10142 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10144 # If archive_cmds runs LD, not CC, wlarc should be empty
10145 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10146 # investigate it a little bit more. (MM)
10147 wlarc='${wl}'
10149 # ancient GNU ld didn't support --whole-archive et. al.
10150 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10151 grep 'no-whole-archive' > /dev/null; then
10152 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10153 else
10154 whole_archive_flag_spec_CXX=
10156 else
10157 with_gnu_ld=no
10158 wlarc=
10160 # A generic and very simple default shared library creation
10161 # command for GNU C++ for the case where it uses the native
10162 # linker, instead of GNU ld. If possible, this setting should
10163 # overridden to take advantage of the native linker features on
10164 # the platform it is being used on.
10165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10168 # Commands to make compiler produce verbose output that lists
10169 # what "hidden" libraries, object files and flags are used when
10170 # linking a shared library.
10171 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10173 else
10174 GXX=no
10175 with_gnu_ld=no
10176 wlarc=
10179 # PORTME: fill in a description of your system's C++ link characteristics
10180 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10181 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10182 ld_shlibs_CXX=yes
10183 case $host_os in
10184 aix3*)
10185 # FIXME: insert proper C++ library support
10186 ld_shlibs_CXX=no
10188 aix4* | aix5*)
10189 if test "$host_cpu" = ia64; then
10190 # On IA64, the linker does run time linking by default, so we don't
10191 # have to do anything special.
10192 aix_use_runtimelinking=no
10193 exp_sym_flag='-Bexport'
10194 no_entry_flag=""
10195 else
10196 aix_use_runtimelinking=no
10198 # Test if we are trying to use run time linking or normal
10199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10200 # need to do runtime linking.
10201 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10202 for ld_flag in $LDFLAGS; do
10203 case $ld_flag in
10204 *-brtl*)
10205 aix_use_runtimelinking=yes
10206 break
10208 esac
10209 done
10210 esac
10212 exp_sym_flag='-bexport'
10213 no_entry_flag='-bnoentry'
10216 # When large executables or shared objects are built, AIX ld can
10217 # have problems creating the table of contents. If linking a library
10218 # or program results in "error TOC overflow" add -mminimal-toc to
10219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10222 archive_cmds_CXX=''
10223 hardcode_direct_CXX=yes
10224 hardcode_libdir_separator_CXX=':'
10225 link_all_deplibs_CXX=yes
10227 if test "$GXX" = yes; then
10228 case $host_os in aix4.012|aix4.012.*)
10229 # We only want to do this on AIX 4.2 and lower, the check
10230 # below for broken collect2 doesn't work under 4.3+
10231 collect2name=`${CC} -print-prog-name=collect2`
10232 if test -f "$collect2name" && \
10233 strings "$collect2name" | grep resolve_lib_name >/dev/null
10234 then
10235 # We have reworked collect2
10236 hardcode_direct_CXX=yes
10237 else
10238 # We have old collect2
10239 hardcode_direct_CXX=unsupported
10240 # It fails to find uninstalled libraries when the uninstalled
10241 # path is not listed in the libpath. Setting hardcode_minus_L
10242 # to unsupported forces relinking
10243 hardcode_minus_L_CXX=yes
10244 hardcode_libdir_flag_spec_CXX='-L$libdir'
10245 hardcode_libdir_separator_CXX=
10247 esac
10248 shared_flag='-shared'
10249 else
10250 # not using gcc
10251 if test "$host_cpu" = ia64; then
10252 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10253 # chokes on -Wl,-G. The following line is correct:
10254 shared_flag='-G'
10255 else
10256 if test "$aix_use_runtimelinking" = yes; then
10257 shared_flag='${wl}-G'
10258 else
10259 shared_flag='${wl}-bM:SRE'
10264 # It seems that -bexpall does not export symbols beginning with
10265 # underscore (_), so it is better to generate a list of symbols to export.
10266 always_export_symbols_CXX=yes
10267 if test "$aix_use_runtimelinking" = yes; then
10268 # Warning - without using the other runtime loading flags (-brtl),
10269 # -berok will link without error, but may produce a broken library.
10270 allow_undefined_flag_CXX='-berok'
10271 # Determine the default libpath from the value encoded in an empty executable.
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h. */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10280 main ()
10284 return 0;
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10311 # Check for a 64-bit object if we didn't find anything.
10312 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; }
10313 }'`; fi
10314 else
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10319 rm -f conftest.err conftest.$ac_objext \
10320 conftest$ac_exeext conftest.$ac_ext
10321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10323 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10325 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"
10326 else
10327 if test "$host_cpu" = ia64; then
10328 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10329 allow_undefined_flag_CXX="-z nodefs"
10330 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"
10331 else
10332 # Determine the default libpath from the value encoded in an empty executable.
10333 cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h. */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10341 main ()
10345 return 0;
10347 _ACEOF
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>conftest.er1
10351 ac_status=$?
10352 grep -v '^ *+' conftest.er1 >conftest.err
10353 rm -f conftest.er1
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359 (eval $ac_try) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10372 # Check for a 64-bit object if we didn't find anything.
10373 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; }
10374 }'`; fi
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10380 rm -f conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10385 # Warning - without using the other run time loading flags,
10386 # -berok will link without error, but may produce a broken library.
10387 no_undefined_flag_CXX=' ${wl}-bernotok'
10388 allow_undefined_flag_CXX=' ${wl}-berok'
10389 # -bexpall does not export symbols beginning with underscore (_)
10390 always_export_symbols_CXX=yes
10391 # Exported symbols can be pulled into shared objects from archives
10392 whole_archive_flag_spec_CXX=' '
10393 archive_cmds_need_lc_CXX=yes
10394 # This is similar to how AIX traditionally builds it's shared libraries.
10395 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10399 chorus*)
10400 case $cc_basename in
10402 # FIXME: insert proper C++ library support
10403 ld_shlibs_CXX=no
10405 esac
10408 cygwin* | mingw* | pw32*)
10409 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10410 # as there is no search path for DLLs.
10411 hardcode_libdir_flag_spec_CXX='-L$libdir'
10412 allow_undefined_flag_CXX=unsupported
10413 always_export_symbols_CXX=no
10414 enable_shared_with_static_runtimes_CXX=yes
10416 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10417 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'
10418 # If the export-symbols file already is a .def file (1st line
10419 # is EXPORTS), use it as is; otherwise, prepend...
10420 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10421 cp $export_symbols $output_objdir/$soname.def;
10422 else
10423 echo EXPORTS > $output_objdir/$soname.def;
10424 cat $export_symbols >> $output_objdir/$soname.def;
10426 $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'
10427 else
10428 ld_shlibs_CXX=no
10432 darwin* | rhapsody*)
10433 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10434 archive_cmds_need_lc_CXX=no
10435 case "$host_os" in
10436 rhapsody* | darwin1.[012])
10437 allow_undefined_flag_CXX='-undefined suppress'
10439 *) # Darwin 1.3 on
10440 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10442 esac
10443 lt_int_apple_cc_single_mod=no
10444 output_verbose_link_cmd='echo'
10445 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10446 lt_int_apple_cc_single_mod=yes
10448 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10449 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10450 else
10451 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10453 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10456 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10457 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10458 else
10459 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10461 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10462 hardcode_direct_CXX=no
10463 hardcode_automatic_CXX=yes
10464 hardcode_shlibpath_var_CXX=unsupported
10465 whole_archive_flag_spec_CXX='-all_load $convenience'
10466 link_all_deplibs_CXX=yes
10470 dgux*)
10471 case $cc_basename in
10472 ec++)
10473 # FIXME: insert proper C++ library support
10474 ld_shlibs_CXX=no
10476 ghcx)
10477 # Green Hills C++ Compiler
10478 # FIXME: insert proper C++ library support
10479 ld_shlibs_CXX=no
10482 # FIXME: insert proper C++ library support
10483 ld_shlibs_CXX=no
10485 esac
10487 freebsd12*)
10488 # C++ shared libraries reported to be fairly broken before switch to ELF
10489 ld_shlibs_CXX=no
10491 freebsd-elf*)
10492 archive_cmds_need_lc_CXX=no
10494 freebsd*)
10495 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10496 # conventions
10497 ld_shlibs_CXX=yes
10499 gnu*)
10501 hpux9*)
10502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10503 hardcode_libdir_separator_CXX=:
10504 export_dynamic_flag_spec_CXX='${wl}-E'
10505 hardcode_direct_CXX=yes
10506 hardcode_minus_L_CXX=yes # Not in the search PATH,
10507 # but as the default
10508 # location of the library.
10510 case $cc_basename in
10512 # FIXME: insert proper C++ library support
10513 ld_shlibs_CXX=no
10515 aCC)
10516 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10517 # Commands to make compiler produce verbose output that lists
10518 # what "hidden" libraries, object files and flags are used when
10519 # linking a shared library.
10521 # There doesn't appear to be a way to prevent this compiler from
10522 # explicitly linking system object files so we need to strip them
10523 # from the output so that they don't get included in the library
10524 # dependencies.
10525 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'
10528 if test "$GXX" = yes; then
10529 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10530 else
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10535 esac
10537 hpux10*|hpux11*)
10538 if test $with_gnu_ld = no; then
10539 case "$host_cpu" in
10540 hppa*64*)
10541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10542 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10543 hardcode_libdir_separator_CXX=:
10545 ia64*)
10546 hardcode_libdir_flag_spec_CXX='-L$libdir'
10549 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10550 hardcode_libdir_separator_CXX=:
10551 export_dynamic_flag_spec_CXX='${wl}-E'
10553 esac
10555 case "$host_cpu" in
10556 hppa*64*)
10557 hardcode_direct_CXX=no
10558 hardcode_shlibpath_var_CXX=no
10560 ia64*)
10561 hardcode_direct_CXX=no
10562 hardcode_shlibpath_var_CXX=no
10563 hardcode_minus_L_CXX=yes # Not in the search PATH,
10564 # but as the default
10565 # location of the library.
10568 hardcode_direct_CXX=yes
10569 hardcode_minus_L_CXX=yes # Not in the search PATH,
10570 # but as the default
10571 # location of the library.
10573 esac
10575 case $cc_basename in
10577 # FIXME: insert proper C++ library support
10578 ld_shlibs_CXX=no
10580 aCC)
10581 case "$host_cpu" in
10582 hppa*64*|ia64*)
10583 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10588 esac
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.
10593 # There doesn't appear to be a way to prevent this compiler from
10594 # explicitly linking system object files so we need to strip them
10595 # from the output so that they don't get included in the library
10596 # dependencies.
10597 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'
10600 if test "$GXX" = yes; then
10601 if test $with_gnu_ld = no; then
10602 case "$host_cpu" in
10603 ia64*|hppa*64*)
10604 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10607 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'
10609 esac
10611 else
10612 # FIXME: insert proper C++ library support
10613 ld_shlibs_CXX=no
10616 esac
10618 irix5* | irix6*)
10619 case $cc_basename in
10621 # SGI C++
10622 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'
10624 # Archives containing C++ object files must be created using
10625 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10626 # necessary to make sure instantiated templates are included
10627 # in the archive.
10628 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10631 if test "$GXX" = yes; then
10632 if test "$with_gnu_ld" = no; then
10633 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'
10634 else
10635 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'
10638 link_all_deplibs_CXX=yes
10640 esac
10641 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10642 hardcode_libdir_separator_CXX=:
10644 linux*)
10645 case $cc_basename in
10646 KCC)
10647 # Kuck and Associates, Inc. (KAI) C++ Compiler
10649 # KCC will only create a shared library if the output file
10650 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10651 # to its proper name (with version) after linking.
10652 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'
10653 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'
10654 # Commands to make compiler produce verbose output that lists
10655 # what "hidden" libraries, object files and flags are used when
10656 # linking a shared library.
10658 # There doesn't appear to be a way to prevent this compiler from
10659 # explicitly linking system object files so we need to strip them
10660 # from the output so that they don't get included in the library
10661 # dependencies.
10662 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'
10664 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10667 # Archives containing C++ object files must be created using
10668 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10669 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10671 icpc)
10672 # Intel C++
10673 with_gnu_ld=yes
10674 archive_cmds_need_lc_CXX=no
10675 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10676 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'
10677 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10681 cxx)
10682 # Compaq C++
10683 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10684 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10686 runpath_var=LD_RUN_PATH
10687 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10688 hardcode_libdir_separator_CXX=:
10690 # Commands to make compiler produce verbose output that lists
10691 # what "hidden" libraries, object files and flags are used when
10692 # linking a shared library.
10694 # There doesn't appear to be a way to prevent this compiler from
10695 # explicitly linking system object files so we need to strip them
10696 # from the output so that they don't get included in the library
10697 # dependencies.
10698 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'
10700 esac
10702 lynxos*)
10703 # FIXME: insert proper C++ library support
10704 ld_shlibs_CXX=no
10706 m88k*)
10707 # FIXME: insert proper C++ library support
10708 ld_shlibs_CXX=no
10710 mvs*)
10711 case $cc_basename in
10712 cxx)
10713 # FIXME: insert proper C++ library support
10714 ld_shlibs_CXX=no
10717 # FIXME: insert proper C++ library support
10718 ld_shlibs_CXX=no
10720 esac
10722 netbsd*)
10723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10724 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10725 wlarc=
10726 hardcode_libdir_flag_spec_CXX='-R$libdir'
10727 hardcode_direct_CXX=yes
10728 hardcode_shlibpath_var_CXX=no
10730 # Workaround some broken pre-1.5 toolchains
10731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10733 osf3*)
10734 case $cc_basename in
10735 KCC)
10736 # Kuck and Associates, Inc. (KAI) C++ Compiler
10738 # KCC will only create a shared library if the output file
10739 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10740 # to its proper name (with version) after linking.
10741 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'
10743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10744 hardcode_libdir_separator_CXX=:
10746 # Archives containing C++ object files must be created using
10747 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10748 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10751 RCC)
10752 # Rational C++ 2.4.1
10753 # FIXME: insert proper C++ library support
10754 ld_shlibs_CXX=no
10756 cxx)
10757 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10758 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'
10760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10761 hardcode_libdir_separator_CXX=:
10763 # Commands to make compiler produce verbose output that lists
10764 # what "hidden" libraries, object files and flags are used when
10765 # linking a shared library.
10767 # There doesn't appear to be a way to prevent this compiler from
10768 # explicitly linking system object files so we need to strip them
10769 # from the output so that they don't get included in the library
10770 # dependencies.
10771 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'
10774 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10775 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10776 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'
10778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10779 hardcode_libdir_separator_CXX=:
10781 # Commands to make compiler produce verbose output that lists
10782 # what "hidden" libraries, object files and flags are used when
10783 # linking a shared library.
10784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10786 else
10787 # FIXME: insert proper C++ library support
10788 ld_shlibs_CXX=no
10791 esac
10793 osf4* | osf5*)
10794 case $cc_basename in
10795 KCC)
10796 # Kuck and Associates, Inc. (KAI) C++ Compiler
10798 # KCC will only create a shared library if the output file
10799 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10800 # to its proper name (with version) after linking.
10801 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'
10803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10804 hardcode_libdir_separator_CXX=:
10806 # Archives containing C++ object files must be created using
10807 # the KAI C++ compiler.
10808 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10810 RCC)
10811 # Rational C++ 2.4.1
10812 # FIXME: insert proper C++ library support
10813 ld_shlibs_CXX=no
10815 cxx)
10816 allow_undefined_flag_CXX=' -expect_unresolved \*'
10817 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'
10818 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10819 echo "-hidden">> $lib.exp~
10820 $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~
10821 $rm $lib.exp'
10823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10824 hardcode_libdir_separator_CXX=:
10826 # Commands to make compiler produce verbose output that lists
10827 # what "hidden" libraries, object files and flags are used when
10828 # linking a shared library.
10830 # There doesn't appear to be a way to prevent this compiler from
10831 # explicitly linking system object files so we need to strip them
10832 # from the output so that they don't get included in the library
10833 # dependencies.
10834 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'
10837 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10838 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10839 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'
10841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10842 hardcode_libdir_separator_CXX=:
10844 # Commands to make compiler produce verbose output that lists
10845 # what "hidden" libraries, object files and flags are used when
10846 # linking a shared library.
10847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10849 else
10850 # FIXME: insert proper C++ library support
10851 ld_shlibs_CXX=no
10854 esac
10856 psos*)
10857 # FIXME: insert proper C++ library support
10858 ld_shlibs_CXX=no
10860 sco*)
10861 archive_cmds_need_lc_CXX=no
10862 case $cc_basename in
10864 # FIXME: insert proper C++ library support
10865 ld_shlibs_CXX=no
10868 # FIXME: insert proper C++ library support
10869 ld_shlibs_CXX=no
10871 esac
10873 sunos4*)
10874 case $cc_basename in
10876 # Sun C++ 4.x
10877 # FIXME: insert proper C++ library support
10878 ld_shlibs_CXX=no
10880 lcc)
10881 # Lucid
10882 # FIXME: insert proper C++ library support
10883 ld_shlibs_CXX=no
10886 # FIXME: insert proper C++ library support
10887 ld_shlibs_CXX=no
10889 esac
10891 solaris*)
10892 case $cc_basename in
10894 # Sun C++ 4.2, 5.x and Centerline C++
10895 no_undefined_flag_CXX=' -zdefs'
10896 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10897 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10898 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10900 hardcode_libdir_flag_spec_CXX='-R$libdir'
10901 hardcode_shlibpath_var_CXX=no
10902 case $host_os in
10903 solaris2.0-5 | solaris2.0-5.*) ;;
10905 # The C++ compiler is used as linker so we must use $wl
10906 # flag to pass the commands to the underlying system
10907 # linker.
10908 # Supported since Solaris 2.6 (maybe 2.5.1?)
10909 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10911 esac
10912 link_all_deplibs_CXX=yes
10914 # Commands to make compiler produce verbose output that lists
10915 # what "hidden" libraries, object files and flags are used when
10916 # linking a shared library.
10918 # There doesn't appear to be a way to prevent this compiler from
10919 # explicitly linking system object files so we need to strip them
10920 # from the output so that they don't get included in the library
10921 # dependencies.
10922 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'
10924 # Archives containing C++ object files must be created using
10925 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10926 # necessary to make sure instantiated templates are included
10927 # in the archive.
10928 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10930 gcx)
10931 # Green Hills C++ Compiler
10932 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10934 # The C++ compiler must be used to create the archive.
10935 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10938 # GNU C++ compiler with Solaris linker
10939 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10940 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10941 if $CC --version | grep -v '^2\.7' > /dev/null; then
10942 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10943 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10944 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10946 # Commands to make compiler produce verbose output that lists
10947 # what "hidden" libraries, object files and flags are used when
10948 # linking a shared library.
10949 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10950 else
10951 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10952 # platform.
10953 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10954 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10955 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10957 # Commands to make compiler produce verbose output that lists
10958 # what "hidden" libraries, object files and flags are used when
10959 # linking a shared library.
10960 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10963 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10966 esac
10968 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10969 archive_cmds_need_lc_CXX=no
10971 tandem*)
10972 case $cc_basename in
10973 NCC)
10974 # NonStop-UX NCC 3.20
10975 # FIXME: insert proper C++ library support
10976 ld_shlibs_CXX=no
10979 # FIXME: insert proper C++ library support
10980 ld_shlibs_CXX=no
10982 esac
10984 vxworks*)
10985 # FIXME: insert proper C++ library support
10986 ld_shlibs_CXX=no
10989 # FIXME: insert proper C++ library support
10990 ld_shlibs_CXX=no
10992 esac
10993 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10994 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10995 test "$ld_shlibs_CXX" = no && can_build_shared=no
10997 GCC_CXX="$GXX"
10998 LD_CXX="$LD"
11000 ## CAVEAT EMPTOR:
11001 ## There is no encapsulation within the following macros, do not change
11002 ## the running order or otherwise move them around unless you know exactly
11003 ## what you are doing...
11005 cat > conftest.$ac_ext <<EOF
11006 class Foo
11008 public:
11009 Foo (void) { a = 0; }
11010 private:
11011 int a;
11015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11016 (eval $ac_compile) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; then
11020 # Parse the compiler output and extract the necessary
11021 # objects, libraries and library flags.
11023 # Sentinel used to keep track of whether or not we are before
11024 # the conftest object file.
11025 pre_test_object_deps_done=no
11027 # The `*' in the case matches for architectures that use `case' in
11028 # $output_verbose_cmd can trigger glob expansion during the loop
11029 # eval without this substitution.
11030 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11032 for p in `eval $output_verbose_link_cmd`; do
11033 case $p in
11035 -L* | -R* | -l*)
11036 # Some compilers place space between "-{L,R}" and the path.
11037 # Remove the space.
11038 if test $p = "-L" \
11039 || test $p = "-R"; then
11040 prev=$p
11041 continue
11042 else
11043 prev=
11046 if test "$pre_test_object_deps_done" = no; then
11047 case $p in
11048 -L* | -R*)
11049 # Internal compiler library paths should come after those
11050 # provided the user. The postdeps already come after the
11051 # user supplied libs so there is no need to process them.
11052 if test -z "$compiler_lib_search_path_CXX"; then
11053 compiler_lib_search_path_CXX="${prev}${p}"
11054 else
11055 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11058 # The "-l" case would never come before the object being
11059 # linked, so don't bother handling this case.
11060 esac
11061 else
11062 if test -z "$postdeps_CXX"; then
11063 postdeps_CXX="${prev}${p}"
11064 else
11065 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11070 *.$objext)
11071 # This assumes that the test object file only shows up
11072 # once in the compiler output.
11073 if test "$p" = "conftest.$objext"; then
11074 pre_test_object_deps_done=yes
11075 continue
11078 if test "$pre_test_object_deps_done" = no; then
11079 if test -z "$predep_objects_CXX"; then
11080 predep_objects_CXX="$p"
11081 else
11082 predep_objects_CXX="$predep_objects_CXX $p"
11084 else
11085 if test -z "$postdep_objects_CXX"; then
11086 postdep_objects_CXX="$p"
11087 else
11088 postdep_objects_CXX="$postdep_objects_CXX $p"
11093 *) ;; # Ignore the rest.
11095 esac
11096 done
11098 # Clean up.
11099 rm -f a.out a.exe
11100 else
11101 echo "libtool.m4: error: problem compiling CXX test program"
11104 $rm -f confest.$objext
11106 case " $postdeps_CXX " in
11107 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11108 esac
11110 lt_prog_compiler_wl_CXX=
11111 lt_prog_compiler_pic_CXX=
11112 lt_prog_compiler_static_CXX=
11114 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11115 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11117 # C++ specific cases for pic, static, wl, etc.
11118 if test "$GXX" = yes; then
11119 lt_prog_compiler_wl_CXX='-Wl,'
11120 lt_prog_compiler_static_CXX='-static'
11122 case $host_os in
11123 aix*)
11124 # All AIX code is PIC.
11125 if test "$host_cpu" = ia64; then
11126 # AIX 5 now supports IA64 processor
11127 lt_prog_compiler_static_CXX='-Bstatic'
11130 amigaos*)
11131 # FIXME: we need at least 68020 code to build shared libraries, but
11132 # adding the `-m68020' flag to GCC prevents building anything better,
11133 # like `-m68040'.
11134 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11136 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11137 # PIC is the default for these OSes.
11139 mingw* | os2* | pw32*)
11140 # This hack is so that the source file can tell whether it is being
11141 # built for inclusion in a dll (and should export symbols for example).
11142 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11144 darwin* | rhapsody*)
11145 # PIC is the default on this platform
11146 # Common symbols not allowed in MH_DYLIB files
11147 lt_prog_compiler_pic_CXX='-fno-common'
11149 *djgpp*)
11150 # DJGPP does not support shared libraries at all
11151 lt_prog_compiler_pic_CXX=
11153 sysv4*MP*)
11154 if test -d /usr/nec; then
11155 lt_prog_compiler_pic_CXX=-Kconform_pic
11158 hpux*)
11159 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11160 # not for PA HP-UX.
11161 case "$host_cpu" in
11162 hppa*64*|ia64*)
11165 lt_prog_compiler_pic_CXX='-fPIC'
11167 esac
11170 lt_prog_compiler_pic_CXX='-fPIC'
11172 esac
11173 else
11174 case $host_os in
11175 aix4* | aix5*)
11176 # All AIX code is PIC.
11177 if test "$host_cpu" = ia64; then
11178 # AIX 5 now supports IA64 processor
11179 lt_prog_compiler_static_CXX='-Bstatic'
11180 else
11181 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11184 chorus*)
11185 case $cc_basename in
11186 cxch68)
11187 # Green Hills C++ Compiler
11188 # _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"
11190 esac
11192 dgux*)
11193 case $cc_basename in
11194 ec++)
11195 lt_prog_compiler_pic_CXX='-KPIC'
11197 ghcx)
11198 # Green Hills C++ Compiler
11199 lt_prog_compiler_pic_CXX='-pic'
11203 esac
11205 freebsd*)
11206 # FreeBSD uses GNU C++
11208 hpux9* | hpux10* | hpux11*)
11209 case $cc_basename in
11211 lt_prog_compiler_wl_CXX='-Wl,'
11212 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11213 if test "$host_cpu" != ia64; then
11214 lt_prog_compiler_pic_CXX='+Z'
11217 aCC)
11218 lt_prog_compiler_wl_CXX='-Wl,'
11219 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11220 case "$host_cpu" in
11221 hppa*64*|ia64*)
11222 # +Z the default
11225 lt_prog_compiler_pic_CXX='+Z'
11227 esac
11231 esac
11233 irix5* | irix6* | nonstopux*)
11234 case $cc_basename in
11236 lt_prog_compiler_wl_CXX='-Wl,'
11237 lt_prog_compiler_static_CXX='-non_shared'
11238 # CC pic flag -KPIC is the default.
11242 esac
11244 linux*)
11245 case $cc_basename in
11246 KCC)
11247 # KAI C++ Compiler
11248 lt_prog_compiler_wl_CXX='--backend -Wl,'
11249 lt_prog_compiler_pic_CXX='-fPIC'
11251 icpc)
11252 # Intel C++
11253 lt_prog_compiler_wl_CXX='-Wl,'
11254 lt_prog_compiler_pic_CXX='-KPIC'
11255 lt_prog_compiler_static_CXX='-static'
11257 cxx)
11258 # Compaq C++
11259 # Make sure the PIC flag is empty. It appears that all Alpha
11260 # Linux and Compaq Tru64 Unix objects are PIC.
11261 lt_prog_compiler_pic_CXX=
11262 lt_prog_compiler_static_CXX='-non_shared'
11266 esac
11268 lynxos*)
11270 m88k*)
11272 mvs*)
11273 case $cc_basename in
11274 cxx)
11275 lt_prog_compiler_pic_CXX='-Wextra c,exportall'
11279 esac
11281 netbsd*)
11283 osf3* | osf4* | osf5*)
11284 case $cc_basename in
11285 KCC)
11286 lt_prog_compiler_wl_CXX='--backend -Wl,'
11288 RCC)
11289 # Rational C++ 2.4.1
11290 lt_prog_compiler_pic_CXX='-pic'
11292 cxx)
11293 # Digital/Compaq C++
11294 lt_prog_compiler_wl_CXX='-Wl,'
11295 # Make sure the PIC flag is empty. It appears that all Alpha
11296 # Linux and Compaq Tru64 Unix objects are PIC.
11297 lt_prog_compiler_pic_CXX=
11298 lt_prog_compiler_static_CXX='-non_shared'
11302 esac
11304 psos*)
11306 sco*)
11307 case $cc_basename in
11309 lt_prog_compiler_pic_CXX='-fPIC'
11313 esac
11315 solaris*)
11316 case $cc_basename in
11318 # Sun C++ 4.2, 5.x and Centerline C++
11319 lt_prog_compiler_pic_CXX='-KPIC'
11320 lt_prog_compiler_static_CXX='-Bstatic'
11321 lt_prog_compiler_wl_CXX='-Qoption ld '
11323 gcx)
11324 # Green Hills C++ Compiler
11325 lt_prog_compiler_pic_CXX='-PIC'
11329 esac
11331 sunos4*)
11332 case $cc_basename in
11334 # Sun C++ 4.x
11335 lt_prog_compiler_pic_CXX='-pic'
11336 lt_prog_compiler_static_CXX='-Bstatic'
11338 lcc)
11339 # Lucid
11340 lt_prog_compiler_pic_CXX='-pic'
11344 esac
11346 tandem*)
11347 case $cc_basename in
11348 NCC)
11349 # NonStop-UX NCC 3.20
11350 lt_prog_compiler_pic_CXX='-KPIC'
11354 esac
11356 unixware*)
11358 vxworks*)
11361 lt_prog_compiler_can_build_shared_CXX=no
11363 esac
11366 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11367 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11370 # Check to make sure the PIC flag actually works.
11372 if test -n "$lt_prog_compiler_pic_CXX"; then
11373 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11375 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 lt_prog_compiler_pic_works_CXX=no
11379 ac_outfile=conftest.$ac_objext
11380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11381 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11382 # Insert the option either (1) after the last *FLAGS variable, or
11383 # (2) before a word containing "conftest.", or (3) at the end.
11384 # Note that $ac_compile itself does not contain backslashes and begins
11385 # with a dollar sign (not a hyphen), so the echo should work correctly.
11386 # The option is referenced via a variable to avoid confusing sed.
11387 lt_compile=`echo "$ac_compile" | $SED \
11388 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11390 -e 's:$: $lt_compiler_flag:'`
11391 (eval echo "\"\$as_me:11391: $lt_compile\"" >&5)
11392 (eval "$lt_compile" 2>conftest.err)
11393 ac_status=$?
11394 cat conftest.err >&5
11395 echo "$as_me:11395: \$? = $ac_status" >&5
11396 if (exit $ac_status) && test -s "$ac_outfile"; then
11397 # The compiler can only warn and ignore the option if not recognized
11398 # So say no if there are warnings
11399 if test ! -s conftest.err; then
11400 lt_prog_compiler_pic_works_CXX=yes
11403 $rm conftest*
11406 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11407 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11409 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11410 case $lt_prog_compiler_pic_CXX in
11411 "" | " "*) ;;
11412 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11413 esac
11414 else
11415 lt_prog_compiler_pic_CXX=
11416 lt_prog_compiler_can_build_shared_CXX=no
11420 case "$host_os" in
11421 # For platforms which do not support PIC, -DPIC is meaningless:
11422 *djgpp*)
11423 lt_prog_compiler_pic_CXX=
11426 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11428 esac
11430 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11431 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11432 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435 lt_cv_prog_compiler_c_o_CXX=no
11436 $rm -r conftest 2>/dev/null
11437 mkdir conftest
11438 cd conftest
11439 mkdir out
11440 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11442 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11443 # that will create temporary files in the current directory regardless of
11444 # the output directory. Thus, making CWD read-only will cause this test
11445 # to fail, enabling locking or at least warning the user not to do parallel
11446 # builds.
11447 chmod -w .
11449 lt_compiler_flag="-o out/conftest2.$ac_objext"
11450 # Insert the option either (1) after the last *FLAGS variable, or
11451 # (2) before a word containing "conftest.", or (3) at the end.
11452 # Note that $ac_compile itself does not contain backslashes and begins
11453 # with a dollar sign (not a hyphen), so the echo should work correctly.
11454 lt_compile=`echo "$ac_compile" | $SED \
11455 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11457 -e 's:$: $lt_compiler_flag:'`
11458 (eval echo "\"\$as_me:11458: $lt_compile\"" >&5)
11459 (eval "$lt_compile" 2>out/conftest.err)
11460 ac_status=$?
11461 cat out/conftest.err >&5
11462 echo "$as_me:11462: \$? = $ac_status" >&5
11463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11464 then
11465 # The compiler can only warn and ignore the option if not recognized
11466 # So say no if there are warnings
11467 if test ! -s out/conftest.err; then
11468 lt_cv_prog_compiler_c_o_CXX=yes
11471 chmod u+w .
11472 $rm conftest* out/*
11473 rmdir out
11474 cd ..
11475 rmdir conftest
11476 $rm conftest*
11479 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11480 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11483 hard_links="nottested"
11484 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11485 # do not overwrite the value of need_locks provided by the user
11486 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11487 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11488 hard_links=yes
11489 $rm conftest*
11490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11491 touch conftest.a
11492 ln conftest.a conftest.b 2>&5 || hard_links=no
11493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11494 echo "$as_me:$LINENO: result: $hard_links" >&5
11495 echo "${ECHO_T}$hard_links" >&6
11496 if test "$hard_links" = no; then
11497 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11498 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11499 need_locks=warn
11501 else
11502 need_locks=no
11505 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11506 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11508 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11509 case $host_os in
11510 aix4* | aix5*)
11511 # If we're using GNU nm, then we don't want the "-C" option.
11512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11513 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11514 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'
11515 else
11516 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'
11519 pw32*)
11520 export_symbols_cmds_CXX="$ltdll_cmds"
11522 cygwin* | mingw*)
11523 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11526 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11528 esac
11530 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11531 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11532 test "$ld_shlibs_CXX" = no && can_build_shared=no
11534 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11535 if test "$GCC" = yes; then
11536 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11540 # Do we need to explicitly link libc?
11542 case "x$archive_cmds_need_lc_CXX" in
11543 x|xyes)
11544 # Assume -lc should be added
11545 archive_cmds_need_lc_CXX=yes
11547 if test "$enable_shared" = yes && test "$GCC" = yes; then
11548 case $archive_cmds_CXX in
11549 *'~'*)
11550 # FIXME: we may have to deal with multi-command sequences.
11552 '$CC '*)
11553 # Test whether the compiler implicitly links with -lc since on some
11554 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11555 # to ld, don't add -lc before -lgcc.
11556 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11557 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11558 $rm conftest*
11559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562 (eval $ac_compile) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } 2>conftest.err; then
11566 soname=conftest
11567 lib=conftest
11568 libobjs=conftest.$ac_objext
11569 deplibs=
11570 wl=$lt_prog_compiler_wl_CXX
11571 compiler_flags=-v
11572 linker_flags=-v
11573 verstring=
11574 output_objdir=.
11575 libname=conftest
11576 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11577 allow_undefined_flag_CXX=
11578 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11579 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }
11583 then
11584 archive_cmds_need_lc_CXX=no
11585 else
11586 archive_cmds_need_lc_CXX=yes
11588 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11589 else
11590 cat conftest.err 1>&5
11592 $rm conftest*
11593 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11594 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11596 esac
11599 esac
11601 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11602 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11603 hardcode_action_CXX=
11604 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11605 test -n "$runpath_var CXX" || \
11606 test "X$hardcode_automatic_CXX"="Xyes" ; then
11608 # We can hardcode non-existant directories.
11609 if test "$hardcode_direct_CXX" != no &&
11610 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11611 # have to relink, otherwise we might link with an installed library
11612 # when we should be linking with a yet-to-be-installed one
11613 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11614 test "$hardcode_minus_L_CXX" != no; then
11615 # Linking always hardcodes the temporary library directory.
11616 hardcode_action_CXX=relink
11617 else
11618 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11619 hardcode_action_CXX=immediate
11621 else
11622 # We cannot hardcode anything, or else we can only hardcode existing
11623 # directories.
11624 hardcode_action_CXX=unsupported
11626 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11627 echo "${ECHO_T}$hardcode_action_CXX" >&6
11629 if test "$hardcode_action_CXX" = relink; then
11630 # Fast installation is not supported
11631 enable_fast_install=no
11632 elif test "$shlibpath_overrides_runpath" = yes ||
11633 test "$enable_shared" = no; then
11634 # Fast installation is not necessary
11635 enable_fast_install=needless
11638 striplib=
11639 old_striplib=
11640 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11641 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11642 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11645 echo "$as_me:$LINENO: result: yes" >&5
11646 echo "${ECHO_T}yes" >&6
11647 else
11648 # FIXME - insert some real tests, host_os isn't really good enough
11649 case $host_os in
11650 darwin*)
11651 if test -n "$STRIP" ; then
11652 striplib="$STRIP -x"
11653 echo "$as_me:$LINENO: result: yes" >&5
11654 echo "${ECHO_T}yes" >&6
11655 else
11656 echo "$as_me:$LINENO: result: no" >&5
11657 echo "${ECHO_T}no" >&6
11661 echo "$as_me:$LINENO: result: no" >&5
11662 echo "${ECHO_T}no" >&6
11664 esac
11667 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11669 library_names_spec=
11670 libname_spec='lib$name'
11671 soname_spec=
11672 shrext=".so"
11673 postinstall_cmds=
11674 postuninstall_cmds=
11675 finish_cmds=
11676 finish_eval=
11677 shlibpath_var=
11678 shlibpath_overrides_runpath=unknown
11679 version_type=none
11680 dynamic_linker="$host_os ld.so"
11681 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11682 if test "$GCC" = yes; then
11683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11684 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11685 # if the path contains ";" then we assume it to be the separator
11686 # otherwise default to the standard path separator (i.e. ":") - it is
11687 # assumed that no part of a normal pathname contains ";" but that should
11688 # okay in the real world where ";" in dirpaths is itself problematic.
11689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11690 else
11691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11693 else
11694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11696 need_lib_prefix=unknown
11697 hardcode_into_libs=no
11699 # when you set need_version to no, make sure it does not cause -set_version
11700 # flags to be left without arguments
11701 need_version=unknown
11703 case $host_os in
11704 aix3*)
11705 version_type=linux
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11707 shlibpath_var=LIBPATH
11709 # AIX 3 has no versioning support, so we append a major version to the name.
11710 soname_spec='${libname}${release}${shared_ext}$major'
11713 aix4* | aix5*)
11714 version_type=linux
11715 need_lib_prefix=no
11716 need_version=no
11717 hardcode_into_libs=yes
11718 if test "$host_cpu" = ia64; then
11719 # AIX 5 supports IA64
11720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 else
11723 # With GCC up to 2.95.x, collect2 would create an import file
11724 # for dependence libraries. The import file would start with
11725 # the line `#! .'. This would cause the generated library to
11726 # depend on `.', always an invalid library. This was fixed in
11727 # development snapshots of GCC prior to 3.0.
11728 case $host_os in
11729 aix4 | aix4.[01] | aix4.[01].*)
11730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11731 echo ' yes '
11732 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11734 else
11735 can_build_shared=no
11738 esac
11739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11740 # soname into executable. Probably we can add versioning support to
11741 # collect2, so additional links can be useful in future.
11742 if test "$aix_use_runtimelinking" = yes; then
11743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11744 # instead of lib<name>.a to let people know that these are not
11745 # typical AIX shared libraries.
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 else
11748 # We preserve .a as extension for shared libraries through AIX4.2
11749 # and later when we are not doing run time linking.
11750 library_names_spec='${libname}${release}.a $libname.a'
11751 soname_spec='${libname}${release}${shared_ext}$major'
11753 shlibpath_var=LIBPATH
11757 amigaos*)
11758 library_names_spec='$libname.ixlibrary $libname.a'
11759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11760 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'
11763 beos*)
11764 library_names_spec='${libname}${shared_ext}'
11765 dynamic_linker="$host_os ld.so"
11766 shlibpath_var=LIBRARY_PATH
11769 bsdi4*)
11770 version_type=linux
11771 need_version=no
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11778 # the default ld.so.conf also contains /usr/contrib/lib and
11779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11780 # libtool to hard-code these into programs
11783 cygwin* | mingw* | pw32*)
11784 version_type=windows
11785 shrext=".dll"
11786 need_version=no
11787 need_lib_prefix=no
11789 case $GCC,$host_os in
11790 yes,cygwin* | yes,mingw* | yes,pw32*)
11791 library_names_spec='$libname.dll.a'
11792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11793 postinstall_cmds='base_file=`basename \${file}`~
11794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11795 dldir=$destdir/`dirname \$dlpath`~
11796 test -d \$dldir || mkdir -p \$dldir~
11797 $install_prog $dir/$dlname \$dldir/$dlname'
11798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11799 dlpath=$dir/\$dldll~
11800 $rm \$dlpath'
11801 shlibpath_overrides_runpath=yes
11803 case $host_os in
11804 cygwin*)
11805 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11806 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11807 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11809 mingw*)
11810 # MinGW DLLs use traditional 'lib' prefix
11811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11812 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11813 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11814 # It is most probably a Windows format PATH printed by
11815 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11816 # path with ; separators, and with drive letters. We can handle the
11817 # drive letters (cygwin fileutils understands them), so leave them,
11818 # especially as we might pass files found there to a mingw objdump,
11819 # which wouldn't understand a cygwinified path. Ahh.
11820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11821 else
11822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11825 pw32*)
11826 # pw32 DLLs use 'pw' prefix rather than 'lib'
11827 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11829 esac
11833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11835 esac
11836 dynamic_linker='Win32 ld.exe'
11837 # FIXME: first we should search . and the directory the executable is in
11838 shlibpath_var=PATH
11841 darwin* | rhapsody*)
11842 dynamic_linker="$host_os dyld"
11843 version_type=darwin
11844 need_lib_prefix=no
11845 need_version=no
11846 # FIXME: Relying on posixy $() will cause problems for
11847 # cross-compilation, but unfortunately the echo tests do not
11848 # yet detect zsh echo's removal of \ escapes.
11849 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11850 soname_spec='${libname}${release}${major}$shared_ext'
11851 shlibpath_overrides_runpath=yes
11852 shlibpath_var=DYLD_LIBRARY_PATH
11853 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11854 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11855 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11856 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"`
11858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11861 dgux*)
11862 version_type=linux
11863 need_lib_prefix=no
11864 need_version=no
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 shlibpath_var=LD_LIBRARY_PATH
11870 freebsd1*)
11871 dynamic_linker=no
11874 freebsd*)
11875 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11876 version_type=freebsd-$objformat
11877 case $version_type in
11878 freebsd-elf*)
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11880 need_version=no
11881 need_lib_prefix=no
11883 freebsd-*)
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11885 need_version=yes
11887 esac
11888 shlibpath_var=LD_LIBRARY_PATH
11889 case $host_os in
11890 freebsd2*)
11891 shlibpath_overrides_runpath=yes
11893 freebsd3.01* | freebsdelf3.01*)
11894 shlibpath_overrides_runpath=yes
11895 hardcode_into_libs=yes
11897 *) # from 3.2 on
11898 shlibpath_overrides_runpath=no
11899 hardcode_into_libs=yes
11901 esac
11904 gnu*)
11905 version_type=linux
11906 need_lib_prefix=no
11907 need_version=no
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 hardcode_into_libs=yes
11914 hpux9* | hpux10* | hpux11*)
11915 # Give a soname corresponding to the major version so that dld.sl refuses to
11916 # link against other versions.
11917 version_type=sunos
11918 need_lib_prefix=no
11919 need_version=no
11920 case "$host_cpu" in
11921 ia64*)
11922 shrext='.so'
11923 hardcode_into_libs=yes
11924 dynamic_linker="$host_os dld.so"
11925 shlibpath_var=LD_LIBRARY_PATH
11926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928 soname_spec='${libname}${release}${shared_ext}$major'
11929 if test "X$HPUX_IA64_MODE" = X32; then
11930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11931 else
11932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11936 hppa*64*)
11937 shrext='.sl'
11938 hardcode_into_libs=yes
11939 dynamic_linker="$host_os dld.sl"
11940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943 soname_spec='${libname}${release}${shared_ext}$major'
11944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11948 shrext='.sl'
11949 dynamic_linker="$host_os dld.sl"
11950 shlibpath_var=SHLIB_PATH
11951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953 soname_spec='${libname}${release}${shared_ext}$major'
11955 esac
11956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11957 postinstall_cmds='chmod 555 $lib'
11960 irix5* | irix6* | nonstopux*)
11961 case $host_os in
11962 nonstopux*) version_type=nonstopux ;;
11964 if test "$lt_cv_prog_gnu_ld" = yes; then
11965 version_type=linux
11966 else
11967 version_type=irix
11968 fi ;;
11969 esac
11970 need_lib_prefix=no
11971 need_version=no
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11974 case $host_os in
11975 irix5* | nonstopux*)
11976 libsuff= shlibsuff=
11979 case $LD in # libtool.m4 will add one of these switches to LD
11980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11981 libsuff= shlibsuff= libmagic=32-bit;;
11982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11983 libsuff=32 shlibsuff=N32 libmagic=N32;;
11984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11986 *) libsuff= shlibsuff= libmagic=never-match;;
11987 esac
11989 esac
11990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11991 shlibpath_overrides_runpath=no
11992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11994 hardcode_into_libs=yes
11997 # No shared lib support for Linux oldld, aout, or coff.
11998 linux*oldld* | linux*aout* | linux*coff*)
11999 dynamic_linker=no
12002 # This must be Linux ELF.
12003 linux*)
12004 version_type=linux
12005 need_lib_prefix=no
12006 need_version=no
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008 soname_spec='${libname}${release}${shared_ext}$major'
12009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12010 shlibpath_var=LD_LIBRARY_PATH
12011 shlibpath_overrides_runpath=no
12012 # This implies no fast_install, which is unacceptable.
12013 # Some rework will be needed to allow for fast_install
12014 # before this can be enabled.
12015 hardcode_into_libs=yes
12017 # We used to test for /lib/ld.so.1 and disable shared libraries on
12018 # powerpc, because MkLinux only supported shared libraries with the
12019 # GNU dynamic linker. Since this was broken with cross compilers,
12020 # most powerpc-linux boxes support dynamic linking these days and
12021 # people can always --disable-shared, the test was removed, and we
12022 # assume the GNU/Linux dynamic linker is in use.
12023 dynamic_linker='GNU/Linux ld.so'
12026 netbsd*)
12027 version_type=sunos
12028 need_lib_prefix=no
12029 need_version=no
12030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12033 dynamic_linker='NetBSD (a.out) ld.so'
12034 else
12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12036 soname_spec='${libname}${release}${shared_ext}$major'
12037 dynamic_linker='NetBSD ld.elf_so'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=yes
12041 hardcode_into_libs=yes
12044 newsos6)
12045 version_type=linux
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath=yes
12051 nto-qnx)
12052 version_type=linux
12053 need_lib_prefix=no
12054 need_version=no
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 shlibpath_var=LD_LIBRARY_PATH
12058 shlibpath_overrides_runpath=yes
12061 openbsd*)
12062 version_type=sunos
12063 need_lib_prefix=no
12064 need_version=no
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12069 case $host_os in
12070 openbsd2.[89] | openbsd2.[89].*)
12071 shlibpath_overrides_runpath=no
12074 shlibpath_overrides_runpath=yes
12076 esac
12077 else
12078 shlibpath_overrides_runpath=yes
12082 os2*)
12083 libname_spec='$name'
12084 shrext=".dll"
12085 need_lib_prefix=no
12086 library_names_spec='$libname${shared_ext} $libname.a'
12087 dynamic_linker='OS/2 ld.exe'
12088 shlibpath_var=LIBPATH
12091 osf3* | osf4* | osf5*)
12092 version_type=osf
12093 need_lib_prefix=no
12094 need_version=no
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 shlibpath_var=LD_LIBRARY_PATH
12098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12102 sco3.2v5*)
12103 version_type=osf
12104 soname_spec='${libname}${release}${shared_ext}$major'
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 shlibpath_var=LD_LIBRARY_PATH
12109 solaris*)
12110 version_type=linux
12111 need_lib_prefix=no
12112 need_version=no
12113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114 soname_spec='${libname}${release}${shared_ext}$major'
12115 shlibpath_var=LD_LIBRARY_PATH
12116 shlibpath_overrides_runpath=yes
12117 hardcode_into_libs=yes
12118 # ldd complains unless libraries are executable
12119 postinstall_cmds='chmod +x $lib'
12122 sunos4*)
12123 version_type=sunos
12124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12125 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 shlibpath_overrides_runpath=yes
12128 if test "$with_gnu_ld" = yes; then
12129 need_lib_prefix=no
12131 need_version=yes
12134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12135 version_type=linux
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12137 soname_spec='${libname}${release}${shared_ext}$major'
12138 shlibpath_var=LD_LIBRARY_PATH
12139 case $host_vendor in
12140 sni)
12141 shlibpath_overrides_runpath=no
12142 need_lib_prefix=no
12143 export_dynamic_flag_spec='${wl}-Blargedynsym'
12144 runpath_var=LD_RUN_PATH
12146 siemens)
12147 need_lib_prefix=no
12149 motorola)
12150 need_lib_prefix=no
12151 need_version=no
12152 shlibpath_overrides_runpath=no
12153 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12155 esac
12158 sysv4*MP*)
12159 if test -d /usr/nec ;then
12160 version_type=linux
12161 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12162 soname_spec='$libname${shared_ext}.$major'
12163 shlibpath_var=LD_LIBRARY_PATH
12167 uts4*)
12168 version_type=linux
12169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12170 soname_spec='${libname}${release}${shared_ext}$major'
12171 shlibpath_var=LD_LIBRARY_PATH
12175 dynamic_linker=no
12177 esac
12178 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12179 echo "${ECHO_T}$dynamic_linker" >&6
12180 test "$dynamic_linker" = no && can_build_shared=no
12182 if test "x$enable_dlopen" != xyes; then
12183 enable_dlopen=unknown
12184 enable_dlopen_self=unknown
12185 enable_dlopen_self_static=unknown
12186 else
12187 lt_cv_dlopen=no
12188 lt_cv_dlopen_libs=
12190 case $host_os in
12191 beos*)
12192 lt_cv_dlopen="load_add_on"
12193 lt_cv_dlopen_libs=
12194 lt_cv_dlopen_self=yes
12197 mingw* | pw32*)
12198 lt_cv_dlopen="LoadLibrary"
12199 lt_cv_dlopen_libs=
12202 cygwin*)
12203 lt_cv_dlopen="dlopen"
12204 lt_cv_dlopen_libs=
12207 darwin*)
12208 # if libdl is installed we need to link against it
12209 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214 ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-ldl $LIBS"
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12223 /* Override any gcc2 internal prototype to avoid an error. */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 /* We use char because int might match the return type of a gcc2
12228 builtin and then its argument prototype would still apply. */
12229 char dlopen ();
12231 main ()
12233 dlopen ();
12235 return 0;
12237 _ACEOF
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12240 (eval $ac_link) 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest$ac_exeext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 ac_cv_lib_dl_dlopen=yes
12260 else
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12264 ac_cv_lib_dl_dlopen=no
12266 rm -f conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_lib_save_LIBS
12270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12271 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12272 if test $ac_cv_lib_dl_dlopen = yes; then
12273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12274 else
12276 lt_cv_dlopen="dyld"
12277 lt_cv_dlopen_libs=
12278 lt_cv_dlopen_self=yes
12285 echo "$as_me:$LINENO: checking for shl_load" >&5
12286 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12287 if test "${ac_cv_func_shl_load+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12298 #define shl_load innocuous_shl_load
12300 /* System header to define __stub macros and hopefully few prototypes,
12301 which can conflict with char shl_load (); below.
12302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12303 <limits.h> exists even on freestanding compilers. */
12305 #ifdef __STDC__
12306 # include <limits.h>
12307 #else
12308 # include <assert.h>
12309 #endif
12311 #undef shl_load
12313 /* Override any gcc2 internal prototype to avoid an error. */
12314 #ifdef __cplusplus
12315 extern "C"
12317 #endif
12318 /* We use char because int might match the return type of a gcc2
12319 builtin and then its argument prototype would still apply. */
12320 char shl_load ();
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12325 choke me
12326 #else
12327 char (*f) () = shl_load;
12328 #endif
12329 #ifdef __cplusplus
12331 #endif
12334 main ()
12336 return f != shl_load;
12338 return 0;
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343 (eval $ac_link) 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_func_shl_load=yes
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_cv_func_shl_load=no
12369 rm -f conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12372 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12373 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12374 if test $ac_cv_func_shl_load = yes; then
12375 lt_cv_dlopen="shl_load"
12376 else
12377 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12378 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12379 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 ac_check_lib_save_LIBS=$LIBS
12383 LIBS="-ldld $LIBS"
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h. */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12391 /* Override any gcc2 internal prototype to avoid an error. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 /* We use char because int might match the return type of a gcc2
12396 builtin and then its argument prototype would still apply. */
12397 char shl_load ();
12399 main ()
12401 shl_load ();
12403 return 0;
12405 _ACEOF
12406 rm -f conftest.$ac_objext conftest$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408 (eval $ac_link) 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_lib_dld_shl_load=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_dld_shl_load=no
12434 rm -f conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12436 LIBS=$ac_check_lib_save_LIBS
12438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12439 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12440 if test $ac_cv_lib_dld_shl_load = yes; then
12441 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12442 else
12443 echo "$as_me:$LINENO: checking for dlopen" >&5
12444 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12445 if test "${ac_cv_func_dlopen+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h. */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12456 #define dlopen innocuous_dlopen
12458 /* System header to define __stub macros and hopefully few prototypes,
12459 which can conflict with char dlopen (); below.
12460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12461 <limits.h> exists even on freestanding compilers. */
12463 #ifdef __STDC__
12464 # include <limits.h>
12465 #else
12466 # include <assert.h>
12467 #endif
12469 #undef dlopen
12471 /* Override any gcc2 internal prototype to avoid an error. */
12472 #ifdef __cplusplus
12473 extern "C"
12475 #endif
12476 /* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
12478 char dlopen ();
12479 /* The GNU C library defines this for functions which it implements
12480 to always fail with ENOSYS. Some functions are actually named
12481 something starting with __ and the normal name is an alias. */
12482 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12483 choke me
12484 #else
12485 char (*f) () = dlopen;
12486 #endif
12487 #ifdef __cplusplus
12489 #endif
12492 main ()
12494 return f != dlopen;
12496 return 0;
12498 _ACEOF
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12501 (eval $ac_link) 2>conftest.er1
12502 ac_status=$?
12503 grep -v '^ *+' conftest.er1 >conftest.err
12504 rm -f conftest.er1
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
12508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; } &&
12514 { ac_try='test -s conftest$ac_exeext'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 ac_cv_func_dlopen=yes
12521 else
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12525 ac_cv_func_dlopen=no
12527 rm -f conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
12530 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12531 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12532 if test $ac_cv_func_dlopen = yes; then
12533 lt_cv_dlopen="dlopen"
12534 else
12535 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12536 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12537 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 else
12540 ac_check_lib_save_LIBS=$LIBS
12541 LIBS="-ldl $LIBS"
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 /* We use char because int might match the return type of a gcc2
12554 builtin and then its argument prototype would still apply. */
12555 char dlopen ();
12557 main ()
12559 dlopen ();
12561 return 0;
12563 _ACEOF
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
12573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 ac_cv_lib_dl_dlopen=yes
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 ac_cv_lib_dl_dlopen=no
12592 rm -f conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
12594 LIBS=$ac_check_lib_save_LIBS
12596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12598 if test $ac_cv_lib_dl_dlopen = yes; then
12599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12600 else
12601 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606 ac_check_lib_save_LIBS=$LIBS
12607 LIBS="-lsvld $LIBS"
12608 cat >conftest.$ac_ext <<_ACEOF
12609 /* confdefs.h. */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12615 /* Override any gcc2 internal prototype to avoid an error. */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 /* We use char because int might match the return type of a gcc2
12620 builtin and then its argument prototype would still apply. */
12621 char dlopen ();
12623 main ()
12625 dlopen ();
12627 return 0;
12629 _ACEOF
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12632 (eval $ac_link) 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_lib_svld_dlopen=yes
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 ac_cv_lib_svld_dlopen=no
12658 rm -f conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 LIBS=$ac_check_lib_save_LIBS
12662 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12663 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12664 if test $ac_cv_lib_svld_dlopen = yes; then
12665 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12666 else
12667 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12668 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12669 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 ac_check_lib_save_LIBS=$LIBS
12673 LIBS="-ldld $LIBS"
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h. */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12681 /* Override any gcc2 internal prototype to avoid an error. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 /* We use char because int might match the return type of a gcc2
12686 builtin and then its argument prototype would still apply. */
12687 char dld_link ();
12689 main ()
12691 dld_link ();
12693 return 0;
12695 _ACEOF
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12698 (eval $ac_link) 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_lib_dld_dld_link=yes
12718 else
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_cv_lib_dld_dld_link=no
12724 rm -f conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12728 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12729 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12730 if test $ac_cv_lib_dld_dld_link = yes; then
12731 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12750 esac
12752 if test "x$lt_cv_dlopen" != xno; then
12753 enable_dlopen=yes
12754 else
12755 enable_dlopen=no
12758 case $lt_cv_dlopen in
12759 dlopen)
12760 save_CPPFLAGS="$CPPFLAGS"
12761 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12763 save_LDFLAGS="$LDFLAGS"
12764 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12766 save_LIBS="$LIBS"
12767 LIBS="$lt_cv_dlopen_libs $LIBS"
12769 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12770 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12771 if test "${lt_cv_dlopen_self+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774 if test "$cross_compiling" = yes; then :
12775 lt_cv_dlopen_self=cross
12776 else
12777 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12778 lt_status=$lt_dlunknown
12779 cat > conftest.$ac_ext <<EOF
12780 #line 12780 "configure"
12781 #include "confdefs.h"
12783 #if HAVE_DLFCN_H
12784 #include <dlfcn.h>
12785 #endif
12787 #include <stdio.h>
12789 #ifdef RTLD_GLOBAL
12790 # define LT_DLGLOBAL RTLD_GLOBAL
12791 #else
12792 # ifdef DL_GLOBAL
12793 # define LT_DLGLOBAL DL_GLOBAL
12794 # else
12795 # define LT_DLGLOBAL 0
12796 # endif
12797 #endif
12799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12800 find out it does not work in some platform. */
12801 #ifndef LT_DLLAZY_OR_NOW
12802 # ifdef RTLD_LAZY
12803 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12804 # else
12805 # ifdef DL_LAZY
12806 # define LT_DLLAZY_OR_NOW DL_LAZY
12807 # else
12808 # ifdef RTLD_NOW
12809 # define LT_DLLAZY_OR_NOW RTLD_NOW
12810 # else
12811 # ifdef DL_NOW
12812 # define LT_DLLAZY_OR_NOW DL_NOW
12813 # else
12814 # define LT_DLLAZY_OR_NOW 0
12815 # endif
12816 # endif
12817 # endif
12818 # endif
12819 #endif
12821 #ifdef __cplusplus
12822 extern "C" void exit (int);
12823 #endif
12825 void fnord() { int i=42;}
12826 int main ()
12828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12829 int status = $lt_dlunknown;
12831 if (self)
12833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12834 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12835 /* dlclose (self); */
12838 exit (status);
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842 (eval $ac_link) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12846 (./conftest; exit; ) 2>/dev/null
12847 lt_status=$?
12848 case x$lt_status in
12849 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12850 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12851 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12852 esac
12853 else :
12854 # compilation failed
12855 lt_cv_dlopen_self=no
12858 rm -fr conftest*
12862 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12863 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12865 if test "x$lt_cv_dlopen_self" = xyes; then
12866 LDFLAGS="$LDFLAGS $link_static_flag"
12867 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12868 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12869 if test "${lt_cv_dlopen_self_static+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872 if test "$cross_compiling" = yes; then :
12873 lt_cv_dlopen_self_static=cross
12874 else
12875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12876 lt_status=$lt_dlunknown
12877 cat > conftest.$ac_ext <<EOF
12878 #line 12878 "configure"
12879 #include "confdefs.h"
12881 #if HAVE_DLFCN_H
12882 #include <dlfcn.h>
12883 #endif
12885 #include <stdio.h>
12887 #ifdef RTLD_GLOBAL
12888 # define LT_DLGLOBAL RTLD_GLOBAL
12889 #else
12890 # ifdef DL_GLOBAL
12891 # define LT_DLGLOBAL DL_GLOBAL
12892 # else
12893 # define LT_DLGLOBAL 0
12894 # endif
12895 #endif
12897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12898 find out it does not work in some platform. */
12899 #ifndef LT_DLLAZY_OR_NOW
12900 # ifdef RTLD_LAZY
12901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12902 # else
12903 # ifdef DL_LAZY
12904 # define LT_DLLAZY_OR_NOW DL_LAZY
12905 # else
12906 # ifdef RTLD_NOW
12907 # define LT_DLLAZY_OR_NOW RTLD_NOW
12908 # else
12909 # ifdef DL_NOW
12910 # define LT_DLLAZY_OR_NOW DL_NOW
12911 # else
12912 # define LT_DLLAZY_OR_NOW 0
12913 # endif
12914 # endif
12915 # endif
12916 # endif
12917 #endif
12919 #ifdef __cplusplus
12920 extern "C" void exit (int);
12921 #endif
12923 void fnord() { int i=42;}
12924 int main ()
12926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12927 int status = $lt_dlunknown;
12929 if (self)
12931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12933 /* dlclose (self); */
12936 exit (status);
12939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12940 (eval $ac_link) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12944 (./conftest; exit; ) 2>/dev/null
12945 lt_status=$?
12946 case x$lt_status in
12947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12949 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12950 esac
12951 else :
12952 # compilation failed
12953 lt_cv_dlopen_self_static=no
12956 rm -fr conftest*
12960 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12961 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12964 CPPFLAGS="$save_CPPFLAGS"
12965 LDFLAGS="$save_LDFLAGS"
12966 LIBS="$save_LIBS"
12968 esac
12970 case $lt_cv_dlopen_self in
12971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12972 *) enable_dlopen_self=unknown ;;
12973 esac
12975 case $lt_cv_dlopen_self_static in
12976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12977 *) enable_dlopen_self_static=unknown ;;
12978 esac
12982 # The else clause should only fire when bootstrapping the
12983 # libtool distribution, otherwise you forgot to ship ltmain.sh
12984 # with your package, and you will get complaints that there are
12985 # no rules to generate ltmain.sh.
12986 if test -f "$ltmain"; then
12987 # See if we are running on zsh, and set the options which allow our commands through
12988 # without removal of \ escapes.
12989 if test -n "${ZSH_VERSION+set}" ; then
12990 setopt NO_GLOB_SUBST
12992 # Now quote all the things that may contain metacharacters while being
12993 # careful not to overquote the AC_SUBSTed values. We take copies of the
12994 # variables and quote the copies for generation of the libtool script.
12995 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12998 deplibs_check_method reload_flag reload_cmds need_locks \
12999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13000 lt_cv_sys_global_symbol_to_c_name_address \
13001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13002 old_postinstall_cmds old_postuninstall_cmds \
13003 compiler_CXX \
13004 CC_CXX \
13005 LD_CXX \
13006 lt_prog_compiler_wl_CXX \
13007 lt_prog_compiler_pic_CXX \
13008 lt_prog_compiler_static_CXX \
13009 lt_prog_compiler_no_builtin_flag_CXX \
13010 export_dynamic_flag_spec_CXX \
13011 thread_safe_flag_spec_CXX \
13012 whole_archive_flag_spec_CXX \
13013 enable_shared_with_static_runtimes_CXX \
13014 old_archive_cmds_CXX \
13015 old_archive_from_new_cmds_CXX \
13016 predep_objects_CXX \
13017 postdep_objects_CXX \
13018 predeps_CXX \
13019 postdeps_CXX \
13020 compiler_lib_search_path_CXX \
13021 archive_cmds_CXX \
13022 archive_expsym_cmds_CXX \
13023 postinstall_cmds_CXX \
13024 postuninstall_cmds_CXX \
13025 old_archive_from_expsyms_cmds_CXX \
13026 allow_undefined_flag_CXX \
13027 no_undefined_flag_CXX \
13028 export_symbols_cmds_CXX \
13029 hardcode_libdir_flag_spec_CXX \
13030 hardcode_libdir_flag_spec_ld_CXX \
13031 hardcode_libdir_separator_CXX \
13032 hardcode_automatic_CXX \
13033 module_cmds_CXX \
13034 module_expsym_cmds_CXX \
13035 lt_cv_prog_compiler_c_o_CXX \
13036 exclude_expsyms_CXX \
13037 include_expsyms_CXX; do
13039 case $var in
13040 old_archive_cmds_CXX | \
13041 old_archive_from_new_cmds_CXX | \
13042 archive_cmds_CXX | \
13043 archive_expsym_cmds_CXX | \
13044 module_cmds_CXX | \
13045 module_expsym_cmds_CXX | \
13046 old_archive_from_expsyms_cmds_CXX | \
13047 export_symbols_cmds_CXX | \
13048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13049 postinstall_cmds | postuninstall_cmds | \
13050 old_postinstall_cmds | old_postuninstall_cmds | \
13051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13052 # Double-quote double-evaled strings.
13053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13058 esac
13059 done
13061 case $lt_echo in
13062 *'\$0 --fallback-echo"')
13063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13065 esac
13067 cfgfile="$ofile"
13069 cat <<__EOF__ >> "$cfgfile"
13070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13074 # Shell to use when invoking shell scripts.
13075 SHELL=$lt_SHELL
13077 # Whether or not to build shared libraries.
13078 build_libtool_libs=$enable_shared
13080 # Whether or not to build static libraries.
13081 build_old_libs=$enable_static
13083 # Whether or not to add -lc for building shared libraries.
13084 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13086 # Whether or not to disallow shared libs when runtime libs are static
13087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13089 # Whether or not to optimize for fast installation.
13090 fast_install=$enable_fast_install
13092 # The host system.
13093 host_alias=$host_alias
13094 host=$host
13096 # An echo program that does not interpret backslashes.
13097 echo=$lt_echo
13099 # The archiver.
13100 AR=$lt_AR
13101 AR_FLAGS=$lt_AR_FLAGS
13103 # A C compiler.
13104 LTCC=$lt_LTCC
13106 # A language-specific compiler.
13107 CC=$lt_compiler_CXX
13109 # Is the compiler the GNU C compiler?
13110 with_gcc=$GCC_CXX
13112 # An ERE matcher.
13113 EGREP=$lt_EGREP
13115 # The linker used to build libraries.
13116 LD=$lt_LD_CXX
13118 # Whether we need hard or soft links.
13119 LN_S=$lt_LN_S
13121 # A BSD-compatible nm program.
13122 NM=$lt_NM
13124 # A symbol stripping program
13125 STRIP=$STRIP
13127 # Used to examine libraries when file_magic_cmd begins "file"
13128 MAGIC_CMD=$MAGIC_CMD
13130 # Used on cygwin: DLL creation program.
13131 DLLTOOL="$DLLTOOL"
13133 # Used on cygwin: object dumper.
13134 OBJDUMP="$OBJDUMP"
13136 # Used on cygwin: assembler.
13137 AS="$AS"
13139 # The name of the directory that contains temporary libtool files.
13140 objdir=$objdir
13142 # How to create reloadable object files.
13143 reload_flag=$lt_reload_flag
13144 reload_cmds=$lt_reload_cmds
13146 # How to pass a linker flag through the compiler.
13147 wl=$lt_lt_prog_compiler_wl_CXX
13149 # Object file suffix (normally "o").
13150 objext="$ac_objext"
13152 # Old archive suffix (normally "a").
13153 libext="$libext"
13155 # Shared library suffix (normally ".so").
13156 shrext='$shrext'
13158 # Executable file suffix (normally "").
13159 exeext="$exeext"
13161 # Additional compiler flags for building library objects.
13162 pic_flag=$lt_lt_prog_compiler_pic_CXX
13163 pic_mode=$pic_mode
13165 # What is the maximum length of a command?
13166 max_cmd_len=$lt_cv_sys_max_cmd_len
13168 # Does compiler simultaneously support -c and -o options?
13169 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13171 # Must we lock files when doing compilation ?
13172 need_locks=$lt_need_locks
13174 # Do we need the lib prefix for modules?
13175 need_lib_prefix=$need_lib_prefix
13177 # Do we need a version for libraries?
13178 need_version=$need_version
13180 # Whether dlopen is supported.
13181 dlopen_support=$enable_dlopen
13183 # Whether dlopen of programs is supported.
13184 dlopen_self=$enable_dlopen_self
13186 # Whether dlopen of statically linked programs is supported.
13187 dlopen_self_static=$enable_dlopen_self_static
13189 # Compiler flag to prevent dynamic linking.
13190 link_static_flag=$lt_lt_prog_compiler_static_CXX
13192 # Compiler flag to turn off builtin functions.
13193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13195 # Compiler flag to allow reflexive dlopens.
13196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13198 # Compiler flag to generate shared objects directly from archives.
13199 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13201 # Compiler flag to generate thread-safe objects.
13202 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13204 # Library versioning type.
13205 version_type=$version_type
13207 # Format of library name prefix.
13208 libname_spec=$lt_libname_spec
13210 # List of archive names. First name is the real one, the rest are links.
13211 # The last name is the one that the linker finds with -lNAME.
13212 library_names_spec=$lt_library_names_spec
13214 # The coded name of the library, if different from the real name.
13215 soname_spec=$lt_soname_spec
13217 # Commands used to build and install an old-style archive.
13218 RANLIB=$lt_RANLIB
13219 old_archive_cmds=$lt_old_archive_cmds_CXX
13220 old_postinstall_cmds=$lt_old_postinstall_cmds
13221 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13223 # Create an old-style archive from a shared archive.
13224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13226 # Create a temporary old-style archive to link instead of a shared archive.
13227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13229 # Commands used to build and install a shared archive.
13230 archive_cmds=$lt_archive_cmds_CXX
13231 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13232 postinstall_cmds=$lt_postinstall_cmds
13233 postuninstall_cmds=$lt_postuninstall_cmds
13235 # Commands used to build a loadable module (assumed same as above if empty)
13236 module_cmds=$lt_module_cmds_CXX
13237 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13239 # Commands to strip libraries.
13240 old_striplib=$lt_old_striplib
13241 striplib=$lt_striplib
13243 # Dependencies to place before the objects being linked to create a
13244 # shared library.
13245 predep_objects=$lt_predep_objects_CXX
13247 # Dependencies to place after the objects being linked to create a
13248 # shared library.
13249 postdep_objects=$lt_postdep_objects_CXX
13251 # Dependencies to place before the objects being linked to create a
13252 # shared library.
13253 predeps=$lt_predeps_CXX
13255 # Dependencies to place after the objects being linked to create a
13256 # shared library.
13257 postdeps=$lt_postdeps_CXX
13259 # The library search path used internally by the compiler when linking
13260 # a shared library.
13261 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13263 # Method to check whether dependent libraries are shared objects.
13264 deplibs_check_method=$lt_deplibs_check_method
13266 # Command to use when deplibs_check_method == file_magic.
13267 file_magic_cmd=$lt_file_magic_cmd
13269 # Flag that allows shared libraries with undefined symbols to be built.
13270 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13272 # Flag that forces no undefined symbols.
13273 no_undefined_flag=$lt_no_undefined_flag_CXX
13275 # Commands used to finish a libtool library installation in a directory.
13276 finish_cmds=$lt_finish_cmds
13278 # Same as above, but a single script fragment to be evaled but not shown.
13279 finish_eval=$lt_finish_eval
13281 # Take the output of nm and produce a listing of raw symbols and C names.
13282 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13284 # Transform the output of nm in a proper C declaration
13285 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13287 # Transform the output of nm in a C name address pair
13288 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13290 # This is the shared library runtime path variable.
13291 runpath_var=$runpath_var
13293 # This is the shared library path variable.
13294 shlibpath_var=$shlibpath_var
13296 # Is shlibpath searched before the hard-coded library search path?
13297 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13299 # How to hardcode a shared library path into an executable.
13300 hardcode_action=$hardcode_action_CXX
13302 # Whether we should hardcode library paths into libraries.
13303 hardcode_into_libs=$hardcode_into_libs
13305 # Flag to hardcode \$libdir into a binary during linking.
13306 # This must work even if \$libdir does not exist.
13307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13309 # If ld is used when linking, flag to hardcode \$libdir into
13310 # a binary during linking. This must work even if \$libdir does
13311 # not exist.
13312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13314 # Whether we need a single -rpath flag with a separated argument.
13315 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13317 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13318 # resulting binary.
13319 hardcode_direct=$hardcode_direct_CXX
13321 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13322 # resulting binary.
13323 hardcode_minus_L=$hardcode_minus_L_CXX
13325 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13326 # the resulting binary.
13327 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13329 # Set to yes if building a shared library automatically hardcodes DIR into the library
13330 # and all subsequent libraries and executables linked against it.
13331 hardcode_automatic=$hardcode_automatic_CXX
13333 # Variables whose values should be saved in libtool wrapper scripts and
13334 # restored at relink time.
13335 variables_saved_for_relink="$variables_saved_for_relink"
13337 # Whether libtool must link a program against all its dependency libraries.
13338 link_all_deplibs=$link_all_deplibs_CXX
13340 # Compile-time system search path for libraries
13341 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13343 # Run-time system search path for libraries
13344 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13346 # Fix the shell variable \$srcfile for the compiler.
13347 fix_srcfile_path="$fix_srcfile_path_CXX"
13349 # Set to yes if exported symbols are required.
13350 always_export_symbols=$always_export_symbols_CXX
13352 # The commands to list exported symbols.
13353 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13355 # The commands to extract the exported symbol list from a shared archive.
13356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13358 # Symbols that should not be listed in the preloaded symbols.
13359 exclude_expsyms=$lt_exclude_expsyms_CXX
13361 # Symbols that must always be exported.
13362 include_expsyms=$lt_include_expsyms_CXX
13364 # ### END LIBTOOL TAG CONFIG: $tagname
13366 __EOF__
13369 else
13370 # If there is no Makefile yet, we rely on a make rule to execute
13371 # `config.status --recheck' to rerun these tests and create the
13372 # libtool script then.
13373 test -f Makefile && make "$ltmain"
13377 ac_ext=c
13378 ac_cpp='$CPP $CPPFLAGS'
13379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13383 CC=$lt_save_CC
13384 LDCXX=$LD
13385 LD=$lt_save_LD
13386 GCC=$lt_save_GCC
13387 with_gnu_ldcxx=$with_gnu_ld
13388 with_gnu_ld=$lt_save_with_gnu_ld
13389 lt_cv_path_LDCXX=$lt_cv_path_LD
13390 lt_cv_path_LD=$lt_save_path_LD
13391 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13392 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13394 else
13395 tagname=""
13399 F77)
13400 if test -n "$F77" && test "X$F77" != "Xno"; then
13402 ac_ext=f
13403 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13404 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13405 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13408 archive_cmds_need_lc_F77=no
13409 allow_undefined_flag_F77=
13410 always_export_symbols_F77=no
13411 archive_expsym_cmds_F77=
13412 export_dynamic_flag_spec_F77=
13413 hardcode_direct_F77=no
13414 hardcode_libdir_flag_spec_F77=
13415 hardcode_libdir_flag_spec_ld_F77=
13416 hardcode_libdir_separator_F77=
13417 hardcode_minus_L_F77=no
13418 hardcode_automatic_F77=no
13419 module_cmds_F77=
13420 module_expsym_cmds_F77=
13421 link_all_deplibs_F77=unknown
13422 old_archive_cmds_F77=$old_archive_cmds
13423 no_undefined_flag_F77=
13424 whole_archive_flag_spec_F77=
13425 enable_shared_with_static_runtimes_F77=no
13427 # Source file extension for f77 test sources.
13428 ac_ext=f
13430 # Object file extension for compiled f77 test sources.
13431 objext=o
13432 objext_F77=$objext
13434 # Code to be used in simple compile tests
13435 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13437 # Code to be used in simple link tests
13438 lt_simple_link_test_code=" program t\n end\n"
13440 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13442 # If no C compiler was specified, use CC.
13443 LTCC=${LTCC-"$CC"}
13445 # Allow CC to be a program name with arguments.
13446 compiler=$CC
13449 # Allow CC to be a program name with arguments.
13450 lt_save_CC="$CC"
13451 CC=${F77-"f77"}
13452 compiler=$CC
13453 compiler_F77=$CC
13454 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13456 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13457 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13458 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13459 echo "${ECHO_T}$can_build_shared" >&6
13461 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13462 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13463 test "$can_build_shared" = "no" && enable_shared=no
13465 # On AIX, shared libraries and static libraries use the same namespace, and
13466 # are all built from PIC.
13467 case "$host_os" in
13468 aix3*)
13469 test "$enable_shared" = yes && enable_static=no
13470 if test -n "$RANLIB"; then
13471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13472 postinstall_cmds='$RANLIB $lib'
13475 aix4*)
13476 test "$enable_shared" = yes && enable_static=no
13478 esac
13479 echo "$as_me:$LINENO: result: $enable_shared" >&5
13480 echo "${ECHO_T}$enable_shared" >&6
13482 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13483 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13484 # Make sure either enable_shared or enable_static is yes.
13485 test "$enable_shared" = yes || enable_static=yes
13486 echo "$as_me:$LINENO: result: $enable_static" >&5
13487 echo "${ECHO_T}$enable_static" >&6
13489 test "$ld_shlibs_F77" = no && can_build_shared=no
13491 GCC_F77="$G77"
13492 LD_F77="$LD"
13494 lt_prog_compiler_wl_F77=
13495 lt_prog_compiler_pic_F77=
13496 lt_prog_compiler_static_F77=
13498 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13501 if test "$GCC" = yes; then
13502 lt_prog_compiler_wl_F77='-Wl,'
13503 lt_prog_compiler_static_F77='-static'
13505 case $host_os in
13506 aix*)
13507 # All AIX code is PIC.
13508 if test "$host_cpu" = ia64; then
13509 # AIX 5 now supports IA64 processor
13510 lt_prog_compiler_static_F77='-Bstatic'
13514 amigaos*)
13515 # FIXME: we need at least 68020 code to build shared libraries, but
13516 # adding the `-m68020' flag to GCC prevents building anything better,
13517 # like `-m68040'.
13518 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13521 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13522 # PIC is the default for these OSes.
13525 mingw* | pw32* | os2*)
13526 # This hack is so that the source file can tell whether it is being
13527 # built for inclusion in a dll (and should export symbols for example).
13528 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13531 darwin* | rhapsody*)
13532 # PIC is the default on this platform
13533 # Common symbols not allowed in MH_DYLIB files
13534 lt_prog_compiler_pic_F77='-fno-common'
13537 msdosdjgpp*)
13538 # Just because we use GCC doesn't mean we suddenly get shared libraries
13539 # on systems that don't support them.
13540 lt_prog_compiler_can_build_shared_F77=no
13541 enable_shared=no
13544 sysv4*MP*)
13545 if test -d /usr/nec; then
13546 lt_prog_compiler_pic_F77=-Kconform_pic
13550 hpux*)
13551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13552 # not for PA HP-UX.
13553 case "$host_cpu" in
13554 hppa*64*|ia64*)
13555 # +Z the default
13558 lt_prog_compiler_pic_F77='-fPIC'
13560 esac
13564 lt_prog_compiler_pic_F77='-fPIC'
13566 esac
13567 else
13568 # PORTME Check for flag to pass linker flags through the system compiler.
13569 case $host_os in
13570 aix*)
13571 lt_prog_compiler_wl_F77='-Wl,'
13572 if test "$host_cpu" = ia64; then
13573 # AIX 5 now supports IA64 processor
13574 lt_prog_compiler_static_F77='-Bstatic'
13575 else
13576 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13580 mingw* | pw32* | os2*)
13581 # This hack is so that the source file can tell whether it is being
13582 # built for inclusion in a dll (and should export symbols for example).
13583 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13586 hpux9* | hpux10* | hpux11*)
13587 lt_prog_compiler_wl_F77='-Wl,'
13588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13589 # not for PA HP-UX.
13590 case "$host_cpu" in
13591 hppa*64*|ia64*)
13592 # +Z the default
13595 lt_prog_compiler_pic_F77='+Z'
13597 esac
13598 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13599 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13602 irix5* | irix6* | nonstopux*)
13603 lt_prog_compiler_wl_F77='-Wl,'
13604 # PIC (with -KPIC) is the default.
13605 lt_prog_compiler_static_F77='-non_shared'
13608 newsos6)
13609 lt_prog_compiler_pic_F77='-KPIC'
13610 lt_prog_compiler_static_F77='-Bstatic'
13613 linux*)
13614 case $CC in
13615 icc|ecc)
13616 lt_prog_compiler_wl_F77='-Wl,'
13617 lt_prog_compiler_pic_F77='-KPIC'
13618 lt_prog_compiler_static_F77='-static'
13620 ccc)
13621 lt_prog_compiler_wl_F77='-Wl,'
13622 # All Alpha code is PIC.
13623 lt_prog_compiler_static_F77='-non_shared'
13625 esac
13628 osf3* | osf4* | osf5*)
13629 lt_prog_compiler_wl_F77='-Wl,'
13630 # All OSF/1 code is PIC.
13631 lt_prog_compiler_static_F77='-non_shared'
13634 sco3.2v5*)
13635 lt_prog_compiler_pic_F77='-Kpic'
13636 lt_prog_compiler_static_F77='-dn'
13639 solaris*)
13640 lt_prog_compiler_wl_F77='-Wl,'
13641 lt_prog_compiler_pic_F77='-KPIC'
13642 lt_prog_compiler_static_F77='-Bstatic'
13645 sunos4*)
13646 lt_prog_compiler_wl_F77='-Qoption ld '
13647 lt_prog_compiler_pic_F77='-PIC'
13648 lt_prog_compiler_static_F77='-Bstatic'
13651 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13652 lt_prog_compiler_wl_F77='-Wl,'
13653 lt_prog_compiler_pic_F77='-KPIC'
13654 lt_prog_compiler_static_F77='-Bstatic'
13657 sysv4*MP*)
13658 if test -d /usr/nec ;then
13659 lt_prog_compiler_pic_F77='-Kconform_pic'
13660 lt_prog_compiler_static_F77='-Bstatic'
13664 uts4*)
13665 lt_prog_compiler_pic_F77='-pic'
13666 lt_prog_compiler_static_F77='-Bstatic'
13670 lt_prog_compiler_can_build_shared_F77=no
13672 esac
13675 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13676 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13679 # Check to make sure the PIC flag actually works.
13681 if test -n "$lt_prog_compiler_pic_F77"; then
13682 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13683 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13684 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 else
13687 lt_prog_compiler_pic_works_F77=no
13688 ac_outfile=conftest.$ac_objext
13689 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13690 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13691 # Insert the option either (1) after the last *FLAGS variable, or
13692 # (2) before a word containing "conftest.", or (3) at the end.
13693 # Note that $ac_compile itself does not contain backslashes and begins
13694 # with a dollar sign (not a hyphen), so the echo should work correctly.
13695 # The option is referenced via a variable to avoid confusing sed.
13696 lt_compile=`echo "$ac_compile" | $SED \
13697 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13699 -e 's:$: $lt_compiler_flag:'`
13700 (eval echo "\"\$as_me:13700: $lt_compile\"" >&5)
13701 (eval "$lt_compile" 2>conftest.err)
13702 ac_status=$?
13703 cat conftest.err >&5
13704 echo "$as_me:13704: \$? = $ac_status" >&5
13705 if (exit $ac_status) && test -s "$ac_outfile"; then
13706 # The compiler can only warn and ignore the option if not recognized
13707 # So say no if there are warnings
13708 if test ! -s conftest.err; then
13709 lt_prog_compiler_pic_works_F77=yes
13712 $rm conftest*
13715 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13716 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13718 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13719 case $lt_prog_compiler_pic_F77 in
13720 "" | " "*) ;;
13721 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13722 esac
13723 else
13724 lt_prog_compiler_pic_F77=
13725 lt_prog_compiler_can_build_shared_F77=no
13729 case "$host_os" in
13730 # For platforms which do not support PIC, -DPIC is meaningless:
13731 *djgpp*)
13732 lt_prog_compiler_pic_F77=
13735 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13737 esac
13739 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13741 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 else
13744 lt_cv_prog_compiler_c_o_F77=no
13745 $rm -r conftest 2>/dev/null
13746 mkdir conftest
13747 cd conftest
13748 mkdir out
13749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13751 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13752 # that will create temporary files in the current directory regardless of
13753 # the output directory. Thus, making CWD read-only will cause this test
13754 # to fail, enabling locking or at least warning the user not to do parallel
13755 # builds.
13756 chmod -w .
13758 lt_compiler_flag="-o out/conftest2.$ac_objext"
13759 # Insert the option either (1) after the last *FLAGS variable, or
13760 # (2) before a word containing "conftest.", or (3) at the end.
13761 # Note that $ac_compile itself does not contain backslashes and begins
13762 # with a dollar sign (not a hyphen), so the echo should work correctly.
13763 lt_compile=`echo "$ac_compile" | $SED \
13764 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13766 -e 's:$: $lt_compiler_flag:'`
13767 (eval echo "\"\$as_me:13767: $lt_compile\"" >&5)
13768 (eval "$lt_compile" 2>out/conftest.err)
13769 ac_status=$?
13770 cat out/conftest.err >&5
13771 echo "$as_me:13771: \$? = $ac_status" >&5
13772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13773 then
13774 # The compiler can only warn and ignore the option if not recognized
13775 # So say no if there are warnings
13776 if test ! -s out/conftest.err; then
13777 lt_cv_prog_compiler_c_o_F77=yes
13780 chmod u+w .
13781 $rm conftest* out/*
13782 rmdir out
13783 cd ..
13784 rmdir conftest
13785 $rm conftest*
13788 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13789 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13792 hard_links="nottested"
13793 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13794 # do not overwrite the value of need_locks provided by the user
13795 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13796 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13797 hard_links=yes
13798 $rm conftest*
13799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13800 touch conftest.a
13801 ln conftest.a conftest.b 2>&5 || hard_links=no
13802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13803 echo "$as_me:$LINENO: result: $hard_links" >&5
13804 echo "${ECHO_T}$hard_links" >&6
13805 if test "$hard_links" = no; then
13806 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13807 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13808 need_locks=warn
13810 else
13811 need_locks=no
13814 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13817 runpath_var=
13818 allow_undefined_flag_F77=
13819 enable_shared_with_static_runtimes_F77=no
13820 archive_cmds_F77=
13821 archive_expsym_cmds_F77=
13822 old_archive_From_new_cmds_F77=
13823 old_archive_from_expsyms_cmds_F77=
13824 export_dynamic_flag_spec_F77=
13825 whole_archive_flag_spec_F77=
13826 thread_safe_flag_spec_F77=
13827 hardcode_libdir_flag_spec_F77=
13828 hardcode_libdir_flag_spec_ld_F77=
13829 hardcode_libdir_separator_F77=
13830 hardcode_direct_F77=no
13831 hardcode_minus_L_F77=no
13832 hardcode_shlibpath_var_F77=unsupported
13833 link_all_deplibs_F77=unknown
13834 hardcode_automatic_F77=no
13835 module_cmds_F77=
13836 module_expsym_cmds_F77=
13837 always_export_symbols_F77=no
13838 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13839 # include_expsyms should be a list of space-separated symbols to be *always*
13840 # included in the symbol list
13841 include_expsyms_F77=
13842 # exclude_expsyms can be an extended regexp of symbols to exclude
13843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13845 # as well as any symbol that contains `d'.
13846 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13848 # platforms (ab)use it in PIC code, but their linkers get confused if
13849 # the symbol is explicitly referenced. Since portable code cannot
13850 # rely on this symbol name, it's probably fine to never include it in
13851 # preloaded symbol tables.
13852 extract_expsyms_cmds=
13854 case $host_os in
13855 cygwin* | mingw* | pw32*)
13856 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13857 # When not using gcc, we currently assume that we are using
13858 # Microsoft Visual C++.
13859 if test "$GCC" != yes; then
13860 with_gnu_ld=no
13863 openbsd*)
13864 with_gnu_ld=no
13866 esac
13868 ld_shlibs_F77=yes
13869 if test "$with_gnu_ld" = yes; then
13870 # If archive_cmds runs LD, not CC, wlarc should be empty
13871 wlarc='${wl}'
13873 # See if GNU ld supports shared libraries.
13874 case $host_os in
13875 aix3* | aix4* | aix5*)
13876 # On AIX/PPC, the GNU linker is very broken
13877 if test "$host_cpu" != ia64; then
13878 ld_shlibs_F77=no
13879 cat <<EOF 1>&2
13881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13882 *** to be unable to reliably create shared libraries on AIX.
13883 *** Therefore, libtool is disabling shared libraries support. If you
13884 *** really care for shared libraries, you may want to modify your PATH
13885 *** so that a non-GNU linker is found, and then restart.
13891 amigaos*)
13892 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13893 hardcode_libdir_flag_spec_F77='-L$libdir'
13894 hardcode_minus_L_F77=yes
13896 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13897 # that the semantics of dynamic libraries on AmigaOS, at least up
13898 # to version 4, is to share data among multiple programs linked
13899 # with the same dynamic library. Since this doesn't match the
13900 # behavior of shared libraries on other platforms, we can't use
13901 # them.
13902 ld_shlibs_F77=no
13905 beos*)
13906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13907 allow_undefined_flag_F77=unsupported
13908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13909 # support --undefined. This deserves some investigation. FIXME
13910 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911 else
13912 ld_shlibs_F77=no
13916 cygwin* | mingw* | pw32*)
13917 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13918 # as there is no search path for DLLs.
13919 hardcode_libdir_flag_spec_F77='-L$libdir'
13920 allow_undefined_flag_F77=unsupported
13921 always_export_symbols_F77=no
13922 enable_shared_with_static_runtimes_F77=yes
13923 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13925 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13926 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13927 # If the export-symbols file already is a .def file (1st line
13928 # is EXPORTS), use it as is; otherwise, prepend...
13929 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13930 cp $export_symbols $output_objdir/$soname.def;
13931 else
13932 echo EXPORTS > $output_objdir/$soname.def;
13933 cat $export_symbols >> $output_objdir/$soname.def;
13935 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13936 else
13937 ld_shlibs=no
13941 netbsd*)
13942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13943 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13944 wlarc=
13945 else
13946 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13947 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13951 solaris* | sysv5*)
13952 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13953 ld_shlibs_F77=no
13954 cat <<EOF 1>&2
13956 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13957 *** create shared libraries on Solaris systems. Therefore, libtool
13958 *** is disabling shared libraries support. We urge you to upgrade GNU
13959 *** binutils to release 2.9.1 or newer. Another option is to modify
13960 *** your PATH or compiler configuration so that the native linker is
13961 *** used, and then restart.
13964 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13965 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13967 else
13968 ld_shlibs_F77=no
13972 sunos4*)
13973 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13974 wlarc=
13975 hardcode_direct_F77=yes
13976 hardcode_shlibpath_var_F77=no
13980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13981 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13982 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13983 else
13984 ld_shlibs_F77=no
13987 esac
13989 if test "$ld_shlibs_F77" = yes; then
13990 runpath_var=LD_RUN_PATH
13991 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13992 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13993 # ancient GNU ld didn't support --whole-archive et. al.
13994 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13995 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13996 else
13997 whole_archive_flag_spec_F77=
14000 else
14001 # PORTME fill in a description of your system's linker (not GNU ld)
14002 case $host_os in
14003 aix3*)
14004 allow_undefined_flag_F77=unsupported
14005 always_export_symbols_F77=yes
14006 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14007 # Note: this linker hardcodes the directories in LIBPATH if there
14008 # are no directories specified by -L.
14009 hardcode_minus_L_F77=yes
14010 if test "$GCC" = yes && test -z "$link_static_flag"; then
14011 # Neither direct hardcoding nor static linking is supported with a
14012 # broken collect2.
14013 hardcode_direct_F77=unsupported
14017 aix4* | aix5*)
14018 if test "$host_cpu" = ia64; then
14019 # On IA64, the linker does run time linking by default, so we don't
14020 # have to do anything special.
14021 aix_use_runtimelinking=no
14022 exp_sym_flag='-Bexport'
14023 no_entry_flag=""
14024 else
14025 # If we're using GNU nm, then we don't want the "-C" option.
14026 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14027 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14028 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'
14029 else
14030 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'
14032 aix_use_runtimelinking=no
14034 # Test if we are trying to use run time linking or normal
14035 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14036 # need to do runtime linking.
14037 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14038 for ld_flag in $LDFLAGS; do
14039 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14040 aix_use_runtimelinking=yes
14041 break
14043 done
14044 esac
14046 exp_sym_flag='-bexport'
14047 no_entry_flag='-bnoentry'
14050 # When large executables or shared objects are built, AIX ld can
14051 # have problems creating the table of contents. If linking a library
14052 # or program results in "error TOC overflow" add -mminimal-toc to
14053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14056 archive_cmds_F77=''
14057 hardcode_direct_F77=yes
14058 hardcode_libdir_separator_F77=':'
14059 link_all_deplibs_F77=yes
14061 if test "$GCC" = yes; then
14062 case $host_os in aix4.012|aix4.012.*)
14063 # We only want to do this on AIX 4.2 and lower, the check
14064 # below for broken collect2 doesn't work under 4.3+
14065 collect2name=`${CC} -print-prog-name=collect2`
14066 if test -f "$collect2name" && \
14067 strings "$collect2name" | grep resolve_lib_name >/dev/null
14068 then
14069 # We have reworked collect2
14070 hardcode_direct_F77=yes
14071 else
14072 # We have old collect2
14073 hardcode_direct_F77=unsupported
14074 # It fails to find uninstalled libraries when the uninstalled
14075 # path is not listed in the libpath. Setting hardcode_minus_L
14076 # to unsupported forces relinking
14077 hardcode_minus_L_F77=yes
14078 hardcode_libdir_flag_spec_F77='-L$libdir'
14079 hardcode_libdir_separator_F77=
14081 esac
14082 shared_flag='-shared'
14083 else
14084 # not using gcc
14085 if test "$host_cpu" = ia64; then
14086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14087 # chokes on -Wl,-G. The following line is correct:
14088 shared_flag='-G'
14089 else
14090 if test "$aix_use_runtimelinking" = yes; then
14091 shared_flag='${wl}-G'
14092 else
14093 shared_flag='${wl}-bM:SRE'
14098 # It seems that -bexpall does not export symbols beginning with
14099 # underscore (_), so it is better to generate a list of symbols to export.
14100 always_export_symbols_F77=yes
14101 if test "$aix_use_runtimelinking" = yes; then
14102 # Warning - without using the other runtime loading flags (-brtl),
14103 # -berok will link without error, but may produce a broken library.
14104 allow_undefined_flag_F77='-berok'
14105 # Determine the default libpath from the value encoded in an empty executable.
14106 cat >conftest.$ac_ext <<_ACEOF
14107 program main
14110 _ACEOF
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest$ac_exeext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14135 # Check for a 64-bit object if we didn't find anything.
14136 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; }
14137 }'`; fi
14138 else
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14143 rm -f conftest.err conftest.$ac_objext \
14144 conftest$ac_exeext conftest.$ac_ext
14145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14147 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14148 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"
14149 else
14150 if test "$host_cpu" = ia64; then
14151 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14152 allow_undefined_flag_F77="-z nodefs"
14153 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"
14154 else
14155 # Determine the default libpath from the value encoded in an empty executable.
14156 cat >conftest.$ac_ext <<_ACEOF
14157 program main
14160 _ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14185 # Check for a 64-bit object if we didn't find anything.
14186 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; }
14187 }'`; fi
14188 else
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14193 rm -f conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14197 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14198 # Warning - without using the other run time loading flags,
14199 # -berok will link without error, but may produce a broken library.
14200 no_undefined_flag_F77=' ${wl}-bernotok'
14201 allow_undefined_flag_F77=' ${wl}-berok'
14202 # -bexpall does not export symbols beginning with underscore (_)
14203 always_export_symbols_F77=yes
14204 # Exported symbols can be pulled into shared objects from archives
14205 whole_archive_flag_spec_F77=' '
14206 archive_cmds_need_lc_F77=yes
14207 # This is similar to how AIX traditionally builds it's shared libraries.
14208 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14213 amigaos*)
14214 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14215 hardcode_libdir_flag_spec_F77='-L$libdir'
14216 hardcode_minus_L_F77=yes
14217 # see comment about different semantics on the GNU ld section
14218 ld_shlibs_F77=no
14221 bsdi4*)
14222 export_dynamic_flag_spec_F77=-rdynamic
14225 cygwin* | mingw* | pw32*)
14226 # When not using gcc, we currently assume that we are using
14227 # Microsoft Visual C++.
14228 # hardcode_libdir_flag_spec is actually meaningless, as there is
14229 # no search path for DLLs.
14230 hardcode_libdir_flag_spec_F77=' '
14231 allow_undefined_flag_F77=unsupported
14232 # Tell ltmain to make .lib files, not .a files.
14233 libext=lib
14234 # Tell ltmain to make .dll files, not .so files.
14235 shrext=".dll"
14236 # FIXME: Setting linknames here is a bad hack.
14237 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14238 # The linker will automatically build a .lib file if we build a DLL.
14239 old_archive_From_new_cmds_F77='true'
14240 # FIXME: Should let the user specify the lib program.
14241 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14242 fix_srcfile_path='`cygpath -w "$srcfile"`'
14243 enable_shared_with_static_runtimes_F77=yes
14246 darwin* | rhapsody*)
14247 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14248 archive_cmds_need_lc_F77=no
14249 case "$host_os" in
14250 rhapsody* | darwin1.[012])
14251 allow_undefined_flag_F77='-undefined suppress'
14253 *) # Darwin 1.3 on
14254 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14256 esac
14257 # FIXME: Relying on posixy $() will cause problems for
14258 # cross-compilation, but unfortunately the echo tests do not
14259 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14260 # `"' quotes if we put them in here... so don't!
14261 lt_int_apple_cc_single_mod=no
14262 output_verbose_link_cmd='echo'
14263 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14264 lt_int_apple_cc_single_mod=yes
14266 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14267 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14268 else
14269 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14271 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14272 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14273 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14274 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14275 else
14276 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14278 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14279 hardcode_direct_F77=no
14280 hardcode_automatic_F77=yes
14281 hardcode_shlibpath_var_F77=unsupported
14282 whole_archive_flag_spec_F77='-all_load $convenience'
14283 link_all_deplibs_F77=yes
14287 dgux*)
14288 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14289 hardcode_libdir_flag_spec_F77='-L$libdir'
14290 hardcode_shlibpath_var_F77=no
14293 freebsd1*)
14294 ld_shlibs_F77=no
14297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14298 # support. Future versions do this automatically, but an explicit c++rt0.o
14299 # does not break anything, and helps significantly (at the cost of a little
14300 # extra space).
14301 freebsd2.2*)
14302 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14303 hardcode_libdir_flag_spec_F77='-R$libdir'
14304 hardcode_direct_F77=yes
14305 hardcode_shlibpath_var_F77=no
14308 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14309 freebsd2*)
14310 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_direct_F77=yes
14312 hardcode_minus_L_F77=yes
14313 hardcode_shlibpath_var_F77=no
14316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14317 freebsd*)
14318 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14319 hardcode_libdir_flag_spec_F77='-R$libdir'
14320 hardcode_direct_F77=yes
14321 hardcode_shlibpath_var_F77=no
14324 hpux9*)
14325 if test "$GCC" = yes; then
14326 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14327 else
14328 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14330 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14331 hardcode_libdir_separator_F77=:
14332 hardcode_direct_F77=yes
14334 # hardcode_minus_L: Not really in the search PATH,
14335 # but as the default location of the library.
14336 hardcode_minus_L_F77=yes
14337 export_dynamic_flag_spec_F77='${wl}-E'
14340 hpux10* | hpux11*)
14341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14342 case "$host_cpu" in
14343 hppa*64*|ia64*)
14344 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14347 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14349 esac
14350 else
14351 case "$host_cpu" in
14352 hppa*64*|ia64*)
14353 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14356 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14358 esac
14360 if test "$with_gnu_ld" = no; then
14361 case "$host_cpu" in
14362 hppa*64*)
14363 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14364 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14365 hardcode_libdir_separator_F77=:
14366 hardcode_direct_F77=no
14367 hardcode_shlibpath_var_F77=no
14369 ia64*)
14370 hardcode_libdir_flag_spec_F77='-L$libdir'
14371 hardcode_direct_F77=no
14372 hardcode_shlibpath_var_F77=no
14374 # hardcode_minus_L: Not really in the search PATH,
14375 # but as the default location of the library.
14376 hardcode_minus_L_F77=yes
14379 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14380 hardcode_libdir_separator_F77=:
14381 hardcode_direct_F77=yes
14382 export_dynamic_flag_spec_F77='${wl}-E'
14384 # hardcode_minus_L: Not really in the search PATH,
14385 # but as the default location of the library.
14386 hardcode_minus_L_F77=yes
14388 esac
14392 irix5* | irix6* | nonstopux*)
14393 if test "$GCC" = yes; then
14394 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'
14395 else
14396 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'
14397 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14399 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14400 hardcode_libdir_separator_F77=:
14401 link_all_deplibs_F77=yes
14404 netbsd*)
14405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14406 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14407 else
14408 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14410 hardcode_libdir_flag_spec_F77='-R$libdir'
14411 hardcode_direct_F77=yes
14412 hardcode_shlibpath_var_F77=no
14415 newsos6)
14416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14417 hardcode_direct_F77=yes
14418 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14419 hardcode_libdir_separator_F77=:
14420 hardcode_shlibpath_var_F77=no
14423 openbsd*)
14424 hardcode_direct_F77=yes
14425 hardcode_shlibpath_var_F77=no
14426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14427 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14428 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14429 export_dynamic_flag_spec_F77='${wl}-E'
14430 else
14431 case $host_os in
14432 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14433 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14434 hardcode_libdir_flag_spec_F77='-R$libdir'
14437 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14438 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14440 esac
14444 os2*)
14445 hardcode_libdir_flag_spec_F77='-L$libdir'
14446 hardcode_minus_L_F77=yes
14447 allow_undefined_flag_F77=unsupported
14448 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14449 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14452 osf3*)
14453 if test "$GCC" = yes; then
14454 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14455 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'
14456 else
14457 allow_undefined_flag_F77=' -expect_unresolved \*'
14458 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'
14460 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14461 hardcode_libdir_separator_F77=:
14464 osf4* | osf5*) # as osf3* with the addition of -msym flag
14465 if test "$GCC" = yes; then
14466 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14467 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'
14468 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14469 else
14470 allow_undefined_flag_F77=' -expect_unresolved \*'
14471 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'
14472 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~
14473 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14475 # Both c and cxx compiler support -rpath directly
14476 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14478 hardcode_libdir_separator_F77=:
14481 sco3.2v5*)
14482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14483 hardcode_shlibpath_var_F77=no
14484 export_dynamic_flag_spec_F77='${wl}-Bexport'
14485 runpath_var=LD_RUN_PATH
14486 hardcode_runpath_var=yes
14489 solaris*)
14490 no_undefined_flag_F77=' -z text'
14491 if test "$GCC" = yes; then
14492 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14495 else
14496 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14500 hardcode_libdir_flag_spec_F77='-R$libdir'
14501 hardcode_shlibpath_var_F77=no
14502 case $host_os in
14503 solaris2.[0-5] | solaris2.[0-5].*) ;;
14504 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14505 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14506 esac
14507 link_all_deplibs_F77=yes
14510 sunos4*)
14511 if test "x$host_vendor" = xsequent; then
14512 # Use $CC to link under sequent, because it throws in some extra .o
14513 # files that make .init and .fini sections work.
14514 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14515 else
14516 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14518 hardcode_libdir_flag_spec_F77='-L$libdir'
14519 hardcode_direct_F77=yes
14520 hardcode_minus_L_F77=yes
14521 hardcode_shlibpath_var_F77=no
14524 sysv4)
14525 case $host_vendor in
14526 sni)
14527 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14528 hardcode_direct_F77=yes # is this really true???
14530 siemens)
14531 ## LD is ld it makes a PLAMLIB
14532 ## CC just makes a GrossModule.
14533 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14534 reload_cmds_F77='$CC -r -o $output$reload_objs'
14535 hardcode_direct_F77=no
14537 motorola)
14538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14541 esac
14542 runpath_var='LD_RUN_PATH'
14543 hardcode_shlibpath_var_F77=no
14546 sysv4.3*)
14547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14548 hardcode_shlibpath_var_F77=no
14549 export_dynamic_flag_spec_F77='-Bexport'
14552 sysv4*MP*)
14553 if test -d /usr/nec; then
14554 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14555 hardcode_shlibpath_var_F77=no
14556 runpath_var=LD_RUN_PATH
14557 hardcode_runpath_var=yes
14558 ld_shlibs_F77=yes
14562 sysv4.2uw2*)
14563 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14564 hardcode_direct_F77=yes
14565 hardcode_minus_L_F77=no
14566 hardcode_shlibpath_var_F77=no
14567 hardcode_runpath_var=yes
14568 runpath_var=LD_RUN_PATH
14571 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14572 no_undefined_flag_F77='${wl}-z ${wl}text'
14573 if test "$GCC" = yes; then
14574 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14575 else
14576 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14578 runpath_var='LD_RUN_PATH'
14579 hardcode_shlibpath_var_F77=no
14582 sysv5*)
14583 no_undefined_flag_F77=' -z text'
14584 # $CC -shared without GNU ld will not create a library from C++
14585 # object files and a static libstdc++, better avoid it by now
14586 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14587 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14589 hardcode_libdir_flag_spec_F77=
14590 hardcode_shlibpath_var_F77=no
14591 runpath_var='LD_RUN_PATH'
14594 uts4*)
14595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14596 hardcode_libdir_flag_spec_F77='-L$libdir'
14597 hardcode_shlibpath_var_F77=no
14601 ld_shlibs_F77=no
14603 esac
14606 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14607 echo "${ECHO_T}$ld_shlibs_F77" >&6
14608 test "$ld_shlibs_F77" = no && can_build_shared=no
14610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14611 if test "$GCC" = yes; then
14612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14616 # Do we need to explicitly link libc?
14618 case "x$archive_cmds_need_lc_F77" in
14619 x|xyes)
14620 # Assume -lc should be added
14621 archive_cmds_need_lc_F77=yes
14623 if test "$enable_shared" = yes && test "$GCC" = yes; then
14624 case $archive_cmds_F77 in
14625 *'~'*)
14626 # FIXME: we may have to deal with multi-command sequences.
14628 '$CC '*)
14629 # Test whether the compiler implicitly links with -lc since on some
14630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14631 # to ld, don't add -lc before -lgcc.
14632 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14633 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14634 $rm conftest*
14635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638 (eval $ac_compile) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } 2>conftest.err; then
14642 soname=conftest
14643 lib=conftest
14644 libobjs=conftest.$ac_objext
14645 deplibs=
14646 wl=$lt_prog_compiler_wl_F77
14647 compiler_flags=-v
14648 linker_flags=-v
14649 verstring=
14650 output_objdir=.
14651 libname=conftest
14652 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14653 allow_undefined_flag_F77=
14654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14655 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }
14659 then
14660 archive_cmds_need_lc_F77=no
14661 else
14662 archive_cmds_need_lc_F77=yes
14664 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14665 else
14666 cat conftest.err 1>&5
14668 $rm conftest*
14669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14670 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14672 esac
14675 esac
14677 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14678 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14679 hardcode_action_F77=
14680 if test -n "$hardcode_libdir_flag_spec_F77" || \
14681 test -n "$runpath_var F77" || \
14682 test "X$hardcode_automatic_F77"="Xyes" ; then
14684 # We can hardcode non-existant directories.
14685 if test "$hardcode_direct_F77" != no &&
14686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14687 # have to relink, otherwise we might link with an installed library
14688 # when we should be linking with a yet-to-be-installed one
14689 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14690 test "$hardcode_minus_L_F77" != no; then
14691 # Linking always hardcodes the temporary library directory.
14692 hardcode_action_F77=relink
14693 else
14694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14695 hardcode_action_F77=immediate
14697 else
14698 # We cannot hardcode anything, or else we can only hardcode existing
14699 # directories.
14700 hardcode_action_F77=unsupported
14702 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14703 echo "${ECHO_T}$hardcode_action_F77" >&6
14705 if test "$hardcode_action_F77" = relink; then
14706 # Fast installation is not supported
14707 enable_fast_install=no
14708 elif test "$shlibpath_overrides_runpath" = yes ||
14709 test "$enable_shared" = no; then
14710 # Fast installation is not necessary
14711 enable_fast_install=needless
14714 striplib=
14715 old_striplib=
14716 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14717 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14718 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14719 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14720 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14721 echo "$as_me:$LINENO: result: yes" >&5
14722 echo "${ECHO_T}yes" >&6
14723 else
14724 # FIXME - insert some real tests, host_os isn't really good enough
14725 case $host_os in
14726 darwin*)
14727 if test -n "$STRIP" ; then
14728 striplib="$STRIP -x"
14729 echo "$as_me:$LINENO: result: yes" >&5
14730 echo "${ECHO_T}yes" >&6
14731 else
14732 echo "$as_me:$LINENO: result: no" >&5
14733 echo "${ECHO_T}no" >&6
14737 echo "$as_me:$LINENO: result: no" >&5
14738 echo "${ECHO_T}no" >&6
14740 esac
14743 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14744 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14745 library_names_spec=
14746 libname_spec='lib$name'
14747 soname_spec=
14748 shrext=".so"
14749 postinstall_cmds=
14750 postuninstall_cmds=
14751 finish_cmds=
14752 finish_eval=
14753 shlibpath_var=
14754 shlibpath_overrides_runpath=unknown
14755 version_type=none
14756 dynamic_linker="$host_os ld.so"
14757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14758 if test "$GCC" = yes; then
14759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14761 # if the path contains ";" then we assume it to be the separator
14762 # otherwise default to the standard path separator (i.e. ":") - it is
14763 # assumed that no part of a normal pathname contains ";" but that should
14764 # okay in the real world where ";" in dirpaths is itself problematic.
14765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14766 else
14767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14769 else
14770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14772 need_lib_prefix=unknown
14773 hardcode_into_libs=no
14775 # when you set need_version to no, make sure it does not cause -set_version
14776 # flags to be left without arguments
14777 need_version=unknown
14779 case $host_os in
14780 aix3*)
14781 version_type=linux
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14783 shlibpath_var=LIBPATH
14785 # AIX 3 has no versioning support, so we append a major version to the name.
14786 soname_spec='${libname}${release}${shared_ext}$major'
14789 aix4* | aix5*)
14790 version_type=linux
14791 need_lib_prefix=no
14792 need_version=no
14793 hardcode_into_libs=yes
14794 if test "$host_cpu" = ia64; then
14795 # AIX 5 supports IA64
14796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 else
14799 # With GCC up to 2.95.x, collect2 would create an import file
14800 # for dependence libraries. The import file would start with
14801 # the line `#! .'. This would cause the generated library to
14802 # depend on `.', always an invalid library. This was fixed in
14803 # development snapshots of GCC prior to 3.0.
14804 case $host_os in
14805 aix4 | aix4.[01] | aix4.[01].*)
14806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14807 echo ' yes '
14808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14810 else
14811 can_build_shared=no
14814 esac
14815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14816 # soname into executable. Probably we can add versioning support to
14817 # collect2, so additional links can be useful in future.
14818 if test "$aix_use_runtimelinking" = yes; then
14819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14820 # instead of lib<name>.a to let people know that these are not
14821 # typical AIX shared libraries.
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 else
14824 # We preserve .a as extension for shared libraries through AIX4.2
14825 # and later when we are not doing run time linking.
14826 library_names_spec='${libname}${release}.a $libname.a'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LIBPATH
14833 amigaos*)
14834 library_names_spec='$libname.ixlibrary $libname.a'
14835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14836 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'
14839 beos*)
14840 library_names_spec='${libname}${shared_ext}'
14841 dynamic_linker="$host_os ld.so"
14842 shlibpath_var=LIBRARY_PATH
14845 bsdi4*)
14846 version_type=linux
14847 need_version=no
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14854 # the default ld.so.conf also contains /usr/contrib/lib and
14855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14856 # libtool to hard-code these into programs
14859 cygwin* | mingw* | pw32*)
14860 version_type=windows
14861 shrext=".dll"
14862 need_version=no
14863 need_lib_prefix=no
14865 case $GCC,$host_os in
14866 yes,cygwin* | yes,mingw* | yes,pw32*)
14867 library_names_spec='$libname.dll.a'
14868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14869 postinstall_cmds='base_file=`basename \${file}`~
14870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14871 dldir=$destdir/`dirname \$dlpath`~
14872 test -d \$dldir || mkdir -p \$dldir~
14873 $install_prog $dir/$dlname \$dldir/$dlname'
14874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14875 dlpath=$dir/\$dldll~
14876 $rm \$dlpath'
14877 shlibpath_overrides_runpath=yes
14879 case $host_os in
14880 cygwin*)
14881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14883 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14885 mingw*)
14886 # MinGW DLLs use traditional 'lib' prefix
14887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14890 # It is most probably a Windows format PATH printed by
14891 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14892 # path with ; separators, and with drive letters. We can handle the
14893 # drive letters (cygwin fileutils understands them), so leave them,
14894 # especially as we might pass files found there to a mingw objdump,
14895 # which wouldn't understand a cygwinified path. Ahh.
14896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14897 else
14898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14901 pw32*)
14902 # pw32 DLLs use 'pw' prefix rather than 'lib'
14903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14905 esac
14909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14911 esac
14912 dynamic_linker='Win32 ld.exe'
14913 # FIXME: first we should search . and the directory the executable is in
14914 shlibpath_var=PATH
14917 darwin* | rhapsody*)
14918 dynamic_linker="$host_os dyld"
14919 version_type=darwin
14920 need_lib_prefix=no
14921 need_version=no
14922 # FIXME: Relying on posixy $() will cause problems for
14923 # cross-compilation, but unfortunately the echo tests do not
14924 # yet detect zsh echo's removal of \ escapes.
14925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14926 soname_spec='${libname}${release}${major}$shared_ext'
14927 shlibpath_overrides_runpath=yes
14928 shlibpath_var=DYLD_LIBRARY_PATH
14929 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14931 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14932 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"`
14934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14937 dgux*)
14938 version_type=linux
14939 need_lib_prefix=no
14940 need_version=no
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 shlibpath_var=LD_LIBRARY_PATH
14946 freebsd1*)
14947 dynamic_linker=no
14950 freebsd*)
14951 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14952 version_type=freebsd-$objformat
14953 case $version_type in
14954 freebsd-elf*)
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14956 need_version=no
14957 need_lib_prefix=no
14959 freebsd-*)
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14961 need_version=yes
14963 esac
14964 shlibpath_var=LD_LIBRARY_PATH
14965 case $host_os in
14966 freebsd2*)
14967 shlibpath_overrides_runpath=yes
14969 freebsd3.01* | freebsdelf3.01*)
14970 shlibpath_overrides_runpath=yes
14971 hardcode_into_libs=yes
14973 *) # from 3.2 on
14974 shlibpath_overrides_runpath=no
14975 hardcode_into_libs=yes
14977 esac
14980 gnu*)
14981 version_type=linux
14982 need_lib_prefix=no
14983 need_version=no
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 shlibpath_var=LD_LIBRARY_PATH
14987 hardcode_into_libs=yes
14990 hpux9* | hpux10* | hpux11*)
14991 # Give a soname corresponding to the major version so that dld.sl refuses to
14992 # link against other versions.
14993 version_type=sunos
14994 need_lib_prefix=no
14995 need_version=no
14996 case "$host_cpu" in
14997 ia64*)
14998 shrext='.so'
14999 hardcode_into_libs=yes
15000 dynamic_linker="$host_os dld.so"
15001 shlibpath_var=LD_LIBRARY_PATH
15002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 if test "X$HPUX_IA64_MODE" = X32; then
15006 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15007 else
15008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15012 hppa*64*)
15013 shrext='.sl'
15014 hardcode_into_libs=yes
15015 dynamic_linker="$host_os dld.sl"
15016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15024 shrext='.sl'
15025 dynamic_linker="$host_os dld.sl"
15026 shlibpath_var=SHLIB_PATH
15027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029 soname_spec='${libname}${release}${shared_ext}$major'
15031 esac
15032 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15033 postinstall_cmds='chmod 555 $lib'
15036 irix5* | irix6* | nonstopux*)
15037 case $host_os in
15038 nonstopux*) version_type=nonstopux ;;
15040 if test "$lt_cv_prog_gnu_ld" = yes; then
15041 version_type=linux
15042 else
15043 version_type=irix
15044 fi ;;
15045 esac
15046 need_lib_prefix=no
15047 need_version=no
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15050 case $host_os in
15051 irix5* | nonstopux*)
15052 libsuff= shlibsuff=
15055 case $LD in # libtool.m4 will add one of these switches to LD
15056 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15057 libsuff= shlibsuff= libmagic=32-bit;;
15058 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15059 libsuff=32 shlibsuff=N32 libmagic=N32;;
15060 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15061 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15062 *) libsuff= shlibsuff= libmagic=never-match;;
15063 esac
15065 esac
15066 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15067 shlibpath_overrides_runpath=no
15068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15070 hardcode_into_libs=yes
15073 # No shared lib support for Linux oldld, aout, or coff.
15074 linux*oldld* | linux*aout* | linux*coff*)
15075 dynamic_linker=no
15078 # This must be Linux ELF.
15079 linux*)
15080 version_type=linux
15081 need_lib_prefix=no
15082 need_version=no
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084 soname_spec='${libname}${release}${shared_ext}$major'
15085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 shlibpath_overrides_runpath=no
15088 # This implies no fast_install, which is unacceptable.
15089 # Some rework will be needed to allow for fast_install
15090 # before this can be enabled.
15091 hardcode_into_libs=yes
15093 # We used to test for /lib/ld.so.1 and disable shared libraries on
15094 # powerpc, because MkLinux only supported shared libraries with the
15095 # GNU dynamic linker. Since this was broken with cross compilers,
15096 # most powerpc-linux boxes support dynamic linking these days and
15097 # people can always --disable-shared, the test was removed, and we
15098 # assume the GNU/Linux dynamic linker is in use.
15099 dynamic_linker='GNU/Linux ld.so'
15102 netbsd*)
15103 version_type=sunos
15104 need_lib_prefix=no
15105 need_version=no
15106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15109 dynamic_linker='NetBSD (a.out) ld.so'
15110 else
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 dynamic_linker='NetBSD ld.elf_so'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes
15117 hardcode_into_libs=yes
15120 newsos6)
15121 version_type=linux
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=yes
15127 nto-qnx)
15128 version_type=linux
15129 need_lib_prefix=no
15130 need_version=no
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=yes
15137 openbsd*)
15138 version_type=sunos
15139 need_lib_prefix=no
15140 need_version=no
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15143 shlibpath_var=LD_LIBRARY_PATH
15144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15145 case $host_os in
15146 openbsd2.[89] | openbsd2.[89].*)
15147 shlibpath_overrides_runpath=no
15150 shlibpath_overrides_runpath=yes
15152 esac
15153 else
15154 shlibpath_overrides_runpath=yes
15158 os2*)
15159 libname_spec='$name'
15160 shrext=".dll"
15161 need_lib_prefix=no
15162 library_names_spec='$libname${shared_ext} $libname.a'
15163 dynamic_linker='OS/2 ld.exe'
15164 shlibpath_var=LIBPATH
15167 osf3* | osf4* | osf5*)
15168 version_type=osf
15169 need_lib_prefix=no
15170 need_version=no
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15178 sco3.2v5*)
15179 version_type=osf
15180 soname_spec='${libname}${release}${shared_ext}$major'
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 shlibpath_var=LD_LIBRARY_PATH
15185 solaris*)
15186 version_type=linux
15187 need_lib_prefix=no
15188 need_version=no
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=yes
15193 hardcode_into_libs=yes
15194 # ldd complains unless libraries are executable
15195 postinstall_cmds='chmod +x $lib'
15198 sunos4*)
15199 version_type=sunos
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15202 shlibpath_var=LD_LIBRARY_PATH
15203 shlibpath_overrides_runpath=yes
15204 if test "$with_gnu_ld" = yes; then
15205 need_lib_prefix=no
15207 need_version=yes
15210 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15211 version_type=linux
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 case $host_vendor in
15216 sni)
15217 shlibpath_overrides_runpath=no
15218 need_lib_prefix=no
15219 export_dynamic_flag_spec='${wl}-Blargedynsym'
15220 runpath_var=LD_RUN_PATH
15222 siemens)
15223 need_lib_prefix=no
15225 motorola)
15226 need_lib_prefix=no
15227 need_version=no
15228 shlibpath_overrides_runpath=no
15229 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15231 esac
15234 sysv4*MP*)
15235 if test -d /usr/nec ;then
15236 version_type=linux
15237 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15238 soname_spec='$libname${shared_ext}.$major'
15239 shlibpath_var=LD_LIBRARY_PATH
15243 uts4*)
15244 version_type=linux
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15251 dynamic_linker=no
15253 esac
15254 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15255 echo "${ECHO_T}$dynamic_linker" >&6
15256 test "$dynamic_linker" = no && can_build_shared=no
15259 # The else clause should only fire when bootstrapping the
15260 # libtool distribution, otherwise you forgot to ship ltmain.sh
15261 # with your package, and you will get complaints that there are
15262 # no rules to generate ltmain.sh.
15263 if test -f "$ltmain"; then
15264 # See if we are running on zsh, and set the options which allow our commands through
15265 # without removal of \ escapes.
15266 if test -n "${ZSH_VERSION+set}" ; then
15267 setopt NO_GLOB_SUBST
15269 # Now quote all the things that may contain metacharacters while being
15270 # careful not to overquote the AC_SUBSTed values. We take copies of the
15271 # variables and quote the copies for generation of the libtool script.
15272 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15275 deplibs_check_method reload_flag reload_cmds need_locks \
15276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15277 lt_cv_sys_global_symbol_to_c_name_address \
15278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15279 old_postinstall_cmds old_postuninstall_cmds \
15280 compiler_F77 \
15281 CC_F77 \
15282 LD_F77 \
15283 lt_prog_compiler_wl_F77 \
15284 lt_prog_compiler_pic_F77 \
15285 lt_prog_compiler_static_F77 \
15286 lt_prog_compiler_no_builtin_flag_F77 \
15287 export_dynamic_flag_spec_F77 \
15288 thread_safe_flag_spec_F77 \
15289 whole_archive_flag_spec_F77 \
15290 enable_shared_with_static_runtimes_F77 \
15291 old_archive_cmds_F77 \
15292 old_archive_from_new_cmds_F77 \
15293 predep_objects_F77 \
15294 postdep_objects_F77 \
15295 predeps_F77 \
15296 postdeps_F77 \
15297 compiler_lib_search_path_F77 \
15298 archive_cmds_F77 \
15299 archive_expsym_cmds_F77 \
15300 postinstall_cmds_F77 \
15301 postuninstall_cmds_F77 \
15302 old_archive_from_expsyms_cmds_F77 \
15303 allow_undefined_flag_F77 \
15304 no_undefined_flag_F77 \
15305 export_symbols_cmds_F77 \
15306 hardcode_libdir_flag_spec_F77 \
15307 hardcode_libdir_flag_spec_ld_F77 \
15308 hardcode_libdir_separator_F77 \
15309 hardcode_automatic_F77 \
15310 module_cmds_F77 \
15311 module_expsym_cmds_F77 \
15312 lt_cv_prog_compiler_c_o_F77 \
15313 exclude_expsyms_F77 \
15314 include_expsyms_F77; do
15316 case $var in
15317 old_archive_cmds_F77 | \
15318 old_archive_from_new_cmds_F77 | \
15319 archive_cmds_F77 | \
15320 archive_expsym_cmds_F77 | \
15321 module_cmds_F77 | \
15322 module_expsym_cmds_F77 | \
15323 old_archive_from_expsyms_cmds_F77 | \
15324 export_symbols_cmds_F77 | \
15325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15326 postinstall_cmds | postuninstall_cmds | \
15327 old_postinstall_cmds | old_postuninstall_cmds | \
15328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15329 # Double-quote double-evaled strings.
15330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15335 esac
15336 done
15338 case $lt_echo in
15339 *'\$0 --fallback-echo"')
15340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15342 esac
15344 cfgfile="$ofile"
15346 cat <<__EOF__ >> "$cfgfile"
15347 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15351 # Shell to use when invoking shell scripts.
15352 SHELL=$lt_SHELL
15354 # Whether or not to build shared libraries.
15355 build_libtool_libs=$enable_shared
15357 # Whether or not to build static libraries.
15358 build_old_libs=$enable_static
15360 # Whether or not to add -lc for building shared libraries.
15361 build_libtool_need_lc=$archive_cmds_need_lc_F77
15363 # Whether or not to disallow shared libs when runtime libs are static
15364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15366 # Whether or not to optimize for fast installation.
15367 fast_install=$enable_fast_install
15369 # The host system.
15370 host_alias=$host_alias
15371 host=$host
15373 # An echo program that does not interpret backslashes.
15374 echo=$lt_echo
15376 # The archiver.
15377 AR=$lt_AR
15378 AR_FLAGS=$lt_AR_FLAGS
15380 # A C compiler.
15381 LTCC=$lt_LTCC
15383 # A language-specific compiler.
15384 CC=$lt_compiler_F77
15386 # Is the compiler the GNU C compiler?
15387 with_gcc=$GCC_F77
15389 # An ERE matcher.
15390 EGREP=$lt_EGREP
15392 # The linker used to build libraries.
15393 LD=$lt_LD_F77
15395 # Whether we need hard or soft links.
15396 LN_S=$lt_LN_S
15398 # A BSD-compatible nm program.
15399 NM=$lt_NM
15401 # A symbol stripping program
15402 STRIP=$STRIP
15404 # Used to examine libraries when file_magic_cmd begins "file"
15405 MAGIC_CMD=$MAGIC_CMD
15407 # Used on cygwin: DLL creation program.
15408 DLLTOOL="$DLLTOOL"
15410 # Used on cygwin: object dumper.
15411 OBJDUMP="$OBJDUMP"
15413 # Used on cygwin: assembler.
15414 AS="$AS"
15416 # The name of the directory that contains temporary libtool files.
15417 objdir=$objdir
15419 # How to create reloadable object files.
15420 reload_flag=$lt_reload_flag
15421 reload_cmds=$lt_reload_cmds
15423 # How to pass a linker flag through the compiler.
15424 wl=$lt_lt_prog_compiler_wl_F77
15426 # Object file suffix (normally "o").
15427 objext="$ac_objext"
15429 # Old archive suffix (normally "a").
15430 libext="$libext"
15432 # Shared library suffix (normally ".so").
15433 shrext='$shrext'
15435 # Executable file suffix (normally "").
15436 exeext="$exeext"
15438 # Additional compiler flags for building library objects.
15439 pic_flag=$lt_lt_prog_compiler_pic_F77
15440 pic_mode=$pic_mode
15442 # What is the maximum length of a command?
15443 max_cmd_len=$lt_cv_sys_max_cmd_len
15445 # Does compiler simultaneously support -c and -o options?
15446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15448 # Must we lock files when doing compilation ?
15449 need_locks=$lt_need_locks
15451 # Do we need the lib prefix for modules?
15452 need_lib_prefix=$need_lib_prefix
15454 # Do we need a version for libraries?
15455 need_version=$need_version
15457 # Whether dlopen is supported.
15458 dlopen_support=$enable_dlopen
15460 # Whether dlopen of programs is supported.
15461 dlopen_self=$enable_dlopen_self
15463 # Whether dlopen of statically linked programs is supported.
15464 dlopen_self_static=$enable_dlopen_self_static
15466 # Compiler flag to prevent dynamic linking.
15467 link_static_flag=$lt_lt_prog_compiler_static_F77
15469 # Compiler flag to turn off builtin functions.
15470 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15472 # Compiler flag to allow reflexive dlopens.
15473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15475 # Compiler flag to generate shared objects directly from archives.
15476 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15478 # Compiler flag to generate thread-safe objects.
15479 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15481 # Library versioning type.
15482 version_type=$version_type
15484 # Format of library name prefix.
15485 libname_spec=$lt_libname_spec
15487 # List of archive names. First name is the real one, the rest are links.
15488 # The last name is the one that the linker finds with -lNAME.
15489 library_names_spec=$lt_library_names_spec
15491 # The coded name of the library, if different from the real name.
15492 soname_spec=$lt_soname_spec
15494 # Commands used to build and install an old-style archive.
15495 RANLIB=$lt_RANLIB
15496 old_archive_cmds=$lt_old_archive_cmds_F77
15497 old_postinstall_cmds=$lt_old_postinstall_cmds
15498 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15500 # Create an old-style archive from a shared archive.
15501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15503 # Create a temporary old-style archive to link instead of a shared archive.
15504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15506 # Commands used to build and install a shared archive.
15507 archive_cmds=$lt_archive_cmds_F77
15508 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15509 postinstall_cmds=$lt_postinstall_cmds
15510 postuninstall_cmds=$lt_postuninstall_cmds
15512 # Commands used to build a loadable module (assumed same as above if empty)
15513 module_cmds=$lt_module_cmds_F77
15514 module_expsym_cmds=$lt_module_expsym_cmds_F77
15516 # Commands to strip libraries.
15517 old_striplib=$lt_old_striplib
15518 striplib=$lt_striplib
15520 # Dependencies to place before the objects being linked to create a
15521 # shared library.
15522 predep_objects=$lt_predep_objects_F77
15524 # Dependencies to place after the objects being linked to create a
15525 # shared library.
15526 postdep_objects=$lt_postdep_objects_F77
15528 # Dependencies to place before the objects being linked to create a
15529 # shared library.
15530 predeps=$lt_predeps_F77
15532 # Dependencies to place after the objects being linked to create a
15533 # shared library.
15534 postdeps=$lt_postdeps_F77
15536 # The library search path used internally by the compiler when linking
15537 # a shared library.
15538 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15540 # Method to check whether dependent libraries are shared objects.
15541 deplibs_check_method=$lt_deplibs_check_method
15543 # Command to use when deplibs_check_method == file_magic.
15544 file_magic_cmd=$lt_file_magic_cmd
15546 # Flag that allows shared libraries with undefined symbols to be built.
15547 allow_undefined_flag=$lt_allow_undefined_flag_F77
15549 # Flag that forces no undefined symbols.
15550 no_undefined_flag=$lt_no_undefined_flag_F77
15552 # Commands used to finish a libtool library installation in a directory.
15553 finish_cmds=$lt_finish_cmds
15555 # Same as above, but a single script fragment to be evaled but not shown.
15556 finish_eval=$lt_finish_eval
15558 # Take the output of nm and produce a listing of raw symbols and C names.
15559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15561 # Transform the output of nm in a proper C declaration
15562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15564 # Transform the output of nm in a C name address pair
15565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15567 # This is the shared library runtime path variable.
15568 runpath_var=$runpath_var
15570 # This is the shared library path variable.
15571 shlibpath_var=$shlibpath_var
15573 # Is shlibpath searched before the hard-coded library search path?
15574 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15576 # How to hardcode a shared library path into an executable.
15577 hardcode_action=$hardcode_action_F77
15579 # Whether we should hardcode library paths into libraries.
15580 hardcode_into_libs=$hardcode_into_libs
15582 # Flag to hardcode \$libdir into a binary during linking.
15583 # This must work even if \$libdir does not exist.
15584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15586 # If ld is used when linking, flag to hardcode \$libdir into
15587 # a binary during linking. This must work even if \$libdir does
15588 # not exist.
15589 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15591 # Whether we need a single -rpath flag with a separated argument.
15592 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15594 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15595 # resulting binary.
15596 hardcode_direct=$hardcode_direct_F77
15598 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15599 # resulting binary.
15600 hardcode_minus_L=$hardcode_minus_L_F77
15602 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15603 # the resulting binary.
15604 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15606 # Set to yes if building a shared library automatically hardcodes DIR into the library
15607 # and all subsequent libraries and executables linked against it.
15608 hardcode_automatic=$hardcode_automatic_F77
15610 # Variables whose values should be saved in libtool wrapper scripts and
15611 # restored at relink time.
15612 variables_saved_for_relink="$variables_saved_for_relink"
15614 # Whether libtool must link a program against all its dependency libraries.
15615 link_all_deplibs=$link_all_deplibs_F77
15617 # Compile-time system search path for libraries
15618 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15620 # Run-time system search path for libraries
15621 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15623 # Fix the shell variable \$srcfile for the compiler.
15624 fix_srcfile_path="$fix_srcfile_path_F77"
15626 # Set to yes if exported symbols are required.
15627 always_export_symbols=$always_export_symbols_F77
15629 # The commands to list exported symbols.
15630 export_symbols_cmds=$lt_export_symbols_cmds_F77
15632 # The commands to extract the exported symbol list from a shared archive.
15633 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15635 # Symbols that should not be listed in the preloaded symbols.
15636 exclude_expsyms=$lt_exclude_expsyms_F77
15638 # Symbols that must always be exported.
15639 include_expsyms=$lt_include_expsyms_F77
15641 # ### END LIBTOOL TAG CONFIG: $tagname
15643 __EOF__
15646 else
15647 # If there is no Makefile yet, we rely on a make rule to execute
15648 # `config.status --recheck' to rerun these tests and create the
15649 # libtool script then.
15650 test -f Makefile && make "$ltmain"
15654 ac_ext=c
15655 ac_cpp='$CPP $CPPFLAGS'
15656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15660 CC="$lt_save_CC"
15662 else
15663 tagname=""
15667 GCJ)
15668 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15672 # Source file extension for Java test sources.
15673 ac_ext=java
15675 # Object file extension for compiled Java test sources.
15676 objext=o
15677 objext_GCJ=$objext
15679 # Code to be used in simple compile tests
15680 lt_simple_compile_test_code="class foo {}\n"
15682 # Code to be used in simple link tests
15683 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15685 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15687 # If no C compiler was specified, use CC.
15688 LTCC=${LTCC-"$CC"}
15690 # Allow CC to be a program name with arguments.
15691 compiler=$CC
15694 # Allow CC to be a program name with arguments.
15695 lt_save_CC="$CC"
15696 CC=${GCJ-"gcj"}
15697 compiler=$CC
15698 compiler_GCJ=$CC
15700 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15701 archive_cmds_need_lc_GCJ=no
15703 ## CAVEAT EMPTOR:
15704 ## There is no encapsulation within the following macros, do not change
15705 ## the running order or otherwise move them around unless you know exactly
15706 ## what you are doing...
15708 lt_prog_compiler_no_builtin_flag_GCJ=
15710 if test "$GCC" = yes; then
15711 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15713 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15714 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15715 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 else
15718 lt_cv_prog_compiler_rtti_exceptions=no
15719 ac_outfile=conftest.$ac_objext
15720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15721 lt_compiler_flag="-fno-rtti -fno-exceptions"
15722 # Insert the option either (1) after the last *FLAGS variable, or
15723 # (2) before a word containing "conftest.", or (3) at the end.
15724 # Note that $ac_compile itself does not contain backslashes and begins
15725 # with a dollar sign (not a hyphen), so the echo should work correctly.
15726 # The option is referenced via a variable to avoid confusing sed.
15727 lt_compile=`echo "$ac_compile" | $SED \
15728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15730 -e 's:$: $lt_compiler_flag:'`
15731 (eval echo "\"\$as_me:15731: $lt_compile\"" >&5)
15732 (eval "$lt_compile" 2>conftest.err)
15733 ac_status=$?
15734 cat conftest.err >&5
15735 echo "$as_me:15735: \$? = $ac_status" >&5
15736 if (exit $ac_status) && test -s "$ac_outfile"; then
15737 # The compiler can only warn and ignore the option if not recognized
15738 # So say no if there are warnings
15739 if test ! -s conftest.err; then
15740 lt_cv_prog_compiler_rtti_exceptions=yes
15743 $rm conftest*
15746 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15747 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15749 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15750 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15751 else
15757 lt_prog_compiler_wl_GCJ=
15758 lt_prog_compiler_pic_GCJ=
15759 lt_prog_compiler_static_GCJ=
15761 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15762 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15764 if test "$GCC" = yes; then
15765 lt_prog_compiler_wl_GCJ='-Wl,'
15766 lt_prog_compiler_static_GCJ='-static'
15768 case $host_os in
15769 aix*)
15770 # All AIX code is PIC.
15771 if test "$host_cpu" = ia64; then
15772 # AIX 5 now supports IA64 processor
15773 lt_prog_compiler_static_GCJ='-Bstatic'
15777 amigaos*)
15778 # FIXME: we need at least 68020 code to build shared libraries, but
15779 # adding the `-m68020' flag to GCC prevents building anything better,
15780 # like `-m68040'.
15781 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15784 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15785 # PIC is the default for these OSes.
15788 mingw* | pw32* | os2*)
15789 # This hack is so that the source file can tell whether it is being
15790 # built for inclusion in a dll (and should export symbols for example).
15791 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15794 darwin* | rhapsody*)
15795 # PIC is the default on this platform
15796 # Common symbols not allowed in MH_DYLIB files
15797 lt_prog_compiler_pic_GCJ='-fno-common'
15800 msdosdjgpp*)
15801 # Just because we use GCC doesn't mean we suddenly get shared libraries
15802 # on systems that don't support them.
15803 lt_prog_compiler_can_build_shared_GCJ=no
15804 enable_shared=no
15807 sysv4*MP*)
15808 if test -d /usr/nec; then
15809 lt_prog_compiler_pic_GCJ=-Kconform_pic
15813 hpux*)
15814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15815 # not for PA HP-UX.
15816 case "$host_cpu" in
15817 hppa*64*|ia64*)
15818 # +Z the default
15821 lt_prog_compiler_pic_GCJ='-fPIC'
15823 esac
15827 lt_prog_compiler_pic_GCJ='-fPIC'
15829 esac
15830 else
15831 # PORTME Check for flag to pass linker flags through the system compiler.
15832 case $host_os in
15833 aix*)
15834 lt_prog_compiler_wl_GCJ='-Wl,'
15835 if test "$host_cpu" = ia64; then
15836 # AIX 5 now supports IA64 processor
15837 lt_prog_compiler_static_GCJ='-Bstatic'
15838 else
15839 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15843 mingw* | pw32* | os2*)
15844 # This hack is so that the source file can tell whether it is being
15845 # built for inclusion in a dll (and should export symbols for example).
15846 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15849 hpux9* | hpux10* | hpux11*)
15850 lt_prog_compiler_wl_GCJ='-Wl,'
15851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15852 # not for PA HP-UX.
15853 case "$host_cpu" in
15854 hppa*64*|ia64*)
15855 # +Z the default
15858 lt_prog_compiler_pic_GCJ='+Z'
15860 esac
15861 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15862 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15865 irix5* | irix6* | nonstopux*)
15866 lt_prog_compiler_wl_GCJ='-Wl,'
15867 # PIC (with -KPIC) is the default.
15868 lt_prog_compiler_static_GCJ='-non_shared'
15871 newsos6)
15872 lt_prog_compiler_pic_GCJ='-KPIC'
15873 lt_prog_compiler_static_GCJ='-Bstatic'
15876 linux*)
15877 case $CC in
15878 icc|ecc)
15879 lt_prog_compiler_wl_GCJ='-Wl,'
15880 lt_prog_compiler_pic_GCJ='-KPIC'
15881 lt_prog_compiler_static_GCJ='-static'
15883 ccc)
15884 lt_prog_compiler_wl_GCJ='-Wl,'
15885 # All Alpha code is PIC.
15886 lt_prog_compiler_static_GCJ='-non_shared'
15888 esac
15891 osf3* | osf4* | osf5*)
15892 lt_prog_compiler_wl_GCJ='-Wl,'
15893 # All OSF/1 code is PIC.
15894 lt_prog_compiler_static_GCJ='-non_shared'
15897 sco3.2v5*)
15898 lt_prog_compiler_pic_GCJ='-Kpic'
15899 lt_prog_compiler_static_GCJ='-dn'
15902 solaris*)
15903 lt_prog_compiler_wl_GCJ='-Wl,'
15904 lt_prog_compiler_pic_GCJ='-KPIC'
15905 lt_prog_compiler_static_GCJ='-Bstatic'
15908 sunos4*)
15909 lt_prog_compiler_wl_GCJ='-Qoption ld '
15910 lt_prog_compiler_pic_GCJ='-PIC'
15911 lt_prog_compiler_static_GCJ='-Bstatic'
15914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15915 lt_prog_compiler_wl_GCJ='-Wl,'
15916 lt_prog_compiler_pic_GCJ='-KPIC'
15917 lt_prog_compiler_static_GCJ='-Bstatic'
15920 sysv4*MP*)
15921 if test -d /usr/nec ;then
15922 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15923 lt_prog_compiler_static_GCJ='-Bstatic'
15927 uts4*)
15928 lt_prog_compiler_pic_GCJ='-pic'
15929 lt_prog_compiler_static_GCJ='-Bstatic'
15933 lt_prog_compiler_can_build_shared_GCJ=no
15935 esac
15938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15939 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15942 # Check to make sure the PIC flag actually works.
15944 if test -n "$lt_prog_compiler_pic_GCJ"; then
15945 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15946 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15947 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 else
15950 lt_prog_compiler_pic_works_GCJ=no
15951 ac_outfile=conftest.$ac_objext
15952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15953 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15954 # Insert the option either (1) after the last *FLAGS variable, or
15955 # (2) before a word containing "conftest.", or (3) at the end.
15956 # Note that $ac_compile itself does not contain backslashes and begins
15957 # with a dollar sign (not a hyphen), so the echo should work correctly.
15958 # The option is referenced via a variable to avoid confusing sed.
15959 lt_compile=`echo "$ac_compile" | $SED \
15960 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15962 -e 's:$: $lt_compiler_flag:'`
15963 (eval echo "\"\$as_me:15963: $lt_compile\"" >&5)
15964 (eval "$lt_compile" 2>conftest.err)
15965 ac_status=$?
15966 cat conftest.err >&5
15967 echo "$as_me:15967: \$? = $ac_status" >&5
15968 if (exit $ac_status) && test -s "$ac_outfile"; then
15969 # The compiler can only warn and ignore the option if not recognized
15970 # So say no if there are warnings
15971 if test ! -s conftest.err; then
15972 lt_prog_compiler_pic_works_GCJ=yes
15975 $rm conftest*
15978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15979 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15981 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15982 case $lt_prog_compiler_pic_GCJ in
15983 "" | " "*) ;;
15984 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15985 esac
15986 else
15987 lt_prog_compiler_pic_GCJ=
15988 lt_prog_compiler_can_build_shared_GCJ=no
15992 case "$host_os" in
15993 # For platforms which do not support PIC, -DPIC is meaningless:
15994 *djgpp*)
15995 lt_prog_compiler_pic_GCJ=
15998 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16000 esac
16002 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16003 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16004 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007 lt_cv_prog_compiler_c_o_GCJ=no
16008 $rm -r conftest 2>/dev/null
16009 mkdir conftest
16010 cd conftest
16011 mkdir out
16012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16014 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16015 # that will create temporary files in the current directory regardless of
16016 # the output directory. Thus, making CWD read-only will cause this test
16017 # to fail, enabling locking or at least warning the user not to do parallel
16018 # builds.
16019 chmod -w .
16021 lt_compiler_flag="-o out/conftest2.$ac_objext"
16022 # Insert the option either (1) after the last *FLAGS variable, or
16023 # (2) before a word containing "conftest.", or (3) at the end.
16024 # Note that $ac_compile itself does not contain backslashes and begins
16025 # with a dollar sign (not a hyphen), so the echo should work correctly.
16026 lt_compile=`echo "$ac_compile" | $SED \
16027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16029 -e 's:$: $lt_compiler_flag:'`
16030 (eval echo "\"\$as_me:16030: $lt_compile\"" >&5)
16031 (eval "$lt_compile" 2>out/conftest.err)
16032 ac_status=$?
16033 cat out/conftest.err >&5
16034 echo "$as_me:16034: \$? = $ac_status" >&5
16035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16036 then
16037 # The compiler can only warn and ignore the option if not recognized
16038 # So say no if there are warnings
16039 if test ! -s out/conftest.err; then
16040 lt_cv_prog_compiler_c_o_GCJ=yes
16043 chmod u+w .
16044 $rm conftest* out/*
16045 rmdir out
16046 cd ..
16047 rmdir conftest
16048 $rm conftest*
16051 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16052 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16055 hard_links="nottested"
16056 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16057 # do not overwrite the value of need_locks provided by the user
16058 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16059 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16060 hard_links=yes
16061 $rm conftest*
16062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16063 touch conftest.a
16064 ln conftest.a conftest.b 2>&5 || hard_links=no
16065 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16066 echo "$as_me:$LINENO: result: $hard_links" >&5
16067 echo "${ECHO_T}$hard_links" >&6
16068 if test "$hard_links" = no; then
16069 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16070 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16071 need_locks=warn
16073 else
16074 need_locks=no
16077 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16078 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16080 runpath_var=
16081 allow_undefined_flag_GCJ=
16082 enable_shared_with_static_runtimes_GCJ=no
16083 archive_cmds_GCJ=
16084 archive_expsym_cmds_GCJ=
16085 old_archive_From_new_cmds_GCJ=
16086 old_archive_from_expsyms_cmds_GCJ=
16087 export_dynamic_flag_spec_GCJ=
16088 whole_archive_flag_spec_GCJ=
16089 thread_safe_flag_spec_GCJ=
16090 hardcode_libdir_flag_spec_GCJ=
16091 hardcode_libdir_flag_spec_ld_GCJ=
16092 hardcode_libdir_separator_GCJ=
16093 hardcode_direct_GCJ=no
16094 hardcode_minus_L_GCJ=no
16095 hardcode_shlibpath_var_GCJ=unsupported
16096 link_all_deplibs_GCJ=unknown
16097 hardcode_automatic_GCJ=no
16098 module_cmds_GCJ=
16099 module_expsym_cmds_GCJ=
16100 always_export_symbols_GCJ=no
16101 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16102 # include_expsyms should be a list of space-separated symbols to be *always*
16103 # included in the symbol list
16104 include_expsyms_GCJ=
16105 # exclude_expsyms can be an extended regexp of symbols to exclude
16106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16108 # as well as any symbol that contains `d'.
16109 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16111 # platforms (ab)use it in PIC code, but their linkers get confused if
16112 # the symbol is explicitly referenced. Since portable code cannot
16113 # rely on this symbol name, it's probably fine to never include it in
16114 # preloaded symbol tables.
16115 extract_expsyms_cmds=
16117 case $host_os in
16118 cygwin* | mingw* | pw32*)
16119 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16120 # When not using gcc, we currently assume that we are using
16121 # Microsoft Visual C++.
16122 if test "$GCC" != yes; then
16123 with_gnu_ld=no
16126 openbsd*)
16127 with_gnu_ld=no
16129 esac
16131 ld_shlibs_GCJ=yes
16132 if test "$with_gnu_ld" = yes; then
16133 # If archive_cmds runs LD, not CC, wlarc should be empty
16134 wlarc='${wl}'
16136 # See if GNU ld supports shared libraries.
16137 case $host_os in
16138 aix3* | aix4* | aix5*)
16139 # On AIX/PPC, the GNU linker is very broken
16140 if test "$host_cpu" != ia64; then
16141 ld_shlibs_GCJ=no
16142 cat <<EOF 1>&2
16144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16145 *** to be unable to reliably create shared libraries on AIX.
16146 *** Therefore, libtool is disabling shared libraries support. If you
16147 *** really care for shared libraries, you may want to modify your PATH
16148 *** so that a non-GNU linker is found, and then restart.
16154 amigaos*)
16155 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16157 hardcode_minus_L_GCJ=yes
16159 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16160 # that the semantics of dynamic libraries on AmigaOS, at least up
16161 # to version 4, is to share data among multiple programs linked
16162 # with the same dynamic library. Since this doesn't match the
16163 # behavior of shared libraries on other platforms, we can't use
16164 # them.
16165 ld_shlibs_GCJ=no
16168 beos*)
16169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16170 allow_undefined_flag_GCJ=unsupported
16171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16172 # support --undefined. This deserves some investigation. FIXME
16173 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 else
16175 ld_shlibs_GCJ=no
16179 cygwin* | mingw* | pw32*)
16180 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16181 # as there is no search path for DLLs.
16182 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16183 allow_undefined_flag_GCJ=unsupported
16184 always_export_symbols_GCJ=no
16185 enable_shared_with_static_runtimes_GCJ=yes
16186 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16188 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16189 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16190 # If the export-symbols file already is a .def file (1st line
16191 # is EXPORTS), use it as is; otherwise, prepend...
16192 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16193 cp $export_symbols $output_objdir/$soname.def;
16194 else
16195 echo EXPORTS > $output_objdir/$soname.def;
16196 cat $export_symbols >> $output_objdir/$soname.def;
16198 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16199 else
16200 ld_shlibs=no
16204 netbsd*)
16205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16206 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16207 wlarc=
16208 else
16209 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16210 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16214 solaris* | sysv5*)
16215 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16216 ld_shlibs_GCJ=no
16217 cat <<EOF 1>&2
16219 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16220 *** create shared libraries on Solaris systems. Therefore, libtool
16221 *** is disabling shared libraries support. We urge you to upgrade GNU
16222 *** binutils to release 2.9.1 or newer. Another option is to modify
16223 *** your PATH or compiler configuration so that the native linker is
16224 *** used, and then restart.
16227 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16228 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16229 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16230 else
16231 ld_shlibs_GCJ=no
16235 sunos4*)
16236 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16237 wlarc=
16238 hardcode_direct_GCJ=yes
16239 hardcode_shlibpath_var_GCJ=no
16243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16244 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16245 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16246 else
16247 ld_shlibs_GCJ=no
16250 esac
16252 if test "$ld_shlibs_GCJ" = yes; then
16253 runpath_var=LD_RUN_PATH
16254 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16255 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16256 # ancient GNU ld didn't support --whole-archive et. al.
16257 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16258 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16259 else
16260 whole_archive_flag_spec_GCJ=
16263 else
16264 # PORTME fill in a description of your system's linker (not GNU ld)
16265 case $host_os in
16266 aix3*)
16267 allow_undefined_flag_GCJ=unsupported
16268 always_export_symbols_GCJ=yes
16269 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16270 # Note: this linker hardcodes the directories in LIBPATH if there
16271 # are no directories specified by -L.
16272 hardcode_minus_L_GCJ=yes
16273 if test "$GCC" = yes && test -z "$link_static_flag"; then
16274 # Neither direct hardcoding nor static linking is supported with a
16275 # broken collect2.
16276 hardcode_direct_GCJ=unsupported
16280 aix4* | aix5*)
16281 if test "$host_cpu" = ia64; then
16282 # On IA64, the linker does run time linking by default, so we don't
16283 # have to do anything special.
16284 aix_use_runtimelinking=no
16285 exp_sym_flag='-Bexport'
16286 no_entry_flag=""
16287 else
16288 # If we're using GNU nm, then we don't want the "-C" option.
16289 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16290 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16291 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'
16292 else
16293 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'
16295 aix_use_runtimelinking=no
16297 # Test if we are trying to use run time linking or normal
16298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16299 # need to do runtime linking.
16300 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16301 for ld_flag in $LDFLAGS; do
16302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16303 aix_use_runtimelinking=yes
16304 break
16306 done
16307 esac
16309 exp_sym_flag='-bexport'
16310 no_entry_flag='-bnoentry'
16313 # When large executables or shared objects are built, AIX ld can
16314 # have problems creating the table of contents. If linking a library
16315 # or program results in "error TOC overflow" add -mminimal-toc to
16316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16319 archive_cmds_GCJ=''
16320 hardcode_direct_GCJ=yes
16321 hardcode_libdir_separator_GCJ=':'
16322 link_all_deplibs_GCJ=yes
16324 if test "$GCC" = yes; then
16325 case $host_os in aix4.012|aix4.012.*)
16326 # We only want to do this on AIX 4.2 and lower, the check
16327 # below for broken collect2 doesn't work under 4.3+
16328 collect2name=`${CC} -print-prog-name=collect2`
16329 if test -f "$collect2name" && \
16330 strings "$collect2name" | grep resolve_lib_name >/dev/null
16331 then
16332 # We have reworked collect2
16333 hardcode_direct_GCJ=yes
16334 else
16335 # We have old collect2
16336 hardcode_direct_GCJ=unsupported
16337 # It fails to find uninstalled libraries when the uninstalled
16338 # path is not listed in the libpath. Setting hardcode_minus_L
16339 # to unsupported forces relinking
16340 hardcode_minus_L_GCJ=yes
16341 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16342 hardcode_libdir_separator_GCJ=
16344 esac
16345 shared_flag='-shared'
16346 else
16347 # not using gcc
16348 if test "$host_cpu" = ia64; then
16349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16350 # chokes on -Wl,-G. The following line is correct:
16351 shared_flag='-G'
16352 else
16353 if test "$aix_use_runtimelinking" = yes; then
16354 shared_flag='${wl}-G'
16355 else
16356 shared_flag='${wl}-bM:SRE'
16361 # It seems that -bexpall does not export symbols beginning with
16362 # underscore (_), so it is better to generate a list of symbols to export.
16363 always_export_symbols_GCJ=yes
16364 if test "$aix_use_runtimelinking" = yes; then
16365 # Warning - without using the other runtime loading flags (-brtl),
16366 # -berok will link without error, but may produce a broken library.
16367 allow_undefined_flag_GCJ='-berok'
16368 # Determine the default libpath from the value encoded in an empty executable.
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h. */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16377 main ()
16381 return 0;
16383 _ACEOF
16384 rm -f conftest.$ac_objext conftest$ac_exeext
16385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16386 (eval $ac_link) 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
16393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest$ac_exeext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16408 # Check for a 64-bit object if we didn't find anything.
16409 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; }
16410 }'`; fi
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16416 rm -f conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
16418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16420 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16421 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"
16422 else
16423 if test "$host_cpu" = ia64; then
16424 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16425 allow_undefined_flag_GCJ="-z nodefs"
16426 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"
16427 else
16428 # Determine the default libpath from the value encoded in an empty executable.
16429 cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h. */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16437 main ()
16441 return 0;
16443 _ACEOF
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446 (eval $ac_link) 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest$ac_exeext'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16468 # Check for a 64-bit object if we didn't find anything.
16469 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; }
16470 }'`; fi
16471 else
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16476 rm -f conftest.err conftest.$ac_objext \
16477 conftest$ac_exeext conftest.$ac_ext
16478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16480 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16481 # Warning - without using the other run time loading flags,
16482 # -berok will link without error, but may produce a broken library.
16483 no_undefined_flag_GCJ=' ${wl}-bernotok'
16484 allow_undefined_flag_GCJ=' ${wl}-berok'
16485 # -bexpall does not export symbols beginning with underscore (_)
16486 always_export_symbols_GCJ=yes
16487 # Exported symbols can be pulled into shared objects from archives
16488 whole_archive_flag_spec_GCJ=' '
16489 archive_cmds_need_lc_GCJ=yes
16490 # This is similar to how AIX traditionally builds it's shared libraries.
16491 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16496 amigaos*)
16497 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16498 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16499 hardcode_minus_L_GCJ=yes
16500 # see comment about different semantics on the GNU ld section
16501 ld_shlibs_GCJ=no
16504 bsdi4*)
16505 export_dynamic_flag_spec_GCJ=-rdynamic
16508 cygwin* | mingw* | pw32*)
16509 # When not using gcc, we currently assume that we are using
16510 # Microsoft Visual C++.
16511 # hardcode_libdir_flag_spec is actually meaningless, as there is
16512 # no search path for DLLs.
16513 hardcode_libdir_flag_spec_GCJ=' '
16514 allow_undefined_flag_GCJ=unsupported
16515 # Tell ltmain to make .lib files, not .a files.
16516 libext=lib
16517 # Tell ltmain to make .dll files, not .so files.
16518 shrext=".dll"
16519 # FIXME: Setting linknames here is a bad hack.
16520 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16521 # The linker will automatically build a .lib file if we build a DLL.
16522 old_archive_From_new_cmds_GCJ='true'
16523 # FIXME: Should let the user specify the lib program.
16524 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16525 fix_srcfile_path='`cygpath -w "$srcfile"`'
16526 enable_shared_with_static_runtimes_GCJ=yes
16529 darwin* | rhapsody*)
16530 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16531 archive_cmds_need_lc_GCJ=no
16532 case "$host_os" in
16533 rhapsody* | darwin1.[012])
16534 allow_undefined_flag_GCJ='-undefined suppress'
16536 *) # Darwin 1.3 on
16537 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16539 esac
16540 # FIXME: Relying on posixy $() will cause problems for
16541 # cross-compilation, but unfortunately the echo tests do not
16542 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16543 # `"' quotes if we put them in here... so don't!
16544 lt_int_apple_cc_single_mod=no
16545 output_verbose_link_cmd='echo'
16546 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16547 lt_int_apple_cc_single_mod=yes
16549 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16550 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16551 else
16552 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16554 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16556 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16557 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16558 else
16559 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16561 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16562 hardcode_direct_GCJ=no
16563 hardcode_automatic_GCJ=yes
16564 hardcode_shlibpath_var_GCJ=unsupported
16565 whole_archive_flag_spec_GCJ='-all_load $convenience'
16566 link_all_deplibs_GCJ=yes
16570 dgux*)
16571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16572 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16573 hardcode_shlibpath_var_GCJ=no
16576 freebsd1*)
16577 ld_shlibs_GCJ=no
16580 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16581 # support. Future versions do this automatically, but an explicit c++rt0.o
16582 # does not break anything, and helps significantly (at the cost of a little
16583 # extra space).
16584 freebsd2.2*)
16585 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16586 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16587 hardcode_direct_GCJ=yes
16588 hardcode_shlibpath_var_GCJ=no
16591 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16592 freebsd2*)
16593 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16594 hardcode_direct_GCJ=yes
16595 hardcode_minus_L_GCJ=yes
16596 hardcode_shlibpath_var_GCJ=no
16599 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16600 freebsd*)
16601 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16602 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16603 hardcode_direct_GCJ=yes
16604 hardcode_shlibpath_var_GCJ=no
16607 hpux9*)
16608 if test "$GCC" = yes; then
16609 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16610 else
16611 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16613 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16614 hardcode_libdir_separator_GCJ=:
16615 hardcode_direct_GCJ=yes
16617 # hardcode_minus_L: Not really in the search PATH,
16618 # but as the default location of the library.
16619 hardcode_minus_L_GCJ=yes
16620 export_dynamic_flag_spec_GCJ='${wl}-E'
16623 hpux10* | hpux11*)
16624 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16625 case "$host_cpu" in
16626 hppa*64*|ia64*)
16627 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16630 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16632 esac
16633 else
16634 case "$host_cpu" in
16635 hppa*64*|ia64*)
16636 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16639 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16641 esac
16643 if test "$with_gnu_ld" = no; then
16644 case "$host_cpu" in
16645 hppa*64*)
16646 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16647 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16648 hardcode_libdir_separator_GCJ=:
16649 hardcode_direct_GCJ=no
16650 hardcode_shlibpath_var_GCJ=no
16652 ia64*)
16653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16654 hardcode_direct_GCJ=no
16655 hardcode_shlibpath_var_GCJ=no
16657 # hardcode_minus_L: Not really in the search PATH,
16658 # but as the default location of the library.
16659 hardcode_minus_L_GCJ=yes
16662 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16663 hardcode_libdir_separator_GCJ=:
16664 hardcode_direct_GCJ=yes
16665 export_dynamic_flag_spec_GCJ='${wl}-E'
16667 # hardcode_minus_L: Not really in the search PATH,
16668 # but as the default location of the library.
16669 hardcode_minus_L_GCJ=yes
16671 esac
16675 irix5* | irix6* | nonstopux*)
16676 if test "$GCC" = yes; then
16677 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'
16678 else
16679 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'
16680 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16682 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16683 hardcode_libdir_separator_GCJ=:
16684 link_all_deplibs_GCJ=yes
16687 netbsd*)
16688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16689 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16690 else
16691 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16693 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16694 hardcode_direct_GCJ=yes
16695 hardcode_shlibpath_var_GCJ=no
16698 newsos6)
16699 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct_GCJ=yes
16701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16702 hardcode_libdir_separator_GCJ=:
16703 hardcode_shlibpath_var_GCJ=no
16706 openbsd*)
16707 hardcode_direct_GCJ=yes
16708 hardcode_shlibpath_var_GCJ=no
16709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16710 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16712 export_dynamic_flag_spec_GCJ='${wl}-E'
16713 else
16714 case $host_os in
16715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16716 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16717 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16720 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16723 esac
16727 os2*)
16728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729 hardcode_minus_L_GCJ=yes
16730 allow_undefined_flag_GCJ=unsupported
16731 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16732 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16735 osf3*)
16736 if test "$GCC" = yes; then
16737 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16738 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'
16739 else
16740 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16741 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'
16743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744 hardcode_libdir_separator_GCJ=:
16747 osf4* | osf5*) # as osf3* with the addition of -msym flag
16748 if test "$GCC" = yes; then
16749 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16750 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'
16751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16752 else
16753 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16754 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'
16755 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~
16756 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16758 # Both c and cxx compiler support -rpath directly
16759 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16761 hardcode_libdir_separator_GCJ=:
16764 sco3.2v5*)
16765 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16766 hardcode_shlibpath_var_GCJ=no
16767 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16768 runpath_var=LD_RUN_PATH
16769 hardcode_runpath_var=yes
16772 solaris*)
16773 no_undefined_flag_GCJ=' -z text'
16774 if test "$GCC" = yes; then
16775 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16776 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16777 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16778 else
16779 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16783 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16784 hardcode_shlibpath_var_GCJ=no
16785 case $host_os in
16786 solaris2.[0-5] | solaris2.[0-5].*) ;;
16787 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16788 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16789 esac
16790 link_all_deplibs_GCJ=yes
16793 sunos4*)
16794 if test "x$host_vendor" = xsequent; then
16795 # Use $CC to link under sequent, because it throws in some extra .o
16796 # files that make .init and .fini sections work.
16797 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16798 else
16799 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16801 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16802 hardcode_direct_GCJ=yes
16803 hardcode_minus_L_GCJ=yes
16804 hardcode_shlibpath_var_GCJ=no
16807 sysv4)
16808 case $host_vendor in
16809 sni)
16810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16811 hardcode_direct_GCJ=yes # is this really true???
16813 siemens)
16814 ## LD is ld it makes a PLAMLIB
16815 ## CC just makes a GrossModule.
16816 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16817 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16818 hardcode_direct_GCJ=no
16820 motorola)
16821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16822 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16824 esac
16825 runpath_var='LD_RUN_PATH'
16826 hardcode_shlibpath_var_GCJ=no
16829 sysv4.3*)
16830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16831 hardcode_shlibpath_var_GCJ=no
16832 export_dynamic_flag_spec_GCJ='-Bexport'
16835 sysv4*MP*)
16836 if test -d /usr/nec; then
16837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16838 hardcode_shlibpath_var_GCJ=no
16839 runpath_var=LD_RUN_PATH
16840 hardcode_runpath_var=yes
16841 ld_shlibs_GCJ=yes
16845 sysv4.2uw2*)
16846 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16847 hardcode_direct_GCJ=yes
16848 hardcode_minus_L_GCJ=no
16849 hardcode_shlibpath_var_GCJ=no
16850 hardcode_runpath_var=yes
16851 runpath_var=LD_RUN_PATH
16854 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16855 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16856 if test "$GCC" = yes; then
16857 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16858 else
16859 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16861 runpath_var='LD_RUN_PATH'
16862 hardcode_shlibpath_var_GCJ=no
16865 sysv5*)
16866 no_undefined_flag_GCJ=' -z text'
16867 # $CC -shared without GNU ld will not create a library from C++
16868 # object files and a static libstdc++, better avoid it by now
16869 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16870 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16871 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16872 hardcode_libdir_flag_spec_GCJ=
16873 hardcode_shlibpath_var_GCJ=no
16874 runpath_var='LD_RUN_PATH'
16877 uts4*)
16878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16880 hardcode_shlibpath_var_GCJ=no
16884 ld_shlibs_GCJ=no
16886 esac
16889 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16890 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16891 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16894 if test "$GCC" = yes; then
16895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16899 # Do we need to explicitly link libc?
16901 case "x$archive_cmds_need_lc_GCJ" in
16902 x|xyes)
16903 # Assume -lc should be added
16904 archive_cmds_need_lc_GCJ=yes
16906 if test "$enable_shared" = yes && test "$GCC" = yes; then
16907 case $archive_cmds_GCJ in
16908 *'~'*)
16909 # FIXME: we may have to deal with multi-command sequences.
16911 '$CC '*)
16912 # Test whether the compiler implicitly links with -lc since on some
16913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16914 # to ld, don't add -lc before -lgcc.
16915 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16916 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16917 $rm conftest*
16918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } 2>conftest.err; then
16925 soname=conftest
16926 lib=conftest
16927 libobjs=conftest.$ac_objext
16928 deplibs=
16929 wl=$lt_prog_compiler_wl_GCJ
16930 compiler_flags=-v
16931 linker_flags=-v
16932 verstring=
16933 output_objdir=.
16934 libname=conftest
16935 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16936 allow_undefined_flag_GCJ=
16937 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16938 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }
16942 then
16943 archive_cmds_need_lc_GCJ=no
16944 else
16945 archive_cmds_need_lc_GCJ=yes
16947 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16948 else
16949 cat conftest.err 1>&5
16951 $rm conftest*
16952 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16953 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16955 esac
16958 esac
16960 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16961 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16962 hardcode_action_GCJ=
16963 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16964 test -n "$runpath_var GCJ" || \
16965 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16967 # We can hardcode non-existant directories.
16968 if test "$hardcode_direct_GCJ" != no &&
16969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16970 # have to relink, otherwise we might link with an installed library
16971 # when we should be linking with a yet-to-be-installed one
16972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16973 test "$hardcode_minus_L_GCJ" != no; then
16974 # Linking always hardcodes the temporary library directory.
16975 hardcode_action_GCJ=relink
16976 else
16977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16978 hardcode_action_GCJ=immediate
16980 else
16981 # We cannot hardcode anything, or else we can only hardcode existing
16982 # directories.
16983 hardcode_action_GCJ=unsupported
16985 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16986 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16988 if test "$hardcode_action_GCJ" = relink; then
16989 # Fast installation is not supported
16990 enable_fast_install=no
16991 elif test "$shlibpath_overrides_runpath" = yes ||
16992 test "$enable_shared" = no; then
16993 # Fast installation is not necessary
16994 enable_fast_install=needless
16997 striplib=
16998 old_striplib=
16999 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17000 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17001 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17002 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17003 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17004 echo "$as_me:$LINENO: result: yes" >&5
17005 echo "${ECHO_T}yes" >&6
17006 else
17007 # FIXME - insert some real tests, host_os isn't really good enough
17008 case $host_os in
17009 darwin*)
17010 if test -n "$STRIP" ; then
17011 striplib="$STRIP -x"
17012 echo "$as_me:$LINENO: result: yes" >&5
17013 echo "${ECHO_T}yes" >&6
17014 else
17015 echo "$as_me:$LINENO: result: no" >&5
17016 echo "${ECHO_T}no" >&6
17020 echo "$as_me:$LINENO: result: no" >&5
17021 echo "${ECHO_T}no" >&6
17023 esac
17026 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17028 library_names_spec=
17029 libname_spec='lib$name'
17030 soname_spec=
17031 shrext=".so"
17032 postinstall_cmds=
17033 postuninstall_cmds=
17034 finish_cmds=
17035 finish_eval=
17036 shlibpath_var=
17037 shlibpath_overrides_runpath=unknown
17038 version_type=none
17039 dynamic_linker="$host_os ld.so"
17040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17041 if test "$GCC" = yes; then
17042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17044 # if the path contains ";" then we assume it to be the separator
17045 # otherwise default to the standard path separator (i.e. ":") - it is
17046 # assumed that no part of a normal pathname contains ";" but that should
17047 # okay in the real world where ";" in dirpaths is itself problematic.
17048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17049 else
17050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17052 else
17053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17055 need_lib_prefix=unknown
17056 hardcode_into_libs=no
17058 # when you set need_version to no, make sure it does not cause -set_version
17059 # flags to be left without arguments
17060 need_version=unknown
17062 case $host_os in
17063 aix3*)
17064 version_type=linux
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17066 shlibpath_var=LIBPATH
17068 # AIX 3 has no versioning support, so we append a major version to the name.
17069 soname_spec='${libname}${release}${shared_ext}$major'
17072 aix4* | aix5*)
17073 version_type=linux
17074 need_lib_prefix=no
17075 need_version=no
17076 hardcode_into_libs=yes
17077 if test "$host_cpu" = ia64; then
17078 # AIX 5 supports IA64
17079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17080 shlibpath_var=LD_LIBRARY_PATH
17081 else
17082 # With GCC up to 2.95.x, collect2 would create an import file
17083 # for dependence libraries. The import file would start with
17084 # the line `#! .'. This would cause the generated library to
17085 # depend on `.', always an invalid library. This was fixed in
17086 # development snapshots of GCC prior to 3.0.
17087 case $host_os in
17088 aix4 | aix4.[01] | aix4.[01].*)
17089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17090 echo ' yes '
17091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17093 else
17094 can_build_shared=no
17097 esac
17098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17099 # soname into executable. Probably we can add versioning support to
17100 # collect2, so additional links can be useful in future.
17101 if test "$aix_use_runtimelinking" = yes; then
17102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17103 # instead of lib<name>.a to let people know that these are not
17104 # typical AIX shared libraries.
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106 else
17107 # We preserve .a as extension for shared libraries through AIX4.2
17108 # and later when we are not doing run time linking.
17109 library_names_spec='${libname}${release}.a $libname.a'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17112 shlibpath_var=LIBPATH
17116 amigaos*)
17117 library_names_spec='$libname.ixlibrary $libname.a'
17118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17119 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'
17122 beos*)
17123 library_names_spec='${libname}${shared_ext}'
17124 dynamic_linker="$host_os ld.so"
17125 shlibpath_var=LIBRARY_PATH
17128 bsdi4*)
17129 version_type=linux
17130 need_version=no
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17132 soname_spec='${libname}${release}${shared_ext}$major'
17133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17134 shlibpath_var=LD_LIBRARY_PATH
17135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17137 # the default ld.so.conf also contains /usr/contrib/lib and
17138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17139 # libtool to hard-code these into programs
17142 cygwin* | mingw* | pw32*)
17143 version_type=windows
17144 shrext=".dll"
17145 need_version=no
17146 need_lib_prefix=no
17148 case $GCC,$host_os in
17149 yes,cygwin* | yes,mingw* | yes,pw32*)
17150 library_names_spec='$libname.dll.a'
17151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17152 postinstall_cmds='base_file=`basename \${file}`~
17153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17154 dldir=$destdir/`dirname \$dlpath`~
17155 test -d \$dldir || mkdir -p \$dldir~
17156 $install_prog $dir/$dlname \$dldir/$dlname'
17157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17158 dlpath=$dir/\$dldll~
17159 $rm \$dlpath'
17160 shlibpath_overrides_runpath=yes
17162 case $host_os in
17163 cygwin*)
17164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17166 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
17168 mingw*)
17169 # MinGW DLLs use traditional 'lib' prefix
17170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17172 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17173 # It is most probably a Windows format PATH printed by
17174 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17175 # path with ; separators, and with drive letters. We can handle the
17176 # drive letters (cygwin fileutils understands them), so leave them,
17177 # especially as we might pass files found there to a mingw objdump,
17178 # which wouldn't understand a cygwinified path. Ahh.
17179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17180 else
17181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17184 pw32*)
17185 # pw32 DLLs use 'pw' prefix rather than 'lib'
17186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17188 esac
17192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17194 esac
17195 dynamic_linker='Win32 ld.exe'
17196 # FIXME: first we should search . and the directory the executable is in
17197 shlibpath_var=PATH
17200 darwin* | rhapsody*)
17201 dynamic_linker="$host_os dyld"
17202 version_type=darwin
17203 need_lib_prefix=no
17204 need_version=no
17205 # FIXME: Relying on posixy $() will cause problems for
17206 # cross-compilation, but unfortunately the echo tests do not
17207 # yet detect zsh echo's removal of \ escapes.
17208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17209 soname_spec='${libname}${release}${major}$shared_ext'
17210 shlibpath_overrides_runpath=yes
17211 shlibpath_var=DYLD_LIBRARY_PATH
17212 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17214 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17215 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"`
17217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17220 dgux*)
17221 version_type=linux
17222 need_lib_prefix=no
17223 need_version=no
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17226 shlibpath_var=LD_LIBRARY_PATH
17229 freebsd1*)
17230 dynamic_linker=no
17233 freebsd*)
17234 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17235 version_type=freebsd-$objformat
17236 case $version_type in
17237 freebsd-elf*)
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17239 need_version=no
17240 need_lib_prefix=no
17242 freebsd-*)
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17244 need_version=yes
17246 esac
17247 shlibpath_var=LD_LIBRARY_PATH
17248 case $host_os in
17249 freebsd2*)
17250 shlibpath_overrides_runpath=yes
17252 freebsd3.01* | freebsdelf3.01*)
17253 shlibpath_overrides_runpath=yes
17254 hardcode_into_libs=yes
17256 *) # from 3.2 on
17257 shlibpath_overrides_runpath=no
17258 hardcode_into_libs=yes
17260 esac
17263 gnu*)
17264 version_type=linux
17265 need_lib_prefix=no
17266 need_version=no
17267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 shlibpath_var=LD_LIBRARY_PATH
17270 hardcode_into_libs=yes
17273 hpux9* | hpux10* | hpux11*)
17274 # Give a soname corresponding to the major version so that dld.sl refuses to
17275 # link against other versions.
17276 version_type=sunos
17277 need_lib_prefix=no
17278 need_version=no
17279 case "$host_cpu" in
17280 ia64*)
17281 shrext='.so'
17282 hardcode_into_libs=yes
17283 dynamic_linker="$host_os dld.so"
17284 shlibpath_var=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 if test "X$HPUX_IA64_MODE" = X32; then
17289 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17290 else
17291 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17295 hppa*64*)
17296 shrext='.sl'
17297 hardcode_into_libs=yes
17298 dynamic_linker="$host_os dld.sl"
17299 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17307 shrext='.sl'
17308 dynamic_linker="$host_os dld.sl"
17309 shlibpath_var=SHLIB_PATH
17310 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17314 esac
17315 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17316 postinstall_cmds='chmod 555 $lib'
17319 irix5* | irix6* | nonstopux*)
17320 case $host_os in
17321 nonstopux*) version_type=nonstopux ;;
17323 if test "$lt_cv_prog_gnu_ld" = yes; then
17324 version_type=linux
17325 else
17326 version_type=irix
17327 fi ;;
17328 esac
17329 need_lib_prefix=no
17330 need_version=no
17331 soname_spec='${libname}${release}${shared_ext}$major'
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17333 case $host_os in
17334 irix5* | nonstopux*)
17335 libsuff= shlibsuff=
17338 case $LD in # libtool.m4 will add one of these switches to LD
17339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17340 libsuff= shlibsuff= libmagic=32-bit;;
17341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17342 libsuff=32 shlibsuff=N32 libmagic=N32;;
17343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17345 *) libsuff= shlibsuff= libmagic=never-match;;
17346 esac
17348 esac
17349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17350 shlibpath_overrides_runpath=no
17351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17353 hardcode_into_libs=yes
17356 # No shared lib support for Linux oldld, aout, or coff.
17357 linux*oldld* | linux*aout* | linux*coff*)
17358 dynamic_linker=no
17361 # This must be Linux ELF.
17362 linux*)
17363 version_type=linux
17364 need_lib_prefix=no
17365 need_version=no
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367 soname_spec='${libname}${release}${shared_ext}$major'
17368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=no
17371 # This implies no fast_install, which is unacceptable.
17372 # Some rework will be needed to allow for fast_install
17373 # before this can be enabled.
17374 hardcode_into_libs=yes
17376 # We used to test for /lib/ld.so.1 and disable shared libraries on
17377 # powerpc, because MkLinux only supported shared libraries with the
17378 # GNU dynamic linker. Since this was broken with cross compilers,
17379 # most powerpc-linux boxes support dynamic linking these days and
17380 # people can always --disable-shared, the test was removed, and we
17381 # assume the GNU/Linux dynamic linker is in use.
17382 dynamic_linker='GNU/Linux ld.so'
17385 netbsd*)
17386 version_type=sunos
17387 need_lib_prefix=no
17388 need_version=no
17389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17392 dynamic_linker='NetBSD (a.out) ld.so'
17393 else
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17395 soname_spec='${libname}${release}${shared_ext}$major'
17396 dynamic_linker='NetBSD ld.elf_so'
17398 shlibpath_var=LD_LIBRARY_PATH
17399 shlibpath_overrides_runpath=yes
17400 hardcode_into_libs=yes
17403 newsos6)
17404 version_type=linux
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 shlibpath_var=LD_LIBRARY_PATH
17407 shlibpath_overrides_runpath=yes
17410 nto-qnx)
17411 version_type=linux
17412 need_lib_prefix=no
17413 need_version=no
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 shlibpath_var=LD_LIBRARY_PATH
17417 shlibpath_overrides_runpath=yes
17420 openbsd*)
17421 version_type=sunos
17422 need_lib_prefix=no
17423 need_version=no
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17428 case $host_os in
17429 openbsd2.[89] | openbsd2.[89].*)
17430 shlibpath_overrides_runpath=no
17433 shlibpath_overrides_runpath=yes
17435 esac
17436 else
17437 shlibpath_overrides_runpath=yes
17441 os2*)
17442 libname_spec='$name'
17443 shrext=".dll"
17444 need_lib_prefix=no
17445 library_names_spec='$libname${shared_ext} $libname.a'
17446 dynamic_linker='OS/2 ld.exe'
17447 shlibpath_var=LIBPATH
17450 osf3* | osf4* | osf5*)
17451 version_type=osf
17452 need_lib_prefix=no
17453 need_version=no
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456 shlibpath_var=LD_LIBRARY_PATH
17457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17461 sco3.2v5*)
17462 version_type=osf
17463 soname_spec='${libname}${release}${shared_ext}$major'
17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465 shlibpath_var=LD_LIBRARY_PATH
17468 solaris*)
17469 version_type=linux
17470 need_lib_prefix=no
17471 need_version=no
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=yes
17476 hardcode_into_libs=yes
17477 # ldd complains unless libraries are executable
17478 postinstall_cmds='chmod +x $lib'
17481 sunos4*)
17482 version_type=sunos
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 shlibpath_overrides_runpath=yes
17487 if test "$with_gnu_ld" = yes; then
17488 need_lib_prefix=no
17490 need_version=yes
17493 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17494 version_type=linux
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496 soname_spec='${libname}${release}${shared_ext}$major'
17497 shlibpath_var=LD_LIBRARY_PATH
17498 case $host_vendor in
17499 sni)
17500 shlibpath_overrides_runpath=no
17501 need_lib_prefix=no
17502 export_dynamic_flag_spec='${wl}-Blargedynsym'
17503 runpath_var=LD_RUN_PATH
17505 siemens)
17506 need_lib_prefix=no
17508 motorola)
17509 need_lib_prefix=no
17510 need_version=no
17511 shlibpath_overrides_runpath=no
17512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17514 esac
17517 sysv4*MP*)
17518 if test -d /usr/nec ;then
17519 version_type=linux
17520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17521 soname_spec='$libname${shared_ext}.$major'
17522 shlibpath_var=LD_LIBRARY_PATH
17526 uts4*)
17527 version_type=linux
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 soname_spec='${libname}${release}${shared_ext}$major'
17530 shlibpath_var=LD_LIBRARY_PATH
17534 dynamic_linker=no
17536 esac
17537 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17538 echo "${ECHO_T}$dynamic_linker" >&6
17539 test "$dynamic_linker" = no && can_build_shared=no
17541 if test "x$enable_dlopen" != xyes; then
17542 enable_dlopen=unknown
17543 enable_dlopen_self=unknown
17544 enable_dlopen_self_static=unknown
17545 else
17546 lt_cv_dlopen=no
17547 lt_cv_dlopen_libs=
17549 case $host_os in
17550 beos*)
17551 lt_cv_dlopen="load_add_on"
17552 lt_cv_dlopen_libs=
17553 lt_cv_dlopen_self=yes
17556 mingw* | pw32*)
17557 lt_cv_dlopen="LoadLibrary"
17558 lt_cv_dlopen_libs=
17561 cygwin*)
17562 lt_cv_dlopen="dlopen"
17563 lt_cv_dlopen_libs=
17566 darwin*)
17567 # if libdl is installed we need to link against it
17568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573 ac_check_lib_save_LIBS=$LIBS
17574 LIBS="-ldl $LIBS"
17575 cat >conftest.$ac_ext <<_ACEOF
17576 /* confdefs.h. */
17577 _ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17582 /* Override any gcc2 internal prototype to avoid an error. */
17583 #ifdef __cplusplus
17584 extern "C"
17585 #endif
17586 /* We use char because int might match the return type of a gcc2
17587 builtin and then its argument prototype would still apply. */
17588 char dlopen ();
17590 main ()
17592 dlopen ();
17594 return 0;
17596 _ACEOF
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17599 (eval $ac_link) 2>conftest.er1
17600 ac_status=$?
17601 grep -v '^ *+' conftest.er1 >conftest.err
17602 rm -f conftest.er1
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest$ac_exeext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_cv_lib_dl_dlopen=yes
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 ac_cv_lib_dl_dlopen=no
17625 rm -f conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627 LIBS=$ac_check_lib_save_LIBS
17629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17631 if test $ac_cv_lib_dl_dlopen = yes; then
17632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17633 else
17635 lt_cv_dlopen="dyld"
17636 lt_cv_dlopen_libs=
17637 lt_cv_dlopen_self=yes
17644 echo "$as_me:$LINENO: checking for shl_load" >&5
17645 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17646 if test "${ac_cv_func_shl_load+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649 cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h. */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17657 #define shl_load innocuous_shl_load
17659 /* System header to define __stub macros and hopefully few prototypes,
17660 which can conflict with char shl_load (); below.
17661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17662 <limits.h> exists even on freestanding compilers. */
17664 #ifdef __STDC__
17665 # include <limits.h>
17666 #else
17667 # include <assert.h>
17668 #endif
17670 #undef shl_load
17672 /* Override any gcc2 internal prototype to avoid an error. */
17673 #ifdef __cplusplus
17674 extern "C"
17676 #endif
17677 /* We use char because int might match the return type of a gcc2
17678 builtin and then its argument prototype would still apply. */
17679 char shl_load ();
17680 /* The GNU C library defines this for functions which it implements
17681 to always fail with ENOSYS. Some functions are actually named
17682 something starting with __ and the normal name is an alias. */
17683 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17684 choke me
17685 #else
17686 char (*f) () = shl_load;
17687 #endif
17688 #ifdef __cplusplus
17690 #endif
17693 main ()
17695 return f != shl_load;
17697 return 0;
17699 _ACEOF
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702 (eval $ac_link) 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest$ac_exeext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_cv_func_shl_load=yes
17722 else
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17726 ac_cv_func_shl_load=no
17728 rm -f conftest.err conftest.$ac_objext \
17729 conftest$ac_exeext conftest.$ac_ext
17731 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17733 if test $ac_cv_func_shl_load = yes; then
17734 lt_cv_dlopen="shl_load"
17735 else
17736 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17737 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741 ac_check_lib_save_LIBS=$LIBS
17742 LIBS="-ldld $LIBS"
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17750 /* Override any gcc2 internal prototype to avoid an error. */
17751 #ifdef __cplusplus
17752 extern "C"
17753 #endif
17754 /* We use char because int might match the return type of a gcc2
17755 builtin and then its argument prototype would still apply. */
17756 char shl_load ();
17758 main ()
17760 shl_load ();
17762 return 0;
17764 _ACEOF
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17767 (eval $ac_link) 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_cv_lib_dld_shl_load=yes
17787 else
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 ac_cv_lib_dld_shl_load=no
17793 rm -f conftest.err conftest.$ac_objext \
17794 conftest$ac_exeext conftest.$ac_ext
17795 LIBS=$ac_check_lib_save_LIBS
17797 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17799 if test $ac_cv_lib_dld_shl_load = yes; then
17800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17801 else
17802 echo "$as_me:$LINENO: checking for dlopen" >&5
17803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17804 if test "${ac_cv_func_dlopen+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 else
17807 cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h. */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17815 #define dlopen innocuous_dlopen
17817 /* System header to define __stub macros and hopefully few prototypes,
17818 which can conflict with char dlopen (); below.
17819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17820 <limits.h> exists even on freestanding compilers. */
17822 #ifdef __STDC__
17823 # include <limits.h>
17824 #else
17825 # include <assert.h>
17826 #endif
17828 #undef dlopen
17830 /* Override any gcc2 internal prototype to avoid an error. */
17831 #ifdef __cplusplus
17832 extern "C"
17834 #endif
17835 /* We use char because int might match the return type of a gcc2
17836 builtin and then its argument prototype would still apply. */
17837 char dlopen ();
17838 /* The GNU C library defines this for functions which it implements
17839 to always fail with ENOSYS. Some functions are actually named
17840 something starting with __ and the normal name is an alias. */
17841 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17842 choke me
17843 #else
17844 char (*f) () = dlopen;
17845 #endif
17846 #ifdef __cplusplus
17848 #endif
17851 main ()
17853 return f != dlopen;
17855 return 0;
17857 _ACEOF
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17860 (eval $ac_link) 2>conftest.er1
17861 ac_status=$?
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } &&
17867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; } &&
17873 { ac_try='test -s conftest$ac_exeext'
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_cv_func_dlopen=yes
17880 else
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 ac_cv_func_dlopen=no
17886 rm -f conftest.err conftest.$ac_objext \
17887 conftest$ac_exeext conftest.$ac_ext
17889 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17890 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17891 if test $ac_cv_func_dlopen = yes; then
17892 lt_cv_dlopen="dlopen"
17893 else
17894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 else
17899 ac_check_lib_save_LIBS=$LIBS
17900 LIBS="-ldl $LIBS"
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17908 /* Override any gcc2 internal prototype to avoid an error. */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 /* We use char because int might match the return type of a gcc2
17913 builtin and then its argument prototype would still apply. */
17914 char dlopen ();
17916 main ()
17918 dlopen ();
17920 return 0;
17922 _ACEOF
17923 rm -f conftest.$ac_objext conftest$ac_exeext
17924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17925 (eval $ac_link) 2>conftest.er1
17926 ac_status=$?
17927 grep -v '^ *+' conftest.er1 >conftest.err
17928 rm -f conftest.er1
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } &&
17932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest$ac_exeext'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 ac_cv_lib_dl_dlopen=yes
17945 else
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 ac_cv_lib_dl_dlopen=no
17951 rm -f conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17957 if test $ac_cv_lib_dl_dlopen = yes; then
17958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17959 else
17960 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17961 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965 ac_check_lib_save_LIBS=$LIBS
17966 LIBS="-lsvld $LIBS"
17967 cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h. */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17974 /* Override any gcc2 internal prototype to avoid an error. */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 /* We use char because int might match the return type of a gcc2
17979 builtin and then its argument prototype would still apply. */
17980 char dlopen ();
17982 main ()
17984 dlopen ();
17986 return 0;
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest$ac_exeext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ac_cv_lib_svld_dlopen=yes
18011 else
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18015 ac_cv_lib_svld_dlopen=no
18017 rm -f conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18021 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18022 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18023 if test $ac_cv_lib_svld_dlopen = yes; then
18024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18025 else
18026 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18027 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 else
18031 ac_check_lib_save_LIBS=$LIBS
18032 LIBS="-ldld $LIBS"
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18040 /* Override any gcc2 internal prototype to avoid an error. */
18041 #ifdef __cplusplus
18042 extern "C"
18043 #endif
18044 /* We use char because int might match the return type of a gcc2
18045 builtin and then its argument prototype would still apply. */
18046 char dld_link ();
18048 main ()
18050 dld_link ();
18052 return 0;
18054 _ACEOF
18055 rm -f conftest.$ac_objext conftest$ac_exeext
18056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18057 (eval $ac_link) 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
18064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest$ac_exeext'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 ac_cv_lib_dld_dld_link=yes
18077 else
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18081 ac_cv_lib_dld_dld_link=no
18083 rm -f conftest.err conftest.$ac_objext \
18084 conftest$ac_exeext conftest.$ac_ext
18085 LIBS=$ac_check_lib_save_LIBS
18087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18089 if test $ac_cv_lib_dld_dld_link = yes; then
18090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18109 esac
18111 if test "x$lt_cv_dlopen" != xno; then
18112 enable_dlopen=yes
18113 else
18114 enable_dlopen=no
18117 case $lt_cv_dlopen in
18118 dlopen)
18119 save_CPPFLAGS="$CPPFLAGS"
18120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18122 save_LDFLAGS="$LDFLAGS"
18123 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18125 save_LIBS="$LIBS"
18126 LIBS="$lt_cv_dlopen_libs $LIBS"
18128 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18130 if test "${lt_cv_dlopen_self+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133 if test "$cross_compiling" = yes; then :
18134 lt_cv_dlopen_self=cross
18135 else
18136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18137 lt_status=$lt_dlunknown
18138 cat > conftest.$ac_ext <<EOF
18139 #line 18139 "configure"
18140 #include "confdefs.h"
18142 #if HAVE_DLFCN_H
18143 #include <dlfcn.h>
18144 #endif
18146 #include <stdio.h>
18148 #ifdef RTLD_GLOBAL
18149 # define LT_DLGLOBAL RTLD_GLOBAL
18150 #else
18151 # ifdef DL_GLOBAL
18152 # define LT_DLGLOBAL DL_GLOBAL
18153 # else
18154 # define LT_DLGLOBAL 0
18155 # endif
18156 #endif
18158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18159 find out it does not work in some platform. */
18160 #ifndef LT_DLLAZY_OR_NOW
18161 # ifdef RTLD_LAZY
18162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18163 # else
18164 # ifdef DL_LAZY
18165 # define LT_DLLAZY_OR_NOW DL_LAZY
18166 # else
18167 # ifdef RTLD_NOW
18168 # define LT_DLLAZY_OR_NOW RTLD_NOW
18169 # else
18170 # ifdef DL_NOW
18171 # define LT_DLLAZY_OR_NOW DL_NOW
18172 # else
18173 # define LT_DLLAZY_OR_NOW 0
18174 # endif
18175 # endif
18176 # endif
18177 # endif
18178 #endif
18180 #ifdef __cplusplus
18181 extern "C" void exit (int);
18182 #endif
18184 void fnord() { int i=42;}
18185 int main ()
18187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18188 int status = $lt_dlunknown;
18190 if (self)
18192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18194 /* dlclose (self); */
18197 exit (status);
18200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18201 (eval $ac_link) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18205 (./conftest; exit; ) 2>/dev/null
18206 lt_status=$?
18207 case x$lt_status in
18208 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18209 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18210 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18211 esac
18212 else :
18213 # compilation failed
18214 lt_cv_dlopen_self=no
18217 rm -fr conftest*
18221 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18222 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18224 if test "x$lt_cv_dlopen_self" = xyes; then
18225 LDFLAGS="$LDFLAGS $link_static_flag"
18226 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18227 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18228 if test "${lt_cv_dlopen_self_static+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231 if test "$cross_compiling" = yes; then :
18232 lt_cv_dlopen_self_static=cross
18233 else
18234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18235 lt_status=$lt_dlunknown
18236 cat > conftest.$ac_ext <<EOF
18237 #line 18237 "configure"
18238 #include "confdefs.h"
18240 #if HAVE_DLFCN_H
18241 #include <dlfcn.h>
18242 #endif
18244 #include <stdio.h>
18246 #ifdef RTLD_GLOBAL
18247 # define LT_DLGLOBAL RTLD_GLOBAL
18248 #else
18249 # ifdef DL_GLOBAL
18250 # define LT_DLGLOBAL DL_GLOBAL
18251 # else
18252 # define LT_DLGLOBAL 0
18253 # endif
18254 #endif
18256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18257 find out it does not work in some platform. */
18258 #ifndef LT_DLLAZY_OR_NOW
18259 # ifdef RTLD_LAZY
18260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18261 # else
18262 # ifdef DL_LAZY
18263 # define LT_DLLAZY_OR_NOW DL_LAZY
18264 # else
18265 # ifdef RTLD_NOW
18266 # define LT_DLLAZY_OR_NOW RTLD_NOW
18267 # else
18268 # ifdef DL_NOW
18269 # define LT_DLLAZY_OR_NOW DL_NOW
18270 # else
18271 # define LT_DLLAZY_OR_NOW 0
18272 # endif
18273 # endif
18274 # endif
18275 # endif
18276 #endif
18278 #ifdef __cplusplus
18279 extern "C" void exit (int);
18280 #endif
18282 void fnord() { int i=42;}
18283 int main ()
18285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18286 int status = $lt_dlunknown;
18288 if (self)
18290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18292 /* dlclose (self); */
18295 exit (status);
18298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18299 (eval $ac_link) 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18303 (./conftest; exit; ) 2>/dev/null
18304 lt_status=$?
18305 case x$lt_status in
18306 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18307 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18308 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18309 esac
18310 else :
18311 # compilation failed
18312 lt_cv_dlopen_self_static=no
18315 rm -fr conftest*
18319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18320 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18323 CPPFLAGS="$save_CPPFLAGS"
18324 LDFLAGS="$save_LDFLAGS"
18325 LIBS="$save_LIBS"
18327 esac
18329 case $lt_cv_dlopen_self in
18330 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18331 *) enable_dlopen_self=unknown ;;
18332 esac
18334 case $lt_cv_dlopen_self_static in
18335 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18336 *) enable_dlopen_self_static=unknown ;;
18337 esac
18341 # The else clause should only fire when bootstrapping the
18342 # libtool distribution, otherwise you forgot to ship ltmain.sh
18343 # with your package, and you will get complaints that there are
18344 # no rules to generate ltmain.sh.
18345 if test -f "$ltmain"; then
18346 # See if we are running on zsh, and set the options which allow our commands through
18347 # without removal of \ escapes.
18348 if test -n "${ZSH_VERSION+set}" ; then
18349 setopt NO_GLOB_SUBST
18351 # Now quote all the things that may contain metacharacters while being
18352 # careful not to overquote the AC_SUBSTed values. We take copies of the
18353 # variables and quote the copies for generation of the libtool script.
18354 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18355 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18356 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18357 deplibs_check_method reload_flag reload_cmds need_locks \
18358 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18359 lt_cv_sys_global_symbol_to_c_name_address \
18360 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18361 old_postinstall_cmds old_postuninstall_cmds \
18362 compiler_GCJ \
18363 CC_GCJ \
18364 LD_GCJ \
18365 lt_prog_compiler_wl_GCJ \
18366 lt_prog_compiler_pic_GCJ \
18367 lt_prog_compiler_static_GCJ \
18368 lt_prog_compiler_no_builtin_flag_GCJ \
18369 export_dynamic_flag_spec_GCJ \
18370 thread_safe_flag_spec_GCJ \
18371 whole_archive_flag_spec_GCJ \
18372 enable_shared_with_static_runtimes_GCJ \
18373 old_archive_cmds_GCJ \
18374 old_archive_from_new_cmds_GCJ \
18375 predep_objects_GCJ \
18376 postdep_objects_GCJ \
18377 predeps_GCJ \
18378 postdeps_GCJ \
18379 compiler_lib_search_path_GCJ \
18380 archive_cmds_GCJ \
18381 archive_expsym_cmds_GCJ \
18382 postinstall_cmds_GCJ \
18383 postuninstall_cmds_GCJ \
18384 old_archive_from_expsyms_cmds_GCJ \
18385 allow_undefined_flag_GCJ \
18386 no_undefined_flag_GCJ \
18387 export_symbols_cmds_GCJ \
18388 hardcode_libdir_flag_spec_GCJ \
18389 hardcode_libdir_flag_spec_ld_GCJ \
18390 hardcode_libdir_separator_GCJ \
18391 hardcode_automatic_GCJ \
18392 module_cmds_GCJ \
18393 module_expsym_cmds_GCJ \
18394 lt_cv_prog_compiler_c_o_GCJ \
18395 exclude_expsyms_GCJ \
18396 include_expsyms_GCJ; do
18398 case $var in
18399 old_archive_cmds_GCJ | \
18400 old_archive_from_new_cmds_GCJ | \
18401 archive_cmds_GCJ | \
18402 archive_expsym_cmds_GCJ | \
18403 module_cmds_GCJ | \
18404 module_expsym_cmds_GCJ | \
18405 old_archive_from_expsyms_cmds_GCJ | \
18406 export_symbols_cmds_GCJ | \
18407 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18408 postinstall_cmds | postuninstall_cmds | \
18409 old_postinstall_cmds | old_postuninstall_cmds | \
18410 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18411 # Double-quote double-evaled strings.
18412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18417 esac
18418 done
18420 case $lt_echo in
18421 *'\$0 --fallback-echo"')
18422 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18424 esac
18426 cfgfile="$ofile"
18428 cat <<__EOF__ >> "$cfgfile"
18429 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18433 # Shell to use when invoking shell scripts.
18434 SHELL=$lt_SHELL
18436 # Whether or not to build shared libraries.
18437 build_libtool_libs=$enable_shared
18439 # Whether or not to build static libraries.
18440 build_old_libs=$enable_static
18442 # Whether or not to add -lc for building shared libraries.
18443 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18445 # Whether or not to disallow shared libs when runtime libs are static
18446 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18448 # Whether or not to optimize for fast installation.
18449 fast_install=$enable_fast_install
18451 # The host system.
18452 host_alias=$host_alias
18453 host=$host
18455 # An echo program that does not interpret backslashes.
18456 echo=$lt_echo
18458 # The archiver.
18459 AR=$lt_AR
18460 AR_FLAGS=$lt_AR_FLAGS
18462 # A C compiler.
18463 LTCC=$lt_LTCC
18465 # A language-specific compiler.
18466 CC=$lt_compiler_GCJ
18468 # Is the compiler the GNU C compiler?
18469 with_gcc=$GCC_GCJ
18471 # An ERE matcher.
18472 EGREP=$lt_EGREP
18474 # The linker used to build libraries.
18475 LD=$lt_LD_GCJ
18477 # Whether we need hard or soft links.
18478 LN_S=$lt_LN_S
18480 # A BSD-compatible nm program.
18481 NM=$lt_NM
18483 # A symbol stripping program
18484 STRIP=$STRIP
18486 # Used to examine libraries when file_magic_cmd begins "file"
18487 MAGIC_CMD=$MAGIC_CMD
18489 # Used on cygwin: DLL creation program.
18490 DLLTOOL="$DLLTOOL"
18492 # Used on cygwin: object dumper.
18493 OBJDUMP="$OBJDUMP"
18495 # Used on cygwin: assembler.
18496 AS="$AS"
18498 # The name of the directory that contains temporary libtool files.
18499 objdir=$objdir
18501 # How to create reloadable object files.
18502 reload_flag=$lt_reload_flag
18503 reload_cmds=$lt_reload_cmds
18505 # How to pass a linker flag through the compiler.
18506 wl=$lt_lt_prog_compiler_wl_GCJ
18508 # Object file suffix (normally "o").
18509 objext="$ac_objext"
18511 # Old archive suffix (normally "a").
18512 libext="$libext"
18514 # Shared library suffix (normally ".so").
18515 shrext='$shrext'
18517 # Executable file suffix (normally "").
18518 exeext="$exeext"
18520 # Additional compiler flags for building library objects.
18521 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18522 pic_mode=$pic_mode
18524 # What is the maximum length of a command?
18525 max_cmd_len=$lt_cv_sys_max_cmd_len
18527 # Does compiler simultaneously support -c and -o options?
18528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18530 # Must we lock files when doing compilation ?
18531 need_locks=$lt_need_locks
18533 # Do we need the lib prefix for modules?
18534 need_lib_prefix=$need_lib_prefix
18536 # Do we need a version for libraries?
18537 need_version=$need_version
18539 # Whether dlopen is supported.
18540 dlopen_support=$enable_dlopen
18542 # Whether dlopen of programs is supported.
18543 dlopen_self=$enable_dlopen_self
18545 # Whether dlopen of statically linked programs is supported.
18546 dlopen_self_static=$enable_dlopen_self_static
18548 # Compiler flag to prevent dynamic linking.
18549 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18551 # Compiler flag to turn off builtin functions.
18552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18554 # Compiler flag to allow reflexive dlopens.
18555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18557 # Compiler flag to generate shared objects directly from archives.
18558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18560 # Compiler flag to generate thread-safe objects.
18561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18563 # Library versioning type.
18564 version_type=$version_type
18566 # Format of library name prefix.
18567 libname_spec=$lt_libname_spec
18569 # List of archive names. First name is the real one, the rest are links.
18570 # The last name is the one that the linker finds with -lNAME.
18571 library_names_spec=$lt_library_names_spec
18573 # The coded name of the library, if different from the real name.
18574 soname_spec=$lt_soname_spec
18576 # Commands used to build and install an old-style archive.
18577 RANLIB=$lt_RANLIB
18578 old_archive_cmds=$lt_old_archive_cmds_GCJ
18579 old_postinstall_cmds=$lt_old_postinstall_cmds
18580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18582 # Create an old-style archive from a shared archive.
18583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18585 # Create a temporary old-style archive to link instead of a shared archive.
18586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18588 # Commands used to build and install a shared archive.
18589 archive_cmds=$lt_archive_cmds_GCJ
18590 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18591 postinstall_cmds=$lt_postinstall_cmds
18592 postuninstall_cmds=$lt_postuninstall_cmds
18594 # Commands used to build a loadable module (assumed same as above if empty)
18595 module_cmds=$lt_module_cmds_GCJ
18596 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18598 # Commands to strip libraries.
18599 old_striplib=$lt_old_striplib
18600 striplib=$lt_striplib
18602 # Dependencies to place before the objects being linked to create a
18603 # shared library.
18604 predep_objects=$lt_predep_objects_GCJ
18606 # Dependencies to place after the objects being linked to create a
18607 # shared library.
18608 postdep_objects=$lt_postdep_objects_GCJ
18610 # Dependencies to place before the objects being linked to create a
18611 # shared library.
18612 predeps=$lt_predeps_GCJ
18614 # Dependencies to place after the objects being linked to create a
18615 # shared library.
18616 postdeps=$lt_postdeps_GCJ
18618 # The library search path used internally by the compiler when linking
18619 # a shared library.
18620 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18622 # Method to check whether dependent libraries are shared objects.
18623 deplibs_check_method=$lt_deplibs_check_method
18625 # Command to use when deplibs_check_method == file_magic.
18626 file_magic_cmd=$lt_file_magic_cmd
18628 # Flag that allows shared libraries with undefined symbols to be built.
18629 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18631 # Flag that forces no undefined symbols.
18632 no_undefined_flag=$lt_no_undefined_flag_GCJ
18634 # Commands used to finish a libtool library installation in a directory.
18635 finish_cmds=$lt_finish_cmds
18637 # Same as above, but a single script fragment to be evaled but not shown.
18638 finish_eval=$lt_finish_eval
18640 # Take the output of nm and produce a listing of raw symbols and C names.
18641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18643 # Transform the output of nm in a proper C declaration
18644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18646 # Transform the output of nm in a C name address pair
18647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18649 # This is the shared library runtime path variable.
18650 runpath_var=$runpath_var
18652 # This is the shared library path variable.
18653 shlibpath_var=$shlibpath_var
18655 # Is shlibpath searched before the hard-coded library search path?
18656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18658 # How to hardcode a shared library path into an executable.
18659 hardcode_action=$hardcode_action_GCJ
18661 # Whether we should hardcode library paths into libraries.
18662 hardcode_into_libs=$hardcode_into_libs
18664 # Flag to hardcode \$libdir into a binary during linking.
18665 # This must work even if \$libdir does not exist.
18666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18668 # If ld is used when linking, flag to hardcode \$libdir into
18669 # a binary during linking. This must work even if \$libdir does
18670 # not exist.
18671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18673 # Whether we need a single -rpath flag with a separated argument.
18674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18677 # resulting binary.
18678 hardcode_direct=$hardcode_direct_GCJ
18680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18681 # resulting binary.
18682 hardcode_minus_L=$hardcode_minus_L_GCJ
18684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18685 # the resulting binary.
18686 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18688 # Set to yes if building a shared library automatically hardcodes DIR into the library
18689 # and all subsequent libraries and executables linked against it.
18690 hardcode_automatic=$hardcode_automatic_GCJ
18692 # Variables whose values should be saved in libtool wrapper scripts and
18693 # restored at relink time.
18694 variables_saved_for_relink="$variables_saved_for_relink"
18696 # Whether libtool must link a program against all its dependency libraries.
18697 link_all_deplibs=$link_all_deplibs_GCJ
18699 # Compile-time system search path for libraries
18700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18702 # Run-time system search path for libraries
18703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18705 # Fix the shell variable \$srcfile for the compiler.
18706 fix_srcfile_path="$fix_srcfile_path_GCJ"
18708 # Set to yes if exported symbols are required.
18709 always_export_symbols=$always_export_symbols_GCJ
18711 # The commands to list exported symbols.
18712 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18714 # The commands to extract the exported symbol list from a shared archive.
18715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18717 # Symbols that should not be listed in the preloaded symbols.
18718 exclude_expsyms=$lt_exclude_expsyms_GCJ
18720 # Symbols that must always be exported.
18721 include_expsyms=$lt_include_expsyms_GCJ
18723 # ### END LIBTOOL TAG CONFIG: $tagname
18725 __EOF__
18728 else
18729 # If there is no Makefile yet, we rely on a make rule to execute
18730 # `config.status --recheck' to rerun these tests and create the
18731 # libtool script then.
18732 test -f Makefile && make "$ltmain"
18736 ac_ext=c
18737 ac_cpp='$CPP $CPPFLAGS'
18738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18742 CC="$lt_save_CC"
18744 else
18745 tagname=""
18753 # Source file extension for RC test sources.
18754 ac_ext=rc
18756 # Object file extension for compiled RC test sources.
18757 objext=o
18758 objext_RC=$objext
18760 # Code to be used in simple compile tests
18761 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18763 # Code to be used in simple link tests
18764 lt_simple_link_test_code="$lt_simple_compile_test_code"
18766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18768 # If no C compiler was specified, use CC.
18769 LTCC=${LTCC-"$CC"}
18771 # Allow CC to be a program name with arguments.
18772 compiler=$CC
18775 # Allow CC to be a program name with arguments.
18776 lt_save_CC="$CC"
18777 CC=${RC-"windres"}
18778 compiler=$CC
18779 compiler_RC=$CC
18780 lt_cv_prog_compiler_c_o_RC=yes
18782 # The else clause should only fire when bootstrapping the
18783 # libtool distribution, otherwise you forgot to ship ltmain.sh
18784 # with your package, and you will get complaints that there are
18785 # no rules to generate ltmain.sh.
18786 if test -f "$ltmain"; then
18787 # See if we are running on zsh, and set the options which allow our commands through
18788 # without removal of \ escapes.
18789 if test -n "${ZSH_VERSION+set}" ; then
18790 setopt NO_GLOB_SUBST
18792 # Now quote all the things that may contain metacharacters while being
18793 # careful not to overquote the AC_SUBSTed values. We take copies of the
18794 # variables and quote the copies for generation of the libtool script.
18795 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18796 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18797 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18798 deplibs_check_method reload_flag reload_cmds need_locks \
18799 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18800 lt_cv_sys_global_symbol_to_c_name_address \
18801 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18802 old_postinstall_cmds old_postuninstall_cmds \
18803 compiler_RC \
18804 CC_RC \
18805 LD_RC \
18806 lt_prog_compiler_wl_RC \
18807 lt_prog_compiler_pic_RC \
18808 lt_prog_compiler_static_RC \
18809 lt_prog_compiler_no_builtin_flag_RC \
18810 export_dynamic_flag_spec_RC \
18811 thread_safe_flag_spec_RC \
18812 whole_archive_flag_spec_RC \
18813 enable_shared_with_static_runtimes_RC \
18814 old_archive_cmds_RC \
18815 old_archive_from_new_cmds_RC \
18816 predep_objects_RC \
18817 postdep_objects_RC \
18818 predeps_RC \
18819 postdeps_RC \
18820 compiler_lib_search_path_RC \
18821 archive_cmds_RC \
18822 archive_expsym_cmds_RC \
18823 postinstall_cmds_RC \
18824 postuninstall_cmds_RC \
18825 old_archive_from_expsyms_cmds_RC \
18826 allow_undefined_flag_RC \
18827 no_undefined_flag_RC \
18828 export_symbols_cmds_RC \
18829 hardcode_libdir_flag_spec_RC \
18830 hardcode_libdir_flag_spec_ld_RC \
18831 hardcode_libdir_separator_RC \
18832 hardcode_automatic_RC \
18833 module_cmds_RC \
18834 module_expsym_cmds_RC \
18835 lt_cv_prog_compiler_c_o_RC \
18836 exclude_expsyms_RC \
18837 include_expsyms_RC; do
18839 case $var in
18840 old_archive_cmds_RC | \
18841 old_archive_from_new_cmds_RC | \
18842 archive_cmds_RC | \
18843 archive_expsym_cmds_RC | \
18844 module_cmds_RC | \
18845 module_expsym_cmds_RC | \
18846 old_archive_from_expsyms_cmds_RC | \
18847 export_symbols_cmds_RC | \
18848 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18849 postinstall_cmds | postuninstall_cmds | \
18850 old_postinstall_cmds | old_postuninstall_cmds | \
18851 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18852 # Double-quote double-evaled strings.
18853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18858 esac
18859 done
18861 case $lt_echo in
18862 *'\$0 --fallback-echo"')
18863 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18865 esac
18867 cfgfile="$ofile"
18869 cat <<__EOF__ >> "$cfgfile"
18870 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18874 # Shell to use when invoking shell scripts.
18875 SHELL=$lt_SHELL
18877 # Whether or not to build shared libraries.
18878 build_libtool_libs=$enable_shared
18880 # Whether or not to build static libraries.
18881 build_old_libs=$enable_static
18883 # Whether or not to add -lc for building shared libraries.
18884 build_libtool_need_lc=$archive_cmds_need_lc_RC
18886 # Whether or not to disallow shared libs when runtime libs are static
18887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18889 # Whether or not to optimize for fast installation.
18890 fast_install=$enable_fast_install
18892 # The host system.
18893 host_alias=$host_alias
18894 host=$host
18896 # An echo program that does not interpret backslashes.
18897 echo=$lt_echo
18899 # The archiver.
18900 AR=$lt_AR
18901 AR_FLAGS=$lt_AR_FLAGS
18903 # A C compiler.
18904 LTCC=$lt_LTCC
18906 # A language-specific compiler.
18907 CC=$lt_compiler_RC
18909 # Is the compiler the GNU C compiler?
18910 with_gcc=$GCC_RC
18912 # An ERE matcher.
18913 EGREP=$lt_EGREP
18915 # The linker used to build libraries.
18916 LD=$lt_LD_RC
18918 # Whether we need hard or soft links.
18919 LN_S=$lt_LN_S
18921 # A BSD-compatible nm program.
18922 NM=$lt_NM
18924 # A symbol stripping program
18925 STRIP=$STRIP
18927 # Used to examine libraries when file_magic_cmd begins "file"
18928 MAGIC_CMD=$MAGIC_CMD
18930 # Used on cygwin: DLL creation program.
18931 DLLTOOL="$DLLTOOL"
18933 # Used on cygwin: object dumper.
18934 OBJDUMP="$OBJDUMP"
18936 # Used on cygwin: assembler.
18937 AS="$AS"
18939 # The name of the directory that contains temporary libtool files.
18940 objdir=$objdir
18942 # How to create reloadable object files.
18943 reload_flag=$lt_reload_flag
18944 reload_cmds=$lt_reload_cmds
18946 # How to pass a linker flag through the compiler.
18947 wl=$lt_lt_prog_compiler_wl_RC
18949 # Object file suffix (normally "o").
18950 objext="$ac_objext"
18952 # Old archive suffix (normally "a").
18953 libext="$libext"
18955 # Shared library suffix (normally ".so").
18956 shrext='$shrext'
18958 # Executable file suffix (normally "").
18959 exeext="$exeext"
18961 # Additional compiler flags for building library objects.
18962 pic_flag=$lt_lt_prog_compiler_pic_RC
18963 pic_mode=$pic_mode
18965 # What is the maximum length of a command?
18966 max_cmd_len=$lt_cv_sys_max_cmd_len
18968 # Does compiler simultaneously support -c and -o options?
18969 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18971 # Must we lock files when doing compilation ?
18972 need_locks=$lt_need_locks
18974 # Do we need the lib prefix for modules?
18975 need_lib_prefix=$need_lib_prefix
18977 # Do we need a version for libraries?
18978 need_version=$need_version
18980 # Whether dlopen is supported.
18981 dlopen_support=$enable_dlopen
18983 # Whether dlopen of programs is supported.
18984 dlopen_self=$enable_dlopen_self
18986 # Whether dlopen of statically linked programs is supported.
18987 dlopen_self_static=$enable_dlopen_self_static
18989 # Compiler flag to prevent dynamic linking.
18990 link_static_flag=$lt_lt_prog_compiler_static_RC
18992 # Compiler flag to turn off builtin functions.
18993 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18995 # Compiler flag to allow reflexive dlopens.
18996 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18998 # Compiler flag to generate shared objects directly from archives.
18999 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19001 # Compiler flag to generate thread-safe objects.
19002 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19004 # Library versioning type.
19005 version_type=$version_type
19007 # Format of library name prefix.
19008 libname_spec=$lt_libname_spec
19010 # List of archive names. First name is the real one, the rest are links.
19011 # The last name is the one that the linker finds with -lNAME.
19012 library_names_spec=$lt_library_names_spec
19014 # The coded name of the library, if different from the real name.
19015 soname_spec=$lt_soname_spec
19017 # Commands used to build and install an old-style archive.
19018 RANLIB=$lt_RANLIB
19019 old_archive_cmds=$lt_old_archive_cmds_RC
19020 old_postinstall_cmds=$lt_old_postinstall_cmds
19021 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19023 # Create an old-style archive from a shared archive.
19024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19026 # Create a temporary old-style archive to link instead of a shared archive.
19027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19029 # Commands used to build and install a shared archive.
19030 archive_cmds=$lt_archive_cmds_RC
19031 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19032 postinstall_cmds=$lt_postinstall_cmds
19033 postuninstall_cmds=$lt_postuninstall_cmds
19035 # Commands used to build a loadable module (assumed same as above if empty)
19036 module_cmds=$lt_module_cmds_RC
19037 module_expsym_cmds=$lt_module_expsym_cmds_RC
19039 # Commands to strip libraries.
19040 old_striplib=$lt_old_striplib
19041 striplib=$lt_striplib
19043 # Dependencies to place before the objects being linked to create a
19044 # shared library.
19045 predep_objects=$lt_predep_objects_RC
19047 # Dependencies to place after the objects being linked to create a
19048 # shared library.
19049 postdep_objects=$lt_postdep_objects_RC
19051 # Dependencies to place before the objects being linked to create a
19052 # shared library.
19053 predeps=$lt_predeps_RC
19055 # Dependencies to place after the objects being linked to create a
19056 # shared library.
19057 postdeps=$lt_postdeps_RC
19059 # The library search path used internally by the compiler when linking
19060 # a shared library.
19061 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19063 # Method to check whether dependent libraries are shared objects.
19064 deplibs_check_method=$lt_deplibs_check_method
19066 # Command to use when deplibs_check_method == file_magic.
19067 file_magic_cmd=$lt_file_magic_cmd
19069 # Flag that allows shared libraries with undefined symbols to be built.
19070 allow_undefined_flag=$lt_allow_undefined_flag_RC
19072 # Flag that forces no undefined symbols.
19073 no_undefined_flag=$lt_no_undefined_flag_RC
19075 # Commands used to finish a libtool library installation in a directory.
19076 finish_cmds=$lt_finish_cmds
19078 # Same as above, but a single script fragment to be evaled but not shown.
19079 finish_eval=$lt_finish_eval
19081 # Take the output of nm and produce a listing of raw symbols and C names.
19082 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19084 # Transform the output of nm in a proper C declaration
19085 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19087 # Transform the output of nm in a C name address pair
19088 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19090 # This is the shared library runtime path variable.
19091 runpath_var=$runpath_var
19093 # This is the shared library path variable.
19094 shlibpath_var=$shlibpath_var
19096 # Is shlibpath searched before the hard-coded library search path?
19097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19099 # How to hardcode a shared library path into an executable.
19100 hardcode_action=$hardcode_action_RC
19102 # Whether we should hardcode library paths into libraries.
19103 hardcode_into_libs=$hardcode_into_libs
19105 # Flag to hardcode \$libdir into a binary during linking.
19106 # This must work even if \$libdir does not exist.
19107 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19109 # If ld is used when linking, flag to hardcode \$libdir into
19110 # a binary during linking. This must work even if \$libdir does
19111 # not exist.
19112 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19114 # Whether we need a single -rpath flag with a separated argument.
19115 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19117 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19118 # resulting binary.
19119 hardcode_direct=$hardcode_direct_RC
19121 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19122 # resulting binary.
19123 hardcode_minus_L=$hardcode_minus_L_RC
19125 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19126 # the resulting binary.
19127 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19129 # Set to yes if building a shared library automatically hardcodes DIR into the library
19130 # and all subsequent libraries and executables linked against it.
19131 hardcode_automatic=$hardcode_automatic_RC
19133 # Variables whose values should be saved in libtool wrapper scripts and
19134 # restored at relink time.
19135 variables_saved_for_relink="$variables_saved_for_relink"
19137 # Whether libtool must link a program against all its dependency libraries.
19138 link_all_deplibs=$link_all_deplibs_RC
19140 # Compile-time system search path for libraries
19141 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19143 # Run-time system search path for libraries
19144 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19146 # Fix the shell variable \$srcfile for the compiler.
19147 fix_srcfile_path="$fix_srcfile_path_RC"
19149 # Set to yes if exported symbols are required.
19150 always_export_symbols=$always_export_symbols_RC
19152 # The commands to list exported symbols.
19153 export_symbols_cmds=$lt_export_symbols_cmds_RC
19155 # The commands to extract the exported symbol list from a shared archive.
19156 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19158 # Symbols that should not be listed in the preloaded symbols.
19159 exclude_expsyms=$lt_exclude_expsyms_RC
19161 # Symbols that must always be exported.
19162 include_expsyms=$lt_include_expsyms_RC
19164 # ### END LIBTOOL TAG CONFIG: $tagname
19166 __EOF__
19169 else
19170 # If there is no Makefile yet, we rely on a make rule to execute
19171 # `config.status --recheck' to rerun these tests and create the
19172 # libtool script then.
19173 test -f Makefile && make "$ltmain"
19177 ac_ext=c
19178 ac_cpp='$CPP $CPPFLAGS'
19179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183 CC="$lt_save_CC"
19188 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19189 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19190 { (exit 1); exit 1; }; }
19192 esac
19194 # Append the new tag name to the list of available tags.
19195 if test -n "$tagname" ; then
19196 available_tags="$available_tags $tagname"
19199 done
19200 IFS="$lt_save_ifs"
19202 # Now substitute the updated list of available tags.
19203 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19204 mv "${ofile}T" "$ofile"
19205 chmod +x "$ofile"
19206 else
19207 rm -f "${ofile}T"
19208 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19209 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19210 { (exit 1); exit 1; }; }
19216 # This can be used to rebuild libtool when needed
19217 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19219 # Always use our own libtool.
19220 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19222 # Prevent multiple expansion
19250 ac_header_dirent=no
19251 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19252 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19253 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19254 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19256 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 else
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 #include <sys/types.h>
19265 #include <$ac_hdr>
19268 main ()
19270 if ((DIR *) 0)
19271 return 0;
19273 return 0;
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19278 (eval $ac_compile) 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 eval "$as_ac_Header=yes"
19298 else
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19302 eval "$as_ac_Header=no"
19304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19309 cat >>confdefs.h <<_ACEOF
19310 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19311 _ACEOF
19313 ac_header_dirent=$ac_hdr; break
19316 done
19317 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19318 if test $ac_header_dirent = dirent.h; then
19319 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19321 if test "${ac_cv_search_opendir+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324 ac_func_search_save_LIBS=$LIBS
19325 ac_cv_search_opendir=no
19326 cat >conftest.$ac_ext <<_ACEOF
19327 /* confdefs.h. */
19328 _ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h. */
19333 /* Override any gcc2 internal prototype to avoid an error. */
19334 #ifdef __cplusplus
19335 extern "C"
19336 #endif
19337 /* We use char because int might match the return type of a gcc2
19338 builtin and then its argument prototype would still apply. */
19339 char opendir ();
19341 main ()
19343 opendir ();
19345 return 0;
19347 _ACEOF
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19350 (eval $ac_link) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest$ac_exeext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_cv_search_opendir="none required"
19370 else
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19375 rm -f conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 if test "$ac_cv_search_opendir" = no; then
19378 for ac_lib in dir; do
19379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19380 cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h. */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19387 /* Override any gcc2 internal prototype to avoid an error. */
19388 #ifdef __cplusplus
19389 extern "C"
19390 #endif
19391 /* We use char because int might match the return type of a gcc2
19392 builtin and then its argument prototype would still apply. */
19393 char opendir ();
19395 main ()
19397 opendir ();
19399 return 0;
19401 _ACEOF
19402 rm -f conftest.$ac_objext conftest$ac_exeext
19403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19404 (eval $ac_link) 2>conftest.er1
19405 ac_status=$?
19406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } &&
19411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest$ac_exeext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_cv_search_opendir="-l$ac_lib"
19424 break
19425 else
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19430 rm -f conftest.err conftest.$ac_objext \
19431 conftest$ac_exeext conftest.$ac_ext
19432 done
19434 LIBS=$ac_func_search_save_LIBS
19436 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19437 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19438 if test "$ac_cv_search_opendir" != no; then
19439 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19443 else
19444 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19445 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19446 if test "${ac_cv_search_opendir+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 else
19449 ac_func_search_save_LIBS=$LIBS
19450 ac_cv_search_opendir=no
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19458 /* Override any gcc2 internal prototype to avoid an error. */
19459 #ifdef __cplusplus
19460 extern "C"
19461 #endif
19462 /* We use char because int might match the return type of a gcc2
19463 builtin and then its argument prototype would still apply. */
19464 char opendir ();
19466 main ()
19468 opendir ();
19470 return 0;
19472 _ACEOF
19473 rm -f conftest.$ac_objext conftest$ac_exeext
19474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19475 (eval $ac_link) 2>conftest.er1
19476 ac_status=$?
19477 grep -v '^ *+' conftest.er1 >conftest.err
19478 rm -f conftest.er1
19479 cat conftest.err >&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest$ac_exeext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_cv_search_opendir="none required"
19495 else
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19500 rm -f conftest.err conftest.$ac_objext \
19501 conftest$ac_exeext conftest.$ac_ext
19502 if test "$ac_cv_search_opendir" = no; then
19503 for ac_lib in x; do
19504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19512 /* Override any gcc2 internal prototype to avoid an error. */
19513 #ifdef __cplusplus
19514 extern "C"
19515 #endif
19516 /* We use char because int might match the return type of a gcc2
19517 builtin and then its argument prototype would still apply. */
19518 char opendir ();
19520 main ()
19522 opendir ();
19524 return 0;
19526 _ACEOF
19527 rm -f conftest.$ac_objext conftest$ac_exeext
19528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19529 (eval $ac_link) 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
19536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest$ac_exeext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_cv_search_opendir="-l$ac_lib"
19549 break
19550 else
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19555 rm -f conftest.err conftest.$ac_objext \
19556 conftest$ac_exeext conftest.$ac_ext
19557 done
19559 LIBS=$ac_func_search_save_LIBS
19561 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19562 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19563 if test "$ac_cv_search_opendir" != no; then
19564 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19570 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19571 if test "${enable_ltdl_install+set}" = set; then
19572 enableval="$enable_ltdl_install"
19578 if test x"${enable_ltdl_install-no}" != xno; then
19579 INSTALL_LTDL_TRUE=
19580 INSTALL_LTDL_FALSE='#'
19581 else
19582 INSTALL_LTDL_TRUE='#'
19583 INSTALL_LTDL_FALSE=
19588 if test x"${enable_ltdl_convenience-no}" != xno; then
19589 CONVENIENCE_LTDL_TRUE=
19590 CONVENIENCE_LTDL_FALSE='#'
19591 else
19592 CONVENIENCE_LTDL_TRUE='#'
19593 CONVENIENCE_LTDL_FALSE=
19598 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19599 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19600 if test "${libltdl_cv_shlibext+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19604 # Here in libltdl for libgcj we don't build modules for darwin.
19605 # So we say no. Then the extension gets .dylib which is the right
19606 # thing for shared libraries on darwin.
19607 case "$host_os" in
19608 darwin*)
19609 module=no
19612 module=yes
19614 esac
19615 eval libltdl_cv_shlibext=$shrext
19618 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19619 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19620 if test -n "$libltdl_cv_shlibext"; then
19622 cat >>confdefs.h <<_ACEOF
19623 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19624 _ACEOF
19629 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19630 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19631 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 else
19634 libltdl_cv_shlibpath_var="$shlibpath_var"
19636 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19637 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19638 if test -n "$libltdl_cv_shlibpath_var"; then
19640 cat >>confdefs.h <<_ACEOF
19641 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19642 _ACEOF
19647 echo "$as_me:$LINENO: checking for the default library search path" >&5
19648 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19649 if test "${libltdl_cv_sys_search_path+set}" = set; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19651 else
19652 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19654 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19655 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19656 if test -n "$libltdl_cv_sys_search_path"; then
19657 sys_search_path=
19658 for dir in $libltdl_cv_sys_search_path; do
19659 if test -z "$sys_search_path"; then
19660 sys_search_path="$dir"
19661 else
19662 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19664 done
19666 cat >>confdefs.h <<_ACEOF
19667 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19668 _ACEOF
19672 echo "$as_me:$LINENO: checking for objdir" >&5
19673 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
19674 if test "${libltdl_cv_objdir+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677 libltdl_cv_objdir="$objdir"
19678 if test -n "$objdir"; then
19680 else
19681 rm -f .libs 2>/dev/null
19682 mkdir .libs 2>/dev/null
19683 if test -d .libs; then
19684 libltdl_cv_objdir=.libs
19685 else
19686 # MS-DOS does not allow filenames that begin with a dot.
19687 libltdl_cv_objdir=_libs
19689 rmdir .libs 2>/dev/null
19693 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19694 echo "${ECHO_T}$libltdl_cv_objdir" >&6
19696 cat >>confdefs.h <<_ACEOF
19697 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19698 _ACEOF
19702 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19703 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
19704 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19708 libltdl_cv_preloaded_symbols=yes
19709 else
19710 libltdl_cv_preloaded_symbols=no
19714 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19715 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
19716 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19718 cat >>confdefs.h <<\_ACEOF
19719 #define HAVE_PRELOADED_SYMBOLS 1
19720 _ACEOF
19724 LIBADD_DL=
19726 ac_ext=c
19727 ac_cpp='$CPP $CPPFLAGS'
19728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19733 echo "$as_me:$LINENO: checking for shl_load" >&5
19734 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19735 if test "${ac_cv_func_shl_load+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738 cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h. */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h. */
19744 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19746 #define shl_load innocuous_shl_load
19748 /* System header to define __stub macros and hopefully few prototypes,
19749 which can conflict with char shl_load (); below.
19750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19751 <limits.h> exists even on freestanding compilers. */
19753 #ifdef __STDC__
19754 # include <limits.h>
19755 #else
19756 # include <assert.h>
19757 #endif
19759 #undef shl_load
19761 /* Override any gcc2 internal prototype to avoid an error. */
19762 #ifdef __cplusplus
19763 extern "C"
19765 #endif
19766 /* We use char because int might match the return type of a gcc2
19767 builtin and then its argument prototype would still apply. */
19768 char shl_load ();
19769 /* The GNU C library defines this for functions which it implements
19770 to always fail with ENOSYS. Some functions are actually named
19771 something starting with __ and the normal name is an alias. */
19772 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19773 choke me
19774 #else
19775 char (*f) () = shl_load;
19776 #endif
19777 #ifdef __cplusplus
19779 #endif
19782 main ()
19784 return f != shl_load;
19786 return 0;
19788 _ACEOF
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19791 (eval $ac_link) 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest$ac_exeext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_cv_func_shl_load=yes
19811 else
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_cv_func_shl_load=no
19817 rm -f conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext conftest.$ac_ext
19820 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19821 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19822 if test $ac_cv_func_shl_load = yes; then
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_SHL_LOAD 1
19826 _ACEOF
19828 else
19829 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19830 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19831 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834 ac_check_lib_save_LIBS=$LIBS
19835 LIBS="-ldld $LIBS"
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19843 /* Override any gcc2 internal prototype to avoid an error. */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 /* We use char because int might match the return type of a gcc2
19848 builtin and then its argument prototype would still apply. */
19849 char shl_load ();
19851 main ()
19853 shl_load ();
19855 return 0;
19857 _ACEOF
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19860 (eval $ac_link) 2>conftest.er1
19861 ac_status=$?
19862 grep -v '^ *+' conftest.er1 >conftest.err
19863 rm -f conftest.er1
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest$ac_exeext'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_lib_dld_shl_load=yes
19880 else
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_cv_lib_dld_shl_load=no
19886 rm -f conftest.err conftest.$ac_objext \
19887 conftest$ac_exeext conftest.$ac_ext
19888 LIBS=$ac_check_lib_save_LIBS
19890 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19891 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19892 if test $ac_cv_lib_dld_shl_load = yes; then
19894 cat >>confdefs.h <<\_ACEOF
19895 #define HAVE_SHL_LOAD 1
19896 _ACEOF
19898 LIBADD_DL="$LIBADD_DL -ldld"
19899 else
19900 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905 ac_check_lib_save_LIBS=$LIBS
19906 LIBS="-ldl $LIBS"
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h. */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19914 /* Override any gcc2 internal prototype to avoid an error. */
19915 #ifdef __cplusplus
19916 extern "C"
19917 #endif
19918 /* We use char because int might match the return type of a gcc2
19919 builtin and then its argument prototype would still apply. */
19920 char dlopen ();
19922 main ()
19924 dlopen ();
19926 return 0;
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931 (eval $ac_link) 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 ac_cv_lib_dl_dlopen=yes
19951 else
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 ac_cv_lib_dl_dlopen=no
19957 rm -f conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19959 LIBS=$ac_check_lib_save_LIBS
19961 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19962 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19963 if test $ac_cv_lib_dl_dlopen = yes; then
19965 cat >>confdefs.h <<\_ACEOF
19966 #define HAVE_LIBDL 1
19967 _ACEOF
19969 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19970 else
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h. */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19977 #if HAVE_DLFCN_H
19978 # include <dlfcn.h>
19979 #endif
19982 main ()
19984 dlopen(0, 0);
19986 return 0;
19988 _ACEOF
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19991 (eval $ac_link) 2>conftest.er1
19992 ac_status=$?
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } &&
19998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest$ac_exeext'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20011 cat >>confdefs.h <<\_ACEOF
20012 #define HAVE_LIBDL 1
20013 _ACEOF
20014 libltdl_cv_func_dlopen="yes"
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20020 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20021 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024 ac_check_lib_save_LIBS=$LIBS
20025 LIBS="-lsvld $LIBS"
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20033 /* Override any gcc2 internal prototype to avoid an error. */
20034 #ifdef __cplusplus
20035 extern "C"
20036 #endif
20037 /* We use char because int might match the return type of a gcc2
20038 builtin and then its argument prototype would still apply. */
20039 char dlopen ();
20041 main ()
20043 dlopen ();
20045 return 0;
20047 _ACEOF
20048 rm -f conftest.$ac_objext conftest$ac_exeext
20049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20050 (eval $ac_link) 2>conftest.er1
20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
20057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest$ac_exeext'
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 ac_cv_lib_svld_dlopen=yes
20070 else
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_cv_lib_svld_dlopen=no
20076 rm -f conftest.err conftest.$ac_objext \
20077 conftest$ac_exeext conftest.$ac_ext
20078 LIBS=$ac_check_lib_save_LIBS
20080 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20081 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20082 if test $ac_cv_lib_svld_dlopen = yes; then
20084 cat >>confdefs.h <<\_ACEOF
20085 #define HAVE_LIBDL 1
20086 _ACEOF
20088 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20089 else
20090 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095 ac_check_lib_save_LIBS=$LIBS
20096 LIBS="-ldld $LIBS"
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h. */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20104 /* Override any gcc2 internal prototype to avoid an error. */
20105 #ifdef __cplusplus
20106 extern "C"
20107 #endif
20108 /* We use char because int might match the return type of a gcc2
20109 builtin and then its argument prototype would still apply. */
20110 char dld_link ();
20112 main ()
20114 dld_link ();
20116 return 0;
20118 _ACEOF
20119 rm -f conftest.$ac_objext conftest$ac_exeext
20120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20121 (eval $ac_link) 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
20128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; } &&
20134 { ac_try='test -s conftest$ac_exeext'
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20140 ac_cv_lib_dld_dld_link=yes
20141 else
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_cv_lib_dld_dld_link=no
20147 rm -f conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext conftest.$ac_ext
20149 LIBS=$ac_check_lib_save_LIBS
20151 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20153 if test $ac_cv_lib_dld_dld_link = yes; then
20155 cat >>confdefs.h <<\_ACEOF
20156 #define HAVE_DLD 1
20157 _ACEOF
20159 LIBADD_DL="$LIBADD_DL -ldld"
20160 else
20161 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20162 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
20163 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166 cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h. */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20174 #define _dyld_func_lookup innocuous__dyld_func_lookup
20176 /* System header to define __stub macros and hopefully few prototypes,
20177 which can conflict with char _dyld_func_lookup (); below.
20178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20179 <limits.h> exists even on freestanding compilers. */
20181 #ifdef __STDC__
20182 # include <limits.h>
20183 #else
20184 # include <assert.h>
20185 #endif
20187 #undef _dyld_func_lookup
20189 /* Override any gcc2 internal prototype to avoid an error. */
20190 #ifdef __cplusplus
20191 extern "C"
20193 #endif
20194 /* We use char because int might match the return type of a gcc2
20195 builtin and then its argument prototype would still apply. */
20196 char _dyld_func_lookup ();
20197 /* The GNU C library defines this for functions which it implements
20198 to always fail with ENOSYS. Some functions are actually named
20199 something starting with __ and the normal name is an alias. */
20200 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20201 choke me
20202 #else
20203 char (*f) () = _dyld_func_lookup;
20204 #endif
20205 #ifdef __cplusplus
20207 #endif
20210 main ()
20212 return f != _dyld_func_lookup;
20214 return 0;
20216 _ACEOF
20217 rm -f conftest.$ac_objext conftest$ac_exeext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20219 (eval $ac_link) 2>conftest.er1
20220 ac_status=$?
20221 grep -v '^ *+' conftest.er1 >conftest.err
20222 rm -f conftest.er1
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest$ac_exeext'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_func__dyld_func_lookup=yes
20239 else
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_cv_func__dyld_func_lookup=no
20245 rm -f conftest.err conftest.$ac_objext \
20246 conftest$ac_exeext conftest.$ac_ext
20248 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20249 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
20250 if test $ac_cv_func__dyld_func_lookup = yes; then
20252 cat >>confdefs.h <<\_ACEOF
20253 #define HAVE_DYLD 1
20254 _ACEOF
20266 rm -f conftest.err conftest.$ac_objext \
20267 conftest$ac_exeext conftest.$ac_ext
20278 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20279 then
20280 lt_save_LIBS="$LIBS"
20281 LIBS="$LIBS $LIBADD_DL"
20283 for ac_func in dlerror
20285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20286 echo "$as_me:$LINENO: checking for $ac_func" >&5
20287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20288 if eval "test \"\${$as_ac_var+set}\" = set"; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h. */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20299 #define $ac_func innocuous_$ac_func
20301 /* System header to define __stub macros and hopefully few prototypes,
20302 which can conflict with char $ac_func (); below.
20303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20304 <limits.h> exists even on freestanding compilers. */
20306 #ifdef __STDC__
20307 # include <limits.h>
20308 #else
20309 # include <assert.h>
20310 #endif
20312 #undef $ac_func
20314 /* Override any gcc2 internal prototype to avoid an error. */
20315 #ifdef __cplusplus
20316 extern "C"
20318 #endif
20319 /* We use char because int might match the return type of a gcc2
20320 builtin and then its argument prototype would still apply. */
20321 char $ac_func ();
20322 /* The GNU C library defines this for functions which it implements
20323 to always fail with ENOSYS. Some functions are actually named
20324 something starting with __ and the normal name is an alias. */
20325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20326 choke me
20327 #else
20328 char (*f) () = $ac_func;
20329 #endif
20330 #ifdef __cplusplus
20332 #endif
20335 main ()
20337 return f != $ac_func;
20339 return 0;
20341 _ACEOF
20342 rm -f conftest.$ac_objext conftest$ac_exeext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20344 (eval $ac_link) 2>conftest.er1
20345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
20351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; } &&
20357 { ac_try='test -s conftest$ac_exeext'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 eval "$as_ac_var=yes"
20364 else
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20368 eval "$as_ac_var=no"
20370 rm -f conftest.err conftest.$ac_objext \
20371 conftest$ac_exeext conftest.$ac_ext
20373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20375 if test `eval echo '${'$as_ac_var'}'` = yes; then
20376 cat >>confdefs.h <<_ACEOF
20377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20378 _ACEOF
20381 done
20383 LIBS="$lt_save_LIBS"
20385 ac_ext=c
20386 ac_cpp='$CPP $CPPFLAGS'
20387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20393 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20394 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
20395 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398 ac_cv_sys_symbol_underscore=no
20399 cat > conftest.$ac_ext <<EOF
20400 void nm_test_func(){}
20401 int main(){nm_test_func;return 0;}
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; then
20408 # Now try to grab the symbols.
20409 ac_nlist=conftest.nm
20410 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20411 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && test -s "$ac_nlist"; then
20415 # See whether the symbols have a leading underscore.
20416 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20417 ac_cv_sys_symbol_underscore=yes
20418 else
20419 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20421 else
20422 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20425 else
20426 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20428 else
20429 echo "configure: failed program was:" >&5
20430 cat conftest.c >&5
20432 rm -rf conftest*
20435 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20436 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
20439 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20440 if test x"$libltdl_cv_func_dlopen" = xyes ||
20441 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20442 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20443 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
20444 if test "${libltdl_cv_need_uscore+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 libltdl_cv_need_uscore=unknown
20448 save_LIBS="$LIBS"
20449 LIBS="$LIBS $LIBADD_DL"
20450 if test "$cross_compiling" = yes; then :
20451 libltdl_cv_need_uscore=cross
20452 else
20453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20454 lt_status=$lt_dlunknown
20455 cat > conftest.$ac_ext <<EOF
20456 #line 20456 "configure"
20457 #include "confdefs.h"
20459 #if HAVE_DLFCN_H
20460 #include <dlfcn.h>
20461 #endif
20463 #include <stdio.h>
20465 #ifdef RTLD_GLOBAL
20466 # define LT_DLGLOBAL RTLD_GLOBAL
20467 #else
20468 # ifdef DL_GLOBAL
20469 # define LT_DLGLOBAL DL_GLOBAL
20470 # else
20471 # define LT_DLGLOBAL 0
20472 # endif
20473 #endif
20475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20476 find out it does not work in some platform. */
20477 #ifndef LT_DLLAZY_OR_NOW
20478 # ifdef RTLD_LAZY
20479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20480 # else
20481 # ifdef DL_LAZY
20482 # define LT_DLLAZY_OR_NOW DL_LAZY
20483 # else
20484 # ifdef RTLD_NOW
20485 # define LT_DLLAZY_OR_NOW RTLD_NOW
20486 # else
20487 # ifdef DL_NOW
20488 # define LT_DLLAZY_OR_NOW DL_NOW
20489 # else
20490 # define LT_DLLAZY_OR_NOW 0
20491 # endif
20492 # endif
20493 # endif
20494 # endif
20495 #endif
20497 #ifdef __cplusplus
20498 extern "C" void exit (int);
20499 #endif
20501 void fnord() { int i=42;}
20502 int main ()
20504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20505 int status = $lt_dlunknown;
20507 if (self)
20509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20511 /* dlclose (self); */
20514 exit (status);
20517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20518 (eval $ac_link) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20522 (./conftest; exit; ) 2>/dev/null
20523 lt_status=$?
20524 case x$lt_status in
20525 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20526 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20527 x$lt_unknown|x*) ;;
20528 esac
20529 else :
20530 # compilation failed
20534 rm -fr conftest*
20536 LIBS="$save_LIBS"
20539 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20540 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
20544 if test x"$libltdl_cv_need_uscore" = xyes; then
20546 cat >>confdefs.h <<\_ACEOF
20547 #define NEED_USCORE 1
20548 _ACEOF
20553 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20554 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
20555 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558 # PORTME does your system automatically load deplibs for dlopen?
20559 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20560 # For now, we just catch OSes we know something about -- in the
20561 # future, we'll try test this programmatically.
20562 libltdl_cv_sys_dlopen_deplibs=unknown
20563 case "$host_os" in
20564 aix3*|aix4.1.*|aix4.2.*)
20565 # Unknown whether this is true for these versions of AIX, but
20566 # we want this `case' here to explicitly catch those versions.
20567 libltdl_cv_sys_dlopen_deplibs=unknown
20569 aix[45]*)
20570 libltdl_cv_sys_dlopen_deplibs=yes
20572 darwin*)
20573 # Assuming the user has installed a libdl from somewhere, this is true
20574 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20575 libltdl_cv_sys_dlopen_deplibs=yes
20577 gnu*)
20578 libltdl_cv_sys_dlopen_deplibs=yes
20580 hpux10*|hpux11*)
20581 libltdl_cv_sys_dlopen_deplibs=yes
20583 irix[12345]*|irix6.[01]*)
20584 # Catch all versions of IRIX before 6.2, and indicate that we don't
20585 # know how it worked for any of those versions.
20586 libltdl_cv_sys_dlopen_deplibs=unknown
20588 irix*)
20589 # The case above catches anything before 6.2, and it's known that
20590 # at 6.2 and later dlopen does load deplibs.
20591 libltdl_cv_sys_dlopen_deplibs=yes
20593 linux*)
20594 libltdl_cv_sys_dlopen_deplibs=yes
20596 netbsd*)
20597 libltdl_cv_sys_dlopen_deplibs=yes
20599 openbsd*)
20600 libltdl_cv_sys_dlopen_deplibs=yes
20602 osf[1234]*)
20603 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20604 # it did *not* use an RPATH in a shared library to find objects the
20605 # library depends on, so we explictly say `no'.
20606 libltdl_cv_sys_dlopen_deplibs=no
20608 osf5.0|osf5.0a|osf5.1)
20609 # dlopen *does* load deplibs and with the right loader patch applied
20610 # it even uses RPATH in a shared library to search for shared objects
20611 # that the library depends on, but there's no easy way to know if that
20612 # patch is installed. Since this is the case, all we can really
20613 # say is unknown -- it depends on the patch being installed. If
20614 # it is, this changes to `yes'. Without it, it would be `no'.
20615 libltdl_cv_sys_dlopen_deplibs=unknown
20617 osf*)
20618 # the two cases above should catch all versions of osf <= 5.1. Read
20619 # the comments above for what we know about them.
20620 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20621 # is used to find them so we can finally say `yes'.
20622 libltdl_cv_sys_dlopen_deplibs=yes
20624 solaris*)
20625 libltdl_cv_sys_dlopen_deplibs=yes
20627 esac
20630 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20631 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
20632 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20634 cat >>confdefs.h <<\_ACEOF
20635 #define LTDL_DLOPEN_DEPLIBS 1
20636 _ACEOF
20641 for ac_header in argz.h
20643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20645 echo "$as_me:$LINENO: checking for $ac_header" >&5
20646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20652 else
20653 # Is the header compilable?
20654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h. */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 $ac_includes_default
20663 #include <$ac_header>
20664 _ACEOF
20665 rm -f conftest.$ac_objext
20666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20667 (eval $ac_compile) 2>conftest.er1
20668 ac_status=$?
20669 grep -v '^ *+' conftest.er1 >conftest.err
20670 rm -f conftest.er1
20671 cat conftest.err >&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } &&
20674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest.$ac_objext'
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; }; then
20686 ac_header_compiler=yes
20687 else
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20691 ac_header_compiler=no
20693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20695 echo "${ECHO_T}$ac_header_compiler" >&6
20697 # Is the header present?
20698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h. */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 #include <$ac_header>
20707 _ACEOF
20708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } >/dev/null; then
20716 if test -s conftest.err; then
20717 ac_cpp_err=$ac_c_preproc_warn_flag
20718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20719 else
20720 ac_cpp_err=
20722 else
20723 ac_cpp_err=yes
20725 if test -z "$ac_cpp_err"; then
20726 ac_header_preproc=yes
20727 else
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ac_header_preproc=no
20733 rm -f conftest.err conftest.$ac_ext
20734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20735 echo "${ECHO_T}$ac_header_preproc" >&6
20737 # So? What about this header?
20738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20739 yes:no: )
20740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20744 ac_header_preproc=yes
20746 no:yes:* )
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20760 cat <<\_ASBOX
20761 ## ---------------------------------- ##
20762 ## Report this to bug-libtool@gnu.org ##
20763 ## ---------------------------------- ##
20764 _ASBOX
20766 sed "s/^/$as_me: WARNING: /" >&2
20768 esac
20769 echo "$as_me:$LINENO: checking for $ac_header" >&5
20770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774 eval "$as_ac_Header=\$ac_header_preproc"
20776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20781 cat >>confdefs.h <<_ACEOF
20782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20783 _ACEOF
20787 done
20790 echo "$as_me:$LINENO: checking for error_t" >&5
20791 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
20792 if test "${ac_cv_type_error_t+set}" = set; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795 cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h. */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 #if HAVE_ARGZ_H
20802 # include <argz.h>
20803 #endif
20806 main ()
20808 if ((error_t *) 0)
20809 return 0;
20810 if (sizeof (error_t))
20811 return 0;
20813 return 0;
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20818 (eval $ac_compile) 2>conftest.er1
20819 ac_status=$?
20820 grep -v '^ *+' conftest.er1 >conftest.err
20821 rm -f conftest.er1
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20828 ac_status=$?
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; } &&
20831 { ac_try='test -s conftest.$ac_objext'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ac_cv_type_error_t=yes
20838 else
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_cv_type_error_t=no
20844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20846 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20847 echo "${ECHO_T}$ac_cv_type_error_t" >&6
20848 if test $ac_cv_type_error_t = yes; then
20850 cat >>confdefs.h <<_ACEOF
20851 #define HAVE_ERROR_T 1
20852 _ACEOF
20855 else
20857 cat >>confdefs.h <<\_ACEOF
20858 #define error_t int
20859 _ACEOF
20869 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20872 echo "$as_me:$LINENO: checking for $ac_func" >&5
20873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20874 if eval "test \"\${$as_ac_var+set}\" = set"; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20885 #define $ac_func innocuous_$ac_func
20887 /* System header to define __stub macros and hopefully few prototypes,
20888 which can conflict with char $ac_func (); below.
20889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20890 <limits.h> exists even on freestanding compilers. */
20892 #ifdef __STDC__
20893 # include <limits.h>
20894 #else
20895 # include <assert.h>
20896 #endif
20898 #undef $ac_func
20900 /* Override any gcc2 internal prototype to avoid an error. */
20901 #ifdef __cplusplus
20902 extern "C"
20904 #endif
20905 /* We use char because int might match the return type of a gcc2
20906 builtin and then its argument prototype would still apply. */
20907 char $ac_func ();
20908 /* The GNU C library defines this for functions which it implements
20909 to always fail with ENOSYS. Some functions are actually named
20910 something starting with __ and the normal name is an alias. */
20911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20912 choke me
20913 #else
20914 char (*f) () = $ac_func;
20915 #endif
20916 #ifdef __cplusplus
20918 #endif
20921 main ()
20923 return f != $ac_func;
20925 return 0;
20927 _ACEOF
20928 rm -f conftest.$ac_objext conftest$ac_exeext
20929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20930 (eval $ac_link) 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest$ac_exeext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 eval "$as_ac_var=yes"
20950 else
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 eval "$as_ac_var=no"
20956 rm -f conftest.err conftest.$ac_objext \
20957 conftest$ac_exeext conftest.$ac_ext
20959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20961 if test `eval echo '${'$as_ac_var'}'` = yes; then
20962 cat >>confdefs.h <<_ACEOF
20963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20964 _ACEOF
20967 done
20996 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20997 stdio.h unistd.h
20999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21001 echo "$as_me:$LINENO: checking for $ac_header" >&5
21002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21008 else
21009 # Is the header compilable?
21010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h. */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 $ac_includes_default
21019 #include <$ac_header>
21020 _ACEOF
21021 rm -f conftest.$ac_objext
21022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21023 (eval $ac_compile) 2>conftest.er1
21024 ac_status=$?
21025 grep -v '^ *+' conftest.er1 >conftest.err
21026 rm -f conftest.er1
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } &&
21030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_header_compiler=yes
21043 else
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21047 ac_header_compiler=no
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21051 echo "${ECHO_T}$ac_header_compiler" >&6
21053 # Is the header present?
21054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h. */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 #include <$ac_header>
21063 _ACEOF
21064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } >/dev/null; then
21072 if test -s conftest.err; then
21073 ac_cpp_err=$ac_c_preproc_warn_flag
21074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21075 else
21076 ac_cpp_err=
21078 else
21079 ac_cpp_err=yes
21081 if test -z "$ac_cpp_err"; then
21082 ac_header_preproc=yes
21083 else
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_header_preproc=no
21089 rm -f conftest.err conftest.$ac_ext
21090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21091 echo "${ECHO_T}$ac_header_preproc" >&6
21093 # So? What about this header?
21094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21095 yes:no: )
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21100 ac_header_preproc=yes
21102 no:yes:* )
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21116 cat <<\_ASBOX
21117 ## ---------------------------------- ##
21118 ## Report this to bug-libtool@gnu.org ##
21119 ## ---------------------------------- ##
21120 _ASBOX
21122 sed "s/^/$as_me: WARNING: /" >&2
21124 esac
21125 echo "$as_me:$LINENO: checking for $ac_header" >&5
21126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21129 else
21130 eval "$as_ac_Header=\$ac_header_preproc"
21132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21137 cat >>confdefs.h <<_ACEOF
21138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21139 _ACEOF
21143 done
21149 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21153 echo "$as_me:$LINENO: checking for $ac_header" >&5
21154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21160 else
21161 # Is the header compilable?
21162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21164 cat >conftest.$ac_ext <<_ACEOF
21165 /* confdefs.h. */
21166 _ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 $ac_includes_default
21171 #include <$ac_header>
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175 (eval $ac_compile) 2>conftest.er1
21176 ac_status=$?
21177 grep -v '^ *+' conftest.er1 >conftest.err
21178 rm -f conftest.er1
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
21182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } &&
21188 { ac_try='test -s conftest.$ac_objext'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; }; then
21194 ac_header_compiler=yes
21195 else
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 ac_header_compiler=no
21201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21203 echo "${ECHO_T}$ac_header_compiler" >&6
21205 # Is the header present?
21206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21208 cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h. */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 #include <$ac_header>
21215 _ACEOF
21216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } >/dev/null; then
21224 if test -s conftest.err; then
21225 ac_cpp_err=$ac_c_preproc_warn_flag
21226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21227 else
21228 ac_cpp_err=
21230 else
21231 ac_cpp_err=yes
21233 if test -z "$ac_cpp_err"; then
21234 ac_header_preproc=yes
21235 else
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_header_preproc=no
21241 rm -f conftest.err conftest.$ac_ext
21242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21243 echo "${ECHO_T}$ac_header_preproc" >&6
21245 # So? What about this header?
21246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21247 yes:no: )
21248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21252 ac_header_preproc=yes
21254 no:yes:* )
21255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21268 cat <<\_ASBOX
21269 ## ---------------------------------- ##
21270 ## Report this to bug-libtool@gnu.org ##
21271 ## ---------------------------------- ##
21272 _ASBOX
21274 sed "s/^/$as_me: WARNING: /" >&2
21276 esac
21277 echo "$as_me:$LINENO: checking for $ac_header" >&5
21278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21281 else
21282 eval "$as_ac_Header=\$ac_header_preproc"
21284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21289 cat >>confdefs.h <<_ACEOF
21290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21291 _ACEOF
21295 done
21299 for ac_header in string.h strings.h
21301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21303 echo "$as_me:$LINENO: checking for $ac_header" >&5
21304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21310 else
21311 # Is the header compilable?
21312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21314 cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h. */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 $ac_includes_default
21321 #include <$ac_header>
21322 _ACEOF
21323 rm -f conftest.$ac_objext
21324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21325 (eval $ac_compile) 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } &&
21332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; } &&
21338 { ac_try='test -s conftest.$ac_objext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 ac_header_compiler=yes
21345 else
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_header_compiler=no
21351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21353 echo "${ECHO_T}$ac_header_compiler" >&6
21355 # Is the header present?
21356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21358 cat >conftest.$ac_ext <<_ACEOF
21359 /* confdefs.h. */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21364 #include <$ac_header>
21365 _ACEOF
21366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21368 ac_status=$?
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } >/dev/null; then
21374 if test -s conftest.err; then
21375 ac_cpp_err=$ac_c_preproc_warn_flag
21376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21377 else
21378 ac_cpp_err=
21380 else
21381 ac_cpp_err=yes
21383 if test -z "$ac_cpp_err"; then
21384 ac_header_preproc=yes
21385 else
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 ac_header_preproc=no
21391 rm -f conftest.err conftest.$ac_ext
21392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21393 echo "${ECHO_T}$ac_header_preproc" >&6
21395 # So? What about this header?
21396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21397 yes:no: )
21398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21402 ac_header_preproc=yes
21404 no:yes:* )
21405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21418 cat <<\_ASBOX
21419 ## ---------------------------------- ##
21420 ## Report this to bug-libtool@gnu.org ##
21421 ## ---------------------------------- ##
21422 _ASBOX
21424 sed "s/^/$as_me: WARNING: /" >&2
21426 esac
21427 echo "$as_me:$LINENO: checking for $ac_header" >&5
21428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432 eval "$as_ac_Header=\$ac_header_preproc"
21434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21439 cat >>confdefs.h <<_ACEOF
21440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21441 _ACEOF
21442 break
21445 done
21450 for ac_func in strchr index
21452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21453 echo "$as_me:$LINENO: checking for $ac_func" >&5
21454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21455 if eval "test \"\${$as_ac_var+set}\" = set"; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h. */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21466 #define $ac_func innocuous_$ac_func
21468 /* System header to define __stub macros and hopefully few prototypes,
21469 which can conflict with char $ac_func (); below.
21470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21471 <limits.h> exists even on freestanding compilers. */
21473 #ifdef __STDC__
21474 # include <limits.h>
21475 #else
21476 # include <assert.h>
21477 #endif
21479 #undef $ac_func
21481 /* Override any gcc2 internal prototype to avoid an error. */
21482 #ifdef __cplusplus
21483 extern "C"
21485 #endif
21486 /* We use char because int might match the return type of a gcc2
21487 builtin and then its argument prototype would still apply. */
21488 char $ac_func ();
21489 /* The GNU C library defines this for functions which it implements
21490 to always fail with ENOSYS. Some functions are actually named
21491 something starting with __ and the normal name is an alias. */
21492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21493 choke me
21494 #else
21495 char (*f) () = $ac_func;
21496 #endif
21497 #ifdef __cplusplus
21499 #endif
21502 main ()
21504 return f != $ac_func;
21506 return 0;
21508 _ACEOF
21509 rm -f conftest.$ac_objext conftest$ac_exeext
21510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21511 (eval $ac_link) 2>conftest.er1
21512 ac_status=$?
21513 grep -v '^ *+' conftest.er1 >conftest.err
21514 rm -f conftest.er1
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } &&
21518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try='test -s conftest$ac_exeext'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21530 eval "$as_ac_var=yes"
21531 else
21532 echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21535 eval "$as_ac_var=no"
21537 rm -f conftest.err conftest.$ac_objext \
21538 conftest$ac_exeext conftest.$ac_ext
21540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21542 if test `eval echo '${'$as_ac_var'}'` = yes; then
21543 cat >>confdefs.h <<_ACEOF
21544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21545 _ACEOF
21546 break
21548 done
21552 for ac_func in strrchr rindex
21554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21555 echo "$as_me:$LINENO: checking for $ac_func" >&5
21556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21557 if eval "test \"\${$as_ac_var+set}\" = set"; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 else
21560 cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h. */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21568 #define $ac_func innocuous_$ac_func
21570 /* System header to define __stub macros and hopefully few prototypes,
21571 which can conflict with char $ac_func (); below.
21572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21573 <limits.h> exists even on freestanding compilers. */
21575 #ifdef __STDC__
21576 # include <limits.h>
21577 #else
21578 # include <assert.h>
21579 #endif
21581 #undef $ac_func
21583 /* Override any gcc2 internal prototype to avoid an error. */
21584 #ifdef __cplusplus
21585 extern "C"
21587 #endif
21588 /* We use char because int might match the return type of a gcc2
21589 builtin and then its argument prototype would still apply. */
21590 char $ac_func ();
21591 /* The GNU C library defines this for functions which it implements
21592 to always fail with ENOSYS. Some functions are actually named
21593 something starting with __ and the normal name is an alias. */
21594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21595 choke me
21596 #else
21597 char (*f) () = $ac_func;
21598 #endif
21599 #ifdef __cplusplus
21601 #endif
21604 main ()
21606 return f != $ac_func;
21608 return 0;
21610 _ACEOF
21611 rm -f conftest.$ac_objext conftest$ac_exeext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613 (eval $ac_link) 2>conftest.er1
21614 ac_status=$?
21615 grep -v '^ *+' conftest.er1 >conftest.err
21616 rm -f conftest.er1
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 (eval $ac_try) 2>&5
21623 ac_status=$?
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; } &&
21626 { ac_try='test -s conftest$ac_exeext'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21629 ac_status=$?
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; }; then
21632 eval "$as_ac_var=yes"
21633 else
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 eval "$as_ac_var=no"
21639 rm -f conftest.err conftest.$ac_objext \
21640 conftest$ac_exeext conftest.$ac_ext
21642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21644 if test `eval echo '${'$as_ac_var'}'` = yes; then
21645 cat >>confdefs.h <<_ACEOF
21646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21647 _ACEOF
21648 break
21650 done
21654 for ac_func in memcpy bcopy
21656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21657 echo "$as_me:$LINENO: checking for $ac_func" >&5
21658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21659 if eval "test \"\${$as_ac_var+set}\" = set"; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 else
21662 cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h. */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21670 #define $ac_func innocuous_$ac_func
21672 /* System header to define __stub macros and hopefully few prototypes,
21673 which can conflict with char $ac_func (); below.
21674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21675 <limits.h> exists even on freestanding compilers. */
21677 #ifdef __STDC__
21678 # include <limits.h>
21679 #else
21680 # include <assert.h>
21681 #endif
21683 #undef $ac_func
21685 /* Override any gcc2 internal prototype to avoid an error. */
21686 #ifdef __cplusplus
21687 extern "C"
21689 #endif
21690 /* We use char because int might match the return type of a gcc2
21691 builtin and then its argument prototype would still apply. */
21692 char $ac_func ();
21693 /* The GNU C library defines this for functions which it implements
21694 to always fail with ENOSYS. Some functions are actually named
21695 something starting with __ and the normal name is an alias. */
21696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21697 choke me
21698 #else
21699 char (*f) () = $ac_func;
21700 #endif
21701 #ifdef __cplusplus
21703 #endif
21706 main ()
21708 return f != $ac_func;
21710 return 0;
21712 _ACEOF
21713 rm -f conftest.$ac_objext conftest$ac_exeext
21714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21715 (eval $ac_link) 2>conftest.er1
21716 ac_status=$?
21717 grep -v '^ *+' conftest.er1 >conftest.err
21718 rm -f conftest.er1
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } &&
21722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest$ac_exeext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 eval "$as_ac_var=yes"
21735 else
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 eval "$as_ac_var=no"
21741 rm -f conftest.err conftest.$ac_objext \
21742 conftest$ac_exeext conftest.$ac_ext
21744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21746 if test `eval echo '${'$as_ac_var'}'` = yes; then
21747 cat >>confdefs.h <<_ACEOF
21748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21749 _ACEOF
21750 break
21752 done
21756 for ac_func in memmove strcmp
21758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21759 echo "$as_me:$LINENO: checking for $ac_func" >&5
21760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21761 if eval "test \"\${$as_ac_var+set}\" = set"; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764 cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h. */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21772 #define $ac_func innocuous_$ac_func
21774 /* System header to define __stub macros and hopefully few prototypes,
21775 which can conflict with char $ac_func (); below.
21776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21777 <limits.h> exists even on freestanding compilers. */
21779 #ifdef __STDC__
21780 # include <limits.h>
21781 #else
21782 # include <assert.h>
21783 #endif
21785 #undef $ac_func
21787 /* Override any gcc2 internal prototype to avoid an error. */
21788 #ifdef __cplusplus
21789 extern "C"
21791 #endif
21792 /* We use char because int might match the return type of a gcc2
21793 builtin and then its argument prototype would still apply. */
21794 char $ac_func ();
21795 /* The GNU C library defines this for functions which it implements
21796 to always fail with ENOSYS. Some functions are actually named
21797 something starting with __ and the normal name is an alias. */
21798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21799 choke me
21800 #else
21801 char (*f) () = $ac_func;
21802 #endif
21803 #ifdef __cplusplus
21805 #endif
21808 main ()
21810 return f != $ac_func;
21812 return 0;
21814 _ACEOF
21815 rm -f conftest.$ac_objext conftest$ac_exeext
21816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21817 (eval $ac_link) 2>conftest.er1
21818 ac_status=$?
21819 grep -v '^ *+' conftest.er1 >conftest.err
21820 rm -f conftest.er1
21821 cat conftest.err >&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } &&
21824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; } &&
21830 { ac_try='test -s conftest$ac_exeext'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; }; then
21836 eval "$as_ac_var=yes"
21837 else
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21841 eval "$as_ac_var=no"
21843 rm -f conftest.err conftest.$ac_objext \
21844 conftest$ac_exeext conftest.$ac_ext
21846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21848 if test `eval echo '${'$as_ac_var'}'` = yes; then
21849 cat >>confdefs.h <<_ACEOF
21850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21851 _ACEOF
21854 done
21859 for ac_func in closedir opendir readdir
21861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21862 echo "$as_me:$LINENO: checking for $ac_func" >&5
21863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21864 if eval "test \"\${$as_ac_var+set}\" = set"; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 else
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21875 #define $ac_func innocuous_$ac_func
21877 /* System header to define __stub macros and hopefully few prototypes,
21878 which can conflict with char $ac_func (); below.
21879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21880 <limits.h> exists even on freestanding compilers. */
21882 #ifdef __STDC__
21883 # include <limits.h>
21884 #else
21885 # include <assert.h>
21886 #endif
21888 #undef $ac_func
21890 /* Override any gcc2 internal prototype to avoid an error. */
21891 #ifdef __cplusplus
21892 extern "C"
21894 #endif
21895 /* We use char because int might match the return type of a gcc2
21896 builtin and then its argument prototype would still apply. */
21897 char $ac_func ();
21898 /* The GNU C library defines this for functions which it implements
21899 to always fail with ENOSYS. Some functions are actually named
21900 something starting with __ and the normal name is an alias. */
21901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21902 choke me
21903 #else
21904 char (*f) () = $ac_func;
21905 #endif
21906 #ifdef __cplusplus
21908 #endif
21911 main ()
21913 return f != $ac_func;
21915 return 0;
21917 _ACEOF
21918 rm -f conftest.$ac_objext conftest$ac_exeext
21919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>conftest.er1
21921 ac_status=$?
21922 grep -v '^ *+' conftest.er1 >conftest.err
21923 rm -f conftest.er1
21924 cat conftest.err >&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); } &&
21927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21930 ac_status=$?
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; } &&
21933 { ac_try='test -s conftest$ac_exeext'
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21936 ac_status=$?
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 eval "$as_ac_var=yes"
21940 else
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 eval "$as_ac_var=no"
21946 rm -f conftest.err conftest.$ac_objext \
21947 conftest$ac_exeext conftest.$ac_ext
21949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21951 if test `eval echo '${'$as_ac_var'}'` = yes; then
21952 cat >>confdefs.h <<_ACEOF
21953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21954 _ACEOF
21957 done
21962 ## -------- ##
21963 ## Outputs. ##
21964 ## -------- ##
21965 ac_config_files="$ac_config_files Makefile"
21967 cat >confcache <<\_ACEOF
21968 # This file is a shell script that caches the results of configure
21969 # tests run on this system so they can be shared between configure
21970 # scripts and configure runs, see configure's option --config-cache.
21971 # It is not useful on other systems. If it contains results you don't
21972 # want to keep, you may remove or edit it.
21974 # config.status only pays attention to the cache file if you give it
21975 # the --recheck option to rerun configure.
21977 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21978 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21979 # following values.
21981 _ACEOF
21983 # The following way of writing the cache mishandles newlines in values,
21984 # but we know of no workaround that is simple, portable, and efficient.
21985 # So, don't put newlines in cache variables' values.
21986 # Ultrix sh set writes to stderr and can't be redirected directly,
21987 # and sets the high bit in the cache file unless we assign to the vars.
21989 (set) 2>&1 |
21990 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21991 *ac_space=\ *)
21992 # `set' does not quote correctly, so add quotes (double-quote
21993 # substitution turns \\\\ into \\, and sed turns \\ into \).
21994 sed -n \
21995 "s/'/'\\\\''/g;
21996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21999 # `set' quotes correctly as required by POSIX, so do not add quotes.
22000 sed -n \
22001 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22003 esac;
22005 sed '
22006 t clear
22007 : clear
22008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22009 t end
22010 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22011 : end' >>confcache
22012 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22013 if test -w $cache_file; then
22014 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22015 cat confcache >$cache_file
22016 else
22017 echo "not updating unwritable cache $cache_file"
22020 rm -f confcache
22022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22023 # Let make expand exec_prefix.
22024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22026 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22027 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22028 # trailing colons and then remove the whole line if VPATH becomes empty
22029 # (actually we leave an empty line to preserve line numbers).
22030 if test "x$srcdir" = x.; then
22031 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22032 s/:*\$(srcdir):*/:/;
22033 s/:*\${srcdir}:*/:/;
22034 s/:*@srcdir@:*/:/;
22035 s/^\([^=]*=[ ]*\):*/\1/;
22036 s/:*$//;
22037 s/^[^=]*=[ ]*$//;
22041 DEFS=-DHAVE_CONFIG_H
22043 ac_libobjs=
22044 ac_ltlibobjs=
22045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22046 # 1. Remove the extension, and $U if already installed.
22047 ac_i=`echo "$ac_i" |
22048 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22049 # 2. Add them.
22050 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22051 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22052 done
22053 LIBOBJS=$ac_libobjs
22055 LTLIBOBJS=$ac_ltlibobjs
22058 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22059 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22060 Usually this means the macro was only invoked conditionally." >&5
22061 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22062 Usually this means the macro was only invoked conditionally." >&2;}
22063 { (exit 1); exit 1; }; }
22065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22066 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22067 Usually this means the macro was only invoked conditionally." >&5
22068 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22069 Usually this means the macro was only invoked conditionally." >&2;}
22070 { (exit 1); exit 1; }; }
22072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22073 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22074 Usually this means the macro was only invoked conditionally." >&5
22075 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22076 Usually this means the macro was only invoked conditionally." >&2;}
22077 { (exit 1); exit 1; }; }
22079 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22080 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22081 Usually this means the macro was only invoked conditionally." >&5
22082 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22083 Usually this means the macro was only invoked conditionally." >&2;}
22084 { (exit 1); exit 1; }; }
22086 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22087 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22088 Usually this means the macro was only invoked conditionally." >&5
22089 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22090 Usually this means the macro was only invoked conditionally." >&2;}
22091 { (exit 1); exit 1; }; }
22093 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22094 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22095 Usually this means the macro was only invoked conditionally." >&5
22096 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22097 Usually this means the macro was only invoked conditionally." >&2;}
22098 { (exit 1); exit 1; }; }
22101 : ${CONFIG_STATUS=./config.status}
22102 ac_clean_files_save=$ac_clean_files
22103 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22104 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22105 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22106 cat >$CONFIG_STATUS <<_ACEOF
22107 #! $SHELL
22108 # Generated by $as_me.
22109 # Run this file to recreate the current configuration.
22110 # Compiler output produced by configure, useful for debugging
22111 # configure, is in config.log if it exists.
22113 debug=false
22114 ac_cs_recheck=false
22115 ac_cs_silent=false
22116 SHELL=\${CONFIG_SHELL-$SHELL}
22117 _ACEOF
22119 cat >>$CONFIG_STATUS <<\_ACEOF
22120 ## --------------------- ##
22121 ## M4sh Initialization. ##
22122 ## --------------------- ##
22124 # Be Bourne compatible
22125 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22126 emulate sh
22127 NULLCMD=:
22128 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22129 # is contrary to our usage. Disable this feature.
22130 alias -g '${1+"$@"}'='"$@"'
22131 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22132 set -o posix
22134 DUALCASE=1; export DUALCASE # for MKS sh
22136 # Support unset when possible.
22137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22138 as_unset=unset
22139 else
22140 as_unset=false
22144 # Work around bugs in pre-3.0 UWIN ksh.
22145 $as_unset ENV MAIL MAILPATH
22146 PS1='$ '
22147 PS2='> '
22148 PS4='+ '
22150 # NLS nuisances.
22151 for as_var in \
22152 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22153 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22154 LC_TELEPHONE LC_TIME
22156 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22157 eval $as_var=C; export $as_var
22158 else
22159 $as_unset $as_var
22161 done
22163 # Required to use basename.
22164 if expr a : '\(a\)' >/dev/null 2>&1; then
22165 as_expr=expr
22166 else
22167 as_expr=false
22170 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22171 as_basename=basename
22172 else
22173 as_basename=false
22177 # Name of the executable.
22178 as_me=`$as_basename "$0" ||
22179 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22180 X"$0" : 'X\(//\)$' \| \
22181 X"$0" : 'X\(/\)$' \| \
22182 . : '\(.\)' 2>/dev/null ||
22183 echo X/"$0" |
22184 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22185 /^X\/\(\/\/\)$/{ s//\1/; q; }
22186 /^X\/\(\/\).*/{ s//\1/; q; }
22187 s/.*/./; q'`
22190 # PATH needs CR, and LINENO needs CR and PATH.
22191 # Avoid depending upon Character Ranges.
22192 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22193 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22194 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22195 as_cr_digits='0123456789'
22196 as_cr_alnum=$as_cr_Letters$as_cr_digits
22198 # The user is always right.
22199 if test "${PATH_SEPARATOR+set}" != set; then
22200 echo "#! /bin/sh" >conf$$.sh
22201 echo "exit 0" >>conf$$.sh
22202 chmod +x conf$$.sh
22203 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22204 PATH_SEPARATOR=';'
22205 else
22206 PATH_SEPARATOR=:
22208 rm -f conf$$.sh
22212 as_lineno_1=$LINENO
22213 as_lineno_2=$LINENO
22214 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22215 test "x$as_lineno_1" != "x$as_lineno_2" &&
22216 test "x$as_lineno_3" = "x$as_lineno_2" || {
22217 # Find who we are. Look in the path if we contain no path at all
22218 # relative or not.
22219 case $0 in
22220 *[\\/]* ) as_myself=$0 ;;
22221 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22222 for as_dir in $PATH
22224 IFS=$as_save_IFS
22225 test -z "$as_dir" && as_dir=.
22226 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22227 done
22230 esac
22231 # We did not find ourselves, most probably we were run as `sh COMMAND'
22232 # in which case we are not to be found in the path.
22233 if test "x$as_myself" = x; then
22234 as_myself=$0
22236 if test ! -f "$as_myself"; then
22237 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22238 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22239 { (exit 1); exit 1; }; }
22241 case $CONFIG_SHELL in
22243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22246 IFS=$as_save_IFS
22247 test -z "$as_dir" && as_dir=.
22248 for as_base in sh bash ksh sh5; do
22249 case $as_dir in
22251 if ("$as_dir/$as_base" -c '
22252 as_lineno_1=$LINENO
22253 as_lineno_2=$LINENO
22254 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22255 test "x$as_lineno_1" != "x$as_lineno_2" &&
22256 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22257 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22258 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22259 CONFIG_SHELL=$as_dir/$as_base
22260 export CONFIG_SHELL
22261 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22262 fi;;
22263 esac
22264 done
22265 done
22267 esac
22269 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22270 # uniformly replaced by the line number. The first 'sed' inserts a
22271 # line-number line before each line; the second 'sed' does the real
22272 # work. The second script uses 'N' to pair each line-number line
22273 # with the numbered line, and appends trailing '-' during
22274 # substitution so that $LINENO is not a special case at line end.
22275 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22276 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22277 sed '=' <$as_myself |
22278 sed '
22280 s,$,-,
22281 : loop
22282 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22283 t loop
22284 s,-$,,
22285 s,^['$as_cr_digits']*\n,,
22286 ' >$as_me.lineno &&
22287 chmod +x $as_me.lineno ||
22288 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22289 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22290 { (exit 1); exit 1; }; }
22292 # Don't try to exec as it changes $[0], causing all sort of problems
22293 # (the dirname of $[0] is not the place where we might find the
22294 # original and so on. Autoconf is especially sensible to this).
22295 . ./$as_me.lineno
22296 # Exit status is that of the last command.
22297 exit
22301 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22302 *c*,-n*) ECHO_N= ECHO_C='
22303 ' ECHO_T=' ' ;;
22304 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22305 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22306 esac
22308 if expr a : '\(a\)' >/dev/null 2>&1; then
22309 as_expr=expr
22310 else
22311 as_expr=false
22314 rm -f conf$$ conf$$.exe conf$$.file
22315 echo >conf$$.file
22316 if ln -s conf$$.file conf$$ 2>/dev/null; then
22317 # We could just check for DJGPP; but this test a) works b) is more generic
22318 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22319 if test -f conf$$.exe; then
22320 # Don't use ln at all; we don't have any links
22321 as_ln_s='cp -p'
22322 else
22323 as_ln_s='ln -s'
22325 elif ln conf$$.file conf$$ 2>/dev/null; then
22326 as_ln_s=ln
22327 else
22328 as_ln_s='cp -p'
22330 rm -f conf$$ conf$$.exe conf$$.file
22332 if mkdir -p . 2>/dev/null; then
22333 as_mkdir_p=:
22334 else
22335 test -d ./-p && rmdir ./-p
22336 as_mkdir_p=false
22339 as_executable_p="test -f"
22341 # Sed expression to map a string onto a valid CPP name.
22342 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22344 # Sed expression to map a string onto a valid variable name.
22345 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22348 # IFS
22349 # We need space, tab and new line, in precisely that order.
22350 as_nl='
22352 IFS=" $as_nl"
22354 # CDPATH.
22355 $as_unset CDPATH
22357 exec 6>&1
22359 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22360 # report actual input values of CONFIG_FILES etc. instead of their
22361 # values after options handling. Logging --version etc. is OK.
22362 exec 5>>config.log
22364 echo
22365 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22366 ## Running $as_me. ##
22367 _ASBOX
22368 } >&5
22369 cat >&5 <<_CSEOF
22371 This file was extended by libltdl $as_me 1.2, which was
22372 generated by GNU Autoconf 2.59. Invocation command line was
22374 CONFIG_FILES = $CONFIG_FILES
22375 CONFIG_HEADERS = $CONFIG_HEADERS
22376 CONFIG_LINKS = $CONFIG_LINKS
22377 CONFIG_COMMANDS = $CONFIG_COMMANDS
22378 $ $0 $@
22380 _CSEOF
22381 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22382 echo >&5
22383 _ACEOF
22385 # Files that config.status was made for.
22386 if test -n "$ac_config_files"; then
22387 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22390 if test -n "$ac_config_headers"; then
22391 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22394 if test -n "$ac_config_links"; then
22395 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22398 if test -n "$ac_config_commands"; then
22399 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22404 ac_cs_usage="\
22405 \`$as_me' instantiates files from templates according to the
22406 current configuration.
22408 Usage: $0 [OPTIONS] [FILE]...
22410 -h, --help print this help, then exit
22411 -V, --version print version number, then exit
22412 -q, --quiet do not print progress messages
22413 -d, --debug don't remove temporary files
22414 --recheck update $as_me by reconfiguring in the same conditions
22415 --file=FILE[:TEMPLATE]
22416 instantiate the configuration file FILE
22417 --header=FILE[:TEMPLATE]
22418 instantiate the configuration header FILE
22420 Configuration files:
22421 $config_files
22423 Configuration headers:
22424 $config_headers
22426 Configuration commands:
22427 $config_commands
22429 Report bugs to <bug-autoconf@gnu.org>."
22430 _ACEOF
22432 cat >>$CONFIG_STATUS <<_ACEOF
22433 ac_cs_version="\\
22434 libltdl config.status 1.2
22435 configured by $0, generated by GNU Autoconf 2.59,
22436 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22438 Copyright (C) 2003 Free Software Foundation, Inc.
22439 This config.status script is free software; the Free Software Foundation
22440 gives unlimited permission to copy, distribute and modify it."
22441 srcdir=$srcdir
22442 INSTALL="$INSTALL"
22443 _ACEOF
22445 cat >>$CONFIG_STATUS <<\_ACEOF
22446 # If no file are specified by the user, then we need to provide default
22447 # value. By we need to know if files were specified by the user.
22448 ac_need_defaults=:
22449 while test $# != 0
22451 case $1 in
22452 --*=*)
22453 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22454 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22455 ac_shift=:
22458 ac_option=$1
22459 ac_optarg=$2
22460 ac_shift=shift
22462 *) # This is not an option, so the user has probably given explicit
22463 # arguments.
22464 ac_option=$1
22465 ac_need_defaults=false;;
22466 esac
22468 case $ac_option in
22469 # Handling of the options.
22470 _ACEOF
22471 cat >>$CONFIG_STATUS <<\_ACEOF
22472 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22473 ac_cs_recheck=: ;;
22474 --version | --vers* | -V )
22475 echo "$ac_cs_version"; exit 0 ;;
22476 --he | --h)
22477 # Conflict between --help and --header
22478 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22479 Try \`$0 --help' for more information." >&5
22480 echo "$as_me: error: ambiguous option: $1
22481 Try \`$0 --help' for more information." >&2;}
22482 { (exit 1); exit 1; }; };;
22483 --help | --hel | -h )
22484 echo "$ac_cs_usage"; exit 0 ;;
22485 --debug | --d* | -d )
22486 debug=: ;;
22487 --file | --fil | --fi | --f )
22488 $ac_shift
22489 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22490 ac_need_defaults=false;;
22491 --header | --heade | --head | --hea )
22492 $ac_shift
22493 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22494 ac_need_defaults=false;;
22495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22496 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22497 ac_cs_silent=: ;;
22499 # This is an error.
22500 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22501 Try \`$0 --help' for more information." >&5
22502 echo "$as_me: error: unrecognized option: $1
22503 Try \`$0 --help' for more information." >&2;}
22504 { (exit 1); exit 1; }; } ;;
22506 *) ac_config_targets="$ac_config_targets $1" ;;
22508 esac
22509 shift
22510 done
22512 ac_configure_extra_args=
22514 if $ac_cs_silent; then
22515 exec 6>/dev/null
22516 ac_configure_extra_args="$ac_configure_extra_args --silent"
22519 _ACEOF
22520 cat >>$CONFIG_STATUS <<_ACEOF
22521 if \$ac_cs_recheck; then
22522 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22523 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22526 _ACEOF
22528 cat >>$CONFIG_STATUS <<_ACEOF
22530 # INIT-COMMANDS section.
22533 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22535 _ACEOF
22539 cat >>$CONFIG_STATUS <<\_ACEOF
22540 for ac_config_target in $ac_config_targets
22542 case "$ac_config_target" in
22543 # Handling of arguments.
22544 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22545 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22546 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22547 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22548 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22549 { (exit 1); exit 1; }; };;
22550 esac
22551 done
22553 # If the user did not use the arguments to specify the items to instantiate,
22554 # then the envvar interface is used. Set only those that are not.
22555 # We use the long form for the default assignment because of an extremely
22556 # bizarre bug on SunOS 4.1.3.
22557 if $ac_need_defaults; then
22558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22559 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22563 # Have a temporary directory for convenience. Make it in the build tree
22564 # simply because there is no reason to put it here, and in addition,
22565 # creating and moving files from /tmp can sometimes cause problems.
22566 # Create a temporary directory, and hook for its removal unless debugging.
22567 $debug ||
22569 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22570 trap '{ (exit 1); exit 1; }' 1 2 13 15
22573 # Create a (secure) tmp directory for tmp files.
22576 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22577 test -n "$tmp" && test -d "$tmp"
22578 } ||
22580 tmp=./confstat$$-$RANDOM
22581 (umask 077 && mkdir $tmp)
22582 } ||
22584 echo "$me: cannot create a temporary directory in ." >&2
22585 { (exit 1); exit 1; }
22588 _ACEOF
22590 cat >>$CONFIG_STATUS <<_ACEOF
22593 # CONFIG_FILES section.
22596 # No need to generate the scripts if there are no CONFIG_FILES.
22597 # This happens for instance when ./config.status config.h
22598 if test -n "\$CONFIG_FILES"; then
22599 # Protect against being on the right side of a sed subst in config.status.
22600 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22601 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22602 s,@SHELL@,$SHELL,;t t
22603 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22604 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22605 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22606 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22607 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22608 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22609 s,@exec_prefix@,$exec_prefix,;t t
22610 s,@prefix@,$prefix,;t t
22611 s,@program_transform_name@,$program_transform_name,;t t
22612 s,@bindir@,$bindir,;t t
22613 s,@sbindir@,$sbindir,;t t
22614 s,@libexecdir@,$libexecdir,;t t
22615 s,@datadir@,$datadir,;t t
22616 s,@sysconfdir@,$sysconfdir,;t t
22617 s,@sharedstatedir@,$sharedstatedir,;t t
22618 s,@localstatedir@,$localstatedir,;t t
22619 s,@libdir@,$libdir,;t t
22620 s,@includedir@,$includedir,;t t
22621 s,@oldincludedir@,$oldincludedir,;t t
22622 s,@infodir@,$infodir,;t t
22623 s,@mandir@,$mandir,;t t
22624 s,@build_alias@,$build_alias,;t t
22625 s,@host_alias@,$host_alias,;t t
22626 s,@target_alias@,$target_alias,;t t
22627 s,@DEFS@,$DEFS,;t t
22628 s,@ECHO_C@,$ECHO_C,;t t
22629 s,@ECHO_N@,$ECHO_N,;t t
22630 s,@ECHO_T@,$ECHO_T,;t t
22631 s,@LIBS@,$LIBS,;t t
22632 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22633 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22634 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22635 s,@CYGPATH_W@,$CYGPATH_W,;t t
22636 s,@PACKAGE@,$PACKAGE,;t t
22637 s,@VERSION@,$VERSION,;t t
22638 s,@ACLOCAL@,$ACLOCAL,;t t
22639 s,@AUTOCONF@,$AUTOCONF,;t t
22640 s,@AUTOMAKE@,$AUTOMAKE,;t t
22641 s,@AUTOHEADER@,$AUTOHEADER,;t t
22642 s,@MAKEINFO@,$MAKEINFO,;t t
22643 s,@AMTAR@,$AMTAR,;t t
22644 s,@install_sh@,$install_sh,;t t
22645 s,@STRIP@,$STRIP,;t t
22646 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22647 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22648 s,@mkdir_p@,$mkdir_p,;t t
22649 s,@AWK@,$AWK,;t t
22650 s,@SET_MAKE@,$SET_MAKE,;t t
22651 s,@am__leading_dot@,$am__leading_dot,;t t
22652 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22653 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22654 s,@MAINT@,$MAINT,;t t
22655 s,@CC@,$CC,;t t
22656 s,@CFLAGS@,$CFLAGS,;t t
22657 s,@LDFLAGS@,$LDFLAGS,;t t
22658 s,@CPPFLAGS@,$CPPFLAGS,;t t
22659 s,@ac_ct_CC@,$ac_ct_CC,;t t
22660 s,@EXEEXT@,$EXEEXT,;t t
22661 s,@OBJEXT@,$OBJEXT,;t t
22662 s,@DEPDIR@,$DEPDIR,;t t
22663 s,@am__include@,$am__include,;t t
22664 s,@am__quote@,$am__quote,;t t
22665 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22666 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22667 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22668 s,@CCDEPMODE@,$CCDEPMODE,;t t
22669 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22670 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22671 s,@build@,$build,;t t
22672 s,@build_cpu@,$build_cpu,;t t
22673 s,@build_vendor@,$build_vendor,;t t
22674 s,@build_os@,$build_os,;t t
22675 s,@host@,$host,;t t
22676 s,@host_cpu@,$host_cpu,;t t
22677 s,@host_vendor@,$host_vendor,;t t
22678 s,@host_os@,$host_os,;t t
22679 s,@EGREP@,$EGREP,;t t
22680 s,@LN_S@,$LN_S,;t t
22681 s,@ECHO@,$ECHO,;t t
22682 s,@AR@,$AR,;t t
22683 s,@ac_ct_AR@,$ac_ct_AR,;t t
22684 s,@RANLIB@,$RANLIB,;t t
22685 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22686 s,@DLLTOOL@,$DLLTOOL,;t t
22687 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22688 s,@AS@,$AS,;t t
22689 s,@ac_ct_AS@,$ac_ct_AS,;t t
22690 s,@OBJDUMP@,$OBJDUMP,;t t
22691 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22692 s,@CPP@,$CPP,;t t
22693 s,@CXX@,$CXX,;t t
22694 s,@CXXFLAGS@,$CXXFLAGS,;t t
22695 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22696 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22697 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22698 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22699 s,@CXXCPP@,$CXXCPP,;t t
22700 s,@F77@,$F77,;t t
22701 s,@FFLAGS@,$FFLAGS,;t t
22702 s,@ac_ct_F77@,$ac_ct_F77,;t t
22703 s,@LIBTOOL@,$LIBTOOL,;t t
22704 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22705 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
22706 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
22707 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
22708 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
22709 s,@LIBADD_DL@,$LIBADD_DL,;t t
22710 s,@LIBOBJS@,$LIBOBJS,;t t
22711 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22712 CEOF
22714 _ACEOF
22716 cat >>$CONFIG_STATUS <<\_ACEOF
22717 # Split the substitutions into bite-sized pieces for seds with
22718 # small command number limits, like on Digital OSF/1 and HP-UX.
22719 ac_max_sed_lines=48
22720 ac_sed_frag=1 # Number of current file.
22721 ac_beg=1 # First line for current file.
22722 ac_end=$ac_max_sed_lines # Line after last line for current file.
22723 ac_more_lines=:
22724 ac_sed_cmds=
22725 while $ac_more_lines; do
22726 if test $ac_beg -gt 1; then
22727 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22728 else
22729 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22731 if test ! -s $tmp/subs.frag; then
22732 ac_more_lines=false
22733 else
22734 # The purpose of the label and of the branching condition is to
22735 # speed up the sed processing (if there are no `@' at all, there
22736 # is no need to browse any of the substitutions).
22737 # These are the two extra sed commands mentioned above.
22738 (echo ':t
22739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22740 if test -z "$ac_sed_cmds"; then
22741 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22742 else
22743 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22745 ac_sed_frag=`expr $ac_sed_frag + 1`
22746 ac_beg=$ac_end
22747 ac_end=`expr $ac_end + $ac_max_sed_lines`
22749 done
22750 if test -z "$ac_sed_cmds"; then
22751 ac_sed_cmds=cat
22753 fi # test -n "$CONFIG_FILES"
22755 _ACEOF
22756 cat >>$CONFIG_STATUS <<\_ACEOF
22757 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22758 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22759 case $ac_file in
22760 - | *:- | *:-:* ) # input from stdin
22761 cat >$tmp/stdin
22762 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22763 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22764 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22765 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22766 * ) ac_file_in=$ac_file.in ;;
22767 esac
22769 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22770 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22772 X"$ac_file" : 'X\(//\)[^/]' \| \
22773 X"$ac_file" : 'X\(//\)$' \| \
22774 X"$ac_file" : 'X\(/\)' \| \
22775 . : '\(.\)' 2>/dev/null ||
22776 echo X"$ac_file" |
22777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22779 /^X\(\/\/\)$/{ s//\1/; q; }
22780 /^X\(\/\).*/{ s//\1/; q; }
22781 s/.*/./; q'`
22782 { if $as_mkdir_p; then
22783 mkdir -p "$ac_dir"
22784 else
22785 as_dir="$ac_dir"
22786 as_dirs=
22787 while test ! -d "$as_dir"; do
22788 as_dirs="$as_dir $as_dirs"
22789 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22791 X"$as_dir" : 'X\(//\)[^/]' \| \
22792 X"$as_dir" : 'X\(//\)$' \| \
22793 X"$as_dir" : 'X\(/\)' \| \
22794 . : '\(.\)' 2>/dev/null ||
22795 echo X"$as_dir" |
22796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22798 /^X\(\/\/\)$/{ s//\1/; q; }
22799 /^X\(\/\).*/{ s//\1/; q; }
22800 s/.*/./; q'`
22801 done
22802 test ! -n "$as_dirs" || mkdir $as_dirs
22803 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22805 { (exit 1); exit 1; }; }; }
22807 ac_builddir=.
22809 if test "$ac_dir" != .; then
22810 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22811 # A "../" for each directory in $ac_dir_suffix.
22812 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22813 else
22814 ac_dir_suffix= ac_top_builddir=
22817 case $srcdir in
22818 .) # No --srcdir option. We are building in place.
22819 ac_srcdir=.
22820 if test -z "$ac_top_builddir"; then
22821 ac_top_srcdir=.
22822 else
22823 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22824 fi ;;
22825 [\\/]* | ?:[\\/]* ) # Absolute path.
22826 ac_srcdir=$srcdir$ac_dir_suffix;
22827 ac_top_srcdir=$srcdir ;;
22828 *) # Relative path.
22829 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22830 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22831 esac
22833 # Do not use `cd foo && pwd` to compute absolute paths, because
22834 # the directories may not exist.
22835 case `pwd` in
22836 .) ac_abs_builddir="$ac_dir";;
22838 case "$ac_dir" in
22839 .) ac_abs_builddir=`pwd`;;
22840 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22841 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22842 esac;;
22843 esac
22844 case $ac_abs_builddir in
22845 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22847 case ${ac_top_builddir}. in
22848 .) ac_abs_top_builddir=$ac_abs_builddir;;
22849 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22850 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22851 esac;;
22852 esac
22853 case $ac_abs_builddir in
22854 .) ac_abs_srcdir=$ac_srcdir;;
22856 case $ac_srcdir in
22857 .) ac_abs_srcdir=$ac_abs_builddir;;
22858 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22859 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22860 esac;;
22861 esac
22862 case $ac_abs_builddir in
22863 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22865 case $ac_top_srcdir in
22866 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22867 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22868 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22869 esac;;
22870 esac
22873 case $INSTALL in
22874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22875 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22876 esac
22878 # Let's still pretend it is `configure' which instantiates (i.e., don't
22879 # use $as_me), people would be surprised to read:
22880 # /* config.h. Generated by config.status. */
22881 if test x"$ac_file" = x-; then
22882 configure_input=
22883 else
22884 configure_input="$ac_file. "
22886 configure_input=$configure_input"Generated from `echo $ac_file_in |
22887 sed 's,.*/,,'` by configure."
22889 # First look for the input files in the build tree, otherwise in the
22890 # src tree.
22891 ac_file_inputs=`IFS=:
22892 for f in $ac_file_in; do
22893 case $f in
22894 -) echo $tmp/stdin ;;
22895 [\\/$]*)
22896 # Absolute (can't be DOS-style, as IFS=:)
22897 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22898 echo "$as_me: error: cannot find input file: $f" >&2;}
22899 { (exit 1); exit 1; }; }
22900 echo "$f";;
22901 *) # Relative
22902 if test -f "$f"; then
22903 # Build tree
22904 echo "$f"
22905 elif test -f "$srcdir/$f"; then
22906 # Source tree
22907 echo "$srcdir/$f"
22908 else
22909 # /dev/null tree
22910 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22911 echo "$as_me: error: cannot find input file: $f" >&2;}
22912 { (exit 1); exit 1; }; }
22913 fi;;
22914 esac
22915 done` || { (exit 1); exit 1; }
22917 if test x"$ac_file" != x-; then
22918 { echo "$as_me:$LINENO: creating $ac_file" >&5
22919 echo "$as_me: creating $ac_file" >&6;}
22920 rm -f "$ac_file"
22922 _ACEOF
22923 cat >>$CONFIG_STATUS <<_ACEOF
22924 sed "$ac_vpsub
22925 $extrasub
22926 _ACEOF
22927 cat >>$CONFIG_STATUS <<\_ACEOF
22929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22930 s,@configure_input@,$configure_input,;t t
22931 s,@srcdir@,$ac_srcdir,;t t
22932 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22933 s,@top_srcdir@,$ac_top_srcdir,;t t
22934 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22935 s,@builddir@,$ac_builddir,;t t
22936 s,@abs_builddir@,$ac_abs_builddir,;t t
22937 s,@top_builddir@,$ac_top_builddir,;t t
22938 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22939 s,@INSTALL@,$ac_INSTALL,;t t
22940 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22941 rm -f $tmp/stdin
22942 if test x"$ac_file" != x-; then
22943 mv $tmp/out $ac_file
22944 else
22945 cat $tmp/out
22946 rm -f $tmp/out
22949 done
22950 _ACEOF
22951 cat >>$CONFIG_STATUS <<\_ACEOF
22954 # CONFIG_HEADER section.
22957 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22958 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22960 # ac_d sets the value in "#define NAME VALUE" lines.
22961 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22962 ac_dB='[ ].*$,\1#\2'
22963 ac_dC=' '
22964 ac_dD=',;t'
22965 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22966 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22967 ac_uB='$,\1#\2define\3'
22968 ac_uC=' '
22969 ac_uD=',;t'
22971 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22973 case $ac_file in
22974 - | *:- | *:-:* ) # input from stdin
22975 cat >$tmp/stdin
22976 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22978 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22980 * ) ac_file_in=$ac_file.in ;;
22981 esac
22983 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22984 echo "$as_me: creating $ac_file" >&6;}
22986 # First look for the input files in the build tree, otherwise in the
22987 # src tree.
22988 ac_file_inputs=`IFS=:
22989 for f in $ac_file_in; do
22990 case $f in
22991 -) echo $tmp/stdin ;;
22992 [\\/$]*)
22993 # Absolute (can't be DOS-style, as IFS=:)
22994 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22995 echo "$as_me: error: cannot find input file: $f" >&2;}
22996 { (exit 1); exit 1; }; }
22997 # Do quote $f, to prevent DOS paths from being IFS'd.
22998 echo "$f";;
22999 *) # Relative
23000 if test -f "$f"; then
23001 # Build tree
23002 echo "$f"
23003 elif test -f "$srcdir/$f"; then
23004 # Source tree
23005 echo "$srcdir/$f"
23006 else
23007 # /dev/null tree
23008 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23009 echo "$as_me: error: cannot find input file: $f" >&2;}
23010 { (exit 1); exit 1; }; }
23011 fi;;
23012 esac
23013 done` || { (exit 1); exit 1; }
23014 # Remove the trailing spaces.
23015 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23017 _ACEOF
23019 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23020 # `conftest.undefs', that substitutes the proper values into
23021 # config.h.in to produce config.h. The first handles `#define'
23022 # templates, and the second `#undef' templates.
23023 # And first: Protect against being on the right side of a sed subst in
23024 # config.status. Protect against being in an unquoted here document
23025 # in config.status.
23026 rm -f conftest.defines conftest.undefs
23027 # Using a here document instead of a string reduces the quoting nightmare.
23028 # Putting comments in sed scripts is not portable.
23030 # `end' is used to avoid that the second main sed command (meant for
23031 # 0-ary CPP macros) applies to n-ary macro definitions.
23032 # See the Autoconf documentation for `clear'.
23033 cat >confdef2sed.sed <<\_ACEOF
23034 s/[\\&,]/\\&/g
23035 s,[\\$`],\\&,g
23036 t clear
23037 : clear
23038 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23039 t end
23040 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23041 : end
23042 _ACEOF
23043 # If some macros were called several times there might be several times
23044 # the same #defines, which is useless. Nevertheless, we may not want to
23045 # sort them, since we want the *last* AC-DEFINE to be honored.
23046 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23047 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23048 rm -f confdef2sed.sed
23050 # This sed command replaces #undef with comments. This is necessary, for
23051 # example, in the case of _POSIX_SOURCE, which is predefined and required
23052 # on some systems where configure will not decide to define it.
23053 cat >>conftest.undefs <<\_ACEOF
23054 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23055 _ACEOF
23057 # Break up conftest.defines because some shells have a limit on the size
23058 # of here documents, and old seds have small limits too (100 cmds).
23059 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23060 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23061 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23062 echo ' :' >>$CONFIG_STATUS
23063 rm -f conftest.tail
23064 while grep . conftest.defines >/dev/null
23066 # Write a limited-size here document to $tmp/defines.sed.
23067 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23068 # Speed up: don't consider the non `#define' lines.
23069 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23070 # Work around the forget-to-reset-the-flag bug.
23071 echo 't clr' >>$CONFIG_STATUS
23072 echo ': clr' >>$CONFIG_STATUS
23073 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23074 echo 'CEOF
23075 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23076 rm -f $tmp/in
23077 mv $tmp/out $tmp/in
23078 ' >>$CONFIG_STATUS
23079 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23080 rm -f conftest.defines
23081 mv conftest.tail conftest.defines
23082 done
23083 rm -f conftest.defines
23084 echo ' fi # grep' >>$CONFIG_STATUS
23085 echo >>$CONFIG_STATUS
23087 # Break up conftest.undefs because some shells have a limit on the size
23088 # of here documents, and old seds have small limits too (100 cmds).
23089 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23090 rm -f conftest.tail
23091 while grep . conftest.undefs >/dev/null
23093 # Write a limited-size here document to $tmp/undefs.sed.
23094 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23095 # Speed up: don't consider the non `#undef'
23096 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23097 # Work around the forget-to-reset-the-flag bug.
23098 echo 't clr' >>$CONFIG_STATUS
23099 echo ': clr' >>$CONFIG_STATUS
23100 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23101 echo 'CEOF
23102 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23103 rm -f $tmp/in
23104 mv $tmp/out $tmp/in
23105 ' >>$CONFIG_STATUS
23106 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23107 rm -f conftest.undefs
23108 mv conftest.tail conftest.undefs
23109 done
23110 rm -f conftest.undefs
23112 cat >>$CONFIG_STATUS <<\_ACEOF
23113 # Let's still pretend it is `configure' which instantiates (i.e., don't
23114 # use $as_me), people would be surprised to read:
23115 # /* config.h. Generated by config.status. */
23116 if test x"$ac_file" = x-; then
23117 echo "/* Generated by configure. */" >$tmp/config.h
23118 else
23119 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23121 cat $tmp/in >>$tmp/config.h
23122 rm -f $tmp/in
23123 if test x"$ac_file" != x-; then
23124 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23125 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23126 echo "$as_me: $ac_file is unchanged" >&6;}
23127 else
23128 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23130 X"$ac_file" : 'X\(//\)[^/]' \| \
23131 X"$ac_file" : 'X\(//\)$' \| \
23132 X"$ac_file" : 'X\(/\)' \| \
23133 . : '\(.\)' 2>/dev/null ||
23134 echo X"$ac_file" |
23135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23137 /^X\(\/\/\)$/{ s//\1/; q; }
23138 /^X\(\/\).*/{ s//\1/; q; }
23139 s/.*/./; q'`
23140 { if $as_mkdir_p; then
23141 mkdir -p "$ac_dir"
23142 else
23143 as_dir="$ac_dir"
23144 as_dirs=
23145 while test ! -d "$as_dir"; do
23146 as_dirs="$as_dir $as_dirs"
23147 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23149 X"$as_dir" : 'X\(//\)[^/]' \| \
23150 X"$as_dir" : 'X\(//\)$' \| \
23151 X"$as_dir" : 'X\(/\)' \| \
23152 . : '\(.\)' 2>/dev/null ||
23153 echo X"$as_dir" |
23154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23156 /^X\(\/\/\)$/{ s//\1/; q; }
23157 /^X\(\/\).*/{ s//\1/; q; }
23158 s/.*/./; q'`
23159 done
23160 test ! -n "$as_dirs" || mkdir $as_dirs
23161 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23162 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23163 { (exit 1); exit 1; }; }; }
23165 rm -f $ac_file
23166 mv $tmp/config.h $ac_file
23168 else
23169 cat $tmp/config.h
23170 rm -f $tmp/config.h
23172 # Compute $ac_file's index in $config_headers.
23173 _am_stamp_count=1
23174 for _am_header in $config_headers :; do
23175 case $_am_header in
23176 $ac_file | $ac_file:* )
23177 break ;;
23179 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23180 esac
23181 done
23182 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23183 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23184 X$ac_file : 'X\(//\)[^/]' \| \
23185 X$ac_file : 'X\(//\)$' \| \
23186 X$ac_file : 'X\(/\)' \| \
23187 . : '\(.\)' 2>/dev/null ||
23188 echo X$ac_file |
23189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23191 /^X\(\/\/\)$/{ s//\1/; q; }
23192 /^X\(\/\).*/{ s//\1/; q; }
23193 s/.*/./; q'`/stamp-h$_am_stamp_count
23194 done
23195 _ACEOF
23196 cat >>$CONFIG_STATUS <<\_ACEOF
23199 # CONFIG_COMMANDS section.
23201 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23202 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23203 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23204 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23205 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23206 X"$ac_dest" : 'X\(//\)[^/]' \| \
23207 X"$ac_dest" : 'X\(//\)$' \| \
23208 X"$ac_dest" : 'X\(/\)' \| \
23209 . : '\(.\)' 2>/dev/null ||
23210 echo X"$ac_dest" |
23211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23213 /^X\(\/\/\)$/{ s//\1/; q; }
23214 /^X\(\/\).*/{ s//\1/; q; }
23215 s/.*/./; q'`
23216 { if $as_mkdir_p; then
23217 mkdir -p "$ac_dir"
23218 else
23219 as_dir="$ac_dir"
23220 as_dirs=
23221 while test ! -d "$as_dir"; do
23222 as_dirs="$as_dir $as_dirs"
23223 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23225 X"$as_dir" : 'X\(//\)[^/]' \| \
23226 X"$as_dir" : 'X\(//\)$' \| \
23227 X"$as_dir" : 'X\(/\)' \| \
23228 . : '\(.\)' 2>/dev/null ||
23229 echo X"$as_dir" |
23230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23232 /^X\(\/\/\)$/{ s//\1/; q; }
23233 /^X\(\/\).*/{ s//\1/; q; }
23234 s/.*/./; q'`
23235 done
23236 test ! -n "$as_dirs" || mkdir $as_dirs
23237 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23239 { (exit 1); exit 1; }; }; }
23241 ac_builddir=.
23243 if test "$ac_dir" != .; then
23244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23245 # A "../" for each directory in $ac_dir_suffix.
23246 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23247 else
23248 ac_dir_suffix= ac_top_builddir=
23251 case $srcdir in
23252 .) # No --srcdir option. We are building in place.
23253 ac_srcdir=.
23254 if test -z "$ac_top_builddir"; then
23255 ac_top_srcdir=.
23256 else
23257 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23258 fi ;;
23259 [\\/]* | ?:[\\/]* ) # Absolute path.
23260 ac_srcdir=$srcdir$ac_dir_suffix;
23261 ac_top_srcdir=$srcdir ;;
23262 *) # Relative path.
23263 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23264 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23265 esac
23267 # Do not use `cd foo && pwd` to compute absolute paths, because
23268 # the directories may not exist.
23269 case `pwd` in
23270 .) ac_abs_builddir="$ac_dir";;
23272 case "$ac_dir" in
23273 .) ac_abs_builddir=`pwd`;;
23274 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23275 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23276 esac;;
23277 esac
23278 case $ac_abs_builddir in
23279 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23281 case ${ac_top_builddir}. in
23282 .) ac_abs_top_builddir=$ac_abs_builddir;;
23283 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23284 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23285 esac;;
23286 esac
23287 case $ac_abs_builddir in
23288 .) ac_abs_srcdir=$ac_srcdir;;
23290 case $ac_srcdir in
23291 .) ac_abs_srcdir=$ac_abs_builddir;;
23292 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23293 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23294 esac;;
23295 esac
23296 case $ac_abs_builddir in
23297 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23299 case $ac_top_srcdir in
23300 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23301 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23302 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23303 esac;;
23304 esac
23307 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23308 echo "$as_me: executing $ac_dest commands" >&6;}
23309 case $ac_dest in
23310 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23311 # Strip MF so we end up with the name of the file.
23312 mf=`echo "$mf" | sed -e 's/:.*$//'`
23313 # Check whether this is an Automake generated Makefile or not.
23314 # We used to match only the files named `Makefile.in', but
23315 # some people rename them; so instead we look at the file content.
23316 # Grep'ing the first line is not enough: some people post-process
23317 # each Makefile.in and add a new line on top of each file to say so.
23318 # So let's grep whole file.
23319 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23320 dirpart=`(dirname "$mf") 2>/dev/null ||
23321 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23322 X"$mf" : 'X\(//\)[^/]' \| \
23323 X"$mf" : 'X\(//\)$' \| \
23324 X"$mf" : 'X\(/\)' \| \
23325 . : '\(.\)' 2>/dev/null ||
23326 echo X"$mf" |
23327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23329 /^X\(\/\/\)$/{ s//\1/; q; }
23330 /^X\(\/\).*/{ s//\1/; q; }
23331 s/.*/./; q'`
23332 else
23333 continue
23335 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23336 # Extract the definition of DEP_FILES from the Makefile without
23337 # running `make'.
23338 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23339 test -z "$DEPDIR" && continue
23340 # When using ansi2knr, U may be empty or an underscore; expand it
23341 U=`sed -n 's/^U = //p' < "$mf"`
23342 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23343 # We invoke sed twice because it is the simplest approach to
23344 # changing $(DEPDIR) to its actual value in the expansion.
23345 for file in `sed -n '
23346 /^DEP_FILES = .*\\\\$/ {
23347 s/^DEP_FILES = //
23348 :loop
23349 s/\\\\$//
23352 /\\\\$/ b loop
23355 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23356 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23357 # Make sure the directory exists.
23358 test -f "$dirpart/$file" && continue
23359 fdir=`(dirname "$file") 2>/dev/null ||
23360 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23361 X"$file" : 'X\(//\)[^/]' \| \
23362 X"$file" : 'X\(//\)$' \| \
23363 X"$file" : 'X\(/\)' \| \
23364 . : '\(.\)' 2>/dev/null ||
23365 echo X"$file" |
23366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23368 /^X\(\/\/\)$/{ s//\1/; q; }
23369 /^X\(\/\).*/{ s//\1/; q; }
23370 s/.*/./; q'`
23371 { if $as_mkdir_p; then
23372 mkdir -p $dirpart/$fdir
23373 else
23374 as_dir=$dirpart/$fdir
23375 as_dirs=
23376 while test ! -d "$as_dir"; do
23377 as_dirs="$as_dir $as_dirs"
23378 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23380 X"$as_dir" : 'X\(//\)[^/]' \| \
23381 X"$as_dir" : 'X\(//\)$' \| \
23382 X"$as_dir" : 'X\(/\)' \| \
23383 . : '\(.\)' 2>/dev/null ||
23384 echo X"$as_dir" |
23385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23387 /^X\(\/\/\)$/{ s//\1/; q; }
23388 /^X\(\/\).*/{ s//\1/; q; }
23389 s/.*/./; q'`
23390 done
23391 test ! -n "$as_dirs" || mkdir $as_dirs
23392 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23393 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23394 { (exit 1); exit 1; }; }; }
23396 # echo "creating $dirpart/$file"
23397 echo '# dummy' > "$dirpart/$file"
23398 done
23399 done
23401 esac
23402 done
23403 _ACEOF
23405 cat >>$CONFIG_STATUS <<\_ACEOF
23407 { (exit 0); exit 0; }
23408 _ACEOF
23409 chmod +x $CONFIG_STATUS
23410 ac_clean_files=$ac_clean_files_save
23413 # configure is writing to config.log, and then calls config.status.
23414 # config.status does its own redirection, appending to config.log.
23415 # Unfortunately, on DOS this fails, as config.log is still kept open
23416 # by configure, so config.status won't be able to write to it; its
23417 # output is simply discarded. So we exec the FD to /dev/null,
23418 # effectively closing config.log, so it can be properly (re)opened and
23419 # appended to by config.status. When coming back to configure, we
23420 # need to make the FD available again.
23421 if test "$no_create" != yes; then
23422 ac_cs_success=:
23423 ac_config_status_args=
23424 test "$silent" = yes &&
23425 ac_config_status_args="$ac_config_status_args --quiet"
23426 exec 5>/dev/null
23427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23428 exec 5>>config.log
23429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23430 # would make configure fail if this is the last instruction.
23431 $ac_cs_success || { (exit 1); exit 1; }