Merge branch 'master' of NalaGinrut@repo.or.cz:srv/git/NalaBridge
[NalaBridge.git] / configure
blobabbc3b1224c8ededd3a34ba3705066d16d136f23
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="configure.in"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
507 ac_prev=
508 for ac_option
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
521 case $ac_option in
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
540 --config-cache | -C)
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 esac
804 done
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
879 else
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975 _ACEOF
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1006 cat <<\_ACEOF
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1019 if test -n "$ac_init_help"; then
1021 cat <<\_ACEOF
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking Speeds up one-time builds
1027 --enable-dependency-tracking Do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1036 Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1041 both]
1042 --with-tags[=TAGS]
1043 include additional configurations [automatic]
1045 Some influential environment variables:
1046 CC C compiler command
1047 CFLAGS C compiler flags
1048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1049 nonstandard directory <lib dir>
1050 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1051 headers in a nonstandard directory <include dir>
1052 CPP C preprocessor
1053 CXX C++ compiler command
1054 CXXFLAGS C++ compiler flags
1055 CXXCPP C++ preprocessor
1056 F77 Fortran 77 compiler command
1057 FFLAGS Fortran 77 compiler flags
1059 Use these variables to override the choices made by `configure' or to help
1060 it to find libraries and programs with nonstandard names/locations.
1062 _ACEOF
1065 if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1067 ac_popdir=`pwd`
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1070 ac_builddir=.
1072 if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076 else
1077 ac_dir_suffix= ac_top_builddir=
1080 case $srcdir in
1081 .) # No --srcdir option. We are building in place.
1082 ac_srcdir=.
1083 if test -z "$ac_top_builddir"; then
1084 ac_top_srcdir=.
1085 else
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087 fi ;;
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1091 *) # Relative path.
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094 esac
1096 # Do not use `cd foo && pwd` to compute absolute paths, because
1097 # the directories may not exist.
1098 case `pwd` in
1099 .) ac_abs_builddir="$ac_dir";;
1101 case "$ac_dir" in
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105 esac;;
1106 esac
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1119 case $ac_srcdir in
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 esac;;
1133 esac
1135 cd $ac_dir
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1138 echo
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1141 echo
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1145 echo
1146 $ac_configure --help
1147 else
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150 cd $ac_popdir
1151 done
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1156 cat <<\_ACEOF
1158 Copyright (C) 2003 Free Software Foundation, Inc.
1159 This configure script is free software; the Free Software Foundation
1160 gives unlimited permission to copy, distribute and modify it.
1161 _ACEOF
1162 exit 0
1164 exec 5>config.log
1165 cat >&5 <<_ACEOF
1166 This file contains any messages produced by compilers while
1167 running configure, to aid debugging if configure makes a mistake.
1169 It was created by $as_me, which was
1170 generated by GNU Autoconf 2.59. Invocation command line was
1172 $ $0 $@
1174 _ACEOF
1176 cat <<_ASUNAME
1177 ## --------- ##
1178 ## Platform. ##
1179 ## --------- ##
1181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1182 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1183 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1184 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1185 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1188 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1191 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1193 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1194 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1195 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1196 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198 _ASUNAME
1200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1201 for as_dir in $PATH
1203 IFS=$as_save_IFS
1204 test -z "$as_dir" && as_dir=.
1205 echo "PATH: $as_dir"
1206 done
1208 } >&5
1210 cat >&5 <<_ACEOF
1213 ## ----------- ##
1214 ## Core tests. ##
1215 ## ----------- ##
1217 _ACEOF
1220 # Keep a trace of the command line.
1221 # Strip out --no-create and --no-recursion so they do not pile up.
1222 # Strip out --silent because we don't want to record it for future runs.
1223 # Also quote any args containing shell meta-characters.
1224 # Make two passes to allow for proper duplicate-argument suppression.
1225 ac_configure_args=
1226 ac_configure_args0=
1227 ac_configure_args1=
1228 ac_sep=
1229 ac_must_keep_next=false
1230 for ac_pass in 1 2
1232 for ac_arg
1234 case $ac_arg in
1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 continue ;;
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 esac
1242 case $ac_pass in
1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246 if test $ac_must_keep_next = true; then
1247 ac_must_keep_next=false # Got value, back to normal.
1248 else
1249 case $ac_arg in
1250 *=* | --config-cache | -C | -disable-* | --disable-* \
1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253 | -with-* | --with-* | -without-* | --without-* | --x)
1254 case "$ac_configure_args0 " in
1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1256 esac
1258 -* ) ac_must_keep_next=true ;;
1259 esac
1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262 # Get rid of the leading space.
1263 ac_sep=" "
1265 esac
1266 done
1267 done
1268 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271 # When interrupted or exit'd, cleanup temporary files, and complete
1272 # config.log. We remove comments because anyway the quotes in there
1273 # would cause problems or look ugly.
1274 # WARNING: Be sure not to use single quotes in there, as some shells,
1275 # such as our DU 5.0 friend, will then `close' the trap.
1276 trap 'exit_status=$?
1277 # Save into config.log some information that might help in debugging.
1279 echo
1281 cat <<\_ASBOX
1282 ## ---------------- ##
1283 ## Cache variables. ##
1284 ## ---------------- ##
1285 _ASBOX
1286 echo
1287 # The following way of writing the cache mishandles newlines in values,
1289 (set) 2>&1 |
1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1291 *ac_space=\ *)
1292 sed -n \
1293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297 sed -n \
1298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1300 esac;
1302 echo
1304 cat <<\_ASBOX
1305 ## ----------------- ##
1306 ## Output variables. ##
1307 ## ----------------- ##
1308 _ASBOX
1309 echo
1310 for ac_var in $ac_subst_vars
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1317 if test -n "$ac_subst_files"; then
1318 cat <<\_ASBOX
1319 ## ------------- ##
1320 ## Output files. ##
1321 ## ------------- ##
1322 _ASBOX
1323 echo
1324 for ac_var in $ac_subst_files
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1328 done | sort
1329 echo
1332 if test -s confdefs.h; then
1333 cat <<\_ASBOX
1334 ## ----------- ##
1335 ## confdefs.h. ##
1336 ## ----------- ##
1337 _ASBOX
1338 echo
1339 sed "/^$/d" confdefs.h | sort
1340 echo
1342 test "$ac_signal" != 0 &&
1343 echo "$as_me: caught signal $ac_signal"
1344 echo "$as_me: exit $exit_status"
1345 } >&5
1346 rm -f core *.core &&
1347 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1348 exit $exit_status
1350 for ac_signal in 1 2 13 15; do
1351 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1352 done
1353 ac_signal=0
1355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1356 rm -rf conftest* confdefs.h
1357 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1358 echo >confdefs.h
1360 # Predefined preprocessor variables.
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_NAME "$PACKAGE_NAME"
1364 _ACEOF
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1369 _ACEOF
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1374 _ACEOF
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_STRING "$PACKAGE_STRING"
1379 _ACEOF
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1384 _ACEOF
1387 # Let the site file select an alternate cache file if it wants to.
1388 # Prefer explicitly selected file to automatically selected ones.
1389 if test -z "$CONFIG_SITE"; then
1390 if test "x$prefix" != xNONE; then
1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1392 else
1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396 for ac_site_file in $CONFIG_SITE; do
1397 if test -r "$ac_site_file"; then
1398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399 echo "$as_me: loading site script $ac_site_file" >&6;}
1400 sed 's/^/| /' "$ac_site_file" >&5
1401 . "$ac_site_file"
1403 done
1405 if test -r "$cache_file"; then
1406 # Some versions of bash will fail to source /dev/null (special
1407 # files actually), so we avoid doing that.
1408 if test -f "$cache_file"; then
1409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410 echo "$as_me: loading cache $cache_file" >&6;}
1411 case $cache_file in
1412 [\\/]* | ?:[\\/]* ) . $cache_file;;
1413 *) . ./$cache_file;;
1414 esac
1416 else
1417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418 echo "$as_me: creating cache $cache_file" >&6;}
1419 >$cache_file
1422 # Check that the precious variables saved in the cache have kept the same
1423 # value.
1424 ac_cache_corrupted=false
1425 for ac_var in `(set) 2>&1 |
1426 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428 eval ac_new_set=\$ac_env_${ac_var}_set
1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430 eval ac_new_val="\$ac_env_${ac_var}_value"
1431 case $ac_old_set,$ac_new_set in
1432 set,)
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1436 ,set)
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1440 ,);;
1442 if test "x$ac_old_val" != "x$ac_new_val"; then
1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1444 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1446 echo "$as_me: former value: $ac_old_val" >&2;}
1447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1448 echo "$as_me: current value: $ac_new_val" >&2;}
1449 ac_cache_corrupted=:
1450 fi;;
1451 esac
1452 # Pass precious variables to config.status.
1453 if test "$ac_new_set" = set; then
1454 case $ac_new_val in
1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1457 *) ac_arg=$ac_var=$ac_new_val ;;
1458 esac
1459 case " $ac_configure_args " in
1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1462 esac
1464 done
1465 if $ac_cache_corrupted; then
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 ac_config_headers="$ac_config_headers config.h"
1500 am__api_version="1.7"
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1516 done
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 # Find a good install program. We prefer a C program (faster),
1527 # so one script is as good as another. But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1532 # AIX /bin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1548 IFS=$as_save_IFS
1549 test -z "$as_dir" && as_dir=.
1550 # Account for people who put trailing slashes in PATH elements.
1551 case $as_dir/ in
1552 ./ | .// | /cC/* | \
1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1555 /usr/ucb/* ) ;;
1557 # OSF1 and SCO ODT 3.0 have their own names for install.
1558 # Don't use installbsd from OSF since it installs stuff as root
1559 # by default.
1560 for ac_prog in ginstall scoinst install; do
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563 if test $ac_prog = install &&
1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565 # AIX install. It has an incompatible calling convention.
1567 elif test $ac_prog = install &&
1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # program-specific install script used by HP pwplus--don't use.
1571 else
1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1573 break 3
1576 done
1577 done
1579 esac
1580 done
1584 if test "${ac_cv_path_install+set}" = set; then
1585 INSTALL=$ac_cv_path_install
1586 else
1587 # As a last resort, use the slow shell script. We don't cache a
1588 # path for INSTALL within a source directory, because that will
1589 # break other packages using the cache if that directory is
1590 # removed, or if the path is relative.
1591 INSTALL=$ac_install_sh
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1607 # Just in case
1608 sleep 1
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments. Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1614 # directory).
1615 if (
1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617 if test "$*" = "X"; then
1618 # -L didn't work.
1619 set X `ls -t $srcdir/configure conftest.file`
1621 rm -f conftest.file
1622 if test "$*" != "X $srcdir/configure conftest.file" \
1623 && test "$*" != "X conftest.file $srcdir/configure"; then
1625 # If neither matched, then we have a broken ls. This can happen
1626 # if, for instance, CONFIG_SHELL is bash and it inherits a
1627 # broken ls alias from the environment. This has actually
1628 # happened. Such a system could not be considered "sane".
1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1632 alias in your environment" >&2;}
1633 { (exit 1); exit 1; }; }
1636 test "$2" = conftest.file
1638 then
1639 # Ok.
1641 else
1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646 { (exit 1); exit 1; }; }
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $. echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1659 _ACEOF
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1661 rm conftest.sed
1664 # expand $ac_aux_dir to an absolute path
1665 am_aux_dir=`cd $ac_aux_dir && pwd`
1667 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1668 # Use eval to expand $SHELL
1669 if eval "$MISSING --run true"; then
1670 am_missing_run="$MISSING --run "
1671 else
1672 am_missing_run=
1673 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677 for ac_prog in gawk mawk nawk awk
1679 # Extract the first word of "$ac_prog", so it can be a program name with args.
1680 set dummy $ac_prog; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_AWK+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686 if test -n "$AWK"; then
1687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 ac_cv_prog_AWK="$ac_prog"
1697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 break 2
1700 done
1701 done
1705 AWK=$ac_cv_prog_AWK
1706 if test -n "$AWK"; then
1707 echo "$as_me:$LINENO: result: $AWK" >&5
1708 echo "${ECHO_T}$AWK" >&6
1709 else
1710 echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1714 test -n "$AWK" && break
1715 done
1717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723 cat >conftest.make <<\_ACEOF
1724 all:
1725 @echo 'ac_maketemp="$(MAKE)"'
1726 _ACEOF
1727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1729 if test -n "$ac_maketemp"; then
1730 eval ac_cv_prog_make_${ac_make}_set=yes
1731 else
1732 eval ac_cv_prog_make_${ac_make}_set=no
1734 rm -f conftest.make
1736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1737 echo "$as_me:$LINENO: result: yes" >&5
1738 echo "${ECHO_T}yes" >&6
1739 SET_MAKE=
1740 else
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743 SET_MAKE="MAKE=${MAKE-make}"
1746 rm -rf .tst 2>/dev/null
1747 mkdir .tst 2>/dev/null
1748 if test -d .tst; then
1749 am__leading_dot=.
1750 else
1751 am__leading_dot=_
1753 rmdir .tst 2>/dev/null
1755 # test to see if srcdir already configured
1756 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1757 test -f $srcdir/config.status; then
1758 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1759 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1760 { (exit 1); exit 1; }; }
1763 # test whether we have cygpath
1764 if test -z "$CYGPATH_W"; then
1765 if (cygpath --version) >/dev/null 2>/dev/null; then
1766 CYGPATH_W='cygpath -w'
1767 else
1768 CYGPATH_W=echo
1773 # Define the identity of the package.
1774 PACKAGE=minibridge
1775 VERSION=0.1
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE "$PACKAGE"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define VERSION "$VERSION"
1785 _ACEOF
1787 # Some tools Automake needs.
1789 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1792 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1795 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1798 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1801 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1804 AMTAR=${AMTAR-"${am_missing_run}tar"}
1806 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1808 # Installed binaries are usually stripped using `strip' when the user
1809 # run `make install-strip'. However `strip' might not be the right
1810 # tool to use in cross-compilation environments, therefore Automake
1811 # will honor the `STRIP' environment variable to overrule this program.
1812 if test "$cross_compiling" != no; then
1813 if test -n "$ac_tool_prefix"; then
1814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}strip; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_STRIP+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821 if test -n "$STRIP"; then
1822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 break 2
1835 done
1836 done
1840 STRIP=$ac_cv_prog_STRIP
1841 if test -n "$STRIP"; then
1842 echo "$as_me:$LINENO: result: $STRIP" >&5
1843 echo "${ECHO_T}$STRIP" >&6
1844 else
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1850 if test -z "$ac_cv_prog_STRIP"; then
1851 ac_ct_STRIP=$STRIP
1852 # Extract the first word of "strip", so it can be a program name with args.
1853 set dummy strip; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$ac_ct_STRIP"; then
1860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_ac_ct_STRIP="strip"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1876 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1880 if test -n "$ac_ct_STRIP"; then
1881 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1882 echo "${ECHO_T}$ac_ct_STRIP" >&6
1883 else
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1888 STRIP=$ac_ct_STRIP
1889 else
1890 STRIP="$ac_cv_prog_STRIP"
1894 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1896 # We need awk for the "check" target. The system "awk" is bad on
1897 # some platforms.
1902 ac_ext=c
1903 ac_cpp='$CPP $CPPFLAGS'
1904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908 ac_ext=c
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1935 done
1936 done
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$ac_cv_prog_CC"; then
1951 ac_ct_CC=$CC
1952 # Extract the first word of "gcc", so it can be a program name with args.
1953 set dummy gcc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$ac_ct_CC"; then
1960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_ac_ct_CC="gcc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1973 done
1974 done
1978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1979 if test -n "$ac_ct_CC"; then
1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1981 echo "${ECHO_T}$ac_ct_CC" >&6
1982 else
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1987 CC=$ac_ct_CC
1988 else
1989 CC="$ac_cv_prog_CC"
1992 if test -z "$CC"; then
1993 if test -n "$ac_tool_prefix"; then
1994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}cc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_CC="${ac_tool_prefix}cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022 echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2030 if test -z "$ac_cv_prog_CC"; then
2031 ac_ct_CC=$CC
2032 # Extract the first word of "cc", so it can be a program name with args.
2033 set dummy cc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test -n "$ac_ct_CC"; then
2040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049 ac_cv_prog_ac_ct_CC="cc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2053 done
2054 done
2058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059 if test -n "$ac_ct_CC"; then
2060 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061 echo "${ECHO_T}$ac_ct_CC" >&6
2062 else
2063 echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2067 CC=$ac_ct_CC
2068 else
2069 CC="$ac_cv_prog_CC"
2073 if test -z "$CC"; then
2074 # Extract the first word of "cc", so it can be a program name with args.
2075 set dummy cc; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 else
2084 ac_prog_rejected=no
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2093 ac_prog_rejected=yes
2094 continue
2096 ac_cv_prog_CC="cc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2100 done
2101 done
2103 if test $ac_prog_rejected = yes; then
2104 # We found a bogon in the path, so make sure we never use it.
2105 set dummy $ac_cv_prog_CC
2106 shift
2107 if test $# != 0; then
2108 # We chose a different compiler from the bogus one.
2109 # However, it has the same basename, so the bogon will be chosen
2110 # first if we set CC to just the basename; use the full file name.
2111 shift
2112 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2117 CC=$ac_cv_prog_CC
2118 if test -n "$CC"; then
2119 echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6
2121 else
2122 echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 for ac_prog in cl
2131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159 echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2166 test -n "$CC" && break
2167 done
2169 if test -z "$CC"; then
2170 ac_ct_CC=$CC
2171 for ac_prog in cl
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$ac_ct_CC"; then
2181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 ac_cv_prog_ac_ct_CC="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2194 done
2195 done
2199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2200 if test -n "$ac_ct_CC"; then
2201 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2202 echo "${ECHO_T}$ac_ct_CC" >&6
2203 else
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2208 test -n "$ac_ct_CC" && break
2209 done
2211 CC=$ac_ct_CC
2217 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: no acceptable C compiler found in \$PATH
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }
2223 # Provide some information about the compiler.
2224 echo "$as_me:$LINENO:" \
2225 "checking for C compiler version" >&5
2226 ac_compiler=`set X $ac_compile; echo $2`
2227 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2228 (eval $ac_compiler --version </dev/null >&5) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2233 (eval $ac_compiler -v </dev/null >&5) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }
2237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2238 (eval $ac_compiler -V </dev/null >&5) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h. */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2251 main ()
2255 return 0;
2257 _ACEOF
2258 ac_clean_files_save=$ac_clean_files
2259 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2260 # Try to create an executable without -o first, disregard a.out.
2261 # It will help us diagnose broken compilers, and finding out an intuition
2262 # of exeext.
2263 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2264 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2265 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2267 (eval $ac_link_default) 2>&5
2268 ac_status=$?
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # Find the output, starting from the most likely. This scheme is
2272 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2273 # resort.
2275 # Be careful to initialize this variable, since it used to be cached.
2276 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2277 ac_cv_exeext=
2278 # b.out is created by i960 compilers.
2279 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2281 test -f "$ac_file" || continue
2282 case $ac_file in
2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2285 conftest.$ac_ext )
2286 # This is the source file.
2288 [ab].out )
2289 # We found the default executable, but exeext='' is most
2290 # certainly right.
2291 break;;
2292 *.* )
2293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 # FIXME: I believe we export ac_cv_exeext for Libtool,
2295 # but it would be cool to find out if it's true. Does anybody
2296 # maintain Libtool? --akim.
2297 export ac_cv_exeext
2298 break;;
2300 break;;
2301 esac
2302 done
2303 else
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: C compiler cannot create executables
2310 See \`config.log' for more details." >&2;}
2311 { (exit 77); exit 77; }; }
2314 ac_exeext=$ac_cv_exeext
2315 echo "$as_me:$LINENO: result: $ac_file" >&5
2316 echo "${ECHO_T}$ac_file" >&6
2318 # Check the compiler produces executables we can run. If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2321 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2322 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2323 # If not cross compiling, check that we can run a simple program.
2324 if test "$cross_compiling" != yes; then
2325 if { ac_try='./$ac_file'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 cross_compiling=no
2332 else
2333 if test "$cross_compiling" = maybe; then
2334 cross_compiling=yes
2335 else
2336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'.
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2346 echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6
2349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2350 ac_clean_files=$ac_clean_files_save
2351 # Check the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2355 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2356 echo "${ECHO_T}$cross_compiling" >&6
2358 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2361 (eval $ac_link) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; then
2365 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2366 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2367 # work properly (i.e., refer to `conftest.exe'), while it won't with
2368 # `rm'.
2369 for ac_file in conftest.exe conftest conftest.*; do
2370 test -f "$ac_file" || continue
2371 case $ac_file in
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2373 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2374 export ac_cv_exeext
2375 break;;
2376 * ) break;;
2377 esac
2378 done
2379 else
2380 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2387 rm -f conftest$ac_cv_exeext
2388 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2389 echo "${ECHO_T}$ac_cv_exeext" >&6
2391 rm -f conftest.$ac_ext
2392 EXEEXT=$ac_cv_exeext
2393 ac_exeext=$EXEEXT
2394 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2395 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2396 if test "${ac_cv_objext+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h. */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2407 main ()
2411 return 0;
2413 _ACEOF
2414 rm -f conftest.o conftest.obj
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; then
2420 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2421 case $ac_file in
2422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2424 break;;
2425 esac
2426 done
2427 else
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2431 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2432 See \`config.log' for more details." >&5
2433 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2434 See \`config.log' for more details." >&2;}
2435 { (exit 1); exit 1; }; }
2438 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2440 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2441 echo "${ECHO_T}$ac_cv_objext" >&6
2442 OBJEXT=$ac_cv_objext
2443 ac_objext=$OBJEXT
2444 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2445 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2446 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h. */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2457 main ()
2459 #ifndef __GNUC__
2460 choke me
2461 #endif
2464 return 0;
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>conftest.er1
2470 ac_status=$?
2471 grep -v '^ *+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -z "$ac_c_werror_flag"
2477 || test ! -s conftest.err'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 (eval $ac_try) 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 (eval $ac_try) 2>&5
2486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 ac_compiler_gnu=yes
2490 else
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2494 ac_compiler_gnu=no
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2500 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2502 GCC=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CFLAGS=${CFLAGS+set}
2504 ac_save_CFLAGS=$CFLAGS
2505 CFLAGS="-g"
2506 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2507 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cc_g+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h. */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2519 main ()
2523 return 0;
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_cv_prog_cc_g=yes
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 ac_cv_prog_cc_g=no
2555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2558 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2559 if test "$ac_test_CFLAGS" = set; then
2560 CFLAGS=$ac_save_CFLAGS
2561 elif test $ac_cv_prog_cc_g = yes; then
2562 if test "$GCC" = yes; then
2563 CFLAGS="-g -O2"
2564 else
2565 CFLAGS="-g"
2567 else
2568 if test "$GCC" = yes; then
2569 CFLAGS="-O2"
2570 else
2571 CFLAGS=
2574 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2575 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2576 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579 ac_cv_prog_cc_stdc=no
2580 ac_save_CC=$CC
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587 #include <stdarg.h>
2588 #include <stdio.h>
2589 #include <sys/types.h>
2590 #include <sys/stat.h>
2591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2592 struct buf { int x; };
2593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2594 static char *e (p, i)
2595 char **p;
2596 int i;
2598 return p[i];
2600 static char *f (char * (*g) (char **, int), char **p, ...)
2602 char *s;
2603 va_list v;
2604 va_start (v,p);
2605 s = g (p, va_arg (v,int));
2606 va_end (v);
2607 return s;
2610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2611 function prototypes and stuff, but not '\xHH' hex character constants.
2612 These don't provoke an error unfortunately, instead are silently treated
2613 as 'x'. The following induces an error, until -std1 is added to get
2614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2615 array size at least. It's necessary to write '\x00'==0 to get something
2616 that's true only with -std1. */
2617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2619 int test (int i, double x);
2620 struct s1 {int (*f) (int a);};
2621 struct s2 {int (*f) (double a);};
2622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2623 int argc;
2624 char **argv;
2626 main ()
2628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2630 return 0;
2632 _ACEOF
2633 # Don't try gcc -ansi; that turns off useful extensions and
2634 # breaks some systems' header files.
2635 # AIX -qlanglvl=ansi
2636 # Ultrix and OSF/1 -std1
2637 # HP-UX 10.20 and later -Ae
2638 # HP-UX older versions -Aa -D_HPUX_SOURCE
2639 # SVR4 -Xc -D__EXTENSIONS__
2640 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2642 CC="$ac_save_CC $ac_arg"
2643 rm -f conftest.$ac_objext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645 (eval $ac_compile) 2>conftest.er1
2646 ac_status=$?
2647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -z "$ac_c_werror_flag"
2653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 ac_cv_prog_cc_stdc=$ac_arg
2666 break
2667 else
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2672 rm -f conftest.err conftest.$ac_objext
2673 done
2674 rm -f conftest.$ac_ext conftest.$ac_objext
2675 CC=$ac_save_CC
2679 case "x$ac_cv_prog_cc_stdc" in
2680 x|xno)
2681 echo "$as_me:$LINENO: result: none needed" >&5
2682 echo "${ECHO_T}none needed" >&6 ;;
2684 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2685 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2686 CC="$CC $ac_cv_prog_cc_stdc" ;;
2687 esac
2689 # Some people use a C++ compiler to compile C. Since we use `exit',
2690 # in C++ we need to declare it. In case someone uses the same compiler
2691 # for both compiling C and C++ we need to have the C++ compiler decide
2692 # the declaration of exit, since it's the most demanding environment.
2693 cat >conftest.$ac_ext <<_ACEOF
2694 #ifndef __cplusplus
2695 choke me
2696 #endif
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag"
2708 || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 for ac_declaration in \
2721 '' \
2722 'extern "C" void std::exit (int) throw (); using std::exit;' \
2723 'extern "C" void std::exit (int); using std::exit;' \
2724 'extern "C" void exit (int) throw ();' \
2725 'extern "C" void exit (int);' \
2726 'void exit (int);'
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 $ac_declaration
2735 #include <stdlib.h>
2737 main ()
2739 exit (42);
2741 return 0;
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 continue
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h. */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 $ac_declaration
2782 main ()
2784 exit (42);
2786 return 0;
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 break
2812 else
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 done
2819 rm -f conftest*
2820 if test -n "$ac_declaration"; then
2821 echo '#ifdef __cplusplus' >>confdefs.h
2822 echo $ac_declaration >>confdefs.h
2823 echo '#endif' >>confdefs.h
2826 else
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_ext=c
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 DEPDIR="${am__leading_dot}deps"
2839 ac_config_commands="$ac_config_commands depfiles"
2842 am_make=${MAKE-make}
2843 cat > confinc << 'END'
2844 am__doit:
2845 @echo done
2846 .PHONY: am__doit
2848 # If we don't find an include directive, just comment out the code.
2849 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2850 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2851 am__include="#"
2852 am__quote=
2853 _am_result=none
2854 # First try GNU make style include.
2855 echo "include confinc" > confmf
2856 # We grep out `Entering directory' and `Leaving directory'
2857 # messages which can occur if `w' ends up in MAKEFLAGS.
2858 # In particular we don't look at `^make:' because GNU make might
2859 # be invoked under some other name (usually "gmake"), in which
2860 # case it prints its new name instead of `make'.
2861 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2862 am__include=include
2863 am__quote=
2864 _am_result=GNU
2866 # Now try BSD make style include.
2867 if test "$am__include" = "#"; then
2868 echo '.include "confinc"' > confmf
2869 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2870 am__include=.include
2871 am__quote="\""
2872 _am_result=BSD
2877 echo "$as_me:$LINENO: result: $_am_result" >&5
2878 echo "${ECHO_T}$_am_result" >&6
2879 rm -f confinc confmf
2881 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2882 if test "${enable_dependency_tracking+set}" = set; then
2883 enableval="$enable_dependency_tracking"
2886 if test "x$enable_dependency_tracking" != xno; then
2887 am_depcomp="$ac_aux_dir/depcomp"
2888 AMDEPBACKSLASH='\'
2892 if test "x$enable_dependency_tracking" != xno; then
2893 AMDEP_TRUE=
2894 AMDEP_FALSE='#'
2895 else
2896 AMDEP_TRUE='#'
2897 AMDEP_FALSE=
2903 depcc="$CC" am_compiler_list=
2905 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2906 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2907 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2911 # We make a subdir and do the tests there. Otherwise we can end up
2912 # making bogus files that we don't know about and never remove. For
2913 # instance it was reported that on HP-UX the gcc test will end up
2914 # making a dummy file named `D' -- because `-MD' means `put the output
2915 # in D'.
2916 mkdir conftest.dir
2917 # Copy depcomp to subdir because otherwise we won't find it if we're
2918 # using a relative directory.
2919 cp "$am_depcomp" conftest.dir
2920 cd conftest.dir
2921 # We will build objects and dependencies in a subdirectory because
2922 # it helps to detect inapplicable dependency modes. For instance
2923 # both Tru64's cc and ICC support -MD to output dependencies as a
2924 # side effect of compilation, but ICC will put the dependencies in
2925 # the current directory while Tru64 will put them in the object
2926 # directory.
2927 mkdir sub
2929 am_cv_CC_dependencies_compiler_type=none
2930 if test "$am_compiler_list" = ""; then
2931 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2933 for depmode in $am_compiler_list; do
2934 # Setup a source with many dependencies, because some compilers
2935 # like to wrap large dependency lists on column 80 (with \), and
2936 # we should not choose a depcomp mode which is confused by this.
2938 # We need to recreate these files for each test, as the compiler may
2939 # overwrite some of them when testing with obscure command lines.
2940 # This happens at least with the AIX C compiler.
2941 : > sub/conftest.c
2942 for i in 1 2 3 4 5 6; do
2943 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2944 : > sub/conftst$i.h
2945 done
2946 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2948 case $depmode in
2949 nosideeffect)
2950 # after this tag, mechanisms are not by side-effect, so they'll
2951 # only be used when explicitly requested
2952 if test "x$enable_dependency_tracking" = xyes; then
2953 continue
2954 else
2955 break
2958 none) break ;;
2959 esac
2960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2961 # mode. It turns out that the SunPro C++ compiler does not properly
2962 # handle `-M -o', and we need to detect this.
2963 if depmode=$depmode \
2964 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2966 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2967 >/dev/null 2>conftest.err &&
2968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2969 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2971 # icc doesn't choke on unknown options, it will just issue warnings
2972 # (even with -Werror). So we grep stderr for any message
2973 # that says an option was ignored.
2974 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2975 am_cv_CC_dependencies_compiler_type=$depmode
2976 break
2979 done
2981 cd ..
2982 rm -rf conftest.dir
2983 else
2984 am_cv_CC_dependencies_compiler_type=none
2988 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2989 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2990 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2995 test "x$enable_dependency_tracking" != xno \
2996 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2997 am__fastdepCC_TRUE=
2998 am__fastdepCC_FALSE='#'
2999 else
3000 am__fastdepCC_TRUE='#'
3001 am__fastdepCC_FALSE=
3005 # Check whether --enable-shared or --disable-shared was given.
3006 if test "${enable_shared+set}" = set; then
3007 enableval="$enable_shared"
3008 p=${PACKAGE-default}
3009 case $enableval in
3010 yes) enable_shared=yes ;;
3011 no) enable_shared=no ;;
3013 enable_shared=no
3014 # Look at the argument we got. We use all the common list separators.
3015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3016 for pkg in $enableval; do
3017 IFS="$lt_save_ifs"
3018 if test "X$pkg" = "X$p"; then
3019 enable_shared=yes
3021 done
3022 IFS="$lt_save_ifs"
3024 esac
3025 else
3026 enable_shared=yes
3029 # Check whether --enable-static or --disable-static was given.
3030 if test "${enable_static+set}" = set; then
3031 enableval="$enable_static"
3032 p=${PACKAGE-default}
3033 case $enableval in
3034 yes) enable_static=yes ;;
3035 no) enable_static=no ;;
3037 enable_static=no
3038 # Look at the argument we got. We use all the common list separators.
3039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3040 for pkg in $enableval; do
3041 IFS="$lt_save_ifs"
3042 if test "X$pkg" = "X$p"; then
3043 enable_static=yes
3045 done
3046 IFS="$lt_save_ifs"
3048 esac
3049 else
3050 enable_static=yes
3053 # Check whether --enable-fast-install or --disable-fast-install was given.
3054 if test "${enable_fast_install+set}" = set; then
3055 enableval="$enable_fast_install"
3056 p=${PACKAGE-default}
3057 case $enableval in
3058 yes) enable_fast_install=yes ;;
3059 no) enable_fast_install=no ;;
3061 enable_fast_install=no
3062 # Look at the argument we got. We use all the common list separators.
3063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3064 for pkg in $enableval; do
3065 IFS="$lt_save_ifs"
3066 if test "X$pkg" = "X$p"; then
3067 enable_fast_install=yes
3069 done
3070 IFS="$lt_save_ifs"
3072 esac
3073 else
3074 enable_fast_install=yes
3077 # Make sure we can run config.sub.
3078 $ac_config_sub sun4 >/dev/null 2>&1 ||
3079 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3080 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3081 { (exit 1); exit 1; }; }
3083 echo "$as_me:$LINENO: checking build system type" >&5
3084 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3085 if test "${ac_cv_build+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 ac_cv_build_alias=$build_alias
3089 test -z "$ac_cv_build_alias" &&
3090 ac_cv_build_alias=`$ac_config_guess`
3091 test -z "$ac_cv_build_alias" &&
3092 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3093 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3094 { (exit 1); exit 1; }; }
3095 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3096 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3097 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3098 { (exit 1); exit 1; }; }
3101 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3102 echo "${ECHO_T}$ac_cv_build" >&6
3103 build=$ac_cv_build
3104 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3105 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3106 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3109 echo "$as_me:$LINENO: checking host system type" >&5
3110 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3111 if test "${ac_cv_host+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 ac_cv_host_alias=$host_alias
3115 test -z "$ac_cv_host_alias" &&
3116 ac_cv_host_alias=$ac_cv_build_alias
3117 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3118 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3119 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3120 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3124 echo "${ECHO_T}$ac_cv_host" >&6
3125 host=$ac_cv_host
3126 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3127 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3128 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3131 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3132 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3133 if test "${lt_cv_path_SED+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 # Loop through the user's path and test for sed and gsed.
3137 # Then use that list of sed's as ones to test for truncation.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for lt_ac_prog in sed gsed; do
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3146 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3148 done
3149 done
3150 done
3151 lt_ac_max=0
3152 lt_ac_count=0
3153 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3154 # along with /bin/sed that truncates output.
3155 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3156 test ! -f $lt_ac_sed && continue
3157 cat /dev/null > conftest.in
3158 lt_ac_count=0
3159 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3160 # Check for GNU sed and select it if it is found.
3161 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3162 lt_cv_path_SED=$lt_ac_sed
3163 break
3165 while true; do
3166 cat conftest.in conftest.in >conftest.tmp
3167 mv conftest.tmp conftest.in
3168 cp conftest.in conftest.nl
3169 echo >>conftest.nl
3170 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3171 cmp -s conftest.out conftest.nl || break
3172 # 10000 chars as input seems more than enough
3173 test $lt_ac_count -gt 10 && break
3174 lt_ac_count=`expr $lt_ac_count + 1`
3175 if test $lt_ac_count -gt $lt_ac_max; then
3176 lt_ac_max=$lt_ac_count
3177 lt_cv_path_SED=$lt_ac_sed
3179 done
3180 done
3184 SED=$lt_cv_path_SED
3185 echo "$as_me:$LINENO: result: $SED" >&5
3186 echo "${ECHO_T}$SED" >&6
3188 echo "$as_me:$LINENO: checking for egrep" >&5
3189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 if test "${ac_cv_prog_egrep+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194 then ac_cv_prog_egrep='grep -E'
3195 else ac_cv_prog_egrep='egrep'
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200 EGREP=$ac_cv_prog_egrep
3204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3205 if test "${with_gnu_ld+set}" = set; then
3206 withval="$with_gnu_ld"
3207 test "$withval" = no || with_gnu_ld=yes
3208 else
3209 with_gnu_ld=no
3211 ac_prog=ld
3212 if test "$GCC" = yes; then
3213 # Check if gcc -print-prog-name=ld gives a path.
3214 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3215 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3216 case $host in
3217 *-*-mingw*)
3218 # gcc leaves a trailing carriage return which upsets mingw
3219 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3221 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3222 esac
3223 case $ac_prog in
3224 # Accept absolute paths.
3225 [\\/]* | ?:[\\/]*)
3226 re_direlt='/[^/][^/]*/\.\./'
3227 # Canonicalize the pathname of ld
3228 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3229 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3230 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3231 done
3232 test -z "$LD" && LD="$ac_prog"
3235 # If it fails, then pretend we aren't using GCC.
3236 ac_prog=ld
3239 # If it is relative, then search for the first ld in PATH.
3240 with_gnu_ld=unknown
3242 esac
3243 elif test "$with_gnu_ld" = yes; then
3244 echo "$as_me:$LINENO: checking for GNU ld" >&5
3245 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3246 else
3247 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3248 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3250 if test "${lt_cv_path_LD+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 if test -z "$LD"; then
3254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3255 for ac_dir in $PATH; do
3256 IFS="$lt_save_ifs"
3257 test -z "$ac_dir" && ac_dir=.
3258 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3259 lt_cv_path_LD="$ac_dir/$ac_prog"
3260 # Check to see if the program is GNU ld. I'd rather use --version,
3261 # but apparently some GNU ld's only accept -v.
3262 # Break only if it was the GNU/non-GNU ld that we prefer.
3263 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3264 *GNU* | *'with BFD'*)
3265 test "$with_gnu_ld" != no && break
3268 test "$with_gnu_ld" != yes && break
3270 esac
3272 done
3273 IFS="$lt_save_ifs"
3274 else
3275 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3279 LD="$lt_cv_path_LD"
3280 if test -n "$LD"; then
3281 echo "$as_me:$LINENO: result: $LD" >&5
3282 echo "${ECHO_T}$LD" >&6
3283 else
3284 echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6
3287 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3288 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3289 { (exit 1); exit 1; }; }
3290 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3291 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3292 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3296 case `$LD -v 2>&1 </dev/null` in
3297 *GNU* | *'with BFD'*)
3298 lt_cv_prog_gnu_ld=yes
3301 lt_cv_prog_gnu_ld=no
3303 esac
3305 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3306 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3307 with_gnu_ld=$lt_cv_prog_gnu_ld
3310 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3311 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3312 if test "${lt_cv_ld_reload_flag+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 lt_cv_ld_reload_flag='-r'
3317 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3318 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3319 reload_flag=$lt_cv_ld_reload_flag
3320 case $reload_flag in
3321 "" | " "*) ;;
3322 *) reload_flag=" $reload_flag" ;;
3323 esac
3324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3325 case $host_os in
3326 darwin*)
3327 if test "$GCC" = yes; then
3328 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3329 else
3330 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3333 esac
3335 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3336 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3337 if test "${lt_cv_path_NM+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 if test -n "$NM"; then
3341 # Let the user override the test.
3342 lt_cv_path_NM="$NM"
3343 else
3344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3345 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3346 IFS="$lt_save_ifs"
3347 test -z "$ac_dir" && ac_dir=.
3348 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3349 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3350 # Check to see if the nm accepts a BSD-compat flag.
3351 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3352 # nm: unknown option "B" ignored
3353 # Tru64's nm complains that /dev/null is an invalid object file
3354 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3355 */dev/null* | *'Invalid file or object type'*)
3356 lt_cv_path_NM="$tmp_nm -B"
3357 break
3360 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3361 */dev/null*)
3362 lt_cv_path_NM="$tmp_nm -p"
3363 break
3366 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3367 continue # so that we can try to find one that supports BSD flags
3369 esac
3370 esac
3372 done
3373 IFS="$lt_save_ifs"
3374 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3377 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3378 echo "${ECHO_T}$lt_cv_path_NM" >&6
3379 NM="$lt_cv_path_NM"
3381 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3382 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3383 LN_S=$as_ln_s
3384 if test "$LN_S" = "ln -s"; then
3385 echo "$as_me:$LINENO: result: yes" >&5
3386 echo "${ECHO_T}yes" >&6
3387 else
3388 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3389 echo "${ECHO_T}no, using $LN_S" >&6
3392 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3393 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3394 if test "${lt_cv_deplibs_check_method+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 lt_cv_file_magic_cmd='$MAGIC_CMD'
3398 lt_cv_file_magic_test_file=
3399 lt_cv_deplibs_check_method='unknown'
3400 # Need to set the preceding variable on all platforms that support
3401 # interlibrary dependencies.
3402 # 'none' -- dependencies not supported.
3403 # `unknown' -- same as none, but documents that we really don't know.
3404 # 'pass_all' -- all dependencies passed with no checks.
3405 # 'test_compile' -- check by making test program.
3406 # 'file_magic [[regex]]' -- check by looking for files in library path
3407 # which responds to the $file_magic_cmd with a given extended regex.
3408 # If you have `file' or equivalent on your system and you're not sure
3409 # whether `pass_all' will *always* work, you probably want this one.
3411 case $host_os in
3412 aix4* | aix5*)
3413 lt_cv_deplibs_check_method=pass_all
3416 beos*)
3417 lt_cv_deplibs_check_method=pass_all
3420 bsdi[45]*)
3421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3422 lt_cv_file_magic_cmd='/usr/bin/file -L'
3423 lt_cv_file_magic_test_file=/shlib/libc.so
3426 cygwin*)
3427 # func_win32_libid is a shell function defined in ltmain.sh
3428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3429 lt_cv_file_magic_cmd='func_win32_libid'
3432 mingw* | pw32*)
3433 # Base MSYS/MinGW do not provide the 'file' command needed by
3434 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3435 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3436 lt_cv_file_magic_cmd='$OBJDUMP -f'
3439 darwin* | rhapsody*)
3440 lt_cv_deplibs_check_method=pass_all
3443 freebsd* | kfreebsd*-gnu | dragonfly*)
3444 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3445 case $host_cpu in
3446 i*86 )
3447 # Not sure whether the presence of OpenBSD here was a mistake.
3448 # Let's accept both of them until this is cleared up.
3449 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3450 lt_cv_file_magic_cmd=/usr/bin/file
3451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3453 esac
3454 else
3455 lt_cv_deplibs_check_method=pass_all
3459 gnu*)
3460 lt_cv_deplibs_check_method=pass_all
3463 hpux10.20* | hpux11*)
3464 lt_cv_file_magic_cmd=/usr/bin/file
3465 case "$host_cpu" in
3466 ia64*)
3467 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3468 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3470 hppa*64*)
3471 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]'
3472 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3475 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3476 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3478 esac
3481 irix5* | irix6* | nonstopux*)
3482 case $LD in
3483 *-32|*"-32 ") libmagic=32-bit;;
3484 *-n32|*"-n32 ") libmagic=N32;;
3485 *-64|*"-64 ") libmagic=64-bit;;
3486 *) libmagic=never-match;;
3487 esac
3488 lt_cv_deplibs_check_method=pass_all
3491 # This must be Linux ELF.
3492 linux*)
3493 lt_cv_deplibs_check_method=pass_all
3496 netbsd*)
3497 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3499 else
3500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3504 newos6*)
3505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3506 lt_cv_file_magic_cmd=/usr/bin/file
3507 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3510 nto-qnx*)
3511 lt_cv_deplibs_check_method=unknown
3514 openbsd*)
3515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3517 else
3518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3522 osf3* | osf4* | osf5*)
3523 lt_cv_deplibs_check_method=pass_all
3526 sco3.2v5*)
3527 lt_cv_deplibs_check_method=pass_all
3530 solaris*)
3531 lt_cv_deplibs_check_method=pass_all
3534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3535 case $host_vendor in
3536 motorola)
3537 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]'
3538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3540 ncr)
3541 lt_cv_deplibs_check_method=pass_all
3543 sequent)
3544 lt_cv_file_magic_cmd='/bin/file'
3545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3547 sni)
3548 lt_cv_file_magic_cmd='/bin/file'
3549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3550 lt_cv_file_magic_test_file=/lib/libc.so
3552 siemens)
3553 lt_cv_deplibs_check_method=pass_all
3555 esac
3558 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3559 lt_cv_deplibs_check_method=pass_all
3561 esac
3564 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3565 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3566 file_magic_cmd=$lt_cv_file_magic_cmd
3567 deplibs_check_method=$lt_cv_deplibs_check_method
3568 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3573 # If no C compiler was specified, use CC.
3574 LTCC=${LTCC-"$CC"}
3576 # Allow CC to be a program name with arguments.
3577 compiler=$CC
3580 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3581 if test "${enable_libtool_lock+set}" = set; then
3582 enableval="$enable_libtool_lock"
3585 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3587 # Some flags need to be propagated to the compiler or linker for good
3588 # libtool support.
3589 case $host in
3590 ia64-*-hpux*)
3591 # Find out which ABI we are using.
3592 echo 'int i;' > conftest.$ac_ext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594 (eval $ac_compile) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; then
3598 case `/usr/bin/file conftest.$ac_objext` in
3599 *ELF-32*)
3600 HPUX_IA64_MODE="32"
3602 *ELF-64*)
3603 HPUX_IA64_MODE="64"
3605 esac
3607 rm -rf conftest*
3609 *-*-irix6*)
3610 # Find out which ABI we are using.
3611 echo '#line 3611 "configure"' > conftest.$ac_ext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; then
3617 if test "$lt_cv_prog_gnu_ld" = yes; then
3618 case `/usr/bin/file conftest.$ac_objext` in
3619 *32-bit*)
3620 LD="${LD-ld} -melf32bsmip"
3622 *N32*)
3623 LD="${LD-ld} -melf32bmipn32"
3625 *64-bit*)
3626 LD="${LD-ld} -melf64bmip"
3628 esac
3629 else
3630 case `/usr/bin/file conftest.$ac_objext` in
3631 *32-bit*)
3632 LD="${LD-ld} -32"
3634 *N32*)
3635 LD="${LD-ld} -n32"
3637 *64-bit*)
3638 LD="${LD-ld} -64"
3640 esac
3643 rm -rf conftest*
3646 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3647 # Find out which ABI we are using.
3648 echo 'int i;' > conftest.$ac_ext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; then
3654 case "`/usr/bin/file conftest.o`" in
3655 *32-bit*)
3656 case $host in
3657 x86_64-*linux*)
3658 LD="${LD-ld} -m elf_i386"
3660 ppc64-*linux*|powerpc64-*linux*)
3661 LD="${LD-ld} -m elf32ppclinux"
3663 s390x-*linux*)
3664 LD="${LD-ld} -m elf_s390"
3666 sparc64-*linux*)
3667 LD="${LD-ld} -m elf32_sparc"
3669 esac
3671 *64-bit*)
3672 case $host in
3673 x86_64-*linux*)
3674 LD="${LD-ld} -m elf_x86_64"
3676 ppc*-*linux*|powerpc*-*linux*)
3677 LD="${LD-ld} -m elf64ppc"
3679 s390*-*linux*)
3680 LD="${LD-ld} -m elf64_s390"
3682 sparc*-*linux*)
3683 LD="${LD-ld} -m elf64_sparc"
3685 esac
3687 esac
3689 rm -rf conftest*
3692 *-*-sco3.2v5*)
3693 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3694 SAVE_CFLAGS="$CFLAGS"
3695 CFLAGS="$CFLAGS -belf"
3696 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3697 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3698 if test "${lt_cv_cc_needs_belf+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h. */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3715 main ()
3719 return 0;
3721 _ACEOF
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try='test -z "$ac_c_werror_flag"
3732 || test ! -s conftest.err'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 (eval $ac_try) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try='test -s conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 lt_cv_cc_needs_belf=yes
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3749 lt_cv_cc_needs_belf=no
3751 rm -f conftest.err conftest.$ac_objext \
3752 conftest$ac_exeext conftest.$ac_ext
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3761 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3762 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3764 CFLAGS="$SAVE_CFLAGS"
3768 esac
3770 need_locks="$enable_libtool_lock"
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3779 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3780 # On Suns, sometimes $CPP names a directory.
3781 if test -n "$CPP" && test -d "$CPP"; then
3782 CPP=
3784 if test -z "$CPP"; then
3785 if test "${ac_cv_prog_CPP+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788 # Double quotes because CPP needs to be expanded
3789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791 ac_preproc_ok=false
3792 for ac_c_preproc_warn_flag in '' yes
3794 # Use a header file that comes with gcc, so configuring glibc
3795 # with a fresh cross-compiler works.
3796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 # <limits.h> exists even on freestanding compilers.
3798 # On the NeXT, cc -E runs the code through the compiler's parser,
3799 # not just through cpp. "Syntax error" is here to catch this case.
3800 cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h. */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #ifdef __STDC__
3807 # include <limits.h>
3808 #else
3809 # include <assert.h>
3810 #endif
3811 Syntax error
3812 _ACEOF
3813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null; then
3821 if test -s conftest.err; then
3822 ac_cpp_err=$ac_c_preproc_warn_flag
3823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3824 else
3825 ac_cpp_err=
3827 else
3828 ac_cpp_err=yes
3830 if test -z "$ac_cpp_err"; then
3832 else
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3836 # Broken: fails on valid input.
3837 continue
3839 rm -f conftest.err conftest.$ac_ext
3841 # OK, works on sane cases. Now check whether non-existent headers
3842 # can be detected and how.
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <ac_nonexistent.h>
3850 _ACEOF
3851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null; then
3859 if test -s conftest.err; then
3860 ac_cpp_err=$ac_c_preproc_warn_flag
3861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3862 else
3863 ac_cpp_err=
3865 else
3866 ac_cpp_err=yes
3868 if test -z "$ac_cpp_err"; then
3869 # Broken: success on invalid input.
3870 continue
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 # Passes both tests.
3876 ac_preproc_ok=:
3877 break
3879 rm -f conftest.err conftest.$ac_ext
3881 done
3882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883 rm -f conftest.err conftest.$ac_ext
3884 if $ac_preproc_ok; then
3885 break
3888 done
3889 ac_cv_prog_CPP=$CPP
3892 CPP=$ac_cv_prog_CPP
3893 else
3894 ac_cv_prog_CPP=$CPP
3896 echo "$as_me:$LINENO: result: $CPP" >&5
3897 echo "${ECHO_T}$CPP" >&6
3898 ac_preproc_ok=false
3899 for ac_c_preproc_warn_flag in '' yes
3901 # Use a header file that comes with gcc, so configuring glibc
3902 # with a fresh cross-compiler works.
3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904 # <limits.h> exists even on freestanding compilers.
3905 # On the NeXT, cc -E runs the code through the compiler's parser,
3906 # not just through cpp. "Syntax error" is here to catch this case.
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #ifdef __STDC__
3914 # include <limits.h>
3915 #else
3916 # include <assert.h>
3917 #endif
3918 Syntax error
3919 _ACEOF
3920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null; then
3928 if test -s conftest.err; then
3929 ac_cpp_err=$ac_c_preproc_warn_flag
3930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3931 else
3932 ac_cpp_err=
3934 else
3935 ac_cpp_err=yes
3937 if test -z "$ac_cpp_err"; then
3939 else
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 # Broken: fails on valid input.
3944 continue
3946 rm -f conftest.err conftest.$ac_ext
3948 # OK, works on sane cases. Now check whether non-existent headers
3949 # can be detected and how.
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3956 #include <ac_nonexistent.h>
3957 _ACEOF
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null; then
3966 if test -s conftest.err; then
3967 ac_cpp_err=$ac_c_preproc_warn_flag
3968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3969 else
3970 ac_cpp_err=
3972 else
3973 ac_cpp_err=yes
3975 if test -z "$ac_cpp_err"; then
3976 # Broken: success on invalid input.
3977 continue
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 # Passes both tests.
3983 ac_preproc_ok=:
3984 break
3986 rm -f conftest.err conftest.$ac_ext
3988 done
3989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990 rm -f conftest.err conftest.$ac_ext
3991 if $ac_preproc_ok; then
3993 else
3994 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3995 See \`config.log' for more details." >&5
3996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3997 See \`config.log' for more details." >&2;}
3998 { (exit 1); exit 1; }; }
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4010 if test "${ac_cv_header_stdc+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h. */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4019 #include <stdlib.h>
4020 #include <stdarg.h>
4021 #include <string.h>
4022 #include <float.h>
4025 main ()
4029 return 0;
4031 _ACEOF
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag"
4042 || test ! -s conftest.err'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 (eval $ac_try) 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_cv_header_stdc=yes
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 ac_cv_header_stdc=no
4061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 if test $ac_cv_header_stdc = yes; then
4064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h. */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 #include <string.h>
4073 _ACEOF
4074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4075 $EGREP "memchr" >/dev/null 2>&1; then
4077 else
4078 ac_cv_header_stdc=no
4080 rm -f conftest*
4084 if test $ac_cv_header_stdc = yes; then
4085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h. */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4092 #include <stdlib.h>
4094 _ACEOF
4095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096 $EGREP "free" >/dev/null 2>&1; then
4098 else
4099 ac_cv_header_stdc=no
4101 rm -f conftest*
4105 if test $ac_cv_header_stdc = yes; then
4106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4107 if test "$cross_compiling" = yes; then
4109 else
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <ctype.h>
4117 #if ((' ' & 0x0FF) == 0x020)
4118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4120 #else
4121 # define ISLOWER(c) \
4122 (('a' <= (c) && (c) <= 'i') \
4123 || ('j' <= (c) && (c) <= 'r') \
4124 || ('s' <= (c) && (c) <= 'z'))
4125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4126 #endif
4128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4130 main ()
4132 int i;
4133 for (i = 0; i < 256; i++)
4134 if (XOR (islower (i), ISLOWER (i))
4135 || toupper (i) != TOUPPER (i))
4136 exit(2);
4137 exit (0);
4139 _ACEOF
4140 rm -f conftest$ac_exeext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4152 else
4153 echo "$as_me: program exited with status $ac_status" >&5
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 ( exit $ac_status )
4158 ac_cv_header_stdc=no
4160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4164 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4165 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4166 if test $ac_cv_header_stdc = yes; then
4168 cat >>confdefs.h <<\_ACEOF
4169 #define STDC_HEADERS 1
4170 _ACEOF
4174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4184 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4185 inttypes.h stdint.h unistd.h
4187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4188 echo "$as_me:$LINENO: checking for $ac_header" >&5
4189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 $ac_includes_default
4201 #include <$ac_header>
4202 _ACEOF
4203 rm -f conftest.$ac_objext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4205 (eval $ac_compile) 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -z "$ac_c_werror_flag"
4213 || test ! -s conftest.err'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest.$ac_objext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4225 eval "$as_ac_Header=yes"
4226 else
4227 echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4230 eval "$as_ac_Header=no"
4232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4237 cat >>confdefs.h <<_ACEOF
4238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4239 _ACEOF
4243 done
4247 for ac_header in dlfcn.h
4249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4251 echo "$as_me:$LINENO: checking for $ac_header" >&5
4252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4258 else
4259 # Is the header compilable?
4260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h. */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4268 $ac_includes_default
4269 #include <$ac_header>
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273 (eval $ac_compile) 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } &&
4280 { ac_try='test -z "$ac_c_werror_flag"
4281 || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_header_compiler=yes
4294 else
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_header_compiler=no
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4302 echo "${ECHO_T}$ac_header_compiler" >&6
4304 # Is the header present?
4305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include <$ac_header>
4314 _ACEOF
4315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } >/dev/null; then
4323 if test -s conftest.err; then
4324 ac_cpp_err=$ac_c_preproc_warn_flag
4325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4326 else
4327 ac_cpp_err=
4329 else
4330 ac_cpp_err=yes
4332 if test -z "$ac_cpp_err"; then
4333 ac_header_preproc=yes
4334 else
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 ac_header_preproc=no
4340 rm -f conftest.err conftest.$ac_ext
4341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4342 echo "${ECHO_T}$ac_header_preproc" >&6
4344 # So? What about this header?
4345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4346 yes:no: )
4347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4351 ac_header_preproc=yes
4353 no:yes:* )
4354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4367 cat <<\_ASBOX
4368 ## ------------------------------------------ ##
4369 ## Report this to the AC_PACKAGE_NAME lists. ##
4370 ## ------------------------------------------ ##
4371 _ASBOX
4373 sed "s/^/$as_me: WARNING: /" >&2
4375 esac
4376 echo "$as_me:$LINENO: checking for $ac_header" >&5
4377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381 eval "$as_ac_Header=\$ac_header_preproc"
4383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4388 cat >>confdefs.h <<_ACEOF
4389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4390 _ACEOF
4394 done
4396 ac_ext=cc
4397 ac_cpp='$CXXCPP $CPPFLAGS'
4398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4401 if test -n "$ac_tool_prefix"; then
4402 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406 echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408 if test "${ac_cv_prog_CXX+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411 if test -n "$CXX"; then
4412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4425 done
4426 done
4430 CXX=$ac_cv_prog_CXX
4431 if test -n "$CXX"; then
4432 echo "$as_me:$LINENO: result: $CXX" >&5
4433 echo "${ECHO_T}$CXX" >&6
4434 else
4435 echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4439 test -n "$CXX" && break
4440 done
4442 if test -z "$CXX"; then
4443 ac_ct_CXX=$CXX
4444 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4446 # Extract the first word of "$ac_prog", so it can be a program name with args.
4447 set dummy $ac_prog; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453 if test -n "$ac_ct_CXX"; then
4454 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_CXX="$ac_prog"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4467 done
4468 done
4472 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4473 if test -n "$ac_ct_CXX"; then
4474 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4475 echo "${ECHO_T}$ac_ct_CXX" >&6
4476 else
4477 echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4481 test -n "$ac_ct_CXX" && break
4482 done
4483 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4485 CXX=$ac_ct_CXX
4489 # Provide some information about the compiler.
4490 echo "$as_me:$LINENO:" \
4491 "checking for C++ compiler version" >&5
4492 ac_compiler=`set X $ac_compile; echo $2`
4493 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4494 (eval $ac_compiler --version </dev/null >&5) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }
4498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4499 (eval $ac_compiler -v </dev/null >&5) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }
4503 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4504 (eval $ac_compiler -V </dev/null >&5) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }
4509 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4510 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4511 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4522 main ()
4524 #ifndef __GNUC__
4525 choke me
4526 #endif
4529 return 0;
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_cxx_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_compiler_gnu=yes
4555 else
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 ac_compiler_gnu=no
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4565 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4566 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4567 GXX=`test $ac_compiler_gnu = yes && echo yes`
4568 ac_test_CXXFLAGS=${CXXFLAGS+set}
4569 ac_save_CXXFLAGS=$CXXFLAGS
4570 CXXFLAGS="-g"
4571 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4572 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4573 if test "${ac_cv_prog_cxx_g+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4584 main ()
4588 return 0;
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_cxx_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_prog_cxx_g=yes
4614 else
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_prog_cxx_g=no
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4624 if test "$ac_test_CXXFLAGS" = set; then
4625 CXXFLAGS=$ac_save_CXXFLAGS
4626 elif test $ac_cv_prog_cxx_g = yes; then
4627 if test "$GXX" = yes; then
4628 CXXFLAGS="-g -O2"
4629 else
4630 CXXFLAGS="-g"
4632 else
4633 if test "$GXX" = yes; then
4634 CXXFLAGS="-O2"
4635 else
4636 CXXFLAGS=
4639 for ac_declaration in \
4640 '' \
4641 'extern "C" void std::exit (int) throw (); using std::exit;' \
4642 'extern "C" void std::exit (int); using std::exit;' \
4643 'extern "C" void exit (int) throw ();' \
4644 'extern "C" void exit (int);' \
4645 'void exit (int);'
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 $ac_declaration
4654 #include <stdlib.h>
4656 main ()
4658 exit (42);
4660 return 0;
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_cxx_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4690 continue
4692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 $ac_declaration
4701 main ()
4703 exit (42);
4705 return 0;
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4710 (eval $ac_compile) 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -z "$ac_cxx_werror_flag"
4718 || test ! -s conftest.err'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; } &&
4724 { ac_try='test -s conftest.$ac_objext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 (eval $ac_try) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 break
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737 done
4738 rm -f conftest*
4739 if test -n "$ac_declaration"; then
4740 echo '#ifdef __cplusplus' >>confdefs.h
4741 echo $ac_declaration >>confdefs.h
4742 echo '#endif' >>confdefs.h
4745 ac_ext=cc
4746 ac_cpp='$CXXCPP $CPPFLAGS'
4747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4751 depcc="$CXX" am_compiler_list=
4753 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4754 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4755 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4759 # We make a subdir and do the tests there. Otherwise we can end up
4760 # making bogus files that we don't know about and never remove. For
4761 # instance it was reported that on HP-UX the gcc test will end up
4762 # making a dummy file named `D' -- because `-MD' means `put the output
4763 # in D'.
4764 mkdir conftest.dir
4765 # Copy depcomp to subdir because otherwise we won't find it if we're
4766 # using a relative directory.
4767 cp "$am_depcomp" conftest.dir
4768 cd conftest.dir
4769 # We will build objects and dependencies in a subdirectory because
4770 # it helps to detect inapplicable dependency modes. For instance
4771 # both Tru64's cc and ICC support -MD to output dependencies as a
4772 # side effect of compilation, but ICC will put the dependencies in
4773 # the current directory while Tru64 will put them in the object
4774 # directory.
4775 mkdir sub
4777 am_cv_CXX_dependencies_compiler_type=none
4778 if test "$am_compiler_list" = ""; then
4779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4781 for depmode in $am_compiler_list; do
4782 # Setup a source with many dependencies, because some compilers
4783 # like to wrap large dependency lists on column 80 (with \), and
4784 # we should not choose a depcomp mode which is confused by this.
4786 # We need to recreate these files for each test, as the compiler may
4787 # overwrite some of them when testing with obscure command lines.
4788 # This happens at least with the AIX C compiler.
4789 : > sub/conftest.c
4790 for i in 1 2 3 4 5 6; do
4791 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4792 : > sub/conftst$i.h
4793 done
4794 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4796 case $depmode in
4797 nosideeffect)
4798 # after this tag, mechanisms are not by side-effect, so they'll
4799 # only be used when explicitly requested
4800 if test "x$enable_dependency_tracking" = xyes; then
4801 continue
4802 else
4803 break
4806 none) break ;;
4807 esac
4808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4809 # mode. It turns out that the SunPro C++ compiler does not properly
4810 # handle `-M -o', and we need to detect this.
4811 if depmode=$depmode \
4812 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4813 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4814 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4815 >/dev/null 2>conftest.err &&
4816 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4817 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4818 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4819 # icc doesn't choke on unknown options, it will just issue warnings
4820 # (even with -Werror). So we grep stderr for any message
4821 # that says an option was ignored.
4822 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4823 am_cv_CXX_dependencies_compiler_type=$depmode
4824 break
4827 done
4829 cd ..
4830 rm -rf conftest.dir
4831 else
4832 am_cv_CXX_dependencies_compiler_type=none
4836 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4837 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4838 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4843 test "x$enable_dependency_tracking" != xno \
4844 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4845 am__fastdepCXX_TRUE=
4846 am__fastdepCXX_FALSE='#'
4847 else
4848 am__fastdepCXX_TRUE='#'
4849 am__fastdepCXX_FALSE=
4855 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4856 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4857 (test "X$CXX" != "Xg++"))) ; then
4858 ac_ext=cc
4859 ac_cpp='$CXXCPP $CPPFLAGS'
4860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4863 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4864 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4865 if test -z "$CXXCPP"; then
4866 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 # Double quotes because CXXCPP needs to be expanded
4870 for CXXCPP in "$CXX -E" "/lib/cpp"
4872 ac_preproc_ok=false
4873 for ac_cxx_preproc_warn_flag in '' yes
4875 # Use a header file that comes with gcc, so configuring glibc
4876 # with a fresh cross-compiler works.
4877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878 # <limits.h> exists even on freestanding compilers.
4879 # On the NeXT, cc -E runs the code through the compiler's parser,
4880 # not just through cpp. "Syntax error" is here to catch this case.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #ifdef __STDC__
4888 # include <limits.h>
4889 #else
4890 # include <assert.h>
4891 #endif
4892 Syntax error
4893 _ACEOF
4894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } >/dev/null; then
4902 if test -s conftest.err; then
4903 ac_cpp_err=$ac_cxx_preproc_warn_flag
4904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4905 else
4906 ac_cpp_err=
4908 else
4909 ac_cpp_err=yes
4911 if test -z "$ac_cpp_err"; then
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 # Broken: fails on valid input.
4918 continue
4920 rm -f conftest.err conftest.$ac_ext
4922 # OK, works on sane cases. Now check whether non-existent headers
4923 # can be detected and how.
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h. */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #include <ac_nonexistent.h>
4931 _ACEOF
4932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } >/dev/null; then
4940 if test -s conftest.err; then
4941 ac_cpp_err=$ac_cxx_preproc_warn_flag
4942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4943 else
4944 ac_cpp_err=
4946 else
4947 ac_cpp_err=yes
4949 if test -z "$ac_cpp_err"; then
4950 # Broken: success on invalid input.
4951 continue
4952 else
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 # Passes both tests.
4957 ac_preproc_ok=:
4958 break
4960 rm -f conftest.err conftest.$ac_ext
4962 done
4963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964 rm -f conftest.err conftest.$ac_ext
4965 if $ac_preproc_ok; then
4966 break
4969 done
4970 ac_cv_prog_CXXCPP=$CXXCPP
4973 CXXCPP=$ac_cv_prog_CXXCPP
4974 else
4975 ac_cv_prog_CXXCPP=$CXXCPP
4977 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4978 echo "${ECHO_T}$CXXCPP" >&6
4979 ac_preproc_ok=false
4980 for ac_cxx_preproc_warn_flag in '' yes
4982 # Use a header file that comes with gcc, so configuring glibc
4983 # with a fresh cross-compiler works.
4984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 # <limits.h> exists even on freestanding compilers.
4986 # On the NeXT, cc -E runs the code through the compiler's parser,
4987 # not just through cpp. "Syntax error" is here to catch this case.
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 #ifdef __STDC__
4995 # include <limits.h>
4996 #else
4997 # include <assert.h>
4998 #endif
4999 Syntax error
5000 _ACEOF
5001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } >/dev/null; then
5009 if test -s conftest.err; then
5010 ac_cpp_err=$ac_cxx_preproc_warn_flag
5011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5012 else
5013 ac_cpp_err=
5015 else
5016 ac_cpp_err=yes
5018 if test -z "$ac_cpp_err"; then
5020 else
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5024 # Broken: fails on valid input.
5025 continue
5027 rm -f conftest.err conftest.$ac_ext
5029 # OK, works on sane cases. Now check whether non-existent headers
5030 # can be detected and how.
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <ac_nonexistent.h>
5038 _ACEOF
5039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null; then
5047 if test -s conftest.err; then
5048 ac_cpp_err=$ac_cxx_preproc_warn_flag
5049 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5050 else
5051 ac_cpp_err=
5053 else
5054 ac_cpp_err=yes
5056 if test -z "$ac_cpp_err"; then
5057 # Broken: success on invalid input.
5058 continue
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 # Passes both tests.
5064 ac_preproc_ok=:
5065 break
5067 rm -f conftest.err conftest.$ac_ext
5069 done
5070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071 rm -f conftest.err conftest.$ac_ext
5072 if $ac_preproc_ok; then
5074 else
5075 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5076 See \`config.log' for more details." >&5
5077 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5078 See \`config.log' for more details." >&2;}
5079 { (exit 1); exit 1; }; }
5082 ac_ext=cc
5083 ac_cpp='$CXXCPP $CPPFLAGS'
5084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5091 ac_ext=f
5092 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5093 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5095 if test -n "$ac_tool_prefix"; then
5096 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_F77+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if test -n "$F77"; then
5106 ac_cv_prog_F77="$F77" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5124 F77=$ac_cv_prog_F77
5125 if test -n "$F77"; then
5126 echo "$as_me:$LINENO: result: $F77" >&5
5127 echo "${ECHO_T}$F77" >&6
5128 else
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5133 test -n "$F77" && break
5134 done
5136 if test -z "$F77"; then
5137 ac_ct_F77=$F77
5138 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5140 # Extract the first word of "$ac_prog", so it can be a program name with args.
5141 set dummy $ac_prog; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 if test -n "$ac_ct_F77"; then
5148 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_ac_ct_F77="$ac_prog"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5166 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5167 if test -n "$ac_ct_F77"; then
5168 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5169 echo "${ECHO_T}$ac_ct_F77" >&6
5170 else
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5175 test -n "$ac_ct_F77" && break
5176 done
5178 F77=$ac_ct_F77
5182 # Provide some information about the compiler.
5183 echo "$as_me:5183:" \
5184 "checking for Fortran 77 compiler version" >&5
5185 ac_compiler=`set X $ac_compile; echo $2`
5186 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5187 (eval $ac_compiler --version </dev/null >&5) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }
5191 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5192 (eval $ac_compiler -v </dev/null >&5) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }
5196 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5197 (eval $ac_compiler -V </dev/null >&5) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }
5201 rm -f a.out
5203 # If we don't use `.F' as extension, the preprocessor is not run on the
5204 # input file. (Note that this only needs to work for GNU compilers.)
5205 ac_save_ext=$ac_ext
5206 ac_ext=F
5207 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5208 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5209 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 cat >conftest.$ac_ext <<_ACEOF
5213 program main
5214 #ifndef __GNUC__
5215 choke me
5216 #endif
5219 _ACEOF
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
5229 { ac_try='test -z "$ac_f77_werror_flag"
5230 || test ! -s conftest.err'
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_compiler_gnu=yes
5243 else
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_compiler_gnu=no
5249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5250 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5253 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5254 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5255 ac_ext=$ac_save_ext
5256 ac_test_FFLAGS=${FFLAGS+set}
5257 ac_save_FFLAGS=$FFLAGS
5258 FFLAGS=
5259 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5260 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5261 if test "${ac_cv_prog_f77_g+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 FFLAGS=-g
5265 cat >conftest.$ac_ext <<_ACEOF
5266 program main
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 (eval $ac_compile) 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -z "$ac_f77_werror_flag"
5280 || test ! -s conftest.err'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest.$ac_objext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_prog_f77_g=yes
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 ac_cv_prog_f77_g=no
5299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5303 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5304 if test "$ac_test_FFLAGS" = set; then
5305 FFLAGS=$ac_save_FFLAGS
5306 elif test $ac_cv_prog_f77_g = yes; then
5307 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5308 FFLAGS="-g -O2"
5309 else
5310 FFLAGS="-g"
5312 else
5313 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5314 FFLAGS="-O2"
5315 else
5316 FFLAGS=
5320 G77=`test $ac_compiler_gnu = yes && echo yes`
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5331 # find the maximum length of command line arguments
5332 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5333 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5334 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5338 teststring="ABCD"
5340 case $build_os in
5341 msdosdjgpp*)
5342 # On DJGPP, this test can blow up pretty badly due to problems in libc
5343 # (any single argument exceeding 2000 bytes causes a buffer overrun
5344 # during glob expansion). Even if it were fixed, the result of this
5345 # check would be larger than it should be.
5346 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5349 gnu*)
5350 # Under GNU Hurd, this test is not required because there is
5351 # no limit to the length of command line arguments.
5352 # Libtool will interpret -1 as no limit whatsoever
5353 lt_cv_sys_max_cmd_len=-1;
5356 cygwin* | mingw*)
5357 # On Win9x/ME, this test blows up -- it succeeds, but takes
5358 # about 5 minutes as the teststring grows exponentially.
5359 # Worse, since 9x/ME are not pre-emptively multitasking,
5360 # you end up with a "frozen" computer, even though with patience
5361 # the test eventually succeeds (with a max line length of 256k).
5362 # Instead, let's just punt: use the minimum linelength reported by
5363 # all of the supported platforms: 8192 (on NT/2K/XP).
5364 lt_cv_sys_max_cmd_len=8192;
5367 amigaos*)
5368 # On AmigaOS with pdksh, this test takes hours, literally.
5369 # So we just punt and use a minimum line length of 8192.
5370 lt_cv_sys_max_cmd_len=8192;
5373 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5374 # This has been around since 386BSD, at least. Likely further.
5375 if test -x /sbin/sysctl; then
5376 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5377 elif test -x /usr/sbin/sysctl; then
5378 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5379 else
5380 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5382 # And add a safety zone
5383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5386 osf*)
5387 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5388 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5389 # nice to cause kernel panics so lets avoid the loop below.
5390 # First set a reasonable default.
5391 lt_cv_sys_max_cmd_len=16384
5393 if test -x /sbin/sysconfig; then
5394 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5395 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5396 esac
5400 # If test is not a shell built-in, we'll probably end up computing a
5401 # maximum length that is only half of the actual maximum length, but
5402 # we can't tell.
5403 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5404 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5405 = "XX$teststring") >/dev/null 2>&1 &&
5406 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5407 lt_cv_sys_max_cmd_len=$new_result &&
5408 test $i != 17 # 1/2 MB should be enough
5410 i=`expr $i + 1`
5411 teststring=$teststring$teststring
5412 done
5413 teststring=
5414 # Add a significant safety factor because C++ compilers can tack on massive
5415 # amounts of additional arguments before passing them to the linker.
5416 # It appears as though 1/2 is a usable value.
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5419 esac
5423 if test -n $lt_cv_sys_max_cmd_len ; then
5424 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5425 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5426 else
5427 echo "$as_me:$LINENO: result: none" >&5
5428 echo "${ECHO_T}none" >&6
5434 # Check for command to grab the raw symbol name followed by C symbol from nm.
5435 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5436 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5437 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5441 # These are sane defaults that work on at least a few old systems.
5442 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5444 # Character class describing NM global symbol codes.
5445 symcode='[BCDEGRST]'
5447 # Regexp to match symbols that can be accessed directly from C.
5448 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5450 # Transform an extracted symbol line into a proper C declaration
5451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5453 # Transform an extracted symbol line into symbol name and symbol address
5454 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'"
5456 # Define system-specific variables.
5457 case $host_os in
5458 aix*)
5459 symcode='[BCDT]'
5461 cygwin* | mingw* | pw32*)
5462 symcode='[ABCDGISTW]'
5464 hpux*) # Its linker distinguishes data from code symbols
5465 if test "$host_cpu" = ia64; then
5466 symcode='[ABCDEGRST]'
5468 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5469 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'"
5471 linux*)
5472 if test "$host_cpu" = ia64; then
5473 symcode='[ABCDGIRSTW]'
5474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5475 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'"
5478 irix* | nonstopux*)
5479 symcode='[BCDEGRST]'
5481 osf*)
5482 symcode='[BCDEGQRST]'
5484 solaris* | sysv5*)
5485 symcode='[BDRT]'
5487 sysv4)
5488 symcode='[DFNSTU]'
5490 esac
5492 # Handle CRLF in mingw tool chain
5493 opt_cr=
5494 case $build_os in
5495 mingw*)
5496 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5498 esac
5500 # If we're using GNU nm, then use its standard symbol codes.
5501 case `$NM -V 2>&1` in
5502 *GNU* | *'with BFD'*)
5503 symcode='[ABCDGIRSTW]' ;;
5504 esac
5506 # Try without a prefix undercore, then with it.
5507 for ac_symprfx in "" "_"; do
5509 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5510 symxfrm="\\1 $ac_symprfx\\2 \\2"
5512 # Write the raw and C identifiers.
5513 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5515 # Check to see that the pipe works correctly.
5516 pipe_works=no
5518 rm -f conftest*
5519 cat > conftest.$ac_ext <<EOF
5520 #ifdef __cplusplus
5521 extern "C" {
5522 #endif
5523 char nm_test_var;
5524 void nm_test_func(){}
5525 #ifdef __cplusplus
5527 #endif
5528 int main(){nm_test_var='a';nm_test_func();return(0);}
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; then
5536 # Now try to grab the symbols.
5537 nlist=conftest.nm
5538 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5539 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && test -s "$nlist"; then
5543 # Try sorting and uniquifying the output.
5544 if sort "$nlist" | uniq > "$nlist"T; then
5545 mv -f "$nlist"T "$nlist"
5546 else
5547 rm -f "$nlist"T
5550 # Make sure that we snagged all the symbols we need.
5551 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5552 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5553 cat <<EOF > conftest.$ac_ext
5554 #ifdef __cplusplus
5555 extern "C" {
5556 #endif
5559 # Now generate the symbol file.
5560 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5562 cat <<EOF >> conftest.$ac_ext
5563 #if defined (__STDC__) && __STDC__
5564 # define lt_ptr_t void *
5565 #else
5566 # define lt_ptr_t char *
5567 # define const
5568 #endif
5570 /* The mapping between symbol names and symbols. */
5571 const struct {
5572 const char *name;
5573 lt_ptr_t address;
5575 lt_preloaded_symbols[] =
5578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5579 cat <<\EOF >> conftest.$ac_ext
5580 {0, (lt_ptr_t) 0}
5583 #ifdef __cplusplus
5585 #endif
5587 # Now try linking the two files.
5588 mv conftest.$ac_objext conftstm.$ac_objext
5589 lt_save_LIBS="$LIBS"
5590 lt_save_CFLAGS="$CFLAGS"
5591 LIBS="conftstm.$ac_objext"
5592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5594 (eval $ac_link) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5598 pipe_works=yes
5600 LIBS="$lt_save_LIBS"
5601 CFLAGS="$lt_save_CFLAGS"
5602 else
5603 echo "cannot find nm_test_func in $nlist" >&5
5605 else
5606 echo "cannot find nm_test_var in $nlist" >&5
5608 else
5609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5611 else
5612 echo "$progname: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5615 rm -f conftest* conftst*
5617 # Do not use the global_symbol_pipe unless it works.
5618 if test "$pipe_works" = yes; then
5619 break
5620 else
5621 lt_cv_sys_global_symbol_pipe=
5623 done
5627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5628 lt_cv_sys_global_symbol_to_cdecl=
5630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5631 echo "$as_me:$LINENO: result: failed" >&5
5632 echo "${ECHO_T}failed" >&6
5633 else
5634 echo "$as_me:$LINENO: result: ok" >&5
5635 echo "${ECHO_T}ok" >&6
5638 echo "$as_me:$LINENO: checking for objdir" >&5
5639 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5640 if test "${lt_cv_objdir+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 rm -f .libs 2>/dev/null
5644 mkdir .libs 2>/dev/null
5645 if test -d .libs; then
5646 lt_cv_objdir=.libs
5647 else
5648 # MS-DOS does not allow filenames that begin with a dot.
5649 lt_cv_objdir=_libs
5651 rmdir .libs 2>/dev/null
5653 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5654 echo "${ECHO_T}$lt_cv_objdir" >&6
5655 objdir=$lt_cv_objdir
5661 case $host_os in
5662 aix3*)
5663 # AIX sometimes has problems with the GCC collect2 program. For some
5664 # reason, if we set the COLLECT_NAMES environment variable, the problems
5665 # vanish in a puff of smoke.
5666 if test "X${COLLECT_NAMES+set}" != Xset; then
5667 COLLECT_NAMES=
5668 export COLLECT_NAMES
5671 esac
5673 # Sed substitution that helps us do robust quoting. It backslashifies
5674 # metacharacters that are still active within double-quoted strings.
5675 Xsed='sed -e 1s/^X//'
5676 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5678 # Same as above, but do not quote variable references.
5679 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5681 # Sed substitution to delay expansion of an escaped shell variable in a
5682 # double_quote_subst'ed string.
5683 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5685 # Sed substitution to avoid accidental globbing in evaled expressions
5686 no_glob_subst='s/\*/\\\*/g'
5688 # Constants:
5689 rm="rm -f"
5691 # Global variables:
5692 default_ofile=libtool
5693 can_build_shared=yes
5695 # All known linkers require a `.a' archive for static linking (except M$VC,
5696 # which needs '.lib').
5697 libext=a
5698 ltmain="$ac_aux_dir/ltmain.sh"
5699 ofile="$default_ofile"
5700 with_gnu_ld="$lt_cv_prog_gnu_ld"
5702 if test -n "$ac_tool_prefix"; then
5703 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}ar; ac_word=$2
5705 echo "$as_me:$LINENO: checking for $ac_word" >&5
5706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5707 if test "${ac_cv_prog_AR+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 if test -n "$AR"; then
5711 ac_cv_prog_AR="$AR" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_AR="${ac_tool_prefix}ar"
5721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5724 done
5725 done
5729 AR=$ac_cv_prog_AR
5730 if test -n "$AR"; then
5731 echo "$as_me:$LINENO: result: $AR" >&5
5732 echo "${ECHO_T}$AR" >&6
5733 else
5734 echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6
5739 if test -z "$ac_cv_prog_AR"; then
5740 ac_ct_AR=$AR
5741 # Extract the first word of "ar", so it can be a program name with args.
5742 set dummy ar; ac_word=$2
5743 echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 if test -n "$ac_ct_AR"; then
5749 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_AR="ar"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5762 done
5763 done
5765 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5769 if test -n "$ac_ct_AR"; then
5770 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5771 echo "${ECHO_T}$ac_ct_AR" >&6
5772 else
5773 echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5777 AR=$ac_ct_AR
5778 else
5779 AR="$ac_cv_prog_AR"
5782 if test -n "$ac_tool_prefix"; then
5783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5785 echo "$as_me:$LINENO: checking for $ac_word" >&5
5786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5787 if test "${ac_cv_prog_RANLIB+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 if test -n "$RANLIB"; then
5791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5804 done
5805 done
5809 RANLIB=$ac_cv_prog_RANLIB
5810 if test -n "$RANLIB"; then
5811 echo "$as_me:$LINENO: result: $RANLIB" >&5
5812 echo "${ECHO_T}$RANLIB" >&6
5813 else
5814 echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6
5819 if test -z "$ac_cv_prog_RANLIB"; then
5820 ac_ct_RANLIB=$RANLIB
5821 # Extract the first word of "ranlib", so it can be a program name with args.
5822 set dummy ranlib; ac_word=$2
5823 echo "$as_me:$LINENO: checking for $ac_word" >&5
5824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5825 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 if test -n "$ac_ct_RANLIB"; then
5829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_ac_ct_RANLIB="ranlib"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5842 done
5843 done
5845 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5849 if test -n "$ac_ct_RANLIB"; then
5850 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5851 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5857 RANLIB=$ac_ct_RANLIB
5858 else
5859 RANLIB="$ac_cv_prog_RANLIB"
5862 if test -n "$ac_tool_prefix"; then
5863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}strip; ac_word=$2
5865 echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867 if test "${ac_cv_prog_STRIP+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 if test -n "$STRIP"; then
5871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5884 done
5885 done
5889 STRIP=$ac_cv_prog_STRIP
5890 if test -n "$STRIP"; then
5891 echo "$as_me:$LINENO: result: $STRIP" >&5
5892 echo "${ECHO_T}$STRIP" >&6
5893 else
5894 echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5899 if test -z "$ac_cv_prog_STRIP"; then
5900 ac_ct_STRIP=$STRIP
5901 # Extract the first word of "strip", so it can be a program name with args.
5902 set dummy strip; ac_word=$2
5903 echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 if test -n "$ac_ct_STRIP"; then
5909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_ac_ct_STRIP="strip"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5922 done
5923 done
5925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5929 if test -n "$ac_ct_STRIP"; then
5930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5931 echo "${ECHO_T}$ac_ct_STRIP" >&6
5932 else
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5937 STRIP=$ac_ct_STRIP
5938 else
5939 STRIP="$ac_cv_prog_STRIP"
5943 old_CC="$CC"
5944 old_CFLAGS="$CFLAGS"
5946 # Set sane defaults for various variables
5947 test -z "$AR" && AR=ar
5948 test -z "$AR_FLAGS" && AR_FLAGS=cru
5949 test -z "$AS" && AS=as
5950 test -z "$CC" && CC=cc
5951 test -z "$LTCC" && LTCC=$CC
5952 test -z "$DLLTOOL" && DLLTOOL=dlltool
5953 test -z "$LD" && LD=ld
5954 test -z "$LN_S" && LN_S="ln -s"
5955 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5956 test -z "$NM" && NM=nm
5957 test -z "$SED" && SED=sed
5958 test -z "$OBJDUMP" && OBJDUMP=objdump
5959 test -z "$RANLIB" && RANLIB=:
5960 test -z "$STRIP" && STRIP=:
5961 test -z "$ac_objext" && ac_objext=o
5963 # Determine commands to create old-style static archives.
5964 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5965 old_postinstall_cmds='chmod 644 $oldlib'
5966 old_postuninstall_cmds=
5968 if test -n "$RANLIB"; then
5969 case $host_os in
5970 openbsd*)
5971 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5974 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5976 esac
5977 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5980 for cc_temp in $compiler""; do
5981 case $cc_temp in
5982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5984 \-*) ;;
5985 *) break;;
5986 esac
5987 done
5988 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5991 # Only perform the check for file, if the check method requires it
5992 case $deplibs_check_method in
5993 file_magic*)
5994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5995 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5996 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 case $MAGIC_CMD in
6001 [\\/*] | ?:[\\/]*)
6002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6005 lt_save_MAGIC_CMD="$MAGIC_CMD"
6006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6008 for ac_dir in $ac_dummy; do
6009 IFS="$lt_save_ifs"
6010 test -z "$ac_dir" && ac_dir=.
6011 if test -f $ac_dir/${ac_tool_prefix}file; then
6012 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6013 if test -n "$file_magic_test_file"; then
6014 case $deplibs_check_method in
6015 "file_magic "*)
6016 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6019 $EGREP "$file_magic_regex" > /dev/null; then
6021 else
6022 cat <<EOF 1>&2
6024 *** Warning: the command libtool uses to detect shared libraries,
6025 *** $file_magic_cmd, produces output that libtool cannot recognize.
6026 *** The result is that libtool may fail to recognize shared libraries
6027 *** as such. This will affect the creation of libtool libraries that
6028 *** depend on shared libraries, but programs linked with such libtool
6029 *** libraries will work regardless of this problem. Nevertheless, you
6030 *** may want to report the problem to your system manager and/or to
6031 *** bug-libtool@gnu.org
6034 fi ;;
6035 esac
6037 break
6039 done
6040 IFS="$lt_save_ifs"
6041 MAGIC_CMD="$lt_save_MAGIC_CMD"
6043 esac
6046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6047 if test -n "$MAGIC_CMD"; then
6048 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6049 echo "${ECHO_T}$MAGIC_CMD" >&6
6050 else
6051 echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6055 if test -z "$lt_cv_path_MAGIC_CMD"; then
6056 if test -n "$ac_tool_prefix"; then
6057 echo "$as_me:$LINENO: checking for file" >&5
6058 echo $ECHO_N "checking for file... $ECHO_C" >&6
6059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 case $MAGIC_CMD in
6063 [\\/*] | ?:[\\/]*)
6064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6067 lt_save_MAGIC_CMD="$MAGIC_CMD"
6068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6070 for ac_dir in $ac_dummy; do
6071 IFS="$lt_save_ifs"
6072 test -z "$ac_dir" && ac_dir=.
6073 if test -f $ac_dir/file; then
6074 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6075 if test -n "$file_magic_test_file"; then
6076 case $deplibs_check_method in
6077 "file_magic "*)
6078 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6081 $EGREP "$file_magic_regex" > /dev/null; then
6083 else
6084 cat <<EOF 1>&2
6086 *** Warning: the command libtool uses to detect shared libraries,
6087 *** $file_magic_cmd, produces output that libtool cannot recognize.
6088 *** The result is that libtool may fail to recognize shared libraries
6089 *** as such. This will affect the creation of libtool libraries that
6090 *** depend on shared libraries, but programs linked with such libtool
6091 *** libraries will work regardless of this problem. Nevertheless, you
6092 *** may want to report the problem to your system manager and/or to
6093 *** bug-libtool@gnu.org
6096 fi ;;
6097 esac
6099 break
6101 done
6102 IFS="$lt_save_ifs"
6103 MAGIC_CMD="$lt_save_MAGIC_CMD"
6105 esac
6108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6109 if test -n "$MAGIC_CMD"; then
6110 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6111 echo "${ECHO_T}$MAGIC_CMD" >&6
6112 else
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6117 else
6118 MAGIC_CMD=:
6124 esac
6126 enable_dlopen=no
6127 enable_win32_dll=no
6129 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6130 if test "${enable_libtool_lock+set}" = set; then
6131 enableval="$enable_libtool_lock"
6134 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6137 # Check whether --with-pic or --without-pic was given.
6138 if test "${with_pic+set}" = set; then
6139 withval="$with_pic"
6140 pic_mode="$withval"
6141 else
6142 pic_mode=default
6144 test -z "$pic_mode" && pic_mode=default
6146 # Use C for the default configuration in the libtool script
6147 tagname=
6148 lt_save_CC="$CC"
6149 ac_ext=c
6150 ac_cpp='$CPP $CPPFLAGS'
6151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156 # Source file extension for C test sources.
6157 ac_ext=c
6159 # Object file extension for compiled C test sources.
6160 objext=o
6161 objext=$objext
6163 # Code to be used in simple compile tests
6164 lt_simple_compile_test_code="int some_variable = 0;\n"
6166 # Code to be used in simple link tests
6167 lt_simple_link_test_code='int main(){return(0);}\n'
6170 # If no C compiler was specified, use CC.
6171 LTCC=${LTCC-"$CC"}
6173 # Allow CC to be a program name with arguments.
6174 compiler=$CC
6177 # save warnings/boilerplate of simple test code
6178 ac_outfile=conftest.$ac_objext
6179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6181 _lt_compiler_boilerplate=`cat conftest.err`
6182 $rm conftest*
6184 ac_outfile=conftest.$ac_objext
6185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6187 _lt_linker_boilerplate=`cat conftest.err`
6188 $rm conftest*
6192 # Check for any special shared library compilation flags.
6194 lt_prog_cc_shlib=
6195 if test "$GCC" = no; then
6196 case $host_os in
6197 sco3.2v5*)
6198 lt_prog_cc_shlib='-belf'
6200 esac
6202 if test -n "$lt_prog_cc_shlib"; then
6203 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6204 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6205 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6206 else
6207 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6208 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6209 lt_cv_prog_cc_can_build_shared=no
6215 # Check to make sure the static flag actually works.
6217 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6218 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6219 if test "${lt_prog_compiler_static_works+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 lt_prog_compiler_static_works=no
6223 save_LDFLAGS="$LDFLAGS"
6224 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6225 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6227 # The compiler can only warn and ignore the option if not recognized
6228 # So say no if there are warnings
6229 if test -s conftest.err; then
6230 # Append any errors to the config.log.
6231 cat conftest.err 1>&5
6232 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6233 $SED '/^$/d' conftest.err >conftest.er2
6234 if diff conftest.exp conftest.er2 >/dev/null; then
6235 lt_prog_compiler_static_works=yes
6237 else
6238 lt_prog_compiler_static_works=yes
6241 $rm conftest*
6242 LDFLAGS="$save_LDFLAGS"
6245 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6246 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6248 if test x"$lt_prog_compiler_static_works" = xyes; then
6250 else
6251 lt_prog_compiler_static=
6257 lt_prog_compiler_no_builtin_flag=
6259 if test "$GCC" = yes; then
6260 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6263 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6264 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6265 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 lt_cv_prog_compiler_rtti_exceptions=no
6269 ac_outfile=conftest.$ac_objext
6270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6271 lt_compiler_flag="-fno-rtti -fno-exceptions"
6272 # Insert the option either (1) after the last *FLAGS variable, or
6273 # (2) before a word containing "conftest.", or (3) at the end.
6274 # Note that $ac_compile itself does not contain backslashes and begins
6275 # with a dollar sign (not a hyphen), so the echo should work correctly.
6276 # The option is referenced via a variable to avoid confusing sed.
6277 lt_compile=`echo "$ac_compile" | $SED \
6278 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6280 -e 's:$: $lt_compiler_flag:'`
6281 (eval echo "\"\$as_me:6281: $lt_compile\"" >&5)
6282 (eval "$lt_compile" 2>conftest.err)
6283 ac_status=$?
6284 cat conftest.err >&5
6285 echo "$as_me:6285: \$? = $ac_status" >&5
6286 if (exit $ac_status) && test -s "$ac_outfile"; then
6287 # The compiler can only warn and ignore the option if not recognized
6288 # So say no if there are warnings other than the usual output.
6289 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6290 $SED '/^$/d' conftest.err >conftest.er2
6291 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6292 lt_cv_prog_compiler_rtti_exceptions=yes
6295 $rm conftest*
6298 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6299 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6301 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6302 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6303 else
6309 lt_prog_compiler_wl=
6310 lt_prog_compiler_pic=
6311 lt_prog_compiler_static=
6313 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6314 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6316 if test "$GCC" = yes; then
6317 lt_prog_compiler_wl='-Wl,'
6318 lt_prog_compiler_static='-static'
6320 case $host_os in
6321 aix*)
6322 # All AIX code is PIC.
6323 if test "$host_cpu" = ia64; then
6324 # AIX 5 now supports IA64 processor
6325 lt_prog_compiler_static='-Bstatic'
6329 amigaos*)
6330 # FIXME: we need at least 68020 code to build shared libraries, but
6331 # adding the `-m68020' flag to GCC prevents building anything better,
6332 # like `-m68040'.
6333 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6336 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6337 # PIC is the default for these OSes.
6340 mingw* | pw32* | os2*)
6341 # This hack is so that the source file can tell whether it is being
6342 # built for inclusion in a dll (and should export symbols for example).
6343 lt_prog_compiler_pic='-DDLL_EXPORT'
6346 darwin* | rhapsody*)
6347 # PIC is the default on this platform
6348 # Common symbols not allowed in MH_DYLIB files
6349 lt_prog_compiler_pic='-fno-common'
6352 msdosdjgpp*)
6353 # Just because we use GCC doesn't mean we suddenly get shared libraries
6354 # on systems that don't support them.
6355 lt_prog_compiler_can_build_shared=no
6356 enable_shared=no
6359 sysv4*MP*)
6360 if test -d /usr/nec; then
6361 lt_prog_compiler_pic=-Kconform_pic
6365 hpux*)
6366 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6367 # not for PA HP-UX.
6368 case "$host_cpu" in
6369 hppa*64*|ia64*)
6370 # +Z the default
6373 lt_prog_compiler_pic='-fPIC'
6375 esac
6379 lt_prog_compiler_pic='-fPIC'
6381 esac
6382 else
6383 # PORTME Check for flag to pass linker flags through the system compiler.
6384 case $host_os in
6385 aix*)
6386 lt_prog_compiler_wl='-Wl,'
6387 if test "$host_cpu" = ia64; then
6388 # AIX 5 now supports IA64 processor
6389 lt_prog_compiler_static='-Bstatic'
6390 else
6391 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6394 darwin*)
6395 # PIC is the default on this platform
6396 # Common symbols not allowed in MH_DYLIB files
6397 case $cc_basename in
6398 xlc*)
6399 lt_prog_compiler_pic='-qnocommon'
6400 lt_prog_compiler_wl='-Wl,'
6402 esac
6405 mingw* | pw32* | os2*)
6406 # This hack is so that the source file can tell whether it is being
6407 # built for inclusion in a dll (and should export symbols for example).
6408 lt_prog_compiler_pic='-DDLL_EXPORT'
6411 hpux9* | hpux10* | hpux11*)
6412 lt_prog_compiler_wl='-Wl,'
6413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6414 # not for PA HP-UX.
6415 case "$host_cpu" in
6416 hppa*64*|ia64*)
6417 # +Z the default
6420 lt_prog_compiler_pic='+Z'
6422 esac
6423 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6424 lt_prog_compiler_static='${wl}-a ${wl}archive'
6427 irix5* | irix6* | nonstopux*)
6428 lt_prog_compiler_wl='-Wl,'
6429 # PIC (with -KPIC) is the default.
6430 lt_prog_compiler_static='-non_shared'
6433 newsos6)
6434 lt_prog_compiler_pic='-KPIC'
6435 lt_prog_compiler_static='-Bstatic'
6438 linux*)
6439 case $cc_basename in
6440 icc* | ecc*)
6441 lt_prog_compiler_wl='-Wl,'
6442 lt_prog_compiler_pic='-KPIC'
6443 lt_prog_compiler_static='-static'
6445 pgcc* | pgf77* | pgf90*)
6446 # Portland Group compilers (*not* the Pentium gcc compiler,
6447 # which looks to be a dead project)
6448 lt_prog_compiler_wl='-Wl,'
6449 lt_prog_compiler_pic='-fpic'
6450 lt_prog_compiler_static='-static'
6452 ccc*)
6453 lt_prog_compiler_wl='-Wl,'
6454 # All Alpha code is PIC.
6455 lt_prog_compiler_static='-non_shared'
6457 esac
6460 osf3* | osf4* | osf5*)
6461 lt_prog_compiler_wl='-Wl,'
6462 # All OSF/1 code is PIC.
6463 lt_prog_compiler_static='-non_shared'
6466 sco3.2v5*)
6467 lt_prog_compiler_pic='-Kpic'
6468 lt_prog_compiler_static='-dn'
6471 solaris*)
6472 lt_prog_compiler_pic='-KPIC'
6473 lt_prog_compiler_static='-Bstatic'
6474 case $cc_basename in
6475 f77* | f90* | f95*)
6476 lt_prog_compiler_wl='-Qoption ld ';;
6478 lt_prog_compiler_wl='-Wl,';;
6479 esac
6482 sunos4*)
6483 lt_prog_compiler_wl='-Qoption ld '
6484 lt_prog_compiler_pic='-PIC'
6485 lt_prog_compiler_static='-Bstatic'
6488 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6489 lt_prog_compiler_wl='-Wl,'
6490 lt_prog_compiler_pic='-KPIC'
6491 lt_prog_compiler_static='-Bstatic'
6494 sysv4*MP*)
6495 if test -d /usr/nec ;then
6496 lt_prog_compiler_pic='-Kconform_pic'
6497 lt_prog_compiler_static='-Bstatic'
6501 unicos*)
6502 lt_prog_compiler_wl='-Wl,'
6503 lt_prog_compiler_can_build_shared=no
6506 uts4*)
6507 lt_prog_compiler_pic='-pic'
6508 lt_prog_compiler_static='-Bstatic'
6512 lt_prog_compiler_can_build_shared=no
6514 esac
6517 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6518 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6521 # Check to make sure the PIC flag actually works.
6523 if test -n "$lt_prog_compiler_pic"; then
6525 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6526 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6527 if test "${lt_prog_compiler_pic_works+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530 lt_prog_compiler_pic_works=no
6531 ac_outfile=conftest.$ac_objext
6532 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6534 # Insert the option either (1) after the last *FLAGS variable, or
6535 # (2) before a word containing "conftest.", or (3) at the end.
6536 # Note that $ac_compile itself does not contain backslashes and begins
6537 # with a dollar sign (not a hyphen), so the echo should work correctly.
6538 # The option is referenced via a variable to avoid confusing sed.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
6543 (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544 (eval "$lt_compile" 2>conftest.err)
6545 ac_status=$?
6546 cat conftest.err >&5
6547 echo "$as_me:6547: \$? = $ac_status" >&5
6548 if (exit $ac_status) && test -s "$ac_outfile"; then
6549 # The compiler can only warn and ignore the option if not recognized
6550 # So say no if there are warnings other than the usual output.
6551 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6552 $SED '/^$/d' conftest.err >conftest.er2
6553 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6554 lt_prog_compiler_pic_works=yes
6557 $rm conftest*
6560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6561 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6563 if test x"$lt_prog_compiler_pic_works" = xyes; then
6564 case $lt_prog_compiler_pic in
6565 "" | " "*) ;;
6566 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6567 esac
6568 else
6569 lt_prog_compiler_pic=
6570 lt_prog_compiler_can_build_shared=no
6574 case "$host_os" in
6575 # For platforms which do not support PIC, -DPIC is meaningless:
6576 *djgpp*)
6577 lt_prog_compiler_pic=
6580 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6582 esac
6584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 lt_cv_prog_compiler_c_o=no
6590 $rm -r conftest 2>/dev/null
6591 mkdir conftest
6592 cd conftest
6593 mkdir out
6594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6596 lt_compiler_flag="-o out/conftest2.$ac_objext"
6597 # Insert the option either (1) after the last *FLAGS variable, or
6598 # (2) before a word containing "conftest.", or (3) at the end.
6599 # Note that $ac_compile itself does not contain backslashes and begins
6600 # with a dollar sign (not a hyphen), so the echo should work correctly.
6601 lt_compile=`echo "$ac_compile" | $SED \
6602 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6604 -e 's:$: $lt_compiler_flag:'`
6605 (eval echo "\"\$as_me:6605: $lt_compile\"" >&5)
6606 (eval "$lt_compile" 2>out/conftest.err)
6607 ac_status=$?
6608 cat out/conftest.err >&5
6609 echo "$as_me:6609: \$? = $ac_status" >&5
6610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6611 then
6612 # The compiler can only warn and ignore the option if not recognized
6613 # So say no if there are warnings
6614 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6615 $SED '/^$/d' out/conftest.err >out/conftest.er2
6616 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6617 lt_cv_prog_compiler_c_o=yes
6620 chmod u+w .
6621 $rm conftest*
6622 # SGI C++ compiler will create directory out/ii_files/ for
6623 # template instantiation
6624 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6625 $rm out/* && rmdir out
6626 cd ..
6627 rmdir conftest
6628 $rm conftest*
6631 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6632 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6635 hard_links="nottested"
6636 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6637 # do not overwrite the value of need_locks provided by the user
6638 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6639 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6640 hard_links=yes
6641 $rm conftest*
6642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6643 touch conftest.a
6644 ln conftest.a conftest.b 2>&5 || hard_links=no
6645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6646 echo "$as_me:$LINENO: result: $hard_links" >&5
6647 echo "${ECHO_T}$hard_links" >&6
6648 if test "$hard_links" = no; then
6649 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6650 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6651 need_locks=warn
6653 else
6654 need_locks=no
6657 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6660 runpath_var=
6661 allow_undefined_flag=
6662 enable_shared_with_static_runtimes=no
6663 archive_cmds=
6664 archive_expsym_cmds=
6665 old_archive_From_new_cmds=
6666 old_archive_from_expsyms_cmds=
6667 export_dynamic_flag_spec=
6668 whole_archive_flag_spec=
6669 thread_safe_flag_spec=
6670 hardcode_libdir_flag_spec=
6671 hardcode_libdir_flag_spec_ld=
6672 hardcode_libdir_separator=
6673 hardcode_direct=no
6674 hardcode_minus_L=no
6675 hardcode_shlibpath_var=unsupported
6676 link_all_deplibs=unknown
6677 hardcode_automatic=no
6678 module_cmds=
6679 module_expsym_cmds=
6680 always_export_symbols=no
6681 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6682 # include_expsyms should be a list of space-separated symbols to be *always*
6683 # included in the symbol list
6684 include_expsyms=
6685 # exclude_expsyms can be an extended regexp of symbols to exclude
6686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6688 # as well as any symbol that contains `d'.
6689 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6691 # platforms (ab)use it in PIC code, but their linkers get confused if
6692 # the symbol is explicitly referenced. Since portable code cannot
6693 # rely on this symbol name, it's probably fine to never include it in
6694 # preloaded symbol tables.
6695 extract_expsyms_cmds=
6696 # Just being paranoid about ensuring that cc_basename is set.
6697 for cc_temp in $compiler""; do
6698 case $cc_temp in
6699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6701 \-*) ;;
6702 *) break;;
6703 esac
6704 done
6705 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6707 case $host_os in
6708 cygwin* | mingw* | pw32*)
6709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6710 # When not using gcc, we currently assume that we are using
6711 # Microsoft Visual C++.
6712 if test "$GCC" != yes; then
6713 with_gnu_ld=no
6716 openbsd*)
6717 with_gnu_ld=no
6719 esac
6721 ld_shlibs=yes
6722 if test "$with_gnu_ld" = yes; then
6723 # If archive_cmds runs LD, not CC, wlarc should be empty
6724 wlarc='${wl}'
6726 # Set some defaults for GNU ld with shared library support. These
6727 # are reset later if shared libraries are not supported. Putting them
6728 # here allows them to be overridden if necessary.
6729 runpath_var=LD_RUN_PATH
6730 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6731 export_dynamic_flag_spec='${wl}--export-dynamic'
6732 # ancient GNU ld didn't support --whole-archive et. al.
6733 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6734 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6735 else
6736 whole_archive_flag_spec=
6738 supports_anon_versioning=no
6739 case `$LD -v 2>/dev/null` in
6740 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6741 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6742 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6743 *\ 2.11.*) ;; # other 2.11 versions
6744 *) supports_anon_versioning=yes ;;
6745 esac
6747 # See if GNU ld supports shared libraries.
6748 case $host_os in
6749 aix3* | aix4* | aix5*)
6750 # On AIX/PPC, the GNU linker is very broken
6751 if test "$host_cpu" != ia64; then
6752 ld_shlibs=no
6753 cat <<EOF 1>&2
6755 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6756 *** to be unable to reliably create shared libraries on AIX.
6757 *** Therefore, libtool is disabling shared libraries support. If you
6758 *** really care for shared libraries, you may want to modify your PATH
6759 *** so that a non-GNU linker is found, and then restart.
6765 amigaos*)
6766 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)'
6767 hardcode_libdir_flag_spec='-L$libdir'
6768 hardcode_minus_L=yes
6770 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6771 # that the semantics of dynamic libraries on AmigaOS, at least up
6772 # to version 4, is to share data among multiple programs linked
6773 # with the same dynamic library. Since this doesn't match the
6774 # behavior of shared libraries on other platforms, we can't use
6775 # them.
6776 ld_shlibs=no
6779 beos*)
6780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6781 allow_undefined_flag=unsupported
6782 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6783 # support --undefined. This deserves some investigation. FIXME
6784 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6785 else
6786 ld_shlibs=no
6790 cygwin* | mingw* | pw32*)
6791 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6792 # as there is no search path for DLLs.
6793 hardcode_libdir_flag_spec='-L$libdir'
6794 allow_undefined_flag=unsupported
6795 always_export_symbols=no
6796 enable_shared_with_static_runtimes=yes
6797 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6799 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6801 # If the export-symbols file already is a .def file (1st line
6802 # is EXPORTS), use it as is; otherwise, prepend...
6803 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6804 cp $export_symbols $output_objdir/$soname.def;
6805 else
6806 echo EXPORTS > $output_objdir/$soname.def;
6807 cat $export_symbols >> $output_objdir/$soname.def;
6809 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6810 else
6811 ld_shlibs=no
6815 linux*)
6816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6817 tmp_addflag=
6818 case $cc_basename,$host_cpu in
6819 pgcc*) # Portland Group C compiler
6820 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6821 tmp_addflag=' $pic_flag'
6823 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6824 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6825 tmp_addflag=' $pic_flag -Mnomain' ;;
6826 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6827 tmp_addflag=' -i_dynamic' ;;
6828 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6829 tmp_addflag=' -i_dynamic -nofor_main' ;;
6830 ifc* | ifort*) # Intel Fortran compiler
6831 tmp_addflag=' -nofor_main' ;;
6832 esac
6833 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6835 if test $supports_anon_versioning = yes; then
6836 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6838 $echo "local: *; };" >> $output_objdir/$libname.ver~
6839 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6841 else
6842 ld_shlibs=no
6846 netbsd*)
6847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6848 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6849 wlarc=
6850 else
6851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6856 solaris* | sysv5*)
6857 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6858 ld_shlibs=no
6859 cat <<EOF 1>&2
6861 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6862 *** create shared libraries on Solaris systems. Therefore, libtool
6863 *** is disabling shared libraries support. We urge you to upgrade GNU
6864 *** binutils to release 2.9.1 or newer. Another option is to modify
6865 *** your PATH or compiler configuration so that the native linker is
6866 *** used, and then restart.
6869 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6872 else
6873 ld_shlibs=no
6877 sunos4*)
6878 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6879 wlarc=
6880 hardcode_direct=yes
6881 hardcode_shlibpath_var=no
6885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6888 else
6889 ld_shlibs=no
6892 esac
6894 if test "$ld_shlibs" = no; then
6895 runpath_var=
6896 hardcode_libdir_flag_spec=
6897 export_dynamic_flag_spec=
6898 whole_archive_flag_spec=
6900 else
6901 # PORTME fill in a description of your system's linker (not GNU ld)
6902 case $host_os in
6903 aix3*)
6904 allow_undefined_flag=unsupported
6905 always_export_symbols=yes
6906 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'
6907 # Note: this linker hardcodes the directories in LIBPATH if there
6908 # are no directories specified by -L.
6909 hardcode_minus_L=yes
6910 if test "$GCC" = yes && test -z "$link_static_flag"; then
6911 # Neither direct hardcoding nor static linking is supported with a
6912 # broken collect2.
6913 hardcode_direct=unsupported
6917 aix4* | aix5*)
6918 if test "$host_cpu" = ia64; then
6919 # On IA64, the linker does run time linking by default, so we don't
6920 # have to do anything special.
6921 aix_use_runtimelinking=no
6922 exp_sym_flag='-Bexport'
6923 no_entry_flag=""
6924 else
6925 # If we're using GNU nm, then we don't want the "-C" option.
6926 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6927 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6928 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'
6929 else
6930 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'
6932 aix_use_runtimelinking=no
6934 # Test if we are trying to use run time linking or normal
6935 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6936 # need to do runtime linking.
6937 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6938 for ld_flag in $LDFLAGS; do
6939 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6940 aix_use_runtimelinking=yes
6941 break
6943 done
6944 esac
6946 exp_sym_flag='-bexport'
6947 no_entry_flag='-bnoentry'
6950 # When large executables or shared objects are built, AIX ld can
6951 # have problems creating the table of contents. If linking a library
6952 # or program results in "error TOC overflow" add -mminimal-toc to
6953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6956 archive_cmds=''
6957 hardcode_direct=yes
6958 hardcode_libdir_separator=':'
6959 link_all_deplibs=yes
6961 if test "$GCC" = yes; then
6962 case $host_os in aix4.[012]|aix4.[012].*)
6963 # We only want to do this on AIX 4.2 and lower, the check
6964 # below for broken collect2 doesn't work under 4.3+
6965 collect2name=`${CC} -print-prog-name=collect2`
6966 if test -f "$collect2name" && \
6967 strings "$collect2name" | grep resolve_lib_name >/dev/null
6968 then
6969 # We have reworked collect2
6970 hardcode_direct=yes
6971 else
6972 # We have old collect2
6973 hardcode_direct=unsupported
6974 # It fails to find uninstalled libraries when the uninstalled
6975 # path is not listed in the libpath. Setting hardcode_minus_L
6976 # to unsupported forces relinking
6977 hardcode_minus_L=yes
6978 hardcode_libdir_flag_spec='-L$libdir'
6979 hardcode_libdir_separator=
6981 esac
6982 shared_flag='-shared'
6983 if test "$aix_use_runtimelinking" = yes; then
6984 shared_flag="$shared_flag "'${wl}-G'
6986 else
6987 # not using gcc
6988 if test "$host_cpu" = ia64; then
6989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6990 # chokes on -Wl,-G. The following line is correct:
6991 shared_flag='-G'
6992 else
6993 if test "$aix_use_runtimelinking" = yes; then
6994 shared_flag='${wl}-G'
6995 else
6996 shared_flag='${wl}-bM:SRE'
7001 # It seems that -bexpall does not export symbols beginning with
7002 # underscore (_), so it is better to generate a list of symbols to export.
7003 always_export_symbols=yes
7004 if test "$aix_use_runtimelinking" = yes; then
7005 # Warning - without using the other runtime loading flags (-brtl),
7006 # -berok will link without error, but may produce a broken library.
7007 allow_undefined_flag='-berok'
7008 # Determine the default libpath from the value encoded in an empty executable.
7009 cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h. */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7017 main ()
7021 return 0;
7023 _ACEOF
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag"
7034 || test ! -s conftest.err'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; } &&
7040 { ac_try='test -s conftest$ac_exeext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7049 # Check for a 64-bit object if we didn't find anything.
7050 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; }
7051 }'`; fi
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7057 rm -f conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7062 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"
7063 else
7064 if test "$host_cpu" = ia64; then
7065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7066 allow_undefined_flag="-z nodefs"
7067 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"
7068 else
7069 # Determine the default libpath from the value encoded in an empty executable.
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h. */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7078 main ()
7082 return 0;
7084 _ACEOF
7085 rm -f conftest.$ac_objext conftest$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -z "$ac_c_werror_flag"
7095 || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7110 # Check for a 64-bit object if we didn't find anything.
7111 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; }
7112 }'`; fi
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7118 rm -f conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7123 # Warning - without using the other run time loading flags,
7124 # -berok will link without error, but may produce a broken library.
7125 no_undefined_flag=' ${wl}-bernotok'
7126 allow_undefined_flag=' ${wl}-berok'
7127 # -bexpall does not export symbols beginning with underscore (_)
7128 always_export_symbols=yes
7129 # Exported symbols can be pulled into shared objects from archives
7130 whole_archive_flag_spec=' '
7131 archive_cmds_need_lc=yes
7132 # This is similar to how AIX traditionally builds it's shared libraries.
7133 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'
7138 amigaos*)
7139 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)'
7140 hardcode_libdir_flag_spec='-L$libdir'
7141 hardcode_minus_L=yes
7142 # see comment about different semantics on the GNU ld section
7143 ld_shlibs=no
7146 bsdi[45]*)
7147 export_dynamic_flag_spec=-rdynamic
7150 cygwin* | mingw* | pw32*)
7151 # When not using gcc, we currently assume that we are using
7152 # Microsoft Visual C++.
7153 # hardcode_libdir_flag_spec is actually meaningless, as there is
7154 # no search path for DLLs.
7155 hardcode_libdir_flag_spec=' '
7156 allow_undefined_flag=unsupported
7157 # Tell ltmain to make .lib files, not .a files.
7158 libext=lib
7159 # Tell ltmain to make .dll files, not .so files.
7160 shrext_cmds=".dll"
7161 # FIXME: Setting linknames here is a bad hack.
7162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7163 # The linker will automatically build a .lib file if we build a DLL.
7164 old_archive_From_new_cmds='true'
7165 # FIXME: Should let the user specify the lib program.
7166 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7167 fix_srcfile_path='`cygpath -w "$srcfile"`'
7168 enable_shared_with_static_runtimes=yes
7171 darwin* | rhapsody*)
7172 case "$host_os" in
7173 rhapsody* | darwin1.[012])
7174 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7176 *) # Darwin 1.3 on
7177 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7178 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7179 else
7180 case ${MACOSX_DEPLOYMENT_TARGET} in
7181 10.[012])
7182 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7184 10.*)
7185 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7187 esac
7190 esac
7191 archive_cmds_need_lc=no
7192 hardcode_direct=no
7193 hardcode_automatic=yes
7194 hardcode_shlibpath_var=unsupported
7195 whole_archive_flag_spec=''
7196 link_all_deplibs=yes
7197 if test "$GCC" = yes ; then
7198 output_verbose_link_cmd='echo'
7199 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7200 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7201 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7202 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}'
7203 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7204 else
7205 case $cc_basename in
7206 xlc*)
7207 output_verbose_link_cmd='echo'
7208 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7209 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7210 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7211 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7212 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7215 ld_shlibs=no
7217 esac
7221 dgux*)
7222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7223 hardcode_libdir_flag_spec='-L$libdir'
7224 hardcode_shlibpath_var=no
7227 freebsd1*)
7228 ld_shlibs=no
7231 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7232 # support. Future versions do this automatically, but an explicit c++rt0.o
7233 # does not break anything, and helps significantly (at the cost of a little
7234 # extra space).
7235 freebsd2.2*)
7236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7237 hardcode_libdir_flag_spec='-R$libdir'
7238 hardcode_direct=yes
7239 hardcode_shlibpath_var=no
7242 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7243 freebsd2*)
7244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7245 hardcode_direct=yes
7246 hardcode_minus_L=yes
7247 hardcode_shlibpath_var=no
7250 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7251 freebsd* | kfreebsd*-gnu | dragonfly*)
7252 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7253 hardcode_libdir_flag_spec='-R$libdir'
7254 hardcode_direct=yes
7255 hardcode_shlibpath_var=no
7258 hpux9*)
7259 if test "$GCC" = yes; then
7260 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'
7261 else
7262 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'
7264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7265 hardcode_libdir_separator=:
7266 hardcode_direct=yes
7268 # hardcode_minus_L: Not really in the search PATH,
7269 # but as the default location of the library.
7270 hardcode_minus_L=yes
7271 export_dynamic_flag_spec='${wl}-E'
7274 hpux10* | hpux11*)
7275 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7276 case "$host_cpu" in
7277 hppa*64*|ia64*)
7278 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7283 esac
7284 else
7285 case "$host_cpu" in
7286 hppa*64*|ia64*)
7287 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7292 esac
7294 if test "$with_gnu_ld" = no; then
7295 case "$host_cpu" in
7296 hppa*64*)
7297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7298 hardcode_libdir_flag_spec_ld='+b $libdir'
7299 hardcode_libdir_separator=:
7300 hardcode_direct=no
7301 hardcode_shlibpath_var=no
7303 ia64*)
7304 hardcode_libdir_flag_spec='-L$libdir'
7305 hardcode_direct=no
7306 hardcode_shlibpath_var=no
7308 # hardcode_minus_L: Not really in the search PATH,
7309 # but as the default location of the library.
7310 hardcode_minus_L=yes
7313 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7314 hardcode_libdir_separator=:
7315 hardcode_direct=yes
7316 export_dynamic_flag_spec='${wl}-E'
7318 # hardcode_minus_L: Not really in the search PATH,
7319 # but as the default location of the library.
7320 hardcode_minus_L=yes
7322 esac
7326 irix5* | irix6* | nonstopux*)
7327 if test "$GCC" = yes; then
7328 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'
7329 else
7330 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'
7331 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7334 hardcode_libdir_separator=:
7335 link_all_deplibs=yes
7338 netbsd*)
7339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7341 else
7342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7344 hardcode_libdir_flag_spec='-R$libdir'
7345 hardcode_direct=yes
7346 hardcode_shlibpath_var=no
7349 newsos6)
7350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7351 hardcode_direct=yes
7352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7353 hardcode_libdir_separator=:
7354 hardcode_shlibpath_var=no
7357 openbsd*)
7358 hardcode_direct=yes
7359 hardcode_shlibpath_var=no
7360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7362 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7364 export_dynamic_flag_spec='${wl}-E'
7365 else
7366 case $host_os in
7367 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7369 hardcode_libdir_flag_spec='-R$libdir'
7372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7375 esac
7379 os2*)
7380 hardcode_libdir_flag_spec='-L$libdir'
7381 hardcode_minus_L=yes
7382 allow_undefined_flag=unsupported
7383 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'
7384 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7387 osf3*)
7388 if test "$GCC" = yes; then
7389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7390 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'
7391 else
7392 allow_undefined_flag=' -expect_unresolved \*'
7393 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'
7395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7396 hardcode_libdir_separator=:
7399 osf4* | osf5*) # as osf3* with the addition of -msym flag
7400 if test "$GCC" = yes; then
7401 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7402 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'
7403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7404 else
7405 allow_undefined_flag=' -expect_unresolved \*'
7406 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'
7407 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7408 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7410 # Both c and cxx compiler support -rpath directly
7411 hardcode_libdir_flag_spec='-rpath $libdir'
7413 hardcode_libdir_separator=:
7416 sco3.2v5*)
7417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_shlibpath_var=no
7419 export_dynamic_flag_spec='${wl}-Bexport'
7420 runpath_var=LD_RUN_PATH
7421 hardcode_runpath_var=yes
7424 solaris*)
7425 no_undefined_flag=' -z text'
7426 if test "$GCC" = yes; then
7427 wlarc='${wl}'
7428 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7431 else
7432 wlarc=''
7433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7437 hardcode_libdir_flag_spec='-R$libdir'
7438 hardcode_shlibpath_var=no
7439 case $host_os in
7440 solaris2.[0-5] | solaris2.[0-5].*) ;;
7442 # The compiler driver will combine linker options so we
7443 # cannot just pass the convience library names through
7444 # without $wl, iff we do not link with $LD.
7445 # Luckily, gcc supports the same syntax we need for Sun Studio.
7446 # Supported since Solaris 2.6 (maybe 2.5.1?)
7447 case $wlarc in
7449 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7451 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7452 esac ;;
7453 esac
7454 link_all_deplibs=yes
7457 sunos4*)
7458 if test "x$host_vendor" = xsequent; then
7459 # Use $CC to link under sequent, because it throws in some extra .o
7460 # files that make .init and .fini sections work.
7461 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7462 else
7463 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7465 hardcode_libdir_flag_spec='-L$libdir'
7466 hardcode_direct=yes
7467 hardcode_minus_L=yes
7468 hardcode_shlibpath_var=no
7471 sysv4)
7472 case $host_vendor in
7473 sni)
7474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_direct=yes # is this really true???
7477 siemens)
7478 ## LD is ld it makes a PLAMLIB
7479 ## CC just makes a GrossModule.
7480 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7481 reload_cmds='$CC -r -o $output$reload_objs'
7482 hardcode_direct=no
7484 motorola)
7485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7486 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7488 esac
7489 runpath_var='LD_RUN_PATH'
7490 hardcode_shlibpath_var=no
7493 sysv4.3*)
7494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7495 hardcode_shlibpath_var=no
7496 export_dynamic_flag_spec='-Bexport'
7499 sysv4*MP*)
7500 if test -d /usr/nec; then
7501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7502 hardcode_shlibpath_var=no
7503 runpath_var=LD_RUN_PATH
7504 hardcode_runpath_var=yes
7505 ld_shlibs=yes
7509 sysv4.2uw2*)
7510 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7511 hardcode_direct=yes
7512 hardcode_minus_L=no
7513 hardcode_shlibpath_var=no
7514 hardcode_runpath_var=yes
7515 runpath_var=LD_RUN_PATH
7518 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7519 no_undefined_flag='${wl}-z ${wl}text'
7520 if test "$GCC" = yes; then
7521 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7522 else
7523 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7525 runpath_var='LD_RUN_PATH'
7526 hardcode_shlibpath_var=no
7529 sysv5*)
7530 no_undefined_flag=' -z text'
7531 # $CC -shared without GNU ld will not create a library from C++
7532 # object files and a static libstdc++, better avoid it by now
7533 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7534 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7535 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7536 hardcode_libdir_flag_spec=
7537 hardcode_shlibpath_var=no
7538 runpath_var='LD_RUN_PATH'
7541 uts4*)
7542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7543 hardcode_libdir_flag_spec='-L$libdir'
7544 hardcode_shlibpath_var=no
7548 ld_shlibs=no
7550 esac
7553 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7554 echo "${ECHO_T}$ld_shlibs" >&6
7555 test "$ld_shlibs" = no && can_build_shared=no
7557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7558 if test "$GCC" = yes; then
7559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7563 # Do we need to explicitly link libc?
7565 case "x$archive_cmds_need_lc" in
7566 x|xyes)
7567 # Assume -lc should be added
7568 archive_cmds_need_lc=yes
7570 if test "$enable_shared" = yes && test "$GCC" = yes; then
7571 case $archive_cmds in
7572 *'~'*)
7573 # FIXME: we may have to deal with multi-command sequences.
7575 '$CC '*)
7576 # Test whether the compiler implicitly links with -lc since on some
7577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7578 # to ld, don't add -lc before -lgcc.
7579 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7580 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7581 $rm conftest*
7582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } 2>conftest.err; then
7589 soname=conftest
7590 lib=conftest
7591 libobjs=conftest.$ac_objext
7592 deplibs=
7593 wl=$lt_prog_compiler_wl
7594 compiler_flags=-v
7595 linker_flags=-v
7596 verstring=
7597 output_objdir=.
7598 libname=conftest
7599 lt_save_allow_undefined_flag=$allow_undefined_flag
7600 allow_undefined_flag=
7601 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7602 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }
7606 then
7607 archive_cmds_need_lc=no
7608 else
7609 archive_cmds_need_lc=yes
7611 allow_undefined_flag=$lt_save_allow_undefined_flag
7612 else
7613 cat conftest.err 1>&5
7615 $rm conftest*
7616 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7617 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7619 esac
7622 esac
7624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7626 library_names_spec=
7627 libname_spec='lib$name'
7628 soname_spec=
7629 shrext_cmds=".so"
7630 postinstall_cmds=
7631 postuninstall_cmds=
7632 finish_cmds=
7633 finish_eval=
7634 shlibpath_var=
7635 shlibpath_overrides_runpath=unknown
7636 version_type=none
7637 dynamic_linker="$host_os ld.so"
7638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7639 if test "$GCC" = yes; then
7640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7641 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7642 # if the path contains ";" then we assume it to be the separator
7643 # otherwise default to the standard path separator (i.e. ":") - it is
7644 # assumed that no part of a normal pathname contains ";" but that should
7645 # okay in the real world where ";" in dirpaths is itself problematic.
7646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7647 else
7648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7650 else
7651 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7653 need_lib_prefix=unknown
7654 hardcode_into_libs=no
7656 # when you set need_version to no, make sure it does not cause -set_version
7657 # flags to be left without arguments
7658 need_version=unknown
7660 case $host_os in
7661 aix3*)
7662 version_type=linux
7663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7664 shlibpath_var=LIBPATH
7666 # AIX 3 has no versioning support, so we append a major version to the name.
7667 soname_spec='${libname}${release}${shared_ext}$major'
7670 aix4* | aix5*)
7671 version_type=linux
7672 need_lib_prefix=no
7673 need_version=no
7674 hardcode_into_libs=yes
7675 if test "$host_cpu" = ia64; then
7676 # AIX 5 supports IA64
7677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7678 shlibpath_var=LD_LIBRARY_PATH
7679 else
7680 # With GCC up to 2.95.x, collect2 would create an import file
7681 # for dependence libraries. The import file would start with
7682 # the line `#! .'. This would cause the generated library to
7683 # depend on `.', always an invalid library. This was fixed in
7684 # development snapshots of GCC prior to 3.0.
7685 case $host_os in
7686 aix4 | aix4.[01] | aix4.[01].*)
7687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7688 echo ' yes '
7689 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7691 else
7692 can_build_shared=no
7695 esac
7696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7697 # soname into executable. Probably we can add versioning support to
7698 # collect2, so additional links can be useful in future.
7699 if test "$aix_use_runtimelinking" = yes; then
7700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7701 # instead of lib<name>.a to let people know that these are not
7702 # typical AIX shared libraries.
7703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7704 else
7705 # We preserve .a as extension for shared libraries through AIX4.2
7706 # and later when we are not doing run time linking.
7707 library_names_spec='${libname}${release}.a $libname.a'
7708 soname_spec='${libname}${release}${shared_ext}$major'
7710 shlibpath_var=LIBPATH
7714 amigaos*)
7715 library_names_spec='$libname.ixlibrary $libname.a'
7716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7717 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'
7720 beos*)
7721 library_names_spec='${libname}${shared_ext}'
7722 dynamic_linker="$host_os ld.so"
7723 shlibpath_var=LIBRARY_PATH
7726 bsdi[45]*)
7727 version_type=linux
7728 need_version=no
7729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730 soname_spec='${libname}${release}${shared_ext}$major'
7731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7732 shlibpath_var=LD_LIBRARY_PATH
7733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7735 # the default ld.so.conf also contains /usr/contrib/lib and
7736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7737 # libtool to hard-code these into programs
7740 cygwin* | mingw* | pw32*)
7741 version_type=windows
7742 shrext_cmds=".dll"
7743 need_version=no
7744 need_lib_prefix=no
7746 case $GCC,$host_os in
7747 yes,cygwin* | yes,mingw* | yes,pw32*)
7748 library_names_spec='$libname.dll.a'
7749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7750 postinstall_cmds='base_file=`basename \${file}`~
7751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7752 dldir=$destdir/`dirname \$dlpath`~
7753 test -d \$dldir || mkdir -p \$dldir~
7754 $install_prog $dir/$dlname \$dldir/$dlname'
7755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7756 dlpath=$dir/\$dldll~
7757 $rm \$dlpath'
7758 shlibpath_overrides_runpath=yes
7760 case $host_os in
7761 cygwin*)
7762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7766 mingw*)
7767 # MinGW DLLs use traditional 'lib' prefix
7768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7771 # It is most probably a Windows format PATH printed by
7772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7773 # path with ; separators, and with drive letters. We can handle the
7774 # drive letters (cygwin fileutils understands them), so leave them,
7775 # especially as we might pass files found there to a mingw objdump,
7776 # which wouldn't understand a cygwinified path. Ahh.
7777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7778 else
7779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7782 pw32*)
7783 # pw32 DLLs use 'pw' prefix rather than 'lib'
7784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7786 esac
7790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7792 esac
7793 dynamic_linker='Win32 ld.exe'
7794 # FIXME: first we should search . and the directory the executable is in
7795 shlibpath_var=PATH
7798 darwin* | rhapsody*)
7799 dynamic_linker="$host_os dyld"
7800 version_type=darwin
7801 need_lib_prefix=no
7802 need_version=no
7803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7804 soname_spec='${libname}${release}${major}$shared_ext'
7805 shlibpath_overrides_runpath=yes
7806 shlibpath_var=DYLD_LIBRARY_PATH
7807 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7809 if test "$GCC" = yes; then
7810 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"`
7811 else
7812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7817 dgux*)
7818 version_type=linux
7819 need_lib_prefix=no
7820 need_version=no
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7822 soname_spec='${libname}${release}${shared_ext}$major'
7823 shlibpath_var=LD_LIBRARY_PATH
7826 freebsd1*)
7827 dynamic_linker=no
7830 kfreebsd*-gnu)
7831 version_type=linux
7832 need_lib_prefix=no
7833 need_version=no
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 shlibpath_var=LD_LIBRARY_PATH
7837 shlibpath_overrides_runpath=no
7838 hardcode_into_libs=yes
7839 dynamic_linker='GNU ld.so'
7842 freebsd* | dragonfly*)
7843 # DragonFly does not have aout. When/if they implement a new
7844 # versioning mechanism, adjust this.
7845 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7846 version_type=freebsd-$objformat
7847 case $version_type in
7848 freebsd-elf*)
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7850 need_version=no
7851 need_lib_prefix=no
7853 freebsd-*)
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7855 need_version=yes
7857 esac
7858 shlibpath_var=LD_LIBRARY_PATH
7859 case $host_os in
7860 freebsd2*)
7861 shlibpath_overrides_runpath=yes
7863 freebsd3.[01]* | freebsdelf3.[01]*)
7864 shlibpath_overrides_runpath=yes
7865 hardcode_into_libs=yes
7867 *) # from 3.2 on
7868 shlibpath_overrides_runpath=no
7869 hardcode_into_libs=yes
7871 esac
7874 gnu*)
7875 version_type=linux
7876 need_lib_prefix=no
7877 need_version=no
7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7879 soname_spec='${libname}${release}${shared_ext}$major'
7880 shlibpath_var=LD_LIBRARY_PATH
7881 hardcode_into_libs=yes
7884 hpux9* | hpux10* | hpux11*)
7885 # Give a soname corresponding to the major version so that dld.sl refuses to
7886 # link against other versions.
7887 version_type=sunos
7888 need_lib_prefix=no
7889 need_version=no
7890 case "$host_cpu" in
7891 ia64*)
7892 shrext_cmds='.so'
7893 hardcode_into_libs=yes
7894 dynamic_linker="$host_os dld.so"
7895 shlibpath_var=LD_LIBRARY_PATH
7896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898 soname_spec='${libname}${release}${shared_ext}$major'
7899 if test "X$HPUX_IA64_MODE" = X32; then
7900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7901 else
7902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7906 hppa*64*)
7907 shrext_cmds='.sl'
7908 hardcode_into_libs=yes
7909 dynamic_linker="$host_os dld.sl"
7910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7913 soname_spec='${libname}${release}${shared_ext}$major'
7914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7918 shrext_cmds='.sl'
7919 dynamic_linker="$host_os dld.sl"
7920 shlibpath_var=SHLIB_PATH
7921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923 soname_spec='${libname}${release}${shared_ext}$major'
7925 esac
7926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7927 postinstall_cmds='chmod 555 $lib'
7930 irix5* | irix6* | nonstopux*)
7931 case $host_os in
7932 nonstopux*) version_type=nonstopux ;;
7934 if test "$lt_cv_prog_gnu_ld" = yes; then
7935 version_type=linux
7936 else
7937 version_type=irix
7938 fi ;;
7939 esac
7940 need_lib_prefix=no
7941 need_version=no
7942 soname_spec='${libname}${release}${shared_ext}$major'
7943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7944 case $host_os in
7945 irix5* | nonstopux*)
7946 libsuff= shlibsuff=
7949 case $LD in # libtool.m4 will add one of these switches to LD
7950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7951 libsuff= shlibsuff= libmagic=32-bit;;
7952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7953 libsuff=32 shlibsuff=N32 libmagic=N32;;
7954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7956 *) libsuff= shlibsuff= libmagic=never-match;;
7957 esac
7959 esac
7960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7961 shlibpath_overrides_runpath=no
7962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7964 hardcode_into_libs=yes
7967 # No shared lib support for Linux oldld, aout, or coff.
7968 linux*oldld* | linux*aout* | linux*coff*)
7969 dynamic_linker=no
7972 # This must be Linux ELF.
7973 linux*)
7974 version_type=linux
7975 need_lib_prefix=no
7976 need_version=no
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978 soname_spec='${libname}${release}${shared_ext}$major'
7979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7980 shlibpath_var=LD_LIBRARY_PATH
7981 shlibpath_overrides_runpath=no
7982 # This implies no fast_install, which is unacceptable.
7983 # Some rework will be needed to allow for fast_install
7984 # before this can be enabled.
7985 hardcode_into_libs=yes
7987 # find out which ABI we are using
7988 libsuff=
7989 case "$host_cpu" in
7990 x86_64*|s390x*|powerpc64*)
7991 echo '#line 7991 "configure"' > conftest.$ac_ext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7993 (eval $ac_compile) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; then
7997 case `/usr/bin/file conftest.$ac_objext` in
7998 *64-bit*)
7999 libsuff=64
8000 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8002 esac
8004 rm -rf conftest*
8006 esac
8008 # Append ld.so.conf contents to the search path
8009 if test -f /etc/ld.so.conf; then
8010 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8011 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8014 # We used to test for /lib/ld.so.1 and disable shared libraries on
8015 # powerpc, because MkLinux only supported shared libraries with the
8016 # GNU dynamic linker. Since this was broken with cross compilers,
8017 # most powerpc-linux boxes support dynamic linking these days and
8018 # people can always --disable-shared, the test was removed, and we
8019 # assume the GNU/Linux dynamic linker is in use.
8020 dynamic_linker='GNU/Linux ld.so'
8023 knetbsd*-gnu)
8024 version_type=linux
8025 need_lib_prefix=no
8026 need_version=no
8027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8028 soname_spec='${libname}${release}${shared_ext}$major'
8029 shlibpath_var=LD_LIBRARY_PATH
8030 shlibpath_overrides_runpath=no
8031 hardcode_into_libs=yes
8032 dynamic_linker='GNU ld.so'
8035 netbsd*)
8036 version_type=sunos
8037 need_lib_prefix=no
8038 need_version=no
8039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8042 dynamic_linker='NetBSD (a.out) ld.so'
8043 else
8044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8045 soname_spec='${libname}${release}${shared_ext}$major'
8046 dynamic_linker='NetBSD ld.elf_so'
8048 shlibpath_var=LD_LIBRARY_PATH
8049 shlibpath_overrides_runpath=yes
8050 hardcode_into_libs=yes
8053 newsos6)
8054 version_type=linux
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056 shlibpath_var=LD_LIBRARY_PATH
8057 shlibpath_overrides_runpath=yes
8060 nto-qnx*)
8061 version_type=linux
8062 need_lib_prefix=no
8063 need_version=no
8064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8065 soname_spec='${libname}${release}${shared_ext}$major'
8066 shlibpath_var=LD_LIBRARY_PATH
8067 shlibpath_overrides_runpath=yes
8070 openbsd*)
8071 version_type=sunos
8072 need_lib_prefix=no
8073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8074 case $host_os in
8075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8076 *) need_version=no ;;
8077 esac
8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8080 shlibpath_var=LD_LIBRARY_PATH
8081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8082 case $host_os in
8083 openbsd2.[89] | openbsd2.[89].*)
8084 shlibpath_overrides_runpath=no
8087 shlibpath_overrides_runpath=yes
8089 esac
8090 else
8091 shlibpath_overrides_runpath=yes
8095 os2*)
8096 libname_spec='$name'
8097 shrext_cmds=".dll"
8098 need_lib_prefix=no
8099 library_names_spec='$libname${shared_ext} $libname.a'
8100 dynamic_linker='OS/2 ld.exe'
8101 shlibpath_var=LIBPATH
8104 osf3* | osf4* | osf5*)
8105 version_type=osf
8106 need_lib_prefix=no
8107 need_version=no
8108 soname_spec='${libname}${release}${shared_ext}$major'
8109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8110 shlibpath_var=LD_LIBRARY_PATH
8111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8115 sco3.2v5*)
8116 version_type=osf
8117 soname_spec='${libname}${release}${shared_ext}$major'
8118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8119 shlibpath_var=LD_LIBRARY_PATH
8122 solaris*)
8123 version_type=linux
8124 need_lib_prefix=no
8125 need_version=no
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8127 soname_spec='${libname}${release}${shared_ext}$major'
8128 shlibpath_var=LD_LIBRARY_PATH
8129 shlibpath_overrides_runpath=yes
8130 hardcode_into_libs=yes
8131 # ldd complains unless libraries are executable
8132 postinstall_cmds='chmod +x $lib'
8135 sunos4*)
8136 version_type=sunos
8137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8138 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8139 shlibpath_var=LD_LIBRARY_PATH
8140 shlibpath_overrides_runpath=yes
8141 if test "$with_gnu_ld" = yes; then
8142 need_lib_prefix=no
8144 need_version=yes
8147 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8148 version_type=linux
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8150 soname_spec='${libname}${release}${shared_ext}$major'
8151 shlibpath_var=LD_LIBRARY_PATH
8152 case $host_vendor in
8153 sni)
8154 shlibpath_overrides_runpath=no
8155 need_lib_prefix=no
8156 export_dynamic_flag_spec='${wl}-Blargedynsym'
8157 runpath_var=LD_RUN_PATH
8159 siemens)
8160 need_lib_prefix=no
8162 motorola)
8163 need_lib_prefix=no
8164 need_version=no
8165 shlibpath_overrides_runpath=no
8166 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8168 esac
8171 sysv4*MP*)
8172 if test -d /usr/nec ;then
8173 version_type=linux
8174 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8175 soname_spec='$libname${shared_ext}.$major'
8176 shlibpath_var=LD_LIBRARY_PATH
8180 uts4*)
8181 version_type=linux
8182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8183 soname_spec='${libname}${release}${shared_ext}$major'
8184 shlibpath_var=LD_LIBRARY_PATH
8188 dynamic_linker=no
8190 esac
8191 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8192 echo "${ECHO_T}$dynamic_linker" >&6
8193 test "$dynamic_linker" = no && can_build_shared=no
8195 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8196 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8197 hardcode_action=
8198 if test -n "$hardcode_libdir_flag_spec" || \
8199 test -n "$runpath_var" || \
8200 test "X$hardcode_automatic" = "Xyes" ; then
8202 # We can hardcode non-existant directories.
8203 if test "$hardcode_direct" != no &&
8204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8205 # have to relink, otherwise we might link with an installed library
8206 # when we should be linking with a yet-to-be-installed one
8207 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8208 test "$hardcode_minus_L" != no; then
8209 # Linking always hardcodes the temporary library directory.
8210 hardcode_action=relink
8211 else
8212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8213 hardcode_action=immediate
8215 else
8216 # We cannot hardcode anything, or else we can only hardcode existing
8217 # directories.
8218 hardcode_action=unsupported
8220 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8221 echo "${ECHO_T}$hardcode_action" >&6
8223 if test "$hardcode_action" = relink; then
8224 # Fast installation is not supported
8225 enable_fast_install=no
8226 elif test "$shlibpath_overrides_runpath" = yes ||
8227 test "$enable_shared" = no; then
8228 # Fast installation is not necessary
8229 enable_fast_install=needless
8232 striplib=
8233 old_striplib=
8234 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8235 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8236 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8237 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8238 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8239 echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8241 else
8242 # FIXME - insert some real tests, host_os isn't really good enough
8243 case $host_os in
8244 darwin*)
8245 if test -n "$STRIP" ; then
8246 striplib="$STRIP -x"
8247 echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249 else
8250 echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8258 esac
8261 if test "x$enable_dlopen" != xyes; then
8262 enable_dlopen=unknown
8263 enable_dlopen_self=unknown
8264 enable_dlopen_self_static=unknown
8265 else
8266 lt_cv_dlopen=no
8267 lt_cv_dlopen_libs=
8269 case $host_os in
8270 beos*)
8271 lt_cv_dlopen="load_add_on"
8272 lt_cv_dlopen_libs=
8273 lt_cv_dlopen_self=yes
8276 mingw* | pw32*)
8277 lt_cv_dlopen="LoadLibrary"
8278 lt_cv_dlopen_libs=
8281 cygwin*)
8282 lt_cv_dlopen="dlopen"
8283 lt_cv_dlopen_libs=
8286 darwin*)
8287 # if libdl is installed we need to link against it
8288 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8289 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8290 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293 ac_check_lib_save_LIBS=$LIBS
8294 LIBS="-ldl $LIBS"
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8308 char dlopen ();
8310 main ()
8312 dlopen ();
8314 return 0;
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_lib_dl_dlopen=yes
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_lib_dl_dlopen=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_lib_save_LIBS
8350 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8351 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8352 if test $ac_cv_lib_dl_dlopen = yes; then
8353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8354 else
8356 lt_cv_dlopen="dyld"
8357 lt_cv_dlopen_libs=
8358 lt_cv_dlopen_self=yes
8365 echo "$as_me:$LINENO: checking for shl_load" >&5
8366 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8367 if test "${ac_cv_func_shl_load+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8378 #define shl_load innocuous_shl_load
8380 /* System header to define __stub macros and hopefully few prototypes,
8381 which can conflict with char shl_load (); below.
8382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8383 <limits.h> exists even on freestanding compilers. */
8385 #ifdef __STDC__
8386 # include <limits.h>
8387 #else
8388 # include <assert.h>
8389 #endif
8391 #undef shl_load
8393 /* Override any gcc2 internal prototype to avoid an error. */
8394 #ifdef __cplusplus
8395 extern "C"
8397 #endif
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8400 char shl_load ();
8401 /* The GNU C library defines this for functions which it implements
8402 to always fail with ENOSYS. Some functions are actually named
8403 something starting with __ and the normal name is an alias. */
8404 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8405 choke me
8406 #else
8407 char (*f) () = shl_load;
8408 #endif
8409 #ifdef __cplusplus
8411 #endif
8414 main ()
8416 return f != shl_load;
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_func_shl_load=yes
8444 else
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_func_shl_load=no
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8453 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8454 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8455 if test $ac_cv_func_shl_load = yes; then
8456 lt_cv_dlopen="shl_load"
8457 else
8458 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8459 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8460 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 ac_check_lib_save_LIBS=$LIBS
8464 LIBS="-ldld $LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8472 /* Override any gcc2 internal prototype to avoid an error. */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8478 char shl_load ();
8480 main ()
8482 shl_load ();
8484 return 0;
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_lib_dld_shl_load=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_lib_dld_shl_load=no
8516 rm -f conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8520 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8522 if test $ac_cv_lib_dld_shl_load = yes; then
8523 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8524 else
8525 echo "$as_me:$LINENO: checking for dlopen" >&5
8526 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8527 if test "${ac_cv_func_dlopen+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h. */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8538 #define dlopen innocuous_dlopen
8540 /* System header to define __stub macros and hopefully few prototypes,
8541 which can conflict with char dlopen (); below.
8542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8543 <limits.h> exists even on freestanding compilers. */
8545 #ifdef __STDC__
8546 # include <limits.h>
8547 #else
8548 # include <assert.h>
8549 #endif
8551 #undef dlopen
8553 /* Override any gcc2 internal prototype to avoid an error. */
8554 #ifdef __cplusplus
8555 extern "C"
8557 #endif
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char dlopen ();
8561 /* The GNU C library defines this for functions which it implements
8562 to always fail with ENOSYS. Some functions are actually named
8563 something starting with __ and the normal name is an alias. */
8564 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8565 choke me
8566 #else
8567 char (*f) () = dlopen;
8568 #endif
8569 #ifdef __cplusplus
8571 #endif
8574 main ()
8576 return f != dlopen;
8578 return 0;
8580 _ACEOF
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583 (eval $ac_link) 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag"
8591 || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest$ac_exeext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_cv_func_dlopen=yes
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_cv_func_dlopen=no
8610 rm -f conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8615 if test $ac_cv_func_dlopen = yes; then
8616 lt_cv_dlopen="dlopen"
8617 else
8618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 ac_check_lib_save_LIBS=$LIBS
8624 LIBS="-ldl $LIBS"
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char dlopen ();
8640 main ()
8642 dlopen ();
8644 return 0;
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_dl_dlopen=yes
8670 else
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_lib_dl_dlopen=no
8676 rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8681 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8682 if test $ac_cv_lib_dl_dlopen = yes; then
8683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8684 else
8685 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8686 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8687 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 ac_check_lib_save_LIBS=$LIBS
8691 LIBS="-lsvld $LIBS"
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8705 char dlopen ();
8707 main ()
8709 dlopen ();
8711 return 0;
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_svld_dlopen=yes
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_svld_dlopen=no
8743 rm -f conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8748 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8749 if test $ac_cv_lib_svld_dlopen = yes; then
8750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8751 else
8752 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8753 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8754 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 ac_check_lib_save_LIBS=$LIBS
8758 LIBS="-ldld $LIBS"
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8766 /* Override any gcc2 internal prototype to avoid an error. */
8767 #ifdef __cplusplus
8768 extern "C"
8769 #endif
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772 char dld_link ();
8774 main ()
8776 dld_link ();
8778 return 0;
8780 _ACEOF
8781 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8783 (eval $ac_link) 2>conftest.er1
8784 ac_status=$?
8785 grep -v '^ *+' conftest.er1 >conftest.err
8786 rm -f conftest.er1
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try='test -z "$ac_c_werror_flag"
8791 || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest$ac_exeext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_cv_lib_dld_dld_link=yes
8804 else
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_cv_lib_dld_dld_link=no
8810 rm -f conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_lib_save_LIBS
8814 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8815 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8816 if test $ac_cv_lib_dld_dld_link = yes; then
8817 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8836 esac
8838 if test "x$lt_cv_dlopen" != xno; then
8839 enable_dlopen=yes
8840 else
8841 enable_dlopen=no
8844 case $lt_cv_dlopen in
8845 dlopen)
8846 save_CPPFLAGS="$CPPFLAGS"
8847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8849 save_LDFLAGS="$LDFLAGS"
8850 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8852 save_LIBS="$LIBS"
8853 LIBS="$lt_cv_dlopen_libs $LIBS"
8855 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8856 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8857 if test "${lt_cv_dlopen_self+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 if test "$cross_compiling" = yes; then :
8861 lt_cv_dlopen_self=cross
8862 else
8863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8864 lt_status=$lt_dlunknown
8865 cat > conftest.$ac_ext <<EOF
8866 #line 8866 "configure"
8867 #include "confdefs.h"
8869 #if HAVE_DLFCN_H
8870 #include <dlfcn.h>
8871 #endif
8873 #include <stdio.h>
8875 #ifdef RTLD_GLOBAL
8876 # define LT_DLGLOBAL RTLD_GLOBAL
8877 #else
8878 # ifdef DL_GLOBAL
8879 # define LT_DLGLOBAL DL_GLOBAL
8880 # else
8881 # define LT_DLGLOBAL 0
8882 # endif
8883 #endif
8885 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8886 find out it does not work in some platform. */
8887 #ifndef LT_DLLAZY_OR_NOW
8888 # ifdef RTLD_LAZY
8889 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8890 # else
8891 # ifdef DL_LAZY
8892 # define LT_DLLAZY_OR_NOW DL_LAZY
8893 # else
8894 # ifdef RTLD_NOW
8895 # define LT_DLLAZY_OR_NOW RTLD_NOW
8896 # else
8897 # ifdef DL_NOW
8898 # define LT_DLLAZY_OR_NOW DL_NOW
8899 # else
8900 # define LT_DLLAZY_OR_NOW 0
8901 # endif
8902 # endif
8903 # endif
8904 # endif
8905 #endif
8907 #ifdef __cplusplus
8908 extern "C" void exit (int);
8909 #endif
8911 void fnord() { int i=42;}
8912 int main ()
8914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8915 int status = $lt_dlunknown;
8917 if (self)
8919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8920 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8921 /* dlclose (self); */
8924 exit (status);
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8932 (./conftest; exit; ) 2>/dev/null
8933 lt_status=$?
8934 case x$lt_status in
8935 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8936 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8937 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8938 esac
8939 else :
8940 # compilation failed
8941 lt_cv_dlopen_self=no
8944 rm -fr conftest*
8948 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8949 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8951 if test "x$lt_cv_dlopen_self" = xyes; then
8952 LDFLAGS="$LDFLAGS $link_static_flag"
8953 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8954 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8955 if test "${lt_cv_dlopen_self_static+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958 if test "$cross_compiling" = yes; then :
8959 lt_cv_dlopen_self_static=cross
8960 else
8961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8962 lt_status=$lt_dlunknown
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8964 "configure"
8965 #include "confdefs.h"
8967 #if HAVE_DLFCN_H
8968 #include <dlfcn.h>
8969 #endif
8971 #include <stdio.h>
8973 #ifdef RTLD_GLOBAL
8974 # define LT_DLGLOBAL RTLD_GLOBAL
8975 #else
8976 # ifdef DL_GLOBAL
8977 # define LT_DLGLOBAL DL_GLOBAL
8978 # else
8979 # define LT_DLGLOBAL 0
8980 # endif
8981 #endif
8983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8984 find out it does not work in some platform. */
8985 #ifndef LT_DLLAZY_OR_NOW
8986 # ifdef RTLD_LAZY
8987 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8988 # else
8989 # ifdef DL_LAZY
8990 # define LT_DLLAZY_OR_NOW DL_LAZY
8991 # else
8992 # ifdef RTLD_NOW
8993 # define LT_DLLAZY_OR_NOW RTLD_NOW
8994 # else
8995 # ifdef DL_NOW
8996 # define LT_DLLAZY_OR_NOW DL_NOW
8997 # else
8998 # define LT_DLLAZY_OR_NOW 0
8999 # endif
9000 # endif
9001 # endif
9002 # endif
9003 #endif
9005 #ifdef __cplusplus
9006 extern "C" void exit (int);
9007 #endif
9009 void fnord() { int i=42;}
9010 int main ()
9012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9013 int status = $lt_dlunknown;
9015 if (self)
9017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9018 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9019 /* dlclose (self); */
9022 exit (status);
9025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9026 (eval $ac_link) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9030 (./conftest; exit; ) 2>/dev/null
9031 lt_status=$?
9032 case x$lt_status in
9033 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9034 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9035 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9036 esac
9037 else :
9038 # compilation failed
9039 lt_cv_dlopen_self_static=no
9042 rm -fr conftest*
9046 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9047 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9050 CPPFLAGS="$save_CPPFLAGS"
9051 LDFLAGS="$save_LDFLAGS"
9052 LIBS="$save_LIBS"
9054 esac
9056 case $lt_cv_dlopen_self in
9057 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9058 *) enable_dlopen_self=unknown ;;
9059 esac
9061 case $lt_cv_dlopen_self_static in
9062 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9063 *) enable_dlopen_self_static=unknown ;;
9064 esac
9068 # Report which librarie types wil actually be built
9069 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9070 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9071 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9072 echo "${ECHO_T}$can_build_shared" >&6
9074 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9075 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9076 test "$can_build_shared" = "no" && enable_shared=no
9078 # On AIX, shared libraries and static libraries use the same namespace, and
9079 # are all built from PIC.
9080 case "$host_os" in
9081 aix3*)
9082 test "$enable_shared" = yes && enable_static=no
9083 if test -n "$RANLIB"; then
9084 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9085 postinstall_cmds='$RANLIB $lib'
9089 aix4* | aix5*)
9090 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9091 test "$enable_shared" = yes && enable_static=no
9094 esac
9095 echo "$as_me:$LINENO: result: $enable_shared" >&5
9096 echo "${ECHO_T}$enable_shared" >&6
9098 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9099 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9100 # Make sure either enable_shared or enable_static is yes.
9101 test "$enable_shared" = yes || enable_static=yes
9102 echo "$as_me:$LINENO: result: $enable_static" >&5
9103 echo "${ECHO_T}$enable_static" >&6
9105 # The else clause should only fire when bootstrapping the
9106 # libtool distribution, otherwise you forgot to ship ltmain.sh
9107 # with your package, and you will get complaints that there are
9108 # no rules to generate ltmain.sh.
9109 if test -f "$ltmain"; then
9110 # See if we are running on zsh, and set the options which allow our commands through
9111 # without removal of \ escapes.
9112 if test -n "${ZSH_VERSION+set}" ; then
9113 setopt NO_GLOB_SUBST
9115 # Now quote all the things that may contain metacharacters while being
9116 # careful not to overquote the AC_SUBSTed values. We take copies of the
9117 # variables and quote the copies for generation of the libtool script.
9118 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9119 SED SHELL STRIP \
9120 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9121 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9122 deplibs_check_method reload_flag reload_cmds need_locks \
9123 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9124 lt_cv_sys_global_symbol_to_c_name_address \
9125 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9126 old_postinstall_cmds old_postuninstall_cmds \
9127 compiler \
9128 CC \
9129 LD \
9130 lt_prog_compiler_wl \
9131 lt_prog_compiler_pic \
9132 lt_prog_compiler_static \
9133 lt_prog_compiler_no_builtin_flag \
9134 export_dynamic_flag_spec \
9135 thread_safe_flag_spec \
9136 whole_archive_flag_spec \
9137 enable_shared_with_static_runtimes \
9138 old_archive_cmds \
9139 old_archive_from_new_cmds \
9140 predep_objects \
9141 postdep_objects \
9142 predeps \
9143 postdeps \
9144 compiler_lib_search_path \
9145 archive_cmds \
9146 archive_expsym_cmds \
9147 postinstall_cmds \
9148 postuninstall_cmds \
9149 old_archive_from_expsyms_cmds \
9150 allow_undefined_flag \
9151 no_undefined_flag \
9152 export_symbols_cmds \
9153 hardcode_libdir_flag_spec \
9154 hardcode_libdir_flag_spec_ld \
9155 hardcode_libdir_separator \
9156 hardcode_automatic \
9157 module_cmds \
9158 module_expsym_cmds \
9159 lt_cv_prog_compiler_c_o \
9160 exclude_expsyms \
9161 include_expsyms; do
9163 case $var in
9164 old_archive_cmds | \
9165 old_archive_from_new_cmds | \
9166 archive_cmds | \
9167 archive_expsym_cmds | \
9168 module_cmds | \
9169 module_expsym_cmds | \
9170 old_archive_from_expsyms_cmds | \
9171 export_symbols_cmds | \
9172 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9173 postinstall_cmds | postuninstall_cmds | \
9174 old_postinstall_cmds | old_postuninstall_cmds | \
9175 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9176 # Double-quote double-evaled strings.
9177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9182 esac
9183 done
9185 case $lt_echo in
9186 *'\$0 --fallback-echo"')
9187 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9189 esac
9191 cfgfile="${ofile}T"
9192 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9193 $rm -f "$cfgfile"
9194 { echo "$as_me:$LINENO: creating $ofile" >&5
9195 echo "$as_me: creating $ofile" >&6;}
9197 cat <<__EOF__ >> "$cfgfile"
9198 #! $SHELL
9200 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9201 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9202 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9204 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9205 # Free Software Foundation, Inc.
9207 # This file is part of GNU Libtool:
9208 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9210 # This program is free software; you can redistribute it and/or modify
9211 # it under the terms of the GNU General Public License as published by
9212 # the Free Software Foundation; either version 2 of the License, or
9213 # (at your option) any later version.
9215 # This program is distributed in the hope that it will be useful, but
9216 # WITHOUT ANY WARRANTY; without even the implied warranty of
9217 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9218 # General Public License for more details.
9220 # You should have received a copy of the GNU General Public License
9221 # along with this program; if not, write to the Free Software
9222 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9224 # As a special exception to the GNU General Public License, if you
9225 # distribute this file as part of a program that contains a
9226 # configuration script generated by Autoconf, you may include it under
9227 # the same distribution terms that you use for the rest of that program.
9229 # A sed program that does not truncate output.
9230 SED=$lt_SED
9232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9233 Xsed="$SED -e 1s/^X//"
9235 # The HP-UX ksh and POSIX shell print the target directory to stdout
9236 # if CDPATH is set.
9237 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9239 # The names of the tagged configurations supported by this script.
9240 available_tags=
9242 # ### BEGIN LIBTOOL CONFIG
9244 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9246 # Shell to use when invoking shell scripts.
9247 SHELL=$lt_SHELL
9249 # Whether or not to build shared libraries.
9250 build_libtool_libs=$enable_shared
9252 # Whether or not to build static libraries.
9253 build_old_libs=$enable_static
9255 # Whether or not to add -lc for building shared libraries.
9256 build_libtool_need_lc=$archive_cmds_need_lc
9258 # Whether or not to disallow shared libs when runtime libs are static
9259 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9261 # Whether or not to optimize for fast installation.
9262 fast_install=$enable_fast_install
9264 # The host system.
9265 host_alias=$host_alias
9266 host=$host
9267 host_os=$host_os
9269 # The build system.
9270 build_alias=$build_alias
9271 build=$build
9272 build_os=$build_os
9274 # An echo program that does not interpret backslashes.
9275 echo=$lt_echo
9277 # The archiver.
9278 AR=$lt_AR
9279 AR_FLAGS=$lt_AR_FLAGS
9281 # A C compiler.
9282 LTCC=$lt_LTCC
9284 # A language-specific compiler.
9285 CC=$lt_compiler
9287 # Is the compiler the GNU C compiler?
9288 with_gcc=$GCC
9290 # An ERE matcher.
9291 EGREP=$lt_EGREP
9293 # The linker used to build libraries.
9294 LD=$lt_LD
9296 # Whether we need hard or soft links.
9297 LN_S=$lt_LN_S
9299 # A BSD-compatible nm program.
9300 NM=$lt_NM
9302 # A symbol stripping program
9303 STRIP=$lt_STRIP
9305 # Used to examine libraries when file_magic_cmd begins "file"
9306 MAGIC_CMD=$MAGIC_CMD
9308 # Used on cygwin: DLL creation program.
9309 DLLTOOL="$DLLTOOL"
9311 # Used on cygwin: object dumper.
9312 OBJDUMP="$OBJDUMP"
9314 # Used on cygwin: assembler.
9315 AS="$AS"
9317 # The name of the directory that contains temporary libtool files.
9318 objdir=$objdir
9320 # How to create reloadable object files.
9321 reload_flag=$lt_reload_flag
9322 reload_cmds=$lt_reload_cmds
9324 # How to pass a linker flag through the compiler.
9325 wl=$lt_lt_prog_compiler_wl
9327 # Object file suffix (normally "o").
9328 objext="$ac_objext"
9330 # Old archive suffix (normally "a").
9331 libext="$libext"
9333 # Shared library suffix (normally ".so").
9334 shrext_cmds='$shrext_cmds'
9336 # Executable file suffix (normally "").
9337 exeext="$exeext"
9339 # Additional compiler flags for building library objects.
9340 pic_flag=$lt_lt_prog_compiler_pic
9341 pic_mode=$pic_mode
9343 # What is the maximum length of a command?
9344 max_cmd_len=$lt_cv_sys_max_cmd_len
9346 # Does compiler simultaneously support -c and -o options?
9347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9349 # Must we lock files when doing compilation?
9350 need_locks=$lt_need_locks
9352 # Do we need the lib prefix for modules?
9353 need_lib_prefix=$need_lib_prefix
9355 # Do we need a version for libraries?
9356 need_version=$need_version
9358 # Whether dlopen is supported.
9359 dlopen_support=$enable_dlopen
9361 # Whether dlopen of programs is supported.
9362 dlopen_self=$enable_dlopen_self
9364 # Whether dlopen of statically linked programs is supported.
9365 dlopen_self_static=$enable_dlopen_self_static
9367 # Compiler flag to prevent dynamic linking.
9368 link_static_flag=$lt_lt_prog_compiler_static
9370 # Compiler flag to turn off builtin functions.
9371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9373 # Compiler flag to allow reflexive dlopens.
9374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9376 # Compiler flag to generate shared objects directly from archives.
9377 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9379 # Compiler flag to generate thread-safe objects.
9380 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9382 # Library versioning type.
9383 version_type=$version_type
9385 # Format of library name prefix.
9386 libname_spec=$lt_libname_spec
9388 # List of archive names. First name is the real one, the rest are links.
9389 # The last name is the one that the linker finds with -lNAME.
9390 library_names_spec=$lt_library_names_spec
9392 # The coded name of the library, if different from the real name.
9393 soname_spec=$lt_soname_spec
9395 # Commands used to build and install an old-style archive.
9396 RANLIB=$lt_RANLIB
9397 old_archive_cmds=$lt_old_archive_cmds
9398 old_postinstall_cmds=$lt_old_postinstall_cmds
9399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9401 # Create an old-style archive from a shared archive.
9402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9404 # Create a temporary old-style archive to link instead of a shared archive.
9405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9407 # Commands used to build and install a shared archive.
9408 archive_cmds=$lt_archive_cmds
9409 archive_expsym_cmds=$lt_archive_expsym_cmds
9410 postinstall_cmds=$lt_postinstall_cmds
9411 postuninstall_cmds=$lt_postuninstall_cmds
9413 # Commands used to build a loadable module (assumed same as above if empty)
9414 module_cmds=$lt_module_cmds
9415 module_expsym_cmds=$lt_module_expsym_cmds
9417 # Commands to strip libraries.
9418 old_striplib=$lt_old_striplib
9419 striplib=$lt_striplib
9421 # Dependencies to place before the objects being linked to create a
9422 # shared library.
9423 predep_objects=$lt_predep_objects
9425 # Dependencies to place after the objects being linked to create a
9426 # shared library.
9427 postdep_objects=$lt_postdep_objects
9429 # Dependencies to place before the objects being linked to create a
9430 # shared library.
9431 predeps=$lt_predeps
9433 # Dependencies to place after the objects being linked to create a
9434 # shared library.
9435 postdeps=$lt_postdeps
9437 # The library search path used internally by the compiler when linking
9438 # a shared library.
9439 compiler_lib_search_path=$lt_compiler_lib_search_path
9441 # Method to check whether dependent libraries are shared objects.
9442 deplibs_check_method=$lt_deplibs_check_method
9444 # Command to use when deplibs_check_method == file_magic.
9445 file_magic_cmd=$lt_file_magic_cmd
9447 # Flag that allows shared libraries with undefined symbols to be built.
9448 allow_undefined_flag=$lt_allow_undefined_flag
9450 # Flag that forces no undefined symbols.
9451 no_undefined_flag=$lt_no_undefined_flag
9453 # Commands used to finish a libtool library installation in a directory.
9454 finish_cmds=$lt_finish_cmds
9456 # Same as above, but a single script fragment to be evaled but not shown.
9457 finish_eval=$lt_finish_eval
9459 # Take the output of nm and produce a listing of raw symbols and C names.
9460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9462 # Transform the output of nm in a proper C declaration
9463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9465 # Transform the output of nm in a C name address pair
9466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9468 # This is the shared library runtime path variable.
9469 runpath_var=$runpath_var
9471 # This is the shared library path variable.
9472 shlibpath_var=$shlibpath_var
9474 # Is shlibpath searched before the hard-coded library search path?
9475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9477 # How to hardcode a shared library path into an executable.
9478 hardcode_action=$hardcode_action
9480 # Whether we should hardcode library paths into libraries.
9481 hardcode_into_libs=$hardcode_into_libs
9483 # Flag to hardcode \$libdir into a binary during linking.
9484 # This must work even if \$libdir does not exist.
9485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9487 # If ld is used when linking, flag to hardcode \$libdir into
9488 # a binary during linking. This must work even if \$libdir does
9489 # not exist.
9490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9492 # Whether we need a single -rpath flag with a separated argument.
9493 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9496 # resulting binary.
9497 hardcode_direct=$hardcode_direct
9499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9500 # resulting binary.
9501 hardcode_minus_L=$hardcode_minus_L
9503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9504 # the resulting binary.
9505 hardcode_shlibpath_var=$hardcode_shlibpath_var
9507 # Set to yes if building a shared library automatically hardcodes DIR into the library
9508 # and all subsequent libraries and executables linked against it.
9509 hardcode_automatic=$hardcode_automatic
9511 # Variables whose values should be saved in libtool wrapper scripts and
9512 # restored at relink time.
9513 variables_saved_for_relink="$variables_saved_for_relink"
9515 # Whether libtool must link a program against all its dependency libraries.
9516 link_all_deplibs=$link_all_deplibs
9518 # Compile-time system search path for libraries
9519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9521 # Run-time system search path for libraries
9522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9524 # Fix the shell variable \$srcfile for the compiler.
9525 fix_srcfile_path="$fix_srcfile_path"
9527 # Set to yes if exported symbols are required.
9528 always_export_symbols=$always_export_symbols
9530 # The commands to list exported symbols.
9531 export_symbols_cmds=$lt_export_symbols_cmds
9533 # The commands to extract the exported symbol list from a shared archive.
9534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9536 # Symbols that should not be listed in the preloaded symbols.
9537 exclude_expsyms=$lt_exclude_expsyms
9539 # Symbols that must always be exported.
9540 include_expsyms=$lt_include_expsyms
9542 # ### END LIBTOOL CONFIG
9544 __EOF__
9547 case $host_os in
9548 aix3*)
9549 cat <<\EOF >> "$cfgfile"
9551 # AIX sometimes has problems with the GCC collect2 program. For some
9552 # reason, if we set the COLLECT_NAMES environment variable, the problems
9553 # vanish in a puff of smoke.
9554 if test "X${COLLECT_NAMES+set}" != Xset; then
9555 COLLECT_NAMES=
9556 export COLLECT_NAMES
9560 esac
9562 # We use sed instead of cat because bash on DJGPP gets confused if
9563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9564 # text mode, it properly converts lines to CR/LF. This bash problem
9565 # is reportedly fixed, but why not run on old versions too?
9566 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9568 mv -f "$cfgfile" "$ofile" || \
9569 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9570 chmod +x "$ofile"
9572 else
9573 # If there is no Makefile yet, we rely on a make rule to execute
9574 # `config.status --recheck' to rerun these tests and create the
9575 # libtool script then.
9576 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9577 if test -f "$ltmain_in"; then
9578 test -f Makefile && make "$ltmain"
9583 ac_ext=c
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9589 CC="$lt_save_CC"
9592 # Check whether --with-tags or --without-tags was given.
9593 if test "${with_tags+set}" = set; then
9594 withval="$with_tags"
9595 tagnames="$withval"
9598 if test -f "$ltmain" && test -n "$tagnames"; then
9599 if test ! -f "${ofile}"; then
9600 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9601 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9604 if test -z "$LTCC"; then
9605 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9606 if test -z "$LTCC"; then
9607 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9608 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9609 else
9610 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9611 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9615 # Extract list of available tagged configurations in $ofile.
9616 # Note that this assumes the entire list is on one line.
9617 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9620 for tagname in $tagnames; do
9621 IFS="$lt_save_ifs"
9622 # Check whether tagname contains only valid characters
9623 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9624 "") ;;
9625 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9626 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9627 { (exit 1); exit 1; }; }
9629 esac
9631 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9632 then
9633 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9634 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9635 { (exit 1); exit 1; }; }
9638 # Update the list of available tags.
9639 if test -n "$tagname"; then
9640 echo appending configuration tag \"$tagname\" to $ofile
9642 case $tagname in
9643 CXX)
9644 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9645 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9646 (test "X$CXX" != "Xg++"))) ; then
9647 ac_ext=cc
9648 ac_cpp='$CXXCPP $CPPFLAGS'
9649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9656 archive_cmds_need_lc_CXX=no
9657 allow_undefined_flag_CXX=
9658 always_export_symbols_CXX=no
9659 archive_expsym_cmds_CXX=
9660 export_dynamic_flag_spec_CXX=
9661 hardcode_direct_CXX=no
9662 hardcode_libdir_flag_spec_CXX=
9663 hardcode_libdir_flag_spec_ld_CXX=
9664 hardcode_libdir_separator_CXX=
9665 hardcode_minus_L_CXX=no
9666 hardcode_automatic_CXX=no
9667 module_cmds_CXX=
9668 module_expsym_cmds_CXX=
9669 link_all_deplibs_CXX=unknown
9670 old_archive_cmds_CXX=$old_archive_cmds
9671 no_undefined_flag_CXX=
9672 whole_archive_flag_spec_CXX=
9673 enable_shared_with_static_runtimes_CXX=no
9675 # Dependencies to place before and after the object being linked:
9676 predep_objects_CXX=
9677 postdep_objects_CXX=
9678 predeps_CXX=
9679 postdeps_CXX=
9680 compiler_lib_search_path_CXX=
9682 # Source file extension for C++ test sources.
9683 ac_ext=cc
9685 # Object file extension for compiled C++ test sources.
9686 objext=o
9687 objext_CXX=$objext
9689 # Code to be used in simple compile tests
9690 lt_simple_compile_test_code="int some_variable = 0;\n"
9692 # Code to be used in simple link tests
9693 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9695 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9697 # If no C compiler was specified, use CC.
9698 LTCC=${LTCC-"$CC"}
9700 # Allow CC to be a program name with arguments.
9701 compiler=$CC
9704 # save warnings/boilerplate of simple test code
9705 ac_outfile=conftest.$ac_objext
9706 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9708 _lt_compiler_boilerplate=`cat conftest.err`
9709 $rm conftest*
9711 ac_outfile=conftest.$ac_objext
9712 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9714 _lt_linker_boilerplate=`cat conftest.err`
9715 $rm conftest*
9718 # Allow CC to be a program name with arguments.
9719 lt_save_CC=$CC
9720 lt_save_LD=$LD
9721 lt_save_GCC=$GCC
9722 GCC=$GXX
9723 lt_save_with_gnu_ld=$with_gnu_ld
9724 lt_save_path_LD=$lt_cv_path_LD
9725 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9726 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9727 else
9728 unset lt_cv_prog_gnu_ld
9730 if test -n "${lt_cv_path_LDCXX+set}"; then
9731 lt_cv_path_LD=$lt_cv_path_LDCXX
9732 else
9733 unset lt_cv_path_LD
9735 test -z "${LDCXX+set}" || LD=$LDCXX
9736 CC=${CXX-"c++"}
9737 compiler=$CC
9738 compiler_CXX=$CC
9739 for cc_temp in $compiler""; do
9740 case $cc_temp in
9741 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9742 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9743 \-*) ;;
9744 *) break;;
9745 esac
9746 done
9747 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9750 # We don't want -fno-exception wen compiling C++ code, so set the
9751 # no_builtin_flag separately
9752 if test "$GXX" = yes; then
9753 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9754 else
9755 lt_prog_compiler_no_builtin_flag_CXX=
9758 if test "$GXX" = yes; then
9759 # Set up default GNU C++ configuration
9762 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9763 if test "${with_gnu_ld+set}" = set; then
9764 withval="$with_gnu_ld"
9765 test "$withval" = no || with_gnu_ld=yes
9766 else
9767 with_gnu_ld=no
9769 ac_prog=ld
9770 if test "$GCC" = yes; then
9771 # Check if gcc -print-prog-name=ld gives a path.
9772 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9773 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9774 case $host in
9775 *-*-mingw*)
9776 # gcc leaves a trailing carriage return which upsets mingw
9777 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9779 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9780 esac
9781 case $ac_prog in
9782 # Accept absolute paths.
9783 [\\/]* | ?:[\\/]*)
9784 re_direlt='/[^/][^/]*/\.\./'
9785 # Canonicalize the pathname of ld
9786 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9787 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9788 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9789 done
9790 test -z "$LD" && LD="$ac_prog"
9793 # If it fails, then pretend we aren't using GCC.
9794 ac_prog=ld
9797 # If it is relative, then search for the first ld in PATH.
9798 with_gnu_ld=unknown
9800 esac
9801 elif test "$with_gnu_ld" = yes; then
9802 echo "$as_me:$LINENO: checking for GNU ld" >&5
9803 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9804 else
9805 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9806 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9808 if test "${lt_cv_path_LD+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811 if test -z "$LD"; then
9812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9813 for ac_dir in $PATH; do
9814 IFS="$lt_save_ifs"
9815 test -z "$ac_dir" && ac_dir=.
9816 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9817 lt_cv_path_LD="$ac_dir/$ac_prog"
9818 # Check to see if the program is GNU ld. I'd rather use --version,
9819 # but apparently some GNU ld's only accept -v.
9820 # Break only if it was the GNU/non-GNU ld that we prefer.
9821 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9822 *GNU* | *'with BFD'*)
9823 test "$with_gnu_ld" != no && break
9826 test "$with_gnu_ld" != yes && break
9828 esac
9830 done
9831 IFS="$lt_save_ifs"
9832 else
9833 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9837 LD="$lt_cv_path_LD"
9838 if test -n "$LD"; then
9839 echo "$as_me:$LINENO: result: $LD" >&5
9840 echo "${ECHO_T}$LD" >&6
9841 else
9842 echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9845 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9846 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9847 { (exit 1); exit 1; }; }
9848 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9849 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9850 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9854 case `$LD -v 2>&1 </dev/null` in
9855 *GNU* | *'with BFD'*)
9856 lt_cv_prog_gnu_ld=yes
9859 lt_cv_prog_gnu_ld=no
9861 esac
9863 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9864 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9865 with_gnu_ld=$lt_cv_prog_gnu_ld
9869 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9870 # archiving commands below assume that GNU ld is being used.
9871 if test "$with_gnu_ld" = yes; then
9872 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9873 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'
9875 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9876 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9878 # If archive_cmds runs LD, not CC, wlarc should be empty
9879 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9880 # investigate it a little bit more. (MM)
9881 wlarc='${wl}'
9883 # ancient GNU ld didn't support --whole-archive et. al.
9884 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9885 grep 'no-whole-archive' > /dev/null; then
9886 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9887 else
9888 whole_archive_flag_spec_CXX=
9890 else
9891 with_gnu_ld=no
9892 wlarc=
9894 # A generic and very simple default shared library creation
9895 # command for GNU C++ for the case where it uses the native
9896 # linker, instead of GNU ld. If possible, this setting should
9897 # overridden to take advantage of the native linker features on
9898 # the platform it is being used on.
9899 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9902 # Commands to make compiler produce verbose output that lists
9903 # what "hidden" libraries, object files and flags are used when
9904 # linking a shared library.
9905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9907 else
9908 GXX=no
9909 with_gnu_ld=no
9910 wlarc=
9913 # PORTME: fill in a description of your system's C++ link characteristics
9914 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9915 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9916 ld_shlibs_CXX=yes
9917 case $host_os in
9918 aix3*)
9919 # FIXME: insert proper C++ library support
9920 ld_shlibs_CXX=no
9922 aix4* | aix5*)
9923 if test "$host_cpu" = ia64; then
9924 # On IA64, the linker does run time linking by default, so we don't
9925 # have to do anything special.
9926 aix_use_runtimelinking=no
9927 exp_sym_flag='-Bexport'
9928 no_entry_flag=""
9929 else
9930 aix_use_runtimelinking=no
9932 # Test if we are trying to use run time linking or normal
9933 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9934 # need to do runtime linking.
9935 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9936 for ld_flag in $LDFLAGS; do
9937 case $ld_flag in
9938 *-brtl*)
9939 aix_use_runtimelinking=yes
9940 break
9942 esac
9943 done
9944 esac
9946 exp_sym_flag='-bexport'
9947 no_entry_flag='-bnoentry'
9950 # When large executables or shared objects are built, AIX ld can
9951 # have problems creating the table of contents. If linking a library
9952 # or program results in "error TOC overflow" add -mminimal-toc to
9953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9956 archive_cmds_CXX=''
9957 hardcode_direct_CXX=yes
9958 hardcode_libdir_separator_CXX=':'
9959 link_all_deplibs_CXX=yes
9961 if test "$GXX" = yes; then
9962 case $host_os in aix4.[012]|aix4.[012].*)
9963 # We only want to do this on AIX 4.2 and lower, the check
9964 # below for broken collect2 doesn't work under 4.3+
9965 collect2name=`${CC} -print-prog-name=collect2`
9966 if test -f "$collect2name" && \
9967 strings "$collect2name" | grep resolve_lib_name >/dev/null
9968 then
9969 # We have reworked collect2
9970 hardcode_direct_CXX=yes
9971 else
9972 # We have old collect2
9973 hardcode_direct_CXX=unsupported
9974 # It fails to find uninstalled libraries when the uninstalled
9975 # path is not listed in the libpath. Setting hardcode_minus_L
9976 # to unsupported forces relinking
9977 hardcode_minus_L_CXX=yes
9978 hardcode_libdir_flag_spec_CXX='-L$libdir'
9979 hardcode_libdir_separator_CXX=
9981 esac
9982 shared_flag='-shared'
9983 if test "$aix_use_runtimelinking" = yes; then
9984 shared_flag="$shared_flag "'${wl}-G'
9986 else
9987 # not using gcc
9988 if test "$host_cpu" = ia64; then
9989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9990 # chokes on -Wl,-G. The following line is correct:
9991 shared_flag='-G'
9992 else
9993 if test "$aix_use_runtimelinking" = yes; then
9994 shared_flag='${wl}-G'
9995 else
9996 shared_flag='${wl}-bM:SRE'
10001 # It seems that -bexpall does not export symbols beginning with
10002 # underscore (_), so it is better to generate a list of symbols to export.
10003 always_export_symbols_CXX=yes
10004 if test "$aix_use_runtimelinking" = yes; then
10005 # Warning - without using the other runtime loading flags (-brtl),
10006 # -berok will link without error, but may produce a broken library.
10007 allow_undefined_flag_CXX='-berok'
10008 # Determine the default libpath from the value encoded in an empty executable.
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10017 main ()
10021 return 0;
10023 _ACEOF
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
10033 { ac_try='test -z "$ac_cxx_werror_flag"
10034 || test ! -s conftest.err'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10049 # Check for a 64-bit object if we didn't find anything.
10050 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; }
10051 }'`; fi
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10057 rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10061 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10063 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"
10064 else
10065 if test "$host_cpu" = ia64; then
10066 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10067 allow_undefined_flag_CXX="-z nodefs"
10068 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"
10069 else
10070 # Determine the default libpath from the value encoded in an empty executable.
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10079 main ()
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
10095 { ac_try='test -z "$ac_cxx_werror_flag"
10096 || test ! -s conftest.err'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
10109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10111 # Check for a 64-bit object if we didn't find anything.
10112 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; }
10113 }'`; fi
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10123 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10124 # Warning - without using the other run time loading flags,
10125 # -berok will link without error, but may produce a broken library.
10126 no_undefined_flag_CXX=' ${wl}-bernotok'
10127 allow_undefined_flag_CXX=' ${wl}-berok'
10128 # -bexpall does not export symbols beginning with underscore (_)
10129 always_export_symbols_CXX=yes
10130 # Exported symbols can be pulled into shared objects from archives
10131 whole_archive_flag_spec_CXX=' '
10132 archive_cmds_need_lc_CXX=yes
10133 # This is similar to how AIX traditionally builds it's shared libraries.
10134 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'
10138 chorus*)
10139 case $cc_basename in
10141 # FIXME: insert proper C++ library support
10142 ld_shlibs_CXX=no
10144 esac
10148 cygwin* | mingw* | pw32*)
10149 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10150 # as there is no search path for DLLs.
10151 hardcode_libdir_flag_spec_CXX='-L$libdir'
10152 allow_undefined_flag_CXX=unsupported
10153 always_export_symbols_CXX=no
10154 enable_shared_with_static_runtimes_CXX=yes
10156 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10157 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'
10158 # If the export-symbols file already is a .def file (1st line
10159 # is EXPORTS), use it as is; otherwise, prepend...
10160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10161 cp $export_symbols $output_objdir/$soname.def;
10162 else
10163 echo EXPORTS > $output_objdir/$soname.def;
10164 cat $export_symbols >> $output_objdir/$soname.def;
10166 $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'
10167 else
10168 ld_shlibs_CXX=no
10171 darwin* | rhapsody*)
10172 case "$host_os" in
10173 rhapsody* | darwin1.[012])
10174 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10176 *) # Darwin 1.3 on
10177 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10178 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10179 else
10180 case ${MACOSX_DEPLOYMENT_TARGET} in
10181 10.[012])
10182 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10184 10.*)
10185 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10187 esac
10190 esac
10191 archive_cmds_need_lc_CXX=no
10192 hardcode_direct_CXX=no
10193 hardcode_automatic_CXX=yes
10194 hardcode_shlibpath_var_CXX=unsupported
10195 whole_archive_flag_spec_CXX=''
10196 link_all_deplibs_CXX=yes
10198 if test "$GXX" = yes ; then
10199 lt_int_apple_cc_single_mod=no
10200 output_verbose_link_cmd='echo'
10201 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10202 lt_int_apple_cc_single_mod=yes
10204 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10205 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10206 else
10207 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10209 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10210 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10211 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10212 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}'
10213 else
10214 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10216 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10217 else
10218 case $cc_basename in
10219 xlc*)
10220 output_verbose_link_cmd='echo'
10221 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10222 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10224 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10225 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10228 ld_shlibs_CXX=no
10230 esac
10234 dgux*)
10235 case $cc_basename in
10236 ec++*)
10237 # FIXME: insert proper C++ library support
10238 ld_shlibs_CXX=no
10240 ghcx*)
10241 # Green Hills C++ Compiler
10242 # FIXME: insert proper C++ library support
10243 ld_shlibs_CXX=no
10246 # FIXME: insert proper C++ library support
10247 ld_shlibs_CXX=no
10249 esac
10251 freebsd[12]*)
10252 # C++ shared libraries reported to be fairly broken before switch to ELF
10253 ld_shlibs_CXX=no
10255 freebsd-elf*)
10256 archive_cmds_need_lc_CXX=no
10258 freebsd* | kfreebsd*-gnu | dragonfly*)
10259 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10260 # conventions
10261 ld_shlibs_CXX=yes
10263 gnu*)
10265 hpux9*)
10266 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10267 hardcode_libdir_separator_CXX=:
10268 export_dynamic_flag_spec_CXX='${wl}-E'
10269 hardcode_direct_CXX=yes
10270 hardcode_minus_L_CXX=yes # Not in the search PATH,
10271 # but as the default
10272 # location of the library.
10274 case $cc_basename in
10275 CC*)
10276 # FIXME: insert proper C++ library support
10277 ld_shlibs_CXX=no
10279 aCC*)
10280 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'
10281 # Commands to make compiler produce verbose output that lists
10282 # what "hidden" libraries, object files and flags are used when
10283 # linking a shared library.
10285 # There doesn't appear to be a way to prevent this compiler from
10286 # explicitly linking system object files so we need to strip them
10287 # from the output so that they don't get included in the library
10288 # dependencies.
10289 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'
10292 if test "$GXX" = yes; then
10293 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'
10294 else
10295 # FIXME: insert proper C++ library support
10296 ld_shlibs_CXX=no
10299 esac
10301 hpux10*|hpux11*)
10302 if test $with_gnu_ld = no; then
10303 case "$host_cpu" in
10304 hppa*64*)
10305 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10306 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10307 hardcode_libdir_separator_CXX=:
10309 ia64*)
10310 hardcode_libdir_flag_spec_CXX='-L$libdir'
10313 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10314 hardcode_libdir_separator_CXX=:
10315 export_dynamic_flag_spec_CXX='${wl}-E'
10317 esac
10319 case "$host_cpu" in
10320 hppa*64*)
10321 hardcode_direct_CXX=no
10322 hardcode_shlibpath_var_CXX=no
10324 ia64*)
10325 hardcode_direct_CXX=no
10326 hardcode_shlibpath_var_CXX=no
10327 hardcode_minus_L_CXX=yes # Not in the search PATH,
10328 # but as the default
10329 # location of the library.
10332 hardcode_direct_CXX=yes
10333 hardcode_minus_L_CXX=yes # Not in the search PATH,
10334 # but as the default
10335 # location of the library.
10337 esac
10339 case $cc_basename in
10340 CC*)
10341 # FIXME: insert proper C++ library support
10342 ld_shlibs_CXX=no
10344 aCC*)
10345 case "$host_cpu" in
10346 hppa*64*|ia64*)
10347 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10350 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10352 esac
10353 # Commands to make compiler produce verbose output that lists
10354 # what "hidden" libraries, object files and flags are used when
10355 # linking a shared library.
10357 # There doesn't appear to be a way to prevent this compiler from
10358 # explicitly linking system object files so we need to strip them
10359 # from the output so that they don't get included in the library
10360 # dependencies.
10361 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'
10364 if test "$GXX" = yes; then
10365 if test $with_gnu_ld = no; then
10366 case "$host_cpu" in
10367 ia64*|hppa*64*)
10368 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10371 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'
10373 esac
10375 else
10376 # FIXME: insert proper C++ library support
10377 ld_shlibs_CXX=no
10380 esac
10382 irix5* | irix6*)
10383 case $cc_basename in
10384 CC*)
10385 # SGI C++
10386 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10388 # Archives containing C++ object files must be created using
10389 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10390 # necessary to make sure instantiated templates are included
10391 # in the archive.
10392 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10395 if test "$GXX" = yes; then
10396 if test "$with_gnu_ld" = no; then
10397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10398 else
10399 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'
10402 link_all_deplibs_CXX=yes
10404 esac
10405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10406 hardcode_libdir_separator_CXX=:
10408 linux*)
10409 case $cc_basename in
10410 KCC*)
10411 # Kuck and Associates, Inc. (KAI) C++ Compiler
10413 # KCC will only create a shared library if the output file
10414 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10415 # to its proper name (with version) after linking.
10416 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10417 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'
10418 # Commands to make compiler produce verbose output that lists
10419 # what "hidden" libraries, object files and flags are used when
10420 # linking a shared library.
10422 # There doesn't appear to be a way to prevent this compiler from
10423 # explicitly linking system object files so we need to strip them
10424 # from the output so that they don't get included in the library
10425 # dependencies.
10426 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'
10428 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10431 # Archives containing C++ object files must be created using
10432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10435 icpc*)
10436 # Intel C++
10437 with_gnu_ld=yes
10438 # version 8.0 and above of icpc choke on multiply defined symbols
10439 # if we add $predep_objects and $postdep_objects, however 7.1 and
10440 # earlier do not add the objects themselves.
10441 case `$CC -V 2>&1` in
10442 *"Version 7."*)
10443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10444 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'
10446 *) # Version 8.0 or newer
10447 tmp_idyn=
10448 case $host_cpu in
10449 ia64*) tmp_idyn=' -i_dynamic';;
10450 esac
10451 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10454 esac
10455 archive_cmds_need_lc_CXX=no
10456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10458 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10460 pgCC*)
10461 # Portland Group C++ compiler
10462 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10463 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10465 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10467 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10469 cxx*)
10470 # Compaq C++
10471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10472 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'
10474 runpath_var=LD_RUN_PATH
10475 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10476 hardcode_libdir_separator_CXX=:
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10482 # There doesn't appear to be a way to prevent this compiler from
10483 # explicitly linking system object files so we need to strip them
10484 # from the output so that they don't get included in the library
10485 # dependencies.
10486 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'
10488 esac
10490 lynxos*)
10491 # FIXME: insert proper C++ library support
10492 ld_shlibs_CXX=no
10494 m88k*)
10495 # FIXME: insert proper C++ library support
10496 ld_shlibs_CXX=no
10498 mvs*)
10499 case $cc_basename in
10500 cxx*)
10501 # FIXME: insert proper C++ library support
10502 ld_shlibs_CXX=no
10505 # FIXME: insert proper C++ library support
10506 ld_shlibs_CXX=no
10508 esac
10510 netbsd*)
10511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10512 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10513 wlarc=
10514 hardcode_libdir_flag_spec_CXX='-R$libdir'
10515 hardcode_direct_CXX=yes
10516 hardcode_shlibpath_var_CXX=no
10518 # Workaround some broken pre-1.5 toolchains
10519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10521 openbsd2*)
10522 # C++ shared libraries are fairly broken
10523 ld_shlibs_CXX=no
10525 openbsd*)
10526 hardcode_direct_CXX=yes
10527 hardcode_shlibpath_var_CXX=no
10528 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10531 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10532 export_dynamic_flag_spec_CXX='${wl}-E'
10533 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10535 output_verbose_link_cmd='echo'
10537 osf3*)
10538 case $cc_basename in
10539 KCC*)
10540 # Kuck and Associates, Inc. (KAI) C++ Compiler
10542 # KCC will only create a shared library if the output file
10543 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10544 # to its proper name (with version) after linking.
10545 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'
10547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10548 hardcode_libdir_separator_CXX=:
10550 # Archives containing C++ object files must be created using
10551 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10552 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10555 RCC*)
10556 # Rational C++ 2.4.1
10557 # FIXME: insert proper C++ library support
10558 ld_shlibs_CXX=no
10560 cxx*)
10561 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10562 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10565 hardcode_libdir_separator_CXX=:
10567 # Commands to make compiler produce verbose output that lists
10568 # what "hidden" libraries, object files and flags are used when
10569 # linking a shared library.
10571 # There doesn't appear to be a way to prevent this compiler from
10572 # explicitly linking system object files so we need to strip them
10573 # from the output so that they don't get included in the library
10574 # dependencies.
10575 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'
10578 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10579 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10580 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10583 hardcode_libdir_separator_CXX=:
10585 # Commands to make compiler produce verbose output that lists
10586 # what "hidden" libraries, object files and flags are used when
10587 # linking a shared library.
10588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10590 else
10591 # FIXME: insert proper C++ library support
10592 ld_shlibs_CXX=no
10595 esac
10597 osf4* | osf5*)
10598 case $cc_basename in
10599 KCC*)
10600 # Kuck and Associates, Inc. (KAI) C++ Compiler
10602 # KCC will only create a shared library if the output file
10603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10604 # to its proper name (with version) after linking.
10605 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'
10607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10608 hardcode_libdir_separator_CXX=:
10610 # Archives containing C++ object files must be created using
10611 # the KAI C++ compiler.
10612 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10614 RCC*)
10615 # Rational C++ 2.4.1
10616 # FIXME: insert proper C++ library support
10617 ld_shlibs_CXX=no
10619 cxx*)
10620 allow_undefined_flag_CXX=' -expect_unresolved \*'
10621 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10622 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10623 echo "-hidden">> $lib.exp~
10624 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10625 $rm $lib.exp'
10627 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10628 hardcode_libdir_separator_CXX=:
10630 # Commands to make compiler produce verbose output that lists
10631 # what "hidden" libraries, object files and flags are used when
10632 # linking a shared library.
10634 # There doesn't appear to be a way to prevent this compiler from
10635 # explicitly linking system object files so we need to strip them
10636 # from the output so that they don't get included in the library
10637 # dependencies.
10638 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'
10641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10642 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10643 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10646 hardcode_libdir_separator_CXX=:
10648 # Commands to make compiler produce verbose output that lists
10649 # what "hidden" libraries, object files and flags are used when
10650 # linking a shared library.
10651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10653 else
10654 # FIXME: insert proper C++ library support
10655 ld_shlibs_CXX=no
10658 esac
10660 psos*)
10661 # FIXME: insert proper C++ library support
10662 ld_shlibs_CXX=no
10664 sco*)
10665 archive_cmds_need_lc_CXX=no
10666 case $cc_basename in
10667 CC*)
10668 # FIXME: insert proper C++ library support
10669 ld_shlibs_CXX=no
10672 # FIXME: insert proper C++ library support
10673 ld_shlibs_CXX=no
10675 esac
10677 sunos4*)
10678 case $cc_basename in
10679 CC*)
10680 # Sun C++ 4.x
10681 # FIXME: insert proper C++ library support
10682 ld_shlibs_CXX=no
10684 lcc*)
10685 # Lucid
10686 # FIXME: insert proper C++ library support
10687 ld_shlibs_CXX=no
10690 # FIXME: insert proper C++ library support
10691 ld_shlibs_CXX=no
10693 esac
10695 solaris*)
10696 case $cc_basename in
10697 CC*)
10698 # Sun C++ 4.2, 5.x and Centerline C++
10699 no_undefined_flag_CXX=' -zdefs'
10700 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10701 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10702 $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'
10704 hardcode_libdir_flag_spec_CXX='-R$libdir'
10705 hardcode_shlibpath_var_CXX=no
10706 case $host_os in
10707 solaris2.[0-5] | solaris2.[0-5].*) ;;
10709 # The C++ compiler is used as linker so we must use $wl
10710 # flag to pass the commands to the underlying system
10711 # linker. We must also pass each convience library through
10712 # to the system linker between allextract/defaultextract.
10713 # The C++ compiler will combine linker options so we
10714 # cannot just pass the convience library names through
10715 # without $wl.
10716 # Supported since Solaris 2.6 (maybe 2.5.1?)
10717 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10719 esac
10720 link_all_deplibs_CXX=yes
10722 # Commands to make compiler produce verbose output that lists
10723 # what "hidden" libraries, object files and flags are used when
10724 # linking a shared library.
10726 # There doesn't appear to be a way to prevent this compiler from
10727 # explicitly linking system object files so we need to strip them
10728 # from the output so that they don't get included in the library
10729 # dependencies.
10730 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'
10732 # Archives containing C++ object files must be created using
10733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10734 # necessary to make sure instantiated templates are included
10735 # in the archive.
10736 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10738 gcx*)
10739 # Green Hills C++ Compiler
10740 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10742 # The C++ compiler must be used to create the archive.
10743 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10746 # GNU C++ compiler with Solaris linker
10747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10748 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10749 if $CC --version | grep -v '^2\.7' > /dev/null; then
10750 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10751 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10752 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10754 # Commands to make compiler produce verbose output that lists
10755 # what "hidden" libraries, object files and flags are used when
10756 # linking a shared library.
10757 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10758 else
10759 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10760 # platform.
10761 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10762 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10763 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10765 # Commands to make compiler produce verbose output that lists
10766 # what "hidden" libraries, object files and flags are used when
10767 # linking a shared library.
10768 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10771 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10774 esac
10776 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10777 archive_cmds_need_lc_CXX=no
10779 tandem*)
10780 case $cc_basename in
10781 NCC*)
10782 # NonStop-UX NCC 3.20
10783 # FIXME: insert proper C++ library support
10784 ld_shlibs_CXX=no
10787 # FIXME: insert proper C++ library support
10788 ld_shlibs_CXX=no
10790 esac
10792 vxworks*)
10793 # FIXME: insert proper C++ library support
10794 ld_shlibs_CXX=no
10797 # FIXME: insert proper C++ library support
10798 ld_shlibs_CXX=no
10800 esac
10801 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10802 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10803 test "$ld_shlibs_CXX" = no && can_build_shared=no
10805 GCC_CXX="$GXX"
10806 LD_CXX="$LD"
10809 cat > conftest.$ac_ext <<EOF
10810 class Foo
10812 public:
10813 Foo (void) { a = 0; }
10814 private:
10815 int a;
10819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10820 (eval $ac_compile) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; then
10824 # Parse the compiler output and extract the necessary
10825 # objects, libraries and library flags.
10827 # Sentinel used to keep track of whether or not we are before
10828 # the conftest object file.
10829 pre_test_object_deps_done=no
10831 # The `*' in the case matches for architectures that use `case' in
10832 # $output_verbose_cmd can trigger glob expansion during the loop
10833 # eval without this substitution.
10834 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10836 for p in `eval $output_verbose_link_cmd`; do
10837 case $p in
10839 -L* | -R* | -l*)
10840 # Some compilers place space between "-{L,R}" and the path.
10841 # Remove the space.
10842 if test $p = "-L" \
10843 || test $p = "-R"; then
10844 prev=$p
10845 continue
10846 else
10847 prev=
10850 if test "$pre_test_object_deps_done" = no; then
10851 case $p in
10852 -L* | -R*)
10853 # Internal compiler library paths should come after those
10854 # provided the user. The postdeps already come after the
10855 # user supplied libs so there is no need to process them.
10856 if test -z "$compiler_lib_search_path_CXX"; then
10857 compiler_lib_search_path_CXX="${prev}${p}"
10858 else
10859 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10862 # The "-l" case would never come before the object being
10863 # linked, so don't bother handling this case.
10864 esac
10865 else
10866 if test -z "$postdeps_CXX"; then
10867 postdeps_CXX="${prev}${p}"
10868 else
10869 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10874 *.$objext)
10875 # This assumes that the test object file only shows up
10876 # once in the compiler output.
10877 if test "$p" = "conftest.$objext"; then
10878 pre_test_object_deps_done=yes
10879 continue
10882 if test "$pre_test_object_deps_done" = no; then
10883 if test -z "$predep_objects_CXX"; then
10884 predep_objects_CXX="$p"
10885 else
10886 predep_objects_CXX="$predep_objects_CXX $p"
10888 else
10889 if test -z "$postdep_objects_CXX"; then
10890 postdep_objects_CXX="$p"
10891 else
10892 postdep_objects_CXX="$postdep_objects_CXX $p"
10897 *) ;; # Ignore the rest.
10899 esac
10900 done
10902 # Clean up.
10903 rm -f a.out a.exe
10904 else
10905 echo "libtool.m4: error: problem compiling CXX test program"
10908 $rm -f confest.$objext
10910 case " $postdeps_CXX " in
10911 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10912 esac
10914 lt_prog_compiler_wl_CXX=
10915 lt_prog_compiler_pic_CXX=
10916 lt_prog_compiler_static_CXX=
10918 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10919 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10921 # C++ specific cases for pic, static, wl, etc.
10922 if test "$GXX" = yes; then
10923 lt_prog_compiler_wl_CXX='-Wl,'
10924 lt_prog_compiler_static_CXX='-static'
10926 case $host_os in
10927 aix*)
10928 # All AIX code is PIC.
10929 if test "$host_cpu" = ia64; then
10930 # AIX 5 now supports IA64 processor
10931 lt_prog_compiler_static_CXX='-Bstatic'
10934 amigaos*)
10935 # FIXME: we need at least 68020 code to build shared libraries, but
10936 # adding the `-m68020' flag to GCC prevents building anything better,
10937 # like `-m68040'.
10938 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10940 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10941 # PIC is the default for these OSes.
10943 mingw* | os2* | pw32*)
10944 # This hack is so that the source file can tell whether it is being
10945 # built for inclusion in a dll (and should export symbols for example).
10946 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10948 darwin* | rhapsody*)
10949 # PIC is the default on this platform
10950 # Common symbols not allowed in MH_DYLIB files
10951 lt_prog_compiler_pic_CXX='-fno-common'
10953 *djgpp*)
10954 # DJGPP does not support shared libraries at all
10955 lt_prog_compiler_pic_CXX=
10957 sysv4*MP*)
10958 if test -d /usr/nec; then
10959 lt_prog_compiler_pic_CXX=-Kconform_pic
10962 hpux*)
10963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10964 # not for PA HP-UX.
10965 case "$host_cpu" in
10966 hppa*64*|ia64*)
10969 lt_prog_compiler_pic_CXX='-fPIC'
10971 esac
10974 lt_prog_compiler_pic_CXX='-fPIC'
10976 esac
10977 else
10978 case $host_os in
10979 aix4* | aix5*)
10980 # All AIX code is PIC.
10981 if test "$host_cpu" = ia64; then
10982 # AIX 5 now supports IA64 processor
10983 lt_prog_compiler_static_CXX='-Bstatic'
10984 else
10985 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10988 chorus*)
10989 case $cc_basename in
10990 cxch68*)
10991 # Green Hills C++ Compiler
10992 # _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"
10994 esac
10996 darwin*)
10997 # PIC is the default on this platform
10998 # Common symbols not allowed in MH_DYLIB files
10999 case $cc_basename in
11000 xlc*)
11001 lt_prog_compiler_pic_CXX='-qnocommon'
11002 lt_prog_compiler_wl_CXX='-Wl,'
11004 esac
11006 dgux*)
11007 case $cc_basename in
11008 ec++*)
11009 lt_prog_compiler_pic_CXX='-KPIC'
11011 ghcx*)
11012 # Green Hills C++ Compiler
11013 lt_prog_compiler_pic_CXX='-pic'
11017 esac
11019 freebsd* | kfreebsd*-gnu | dragonfly*)
11020 # FreeBSD uses GNU C++
11022 hpux9* | hpux10* | hpux11*)
11023 case $cc_basename in
11024 CC*)
11025 lt_prog_compiler_wl_CXX='-Wl,'
11026 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11027 if test "$host_cpu" != ia64; then
11028 lt_prog_compiler_pic_CXX='+Z'
11031 aCC*)
11032 lt_prog_compiler_wl_CXX='-Wl,'
11033 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11034 case "$host_cpu" in
11035 hppa*64*|ia64*)
11036 # +Z the default
11039 lt_prog_compiler_pic_CXX='+Z'
11041 esac
11045 esac
11047 irix5* | irix6* | nonstopux*)
11048 case $cc_basename in
11049 CC*)
11050 lt_prog_compiler_wl_CXX='-Wl,'
11051 lt_prog_compiler_static_CXX='-non_shared'
11052 # CC pic flag -KPIC is the default.
11056 esac
11058 linux*)
11059 case $cc_basename in
11060 KCC*)
11061 # KAI C++ Compiler
11062 lt_prog_compiler_wl_CXX='--backend -Wl,'
11063 lt_prog_compiler_pic_CXX='-fPIC'
11065 icpc* | ecpc*)
11066 # Intel C++
11067 lt_prog_compiler_wl_CXX='-Wl,'
11068 lt_prog_compiler_pic_CXX='-KPIC'
11069 lt_prog_compiler_static_CXX='-static'
11071 pgCC*)
11072 # Portland Group C++ compiler.
11073 lt_prog_compiler_wl_CXX='-Wl,'
11074 lt_prog_compiler_pic_CXX='-fpic'
11075 lt_prog_compiler_static_CXX='-static'
11077 cxx*)
11078 # Compaq C++
11079 # Make sure the PIC flag is empty. It appears that all Alpha
11080 # Linux and Compaq Tru64 Unix objects are PIC.
11081 lt_prog_compiler_pic_CXX=
11082 lt_prog_compiler_static_CXX='-non_shared'
11086 esac
11088 lynxos*)
11090 m88k*)
11092 mvs*)
11093 case $cc_basename in
11094 cxx*)
11095 lt_prog_compiler_pic_CXX='-W c,exportall'
11099 esac
11101 netbsd*)
11103 osf3* | osf4* | osf5*)
11104 case $cc_basename in
11105 KCC*)
11106 lt_prog_compiler_wl_CXX='--backend -Wl,'
11108 RCC*)
11109 # Rational C++ 2.4.1
11110 lt_prog_compiler_pic_CXX='-pic'
11112 cxx*)
11113 # Digital/Compaq C++
11114 lt_prog_compiler_wl_CXX='-Wl,'
11115 # Make sure the PIC flag is empty. It appears that all Alpha
11116 # Linux and Compaq Tru64 Unix objects are PIC.
11117 lt_prog_compiler_pic_CXX=
11118 lt_prog_compiler_static_CXX='-non_shared'
11122 esac
11124 psos*)
11126 sco*)
11127 case $cc_basename in
11128 CC*)
11129 lt_prog_compiler_pic_CXX='-fPIC'
11133 esac
11135 solaris*)
11136 case $cc_basename in
11137 CC*)
11138 # Sun C++ 4.2, 5.x and Centerline C++
11139 lt_prog_compiler_pic_CXX='-KPIC'
11140 lt_prog_compiler_static_CXX='-Bstatic'
11141 lt_prog_compiler_wl_CXX='-Qoption ld '
11143 gcx*)
11144 # Green Hills C++ Compiler
11145 lt_prog_compiler_pic_CXX='-PIC'
11149 esac
11151 sunos4*)
11152 case $cc_basename in
11153 CC*)
11154 # Sun C++ 4.x
11155 lt_prog_compiler_pic_CXX='-pic'
11156 lt_prog_compiler_static_CXX='-Bstatic'
11158 lcc*)
11159 # Lucid
11160 lt_prog_compiler_pic_CXX='-pic'
11164 esac
11166 tandem*)
11167 case $cc_basename in
11168 NCC*)
11169 # NonStop-UX NCC 3.20
11170 lt_prog_compiler_pic_CXX='-KPIC'
11174 esac
11176 unixware*)
11178 vxworks*)
11181 lt_prog_compiler_can_build_shared_CXX=no
11183 esac
11186 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11187 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11190 # Check to make sure the PIC flag actually works.
11192 if test -n "$lt_prog_compiler_pic_CXX"; then
11194 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11195 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11196 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199 lt_prog_compiler_pic_works_CXX=no
11200 ac_outfile=conftest.$ac_objext
11201 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11202 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11203 # Insert the option either (1) after the last *FLAGS variable, or
11204 # (2) before a word containing "conftest.", or (3) at the end.
11205 # Note that $ac_compile itself does not contain backslashes and begins
11206 # with a dollar sign (not a hyphen), so the echo should work correctly.
11207 # The option is referenced via a variable to avoid confusing sed.
11208 lt_compile=`echo "$ac_compile" | $SED \
11209 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11211 -e 's:$: $lt_compiler_flag:'`
11212 (eval echo "\"\$as_me:11212: $lt_compile\"" >&5)
11213 (eval "$lt_compile" 2>conftest.err)
11214 ac_status=$?
11215 cat conftest.err >&5
11216 echo "$as_me:11216: \$? = $ac_status" >&5
11217 if (exit $ac_status) && test -s "$ac_outfile"; then
11218 # The compiler can only warn and ignore the option if not recognized
11219 # So say no if there are warnings other than the usual output.
11220 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11221 $SED '/^$/d' conftest.err >conftest.er2
11222 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11223 lt_prog_compiler_pic_works_CXX=yes
11226 $rm conftest*
11229 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11230 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11232 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11233 case $lt_prog_compiler_pic_CXX in
11234 "" | " "*) ;;
11235 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11236 esac
11237 else
11238 lt_prog_compiler_pic_CXX=
11239 lt_prog_compiler_can_build_shared_CXX=no
11243 case "$host_os" in
11244 # For platforms which do not support PIC, -DPIC is meaningless:
11245 *djgpp*)
11246 lt_prog_compiler_pic_CXX=
11249 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11251 esac
11253 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11254 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11255 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 lt_cv_prog_compiler_c_o_CXX=no
11259 $rm -r conftest 2>/dev/null
11260 mkdir conftest
11261 cd conftest
11262 mkdir out
11263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11265 lt_compiler_flag="-o out/conftest2.$ac_objext"
11266 # Insert the option either (1) after the last *FLAGS variable, or
11267 # (2) before a word containing "conftest.", or (3) at the end.
11268 # Note that $ac_compile itself does not contain backslashes and begins
11269 # with a dollar sign (not a hyphen), so the echo should work correctly.
11270 lt_compile=`echo "$ac_compile" | $SED \
11271 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11273 -e 's:$: $lt_compiler_flag:'`
11274 (eval echo "\"\$as_me:11274: $lt_compile\"" >&5)
11275 (eval "$lt_compile" 2>out/conftest.err)
11276 ac_status=$?
11277 cat out/conftest.err >&5
11278 echo "$as_me:11278: \$? = $ac_status" >&5
11279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11280 then
11281 # The compiler can only warn and ignore the option if not recognized
11282 # So say no if there are warnings
11283 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11284 $SED '/^$/d' out/conftest.err >out/conftest.er2
11285 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11286 lt_cv_prog_compiler_c_o_CXX=yes
11289 chmod u+w .
11290 $rm conftest*
11291 # SGI C++ compiler will create directory out/ii_files/ for
11292 # template instantiation
11293 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11294 $rm out/* && rmdir out
11295 cd ..
11296 rmdir conftest
11297 $rm conftest*
11300 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11301 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11304 hard_links="nottested"
11305 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11306 # do not overwrite the value of need_locks provided by the user
11307 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11308 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11309 hard_links=yes
11310 $rm conftest*
11311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11312 touch conftest.a
11313 ln conftest.a conftest.b 2>&5 || hard_links=no
11314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11315 echo "$as_me:$LINENO: result: $hard_links" >&5
11316 echo "${ECHO_T}$hard_links" >&6
11317 if test "$hard_links" = no; then
11318 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11319 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11320 need_locks=warn
11322 else
11323 need_locks=no
11326 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11327 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11329 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11330 case $host_os in
11331 aix4* | aix5*)
11332 # If we're using GNU nm, then we don't want the "-C" option.
11333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11334 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11335 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'
11336 else
11337 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'
11340 pw32*)
11341 export_symbols_cmds_CXX="$ltdll_cmds"
11343 cygwin* | mingw*)
11344 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11349 esac
11351 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11352 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11353 test "$ld_shlibs_CXX" = no && can_build_shared=no
11355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11356 if test "$GCC" = yes; then
11357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11361 # Do we need to explicitly link libc?
11363 case "x$archive_cmds_need_lc_CXX" in
11364 x|xyes)
11365 # Assume -lc should be added
11366 archive_cmds_need_lc_CXX=yes
11368 if test "$enable_shared" = yes && test "$GCC" = yes; then
11369 case $archive_cmds_CXX in
11370 *'~'*)
11371 # FIXME: we may have to deal with multi-command sequences.
11373 '$CC '*)
11374 # Test whether the compiler implicitly links with -lc since on some
11375 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11376 # to ld, don't add -lc before -lgcc.
11377 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11378 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11379 $rm conftest*
11380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11383 (eval $ac_compile) 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } 2>conftest.err; then
11387 soname=conftest
11388 lib=conftest
11389 libobjs=conftest.$ac_objext
11390 deplibs=
11391 wl=$lt_prog_compiler_wl_CXX
11392 compiler_flags=-v
11393 linker_flags=-v
11394 verstring=
11395 output_objdir=.
11396 libname=conftest
11397 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11398 allow_undefined_flag_CXX=
11399 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11400 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }
11404 then
11405 archive_cmds_need_lc_CXX=no
11406 else
11407 archive_cmds_need_lc_CXX=yes
11409 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11410 else
11411 cat conftest.err 1>&5
11413 $rm conftest*
11414 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11415 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11417 esac
11420 esac
11422 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11423 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11424 library_names_spec=
11425 libname_spec='lib$name'
11426 soname_spec=
11427 shrext_cmds=".so"
11428 postinstall_cmds=
11429 postuninstall_cmds=
11430 finish_cmds=
11431 finish_eval=
11432 shlibpath_var=
11433 shlibpath_overrides_runpath=unknown
11434 version_type=none
11435 dynamic_linker="$host_os ld.so"
11436 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11437 if test "$GCC" = yes; then
11438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11439 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11440 # if the path contains ";" then we assume it to be the separator
11441 # otherwise default to the standard path separator (i.e. ":") - it is
11442 # assumed that no part of a normal pathname contains ";" but that should
11443 # okay in the real world where ";" in dirpaths is itself problematic.
11444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11445 else
11446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11448 else
11449 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11451 need_lib_prefix=unknown
11452 hardcode_into_libs=no
11454 # when you set need_version to no, make sure it does not cause -set_version
11455 # flags to be left without arguments
11456 need_version=unknown
11458 case $host_os in
11459 aix3*)
11460 version_type=linux
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11462 shlibpath_var=LIBPATH
11464 # AIX 3 has no versioning support, so we append a major version to the name.
11465 soname_spec='${libname}${release}${shared_ext}$major'
11468 aix4* | aix5*)
11469 version_type=linux
11470 need_lib_prefix=no
11471 need_version=no
11472 hardcode_into_libs=yes
11473 if test "$host_cpu" = ia64; then
11474 # AIX 5 supports IA64
11475 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 else
11478 # With GCC up to 2.95.x, collect2 would create an import file
11479 # for dependence libraries. The import file would start with
11480 # the line `#! .'. This would cause the generated library to
11481 # depend on `.', always an invalid library. This was fixed in
11482 # development snapshots of GCC prior to 3.0.
11483 case $host_os in
11484 aix4 | aix4.[01] | aix4.[01].*)
11485 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11486 echo ' yes '
11487 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11489 else
11490 can_build_shared=no
11493 esac
11494 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11495 # soname into executable. Probably we can add versioning support to
11496 # collect2, so additional links can be useful in future.
11497 if test "$aix_use_runtimelinking" = yes; then
11498 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11499 # instead of lib<name>.a to let people know that these are not
11500 # typical AIX shared libraries.
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 else
11503 # We preserve .a as extension for shared libraries through AIX4.2
11504 # and later when we are not doing run time linking.
11505 library_names_spec='${libname}${release}.a $libname.a'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11508 shlibpath_var=LIBPATH
11512 amigaos*)
11513 library_names_spec='$libname.ixlibrary $libname.a'
11514 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11515 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'
11518 beos*)
11519 library_names_spec='${libname}${shared_ext}'
11520 dynamic_linker="$host_os ld.so"
11521 shlibpath_var=LIBRARY_PATH
11524 bsdi[45]*)
11525 version_type=linux
11526 need_version=no
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11533 # the default ld.so.conf also contains /usr/contrib/lib and
11534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11535 # libtool to hard-code these into programs
11538 cygwin* | mingw* | pw32*)
11539 version_type=windows
11540 shrext_cmds=".dll"
11541 need_version=no
11542 need_lib_prefix=no
11544 case $GCC,$host_os in
11545 yes,cygwin* | yes,mingw* | yes,pw32*)
11546 library_names_spec='$libname.dll.a'
11547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11548 postinstall_cmds='base_file=`basename \${file}`~
11549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11550 dldir=$destdir/`dirname \$dlpath`~
11551 test -d \$dldir || mkdir -p \$dldir~
11552 $install_prog $dir/$dlname \$dldir/$dlname'
11553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11554 dlpath=$dir/\$dldll~
11555 $rm \$dlpath'
11556 shlibpath_overrides_runpath=yes
11558 case $host_os in
11559 cygwin*)
11560 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11562 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11564 mingw*)
11565 # MinGW DLLs use traditional 'lib' prefix
11566 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11567 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11568 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11569 # It is most probably a Windows format PATH printed by
11570 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11571 # path with ; separators, and with drive letters. We can handle the
11572 # drive letters (cygwin fileutils understands them), so leave them,
11573 # especially as we might pass files found there to a mingw objdump,
11574 # which wouldn't understand a cygwinified path. Ahh.
11575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11576 else
11577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11580 pw32*)
11581 # pw32 DLLs use 'pw' prefix rather than 'lib'
11582 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11584 esac
11588 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11590 esac
11591 dynamic_linker='Win32 ld.exe'
11592 # FIXME: first we should search . and the directory the executable is in
11593 shlibpath_var=PATH
11596 darwin* | rhapsody*)
11597 dynamic_linker="$host_os dyld"
11598 version_type=darwin
11599 need_lib_prefix=no
11600 need_version=no
11601 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11602 soname_spec='${libname}${release}${major}$shared_ext'
11603 shlibpath_overrides_runpath=yes
11604 shlibpath_var=DYLD_LIBRARY_PATH
11605 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11606 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11607 if test "$GCC" = yes; then
11608 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"`
11609 else
11610 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11612 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11615 dgux*)
11616 version_type=linux
11617 need_lib_prefix=no
11618 need_version=no
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 shlibpath_var=LD_LIBRARY_PATH
11624 freebsd1*)
11625 dynamic_linker=no
11628 kfreebsd*-gnu)
11629 version_type=linux
11630 need_lib_prefix=no
11631 need_version=no
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11637 dynamic_linker='GNU ld.so'
11640 freebsd* | dragonfly*)
11641 # DragonFly does not have aout. When/if they implement a new
11642 # versioning mechanism, adjust this.
11643 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11644 version_type=freebsd-$objformat
11645 case $version_type in
11646 freebsd-elf*)
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11648 need_version=no
11649 need_lib_prefix=no
11651 freebsd-*)
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11653 need_version=yes
11655 esac
11656 shlibpath_var=LD_LIBRARY_PATH
11657 case $host_os in
11658 freebsd2*)
11659 shlibpath_overrides_runpath=yes
11661 freebsd3.[01]* | freebsdelf3.[01]*)
11662 shlibpath_overrides_runpath=yes
11663 hardcode_into_libs=yes
11665 *) # from 3.2 on
11666 shlibpath_overrides_runpath=no
11667 hardcode_into_libs=yes
11669 esac
11672 gnu*)
11673 version_type=linux
11674 need_lib_prefix=no
11675 need_version=no
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11677 soname_spec='${libname}${release}${shared_ext}$major'
11678 shlibpath_var=LD_LIBRARY_PATH
11679 hardcode_into_libs=yes
11682 hpux9* | hpux10* | hpux11*)
11683 # Give a soname corresponding to the major version so that dld.sl refuses to
11684 # link against other versions.
11685 version_type=sunos
11686 need_lib_prefix=no
11687 need_version=no
11688 case "$host_cpu" in
11689 ia64*)
11690 shrext_cmds='.so'
11691 hardcode_into_libs=yes
11692 dynamic_linker="$host_os dld.so"
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 if test "X$HPUX_IA64_MODE" = X32; then
11698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11699 else
11700 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11704 hppa*64*)
11705 shrext_cmds='.sl'
11706 hardcode_into_libs=yes
11707 dynamic_linker="$host_os dld.sl"
11708 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11716 shrext_cmds='.sl'
11717 dynamic_linker="$host_os dld.sl"
11718 shlibpath_var=SHLIB_PATH
11719 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11723 esac
11724 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11725 postinstall_cmds='chmod 555 $lib'
11728 irix5* | irix6* | nonstopux*)
11729 case $host_os in
11730 nonstopux*) version_type=nonstopux ;;
11732 if test "$lt_cv_prog_gnu_ld" = yes; then
11733 version_type=linux
11734 else
11735 version_type=irix
11736 fi ;;
11737 esac
11738 need_lib_prefix=no
11739 need_version=no
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11742 case $host_os in
11743 irix5* | nonstopux*)
11744 libsuff= shlibsuff=
11747 case $LD in # libtool.m4 will add one of these switches to LD
11748 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11749 libsuff= shlibsuff= libmagic=32-bit;;
11750 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11751 libsuff=32 shlibsuff=N32 libmagic=N32;;
11752 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11753 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11754 *) libsuff= shlibsuff= libmagic=never-match;;
11755 esac
11757 esac
11758 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11759 shlibpath_overrides_runpath=no
11760 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11761 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11762 hardcode_into_libs=yes
11765 # No shared lib support for Linux oldld, aout, or coff.
11766 linux*oldld* | linux*aout* | linux*coff*)
11767 dynamic_linker=no
11770 # This must be Linux ELF.
11771 linux*)
11772 version_type=linux
11773 need_lib_prefix=no
11774 need_version=no
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=no
11780 # This implies no fast_install, which is unacceptable.
11781 # Some rework will be needed to allow for fast_install
11782 # before this can be enabled.
11783 hardcode_into_libs=yes
11785 # find out which ABI we are using
11786 libsuff=
11787 case "$host_cpu" in
11788 x86_64*|s390x*|powerpc64*)
11789 echo '#line 11789 "configure"' > conftest.$ac_ext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; then
11795 case `/usr/bin/file conftest.$ac_objext` in
11796 *64-bit*)
11797 libsuff=64
11798 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11800 esac
11802 rm -rf conftest*
11804 esac
11806 # Append ld.so.conf contents to the search path
11807 if test -f /etc/ld.so.conf; then
11808 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11809 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11812 # We used to test for /lib/ld.so.1 and disable shared libraries on
11813 # powerpc, because MkLinux only supported shared libraries with the
11814 # GNU dynamic linker. Since this was broken with cross compilers,
11815 # most powerpc-linux boxes support dynamic linking these days and
11816 # people can always --disable-shared, the test was removed, and we
11817 # assume the GNU/Linux dynamic linker is in use.
11818 dynamic_linker='GNU/Linux ld.so'
11821 knetbsd*-gnu)
11822 version_type=linux
11823 need_lib_prefix=no
11824 need_version=no
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=no
11829 hardcode_into_libs=yes
11830 dynamic_linker='GNU ld.so'
11833 netbsd*)
11834 version_type=sunos
11835 need_lib_prefix=no
11836 need_version=no
11837 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840 dynamic_linker='NetBSD (a.out) ld.so'
11841 else
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 dynamic_linker='NetBSD ld.elf_so'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=yes
11848 hardcode_into_libs=yes
11851 newsos6)
11852 version_type=linux
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes
11858 nto-qnx*)
11859 version_type=linux
11860 need_lib_prefix=no
11861 need_version=no
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11868 openbsd*)
11869 version_type=sunos
11870 need_lib_prefix=no
11871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11872 case $host_os in
11873 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11874 *) need_version=no ;;
11875 esac
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11880 case $host_os in
11881 openbsd2.[89] | openbsd2.[89].*)
11882 shlibpath_overrides_runpath=no
11885 shlibpath_overrides_runpath=yes
11887 esac
11888 else
11889 shlibpath_overrides_runpath=yes
11893 os2*)
11894 libname_spec='$name'
11895 shrext_cmds=".dll"
11896 need_lib_prefix=no
11897 library_names_spec='$libname${shared_ext} $libname.a'
11898 dynamic_linker='OS/2 ld.exe'
11899 shlibpath_var=LIBPATH
11902 osf3* | osf4* | osf5*)
11903 version_type=osf
11904 need_lib_prefix=no
11905 need_version=no
11906 soname_spec='${libname}${release}${shared_ext}$major'
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11913 sco3.2v5*)
11914 version_type=osf
11915 soname_spec='${libname}${release}${shared_ext}$major'
11916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917 shlibpath_var=LD_LIBRARY_PATH
11920 solaris*)
11921 version_type=linux
11922 need_lib_prefix=no
11923 need_version=no
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=yes
11928 hardcode_into_libs=yes
11929 # ldd complains unless libraries are executable
11930 postinstall_cmds='chmod +x $lib'
11933 sunos4*)
11934 version_type=sunos
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 if test "$with_gnu_ld" = yes; then
11940 need_lib_prefix=no
11942 need_version=yes
11945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11946 version_type=linux
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 case $host_vendor in
11951 sni)
11952 shlibpath_overrides_runpath=no
11953 need_lib_prefix=no
11954 export_dynamic_flag_spec='${wl}-Blargedynsym'
11955 runpath_var=LD_RUN_PATH
11957 siemens)
11958 need_lib_prefix=no
11960 motorola)
11961 need_lib_prefix=no
11962 need_version=no
11963 shlibpath_overrides_runpath=no
11964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11966 esac
11969 sysv4*MP*)
11970 if test -d /usr/nec ;then
11971 version_type=linux
11972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11973 soname_spec='$libname${shared_ext}.$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11978 uts4*)
11979 version_type=linux
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11981 soname_spec='${libname}${release}${shared_ext}$major'
11982 shlibpath_var=LD_LIBRARY_PATH
11986 dynamic_linker=no
11988 esac
11989 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11990 echo "${ECHO_T}$dynamic_linker" >&6
11991 test "$dynamic_linker" = no && can_build_shared=no
11993 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11994 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11995 hardcode_action_CXX=
11996 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11997 test -n "$runpath_var_CXX" || \
11998 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12000 # We can hardcode non-existant directories.
12001 if test "$hardcode_direct_CXX" != no &&
12002 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12003 # have to relink, otherwise we might link with an installed library
12004 # when we should be linking with a yet-to-be-installed one
12005 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12006 test "$hardcode_minus_L_CXX" != no; then
12007 # Linking always hardcodes the temporary library directory.
12008 hardcode_action_CXX=relink
12009 else
12010 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12011 hardcode_action_CXX=immediate
12013 else
12014 # We cannot hardcode anything, or else we can only hardcode existing
12015 # directories.
12016 hardcode_action_CXX=unsupported
12018 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12019 echo "${ECHO_T}$hardcode_action_CXX" >&6
12021 if test "$hardcode_action_CXX" = relink; then
12022 # Fast installation is not supported
12023 enable_fast_install=no
12024 elif test "$shlibpath_overrides_runpath" = yes ||
12025 test "$enable_shared" = no; then
12026 # Fast installation is not necessary
12027 enable_fast_install=needless
12030 striplib=
12031 old_striplib=
12032 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12033 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12034 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12035 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12036 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12037 echo "$as_me:$LINENO: result: yes" >&5
12038 echo "${ECHO_T}yes" >&6
12039 else
12040 # FIXME - insert some real tests, host_os isn't really good enough
12041 case $host_os in
12042 darwin*)
12043 if test -n "$STRIP" ; then
12044 striplib="$STRIP -x"
12045 echo "$as_me:$LINENO: result: yes" >&5
12046 echo "${ECHO_T}yes" >&6
12047 else
12048 echo "$as_me:$LINENO: result: no" >&5
12049 echo "${ECHO_T}no" >&6
12053 echo "$as_me:$LINENO: result: no" >&5
12054 echo "${ECHO_T}no" >&6
12056 esac
12059 if test "x$enable_dlopen" != xyes; then
12060 enable_dlopen=unknown
12061 enable_dlopen_self=unknown
12062 enable_dlopen_self_static=unknown
12063 else
12064 lt_cv_dlopen=no
12065 lt_cv_dlopen_libs=
12067 case $host_os in
12068 beos*)
12069 lt_cv_dlopen="load_add_on"
12070 lt_cv_dlopen_libs=
12071 lt_cv_dlopen_self=yes
12074 mingw* | pw32*)
12075 lt_cv_dlopen="LoadLibrary"
12076 lt_cv_dlopen_libs=
12079 cygwin*)
12080 lt_cv_dlopen="dlopen"
12081 lt_cv_dlopen_libs=
12084 darwin*)
12085 # if libdl is installed we need to link against it
12086 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091 ac_check_lib_save_LIBS=$LIBS
12092 LIBS="-ldl $LIBS"
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 /* Override any gcc2 internal prototype to avoid an error. */
12101 #ifdef __cplusplus
12102 extern "C"
12103 #endif
12104 /* We use char because int might match the return type of a gcc2
12105 builtin and then its argument prototype would still apply. */
12106 char dlopen ();
12108 main ()
12110 dlopen ();
12112 return 0;
12114 _ACEOF
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117 (eval $ac_link) 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_cxx_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest$ac_exeext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_cv_lib_dl_dlopen=yes
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_cv_lib_dl_dlopen=no
12144 rm -f conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12148 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12149 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12150 if test $ac_cv_lib_dl_dlopen = yes; then
12151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12152 else
12154 lt_cv_dlopen="dyld"
12155 lt_cv_dlopen_libs=
12156 lt_cv_dlopen_self=yes
12163 echo "$as_me:$LINENO: checking for shl_load" >&5
12164 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12165 if test "${ac_cv_func_shl_load+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12176 #define shl_load innocuous_shl_load
12178 /* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char shl_load (); below.
12180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181 <limits.h> exists even on freestanding compilers. */
12183 #ifdef __STDC__
12184 # include <limits.h>
12185 #else
12186 # include <assert.h>
12187 #endif
12189 #undef shl_load
12191 /* Override any gcc2 internal prototype to avoid an error. */
12192 #ifdef __cplusplus
12193 extern "C"
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12198 char shl_load ();
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12203 choke me
12204 #else
12205 char (*f) () = shl_load;
12206 #endif
12207 #ifdef __cplusplus
12209 #endif
12212 main ()
12214 return f != shl_load;
12216 return 0;
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_cxx_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_func_shl_load=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_func_shl_load=no
12248 rm -f conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12251 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12252 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12253 if test $ac_cv_func_shl_load = yes; then
12254 lt_cv_dlopen="shl_load"
12255 else
12256 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12257 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12258 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261 ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-ldld $LIBS"
12263 cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h. */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12270 /* Override any gcc2 internal prototype to avoid an error. */
12271 #ifdef __cplusplus
12272 extern "C"
12273 #endif
12274 /* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12276 char shl_load ();
12278 main ()
12280 shl_load ();
12282 return 0;
12284 _ACEOF
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_cxx_werror_flag"
12295 || test ! -s conftest.err'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_lib_dld_shl_load=yes
12308 else
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_lib_dld_shl_load=no
12314 rm -f conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12318 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12319 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12320 if test $ac_cv_lib_dld_shl_load = yes; then
12321 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12322 else
12323 echo "$as_me:$LINENO: checking for dlopen" >&5
12324 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12325 if test "${ac_cv_func_dlopen+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 else
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h. */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12336 #define dlopen innocuous_dlopen
12338 /* System header to define __stub macros and hopefully few prototypes,
12339 which can conflict with char dlopen (); below.
12340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12341 <limits.h> exists even on freestanding compilers. */
12343 #ifdef __STDC__
12344 # include <limits.h>
12345 #else
12346 # include <assert.h>
12347 #endif
12349 #undef dlopen
12351 /* Override any gcc2 internal prototype to avoid an error. */
12352 #ifdef __cplusplus
12353 extern "C"
12355 #endif
12356 /* We use char because int might match the return type of a gcc2
12357 builtin and then its argument prototype would still apply. */
12358 char dlopen ();
12359 /* The GNU C library defines this for functions which it implements
12360 to always fail with ENOSYS. Some functions are actually named
12361 something starting with __ and the normal name is an alias. */
12362 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12363 choke me
12364 #else
12365 char (*f) () = dlopen;
12366 #endif
12367 #ifdef __cplusplus
12369 #endif
12372 main ()
12374 return f != dlopen;
12376 return 0;
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381 (eval $ac_link) 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_cxx_werror_flag"
12389 || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_func_dlopen=yes
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_cv_func_dlopen=no
12408 rm -f conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext conftest.$ac_ext
12411 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12412 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12413 if test $ac_cv_func_dlopen = yes; then
12414 lt_cv_dlopen="dlopen"
12415 else
12416 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12417 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12418 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421 ac_check_lib_save_LIBS=$LIBS
12422 LIBS="-ldl $LIBS"
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h. */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12430 /* Override any gcc2 internal prototype to avoid an error. */
12431 #ifdef __cplusplus
12432 extern "C"
12433 #endif
12434 /* We use char because int might match the return type of a gcc2
12435 builtin and then its argument prototype would still apply. */
12436 char dlopen ();
12438 main ()
12440 dlopen ();
12442 return 0;
12444 _ACEOF
12445 rm -f conftest.$ac_objext conftest$ac_exeext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12447 (eval $ac_link) 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
12454 { ac_try='test -z "$ac_cxx_werror_flag"
12455 || test ! -s conftest.err'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_lib_dl_dlopen=yes
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_cv_lib_dl_dlopen=no
12474 rm -f conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12478 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12480 if test $ac_cv_lib_dl_dlopen = yes; then
12481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12482 else
12483 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12484 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12485 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 ac_check_lib_save_LIBS=$LIBS
12489 LIBS="-lsvld $LIBS"
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any gcc2 internal prototype to avoid an error. */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12503 char dlopen ();
12505 main ()
12507 dlopen ();
12509 return 0;
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>conftest.er1
12515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -z "$ac_cxx_werror_flag"
12522 || test ! -s conftest.err'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; } &&
12528 { ac_try='test -s conftest$ac_exeext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_cv_lib_svld_dlopen=yes
12535 else
12536 echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12539 ac_cv_lib_svld_dlopen=no
12541 rm -f conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12545 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12546 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12547 if test $ac_cv_lib_svld_dlopen = yes; then
12548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12549 else
12550 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12551 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12552 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555 ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-ldld $LIBS"
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h. */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12564 /* Override any gcc2 internal prototype to avoid an error. */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 /* We use char because int might match the return type of a gcc2
12569 builtin and then its argument prototype would still apply. */
12570 char dld_link ();
12572 main ()
12574 dld_link ();
12576 return 0;
12578 _ACEOF
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581 (eval $ac_link) 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_cxx_werror_flag"
12589 || test ! -s conftest.err'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; } &&
12595 { ac_try='test -s conftest$ac_exeext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12601 ac_cv_lib_dld_dld_link=yes
12602 else
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_cv_lib_dld_dld_link=no
12608 rm -f conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
12610 LIBS=$ac_check_lib_save_LIBS
12612 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12613 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12614 if test $ac_cv_lib_dld_dld_link = yes; then
12615 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12634 esac
12636 if test "x$lt_cv_dlopen" != xno; then
12637 enable_dlopen=yes
12638 else
12639 enable_dlopen=no
12642 case $lt_cv_dlopen in
12643 dlopen)
12644 save_CPPFLAGS="$CPPFLAGS"
12645 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12647 save_LDFLAGS="$LDFLAGS"
12648 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12650 save_LIBS="$LIBS"
12651 LIBS="$lt_cv_dlopen_libs $LIBS"
12653 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12654 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12655 if test "${lt_cv_dlopen_self+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658 if test "$cross_compiling" = yes; then :
12659 lt_cv_dlopen_self=cross
12660 else
12661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12662 lt_status=$lt_dlunknown
12663 cat > conftest.$ac_ext <<EOF
12664 #line 12664 "configure"
12665 #include "confdefs.h"
12667 #if HAVE_DLFCN_H
12668 #include <dlfcn.h>
12669 #endif
12671 #include <stdio.h>
12673 #ifdef RTLD_GLOBAL
12674 # define LT_DLGLOBAL RTLD_GLOBAL
12675 #else
12676 # ifdef DL_GLOBAL
12677 # define LT_DLGLOBAL DL_GLOBAL
12678 # else
12679 # define LT_DLGLOBAL 0
12680 # endif
12681 #endif
12683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12684 find out it does not work in some platform. */
12685 #ifndef LT_DLLAZY_OR_NOW
12686 # ifdef RTLD_LAZY
12687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12688 # else
12689 # ifdef DL_LAZY
12690 # define LT_DLLAZY_OR_NOW DL_LAZY
12691 # else
12692 # ifdef RTLD_NOW
12693 # define LT_DLLAZY_OR_NOW RTLD_NOW
12694 # else
12695 # ifdef DL_NOW
12696 # define LT_DLLAZY_OR_NOW DL_NOW
12697 # else
12698 # define LT_DLLAZY_OR_NOW 0
12699 # endif
12700 # endif
12701 # endif
12702 # endif
12703 #endif
12705 #ifdef __cplusplus
12706 extern "C" void exit (int);
12707 #endif
12709 void fnord() { int i=42;}
12710 int main ()
12712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12713 int status = $lt_dlunknown;
12715 if (self)
12717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12719 /* dlclose (self); */
12722 exit (status);
12725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12726 (eval $ac_link) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12730 (./conftest; exit; ) 2>/dev/null
12731 lt_status=$?
12732 case x$lt_status in
12733 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12734 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12735 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12736 esac
12737 else :
12738 # compilation failed
12739 lt_cv_dlopen_self=no
12742 rm -fr conftest*
12746 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12747 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12749 if test "x$lt_cv_dlopen_self" = xyes; then
12750 LDFLAGS="$LDFLAGS $link_static_flag"
12751 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12752 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12753 if test "${lt_cv_dlopen_self_static+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756 if test "$cross_compiling" = yes; then :
12757 lt_cv_dlopen_self_static=cross
12758 else
12759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12760 lt_status=$lt_dlunknown
12761 cat > conftest.$ac_ext <<EOF
12762 #line 12762 "configure"
12763 #include "confdefs.h"
12765 #if HAVE_DLFCN_H
12766 #include <dlfcn.h>
12767 #endif
12769 #include <stdio.h>
12771 #ifdef RTLD_GLOBAL
12772 # define LT_DLGLOBAL RTLD_GLOBAL
12773 #else
12774 # ifdef DL_GLOBAL
12775 # define LT_DLGLOBAL DL_GLOBAL
12776 # else
12777 # define LT_DLGLOBAL 0
12778 # endif
12779 #endif
12781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12782 find out it does not work in some platform. */
12783 #ifndef LT_DLLAZY_OR_NOW
12784 # ifdef RTLD_LAZY
12785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12786 # else
12787 # ifdef DL_LAZY
12788 # define LT_DLLAZY_OR_NOW DL_LAZY
12789 # else
12790 # ifdef RTLD_NOW
12791 # define LT_DLLAZY_OR_NOW RTLD_NOW
12792 # else
12793 # ifdef DL_NOW
12794 # define LT_DLLAZY_OR_NOW DL_NOW
12795 # else
12796 # define LT_DLLAZY_OR_NOW 0
12797 # endif
12798 # endif
12799 # endif
12800 # endif
12801 #endif
12803 #ifdef __cplusplus
12804 extern "C" void exit (int);
12805 #endif
12807 void fnord() { int i=42;}
12808 int main ()
12810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12811 int status = $lt_dlunknown;
12813 if (self)
12815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12816 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12817 /* dlclose (self); */
12820 exit (status);
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12828 (./conftest; exit; ) 2>/dev/null
12829 lt_status=$?
12830 case x$lt_status in
12831 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12832 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12833 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12834 esac
12835 else :
12836 # compilation failed
12837 lt_cv_dlopen_self_static=no
12840 rm -fr conftest*
12844 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12845 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12848 CPPFLAGS="$save_CPPFLAGS"
12849 LDFLAGS="$save_LDFLAGS"
12850 LIBS="$save_LIBS"
12852 esac
12854 case $lt_cv_dlopen_self in
12855 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12856 *) enable_dlopen_self=unknown ;;
12857 esac
12859 case $lt_cv_dlopen_self_static in
12860 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12861 *) enable_dlopen_self_static=unknown ;;
12862 esac
12866 # The else clause should only fire when bootstrapping the
12867 # libtool distribution, otherwise you forgot to ship ltmain.sh
12868 # with your package, and you will get complaints that there are
12869 # no rules to generate ltmain.sh.
12870 if test -f "$ltmain"; then
12871 # See if we are running on zsh, and set the options which allow our commands through
12872 # without removal of \ escapes.
12873 if test -n "${ZSH_VERSION+set}" ; then
12874 setopt NO_GLOB_SUBST
12876 # Now quote all the things that may contain metacharacters while being
12877 # careful not to overquote the AC_SUBSTed values. We take copies of the
12878 # variables and quote the copies for generation of the libtool script.
12879 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12880 SED SHELL STRIP \
12881 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12882 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12883 deplibs_check_method reload_flag reload_cmds need_locks \
12884 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12885 lt_cv_sys_global_symbol_to_c_name_address \
12886 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12887 old_postinstall_cmds old_postuninstall_cmds \
12888 compiler_CXX \
12889 CC_CXX \
12890 LD_CXX \
12891 lt_prog_compiler_wl_CXX \
12892 lt_prog_compiler_pic_CXX \
12893 lt_prog_compiler_static_CXX \
12894 lt_prog_compiler_no_builtin_flag_CXX \
12895 export_dynamic_flag_spec_CXX \
12896 thread_safe_flag_spec_CXX \
12897 whole_archive_flag_spec_CXX \
12898 enable_shared_with_static_runtimes_CXX \
12899 old_archive_cmds_CXX \
12900 old_archive_from_new_cmds_CXX \
12901 predep_objects_CXX \
12902 postdep_objects_CXX \
12903 predeps_CXX \
12904 postdeps_CXX \
12905 compiler_lib_search_path_CXX \
12906 archive_cmds_CXX \
12907 archive_expsym_cmds_CXX \
12908 postinstall_cmds_CXX \
12909 postuninstall_cmds_CXX \
12910 old_archive_from_expsyms_cmds_CXX \
12911 allow_undefined_flag_CXX \
12912 no_undefined_flag_CXX \
12913 export_symbols_cmds_CXX \
12914 hardcode_libdir_flag_spec_CXX \
12915 hardcode_libdir_flag_spec_ld_CXX \
12916 hardcode_libdir_separator_CXX \
12917 hardcode_automatic_CXX \
12918 module_cmds_CXX \
12919 module_expsym_cmds_CXX \
12920 lt_cv_prog_compiler_c_o_CXX \
12921 exclude_expsyms_CXX \
12922 include_expsyms_CXX; do
12924 case $var in
12925 old_archive_cmds_CXX | \
12926 old_archive_from_new_cmds_CXX | \
12927 archive_cmds_CXX | \
12928 archive_expsym_cmds_CXX | \
12929 module_cmds_CXX | \
12930 module_expsym_cmds_CXX | \
12931 old_archive_from_expsyms_cmds_CXX | \
12932 export_symbols_cmds_CXX | \
12933 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12934 postinstall_cmds | postuninstall_cmds | \
12935 old_postinstall_cmds | old_postuninstall_cmds | \
12936 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12937 # Double-quote double-evaled strings.
12938 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12943 esac
12944 done
12946 case $lt_echo in
12947 *'\$0 --fallback-echo"')
12948 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12950 esac
12952 cfgfile="$ofile"
12954 cat <<__EOF__ >> "$cfgfile"
12955 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12959 # Shell to use when invoking shell scripts.
12960 SHELL=$lt_SHELL
12962 # Whether or not to build shared libraries.
12963 build_libtool_libs=$enable_shared
12965 # Whether or not to build static libraries.
12966 build_old_libs=$enable_static
12968 # Whether or not to add -lc for building shared libraries.
12969 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12971 # Whether or not to disallow shared libs when runtime libs are static
12972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12974 # Whether or not to optimize for fast installation.
12975 fast_install=$enable_fast_install
12977 # The host system.
12978 host_alias=$host_alias
12979 host=$host
12980 host_os=$host_os
12982 # The build system.
12983 build_alias=$build_alias
12984 build=$build
12985 build_os=$build_os
12987 # An echo program that does not interpret backslashes.
12988 echo=$lt_echo
12990 # The archiver.
12991 AR=$lt_AR
12992 AR_FLAGS=$lt_AR_FLAGS
12994 # A C compiler.
12995 LTCC=$lt_LTCC
12997 # A language-specific compiler.
12998 CC=$lt_compiler_CXX
13000 # Is the compiler the GNU C compiler?
13001 with_gcc=$GCC_CXX
13003 # An ERE matcher.
13004 EGREP=$lt_EGREP
13006 # The linker used to build libraries.
13007 LD=$lt_LD_CXX
13009 # Whether we need hard or soft links.
13010 LN_S=$lt_LN_S
13012 # A BSD-compatible nm program.
13013 NM=$lt_NM
13015 # A symbol stripping program
13016 STRIP=$lt_STRIP
13018 # Used to examine libraries when file_magic_cmd begins "file"
13019 MAGIC_CMD=$MAGIC_CMD
13021 # Used on cygwin: DLL creation program.
13022 DLLTOOL="$DLLTOOL"
13024 # Used on cygwin: object dumper.
13025 OBJDUMP="$OBJDUMP"
13027 # Used on cygwin: assembler.
13028 AS="$AS"
13030 # The name of the directory that contains temporary libtool files.
13031 objdir=$objdir
13033 # How to create reloadable object files.
13034 reload_flag=$lt_reload_flag
13035 reload_cmds=$lt_reload_cmds
13037 # How to pass a linker flag through the compiler.
13038 wl=$lt_lt_prog_compiler_wl_CXX
13040 # Object file suffix (normally "o").
13041 objext="$ac_objext"
13043 # Old archive suffix (normally "a").
13044 libext="$libext"
13046 # Shared library suffix (normally ".so").
13047 shrext_cmds='$shrext_cmds'
13049 # Executable file suffix (normally "").
13050 exeext="$exeext"
13052 # Additional compiler flags for building library objects.
13053 pic_flag=$lt_lt_prog_compiler_pic_CXX
13054 pic_mode=$pic_mode
13056 # What is the maximum length of a command?
13057 max_cmd_len=$lt_cv_sys_max_cmd_len
13059 # Does compiler simultaneously support -c and -o options?
13060 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13062 # Must we lock files when doing compilation?
13063 need_locks=$lt_need_locks
13065 # Do we need the lib prefix for modules?
13066 need_lib_prefix=$need_lib_prefix
13068 # Do we need a version for libraries?
13069 need_version=$need_version
13071 # Whether dlopen is supported.
13072 dlopen_support=$enable_dlopen
13074 # Whether dlopen of programs is supported.
13075 dlopen_self=$enable_dlopen_self
13077 # Whether dlopen of statically linked programs is supported.
13078 dlopen_self_static=$enable_dlopen_self_static
13080 # Compiler flag to prevent dynamic linking.
13081 link_static_flag=$lt_lt_prog_compiler_static_CXX
13083 # Compiler flag to turn off builtin functions.
13084 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13086 # Compiler flag to allow reflexive dlopens.
13087 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13089 # Compiler flag to generate shared objects directly from archives.
13090 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13092 # Compiler flag to generate thread-safe objects.
13093 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13095 # Library versioning type.
13096 version_type=$version_type
13098 # Format of library name prefix.
13099 libname_spec=$lt_libname_spec
13101 # List of archive names. First name is the real one, the rest are links.
13102 # The last name is the one that the linker finds with -lNAME.
13103 library_names_spec=$lt_library_names_spec
13105 # The coded name of the library, if different from the real name.
13106 soname_spec=$lt_soname_spec
13108 # Commands used to build and install an old-style archive.
13109 RANLIB=$lt_RANLIB
13110 old_archive_cmds=$lt_old_archive_cmds_CXX
13111 old_postinstall_cmds=$lt_old_postinstall_cmds
13112 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13114 # Create an old-style archive from a shared archive.
13115 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13117 # Create a temporary old-style archive to link instead of a shared archive.
13118 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13120 # Commands used to build and install a shared archive.
13121 archive_cmds=$lt_archive_cmds_CXX
13122 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13123 postinstall_cmds=$lt_postinstall_cmds
13124 postuninstall_cmds=$lt_postuninstall_cmds
13126 # Commands used to build a loadable module (assumed same as above if empty)
13127 module_cmds=$lt_module_cmds_CXX
13128 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13130 # Commands to strip libraries.
13131 old_striplib=$lt_old_striplib
13132 striplib=$lt_striplib
13134 # Dependencies to place before the objects being linked to create a
13135 # shared library.
13136 predep_objects=$lt_predep_objects_CXX
13138 # Dependencies to place after the objects being linked to create a
13139 # shared library.
13140 postdep_objects=$lt_postdep_objects_CXX
13142 # Dependencies to place before the objects being linked to create a
13143 # shared library.
13144 predeps=$lt_predeps_CXX
13146 # Dependencies to place after the objects being linked to create a
13147 # shared library.
13148 postdeps=$lt_postdeps_CXX
13150 # The library search path used internally by the compiler when linking
13151 # a shared library.
13152 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13154 # Method to check whether dependent libraries are shared objects.
13155 deplibs_check_method=$lt_deplibs_check_method
13157 # Command to use when deplibs_check_method == file_magic.
13158 file_magic_cmd=$lt_file_magic_cmd
13160 # Flag that allows shared libraries with undefined symbols to be built.
13161 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13163 # Flag that forces no undefined symbols.
13164 no_undefined_flag=$lt_no_undefined_flag_CXX
13166 # Commands used to finish a libtool library installation in a directory.
13167 finish_cmds=$lt_finish_cmds
13169 # Same as above, but a single script fragment to be evaled but not shown.
13170 finish_eval=$lt_finish_eval
13172 # Take the output of nm and produce a listing of raw symbols and C names.
13173 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13175 # Transform the output of nm in a proper C declaration
13176 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13178 # Transform the output of nm in a C name address pair
13179 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13181 # This is the shared library runtime path variable.
13182 runpath_var=$runpath_var
13184 # This is the shared library path variable.
13185 shlibpath_var=$shlibpath_var
13187 # Is shlibpath searched before the hard-coded library search path?
13188 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13190 # How to hardcode a shared library path into an executable.
13191 hardcode_action=$hardcode_action_CXX
13193 # Whether we should hardcode library paths into libraries.
13194 hardcode_into_libs=$hardcode_into_libs
13196 # Flag to hardcode \$libdir into a binary during linking.
13197 # This must work even if \$libdir does not exist.
13198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13200 # If ld is used when linking, flag to hardcode \$libdir into
13201 # a binary during linking. This must work even if \$libdir does
13202 # not exist.
13203 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13205 # Whether we need a single -rpath flag with a separated argument.
13206 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13208 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13209 # resulting binary.
13210 hardcode_direct=$hardcode_direct_CXX
13212 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13213 # resulting binary.
13214 hardcode_minus_L=$hardcode_minus_L_CXX
13216 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13217 # the resulting binary.
13218 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13220 # Set to yes if building a shared library automatically hardcodes DIR into the library
13221 # and all subsequent libraries and executables linked against it.
13222 hardcode_automatic=$hardcode_automatic_CXX
13224 # Variables whose values should be saved in libtool wrapper scripts and
13225 # restored at relink time.
13226 variables_saved_for_relink="$variables_saved_for_relink"
13228 # Whether libtool must link a program against all its dependency libraries.
13229 link_all_deplibs=$link_all_deplibs_CXX
13231 # Compile-time system search path for libraries
13232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13234 # Run-time system search path for libraries
13235 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13237 # Fix the shell variable \$srcfile for the compiler.
13238 fix_srcfile_path="$fix_srcfile_path_CXX"
13240 # Set to yes if exported symbols are required.
13241 always_export_symbols=$always_export_symbols_CXX
13243 # The commands to list exported symbols.
13244 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13246 # The commands to extract the exported symbol list from a shared archive.
13247 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13249 # Symbols that should not be listed in the preloaded symbols.
13250 exclude_expsyms=$lt_exclude_expsyms_CXX
13252 # Symbols that must always be exported.
13253 include_expsyms=$lt_include_expsyms_CXX
13255 # ### END LIBTOOL TAG CONFIG: $tagname
13257 __EOF__
13260 else
13261 # If there is no Makefile yet, we rely on a make rule to execute
13262 # `config.status --recheck' to rerun these tests and create the
13263 # libtool script then.
13264 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13265 if test -f "$ltmain_in"; then
13266 test -f Makefile && make "$ltmain"
13271 ac_ext=c
13272 ac_cpp='$CPP $CPPFLAGS'
13273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13277 CC=$lt_save_CC
13278 LDCXX=$LD
13279 LD=$lt_save_LD
13280 GCC=$lt_save_GCC
13281 with_gnu_ldcxx=$with_gnu_ld
13282 with_gnu_ld=$lt_save_with_gnu_ld
13283 lt_cv_path_LDCXX=$lt_cv_path_LD
13284 lt_cv_path_LD=$lt_save_path_LD
13285 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13286 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13288 else
13289 tagname=""
13293 F77)
13294 if test -n "$F77" && test "X$F77" != "Xno"; then
13296 ac_ext=f
13297 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13298 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13302 archive_cmds_need_lc_F77=no
13303 allow_undefined_flag_F77=
13304 always_export_symbols_F77=no
13305 archive_expsym_cmds_F77=
13306 export_dynamic_flag_spec_F77=
13307 hardcode_direct_F77=no
13308 hardcode_libdir_flag_spec_F77=
13309 hardcode_libdir_flag_spec_ld_F77=
13310 hardcode_libdir_separator_F77=
13311 hardcode_minus_L_F77=no
13312 hardcode_automatic_F77=no
13313 module_cmds_F77=
13314 module_expsym_cmds_F77=
13315 link_all_deplibs_F77=unknown
13316 old_archive_cmds_F77=$old_archive_cmds
13317 no_undefined_flag_F77=
13318 whole_archive_flag_spec_F77=
13319 enable_shared_with_static_runtimes_F77=no
13321 # Source file extension for f77 test sources.
13322 ac_ext=f
13324 # Object file extension for compiled f77 test sources.
13325 objext=o
13326 objext_F77=$objext
13328 # Code to be used in simple compile tests
13329 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13331 # Code to be used in simple link tests
13332 lt_simple_link_test_code=" program t\n end\n"
13334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13336 # If no C compiler was specified, use CC.
13337 LTCC=${LTCC-"$CC"}
13339 # Allow CC to be a program name with arguments.
13340 compiler=$CC
13343 # save warnings/boilerplate of simple test code
13344 ac_outfile=conftest.$ac_objext
13345 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13347 _lt_compiler_boilerplate=`cat conftest.err`
13348 $rm conftest*
13350 ac_outfile=conftest.$ac_objext
13351 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13353 _lt_linker_boilerplate=`cat conftest.err`
13354 $rm conftest*
13357 # Allow CC to be a program name with arguments.
13358 lt_save_CC="$CC"
13359 CC=${F77-"f77"}
13360 compiler=$CC
13361 compiler_F77=$CC
13362 for cc_temp in $compiler""; do
13363 case $cc_temp in
13364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13366 \-*) ;;
13367 *) break;;
13368 esac
13369 done
13370 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13373 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13374 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13375 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13376 echo "${ECHO_T}$can_build_shared" >&6
13378 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13379 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13380 test "$can_build_shared" = "no" && enable_shared=no
13382 # On AIX, shared libraries and static libraries use the same namespace, and
13383 # are all built from PIC.
13384 case "$host_os" in
13385 aix3*)
13386 test "$enable_shared" = yes && enable_static=no
13387 if test -n "$RANLIB"; then
13388 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13389 postinstall_cmds='$RANLIB $lib'
13392 aix4* | aix5*)
13393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13394 test "$enable_shared" = yes && enable_static=no
13397 esac
13398 echo "$as_me:$LINENO: result: $enable_shared" >&5
13399 echo "${ECHO_T}$enable_shared" >&6
13401 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13402 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13403 # Make sure either enable_shared or enable_static is yes.
13404 test "$enable_shared" = yes || enable_static=yes
13405 echo "$as_me:$LINENO: result: $enable_static" >&5
13406 echo "${ECHO_T}$enable_static" >&6
13408 test "$ld_shlibs_F77" = no && can_build_shared=no
13410 GCC_F77="$G77"
13411 LD_F77="$LD"
13413 lt_prog_compiler_wl_F77=
13414 lt_prog_compiler_pic_F77=
13415 lt_prog_compiler_static_F77=
13417 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13420 if test "$GCC" = yes; then
13421 lt_prog_compiler_wl_F77='-Wl,'
13422 lt_prog_compiler_static_F77='-static'
13424 case $host_os in
13425 aix*)
13426 # All AIX code is PIC.
13427 if test "$host_cpu" = ia64; then
13428 # AIX 5 now supports IA64 processor
13429 lt_prog_compiler_static_F77='-Bstatic'
13433 amigaos*)
13434 # FIXME: we need at least 68020 code to build shared libraries, but
13435 # adding the `-m68020' flag to GCC prevents building anything better,
13436 # like `-m68040'.
13437 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13440 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13441 # PIC is the default for these OSes.
13444 mingw* | pw32* | os2*)
13445 # This hack is so that the source file can tell whether it is being
13446 # built for inclusion in a dll (and should export symbols for example).
13447 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13450 darwin* | rhapsody*)
13451 # PIC is the default on this platform
13452 # Common symbols not allowed in MH_DYLIB files
13453 lt_prog_compiler_pic_F77='-fno-common'
13456 msdosdjgpp*)
13457 # Just because we use GCC doesn't mean we suddenly get shared libraries
13458 # on systems that don't support them.
13459 lt_prog_compiler_can_build_shared_F77=no
13460 enable_shared=no
13463 sysv4*MP*)
13464 if test -d /usr/nec; then
13465 lt_prog_compiler_pic_F77=-Kconform_pic
13469 hpux*)
13470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13471 # not for PA HP-UX.
13472 case "$host_cpu" in
13473 hppa*64*|ia64*)
13474 # +Z the default
13477 lt_prog_compiler_pic_F77='-fPIC'
13479 esac
13483 lt_prog_compiler_pic_F77='-fPIC'
13485 esac
13486 else
13487 # PORTME Check for flag to pass linker flags through the system compiler.
13488 case $host_os in
13489 aix*)
13490 lt_prog_compiler_wl_F77='-Wl,'
13491 if test "$host_cpu" = ia64; then
13492 # AIX 5 now supports IA64 processor
13493 lt_prog_compiler_static_F77='-Bstatic'
13494 else
13495 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13498 darwin*)
13499 # PIC is the default on this platform
13500 # Common symbols not allowed in MH_DYLIB files
13501 case $cc_basename in
13502 xlc*)
13503 lt_prog_compiler_pic_F77='-qnocommon'
13504 lt_prog_compiler_wl_F77='-Wl,'
13506 esac
13509 mingw* | pw32* | os2*)
13510 # This hack is so that the source file can tell whether it is being
13511 # built for inclusion in a dll (and should export symbols for example).
13512 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13515 hpux9* | hpux10* | hpux11*)
13516 lt_prog_compiler_wl_F77='-Wl,'
13517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13518 # not for PA HP-UX.
13519 case "$host_cpu" in
13520 hppa*64*|ia64*)
13521 # +Z the default
13524 lt_prog_compiler_pic_F77='+Z'
13526 esac
13527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13528 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13531 irix5* | irix6* | nonstopux*)
13532 lt_prog_compiler_wl_F77='-Wl,'
13533 # PIC (with -KPIC) is the default.
13534 lt_prog_compiler_static_F77='-non_shared'
13537 newsos6)
13538 lt_prog_compiler_pic_F77='-KPIC'
13539 lt_prog_compiler_static_F77='-Bstatic'
13542 linux*)
13543 case $cc_basename in
13544 icc* | ecc*)
13545 lt_prog_compiler_wl_F77='-Wl,'
13546 lt_prog_compiler_pic_F77='-KPIC'
13547 lt_prog_compiler_static_F77='-static'
13549 pgcc* | pgf77* | pgf90*)
13550 # Portland Group compilers (*not* the Pentium gcc compiler,
13551 # which looks to be a dead project)
13552 lt_prog_compiler_wl_F77='-Wl,'
13553 lt_prog_compiler_pic_F77='-fpic'
13554 lt_prog_compiler_static_F77='-static'
13556 ccc*)
13557 lt_prog_compiler_wl_F77='-Wl,'
13558 # All Alpha code is PIC.
13559 lt_prog_compiler_static_F77='-non_shared'
13561 esac
13564 osf3* | osf4* | osf5*)
13565 lt_prog_compiler_wl_F77='-Wl,'
13566 # All OSF/1 code is PIC.
13567 lt_prog_compiler_static_F77='-non_shared'
13570 sco3.2v5*)
13571 lt_prog_compiler_pic_F77='-Kpic'
13572 lt_prog_compiler_static_F77='-dn'
13575 solaris*)
13576 lt_prog_compiler_pic_F77='-KPIC'
13577 lt_prog_compiler_static_F77='-Bstatic'
13578 case $cc_basename in
13579 f77* | f90* | f95*)
13580 lt_prog_compiler_wl_F77='-Qoption ld ';;
13582 lt_prog_compiler_wl_F77='-Wl,';;
13583 esac
13586 sunos4*)
13587 lt_prog_compiler_wl_F77='-Qoption ld '
13588 lt_prog_compiler_pic_F77='-PIC'
13589 lt_prog_compiler_static_F77='-Bstatic'
13592 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13593 lt_prog_compiler_wl_F77='-Wl,'
13594 lt_prog_compiler_pic_F77='-KPIC'
13595 lt_prog_compiler_static_F77='-Bstatic'
13598 sysv4*MP*)
13599 if test -d /usr/nec ;then
13600 lt_prog_compiler_pic_F77='-Kconform_pic'
13601 lt_prog_compiler_static_F77='-Bstatic'
13605 unicos*)
13606 lt_prog_compiler_wl_F77='-Wl,'
13607 lt_prog_compiler_can_build_shared_F77=no
13610 uts4*)
13611 lt_prog_compiler_pic_F77='-pic'
13612 lt_prog_compiler_static_F77='-Bstatic'
13616 lt_prog_compiler_can_build_shared_F77=no
13618 esac
13621 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13622 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13625 # Check to make sure the PIC flag actually works.
13627 if test -n "$lt_prog_compiler_pic_F77"; then
13629 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13630 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13631 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 lt_prog_compiler_pic_works_F77=no
13635 ac_outfile=conftest.$ac_objext
13636 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13637 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13638 # Insert the option either (1) after the last *FLAGS variable, or
13639 # (2) before a word containing "conftest.", or (3) at the end.
13640 # Note that $ac_compile itself does not contain backslashes and begins
13641 # with a dollar sign (not a hyphen), so the echo should work correctly.
13642 # The option is referenced via a variable to avoid confusing sed.
13643 lt_compile=`echo "$ac_compile" | $SED \
13644 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13646 -e 's:$: $lt_compiler_flag:'`
13647 (eval echo "\"\$as_me:13647: $lt_compile\"" >&5)
13648 (eval "$lt_compile" 2>conftest.err)
13649 ac_status=$?
13650 cat conftest.err >&5
13651 echo "$as_me:13651: \$? = $ac_status" >&5
13652 if (exit $ac_status) && test -s "$ac_outfile"; then
13653 # The compiler can only warn and ignore the option if not recognized
13654 # So say no if there are warnings other than the usual output.
13655 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13656 $SED '/^$/d' conftest.err >conftest.er2
13657 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13658 lt_prog_compiler_pic_works_F77=yes
13661 $rm conftest*
13664 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13665 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13667 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13668 case $lt_prog_compiler_pic_F77 in
13669 "" | " "*) ;;
13670 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13671 esac
13672 else
13673 lt_prog_compiler_pic_F77=
13674 lt_prog_compiler_can_build_shared_F77=no
13678 case "$host_os" in
13679 # For platforms which do not support PIC, -DPIC is meaningless:
13680 *djgpp*)
13681 lt_prog_compiler_pic_F77=
13684 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13686 esac
13688 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13689 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13690 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693 lt_cv_prog_compiler_c_o_F77=no
13694 $rm -r conftest 2>/dev/null
13695 mkdir conftest
13696 cd conftest
13697 mkdir out
13698 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13700 lt_compiler_flag="-o out/conftest2.$ac_objext"
13701 # Insert the option either (1) after the last *FLAGS variable, or
13702 # (2) before a word containing "conftest.", or (3) at the end.
13703 # Note that $ac_compile itself does not contain backslashes and begins
13704 # with a dollar sign (not a hyphen), so the echo should work correctly.
13705 lt_compile=`echo "$ac_compile" | $SED \
13706 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13708 -e 's:$: $lt_compiler_flag:'`
13709 (eval echo "\"\$as_me:13709: $lt_compile\"" >&5)
13710 (eval "$lt_compile" 2>out/conftest.err)
13711 ac_status=$?
13712 cat out/conftest.err >&5
13713 echo "$as_me:13713: \$? = $ac_status" >&5
13714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13715 then
13716 # The compiler can only warn and ignore the option if not recognized
13717 # So say no if there are warnings
13718 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13719 $SED '/^$/d' out/conftest.err >out/conftest.er2
13720 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13721 lt_cv_prog_compiler_c_o_F77=yes
13724 chmod u+w .
13725 $rm conftest*
13726 # SGI C++ compiler will create directory out/ii_files/ for
13727 # template instantiation
13728 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13729 $rm out/* && rmdir out
13730 cd ..
13731 rmdir conftest
13732 $rm conftest*
13735 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13736 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13739 hard_links="nottested"
13740 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13741 # do not overwrite the value of need_locks provided by the user
13742 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13743 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13744 hard_links=yes
13745 $rm conftest*
13746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13747 touch conftest.a
13748 ln conftest.a conftest.b 2>&5 || hard_links=no
13749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13750 echo "$as_me:$LINENO: result: $hard_links" >&5
13751 echo "${ECHO_T}$hard_links" >&6
13752 if test "$hard_links" = no; then
13753 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13754 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13755 need_locks=warn
13757 else
13758 need_locks=no
13761 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13762 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13764 runpath_var=
13765 allow_undefined_flag_F77=
13766 enable_shared_with_static_runtimes_F77=no
13767 archive_cmds_F77=
13768 archive_expsym_cmds_F77=
13769 old_archive_From_new_cmds_F77=
13770 old_archive_from_expsyms_cmds_F77=
13771 export_dynamic_flag_spec_F77=
13772 whole_archive_flag_spec_F77=
13773 thread_safe_flag_spec_F77=
13774 hardcode_libdir_flag_spec_F77=
13775 hardcode_libdir_flag_spec_ld_F77=
13776 hardcode_libdir_separator_F77=
13777 hardcode_direct_F77=no
13778 hardcode_minus_L_F77=no
13779 hardcode_shlibpath_var_F77=unsupported
13780 link_all_deplibs_F77=unknown
13781 hardcode_automatic_F77=no
13782 module_cmds_F77=
13783 module_expsym_cmds_F77=
13784 always_export_symbols_F77=no
13785 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13786 # include_expsyms should be a list of space-separated symbols to be *always*
13787 # included in the symbol list
13788 include_expsyms_F77=
13789 # exclude_expsyms can be an extended regexp of symbols to exclude
13790 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13791 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13792 # as well as any symbol that contains `d'.
13793 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13794 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13795 # platforms (ab)use it in PIC code, but their linkers get confused if
13796 # the symbol is explicitly referenced. Since portable code cannot
13797 # rely on this symbol name, it's probably fine to never include it in
13798 # preloaded symbol tables.
13799 extract_expsyms_cmds=
13800 # Just being paranoid about ensuring that cc_basename is set.
13801 for cc_temp in $compiler""; do
13802 case $cc_temp in
13803 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13804 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13805 \-*) ;;
13806 *) break;;
13807 esac
13808 done
13809 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13811 case $host_os in
13812 cygwin* | mingw* | pw32*)
13813 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13814 # When not using gcc, we currently assume that we are using
13815 # Microsoft Visual C++.
13816 if test "$GCC" != yes; then
13817 with_gnu_ld=no
13820 openbsd*)
13821 with_gnu_ld=no
13823 esac
13825 ld_shlibs_F77=yes
13826 if test "$with_gnu_ld" = yes; then
13827 # If archive_cmds runs LD, not CC, wlarc should be empty
13828 wlarc='${wl}'
13830 # Set some defaults for GNU ld with shared library support. These
13831 # are reset later if shared libraries are not supported. Putting them
13832 # here allows them to be overridden if necessary.
13833 runpath_var=LD_RUN_PATH
13834 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13835 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13836 # ancient GNU ld didn't support --whole-archive et. al.
13837 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13838 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13839 else
13840 whole_archive_flag_spec_F77=
13842 supports_anon_versioning=no
13843 case `$LD -v 2>/dev/null` in
13844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13847 *\ 2.11.*) ;; # other 2.11 versions
13848 *) supports_anon_versioning=yes ;;
13849 esac
13851 # See if GNU ld supports shared libraries.
13852 case $host_os in
13853 aix3* | aix4* | aix5*)
13854 # On AIX/PPC, the GNU linker is very broken
13855 if test "$host_cpu" != ia64; then
13856 ld_shlibs_F77=no
13857 cat <<EOF 1>&2
13859 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13860 *** to be unable to reliably create shared libraries on AIX.
13861 *** Therefore, libtool is disabling shared libraries support. If you
13862 *** really care for shared libraries, you may want to modify your PATH
13863 *** so that a non-GNU linker is found, and then restart.
13869 amigaos*)
13870 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)'
13871 hardcode_libdir_flag_spec_F77='-L$libdir'
13872 hardcode_minus_L_F77=yes
13874 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13875 # that the semantics of dynamic libraries on AmigaOS, at least up
13876 # to version 4, is to share data among multiple programs linked
13877 # with the same dynamic library. Since this doesn't match the
13878 # behavior of shared libraries on other platforms, we can't use
13879 # them.
13880 ld_shlibs_F77=no
13883 beos*)
13884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13885 allow_undefined_flag_F77=unsupported
13886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13887 # support --undefined. This deserves some investigation. FIXME
13888 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13889 else
13890 ld_shlibs_F77=no
13894 cygwin* | mingw* | pw32*)
13895 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13896 # as there is no search path for DLLs.
13897 hardcode_libdir_flag_spec_F77='-L$libdir'
13898 allow_undefined_flag_F77=unsupported
13899 always_export_symbols_F77=no
13900 enable_shared_with_static_runtimes_F77=yes
13901 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13903 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13905 # If the export-symbols file already is a .def file (1st line
13906 # is EXPORTS), use it as is; otherwise, prepend...
13907 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13908 cp $export_symbols $output_objdir/$soname.def;
13909 else
13910 echo EXPORTS > $output_objdir/$soname.def;
13911 cat $export_symbols >> $output_objdir/$soname.def;
13913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13914 else
13915 ld_shlibs_F77=no
13919 linux*)
13920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13921 tmp_addflag=
13922 case $cc_basename,$host_cpu in
13923 pgcc*) # Portland Group C compiler
13924 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13925 tmp_addflag=' $pic_flag'
13927 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13928 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13929 tmp_addflag=' $pic_flag -Mnomain' ;;
13930 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13931 tmp_addflag=' -i_dynamic' ;;
13932 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13933 tmp_addflag=' -i_dynamic -nofor_main' ;;
13934 ifc* | ifort*) # Intel Fortran compiler
13935 tmp_addflag=' -nofor_main' ;;
13936 esac
13937 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13939 if test $supports_anon_versioning = yes; then
13940 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13942 $echo "local: *; };" >> $output_objdir/$libname.ver~
13943 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13945 else
13946 ld_shlibs_F77=no
13950 netbsd*)
13951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13952 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13953 wlarc=
13954 else
13955 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13956 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13960 solaris* | sysv5*)
13961 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13962 ld_shlibs_F77=no
13963 cat <<EOF 1>&2
13965 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13966 *** create shared libraries on Solaris systems. Therefore, libtool
13967 *** is disabling shared libraries support. We urge you to upgrade GNU
13968 *** binutils to release 2.9.1 or newer. Another option is to modify
13969 *** your PATH or compiler configuration so that the native linker is
13970 *** used, and then restart.
13973 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13974 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13975 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13976 else
13977 ld_shlibs_F77=no
13981 sunos4*)
13982 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13983 wlarc=
13984 hardcode_direct_F77=yes
13985 hardcode_shlibpath_var_F77=no
13989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13990 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13991 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13992 else
13993 ld_shlibs_F77=no
13996 esac
13998 if test "$ld_shlibs_F77" = no; then
13999 runpath_var=
14000 hardcode_libdir_flag_spec_F77=
14001 export_dynamic_flag_spec_F77=
14002 whole_archive_flag_spec_F77=
14004 else
14005 # PORTME fill in a description of your system's linker (not GNU ld)
14006 case $host_os in
14007 aix3*)
14008 allow_undefined_flag_F77=unsupported
14009 always_export_symbols_F77=yes
14010 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'
14011 # Note: this linker hardcodes the directories in LIBPATH if there
14012 # are no directories specified by -L.
14013 hardcode_minus_L_F77=yes
14014 if test "$GCC" = yes && test -z "$link_static_flag"; then
14015 # Neither direct hardcoding nor static linking is supported with a
14016 # broken collect2.
14017 hardcode_direct_F77=unsupported
14021 aix4* | aix5*)
14022 if test "$host_cpu" = ia64; then
14023 # On IA64, the linker does run time linking by default, so we don't
14024 # have to do anything special.
14025 aix_use_runtimelinking=no
14026 exp_sym_flag='-Bexport'
14027 no_entry_flag=""
14028 else
14029 # If we're using GNU nm, then we don't want the "-C" option.
14030 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14031 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14032 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'
14033 else
14034 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'
14036 aix_use_runtimelinking=no
14038 # Test if we are trying to use run time linking or normal
14039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14040 # need to do runtime linking.
14041 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14042 for ld_flag in $LDFLAGS; do
14043 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14044 aix_use_runtimelinking=yes
14045 break
14047 done
14048 esac
14050 exp_sym_flag='-bexport'
14051 no_entry_flag='-bnoentry'
14054 # When large executables or shared objects are built, AIX ld can
14055 # have problems creating the table of contents. If linking a library
14056 # or program results in "error TOC overflow" add -mminimal-toc to
14057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14060 archive_cmds_F77=''
14061 hardcode_direct_F77=yes
14062 hardcode_libdir_separator_F77=':'
14063 link_all_deplibs_F77=yes
14065 if test "$GCC" = yes; then
14066 case $host_os in aix4.[012]|aix4.[012].*)
14067 # We only want to do this on AIX 4.2 and lower, the check
14068 # below for broken collect2 doesn't work under 4.3+
14069 collect2name=`${CC} -print-prog-name=collect2`
14070 if test -f "$collect2name" && \
14071 strings "$collect2name" | grep resolve_lib_name >/dev/null
14072 then
14073 # We have reworked collect2
14074 hardcode_direct_F77=yes
14075 else
14076 # We have old collect2
14077 hardcode_direct_F77=unsupported
14078 # It fails to find uninstalled libraries when the uninstalled
14079 # path is not listed in the libpath. Setting hardcode_minus_L
14080 # to unsupported forces relinking
14081 hardcode_minus_L_F77=yes
14082 hardcode_libdir_flag_spec_F77='-L$libdir'
14083 hardcode_libdir_separator_F77=
14085 esac
14086 shared_flag='-shared'
14087 if test "$aix_use_runtimelinking" = yes; then
14088 shared_flag="$shared_flag "'${wl}-G'
14090 else
14091 # not using gcc
14092 if test "$host_cpu" = ia64; then
14093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14094 # chokes on -Wl,-G. The following line is correct:
14095 shared_flag='-G'
14096 else
14097 if test "$aix_use_runtimelinking" = yes; then
14098 shared_flag='${wl}-G'
14099 else
14100 shared_flag='${wl}-bM:SRE'
14105 # It seems that -bexpall does not export symbols beginning with
14106 # underscore (_), so it is better to generate a list of symbols to export.
14107 always_export_symbols_F77=yes
14108 if test "$aix_use_runtimelinking" = yes; then
14109 # Warning - without using the other runtime loading flags (-brtl),
14110 # -berok will link without error, but may produce a broken library.
14111 allow_undefined_flag_F77='-berok'
14112 # Determine the default libpath from the value encoded in an empty executable.
14113 cat >conftest.$ac_ext <<_ACEOF
14114 program main
14117 _ACEOF
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120 (eval $ac_link) 2>conftest.er1
14121 ac_status=$?
14122 grep -v '^ *+' conftest.er1 >conftest.err
14123 rm -f conftest.er1
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_f77_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14143 # Check for a 64-bit object if we didn't find anything.
14144 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; }
14145 }'`; fi
14146 else
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14151 rm -f conftest.err conftest.$ac_objext \
14152 conftest$ac_exeext conftest.$ac_ext
14153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14155 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14156 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"
14157 else
14158 if test "$host_cpu" = ia64; then
14159 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14160 allow_undefined_flag_F77="-z nodefs"
14161 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"
14162 else
14163 # Determine the default libpath from the value encoded in an empty executable.
14164 cat >conftest.$ac_ext <<_ACEOF
14165 program main
14168 _ACEOF
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14171 (eval $ac_link) 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_f77_werror_flag"
14179 || test ! -s conftest.err'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest$ac_exeext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14194 # Check for a 64-bit object if we didn't find anything.
14195 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; }
14196 }'`; fi
14197 else
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14202 rm -f conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14206 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14207 # Warning - without using the other run time loading flags,
14208 # -berok will link without error, but may produce a broken library.
14209 no_undefined_flag_F77=' ${wl}-bernotok'
14210 allow_undefined_flag_F77=' ${wl}-berok'
14211 # -bexpall does not export symbols beginning with underscore (_)
14212 always_export_symbols_F77=yes
14213 # Exported symbols can be pulled into shared objects from archives
14214 whole_archive_flag_spec_F77=' '
14215 archive_cmds_need_lc_F77=yes
14216 # This is similar to how AIX traditionally builds it's shared libraries.
14217 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'
14222 amigaos*)
14223 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)'
14224 hardcode_libdir_flag_spec_F77='-L$libdir'
14225 hardcode_minus_L_F77=yes
14226 # see comment about different semantics on the GNU ld section
14227 ld_shlibs_F77=no
14230 bsdi[45]*)
14231 export_dynamic_flag_spec_F77=-rdynamic
14234 cygwin* | mingw* | pw32*)
14235 # When not using gcc, we currently assume that we are using
14236 # Microsoft Visual C++.
14237 # hardcode_libdir_flag_spec is actually meaningless, as there is
14238 # no search path for DLLs.
14239 hardcode_libdir_flag_spec_F77=' '
14240 allow_undefined_flag_F77=unsupported
14241 # Tell ltmain to make .lib files, not .a files.
14242 libext=lib
14243 # Tell ltmain to make .dll files, not .so files.
14244 shrext_cmds=".dll"
14245 # FIXME: Setting linknames here is a bad hack.
14246 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14247 # The linker will automatically build a .lib file if we build a DLL.
14248 old_archive_From_new_cmds_F77='true'
14249 # FIXME: Should let the user specify the lib program.
14250 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14251 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14252 enable_shared_with_static_runtimes_F77=yes
14255 darwin* | rhapsody*)
14256 case "$host_os" in
14257 rhapsody* | darwin1.[012])
14258 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14260 *) # Darwin 1.3 on
14261 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14262 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14263 else
14264 case ${MACOSX_DEPLOYMENT_TARGET} in
14265 10.[012])
14266 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14268 10.*)
14269 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14271 esac
14274 esac
14275 archive_cmds_need_lc_F77=no
14276 hardcode_direct_F77=no
14277 hardcode_automatic_F77=yes
14278 hardcode_shlibpath_var_F77=unsupported
14279 whole_archive_flag_spec_F77=''
14280 link_all_deplibs_F77=yes
14281 if test "$GCC" = yes ; then
14282 output_verbose_link_cmd='echo'
14283 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14284 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14285 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14286 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14287 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14288 else
14289 case $cc_basename in
14290 xlc*)
14291 output_verbose_link_cmd='echo'
14292 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14293 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14294 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14295 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14296 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14299 ld_shlibs_F77=no
14301 esac
14305 dgux*)
14306 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14307 hardcode_libdir_flag_spec_F77='-L$libdir'
14308 hardcode_shlibpath_var_F77=no
14311 freebsd1*)
14312 ld_shlibs_F77=no
14315 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14316 # support. Future versions do this automatically, but an explicit c++rt0.o
14317 # does not break anything, and helps significantly (at the cost of a little
14318 # extra space).
14319 freebsd2.2*)
14320 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14321 hardcode_libdir_flag_spec_F77='-R$libdir'
14322 hardcode_direct_F77=yes
14323 hardcode_shlibpath_var_F77=no
14326 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14327 freebsd2*)
14328 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14329 hardcode_direct_F77=yes
14330 hardcode_minus_L_F77=yes
14331 hardcode_shlibpath_var_F77=no
14334 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14335 freebsd* | kfreebsd*-gnu | dragonfly*)
14336 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14337 hardcode_libdir_flag_spec_F77='-R$libdir'
14338 hardcode_direct_F77=yes
14339 hardcode_shlibpath_var_F77=no
14342 hpux9*)
14343 if test "$GCC" = yes; then
14344 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'
14345 else
14346 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'
14348 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14349 hardcode_libdir_separator_F77=:
14350 hardcode_direct_F77=yes
14352 # hardcode_minus_L: Not really in the search PATH,
14353 # but as the default location of the library.
14354 hardcode_minus_L_F77=yes
14355 export_dynamic_flag_spec_F77='${wl}-E'
14358 hpux10* | hpux11*)
14359 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14360 case "$host_cpu" in
14361 hppa*64*|ia64*)
14362 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14365 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14367 esac
14368 else
14369 case "$host_cpu" in
14370 hppa*64*|ia64*)
14371 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14374 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14376 esac
14378 if test "$with_gnu_ld" = no; then
14379 case "$host_cpu" in
14380 hppa*64*)
14381 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14382 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14383 hardcode_libdir_separator_F77=:
14384 hardcode_direct_F77=no
14385 hardcode_shlibpath_var_F77=no
14387 ia64*)
14388 hardcode_libdir_flag_spec_F77='-L$libdir'
14389 hardcode_direct_F77=no
14390 hardcode_shlibpath_var_F77=no
14392 # hardcode_minus_L: Not really in the search PATH,
14393 # but as the default location of the library.
14394 hardcode_minus_L_F77=yes
14397 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14398 hardcode_libdir_separator_F77=:
14399 hardcode_direct_F77=yes
14400 export_dynamic_flag_spec_F77='${wl}-E'
14402 # hardcode_minus_L: Not really in the search PATH,
14403 # but as the default location of the library.
14404 hardcode_minus_L_F77=yes
14406 esac
14410 irix5* | irix6* | nonstopux*)
14411 if test "$GCC" = yes; then
14412 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'
14413 else
14414 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'
14415 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14418 hardcode_libdir_separator_F77=:
14419 link_all_deplibs_F77=yes
14422 netbsd*)
14423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14424 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14425 else
14426 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14428 hardcode_libdir_flag_spec_F77='-R$libdir'
14429 hardcode_direct_F77=yes
14430 hardcode_shlibpath_var_F77=no
14433 newsos6)
14434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14435 hardcode_direct_F77=yes
14436 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14437 hardcode_libdir_separator_F77=:
14438 hardcode_shlibpath_var_F77=no
14441 openbsd*)
14442 hardcode_direct_F77=yes
14443 hardcode_shlibpath_var_F77=no
14444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14445 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14446 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14447 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14448 export_dynamic_flag_spec_F77='${wl}-E'
14449 else
14450 case $host_os in
14451 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14452 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_libdir_flag_spec_F77='-R$libdir'
14456 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14457 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14459 esac
14463 os2*)
14464 hardcode_libdir_flag_spec_F77='-L$libdir'
14465 hardcode_minus_L_F77=yes
14466 allow_undefined_flag_F77=unsupported
14467 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'
14468 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14471 osf3*)
14472 if test "$GCC" = yes; then
14473 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14474 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'
14475 else
14476 allow_undefined_flag_F77=' -expect_unresolved \*'
14477 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'
14479 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14480 hardcode_libdir_separator_F77=:
14483 osf4* | osf5*) # as osf3* with the addition of -msym flag
14484 if test "$GCC" = yes; then
14485 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14486 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'
14487 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14488 else
14489 allow_undefined_flag_F77=' -expect_unresolved \*'
14490 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'
14491 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~
14492 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14494 # Both c and cxx compiler support -rpath directly
14495 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14497 hardcode_libdir_separator_F77=:
14500 sco3.2v5*)
14501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14502 hardcode_shlibpath_var_F77=no
14503 export_dynamic_flag_spec_F77='${wl}-Bexport'
14504 runpath_var=LD_RUN_PATH
14505 hardcode_runpath_var=yes
14508 solaris*)
14509 no_undefined_flag_F77=' -z text'
14510 if test "$GCC" = yes; then
14511 wlarc='${wl}'
14512 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14513 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14514 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14515 else
14516 wlarc=''
14517 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14518 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14521 hardcode_libdir_flag_spec_F77='-R$libdir'
14522 hardcode_shlibpath_var_F77=no
14523 case $host_os in
14524 solaris2.[0-5] | solaris2.[0-5].*) ;;
14526 # The compiler driver will combine linker options so we
14527 # cannot just pass the convience library names through
14528 # without $wl, iff we do not link with $LD.
14529 # Luckily, gcc supports the same syntax we need for Sun Studio.
14530 # Supported since Solaris 2.6 (maybe 2.5.1?)
14531 case $wlarc in
14533 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14535 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14536 esac ;;
14537 esac
14538 link_all_deplibs_F77=yes
14541 sunos4*)
14542 if test "x$host_vendor" = xsequent; then
14543 # Use $CC to link under sequent, because it throws in some extra .o
14544 # files that make .init and .fini sections work.
14545 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14546 else
14547 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_libdir_flag_spec_F77='-L$libdir'
14550 hardcode_direct_F77=yes
14551 hardcode_minus_L_F77=yes
14552 hardcode_shlibpath_var_F77=no
14555 sysv4)
14556 case $host_vendor in
14557 sni)
14558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559 hardcode_direct_F77=yes # is this really true???
14561 siemens)
14562 ## LD is ld it makes a PLAMLIB
14563 ## CC just makes a GrossModule.
14564 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14565 reload_cmds_F77='$CC -r -o $output$reload_objs'
14566 hardcode_direct_F77=no
14568 motorola)
14569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14570 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14572 esac
14573 runpath_var='LD_RUN_PATH'
14574 hardcode_shlibpath_var_F77=no
14577 sysv4.3*)
14578 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14579 hardcode_shlibpath_var_F77=no
14580 export_dynamic_flag_spec_F77='-Bexport'
14583 sysv4*MP*)
14584 if test -d /usr/nec; then
14585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586 hardcode_shlibpath_var_F77=no
14587 runpath_var=LD_RUN_PATH
14588 hardcode_runpath_var=yes
14589 ld_shlibs_F77=yes
14593 sysv4.2uw2*)
14594 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14595 hardcode_direct_F77=yes
14596 hardcode_minus_L_F77=no
14597 hardcode_shlibpath_var_F77=no
14598 hardcode_runpath_var=yes
14599 runpath_var=LD_RUN_PATH
14602 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14603 no_undefined_flag_F77='${wl}-z ${wl}text'
14604 if test "$GCC" = yes; then
14605 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14606 else
14607 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 runpath_var='LD_RUN_PATH'
14610 hardcode_shlibpath_var_F77=no
14613 sysv5*)
14614 no_undefined_flag_F77=' -z text'
14615 # $CC -shared without GNU ld will not create a library from C++
14616 # object files and a static libstdc++, better avoid it by now
14617 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14620 hardcode_libdir_flag_spec_F77=
14621 hardcode_shlibpath_var_F77=no
14622 runpath_var='LD_RUN_PATH'
14625 uts4*)
14626 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14627 hardcode_libdir_flag_spec_F77='-L$libdir'
14628 hardcode_shlibpath_var_F77=no
14632 ld_shlibs_F77=no
14634 esac
14637 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14638 echo "${ECHO_T}$ld_shlibs_F77" >&6
14639 test "$ld_shlibs_F77" = no && can_build_shared=no
14641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14642 if test "$GCC" = yes; then
14643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14647 # Do we need to explicitly link libc?
14649 case "x$archive_cmds_need_lc_F77" in
14650 x|xyes)
14651 # Assume -lc should be added
14652 archive_cmds_need_lc_F77=yes
14654 if test "$enable_shared" = yes && test "$GCC" = yes; then
14655 case $archive_cmds_F77 in
14656 *'~'*)
14657 # FIXME: we may have to deal with multi-command sequences.
14659 '$CC '*)
14660 # Test whether the compiler implicitly links with -lc since on some
14661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14662 # to ld, don't add -lc before -lgcc.
14663 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14665 $rm conftest*
14666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14669 (eval $ac_compile) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } 2>conftest.err; then
14673 soname=conftest
14674 lib=conftest
14675 libobjs=conftest.$ac_objext
14676 deplibs=
14677 wl=$lt_prog_compiler_wl_F77
14678 compiler_flags=-v
14679 linker_flags=-v
14680 verstring=
14681 output_objdir=.
14682 libname=conftest
14683 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14684 allow_undefined_flag_F77=
14685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14686 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }
14690 then
14691 archive_cmds_need_lc_F77=no
14692 else
14693 archive_cmds_need_lc_F77=yes
14695 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14696 else
14697 cat conftest.err 1>&5
14699 $rm conftest*
14700 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14701 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14703 esac
14706 esac
14708 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14710 library_names_spec=
14711 libname_spec='lib$name'
14712 soname_spec=
14713 shrext_cmds=".so"
14714 postinstall_cmds=
14715 postuninstall_cmds=
14716 finish_cmds=
14717 finish_eval=
14718 shlibpath_var=
14719 shlibpath_overrides_runpath=unknown
14720 version_type=none
14721 dynamic_linker="$host_os ld.so"
14722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14723 if test "$GCC" = yes; then
14724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14726 # if the path contains ";" then we assume it to be the separator
14727 # otherwise default to the standard path separator (i.e. ":") - it is
14728 # assumed that no part of a normal pathname contains ";" but that should
14729 # okay in the real world where ";" in dirpaths is itself problematic.
14730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14731 else
14732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14734 else
14735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14737 need_lib_prefix=unknown
14738 hardcode_into_libs=no
14740 # when you set need_version to no, make sure it does not cause -set_version
14741 # flags to be left without arguments
14742 need_version=unknown
14744 case $host_os in
14745 aix3*)
14746 version_type=linux
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14748 shlibpath_var=LIBPATH
14750 # AIX 3 has no versioning support, so we append a major version to the name.
14751 soname_spec='${libname}${release}${shared_ext}$major'
14754 aix4* | aix5*)
14755 version_type=linux
14756 need_lib_prefix=no
14757 need_version=no
14758 hardcode_into_libs=yes
14759 if test "$host_cpu" = ia64; then
14760 # AIX 5 supports IA64
14761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14762 shlibpath_var=LD_LIBRARY_PATH
14763 else
14764 # With GCC up to 2.95.x, collect2 would create an import file
14765 # for dependence libraries. The import file would start with
14766 # the line `#! .'. This would cause the generated library to
14767 # depend on `.', always an invalid library. This was fixed in
14768 # development snapshots of GCC prior to 3.0.
14769 case $host_os in
14770 aix4 | aix4.[01] | aix4.[01].*)
14771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14772 echo ' yes '
14773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14775 else
14776 can_build_shared=no
14779 esac
14780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14781 # soname into executable. Probably we can add versioning support to
14782 # collect2, so additional links can be useful in future.
14783 if test "$aix_use_runtimelinking" = yes; then
14784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14785 # instead of lib<name>.a to let people know that these are not
14786 # typical AIX shared libraries.
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788 else
14789 # We preserve .a as extension for shared libraries through AIX4.2
14790 # and later when we are not doing run time linking.
14791 library_names_spec='${libname}${release}.a $libname.a'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14794 shlibpath_var=LIBPATH
14798 amigaos*)
14799 library_names_spec='$libname.ixlibrary $libname.a'
14800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14801 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'
14804 beos*)
14805 library_names_spec='${libname}${shared_ext}'
14806 dynamic_linker="$host_os ld.so"
14807 shlibpath_var=LIBRARY_PATH
14810 bsdi[45]*)
14811 version_type=linux
14812 need_version=no
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14819 # the default ld.so.conf also contains /usr/contrib/lib and
14820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14821 # libtool to hard-code these into programs
14824 cygwin* | mingw* | pw32*)
14825 version_type=windows
14826 shrext_cmds=".dll"
14827 need_version=no
14828 need_lib_prefix=no
14830 case $GCC,$host_os in
14831 yes,cygwin* | yes,mingw* | yes,pw32*)
14832 library_names_spec='$libname.dll.a'
14833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14834 postinstall_cmds='base_file=`basename \${file}`~
14835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14836 dldir=$destdir/`dirname \$dlpath`~
14837 test -d \$dldir || mkdir -p \$dldir~
14838 $install_prog $dir/$dlname \$dldir/$dlname'
14839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14840 dlpath=$dir/\$dldll~
14841 $rm \$dlpath'
14842 shlibpath_overrides_runpath=yes
14844 case $host_os in
14845 cygwin*)
14846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14847 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14848 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14850 mingw*)
14851 # MinGW DLLs use traditional 'lib' prefix
14852 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14853 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14854 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14855 # It is most probably a Windows format PATH printed by
14856 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14857 # path with ; separators, and with drive letters. We can handle the
14858 # drive letters (cygwin fileutils understands them), so leave them,
14859 # especially as we might pass files found there to a mingw objdump,
14860 # which wouldn't understand a cygwinified path. Ahh.
14861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14862 else
14863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14866 pw32*)
14867 # pw32 DLLs use 'pw' prefix rather than 'lib'
14868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14870 esac
14874 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14876 esac
14877 dynamic_linker='Win32 ld.exe'
14878 # FIXME: first we should search . and the directory the executable is in
14879 shlibpath_var=PATH
14882 darwin* | rhapsody*)
14883 dynamic_linker="$host_os dyld"
14884 version_type=darwin
14885 need_lib_prefix=no
14886 need_version=no
14887 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14888 soname_spec='${libname}${release}${major}$shared_ext'
14889 shlibpath_overrides_runpath=yes
14890 shlibpath_var=DYLD_LIBRARY_PATH
14891 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14892 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14893 if test "$GCC" = yes; then
14894 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"`
14895 else
14896 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14901 dgux*)
14902 version_type=linux
14903 need_lib_prefix=no
14904 need_version=no
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14910 freebsd1*)
14911 dynamic_linker=no
14914 kfreebsd*-gnu)
14915 version_type=linux
14916 need_lib_prefix=no
14917 need_version=no
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 shlibpath_overrides_runpath=no
14922 hardcode_into_libs=yes
14923 dynamic_linker='GNU ld.so'
14926 freebsd* | dragonfly*)
14927 # DragonFly does not have aout. When/if they implement a new
14928 # versioning mechanism, adjust this.
14929 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14930 version_type=freebsd-$objformat
14931 case $version_type in
14932 freebsd-elf*)
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14934 need_version=no
14935 need_lib_prefix=no
14937 freebsd-*)
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14939 need_version=yes
14941 esac
14942 shlibpath_var=LD_LIBRARY_PATH
14943 case $host_os in
14944 freebsd2*)
14945 shlibpath_overrides_runpath=yes
14947 freebsd3.[01]* | freebsdelf3.[01]*)
14948 shlibpath_overrides_runpath=yes
14949 hardcode_into_libs=yes
14951 *) # from 3.2 on
14952 shlibpath_overrides_runpath=no
14953 hardcode_into_libs=yes
14955 esac
14958 gnu*)
14959 version_type=linux
14960 need_lib_prefix=no
14961 need_version=no
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 hardcode_into_libs=yes
14968 hpux9* | hpux10* | hpux11*)
14969 # Give a soname corresponding to the major version so that dld.sl refuses to
14970 # link against other versions.
14971 version_type=sunos
14972 need_lib_prefix=no
14973 need_version=no
14974 case "$host_cpu" in
14975 ia64*)
14976 shrext_cmds='.so'
14977 hardcode_into_libs=yes
14978 dynamic_linker="$host_os dld.so"
14979 shlibpath_var=LD_LIBRARY_PATH
14980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 if test "X$HPUX_IA64_MODE" = X32; then
14984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14985 else
14986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14990 hppa*64*)
14991 shrext_cmds='.sl'
14992 hardcode_into_libs=yes
14993 dynamic_linker="$host_os dld.sl"
14994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15002 shrext_cmds='.sl'
15003 dynamic_linker="$host_os dld.sl"
15004 shlibpath_var=SHLIB_PATH
15005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15009 esac
15010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15011 postinstall_cmds='chmod 555 $lib'
15014 irix5* | irix6* | nonstopux*)
15015 case $host_os in
15016 nonstopux*) version_type=nonstopux ;;
15018 if test "$lt_cv_prog_gnu_ld" = yes; then
15019 version_type=linux
15020 else
15021 version_type=irix
15022 fi ;;
15023 esac
15024 need_lib_prefix=no
15025 need_version=no
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15028 case $host_os in
15029 irix5* | nonstopux*)
15030 libsuff= shlibsuff=
15033 case $LD in # libtool.m4 will add one of these switches to LD
15034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15035 libsuff= shlibsuff= libmagic=32-bit;;
15036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15037 libsuff=32 shlibsuff=N32 libmagic=N32;;
15038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15040 *) libsuff= shlibsuff= libmagic=never-match;;
15041 esac
15043 esac
15044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15045 shlibpath_overrides_runpath=no
15046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15048 hardcode_into_libs=yes
15051 # No shared lib support for Linux oldld, aout, or coff.
15052 linux*oldld* | linux*aout* | linux*coff*)
15053 dynamic_linker=no
15056 # This must be Linux ELF.
15057 linux*)
15058 version_type=linux
15059 need_lib_prefix=no
15060 need_version=no
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15062 soname_spec='${libname}${release}${shared_ext}$major'
15063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15064 shlibpath_var=LD_LIBRARY_PATH
15065 shlibpath_overrides_runpath=no
15066 # This implies no fast_install, which is unacceptable.
15067 # Some rework will be needed to allow for fast_install
15068 # before this can be enabled.
15069 hardcode_into_libs=yes
15071 # find out which ABI we are using
15072 libsuff=
15073 case "$host_cpu" in
15074 x86_64*|s390x*|powerpc64*)
15075 echo '#line 15075 "configure"' > conftest.$ac_ext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; then
15081 case `/usr/bin/file conftest.$ac_objext` in
15082 *64-bit*)
15083 libsuff=64
15084 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15086 esac
15088 rm -rf conftest*
15090 esac
15092 # Append ld.so.conf contents to the search path
15093 if test -f /etc/ld.so.conf; then
15094 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15095 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15098 # We used to test for /lib/ld.so.1 and disable shared libraries on
15099 # powerpc, because MkLinux only supported shared libraries with the
15100 # GNU dynamic linker. Since this was broken with cross compilers,
15101 # most powerpc-linux boxes support dynamic linking these days and
15102 # people can always --disable-shared, the test was removed, and we
15103 # assume the GNU/Linux dynamic linker is in use.
15104 dynamic_linker='GNU/Linux ld.so'
15107 knetbsd*-gnu)
15108 version_type=linux
15109 need_lib_prefix=no
15110 need_version=no
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=no
15115 hardcode_into_libs=yes
15116 dynamic_linker='GNU ld.so'
15119 netbsd*)
15120 version_type=sunos
15121 need_lib_prefix=no
15122 need_version=no
15123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15126 dynamic_linker='NetBSD (a.out) ld.so'
15127 else
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 dynamic_linker='NetBSD ld.elf_so'
15132 shlibpath_var=LD_LIBRARY_PATH
15133 shlibpath_overrides_runpath=yes
15134 hardcode_into_libs=yes
15137 newsos6)
15138 version_type=linux
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15144 nto-qnx*)
15145 version_type=linux
15146 need_lib_prefix=no
15147 need_version=no
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15154 openbsd*)
15155 version_type=sunos
15156 need_lib_prefix=no
15157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15158 case $host_os in
15159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15160 *) need_version=no ;;
15161 esac
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15166 case $host_os in
15167 openbsd2.[89] | openbsd2.[89].*)
15168 shlibpath_overrides_runpath=no
15171 shlibpath_overrides_runpath=yes
15173 esac
15174 else
15175 shlibpath_overrides_runpath=yes
15179 os2*)
15180 libname_spec='$name'
15181 shrext_cmds=".dll"
15182 need_lib_prefix=no
15183 library_names_spec='$libname${shared_ext} $libname.a'
15184 dynamic_linker='OS/2 ld.exe'
15185 shlibpath_var=LIBPATH
15188 osf3* | osf4* | osf5*)
15189 version_type=osf
15190 need_lib_prefix=no
15191 need_version=no
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15199 sco3.2v5*)
15200 version_type=osf
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 shlibpath_var=LD_LIBRARY_PATH
15206 solaris*)
15207 version_type=linux
15208 need_lib_prefix=no
15209 need_version=no
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 shlibpath_overrides_runpath=yes
15214 hardcode_into_libs=yes
15215 # ldd complains unless libraries are executable
15216 postinstall_cmds='chmod +x $lib'
15219 sunos4*)
15220 version_type=sunos
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=yes
15225 if test "$with_gnu_ld" = yes; then
15226 need_lib_prefix=no
15228 need_version=yes
15231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15232 version_type=linux
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 shlibpath_var=LD_LIBRARY_PATH
15236 case $host_vendor in
15237 sni)
15238 shlibpath_overrides_runpath=no
15239 need_lib_prefix=no
15240 export_dynamic_flag_spec='${wl}-Blargedynsym'
15241 runpath_var=LD_RUN_PATH
15243 siemens)
15244 need_lib_prefix=no
15246 motorola)
15247 need_lib_prefix=no
15248 need_version=no
15249 shlibpath_overrides_runpath=no
15250 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15252 esac
15255 sysv4*MP*)
15256 if test -d /usr/nec ;then
15257 version_type=linux
15258 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15259 soname_spec='$libname${shared_ext}.$major'
15260 shlibpath_var=LD_LIBRARY_PATH
15264 uts4*)
15265 version_type=linux
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15272 dynamic_linker=no
15274 esac
15275 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15276 echo "${ECHO_T}$dynamic_linker" >&6
15277 test "$dynamic_linker" = no && can_build_shared=no
15279 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15280 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15281 hardcode_action_F77=
15282 if test -n "$hardcode_libdir_flag_spec_F77" || \
15283 test -n "$runpath_var_F77" || \
15284 test "X$hardcode_automatic_F77" = "Xyes" ; then
15286 # We can hardcode non-existant directories.
15287 if test "$hardcode_direct_F77" != no &&
15288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15289 # have to relink, otherwise we might link with an installed library
15290 # when we should be linking with a yet-to-be-installed one
15291 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15292 test "$hardcode_minus_L_F77" != no; then
15293 # Linking always hardcodes the temporary library directory.
15294 hardcode_action_F77=relink
15295 else
15296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15297 hardcode_action_F77=immediate
15299 else
15300 # We cannot hardcode anything, or else we can only hardcode existing
15301 # directories.
15302 hardcode_action_F77=unsupported
15304 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15305 echo "${ECHO_T}$hardcode_action_F77" >&6
15307 if test "$hardcode_action_F77" = relink; then
15308 # Fast installation is not supported
15309 enable_fast_install=no
15310 elif test "$shlibpath_overrides_runpath" = yes ||
15311 test "$enable_shared" = no; then
15312 # Fast installation is not necessary
15313 enable_fast_install=needless
15316 striplib=
15317 old_striplib=
15318 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15319 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15320 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15323 echo "$as_me:$LINENO: result: yes" >&5
15324 echo "${ECHO_T}yes" >&6
15325 else
15326 # FIXME - insert some real tests, host_os isn't really good enough
15327 case $host_os in
15328 darwin*)
15329 if test -n "$STRIP" ; then
15330 striplib="$STRIP -x"
15331 echo "$as_me:$LINENO: result: yes" >&5
15332 echo "${ECHO_T}yes" >&6
15333 else
15334 echo "$as_me:$LINENO: result: no" >&5
15335 echo "${ECHO_T}no" >&6
15339 echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15342 esac
15347 # The else clause should only fire when bootstrapping the
15348 # libtool distribution, otherwise you forgot to ship ltmain.sh
15349 # with your package, and you will get complaints that there are
15350 # no rules to generate ltmain.sh.
15351 if test -f "$ltmain"; then
15352 # See if we are running on zsh, and set the options which allow our commands through
15353 # without removal of \ escapes.
15354 if test -n "${ZSH_VERSION+set}" ; then
15355 setopt NO_GLOB_SUBST
15357 # Now quote all the things that may contain metacharacters while being
15358 # careful not to overquote the AC_SUBSTed values. We take copies of the
15359 # variables and quote the copies for generation of the libtool script.
15360 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15361 SED SHELL STRIP \
15362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15364 deplibs_check_method reload_flag reload_cmds need_locks \
15365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15366 lt_cv_sys_global_symbol_to_c_name_address \
15367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15368 old_postinstall_cmds old_postuninstall_cmds \
15369 compiler_F77 \
15370 CC_F77 \
15371 LD_F77 \
15372 lt_prog_compiler_wl_F77 \
15373 lt_prog_compiler_pic_F77 \
15374 lt_prog_compiler_static_F77 \
15375 lt_prog_compiler_no_builtin_flag_F77 \
15376 export_dynamic_flag_spec_F77 \
15377 thread_safe_flag_spec_F77 \
15378 whole_archive_flag_spec_F77 \
15379 enable_shared_with_static_runtimes_F77 \
15380 old_archive_cmds_F77 \
15381 old_archive_from_new_cmds_F77 \
15382 predep_objects_F77 \
15383 postdep_objects_F77 \
15384 predeps_F77 \
15385 postdeps_F77 \
15386 compiler_lib_search_path_F77 \
15387 archive_cmds_F77 \
15388 archive_expsym_cmds_F77 \
15389 postinstall_cmds_F77 \
15390 postuninstall_cmds_F77 \
15391 old_archive_from_expsyms_cmds_F77 \
15392 allow_undefined_flag_F77 \
15393 no_undefined_flag_F77 \
15394 export_symbols_cmds_F77 \
15395 hardcode_libdir_flag_spec_F77 \
15396 hardcode_libdir_flag_spec_ld_F77 \
15397 hardcode_libdir_separator_F77 \
15398 hardcode_automatic_F77 \
15399 module_cmds_F77 \
15400 module_expsym_cmds_F77 \
15401 lt_cv_prog_compiler_c_o_F77 \
15402 exclude_expsyms_F77 \
15403 include_expsyms_F77; do
15405 case $var in
15406 old_archive_cmds_F77 | \
15407 old_archive_from_new_cmds_F77 | \
15408 archive_cmds_F77 | \
15409 archive_expsym_cmds_F77 | \
15410 module_cmds_F77 | \
15411 module_expsym_cmds_F77 | \
15412 old_archive_from_expsyms_cmds_F77 | \
15413 export_symbols_cmds_F77 | \
15414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15415 postinstall_cmds | postuninstall_cmds | \
15416 old_postinstall_cmds | old_postuninstall_cmds | \
15417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15418 # Double-quote double-evaled strings.
15419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15424 esac
15425 done
15427 case $lt_echo in
15428 *'\$0 --fallback-echo"')
15429 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15431 esac
15433 cfgfile="$ofile"
15435 cat <<__EOF__ >> "$cfgfile"
15436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15440 # Shell to use when invoking shell scripts.
15441 SHELL=$lt_SHELL
15443 # Whether or not to build shared libraries.
15444 build_libtool_libs=$enable_shared
15446 # Whether or not to build static libraries.
15447 build_old_libs=$enable_static
15449 # Whether or not to add -lc for building shared libraries.
15450 build_libtool_need_lc=$archive_cmds_need_lc_F77
15452 # Whether or not to disallow shared libs when runtime libs are static
15453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15455 # Whether or not to optimize for fast installation.
15456 fast_install=$enable_fast_install
15458 # The host system.
15459 host_alias=$host_alias
15460 host=$host
15461 host_os=$host_os
15463 # The build system.
15464 build_alias=$build_alias
15465 build=$build
15466 build_os=$build_os
15468 # An echo program that does not interpret backslashes.
15469 echo=$lt_echo
15471 # The archiver.
15472 AR=$lt_AR
15473 AR_FLAGS=$lt_AR_FLAGS
15475 # A C compiler.
15476 LTCC=$lt_LTCC
15478 # A language-specific compiler.
15479 CC=$lt_compiler_F77
15481 # Is the compiler the GNU C compiler?
15482 with_gcc=$GCC_F77
15484 # An ERE matcher.
15485 EGREP=$lt_EGREP
15487 # The linker used to build libraries.
15488 LD=$lt_LD_F77
15490 # Whether we need hard or soft links.
15491 LN_S=$lt_LN_S
15493 # A BSD-compatible nm program.
15494 NM=$lt_NM
15496 # A symbol stripping program
15497 STRIP=$lt_STRIP
15499 # Used to examine libraries when file_magic_cmd begins "file"
15500 MAGIC_CMD=$MAGIC_CMD
15502 # Used on cygwin: DLL creation program.
15503 DLLTOOL="$DLLTOOL"
15505 # Used on cygwin: object dumper.
15506 OBJDUMP="$OBJDUMP"
15508 # Used on cygwin: assembler.
15509 AS="$AS"
15511 # The name of the directory that contains temporary libtool files.
15512 objdir=$objdir
15514 # How to create reloadable object files.
15515 reload_flag=$lt_reload_flag
15516 reload_cmds=$lt_reload_cmds
15518 # How to pass a linker flag through the compiler.
15519 wl=$lt_lt_prog_compiler_wl_F77
15521 # Object file suffix (normally "o").
15522 objext="$ac_objext"
15524 # Old archive suffix (normally "a").
15525 libext="$libext"
15527 # Shared library suffix (normally ".so").
15528 shrext_cmds='$shrext_cmds'
15530 # Executable file suffix (normally "").
15531 exeext="$exeext"
15533 # Additional compiler flags for building library objects.
15534 pic_flag=$lt_lt_prog_compiler_pic_F77
15535 pic_mode=$pic_mode
15537 # What is the maximum length of a command?
15538 max_cmd_len=$lt_cv_sys_max_cmd_len
15540 # Does compiler simultaneously support -c and -o options?
15541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15543 # Must we lock files when doing compilation?
15544 need_locks=$lt_need_locks
15546 # Do we need the lib prefix for modules?
15547 need_lib_prefix=$need_lib_prefix
15549 # Do we need a version for libraries?
15550 need_version=$need_version
15552 # Whether dlopen is supported.
15553 dlopen_support=$enable_dlopen
15555 # Whether dlopen of programs is supported.
15556 dlopen_self=$enable_dlopen_self
15558 # Whether dlopen of statically linked programs is supported.
15559 dlopen_self_static=$enable_dlopen_self_static
15561 # Compiler flag to prevent dynamic linking.
15562 link_static_flag=$lt_lt_prog_compiler_static_F77
15564 # Compiler flag to turn off builtin functions.
15565 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15567 # Compiler flag to allow reflexive dlopens.
15568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15570 # Compiler flag to generate shared objects directly from archives.
15571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15573 # Compiler flag to generate thread-safe objects.
15574 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15576 # Library versioning type.
15577 version_type=$version_type
15579 # Format of library name prefix.
15580 libname_spec=$lt_libname_spec
15582 # List of archive names. First name is the real one, the rest are links.
15583 # The last name is the one that the linker finds with -lNAME.
15584 library_names_spec=$lt_library_names_spec
15586 # The coded name of the library, if different from the real name.
15587 soname_spec=$lt_soname_spec
15589 # Commands used to build and install an old-style archive.
15590 RANLIB=$lt_RANLIB
15591 old_archive_cmds=$lt_old_archive_cmds_F77
15592 old_postinstall_cmds=$lt_old_postinstall_cmds
15593 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15595 # Create an old-style archive from a shared archive.
15596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15598 # Create a temporary old-style archive to link instead of a shared archive.
15599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15601 # Commands used to build and install a shared archive.
15602 archive_cmds=$lt_archive_cmds_F77
15603 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15604 postinstall_cmds=$lt_postinstall_cmds
15605 postuninstall_cmds=$lt_postuninstall_cmds
15607 # Commands used to build a loadable module (assumed same as above if empty)
15608 module_cmds=$lt_module_cmds_F77
15609 module_expsym_cmds=$lt_module_expsym_cmds_F77
15611 # Commands to strip libraries.
15612 old_striplib=$lt_old_striplib
15613 striplib=$lt_striplib
15615 # Dependencies to place before the objects being linked to create a
15616 # shared library.
15617 predep_objects=$lt_predep_objects_F77
15619 # Dependencies to place after the objects being linked to create a
15620 # shared library.
15621 postdep_objects=$lt_postdep_objects_F77
15623 # Dependencies to place before the objects being linked to create a
15624 # shared library.
15625 predeps=$lt_predeps_F77
15627 # Dependencies to place after the objects being linked to create a
15628 # shared library.
15629 postdeps=$lt_postdeps_F77
15631 # The library search path used internally by the compiler when linking
15632 # a shared library.
15633 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15635 # Method to check whether dependent libraries are shared objects.
15636 deplibs_check_method=$lt_deplibs_check_method
15638 # Command to use when deplibs_check_method == file_magic.
15639 file_magic_cmd=$lt_file_magic_cmd
15641 # Flag that allows shared libraries with undefined symbols to be built.
15642 allow_undefined_flag=$lt_allow_undefined_flag_F77
15644 # Flag that forces no undefined symbols.
15645 no_undefined_flag=$lt_no_undefined_flag_F77
15647 # Commands used to finish a libtool library installation in a directory.
15648 finish_cmds=$lt_finish_cmds
15650 # Same as above, but a single script fragment to be evaled but not shown.
15651 finish_eval=$lt_finish_eval
15653 # Take the output of nm and produce a listing of raw symbols and C names.
15654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15656 # Transform the output of nm in a proper C declaration
15657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15659 # Transform the output of nm in a C name address pair
15660 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15662 # This is the shared library runtime path variable.
15663 runpath_var=$runpath_var
15665 # This is the shared library path variable.
15666 shlibpath_var=$shlibpath_var
15668 # Is shlibpath searched before the hard-coded library search path?
15669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15671 # How to hardcode a shared library path into an executable.
15672 hardcode_action=$hardcode_action_F77
15674 # Whether we should hardcode library paths into libraries.
15675 hardcode_into_libs=$hardcode_into_libs
15677 # Flag to hardcode \$libdir into a binary during linking.
15678 # This must work even if \$libdir does not exist.
15679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15681 # If ld is used when linking, flag to hardcode \$libdir into
15682 # a binary during linking. This must work even if \$libdir does
15683 # not exist.
15684 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15686 # Whether we need a single -rpath flag with a separated argument.
15687 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15689 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15690 # resulting binary.
15691 hardcode_direct=$hardcode_direct_F77
15693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15694 # resulting binary.
15695 hardcode_minus_L=$hardcode_minus_L_F77
15697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15698 # the resulting binary.
15699 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15701 # Set to yes if building a shared library automatically hardcodes DIR into the library
15702 # and all subsequent libraries and executables linked against it.
15703 hardcode_automatic=$hardcode_automatic_F77
15705 # Variables whose values should be saved in libtool wrapper scripts and
15706 # restored at relink time.
15707 variables_saved_for_relink="$variables_saved_for_relink"
15709 # Whether libtool must link a program against all its dependency libraries.
15710 link_all_deplibs=$link_all_deplibs_F77
15712 # Compile-time system search path for libraries
15713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15715 # Run-time system search path for libraries
15716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15718 # Fix the shell variable \$srcfile for the compiler.
15719 fix_srcfile_path="$fix_srcfile_path_F77"
15721 # Set to yes if exported symbols are required.
15722 always_export_symbols=$always_export_symbols_F77
15724 # The commands to list exported symbols.
15725 export_symbols_cmds=$lt_export_symbols_cmds_F77
15727 # The commands to extract the exported symbol list from a shared archive.
15728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15730 # Symbols that should not be listed in the preloaded symbols.
15731 exclude_expsyms=$lt_exclude_expsyms_F77
15733 # Symbols that must always be exported.
15734 include_expsyms=$lt_include_expsyms_F77
15736 # ### END LIBTOOL TAG CONFIG: $tagname
15738 __EOF__
15741 else
15742 # If there is no Makefile yet, we rely on a make rule to execute
15743 # `config.status --recheck' to rerun these tests and create the
15744 # libtool script then.
15745 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15746 if test -f "$ltmain_in"; then
15747 test -f Makefile && make "$ltmain"
15752 ac_ext=c
15753 ac_cpp='$CPP $CPPFLAGS'
15754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15758 CC="$lt_save_CC"
15760 else
15761 tagname=""
15765 GCJ)
15766 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15770 # Source file extension for Java test sources.
15771 ac_ext=java
15773 # Object file extension for compiled Java test sources.
15774 objext=o
15775 objext_GCJ=$objext
15777 # Code to be used in simple compile tests
15778 lt_simple_compile_test_code="class foo {}\n"
15780 # Code to be used in simple link tests
15781 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15785 # If no C compiler was specified, use CC.
15786 LTCC=${LTCC-"$CC"}
15788 # Allow CC to be a program name with arguments.
15789 compiler=$CC
15792 # save warnings/boilerplate of simple test code
15793 ac_outfile=conftest.$ac_objext
15794 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15796 _lt_compiler_boilerplate=`cat conftest.err`
15797 $rm conftest*
15799 ac_outfile=conftest.$ac_objext
15800 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15802 _lt_linker_boilerplate=`cat conftest.err`
15803 $rm conftest*
15806 # Allow CC to be a program name with arguments.
15807 lt_save_CC="$CC"
15808 CC=${GCJ-"gcj"}
15809 compiler=$CC
15810 compiler_GCJ=$CC
15811 for cc_temp in $compiler""; do
15812 case $cc_temp in
15813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15815 \-*) ;;
15816 *) break;;
15817 esac
15818 done
15819 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15822 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15823 archive_cmds_need_lc_GCJ=no
15825 old_archive_cmds_GCJ=$old_archive_cmds
15828 lt_prog_compiler_no_builtin_flag_GCJ=
15830 if test "$GCC" = yes; then
15831 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15834 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15835 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15836 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839 lt_cv_prog_compiler_rtti_exceptions=no
15840 ac_outfile=conftest.$ac_objext
15841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15842 lt_compiler_flag="-fno-rtti -fno-exceptions"
15843 # Insert the option either (1) after the last *FLAGS variable, or
15844 # (2) before a word containing "conftest.", or (3) at the end.
15845 # Note that $ac_compile itself does not contain backslashes and begins
15846 # with a dollar sign (not a hyphen), so the echo should work correctly.
15847 # The option is referenced via a variable to avoid confusing sed.
15848 lt_compile=`echo "$ac_compile" | $SED \
15849 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15851 -e 's:$: $lt_compiler_flag:'`
15852 (eval echo "\"\$as_me:15852: $lt_compile\"" >&5)
15853 (eval "$lt_compile" 2>conftest.err)
15854 ac_status=$?
15855 cat conftest.err >&5
15856 echo "$as_me:15856: \$? = $ac_status" >&5
15857 if (exit $ac_status) && test -s "$ac_outfile"; then
15858 # The compiler can only warn and ignore the option if not recognized
15859 # So say no if there are warnings other than the usual output.
15860 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15861 $SED '/^$/d' conftest.err >conftest.er2
15862 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15863 lt_cv_prog_compiler_rtti_exceptions=yes
15866 $rm conftest*
15869 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15870 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15872 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15873 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15874 else
15880 lt_prog_compiler_wl_GCJ=
15881 lt_prog_compiler_pic_GCJ=
15882 lt_prog_compiler_static_GCJ=
15884 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15885 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15887 if test "$GCC" = yes; then
15888 lt_prog_compiler_wl_GCJ='-Wl,'
15889 lt_prog_compiler_static_GCJ='-static'
15891 case $host_os in
15892 aix*)
15893 # All AIX code is PIC.
15894 if test "$host_cpu" = ia64; then
15895 # AIX 5 now supports IA64 processor
15896 lt_prog_compiler_static_GCJ='-Bstatic'
15900 amigaos*)
15901 # FIXME: we need at least 68020 code to build shared libraries, but
15902 # adding the `-m68020' flag to GCC prevents building anything better,
15903 # like `-m68040'.
15904 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15907 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15908 # PIC is the default for these OSes.
15911 mingw* | pw32* | os2*)
15912 # This hack is so that the source file can tell whether it is being
15913 # built for inclusion in a dll (and should export symbols for example).
15914 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15917 darwin* | rhapsody*)
15918 # PIC is the default on this platform
15919 # Common symbols not allowed in MH_DYLIB files
15920 lt_prog_compiler_pic_GCJ='-fno-common'
15923 msdosdjgpp*)
15924 # Just because we use GCC doesn't mean we suddenly get shared libraries
15925 # on systems that don't support them.
15926 lt_prog_compiler_can_build_shared_GCJ=no
15927 enable_shared=no
15930 sysv4*MP*)
15931 if test -d /usr/nec; then
15932 lt_prog_compiler_pic_GCJ=-Kconform_pic
15936 hpux*)
15937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15938 # not for PA HP-UX.
15939 case "$host_cpu" in
15940 hppa*64*|ia64*)
15941 # +Z the default
15944 lt_prog_compiler_pic_GCJ='-fPIC'
15946 esac
15950 lt_prog_compiler_pic_GCJ='-fPIC'
15952 esac
15953 else
15954 # PORTME Check for flag to pass linker flags through the system compiler.
15955 case $host_os in
15956 aix*)
15957 lt_prog_compiler_wl_GCJ='-Wl,'
15958 if test "$host_cpu" = ia64; then
15959 # AIX 5 now supports IA64 processor
15960 lt_prog_compiler_static_GCJ='-Bstatic'
15961 else
15962 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15965 darwin*)
15966 # PIC is the default on this platform
15967 # Common symbols not allowed in MH_DYLIB files
15968 case $cc_basename in
15969 xlc*)
15970 lt_prog_compiler_pic_GCJ='-qnocommon'
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15973 esac
15976 mingw* | pw32* | os2*)
15977 # This hack is so that the source file can tell whether it is being
15978 # built for inclusion in a dll (and should export symbols for example).
15979 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15982 hpux9* | hpux10* | hpux11*)
15983 lt_prog_compiler_wl_GCJ='-Wl,'
15984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15985 # not for PA HP-UX.
15986 case "$host_cpu" in
15987 hppa*64*|ia64*)
15988 # +Z the default
15991 lt_prog_compiler_pic_GCJ='+Z'
15993 esac
15994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15995 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15998 irix5* | irix6* | nonstopux*)
15999 lt_prog_compiler_wl_GCJ='-Wl,'
16000 # PIC (with -KPIC) is the default.
16001 lt_prog_compiler_static_GCJ='-non_shared'
16004 newsos6)
16005 lt_prog_compiler_pic_GCJ='-KPIC'
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16009 linux*)
16010 case $cc_basename in
16011 icc* | ecc*)
16012 lt_prog_compiler_wl_GCJ='-Wl,'
16013 lt_prog_compiler_pic_GCJ='-KPIC'
16014 lt_prog_compiler_static_GCJ='-static'
16016 pgcc* | pgf77* | pgf90*)
16017 # Portland Group compilers (*not* the Pentium gcc compiler,
16018 # which looks to be a dead project)
16019 lt_prog_compiler_wl_GCJ='-Wl,'
16020 lt_prog_compiler_pic_GCJ='-fpic'
16021 lt_prog_compiler_static_GCJ='-static'
16023 ccc*)
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 # All Alpha code is PIC.
16026 lt_prog_compiler_static_GCJ='-non_shared'
16028 esac
16031 osf3* | osf4* | osf5*)
16032 lt_prog_compiler_wl_GCJ='-Wl,'
16033 # All OSF/1 code is PIC.
16034 lt_prog_compiler_static_GCJ='-non_shared'
16037 sco3.2v5*)
16038 lt_prog_compiler_pic_GCJ='-Kpic'
16039 lt_prog_compiler_static_GCJ='-dn'
16042 solaris*)
16043 lt_prog_compiler_pic_GCJ='-KPIC'
16044 lt_prog_compiler_static_GCJ='-Bstatic'
16045 case $cc_basename in
16046 f77* | f90* | f95*)
16047 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16049 lt_prog_compiler_wl_GCJ='-Wl,';;
16050 esac
16053 sunos4*)
16054 lt_prog_compiler_wl_GCJ='-Qoption ld '
16055 lt_prog_compiler_pic_GCJ='-PIC'
16056 lt_prog_compiler_static_GCJ='-Bstatic'
16059 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16060 lt_prog_compiler_wl_GCJ='-Wl,'
16061 lt_prog_compiler_pic_GCJ='-KPIC'
16062 lt_prog_compiler_static_GCJ='-Bstatic'
16065 sysv4*MP*)
16066 if test -d /usr/nec ;then
16067 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16068 lt_prog_compiler_static_GCJ='-Bstatic'
16072 unicos*)
16073 lt_prog_compiler_wl_GCJ='-Wl,'
16074 lt_prog_compiler_can_build_shared_GCJ=no
16077 uts4*)
16078 lt_prog_compiler_pic_GCJ='-pic'
16079 lt_prog_compiler_static_GCJ='-Bstatic'
16083 lt_prog_compiler_can_build_shared_GCJ=no
16085 esac
16088 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16089 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16092 # Check to make sure the PIC flag actually works.
16094 if test -n "$lt_prog_compiler_pic_GCJ"; then
16096 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16097 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16098 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101 lt_prog_compiler_pic_works_GCJ=no
16102 ac_outfile=conftest.$ac_objext
16103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16104 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16105 # Insert the option either (1) after the last *FLAGS variable, or
16106 # (2) before a word containing "conftest.", or (3) at the end.
16107 # Note that $ac_compile itself does not contain backslashes and begins
16108 # with a dollar sign (not a hyphen), so the echo should work correctly.
16109 # The option is referenced via a variable to avoid confusing sed.
16110 lt_compile=`echo "$ac_compile" | $SED \
16111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16113 -e 's:$: $lt_compiler_flag:'`
16114 (eval echo "\"\$as_me:16114: $lt_compile\"" >&5)
16115 (eval "$lt_compile" 2>conftest.err)
16116 ac_status=$?
16117 cat conftest.err >&5
16118 echo "$as_me:16118: \$? = $ac_status" >&5
16119 if (exit $ac_status) && test -s "$ac_outfile"; then
16120 # The compiler can only warn and ignore the option if not recognized
16121 # So say no if there are warnings other than the usual output.
16122 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16123 $SED '/^$/d' conftest.err >conftest.er2
16124 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16125 lt_prog_compiler_pic_works_GCJ=yes
16128 $rm conftest*
16131 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16132 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16134 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16135 case $lt_prog_compiler_pic_GCJ in
16136 "" | " "*) ;;
16137 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16138 esac
16139 else
16140 lt_prog_compiler_pic_GCJ=
16141 lt_prog_compiler_can_build_shared_GCJ=no
16145 case "$host_os" in
16146 # For platforms which do not support PIC, -DPIC is meaningless:
16147 *djgpp*)
16148 lt_prog_compiler_pic_GCJ=
16151 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16153 esac
16155 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16156 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16157 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160 lt_cv_prog_compiler_c_o_GCJ=no
16161 $rm -r conftest 2>/dev/null
16162 mkdir conftest
16163 cd conftest
16164 mkdir out
16165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16167 lt_compiler_flag="-o out/conftest2.$ac_objext"
16168 # Insert the option either (1) after the last *FLAGS variable, or
16169 # (2) before a word containing "conftest.", or (3) at the end.
16170 # Note that $ac_compile itself does not contain backslashes and begins
16171 # with a dollar sign (not a hyphen), so the echo should work correctly.
16172 lt_compile=`echo "$ac_compile" | $SED \
16173 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16175 -e 's:$: $lt_compiler_flag:'`
16176 (eval echo "\"\$as_me:16176: $lt_compile\"" >&5)
16177 (eval "$lt_compile" 2>out/conftest.err)
16178 ac_status=$?
16179 cat out/conftest.err >&5
16180 echo "$as_me:16180: \$? = $ac_status" >&5
16181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16182 then
16183 # The compiler can only warn and ignore the option if not recognized
16184 # So say no if there are warnings
16185 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16186 $SED '/^$/d' out/conftest.err >out/conftest.er2
16187 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16188 lt_cv_prog_compiler_c_o_GCJ=yes
16191 chmod u+w .
16192 $rm conftest*
16193 # SGI C++ compiler will create directory out/ii_files/ for
16194 # template instantiation
16195 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16196 $rm out/* && rmdir out
16197 cd ..
16198 rmdir conftest
16199 $rm conftest*
16202 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16206 hard_links="nottested"
16207 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16208 # do not overwrite the value of need_locks provided by the user
16209 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16211 hard_links=yes
16212 $rm conftest*
16213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16214 touch conftest.a
16215 ln conftest.a conftest.b 2>&5 || hard_links=no
16216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16217 echo "$as_me:$LINENO: result: $hard_links" >&5
16218 echo "${ECHO_T}$hard_links" >&6
16219 if test "$hard_links" = no; then
16220 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16222 need_locks=warn
16224 else
16225 need_locks=no
16228 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16231 runpath_var=
16232 allow_undefined_flag_GCJ=
16233 enable_shared_with_static_runtimes_GCJ=no
16234 archive_cmds_GCJ=
16235 archive_expsym_cmds_GCJ=
16236 old_archive_From_new_cmds_GCJ=
16237 old_archive_from_expsyms_cmds_GCJ=
16238 export_dynamic_flag_spec_GCJ=
16239 whole_archive_flag_spec_GCJ=
16240 thread_safe_flag_spec_GCJ=
16241 hardcode_libdir_flag_spec_GCJ=
16242 hardcode_libdir_flag_spec_ld_GCJ=
16243 hardcode_libdir_separator_GCJ=
16244 hardcode_direct_GCJ=no
16245 hardcode_minus_L_GCJ=no
16246 hardcode_shlibpath_var_GCJ=unsupported
16247 link_all_deplibs_GCJ=unknown
16248 hardcode_automatic_GCJ=no
16249 module_cmds_GCJ=
16250 module_expsym_cmds_GCJ=
16251 always_export_symbols_GCJ=no
16252 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16253 # include_expsyms should be a list of space-separated symbols to be *always*
16254 # included in the symbol list
16255 include_expsyms_GCJ=
16256 # exclude_expsyms can be an extended regexp of symbols to exclude
16257 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16259 # as well as any symbol that contains `d'.
16260 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16262 # platforms (ab)use it in PIC code, but their linkers get confused if
16263 # the symbol is explicitly referenced. Since portable code cannot
16264 # rely on this symbol name, it's probably fine to never include it in
16265 # preloaded symbol tables.
16266 extract_expsyms_cmds=
16267 # Just being paranoid about ensuring that cc_basename is set.
16268 for cc_temp in $compiler""; do
16269 case $cc_temp in
16270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16272 \-*) ;;
16273 *) break;;
16274 esac
16275 done
16276 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16278 case $host_os in
16279 cygwin* | mingw* | pw32*)
16280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16281 # When not using gcc, we currently assume that we are using
16282 # Microsoft Visual C++.
16283 if test "$GCC" != yes; then
16284 with_gnu_ld=no
16287 openbsd*)
16288 with_gnu_ld=no
16290 esac
16292 ld_shlibs_GCJ=yes
16293 if test "$with_gnu_ld" = yes; then
16294 # If archive_cmds runs LD, not CC, wlarc should be empty
16295 wlarc='${wl}'
16297 # Set some defaults for GNU ld with shared library support. These
16298 # are reset later if shared libraries are not supported. Putting them
16299 # here allows them to be overridden if necessary.
16300 runpath_var=LD_RUN_PATH
16301 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16302 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16303 # ancient GNU ld didn't support --whole-archive et. al.
16304 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16305 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16306 else
16307 whole_archive_flag_spec_GCJ=
16309 supports_anon_versioning=no
16310 case `$LD -v 2>/dev/null` in
16311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16314 *\ 2.11.*) ;; # other 2.11 versions
16315 *) supports_anon_versioning=yes ;;
16316 esac
16318 # See if GNU ld supports shared libraries.
16319 case $host_os in
16320 aix3* | aix4* | aix5*)
16321 # On AIX/PPC, the GNU linker is very broken
16322 if test "$host_cpu" != ia64; then
16323 ld_shlibs_GCJ=no
16324 cat <<EOF 1>&2
16326 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16327 *** to be unable to reliably create shared libraries on AIX.
16328 *** Therefore, libtool is disabling shared libraries support. If you
16329 *** really care for shared libraries, you may want to modify your PATH
16330 *** so that a non-GNU linker is found, and then restart.
16336 amigaos*)
16337 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)'
16338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16339 hardcode_minus_L_GCJ=yes
16341 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16342 # that the semantics of dynamic libraries on AmigaOS, at least up
16343 # to version 4, is to share data among multiple programs linked
16344 # with the same dynamic library. Since this doesn't match the
16345 # behavior of shared libraries on other platforms, we can't use
16346 # them.
16347 ld_shlibs_GCJ=no
16350 beos*)
16351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16352 allow_undefined_flag_GCJ=unsupported
16353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16354 # support --undefined. This deserves some investigation. FIXME
16355 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16356 else
16357 ld_shlibs_GCJ=no
16361 cygwin* | mingw* | pw32*)
16362 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16363 # as there is no search path for DLLs.
16364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16365 allow_undefined_flag_GCJ=unsupported
16366 always_export_symbols_GCJ=no
16367 enable_shared_with_static_runtimes_GCJ=yes
16368 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16370 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16371 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16372 # If the export-symbols file already is a .def file (1st line
16373 # is EXPORTS), use it as is; otherwise, prepend...
16374 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16375 cp $export_symbols $output_objdir/$soname.def;
16376 else
16377 echo EXPORTS > $output_objdir/$soname.def;
16378 cat $export_symbols >> $output_objdir/$soname.def;
16380 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16381 else
16382 ld_shlibs_GCJ=no
16386 linux*)
16387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16388 tmp_addflag=
16389 case $cc_basename,$host_cpu in
16390 pgcc*) # Portland Group C compiler
16391 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16392 tmp_addflag=' $pic_flag'
16394 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16395 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16396 tmp_addflag=' $pic_flag -Mnomain' ;;
16397 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16398 tmp_addflag=' -i_dynamic' ;;
16399 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16400 tmp_addflag=' -i_dynamic -nofor_main' ;;
16401 ifc* | ifort*) # Intel Fortran compiler
16402 tmp_addflag=' -nofor_main' ;;
16403 esac
16404 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16406 if test $supports_anon_versioning = yes; then
16407 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16409 $echo "local: *; };" >> $output_objdir/$libname.ver~
16410 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16412 else
16413 ld_shlibs_GCJ=no
16417 netbsd*)
16418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16419 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16420 wlarc=
16421 else
16422 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16423 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16427 solaris* | sysv5*)
16428 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16429 ld_shlibs_GCJ=no
16430 cat <<EOF 1>&2
16432 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16433 *** create shared libraries on Solaris systems. Therefore, libtool
16434 *** is disabling shared libraries support. We urge you to upgrade GNU
16435 *** binutils to release 2.9.1 or newer. Another option is to modify
16436 *** your PATH or compiler configuration so that the native linker is
16437 *** used, and then restart.
16440 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16441 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16442 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16443 else
16444 ld_shlibs_GCJ=no
16448 sunos4*)
16449 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16450 wlarc=
16451 hardcode_direct_GCJ=yes
16452 hardcode_shlibpath_var_GCJ=no
16456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16457 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16458 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16459 else
16460 ld_shlibs_GCJ=no
16463 esac
16465 if test "$ld_shlibs_GCJ" = no; then
16466 runpath_var=
16467 hardcode_libdir_flag_spec_GCJ=
16468 export_dynamic_flag_spec_GCJ=
16469 whole_archive_flag_spec_GCJ=
16471 else
16472 # PORTME fill in a description of your system's linker (not GNU ld)
16473 case $host_os in
16474 aix3*)
16475 allow_undefined_flag_GCJ=unsupported
16476 always_export_symbols_GCJ=yes
16477 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'
16478 # Note: this linker hardcodes the directories in LIBPATH if there
16479 # are no directories specified by -L.
16480 hardcode_minus_L_GCJ=yes
16481 if test "$GCC" = yes && test -z "$link_static_flag"; then
16482 # Neither direct hardcoding nor static linking is supported with a
16483 # broken collect2.
16484 hardcode_direct_GCJ=unsupported
16488 aix4* | aix5*)
16489 if test "$host_cpu" = ia64; then
16490 # On IA64, the linker does run time linking by default, so we don't
16491 # have to do anything special.
16492 aix_use_runtimelinking=no
16493 exp_sym_flag='-Bexport'
16494 no_entry_flag=""
16495 else
16496 # If we're using GNU nm, then we don't want the "-C" option.
16497 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16498 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16499 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'
16500 else
16501 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'
16503 aix_use_runtimelinking=no
16505 # Test if we are trying to use run time linking or normal
16506 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16507 # need to do runtime linking.
16508 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16509 for ld_flag in $LDFLAGS; do
16510 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16511 aix_use_runtimelinking=yes
16512 break
16514 done
16515 esac
16517 exp_sym_flag='-bexport'
16518 no_entry_flag='-bnoentry'
16521 # When large executables or shared objects are built, AIX ld can
16522 # have problems creating the table of contents. If linking a library
16523 # or program results in "error TOC overflow" add -mminimal-toc to
16524 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16525 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16527 archive_cmds_GCJ=''
16528 hardcode_direct_GCJ=yes
16529 hardcode_libdir_separator_GCJ=':'
16530 link_all_deplibs_GCJ=yes
16532 if test "$GCC" = yes; then
16533 case $host_os in aix4.[012]|aix4.[012].*)
16534 # We only want to do this on AIX 4.2 and lower, the check
16535 # below for broken collect2 doesn't work under 4.3+
16536 collect2name=`${CC} -print-prog-name=collect2`
16537 if test -f "$collect2name" && \
16538 strings "$collect2name" | grep resolve_lib_name >/dev/null
16539 then
16540 # We have reworked collect2
16541 hardcode_direct_GCJ=yes
16542 else
16543 # We have old collect2
16544 hardcode_direct_GCJ=unsupported
16545 # It fails to find uninstalled libraries when the uninstalled
16546 # path is not listed in the libpath. Setting hardcode_minus_L
16547 # to unsupported forces relinking
16548 hardcode_minus_L_GCJ=yes
16549 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550 hardcode_libdir_separator_GCJ=
16552 esac
16553 shared_flag='-shared'
16554 if test "$aix_use_runtimelinking" = yes; then
16555 shared_flag="$shared_flag "'${wl}-G'
16557 else
16558 # not using gcc
16559 if test "$host_cpu" = ia64; then
16560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16561 # chokes on -Wl,-G. The following line is correct:
16562 shared_flag='-G'
16563 else
16564 if test "$aix_use_runtimelinking" = yes; then
16565 shared_flag='${wl}-G'
16566 else
16567 shared_flag='${wl}-bM:SRE'
16572 # It seems that -bexpall does not export symbols beginning with
16573 # underscore (_), so it is better to generate a list of symbols to export.
16574 always_export_symbols_GCJ=yes
16575 if test "$aix_use_runtimelinking" = yes; then
16576 # Warning - without using the other runtime loading flags (-brtl),
16577 # -berok will link without error, but may produce a broken library.
16578 allow_undefined_flag_GCJ='-berok'
16579 # Determine the default libpath from the value encoded in an empty executable.
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h. */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16588 main ()
16592 return 0;
16594 _ACEOF
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16597 (eval $ac_link) 2>conftest.er1
16598 ac_status=$?
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -z "$ac_c_werror_flag"
16605 || test ! -s conftest.err'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest$ac_exeext'
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16620 # Check for a 64-bit object if we didn't find anything.
16621 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; }
16622 }'`; fi
16623 else
16624 echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16628 rm -f conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16632 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16633 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"
16634 else
16635 if test "$host_cpu" = ia64; then
16636 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16637 allow_undefined_flag_GCJ="-z nodefs"
16638 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"
16639 else
16640 # Determine the default libpath from the value encoded in an empty executable.
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16649 main ()
16653 return 0;
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658 (eval $ac_link) 2>conftest.er1
16659 ac_status=$?
16660 grep -v '^ *+' conftest.er1 >conftest.err
16661 rm -f conftest.er1
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag"
16666 || test ! -s conftest.err'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; } &&
16672 { ac_try='test -s conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16681 # Check for a 64-bit object if we didn't find anything.
16682 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; }
16683 }'`; fi
16684 else
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16689 rm -f conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16693 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16694 # Warning - without using the other run time loading flags,
16695 # -berok will link without error, but may produce a broken library.
16696 no_undefined_flag_GCJ=' ${wl}-bernotok'
16697 allow_undefined_flag_GCJ=' ${wl}-berok'
16698 # -bexpall does not export symbols beginning with underscore (_)
16699 always_export_symbols_GCJ=yes
16700 # Exported symbols can be pulled into shared objects from archives
16701 whole_archive_flag_spec_GCJ=' '
16702 archive_cmds_need_lc_GCJ=yes
16703 # This is similar to how AIX traditionally builds it's shared libraries.
16704 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'
16709 amigaos*)
16710 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)'
16711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16712 hardcode_minus_L_GCJ=yes
16713 # see comment about different semantics on the GNU ld section
16714 ld_shlibs_GCJ=no
16717 bsdi[45]*)
16718 export_dynamic_flag_spec_GCJ=-rdynamic
16721 cygwin* | mingw* | pw32*)
16722 # When not using gcc, we currently assume that we are using
16723 # Microsoft Visual C++.
16724 # hardcode_libdir_flag_spec is actually meaningless, as there is
16725 # no search path for DLLs.
16726 hardcode_libdir_flag_spec_GCJ=' '
16727 allow_undefined_flag_GCJ=unsupported
16728 # Tell ltmain to make .lib files, not .a files.
16729 libext=lib
16730 # Tell ltmain to make .dll files, not .so files.
16731 shrext_cmds=".dll"
16732 # FIXME: Setting linknames here is a bad hack.
16733 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16734 # The linker will automatically build a .lib file if we build a DLL.
16735 old_archive_From_new_cmds_GCJ='true'
16736 # FIXME: Should let the user specify the lib program.
16737 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16738 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16739 enable_shared_with_static_runtimes_GCJ=yes
16742 darwin* | rhapsody*)
16743 case "$host_os" in
16744 rhapsody* | darwin1.[012])
16745 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16747 *) # Darwin 1.3 on
16748 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16749 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16750 else
16751 case ${MACOSX_DEPLOYMENT_TARGET} in
16752 10.[012])
16753 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16755 10.*)
16756 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16758 esac
16761 esac
16762 archive_cmds_need_lc_GCJ=no
16763 hardcode_direct_GCJ=no
16764 hardcode_automatic_GCJ=yes
16765 hardcode_shlibpath_var_GCJ=unsupported
16766 whole_archive_flag_spec_GCJ=''
16767 link_all_deplibs_GCJ=yes
16768 if test "$GCC" = yes ; then
16769 output_verbose_link_cmd='echo'
16770 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16771 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16772 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16773 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16774 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16775 else
16776 case $cc_basename in
16777 xlc*)
16778 output_verbose_link_cmd='echo'
16779 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16780 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16781 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16782 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16783 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16786 ld_shlibs_GCJ=no
16788 esac
16792 dgux*)
16793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795 hardcode_shlibpath_var_GCJ=no
16798 freebsd1*)
16799 ld_shlibs_GCJ=no
16802 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16803 # support. Future versions do this automatically, but an explicit c++rt0.o
16804 # does not break anything, and helps significantly (at the cost of a little
16805 # extra space).
16806 freebsd2.2*)
16807 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16809 hardcode_direct_GCJ=yes
16810 hardcode_shlibpath_var_GCJ=no
16813 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16814 freebsd2*)
16815 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16816 hardcode_direct_GCJ=yes
16817 hardcode_minus_L_GCJ=yes
16818 hardcode_shlibpath_var_GCJ=no
16821 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16822 freebsd* | kfreebsd*-gnu | dragonfly*)
16823 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16825 hardcode_direct_GCJ=yes
16826 hardcode_shlibpath_var_GCJ=no
16829 hpux9*)
16830 if test "$GCC" = yes; then
16831 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'
16832 else
16833 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'
16835 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16836 hardcode_libdir_separator_GCJ=:
16837 hardcode_direct_GCJ=yes
16839 # hardcode_minus_L: Not really in the search PATH,
16840 # but as the default location of the library.
16841 hardcode_minus_L_GCJ=yes
16842 export_dynamic_flag_spec_GCJ='${wl}-E'
16845 hpux10* | hpux11*)
16846 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16847 case "$host_cpu" in
16848 hppa*64*|ia64*)
16849 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16852 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16854 esac
16855 else
16856 case "$host_cpu" in
16857 hppa*64*|ia64*)
16858 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16861 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16863 esac
16865 if test "$with_gnu_ld" = no; then
16866 case "$host_cpu" in
16867 hppa*64*)
16868 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16869 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16870 hardcode_libdir_separator_GCJ=:
16871 hardcode_direct_GCJ=no
16872 hardcode_shlibpath_var_GCJ=no
16874 ia64*)
16875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876 hardcode_direct_GCJ=no
16877 hardcode_shlibpath_var_GCJ=no
16879 # hardcode_minus_L: Not really in the search PATH,
16880 # but as the default location of the library.
16881 hardcode_minus_L_GCJ=yes
16884 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16885 hardcode_libdir_separator_GCJ=:
16886 hardcode_direct_GCJ=yes
16887 export_dynamic_flag_spec_GCJ='${wl}-E'
16889 # hardcode_minus_L: Not really in the search PATH,
16890 # but as the default location of the library.
16891 hardcode_minus_L_GCJ=yes
16893 esac
16897 irix5* | irix6* | nonstopux*)
16898 if test "$GCC" = yes; then
16899 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'
16900 else
16901 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'
16902 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16905 hardcode_libdir_separator_GCJ=:
16906 link_all_deplibs_GCJ=yes
16909 netbsd*)
16910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16912 else
16913 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16915 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16916 hardcode_direct_GCJ=yes
16917 hardcode_shlibpath_var_GCJ=no
16920 newsos6)
16921 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16922 hardcode_direct_GCJ=yes
16923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16924 hardcode_libdir_separator_GCJ=:
16925 hardcode_shlibpath_var_GCJ=no
16928 openbsd*)
16929 hardcode_direct_GCJ=yes
16930 hardcode_shlibpath_var_GCJ=no
16931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16932 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16935 export_dynamic_flag_spec_GCJ='${wl}-E'
16936 else
16937 case $host_os in
16938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16943 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16946 esac
16950 os2*)
16951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952 hardcode_minus_L_GCJ=yes
16953 allow_undefined_flag_GCJ=unsupported
16954 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'
16955 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16958 osf3*)
16959 if test "$GCC" = yes; then
16960 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16961 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'
16962 else
16963 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16964 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'
16966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16967 hardcode_libdir_separator_GCJ=:
16970 osf4* | osf5*) # as osf3* with the addition of -msym flag
16971 if test "$GCC" = yes; then
16972 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16973 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'
16974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16975 else
16976 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16977 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'
16978 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~
16979 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16981 # Both c and cxx compiler support -rpath directly
16982 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16984 hardcode_libdir_separator_GCJ=:
16987 sco3.2v5*)
16988 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16989 hardcode_shlibpath_var_GCJ=no
16990 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16991 runpath_var=LD_RUN_PATH
16992 hardcode_runpath_var=yes
16995 solaris*)
16996 no_undefined_flag_GCJ=' -z text'
16997 if test "$GCC" = yes; then
16998 wlarc='${wl}'
16999 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17000 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17001 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17002 else
17003 wlarc=''
17004 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17008 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17009 hardcode_shlibpath_var_GCJ=no
17010 case $host_os in
17011 solaris2.[0-5] | solaris2.[0-5].*) ;;
17013 # The compiler driver will combine linker options so we
17014 # cannot just pass the convience library names through
17015 # without $wl, iff we do not link with $LD.
17016 # Luckily, gcc supports the same syntax we need for Sun Studio.
17017 # Supported since Solaris 2.6 (maybe 2.5.1?)
17018 case $wlarc in
17020 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17022 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17023 esac ;;
17024 esac
17025 link_all_deplibs_GCJ=yes
17028 sunos4*)
17029 if test "x$host_vendor" = xsequent; then
17030 # Use $CC to link under sequent, because it throws in some extra .o
17031 # files that make .init and .fini sections work.
17032 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17033 else
17034 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17037 hardcode_direct_GCJ=yes
17038 hardcode_minus_L_GCJ=yes
17039 hardcode_shlibpath_var_GCJ=no
17042 sysv4)
17043 case $host_vendor in
17044 sni)
17045 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17046 hardcode_direct_GCJ=yes # is this really true???
17048 siemens)
17049 ## LD is ld it makes a PLAMLIB
17050 ## CC just makes a GrossModule.
17051 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17052 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17053 hardcode_direct_GCJ=no
17055 motorola)
17056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17057 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17059 esac
17060 runpath_var='LD_RUN_PATH'
17061 hardcode_shlibpath_var_GCJ=no
17064 sysv4.3*)
17065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17066 hardcode_shlibpath_var_GCJ=no
17067 export_dynamic_flag_spec_GCJ='-Bexport'
17070 sysv4*MP*)
17071 if test -d /usr/nec; then
17072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_shlibpath_var_GCJ=no
17074 runpath_var=LD_RUN_PATH
17075 hardcode_runpath_var=yes
17076 ld_shlibs_GCJ=yes
17080 sysv4.2uw2*)
17081 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17082 hardcode_direct_GCJ=yes
17083 hardcode_minus_L_GCJ=no
17084 hardcode_shlibpath_var_GCJ=no
17085 hardcode_runpath_var=yes
17086 runpath_var=LD_RUN_PATH
17089 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17090 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17091 if test "$GCC" = yes; then
17092 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17093 else
17094 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 runpath_var='LD_RUN_PATH'
17097 hardcode_shlibpath_var_GCJ=no
17100 sysv5*)
17101 no_undefined_flag_GCJ=' -z text'
17102 # $CC -shared without GNU ld will not create a library from C++
17103 # object files and a static libstdc++, better avoid it by now
17104 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17105 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17106 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17107 hardcode_libdir_flag_spec_GCJ=
17108 hardcode_shlibpath_var_GCJ=no
17109 runpath_var='LD_RUN_PATH'
17112 uts4*)
17113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17115 hardcode_shlibpath_var_GCJ=no
17119 ld_shlibs_GCJ=no
17121 esac
17124 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17125 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17126 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17129 if test "$GCC" = yes; then
17130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17134 # Do we need to explicitly link libc?
17136 case "x$archive_cmds_need_lc_GCJ" in
17137 x|xyes)
17138 # Assume -lc should be added
17139 archive_cmds_need_lc_GCJ=yes
17141 if test "$enable_shared" = yes && test "$GCC" = yes; then
17142 case $archive_cmds_GCJ in
17143 *'~'*)
17144 # FIXME: we may have to deal with multi-command sequences.
17146 '$CC '*)
17147 # Test whether the compiler implicitly links with -lc since on some
17148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17149 # to ld, don't add -lc before -lgcc.
17150 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17151 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17152 $rm conftest*
17153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17156 (eval $ac_compile) 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } 2>conftest.err; then
17160 soname=conftest
17161 lib=conftest
17162 libobjs=conftest.$ac_objext
17163 deplibs=
17164 wl=$lt_prog_compiler_wl_GCJ
17165 compiler_flags=-v
17166 linker_flags=-v
17167 verstring=
17168 output_objdir=.
17169 libname=conftest
17170 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17171 allow_undefined_flag_GCJ=
17172 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17173 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }
17177 then
17178 archive_cmds_need_lc_GCJ=no
17179 else
17180 archive_cmds_need_lc_GCJ=yes
17182 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17183 else
17184 cat conftest.err 1>&5
17186 $rm conftest*
17187 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17188 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17190 esac
17193 esac
17195 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17196 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17197 library_names_spec=
17198 libname_spec='lib$name'
17199 soname_spec=
17200 shrext_cmds=".so"
17201 postinstall_cmds=
17202 postuninstall_cmds=
17203 finish_cmds=
17204 finish_eval=
17205 shlibpath_var=
17206 shlibpath_overrides_runpath=unknown
17207 version_type=none
17208 dynamic_linker="$host_os ld.so"
17209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17210 if test "$GCC" = yes; then
17211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17212 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17213 # if the path contains ";" then we assume it to be the separator
17214 # otherwise default to the standard path separator (i.e. ":") - it is
17215 # assumed that no part of a normal pathname contains ";" but that should
17216 # okay in the real world where ";" in dirpaths is itself problematic.
17217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17218 else
17219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17221 else
17222 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17224 need_lib_prefix=unknown
17225 hardcode_into_libs=no
17227 # when you set need_version to no, make sure it does not cause -set_version
17228 # flags to be left without arguments
17229 need_version=unknown
17231 case $host_os in
17232 aix3*)
17233 version_type=linux
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17235 shlibpath_var=LIBPATH
17237 # AIX 3 has no versioning support, so we append a major version to the name.
17238 soname_spec='${libname}${release}${shared_ext}$major'
17241 aix4* | aix5*)
17242 version_type=linux
17243 need_lib_prefix=no
17244 need_version=no
17245 hardcode_into_libs=yes
17246 if test "$host_cpu" = ia64; then
17247 # AIX 5 supports IA64
17248 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 else
17251 # With GCC up to 2.95.x, collect2 would create an import file
17252 # for dependence libraries. The import file would start with
17253 # the line `#! .'. This would cause the generated library to
17254 # depend on `.', always an invalid library. This was fixed in
17255 # development snapshots of GCC prior to 3.0.
17256 case $host_os in
17257 aix4 | aix4.[01] | aix4.[01].*)
17258 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17259 echo ' yes '
17260 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17262 else
17263 can_build_shared=no
17266 esac
17267 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17268 # soname into executable. Probably we can add versioning support to
17269 # collect2, so additional links can be useful in future.
17270 if test "$aix_use_runtimelinking" = yes; then
17271 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17272 # instead of lib<name>.a to let people know that these are not
17273 # typical AIX shared libraries.
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 else
17276 # We preserve .a as extension for shared libraries through AIX4.2
17277 # and later when we are not doing run time linking.
17278 library_names_spec='${libname}${release}.a $libname.a'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17281 shlibpath_var=LIBPATH
17285 amigaos*)
17286 library_names_spec='$libname.ixlibrary $libname.a'
17287 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17288 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'
17291 beos*)
17292 library_names_spec='${libname}${shared_ext}'
17293 dynamic_linker="$host_os ld.so"
17294 shlibpath_var=LIBRARY_PATH
17297 bsdi[45]*)
17298 version_type=linux
17299 need_version=no
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17306 # the default ld.so.conf also contains /usr/contrib/lib and
17307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17308 # libtool to hard-code these into programs
17311 cygwin* | mingw* | pw32*)
17312 version_type=windows
17313 shrext_cmds=".dll"
17314 need_version=no
17315 need_lib_prefix=no
17317 case $GCC,$host_os in
17318 yes,cygwin* | yes,mingw* | yes,pw32*)
17319 library_names_spec='$libname.dll.a'
17320 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17321 postinstall_cmds='base_file=`basename \${file}`~
17322 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17323 dldir=$destdir/`dirname \$dlpath`~
17324 test -d \$dldir || mkdir -p \$dldir~
17325 $install_prog $dir/$dlname \$dldir/$dlname'
17326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17327 dlpath=$dir/\$dldll~
17328 $rm \$dlpath'
17329 shlibpath_overrides_runpath=yes
17331 case $host_os in
17332 cygwin*)
17333 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17334 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17335 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17337 mingw*)
17338 # MinGW DLLs use traditional 'lib' prefix
17339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17341 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17342 # It is most probably a Windows format PATH printed by
17343 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17344 # path with ; separators, and with drive letters. We can handle the
17345 # drive letters (cygwin fileutils understands them), so leave them,
17346 # especially as we might pass files found there to a mingw objdump,
17347 # which wouldn't understand a cygwinified path. Ahh.
17348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17349 else
17350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17353 pw32*)
17354 # pw32 DLLs use 'pw' prefix rather than 'lib'
17355 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17357 esac
17361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17363 esac
17364 dynamic_linker='Win32 ld.exe'
17365 # FIXME: first we should search . and the directory the executable is in
17366 shlibpath_var=PATH
17369 darwin* | rhapsody*)
17370 dynamic_linker="$host_os dyld"
17371 version_type=darwin
17372 need_lib_prefix=no
17373 need_version=no
17374 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17375 soname_spec='${libname}${release}${major}$shared_ext'
17376 shlibpath_overrides_runpath=yes
17377 shlibpath_var=DYLD_LIBRARY_PATH
17378 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17379 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17380 if test "$GCC" = yes; then
17381 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"`
17382 else
17383 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17385 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17388 dgux*)
17389 version_type=linux
17390 need_lib_prefix=no
17391 need_version=no
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 shlibpath_var=LD_LIBRARY_PATH
17397 freebsd1*)
17398 dynamic_linker=no
17401 kfreebsd*-gnu)
17402 version_type=linux
17403 need_lib_prefix=no
17404 need_version=no
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath=no
17409 hardcode_into_libs=yes
17410 dynamic_linker='GNU ld.so'
17413 freebsd* | dragonfly*)
17414 # DragonFly does not have aout. When/if they implement a new
17415 # versioning mechanism, adjust this.
17416 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17417 version_type=freebsd-$objformat
17418 case $version_type in
17419 freebsd-elf*)
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17421 need_version=no
17422 need_lib_prefix=no
17424 freebsd-*)
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17426 need_version=yes
17428 esac
17429 shlibpath_var=LD_LIBRARY_PATH
17430 case $host_os in
17431 freebsd2*)
17432 shlibpath_overrides_runpath=yes
17434 freebsd3.[01]* | freebsdelf3.[01]*)
17435 shlibpath_overrides_runpath=yes
17436 hardcode_into_libs=yes
17438 *) # from 3.2 on
17439 shlibpath_overrides_runpath=no
17440 hardcode_into_libs=yes
17442 esac
17445 gnu*)
17446 version_type=linux
17447 need_lib_prefix=no
17448 need_version=no
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 hardcode_into_libs=yes
17455 hpux9* | hpux10* | hpux11*)
17456 # Give a soname corresponding to the major version so that dld.sl refuses to
17457 # link against other versions.
17458 version_type=sunos
17459 need_lib_prefix=no
17460 need_version=no
17461 case "$host_cpu" in
17462 ia64*)
17463 shrext_cmds='.so'
17464 hardcode_into_libs=yes
17465 dynamic_linker="$host_os dld.so"
17466 shlibpath_var=LD_LIBRARY_PATH
17467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 if test "X$HPUX_IA64_MODE" = X32; then
17471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17472 else
17473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17477 hppa*64*)
17478 shrext_cmds='.sl'
17479 hardcode_into_libs=yes
17480 dynamic_linker="$host_os dld.sl"
17481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484 soname_spec='${libname}${release}${shared_ext}$major'
17485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17489 shrext_cmds='.sl'
17490 dynamic_linker="$host_os dld.sl"
17491 shlibpath_var=SHLIB_PATH
17492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17496 esac
17497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17498 postinstall_cmds='chmod 555 $lib'
17501 irix5* | irix6* | nonstopux*)
17502 case $host_os in
17503 nonstopux*) version_type=nonstopux ;;
17505 if test "$lt_cv_prog_gnu_ld" = yes; then
17506 version_type=linux
17507 else
17508 version_type=irix
17509 fi ;;
17510 esac
17511 need_lib_prefix=no
17512 need_version=no
17513 soname_spec='${libname}${release}${shared_ext}$major'
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17515 case $host_os in
17516 irix5* | nonstopux*)
17517 libsuff= shlibsuff=
17520 case $LD in # libtool.m4 will add one of these switches to LD
17521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17522 libsuff= shlibsuff= libmagic=32-bit;;
17523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17524 libsuff=32 shlibsuff=N32 libmagic=N32;;
17525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17527 *) libsuff= shlibsuff= libmagic=never-match;;
17528 esac
17530 esac
17531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17532 shlibpath_overrides_runpath=no
17533 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17534 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17535 hardcode_into_libs=yes
17538 # No shared lib support for Linux oldld, aout, or coff.
17539 linux*oldld* | linux*aout* | linux*coff*)
17540 dynamic_linker=no
17543 # This must be Linux ELF.
17544 linux*)
17545 version_type=linux
17546 need_lib_prefix=no
17547 need_version=no
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17549 soname_spec='${libname}${release}${shared_ext}$major'
17550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17551 shlibpath_var=LD_LIBRARY_PATH
17552 shlibpath_overrides_runpath=no
17553 # This implies no fast_install, which is unacceptable.
17554 # Some rework will be needed to allow for fast_install
17555 # before this can be enabled.
17556 hardcode_into_libs=yes
17558 # find out which ABI we are using
17559 libsuff=
17560 case "$host_cpu" in
17561 x86_64*|s390x*|powerpc64*)
17562 echo '#line 17562 "configure"' > conftest.$ac_ext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17564 (eval $ac_compile) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; then
17568 case `/usr/bin/file conftest.$ac_objext` in
17569 *64-bit*)
17570 libsuff=64
17571 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17573 esac
17575 rm -rf conftest*
17577 esac
17579 # Append ld.so.conf contents to the search path
17580 if test -f /etc/ld.so.conf; then
17581 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17582 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17585 # We used to test for /lib/ld.so.1 and disable shared libraries on
17586 # powerpc, because MkLinux only supported shared libraries with the
17587 # GNU dynamic linker. Since this was broken with cross compilers,
17588 # most powerpc-linux boxes support dynamic linking these days and
17589 # people can always --disable-shared, the test was removed, and we
17590 # assume the GNU/Linux dynamic linker is in use.
17591 dynamic_linker='GNU/Linux ld.so'
17594 knetbsd*-gnu)
17595 version_type=linux
17596 need_lib_prefix=no
17597 need_version=no
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 shlibpath_var=LD_LIBRARY_PATH
17601 shlibpath_overrides_runpath=no
17602 hardcode_into_libs=yes
17603 dynamic_linker='GNU ld.so'
17606 netbsd*)
17607 version_type=sunos
17608 need_lib_prefix=no
17609 need_version=no
17610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17613 dynamic_linker='NetBSD (a.out) ld.so'
17614 else
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 dynamic_linker='NetBSD ld.elf_so'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 shlibpath_overrides_runpath=yes
17621 hardcode_into_libs=yes
17624 newsos6)
17625 version_type=linux
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 shlibpath_overrides_runpath=yes
17631 nto-qnx*)
17632 version_type=linux
17633 need_lib_prefix=no
17634 need_version=no
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 shlibpath_var=LD_LIBRARY_PATH
17638 shlibpath_overrides_runpath=yes
17641 openbsd*)
17642 version_type=sunos
17643 need_lib_prefix=no
17644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17645 case $host_os in
17646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17647 *) need_version=no ;;
17648 esac
17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17653 case $host_os in
17654 openbsd2.[89] | openbsd2.[89].*)
17655 shlibpath_overrides_runpath=no
17658 shlibpath_overrides_runpath=yes
17660 esac
17661 else
17662 shlibpath_overrides_runpath=yes
17666 os2*)
17667 libname_spec='$name'
17668 shrext_cmds=".dll"
17669 need_lib_prefix=no
17670 library_names_spec='$libname${shared_ext} $libname.a'
17671 dynamic_linker='OS/2 ld.exe'
17672 shlibpath_var=LIBPATH
17675 osf3* | osf4* | osf5*)
17676 version_type=osf
17677 need_lib_prefix=no
17678 need_version=no
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17686 sco3.2v5*)
17687 version_type=osf
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 shlibpath_var=LD_LIBRARY_PATH
17693 solaris*)
17694 version_type=linux
17695 need_lib_prefix=no
17696 need_version=no
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17698 soname_spec='${libname}${release}${shared_ext}$major'
17699 shlibpath_var=LD_LIBRARY_PATH
17700 shlibpath_overrides_runpath=yes
17701 hardcode_into_libs=yes
17702 # ldd complains unless libraries are executable
17703 postinstall_cmds='chmod +x $lib'
17706 sunos4*)
17707 version_type=sunos
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17710 shlibpath_var=LD_LIBRARY_PATH
17711 shlibpath_overrides_runpath=yes
17712 if test "$with_gnu_ld" = yes; then
17713 need_lib_prefix=no
17715 need_version=yes
17718 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17719 version_type=linux
17720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721 soname_spec='${libname}${release}${shared_ext}$major'
17722 shlibpath_var=LD_LIBRARY_PATH
17723 case $host_vendor in
17724 sni)
17725 shlibpath_overrides_runpath=no
17726 need_lib_prefix=no
17727 export_dynamic_flag_spec='${wl}-Blargedynsym'
17728 runpath_var=LD_RUN_PATH
17730 siemens)
17731 need_lib_prefix=no
17733 motorola)
17734 need_lib_prefix=no
17735 need_version=no
17736 shlibpath_overrides_runpath=no
17737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17739 esac
17742 sysv4*MP*)
17743 if test -d /usr/nec ;then
17744 version_type=linux
17745 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17746 soname_spec='$libname${shared_ext}.$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17751 uts4*)
17752 version_type=linux
17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17754 soname_spec='${libname}${release}${shared_ext}$major'
17755 shlibpath_var=LD_LIBRARY_PATH
17759 dynamic_linker=no
17761 esac
17762 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17763 echo "${ECHO_T}$dynamic_linker" >&6
17764 test "$dynamic_linker" = no && can_build_shared=no
17766 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17767 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17768 hardcode_action_GCJ=
17769 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17770 test -n "$runpath_var_GCJ" || \
17771 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17773 # We can hardcode non-existant directories.
17774 if test "$hardcode_direct_GCJ" != no &&
17775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17776 # have to relink, otherwise we might link with an installed library
17777 # when we should be linking with a yet-to-be-installed one
17778 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17779 test "$hardcode_minus_L_GCJ" != no; then
17780 # Linking always hardcodes the temporary library directory.
17781 hardcode_action_GCJ=relink
17782 else
17783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17784 hardcode_action_GCJ=immediate
17786 else
17787 # We cannot hardcode anything, or else we can only hardcode existing
17788 # directories.
17789 hardcode_action_GCJ=unsupported
17791 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17792 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17794 if test "$hardcode_action_GCJ" = relink; then
17795 # Fast installation is not supported
17796 enable_fast_install=no
17797 elif test "$shlibpath_overrides_runpath" = yes ||
17798 test "$enable_shared" = no; then
17799 # Fast installation is not necessary
17800 enable_fast_install=needless
17803 striplib=
17804 old_striplib=
17805 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17806 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17807 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17808 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17809 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17810 echo "$as_me:$LINENO: result: yes" >&5
17811 echo "${ECHO_T}yes" >&6
17812 else
17813 # FIXME - insert some real tests, host_os isn't really good enough
17814 case $host_os in
17815 darwin*)
17816 if test -n "$STRIP" ; then
17817 striplib="$STRIP -x"
17818 echo "$as_me:$LINENO: result: yes" >&5
17819 echo "${ECHO_T}yes" >&6
17820 else
17821 echo "$as_me:$LINENO: result: no" >&5
17822 echo "${ECHO_T}no" >&6
17826 echo "$as_me:$LINENO: result: no" >&5
17827 echo "${ECHO_T}no" >&6
17829 esac
17832 if test "x$enable_dlopen" != xyes; then
17833 enable_dlopen=unknown
17834 enable_dlopen_self=unknown
17835 enable_dlopen_self_static=unknown
17836 else
17837 lt_cv_dlopen=no
17838 lt_cv_dlopen_libs=
17840 case $host_os in
17841 beos*)
17842 lt_cv_dlopen="load_add_on"
17843 lt_cv_dlopen_libs=
17844 lt_cv_dlopen_self=yes
17847 mingw* | pw32*)
17848 lt_cv_dlopen="LoadLibrary"
17849 lt_cv_dlopen_libs=
17852 cygwin*)
17853 lt_cv_dlopen="dlopen"
17854 lt_cv_dlopen_libs=
17857 darwin*)
17858 # if libdl is installed we need to link against it
17859 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17860 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864 ac_check_lib_save_LIBS=$LIBS
17865 LIBS="-ldl $LIBS"
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h. */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17873 /* Override any gcc2 internal prototype to avoid an error. */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 /* We use char because int might match the return type of a gcc2
17878 builtin and then its argument prototype would still apply. */
17879 char dlopen ();
17881 main ()
17883 dlopen ();
17885 return 0;
17887 _ACEOF
17888 rm -f conftest.$ac_objext conftest$ac_exeext
17889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17890 (eval $ac_link) 2>conftest.er1
17891 ac_status=$?
17892 grep -v '^ *+' conftest.er1 >conftest.err
17893 rm -f conftest.er1
17894 cat conftest.err >&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); } &&
17897 { ac_try='test -z "$ac_c_werror_flag"
17898 || test ! -s conftest.err'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; } &&
17904 { ac_try='test -s conftest$ac_exeext'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_lib_dl_dlopen=yes
17911 else
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 ac_cv_lib_dl_dlopen=no
17917 rm -f conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17921 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17923 if test $ac_cv_lib_dl_dlopen = yes; then
17924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17925 else
17927 lt_cv_dlopen="dyld"
17928 lt_cv_dlopen_libs=
17929 lt_cv_dlopen_self=yes
17936 echo "$as_me:$LINENO: checking for shl_load" >&5
17937 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17938 if test "${ac_cv_func_shl_load+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941 cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h. */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17949 #define shl_load innocuous_shl_load
17951 /* System header to define __stub macros and hopefully few prototypes,
17952 which can conflict with char shl_load (); below.
17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 <limits.h> exists even on freestanding compilers. */
17956 #ifdef __STDC__
17957 # include <limits.h>
17958 #else
17959 # include <assert.h>
17960 #endif
17962 #undef shl_load
17964 /* Override any gcc2 internal prototype to avoid an error. */
17965 #ifdef __cplusplus
17966 extern "C"
17968 #endif
17969 /* We use char because int might match the return type of a gcc2
17970 builtin and then its argument prototype would still apply. */
17971 char shl_load ();
17972 /* The GNU C library defines this for functions which it implements
17973 to always fail with ENOSYS. Some functions are actually named
17974 something starting with __ and the normal name is an alias. */
17975 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17976 choke me
17977 #else
17978 char (*f) () = shl_load;
17979 #endif
17980 #ifdef __cplusplus
17982 #endif
17985 main ()
17987 return f != shl_load;
17989 return 0;
17991 _ACEOF
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag"
18002 || test ! -s conftest.err'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_func_shl_load=yes
18015 else
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_cv_func_shl_load=no
18021 rm -f conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18024 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18025 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18026 if test $ac_cv_func_shl_load = yes; then
18027 lt_cv_dlopen="shl_load"
18028 else
18029 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18030 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18031 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 else
18034 ac_check_lib_save_LIBS=$LIBS
18035 LIBS="-ldld $LIBS"
18036 cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h. */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18043 /* Override any gcc2 internal prototype to avoid an error. */
18044 #ifdef __cplusplus
18045 extern "C"
18046 #endif
18047 /* We use char because int might match the return type of a gcc2
18048 builtin and then its argument prototype would still apply. */
18049 char shl_load ();
18051 main ()
18053 shl_load ();
18055 return 0;
18057 _ACEOF
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18060 (eval $ac_link) 2>conftest.er1
18061 ac_status=$?
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
18067 { ac_try='test -z "$ac_c_werror_flag"
18068 || test ! -s conftest.err'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest$ac_exeext'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_lib_dld_shl_load=yes
18081 else
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_lib_dld_shl_load=no
18087 rm -f conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089 LIBS=$ac_check_lib_save_LIBS
18091 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18092 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18093 if test $ac_cv_lib_dld_shl_load = yes; then
18094 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18095 else
18096 echo "$as_me:$LINENO: checking for dlopen" >&5
18097 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18098 if test "${ac_cv_func_dlopen+set}" = set; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 else
18101 cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h. */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18109 #define dlopen innocuous_dlopen
18111 /* System header to define __stub macros and hopefully few prototypes,
18112 which can conflict with char dlopen (); below.
18113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114 <limits.h> exists even on freestanding compilers. */
18116 #ifdef __STDC__
18117 # include <limits.h>
18118 #else
18119 # include <assert.h>
18120 #endif
18122 #undef dlopen
18124 /* Override any gcc2 internal prototype to avoid an error. */
18125 #ifdef __cplusplus
18126 extern "C"
18128 #endif
18129 /* We use char because int might match the return type of a gcc2
18130 builtin and then its argument prototype would still apply. */
18131 char dlopen ();
18132 /* The GNU C library defines this for functions which it implements
18133 to always fail with ENOSYS. Some functions are actually named
18134 something starting with __ and the normal name is an alias. */
18135 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18136 choke me
18137 #else
18138 char (*f) () = dlopen;
18139 #endif
18140 #ifdef __cplusplus
18142 #endif
18145 main ()
18147 return f != dlopen;
18149 return 0;
18151 _ACEOF
18152 rm -f conftest.$ac_objext conftest$ac_exeext
18153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18154 (eval $ac_link) 2>conftest.er1
18155 ac_status=$?
18156 grep -v '^ *+' conftest.er1 >conftest.err
18157 rm -f conftest.er1
18158 cat conftest.err >&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -z "$ac_c_werror_flag"
18162 || test ! -s conftest.err'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest$ac_exeext'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 ac_cv_func_dlopen=yes
18175 else
18176 echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 ac_cv_func_dlopen=no
18181 rm -f conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18184 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18185 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18186 if test $ac_cv_func_dlopen = yes; then
18187 lt_cv_dlopen="dlopen"
18188 else
18189 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 else
18194 ac_check_lib_save_LIBS=$LIBS
18195 LIBS="-ldl $LIBS"
18196 cat >conftest.$ac_ext <<_ACEOF
18197 /* confdefs.h. */
18198 _ACEOF
18199 cat confdefs.h >>conftest.$ac_ext
18200 cat >>conftest.$ac_ext <<_ACEOF
18201 /* end confdefs.h. */
18203 /* Override any gcc2 internal prototype to avoid an error. */
18204 #ifdef __cplusplus
18205 extern "C"
18206 #endif
18207 /* We use char because int might match the return type of a gcc2
18208 builtin and then its argument prototype would still apply. */
18209 char dlopen ();
18211 main ()
18213 dlopen ();
18215 return 0;
18217 _ACEOF
18218 rm -f conftest.$ac_objext conftest$ac_exeext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18220 (eval $ac_link) 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag"
18228 || test ! -s conftest.err'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest$ac_exeext'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_cv_lib_dl_dlopen=yes
18241 else
18242 echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 ac_cv_lib_dl_dlopen=no
18247 rm -f conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18249 LIBS=$ac_check_lib_save_LIBS
18251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18253 if test $ac_cv_lib_dl_dlopen = yes; then
18254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18255 else
18256 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18257 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18258 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 else
18261 ac_check_lib_save_LIBS=$LIBS
18262 LIBS="-lsvld $LIBS"
18263 cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h. */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18270 /* Override any gcc2 internal prototype to avoid an error. */
18271 #ifdef __cplusplus
18272 extern "C"
18273 #endif
18274 /* We use char because int might match the return type of a gcc2
18275 builtin and then its argument prototype would still apply. */
18276 char dlopen ();
18278 main ()
18280 dlopen ();
18282 return 0;
18284 _ACEOF
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18287 (eval $ac_link) 2>conftest.er1
18288 ac_status=$?
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest$ac_exeext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_lib_svld_dlopen=yes
18308 else
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_cv_lib_svld_dlopen=no
18314 rm -f conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316 LIBS=$ac_check_lib_save_LIBS
18318 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18319 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18320 if test $ac_cv_lib_svld_dlopen = yes; then
18321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18322 else
18323 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18324 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18325 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328 ac_check_lib_save_LIBS=$LIBS
18329 LIBS="-ldld $LIBS"
18330 cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h. */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18337 /* Override any gcc2 internal prototype to avoid an error. */
18338 #ifdef __cplusplus
18339 extern "C"
18340 #endif
18341 /* We use char because int might match the return type of a gcc2
18342 builtin and then its argument prototype would still apply. */
18343 char dld_link ();
18345 main ()
18347 dld_link ();
18349 return 0;
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>conftest.er1
18355 ac_status=$?
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag"
18362 || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest$ac_exeext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 ac_cv_lib_dld_dld_link=yes
18375 else
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 ac_cv_lib_dld_dld_link=no
18381 rm -f conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18383 LIBS=$ac_check_lib_save_LIBS
18385 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18386 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18387 if test $ac_cv_lib_dld_dld_link = yes; then
18388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18407 esac
18409 if test "x$lt_cv_dlopen" != xno; then
18410 enable_dlopen=yes
18411 else
18412 enable_dlopen=no
18415 case $lt_cv_dlopen in
18416 dlopen)
18417 save_CPPFLAGS="$CPPFLAGS"
18418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18420 save_LDFLAGS="$LDFLAGS"
18421 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18423 save_LIBS="$LIBS"
18424 LIBS="$lt_cv_dlopen_libs $LIBS"
18426 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18427 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18428 if test "${lt_cv_dlopen_self+set}" = set; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431 if test "$cross_compiling" = yes; then :
18432 lt_cv_dlopen_self=cross
18433 else
18434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18435 lt_status=$lt_dlunknown
18436 cat > conftest.$ac_ext <<EOF
18437 #line 18437 "configure"
18438 #include "confdefs.h"
18440 #if HAVE_DLFCN_H
18441 #include <dlfcn.h>
18442 #endif
18444 #include <stdio.h>
18446 #ifdef RTLD_GLOBAL
18447 # define LT_DLGLOBAL RTLD_GLOBAL
18448 #else
18449 # ifdef DL_GLOBAL
18450 # define LT_DLGLOBAL DL_GLOBAL
18451 # else
18452 # define LT_DLGLOBAL 0
18453 # endif
18454 #endif
18456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18457 find out it does not work in some platform. */
18458 #ifndef LT_DLLAZY_OR_NOW
18459 # ifdef RTLD_LAZY
18460 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18461 # else
18462 # ifdef DL_LAZY
18463 # define LT_DLLAZY_OR_NOW DL_LAZY
18464 # else
18465 # ifdef RTLD_NOW
18466 # define LT_DLLAZY_OR_NOW RTLD_NOW
18467 # else
18468 # ifdef DL_NOW
18469 # define LT_DLLAZY_OR_NOW DL_NOW
18470 # else
18471 # define LT_DLLAZY_OR_NOW 0
18472 # endif
18473 # endif
18474 # endif
18475 # endif
18476 #endif
18478 #ifdef __cplusplus
18479 extern "C" void exit (int);
18480 #endif
18482 void fnord() { int i=42;}
18483 int main ()
18485 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18486 int status = $lt_dlunknown;
18488 if (self)
18490 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18491 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18492 /* dlclose (self); */
18495 exit (status);
18498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18499 (eval $ac_link) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18503 (./conftest; exit; ) 2>/dev/null
18504 lt_status=$?
18505 case x$lt_status in
18506 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18507 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18508 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18509 esac
18510 else :
18511 # compilation failed
18512 lt_cv_dlopen_self=no
18515 rm -fr conftest*
18519 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18520 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18522 if test "x$lt_cv_dlopen_self" = xyes; then
18523 LDFLAGS="$LDFLAGS $link_static_flag"
18524 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18525 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18526 if test "${lt_cv_dlopen_self_static+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529 if test "$cross_compiling" = yes; then :
18530 lt_cv_dlopen_self_static=cross
18531 else
18532 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18533 lt_status=$lt_dlunknown
18534 cat > conftest.$ac_ext <<EOF
18535 #line 18535 "configure"
18536 #include "confdefs.h"
18538 #if HAVE_DLFCN_H
18539 #include <dlfcn.h>
18540 #endif
18542 #include <stdio.h>
18544 #ifdef RTLD_GLOBAL
18545 # define LT_DLGLOBAL RTLD_GLOBAL
18546 #else
18547 # ifdef DL_GLOBAL
18548 # define LT_DLGLOBAL DL_GLOBAL
18549 # else
18550 # define LT_DLGLOBAL 0
18551 # endif
18552 #endif
18554 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18555 find out it does not work in some platform. */
18556 #ifndef LT_DLLAZY_OR_NOW
18557 # ifdef RTLD_LAZY
18558 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18559 # else
18560 # ifdef DL_LAZY
18561 # define LT_DLLAZY_OR_NOW DL_LAZY
18562 # else
18563 # ifdef RTLD_NOW
18564 # define LT_DLLAZY_OR_NOW RTLD_NOW
18565 # else
18566 # ifdef DL_NOW
18567 # define LT_DLLAZY_OR_NOW DL_NOW
18568 # else
18569 # define LT_DLLAZY_OR_NOW 0
18570 # endif
18571 # endif
18572 # endif
18573 # endif
18574 #endif
18576 #ifdef __cplusplus
18577 extern "C" void exit (int);
18578 #endif
18580 void fnord() { int i=42;}
18581 int main ()
18583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18584 int status = $lt_dlunknown;
18586 if (self)
18588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18590 /* dlclose (self); */
18593 exit (status);
18596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597 (eval $ac_link) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18601 (./conftest; exit; ) 2>/dev/null
18602 lt_status=$?
18603 case x$lt_status in
18604 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18605 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18606 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18607 esac
18608 else :
18609 # compilation failed
18610 lt_cv_dlopen_self_static=no
18613 rm -fr conftest*
18617 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18618 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18621 CPPFLAGS="$save_CPPFLAGS"
18622 LDFLAGS="$save_LDFLAGS"
18623 LIBS="$save_LIBS"
18625 esac
18627 case $lt_cv_dlopen_self in
18628 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18629 *) enable_dlopen_self=unknown ;;
18630 esac
18632 case $lt_cv_dlopen_self_static in
18633 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18634 *) enable_dlopen_self_static=unknown ;;
18635 esac
18639 # The else clause should only fire when bootstrapping the
18640 # libtool distribution, otherwise you forgot to ship ltmain.sh
18641 # with your package, and you will get complaints that there are
18642 # no rules to generate ltmain.sh.
18643 if test -f "$ltmain"; then
18644 # See if we are running on zsh, and set the options which allow our commands through
18645 # without removal of \ escapes.
18646 if test -n "${ZSH_VERSION+set}" ; then
18647 setopt NO_GLOB_SUBST
18649 # Now quote all the things that may contain metacharacters while being
18650 # careful not to overquote the AC_SUBSTed values. We take copies of the
18651 # variables and quote the copies for generation of the libtool script.
18652 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18653 SED SHELL STRIP \
18654 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18655 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18656 deplibs_check_method reload_flag reload_cmds need_locks \
18657 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18658 lt_cv_sys_global_symbol_to_c_name_address \
18659 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18660 old_postinstall_cmds old_postuninstall_cmds \
18661 compiler_GCJ \
18662 CC_GCJ \
18663 LD_GCJ \
18664 lt_prog_compiler_wl_GCJ \
18665 lt_prog_compiler_pic_GCJ \
18666 lt_prog_compiler_static_GCJ \
18667 lt_prog_compiler_no_builtin_flag_GCJ \
18668 export_dynamic_flag_spec_GCJ \
18669 thread_safe_flag_spec_GCJ \
18670 whole_archive_flag_spec_GCJ \
18671 enable_shared_with_static_runtimes_GCJ \
18672 old_archive_cmds_GCJ \
18673 old_archive_from_new_cmds_GCJ \
18674 predep_objects_GCJ \
18675 postdep_objects_GCJ \
18676 predeps_GCJ \
18677 postdeps_GCJ \
18678 compiler_lib_search_path_GCJ \
18679 archive_cmds_GCJ \
18680 archive_expsym_cmds_GCJ \
18681 postinstall_cmds_GCJ \
18682 postuninstall_cmds_GCJ \
18683 old_archive_from_expsyms_cmds_GCJ \
18684 allow_undefined_flag_GCJ \
18685 no_undefined_flag_GCJ \
18686 export_symbols_cmds_GCJ \
18687 hardcode_libdir_flag_spec_GCJ \
18688 hardcode_libdir_flag_spec_ld_GCJ \
18689 hardcode_libdir_separator_GCJ \
18690 hardcode_automatic_GCJ \
18691 module_cmds_GCJ \
18692 module_expsym_cmds_GCJ \
18693 lt_cv_prog_compiler_c_o_GCJ \
18694 exclude_expsyms_GCJ \
18695 include_expsyms_GCJ; do
18697 case $var in
18698 old_archive_cmds_GCJ | \
18699 old_archive_from_new_cmds_GCJ | \
18700 archive_cmds_GCJ | \
18701 archive_expsym_cmds_GCJ | \
18702 module_cmds_GCJ | \
18703 module_expsym_cmds_GCJ | \
18704 old_archive_from_expsyms_cmds_GCJ | \
18705 export_symbols_cmds_GCJ | \
18706 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18707 postinstall_cmds | postuninstall_cmds | \
18708 old_postinstall_cmds | old_postuninstall_cmds | \
18709 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18710 # Double-quote double-evaled strings.
18711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18716 esac
18717 done
18719 case $lt_echo in
18720 *'\$0 --fallback-echo"')
18721 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18723 esac
18725 cfgfile="$ofile"
18727 cat <<__EOF__ >> "$cfgfile"
18728 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18732 # Shell to use when invoking shell scripts.
18733 SHELL=$lt_SHELL
18735 # Whether or not to build shared libraries.
18736 build_libtool_libs=$enable_shared
18738 # Whether or not to build static libraries.
18739 build_old_libs=$enable_static
18741 # Whether or not to add -lc for building shared libraries.
18742 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18744 # Whether or not to disallow shared libs when runtime libs are static
18745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18747 # Whether or not to optimize for fast installation.
18748 fast_install=$enable_fast_install
18750 # The host system.
18751 host_alias=$host_alias
18752 host=$host
18753 host_os=$host_os
18755 # The build system.
18756 build_alias=$build_alias
18757 build=$build
18758 build_os=$build_os
18760 # An echo program that does not interpret backslashes.
18761 echo=$lt_echo
18763 # The archiver.
18764 AR=$lt_AR
18765 AR_FLAGS=$lt_AR_FLAGS
18767 # A C compiler.
18768 LTCC=$lt_LTCC
18770 # A language-specific compiler.
18771 CC=$lt_compiler_GCJ
18773 # Is the compiler the GNU C compiler?
18774 with_gcc=$GCC_GCJ
18776 # An ERE matcher.
18777 EGREP=$lt_EGREP
18779 # The linker used to build libraries.
18780 LD=$lt_LD_GCJ
18782 # Whether we need hard or soft links.
18783 LN_S=$lt_LN_S
18785 # A BSD-compatible nm program.
18786 NM=$lt_NM
18788 # A symbol stripping program
18789 STRIP=$lt_STRIP
18791 # Used to examine libraries when file_magic_cmd begins "file"
18792 MAGIC_CMD=$MAGIC_CMD
18794 # Used on cygwin: DLL creation program.
18795 DLLTOOL="$DLLTOOL"
18797 # Used on cygwin: object dumper.
18798 OBJDUMP="$OBJDUMP"
18800 # Used on cygwin: assembler.
18801 AS="$AS"
18803 # The name of the directory that contains temporary libtool files.
18804 objdir=$objdir
18806 # How to create reloadable object files.
18807 reload_flag=$lt_reload_flag
18808 reload_cmds=$lt_reload_cmds
18810 # How to pass a linker flag through the compiler.
18811 wl=$lt_lt_prog_compiler_wl_GCJ
18813 # Object file suffix (normally "o").
18814 objext="$ac_objext"
18816 # Old archive suffix (normally "a").
18817 libext="$libext"
18819 # Shared library suffix (normally ".so").
18820 shrext_cmds='$shrext_cmds'
18822 # Executable file suffix (normally "").
18823 exeext="$exeext"
18825 # Additional compiler flags for building library objects.
18826 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18827 pic_mode=$pic_mode
18829 # What is the maximum length of a command?
18830 max_cmd_len=$lt_cv_sys_max_cmd_len
18832 # Does compiler simultaneously support -c and -o options?
18833 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18835 # Must we lock files when doing compilation?
18836 need_locks=$lt_need_locks
18838 # Do we need the lib prefix for modules?
18839 need_lib_prefix=$need_lib_prefix
18841 # Do we need a version for libraries?
18842 need_version=$need_version
18844 # Whether dlopen is supported.
18845 dlopen_support=$enable_dlopen
18847 # Whether dlopen of programs is supported.
18848 dlopen_self=$enable_dlopen_self
18850 # Whether dlopen of statically linked programs is supported.
18851 dlopen_self_static=$enable_dlopen_self_static
18853 # Compiler flag to prevent dynamic linking.
18854 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18856 # Compiler flag to turn off builtin functions.
18857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18859 # Compiler flag to allow reflexive dlopens.
18860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18862 # Compiler flag to generate shared objects directly from archives.
18863 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18865 # Compiler flag to generate thread-safe objects.
18866 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18868 # Library versioning type.
18869 version_type=$version_type
18871 # Format of library name prefix.
18872 libname_spec=$lt_libname_spec
18874 # List of archive names. First name is the real one, the rest are links.
18875 # The last name is the one that the linker finds with -lNAME.
18876 library_names_spec=$lt_library_names_spec
18878 # The coded name of the library, if different from the real name.
18879 soname_spec=$lt_soname_spec
18881 # Commands used to build and install an old-style archive.
18882 RANLIB=$lt_RANLIB
18883 old_archive_cmds=$lt_old_archive_cmds_GCJ
18884 old_postinstall_cmds=$lt_old_postinstall_cmds
18885 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18887 # Create an old-style archive from a shared archive.
18888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18890 # Create a temporary old-style archive to link instead of a shared archive.
18891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18893 # Commands used to build and install a shared archive.
18894 archive_cmds=$lt_archive_cmds_GCJ
18895 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18896 postinstall_cmds=$lt_postinstall_cmds
18897 postuninstall_cmds=$lt_postuninstall_cmds
18899 # Commands used to build a loadable module (assumed same as above if empty)
18900 module_cmds=$lt_module_cmds_GCJ
18901 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18903 # Commands to strip libraries.
18904 old_striplib=$lt_old_striplib
18905 striplib=$lt_striplib
18907 # Dependencies to place before the objects being linked to create a
18908 # shared library.
18909 predep_objects=$lt_predep_objects_GCJ
18911 # Dependencies to place after the objects being linked to create a
18912 # shared library.
18913 postdep_objects=$lt_postdep_objects_GCJ
18915 # Dependencies to place before the objects being linked to create a
18916 # shared library.
18917 predeps=$lt_predeps_GCJ
18919 # Dependencies to place after the objects being linked to create a
18920 # shared library.
18921 postdeps=$lt_postdeps_GCJ
18923 # The library search path used internally by the compiler when linking
18924 # a shared library.
18925 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18927 # Method to check whether dependent libraries are shared objects.
18928 deplibs_check_method=$lt_deplibs_check_method
18930 # Command to use when deplibs_check_method == file_magic.
18931 file_magic_cmd=$lt_file_magic_cmd
18933 # Flag that allows shared libraries with undefined symbols to be built.
18934 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18936 # Flag that forces no undefined symbols.
18937 no_undefined_flag=$lt_no_undefined_flag_GCJ
18939 # Commands used to finish a libtool library installation in a directory.
18940 finish_cmds=$lt_finish_cmds
18942 # Same as above, but a single script fragment to be evaled but not shown.
18943 finish_eval=$lt_finish_eval
18945 # Take the output of nm and produce a listing of raw symbols and C names.
18946 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18948 # Transform the output of nm in a proper C declaration
18949 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18951 # Transform the output of nm in a C name address pair
18952 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18954 # This is the shared library runtime path variable.
18955 runpath_var=$runpath_var
18957 # This is the shared library path variable.
18958 shlibpath_var=$shlibpath_var
18960 # Is shlibpath searched before the hard-coded library search path?
18961 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18963 # How to hardcode a shared library path into an executable.
18964 hardcode_action=$hardcode_action_GCJ
18966 # Whether we should hardcode library paths into libraries.
18967 hardcode_into_libs=$hardcode_into_libs
18969 # Flag to hardcode \$libdir into a binary during linking.
18970 # This must work even if \$libdir does not exist.
18971 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18973 # If ld is used when linking, flag to hardcode \$libdir into
18974 # a binary during linking. This must work even if \$libdir does
18975 # not exist.
18976 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18978 # Whether we need a single -rpath flag with a separated argument.
18979 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18981 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18982 # resulting binary.
18983 hardcode_direct=$hardcode_direct_GCJ
18985 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18986 # resulting binary.
18987 hardcode_minus_L=$hardcode_minus_L_GCJ
18989 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18990 # the resulting binary.
18991 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18993 # Set to yes if building a shared library automatically hardcodes DIR into the library
18994 # and all subsequent libraries and executables linked against it.
18995 hardcode_automatic=$hardcode_automatic_GCJ
18997 # Variables whose values should be saved in libtool wrapper scripts and
18998 # restored at relink time.
18999 variables_saved_for_relink="$variables_saved_for_relink"
19001 # Whether libtool must link a program against all its dependency libraries.
19002 link_all_deplibs=$link_all_deplibs_GCJ
19004 # Compile-time system search path for libraries
19005 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19007 # Run-time system search path for libraries
19008 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19010 # Fix the shell variable \$srcfile for the compiler.
19011 fix_srcfile_path="$fix_srcfile_path_GCJ"
19013 # Set to yes if exported symbols are required.
19014 always_export_symbols=$always_export_symbols_GCJ
19016 # The commands to list exported symbols.
19017 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19019 # The commands to extract the exported symbol list from a shared archive.
19020 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19022 # Symbols that should not be listed in the preloaded symbols.
19023 exclude_expsyms=$lt_exclude_expsyms_GCJ
19025 # Symbols that must always be exported.
19026 include_expsyms=$lt_include_expsyms_GCJ
19028 # ### END LIBTOOL TAG CONFIG: $tagname
19030 __EOF__
19033 else
19034 # If there is no Makefile yet, we rely on a make rule to execute
19035 # `config.status --recheck' to rerun these tests and create the
19036 # libtool script then.
19037 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19038 if test -f "$ltmain_in"; then
19039 test -f Makefile && make "$ltmain"
19044 ac_ext=c
19045 ac_cpp='$CPP $CPPFLAGS'
19046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19050 CC="$lt_save_CC"
19052 else
19053 tagname=""
19061 # Source file extension for RC test sources.
19062 ac_ext=rc
19064 # Object file extension for compiled RC test sources.
19065 objext=o
19066 objext_RC=$objext
19068 # Code to be used in simple compile tests
19069 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19071 # Code to be used in simple link tests
19072 lt_simple_link_test_code="$lt_simple_compile_test_code"
19074 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19076 # If no C compiler was specified, use CC.
19077 LTCC=${LTCC-"$CC"}
19079 # Allow CC to be a program name with arguments.
19080 compiler=$CC
19083 # save warnings/boilerplate of simple test code
19084 ac_outfile=conftest.$ac_objext
19085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19087 _lt_compiler_boilerplate=`cat conftest.err`
19088 $rm conftest*
19090 ac_outfile=conftest.$ac_objext
19091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19093 _lt_linker_boilerplate=`cat conftest.err`
19094 $rm conftest*
19097 # Allow CC to be a program name with arguments.
19098 lt_save_CC="$CC"
19099 CC=${RC-"windres"}
19100 compiler=$CC
19101 compiler_RC=$CC
19102 for cc_temp in $compiler""; do
19103 case $cc_temp in
19104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19106 \-*) ;;
19107 *) break;;
19108 esac
19109 done
19110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19112 lt_cv_prog_compiler_c_o_RC=yes
19114 # The else clause should only fire when bootstrapping the
19115 # libtool distribution, otherwise you forgot to ship ltmain.sh
19116 # with your package, and you will get complaints that there are
19117 # no rules to generate ltmain.sh.
19118 if test -f "$ltmain"; then
19119 # See if we are running on zsh, and set the options which allow our commands through
19120 # without removal of \ escapes.
19121 if test -n "${ZSH_VERSION+set}" ; then
19122 setopt NO_GLOB_SUBST
19124 # Now quote all the things that may contain metacharacters while being
19125 # careful not to overquote the AC_SUBSTed values. We take copies of the
19126 # variables and quote the copies for generation of the libtool script.
19127 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19128 SED SHELL STRIP \
19129 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19130 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19131 deplibs_check_method reload_flag reload_cmds need_locks \
19132 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19133 lt_cv_sys_global_symbol_to_c_name_address \
19134 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19135 old_postinstall_cmds old_postuninstall_cmds \
19136 compiler_RC \
19137 CC_RC \
19138 LD_RC \
19139 lt_prog_compiler_wl_RC \
19140 lt_prog_compiler_pic_RC \
19141 lt_prog_compiler_static_RC \
19142 lt_prog_compiler_no_builtin_flag_RC \
19143 export_dynamic_flag_spec_RC \
19144 thread_safe_flag_spec_RC \
19145 whole_archive_flag_spec_RC \
19146 enable_shared_with_static_runtimes_RC \
19147 old_archive_cmds_RC \
19148 old_archive_from_new_cmds_RC \
19149 predep_objects_RC \
19150 postdep_objects_RC \
19151 predeps_RC \
19152 postdeps_RC \
19153 compiler_lib_search_path_RC \
19154 archive_cmds_RC \
19155 archive_expsym_cmds_RC \
19156 postinstall_cmds_RC \
19157 postuninstall_cmds_RC \
19158 old_archive_from_expsyms_cmds_RC \
19159 allow_undefined_flag_RC \
19160 no_undefined_flag_RC \
19161 export_symbols_cmds_RC \
19162 hardcode_libdir_flag_spec_RC \
19163 hardcode_libdir_flag_spec_ld_RC \
19164 hardcode_libdir_separator_RC \
19165 hardcode_automatic_RC \
19166 module_cmds_RC \
19167 module_expsym_cmds_RC \
19168 lt_cv_prog_compiler_c_o_RC \
19169 exclude_expsyms_RC \
19170 include_expsyms_RC; do
19172 case $var in
19173 old_archive_cmds_RC | \
19174 old_archive_from_new_cmds_RC | \
19175 archive_cmds_RC | \
19176 archive_expsym_cmds_RC | \
19177 module_cmds_RC | \
19178 module_expsym_cmds_RC | \
19179 old_archive_from_expsyms_cmds_RC | \
19180 export_symbols_cmds_RC | \
19181 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19182 postinstall_cmds | postuninstall_cmds | \
19183 old_postinstall_cmds | old_postuninstall_cmds | \
19184 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19185 # Double-quote double-evaled strings.
19186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19191 esac
19192 done
19194 case $lt_echo in
19195 *'\$0 --fallback-echo"')
19196 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19198 esac
19200 cfgfile="$ofile"
19202 cat <<__EOF__ >> "$cfgfile"
19203 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19205 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19207 # Shell to use when invoking shell scripts.
19208 SHELL=$lt_SHELL
19210 # Whether or not to build shared libraries.
19211 build_libtool_libs=$enable_shared
19213 # Whether or not to build static libraries.
19214 build_old_libs=$enable_static
19216 # Whether or not to add -lc for building shared libraries.
19217 build_libtool_need_lc=$archive_cmds_need_lc_RC
19219 # Whether or not to disallow shared libs when runtime libs are static
19220 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19222 # Whether or not to optimize for fast installation.
19223 fast_install=$enable_fast_install
19225 # The host system.
19226 host_alias=$host_alias
19227 host=$host
19228 host_os=$host_os
19230 # The build system.
19231 build_alias=$build_alias
19232 build=$build
19233 build_os=$build_os
19235 # An echo program that does not interpret backslashes.
19236 echo=$lt_echo
19238 # The archiver.
19239 AR=$lt_AR
19240 AR_FLAGS=$lt_AR_FLAGS
19242 # A C compiler.
19243 LTCC=$lt_LTCC
19245 # A language-specific compiler.
19246 CC=$lt_compiler_RC
19248 # Is the compiler the GNU C compiler?
19249 with_gcc=$GCC_RC
19251 # An ERE matcher.
19252 EGREP=$lt_EGREP
19254 # The linker used to build libraries.
19255 LD=$lt_LD_RC
19257 # Whether we need hard or soft links.
19258 LN_S=$lt_LN_S
19260 # A BSD-compatible nm program.
19261 NM=$lt_NM
19263 # A symbol stripping program
19264 STRIP=$lt_STRIP
19266 # Used to examine libraries when file_magic_cmd begins "file"
19267 MAGIC_CMD=$MAGIC_CMD
19269 # Used on cygwin: DLL creation program.
19270 DLLTOOL="$DLLTOOL"
19272 # Used on cygwin: object dumper.
19273 OBJDUMP="$OBJDUMP"
19275 # Used on cygwin: assembler.
19276 AS="$AS"
19278 # The name of the directory that contains temporary libtool files.
19279 objdir=$objdir
19281 # How to create reloadable object files.
19282 reload_flag=$lt_reload_flag
19283 reload_cmds=$lt_reload_cmds
19285 # How to pass a linker flag through the compiler.
19286 wl=$lt_lt_prog_compiler_wl_RC
19288 # Object file suffix (normally "o").
19289 objext="$ac_objext"
19291 # Old archive suffix (normally "a").
19292 libext="$libext"
19294 # Shared library suffix (normally ".so").
19295 shrext_cmds='$shrext_cmds'
19297 # Executable file suffix (normally "").
19298 exeext="$exeext"
19300 # Additional compiler flags for building library objects.
19301 pic_flag=$lt_lt_prog_compiler_pic_RC
19302 pic_mode=$pic_mode
19304 # What is the maximum length of a command?
19305 max_cmd_len=$lt_cv_sys_max_cmd_len
19307 # Does compiler simultaneously support -c and -o options?
19308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19310 # Must we lock files when doing compilation?
19311 need_locks=$lt_need_locks
19313 # Do we need the lib prefix for modules?
19314 need_lib_prefix=$need_lib_prefix
19316 # Do we need a version for libraries?
19317 need_version=$need_version
19319 # Whether dlopen is supported.
19320 dlopen_support=$enable_dlopen
19322 # Whether dlopen of programs is supported.
19323 dlopen_self=$enable_dlopen_self
19325 # Whether dlopen of statically linked programs is supported.
19326 dlopen_self_static=$enable_dlopen_self_static
19328 # Compiler flag to prevent dynamic linking.
19329 link_static_flag=$lt_lt_prog_compiler_static_RC
19331 # Compiler flag to turn off builtin functions.
19332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19334 # Compiler flag to allow reflexive dlopens.
19335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19337 # Compiler flag to generate shared objects directly from archives.
19338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19340 # Compiler flag to generate thread-safe objects.
19341 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19343 # Library versioning type.
19344 version_type=$version_type
19346 # Format of library name prefix.
19347 libname_spec=$lt_libname_spec
19349 # List of archive names. First name is the real one, the rest are links.
19350 # The last name is the one that the linker finds with -lNAME.
19351 library_names_spec=$lt_library_names_spec
19353 # The coded name of the library, if different from the real name.
19354 soname_spec=$lt_soname_spec
19356 # Commands used to build and install an old-style archive.
19357 RANLIB=$lt_RANLIB
19358 old_archive_cmds=$lt_old_archive_cmds_RC
19359 old_postinstall_cmds=$lt_old_postinstall_cmds
19360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19362 # Create an old-style archive from a shared archive.
19363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19365 # Create a temporary old-style archive to link instead of a shared archive.
19366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19368 # Commands used to build and install a shared archive.
19369 archive_cmds=$lt_archive_cmds_RC
19370 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19371 postinstall_cmds=$lt_postinstall_cmds
19372 postuninstall_cmds=$lt_postuninstall_cmds
19374 # Commands used to build a loadable module (assumed same as above if empty)
19375 module_cmds=$lt_module_cmds_RC
19376 module_expsym_cmds=$lt_module_expsym_cmds_RC
19378 # Commands to strip libraries.
19379 old_striplib=$lt_old_striplib
19380 striplib=$lt_striplib
19382 # Dependencies to place before the objects being linked to create a
19383 # shared library.
19384 predep_objects=$lt_predep_objects_RC
19386 # Dependencies to place after the objects being linked to create a
19387 # shared library.
19388 postdep_objects=$lt_postdep_objects_RC
19390 # Dependencies to place before the objects being linked to create a
19391 # shared library.
19392 predeps=$lt_predeps_RC
19394 # Dependencies to place after the objects being linked to create a
19395 # shared library.
19396 postdeps=$lt_postdeps_RC
19398 # The library search path used internally by the compiler when linking
19399 # a shared library.
19400 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19402 # Method to check whether dependent libraries are shared objects.
19403 deplibs_check_method=$lt_deplibs_check_method
19405 # Command to use when deplibs_check_method == file_magic.
19406 file_magic_cmd=$lt_file_magic_cmd
19408 # Flag that allows shared libraries with undefined symbols to be built.
19409 allow_undefined_flag=$lt_allow_undefined_flag_RC
19411 # Flag that forces no undefined symbols.
19412 no_undefined_flag=$lt_no_undefined_flag_RC
19414 # Commands used to finish a libtool library installation in a directory.
19415 finish_cmds=$lt_finish_cmds
19417 # Same as above, but a single script fragment to be evaled but not shown.
19418 finish_eval=$lt_finish_eval
19420 # Take the output of nm and produce a listing of raw symbols and C names.
19421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19423 # Transform the output of nm in a proper C declaration
19424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19426 # Transform the output of nm in a C name address pair
19427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19429 # This is the shared library runtime path variable.
19430 runpath_var=$runpath_var
19432 # This is the shared library path variable.
19433 shlibpath_var=$shlibpath_var
19435 # Is shlibpath searched before the hard-coded library search path?
19436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19438 # How to hardcode a shared library path into an executable.
19439 hardcode_action=$hardcode_action_RC
19441 # Whether we should hardcode library paths into libraries.
19442 hardcode_into_libs=$hardcode_into_libs
19444 # Flag to hardcode \$libdir into a binary during linking.
19445 # This must work even if \$libdir does not exist.
19446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19448 # If ld is used when linking, flag to hardcode \$libdir into
19449 # a binary during linking. This must work even if \$libdir does
19450 # not exist.
19451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19453 # Whether we need a single -rpath flag with a separated argument.
19454 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19457 # resulting binary.
19458 hardcode_direct=$hardcode_direct_RC
19460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19461 # resulting binary.
19462 hardcode_minus_L=$hardcode_minus_L_RC
19464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19465 # the resulting binary.
19466 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19468 # Set to yes if building a shared library automatically hardcodes DIR into the library
19469 # and all subsequent libraries and executables linked against it.
19470 hardcode_automatic=$hardcode_automatic_RC
19472 # Variables whose values should be saved in libtool wrapper scripts and
19473 # restored at relink time.
19474 variables_saved_for_relink="$variables_saved_for_relink"
19476 # Whether libtool must link a program against all its dependency libraries.
19477 link_all_deplibs=$link_all_deplibs_RC
19479 # Compile-time system search path for libraries
19480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19482 # Run-time system search path for libraries
19483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19485 # Fix the shell variable \$srcfile for the compiler.
19486 fix_srcfile_path="$fix_srcfile_path_RC"
19488 # Set to yes if exported symbols are required.
19489 always_export_symbols=$always_export_symbols_RC
19491 # The commands to list exported symbols.
19492 export_symbols_cmds=$lt_export_symbols_cmds_RC
19494 # The commands to extract the exported symbol list from a shared archive.
19495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19497 # Symbols that should not be listed in the preloaded symbols.
19498 exclude_expsyms=$lt_exclude_expsyms_RC
19500 # Symbols that must always be exported.
19501 include_expsyms=$lt_include_expsyms_RC
19503 # ### END LIBTOOL TAG CONFIG: $tagname
19505 __EOF__
19508 else
19509 # If there is no Makefile yet, we rely on a make rule to execute
19510 # `config.status --recheck' to rerun these tests and create the
19511 # libtool script then.
19512 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19513 if test -f "$ltmain_in"; then
19514 test -f Makefile && make "$ltmain"
19519 ac_ext=c
19520 ac_cpp='$CPP $CPPFLAGS'
19521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19525 CC="$lt_save_CC"
19530 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19531 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19532 { (exit 1); exit 1; }; }
19534 esac
19536 # Append the new tag name to the list of available tags.
19537 if test -n "$tagname" ; then
19538 available_tags="$available_tags $tagname"
19541 done
19542 IFS="$lt_save_ifs"
19544 # Now substitute the updated list of available tags.
19545 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19546 mv "${ofile}T" "$ofile"
19547 chmod +x "$ofile"
19548 else
19549 rm -f "${ofile}T"
19550 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19551 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19552 { (exit 1); exit 1; }; }
19558 # This can be used to rebuild libtool when needed
19559 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19561 # Always use our own libtool.
19562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19564 # Prevent multiple expansion
19586 ac_config_files="$ac_config_files Makefile src/Makefile"
19587 cat >confcache <<\_ACEOF
19588 # This file is a shell script that caches the results of configure
19589 # tests run on this system so they can be shared between configure
19590 # scripts and configure runs, see configure's option --config-cache.
19591 # It is not useful on other systems. If it contains results you don't
19592 # want to keep, you may remove or edit it.
19594 # config.status only pays attention to the cache file if you give it
19595 # the --recheck option to rerun configure.
19597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19599 # following values.
19601 _ACEOF
19603 # The following way of writing the cache mishandles newlines in values,
19604 # but we know of no workaround that is simple, portable, and efficient.
19605 # So, don't put newlines in cache variables' values.
19606 # Ultrix sh set writes to stderr and can't be redirected directly,
19607 # and sets the high bit in the cache file unless we assign to the vars.
19609 (set) 2>&1 |
19610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19611 *ac_space=\ *)
19612 # `set' does not quote correctly, so add quotes (double-quote
19613 # substitution turns \\\\ into \\, and sed turns \\ into \).
19614 sed -n \
19615 "s/'/'\\\\''/g;
19616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19619 # `set' quotes correctly as required by POSIX, so do not add quotes.
19620 sed -n \
19621 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19623 esac;
19625 sed '
19626 t clear
19627 : clear
19628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19629 t end
19630 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19631 : end' >>confcache
19632 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19633 if test -w $cache_file; then
19634 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19635 cat confcache >$cache_file
19636 else
19637 echo "not updating unwritable cache $cache_file"
19640 rm -f confcache
19642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19643 # Let make expand exec_prefix.
19644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19646 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19647 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19648 # trailing colons and then remove the whole line if VPATH becomes empty
19649 # (actually we leave an empty line to preserve line numbers).
19650 if test "x$srcdir" = x.; then
19651 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19652 s/:*\$(srcdir):*/:/;
19653 s/:*\${srcdir}:*/:/;
19654 s/:*@srcdir@:*/:/;
19655 s/^\([^=]*=[ ]*\):*/\1/;
19656 s/:*$//;
19657 s/^[^=]*=[ ]*$//;
19661 DEFS=-DHAVE_CONFIG_H
19663 ac_libobjs=
19664 ac_ltlibobjs=
19665 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19666 # 1. Remove the extension, and $U if already installed.
19667 ac_i=`echo "$ac_i" |
19668 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19669 # 2. Add them.
19670 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19671 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19672 done
19673 LIBOBJS=$ac_libobjs
19675 LTLIBOBJS=$ac_ltlibobjs
19678 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19679 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19680 Usually this means the macro was only invoked conditionally." >&5
19681 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19682 Usually this means the macro was only invoked conditionally." >&2;}
19683 { (exit 1); exit 1; }; }
19685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19686 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19687 Usually this means the macro was only invoked conditionally." >&5
19688 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19689 Usually this means the macro was only invoked conditionally." >&2;}
19690 { (exit 1); exit 1; }; }
19692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19693 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19694 Usually this means the macro was only invoked conditionally." >&5
19695 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19696 Usually this means the macro was only invoked conditionally." >&2;}
19697 { (exit 1); exit 1; }; }
19700 : ${CONFIG_STATUS=./config.status}
19701 ac_clean_files_save=$ac_clean_files
19702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19703 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19704 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19705 cat >$CONFIG_STATUS <<_ACEOF
19706 #! $SHELL
19707 # Generated by $as_me.
19708 # Run this file to recreate the current configuration.
19709 # Compiler output produced by configure, useful for debugging
19710 # configure, is in config.log if it exists.
19712 debug=false
19713 ac_cs_recheck=false
19714 ac_cs_silent=false
19715 SHELL=\${CONFIG_SHELL-$SHELL}
19716 _ACEOF
19718 cat >>$CONFIG_STATUS <<\_ACEOF
19719 ## --------------------- ##
19720 ## M4sh Initialization. ##
19721 ## --------------------- ##
19723 # Be Bourne compatible
19724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19725 emulate sh
19726 NULLCMD=:
19727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19728 # is contrary to our usage. Disable this feature.
19729 alias -g '${1+"$@"}'='"$@"'
19730 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19731 set -o posix
19733 DUALCASE=1; export DUALCASE # for MKS sh
19735 # Support unset when possible.
19736 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19737 as_unset=unset
19738 else
19739 as_unset=false
19743 # Work around bugs in pre-3.0 UWIN ksh.
19744 $as_unset ENV MAIL MAILPATH
19745 PS1='$ '
19746 PS2='> '
19747 PS4='+ '
19749 # NLS nuisances.
19750 for as_var in \
19751 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19752 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19753 LC_TELEPHONE LC_TIME
19755 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19756 eval $as_var=C; export $as_var
19757 else
19758 $as_unset $as_var
19760 done
19762 # Required to use basename.
19763 if expr a : '\(a\)' >/dev/null 2>&1; then
19764 as_expr=expr
19765 else
19766 as_expr=false
19769 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19770 as_basename=basename
19771 else
19772 as_basename=false
19776 # Name of the executable.
19777 as_me=`$as_basename "$0" ||
19778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19779 X"$0" : 'X\(//\)$' \| \
19780 X"$0" : 'X\(/\)$' \| \
19781 . : '\(.\)' 2>/dev/null ||
19782 echo X/"$0" |
19783 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19784 /^X\/\(\/\/\)$/{ s//\1/; q; }
19785 /^X\/\(\/\).*/{ s//\1/; q; }
19786 s/.*/./; q'`
19789 # PATH needs CR, and LINENO needs CR and PATH.
19790 # Avoid depending upon Character Ranges.
19791 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19792 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19793 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19794 as_cr_digits='0123456789'
19795 as_cr_alnum=$as_cr_Letters$as_cr_digits
19797 # The user is always right.
19798 if test "${PATH_SEPARATOR+set}" != set; then
19799 echo "#! /bin/sh" >conf$$.sh
19800 echo "exit 0" >>conf$$.sh
19801 chmod +x conf$$.sh
19802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19803 PATH_SEPARATOR=';'
19804 else
19805 PATH_SEPARATOR=:
19807 rm -f conf$$.sh
19811 as_lineno_1=$LINENO
19812 as_lineno_2=$LINENO
19813 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19814 test "x$as_lineno_1" != "x$as_lineno_2" &&
19815 test "x$as_lineno_3" = "x$as_lineno_2" || {
19816 # Find who we are. Look in the path if we contain no path at all
19817 # relative or not.
19818 case $0 in
19819 *[\\/]* ) as_myself=$0 ;;
19820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19821 for as_dir in $PATH
19823 IFS=$as_save_IFS
19824 test -z "$as_dir" && as_dir=.
19825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19826 done
19829 esac
19830 # We did not find ourselves, most probably we were run as `sh COMMAND'
19831 # in which case we are not to be found in the path.
19832 if test "x$as_myself" = x; then
19833 as_myself=$0
19835 if test ! -f "$as_myself"; then
19836 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19837 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19838 { (exit 1); exit 1; }; }
19840 case $CONFIG_SHELL in
19842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19843 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19845 IFS=$as_save_IFS
19846 test -z "$as_dir" && as_dir=.
19847 for as_base in sh bash ksh sh5; do
19848 case $as_dir in
19850 if ("$as_dir/$as_base" -c '
19851 as_lineno_1=$LINENO
19852 as_lineno_2=$LINENO
19853 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19854 test "x$as_lineno_1" != "x$as_lineno_2" &&
19855 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19856 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19857 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19858 CONFIG_SHELL=$as_dir/$as_base
19859 export CONFIG_SHELL
19860 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19861 fi;;
19862 esac
19863 done
19864 done
19866 esac
19868 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19869 # uniformly replaced by the line number. The first 'sed' inserts a
19870 # line-number line before each line; the second 'sed' does the real
19871 # work. The second script uses 'N' to pair each line-number line
19872 # with the numbered line, and appends trailing '-' during
19873 # substitution so that $LINENO is not a special case at line end.
19874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19875 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19876 sed '=' <$as_myself |
19877 sed '
19879 s,$,-,
19880 : loop
19881 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19882 t loop
19883 s,-$,,
19884 s,^['$as_cr_digits']*\n,,
19885 ' >$as_me.lineno &&
19886 chmod +x $as_me.lineno ||
19887 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19888 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19889 { (exit 1); exit 1; }; }
19891 # Don't try to exec as it changes $[0], causing all sort of problems
19892 # (the dirname of $[0] is not the place where we might find the
19893 # original and so on. Autoconf is especially sensible to this).
19894 . ./$as_me.lineno
19895 # Exit status is that of the last command.
19896 exit
19900 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19901 *c*,-n*) ECHO_N= ECHO_C='
19902 ' ECHO_T=' ' ;;
19903 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19904 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19905 esac
19907 if expr a : '\(a\)' >/dev/null 2>&1; then
19908 as_expr=expr
19909 else
19910 as_expr=false
19913 rm -f conf$$ conf$$.exe conf$$.file
19914 echo >conf$$.file
19915 if ln -s conf$$.file conf$$ 2>/dev/null; then
19916 # We could just check for DJGPP; but this test a) works b) is more generic
19917 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19918 if test -f conf$$.exe; then
19919 # Don't use ln at all; we don't have any links
19920 as_ln_s='cp -p'
19921 else
19922 as_ln_s='ln -s'
19924 elif ln conf$$.file conf$$ 2>/dev/null; then
19925 as_ln_s=ln
19926 else
19927 as_ln_s='cp -p'
19929 rm -f conf$$ conf$$.exe conf$$.file
19931 if mkdir -p . 2>/dev/null; then
19932 as_mkdir_p=:
19933 else
19934 test -d ./-p && rmdir ./-p
19935 as_mkdir_p=false
19938 as_executable_p="test -f"
19940 # Sed expression to map a string onto a valid CPP name.
19941 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19943 # Sed expression to map a string onto a valid variable name.
19944 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19947 # IFS
19948 # We need space, tab and new line, in precisely that order.
19949 as_nl='
19951 IFS=" $as_nl"
19953 # CDPATH.
19954 $as_unset CDPATH
19956 exec 6>&1
19958 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19959 # report actual input values of CONFIG_FILES etc. instead of their
19960 # values after options handling. Logging --version etc. is OK.
19961 exec 5>>config.log
19963 echo
19964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19965 ## Running $as_me. ##
19966 _ASBOX
19967 } >&5
19968 cat >&5 <<_CSEOF
19970 This file was extended by $as_me, which was
19971 generated by GNU Autoconf 2.59. Invocation command line was
19973 CONFIG_FILES = $CONFIG_FILES
19974 CONFIG_HEADERS = $CONFIG_HEADERS
19975 CONFIG_LINKS = $CONFIG_LINKS
19976 CONFIG_COMMANDS = $CONFIG_COMMANDS
19977 $ $0 $@
19979 _CSEOF
19980 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19981 echo >&5
19982 _ACEOF
19984 # Files that config.status was made for.
19985 if test -n "$ac_config_files"; then
19986 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19989 if test -n "$ac_config_headers"; then
19990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19993 if test -n "$ac_config_links"; then
19994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19997 if test -n "$ac_config_commands"; then
19998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20001 cat >>$CONFIG_STATUS <<\_ACEOF
20003 ac_cs_usage="\
20004 \`$as_me' instantiates files from templates according to the
20005 current configuration.
20007 Usage: $0 [OPTIONS] [FILE]...
20009 -h, --help print this help, then exit
20010 -V, --version print version number, then exit
20011 -q, --quiet do not print progress messages
20012 -d, --debug don't remove temporary files
20013 --recheck update $as_me by reconfiguring in the same conditions
20014 --file=FILE[:TEMPLATE]
20015 instantiate the configuration file FILE
20016 --header=FILE[:TEMPLATE]
20017 instantiate the configuration header FILE
20019 Configuration files:
20020 $config_files
20022 Configuration headers:
20023 $config_headers
20025 Configuration commands:
20026 $config_commands
20028 Report bugs to <bug-autoconf@gnu.org>."
20029 _ACEOF
20031 cat >>$CONFIG_STATUS <<_ACEOF
20032 ac_cs_version="\\
20033 config.status
20034 configured by $0, generated by GNU Autoconf 2.59,
20035 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20037 Copyright (C) 2003 Free Software Foundation, Inc.
20038 This config.status script is free software; the Free Software Foundation
20039 gives unlimited permission to copy, distribute and modify it."
20040 srcdir=$srcdir
20041 INSTALL="$INSTALL"
20042 _ACEOF
20044 cat >>$CONFIG_STATUS <<\_ACEOF
20045 # If no file are specified by the user, then we need to provide default
20046 # value. By we need to know if files were specified by the user.
20047 ac_need_defaults=:
20048 while test $# != 0
20050 case $1 in
20051 --*=*)
20052 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20053 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20054 ac_shift=:
20057 ac_option=$1
20058 ac_optarg=$2
20059 ac_shift=shift
20061 *) # This is not an option, so the user has probably given explicit
20062 # arguments.
20063 ac_option=$1
20064 ac_need_defaults=false;;
20065 esac
20067 case $ac_option in
20068 # Handling of the options.
20069 _ACEOF
20070 cat >>$CONFIG_STATUS <<\_ACEOF
20071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20072 ac_cs_recheck=: ;;
20073 --version | --vers* | -V )
20074 echo "$ac_cs_version"; exit 0 ;;
20075 --he | --h)
20076 # Conflict between --help and --header
20077 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20078 Try \`$0 --help' for more information." >&5
20079 echo "$as_me: error: ambiguous option: $1
20080 Try \`$0 --help' for more information." >&2;}
20081 { (exit 1); exit 1; }; };;
20082 --help | --hel | -h )
20083 echo "$ac_cs_usage"; exit 0 ;;
20084 --debug | --d* | -d )
20085 debug=: ;;
20086 --file | --fil | --fi | --f )
20087 $ac_shift
20088 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20089 ac_need_defaults=false;;
20090 --header | --heade | --head | --hea )
20091 $ac_shift
20092 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20093 ac_need_defaults=false;;
20094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20096 ac_cs_silent=: ;;
20098 # This is an error.
20099 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20100 Try \`$0 --help' for more information." >&5
20101 echo "$as_me: error: unrecognized option: $1
20102 Try \`$0 --help' for more information." >&2;}
20103 { (exit 1); exit 1; }; } ;;
20105 *) ac_config_targets="$ac_config_targets $1" ;;
20107 esac
20108 shift
20109 done
20111 ac_configure_extra_args=
20113 if $ac_cs_silent; then
20114 exec 6>/dev/null
20115 ac_configure_extra_args="$ac_configure_extra_args --silent"
20118 _ACEOF
20119 cat >>$CONFIG_STATUS <<_ACEOF
20120 if \$ac_cs_recheck; then
20121 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20122 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20125 _ACEOF
20127 cat >>$CONFIG_STATUS <<_ACEOF
20129 # INIT-COMMANDS section.
20132 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20134 _ACEOF
20138 cat >>$CONFIG_STATUS <<\_ACEOF
20139 for ac_config_target in $ac_config_targets
20141 case "$ac_config_target" in
20142 # Handling of arguments.
20143 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20144 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20145 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20146 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20147 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20148 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20149 { (exit 1); exit 1; }; };;
20150 esac
20151 done
20153 # If the user did not use the arguments to specify the items to instantiate,
20154 # then the envvar interface is used. Set only those that are not.
20155 # We use the long form for the default assignment because of an extremely
20156 # bizarre bug on SunOS 4.1.3.
20157 if $ac_need_defaults; then
20158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20159 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20160 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20163 # Have a temporary directory for convenience. Make it in the build tree
20164 # simply because there is no reason to put it here, and in addition,
20165 # creating and moving files from /tmp can sometimes cause problems.
20166 # Create a temporary directory, and hook for its removal unless debugging.
20167 $debug ||
20169 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20170 trap '{ (exit 1); exit 1; }' 1 2 13 15
20173 # Create a (secure) tmp directory for tmp files.
20176 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20177 test -n "$tmp" && test -d "$tmp"
20178 } ||
20180 tmp=./confstat$$-$RANDOM
20181 (umask 077 && mkdir $tmp)
20182 } ||
20184 echo "$me: cannot create a temporary directory in ." >&2
20185 { (exit 1); exit 1; }
20188 _ACEOF
20190 cat >>$CONFIG_STATUS <<_ACEOF
20193 # CONFIG_FILES section.
20196 # No need to generate the scripts if there are no CONFIG_FILES.
20197 # This happens for instance when ./config.status config.h
20198 if test -n "\$CONFIG_FILES"; then
20199 # Protect against being on the right side of a sed subst in config.status.
20200 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20201 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20202 s,@SHELL@,$SHELL,;t t
20203 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20204 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20205 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20206 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20207 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20208 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20209 s,@exec_prefix@,$exec_prefix,;t t
20210 s,@prefix@,$prefix,;t t
20211 s,@program_transform_name@,$program_transform_name,;t t
20212 s,@bindir@,$bindir,;t t
20213 s,@sbindir@,$sbindir,;t t
20214 s,@libexecdir@,$libexecdir,;t t
20215 s,@datadir@,$datadir,;t t
20216 s,@sysconfdir@,$sysconfdir,;t t
20217 s,@sharedstatedir@,$sharedstatedir,;t t
20218 s,@localstatedir@,$localstatedir,;t t
20219 s,@libdir@,$libdir,;t t
20220 s,@includedir@,$includedir,;t t
20221 s,@oldincludedir@,$oldincludedir,;t t
20222 s,@infodir@,$infodir,;t t
20223 s,@mandir@,$mandir,;t t
20224 s,@build_alias@,$build_alias,;t t
20225 s,@host_alias@,$host_alias,;t t
20226 s,@target_alias@,$target_alias,;t t
20227 s,@DEFS@,$DEFS,;t t
20228 s,@ECHO_C@,$ECHO_C,;t t
20229 s,@ECHO_N@,$ECHO_N,;t t
20230 s,@ECHO_T@,$ECHO_T,;t t
20231 s,@LIBS@,$LIBS,;t t
20232 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20233 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20234 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20235 s,@CYGPATH_W@,$CYGPATH_W,;t t
20236 s,@PACKAGE@,$PACKAGE,;t t
20237 s,@VERSION@,$VERSION,;t t
20238 s,@ACLOCAL@,$ACLOCAL,;t t
20239 s,@AUTOCONF@,$AUTOCONF,;t t
20240 s,@AUTOMAKE@,$AUTOMAKE,;t t
20241 s,@AUTOHEADER@,$AUTOHEADER,;t t
20242 s,@MAKEINFO@,$MAKEINFO,;t t
20243 s,@AMTAR@,$AMTAR,;t t
20244 s,@install_sh@,$install_sh,;t t
20245 s,@STRIP@,$STRIP,;t t
20246 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20247 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20248 s,@AWK@,$AWK,;t t
20249 s,@SET_MAKE@,$SET_MAKE,;t t
20250 s,@am__leading_dot@,$am__leading_dot,;t t
20251 s,@CC@,$CC,;t t
20252 s,@CFLAGS@,$CFLAGS,;t t
20253 s,@LDFLAGS@,$LDFLAGS,;t t
20254 s,@CPPFLAGS@,$CPPFLAGS,;t t
20255 s,@ac_ct_CC@,$ac_ct_CC,;t t
20256 s,@EXEEXT@,$EXEEXT,;t t
20257 s,@OBJEXT@,$OBJEXT,;t t
20258 s,@DEPDIR@,$DEPDIR,;t t
20259 s,@am__include@,$am__include,;t t
20260 s,@am__quote@,$am__quote,;t t
20261 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20262 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20263 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20264 s,@CCDEPMODE@,$CCDEPMODE,;t t
20265 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20266 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20267 s,@build@,$build,;t t
20268 s,@build_cpu@,$build_cpu,;t t
20269 s,@build_vendor@,$build_vendor,;t t
20270 s,@build_os@,$build_os,;t t
20271 s,@host@,$host,;t t
20272 s,@host_cpu@,$host_cpu,;t t
20273 s,@host_vendor@,$host_vendor,;t t
20274 s,@host_os@,$host_os,;t t
20275 s,@EGREP@,$EGREP,;t t
20276 s,@LN_S@,$LN_S,;t t
20277 s,@ECHO@,$ECHO,;t t
20278 s,@AR@,$AR,;t t
20279 s,@ac_ct_AR@,$ac_ct_AR,;t t
20280 s,@RANLIB@,$RANLIB,;t t
20281 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20282 s,@CPP@,$CPP,;t t
20283 s,@CXX@,$CXX,;t t
20284 s,@CXXFLAGS@,$CXXFLAGS,;t t
20285 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20286 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20287 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20288 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20289 s,@CXXCPP@,$CXXCPP,;t t
20290 s,@F77@,$F77,;t t
20291 s,@FFLAGS@,$FFLAGS,;t t
20292 s,@ac_ct_F77@,$ac_ct_F77,;t t
20293 s,@LIBTOOL@,$LIBTOOL,;t t
20294 s,@LIBOBJS@,$LIBOBJS,;t t
20295 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20296 CEOF
20298 _ACEOF
20300 cat >>$CONFIG_STATUS <<\_ACEOF
20301 # Split the substitutions into bite-sized pieces for seds with
20302 # small command number limits, like on Digital OSF/1 and HP-UX.
20303 ac_max_sed_lines=48
20304 ac_sed_frag=1 # Number of current file.
20305 ac_beg=1 # First line for current file.
20306 ac_end=$ac_max_sed_lines # Line after last line for current file.
20307 ac_more_lines=:
20308 ac_sed_cmds=
20309 while $ac_more_lines; do
20310 if test $ac_beg -gt 1; then
20311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20312 else
20313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20315 if test ! -s $tmp/subs.frag; then
20316 ac_more_lines=false
20317 else
20318 # The purpose of the label and of the branching condition is to
20319 # speed up the sed processing (if there are no `@' at all, there
20320 # is no need to browse any of the substitutions).
20321 # These are the two extra sed commands mentioned above.
20322 (echo ':t
20323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20324 if test -z "$ac_sed_cmds"; then
20325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20326 else
20327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20329 ac_sed_frag=`expr $ac_sed_frag + 1`
20330 ac_beg=$ac_end
20331 ac_end=`expr $ac_end + $ac_max_sed_lines`
20333 done
20334 if test -z "$ac_sed_cmds"; then
20335 ac_sed_cmds=cat
20337 fi # test -n "$CONFIG_FILES"
20339 _ACEOF
20340 cat >>$CONFIG_STATUS <<\_ACEOF
20341 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20343 case $ac_file in
20344 - | *:- | *:-:* ) # input from stdin
20345 cat >$tmp/stdin
20346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20350 * ) ac_file_in=$ac_file.in ;;
20351 esac
20353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20356 X"$ac_file" : 'X\(//\)[^/]' \| \
20357 X"$ac_file" : 'X\(//\)$' \| \
20358 X"$ac_file" : 'X\(/\)' \| \
20359 . : '\(.\)' 2>/dev/null ||
20360 echo X"$ac_file" |
20361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20363 /^X\(\/\/\)$/{ s//\1/; q; }
20364 /^X\(\/\).*/{ s//\1/; q; }
20365 s/.*/./; q'`
20366 { if $as_mkdir_p; then
20367 mkdir -p "$ac_dir"
20368 else
20369 as_dir="$ac_dir"
20370 as_dirs=
20371 while test ! -d "$as_dir"; do
20372 as_dirs="$as_dir $as_dirs"
20373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20375 X"$as_dir" : 'X\(//\)[^/]' \| \
20376 X"$as_dir" : 'X\(//\)$' \| \
20377 X"$as_dir" : 'X\(/\)' \| \
20378 . : '\(.\)' 2>/dev/null ||
20379 echo X"$as_dir" |
20380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20382 /^X\(\/\/\)$/{ s//\1/; q; }
20383 /^X\(\/\).*/{ s//\1/; q; }
20384 s/.*/./; q'`
20385 done
20386 test ! -n "$as_dirs" || mkdir $as_dirs
20387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20389 { (exit 1); exit 1; }; }; }
20391 ac_builddir=.
20393 if test "$ac_dir" != .; then
20394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20395 # A "../" for each directory in $ac_dir_suffix.
20396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20397 else
20398 ac_dir_suffix= ac_top_builddir=
20401 case $srcdir in
20402 .) # No --srcdir option. We are building in place.
20403 ac_srcdir=.
20404 if test -z "$ac_top_builddir"; then
20405 ac_top_srcdir=.
20406 else
20407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20408 fi ;;
20409 [\\/]* | ?:[\\/]* ) # Absolute path.
20410 ac_srcdir=$srcdir$ac_dir_suffix;
20411 ac_top_srcdir=$srcdir ;;
20412 *) # Relative path.
20413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20415 esac
20417 # Do not use `cd foo && pwd` to compute absolute paths, because
20418 # the directories may not exist.
20419 case `pwd` in
20420 .) ac_abs_builddir="$ac_dir";;
20422 case "$ac_dir" in
20423 .) ac_abs_builddir=`pwd`;;
20424 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20425 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20426 esac;;
20427 esac
20428 case $ac_abs_builddir in
20429 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20431 case ${ac_top_builddir}. in
20432 .) ac_abs_top_builddir=$ac_abs_builddir;;
20433 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20434 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20435 esac;;
20436 esac
20437 case $ac_abs_builddir in
20438 .) ac_abs_srcdir=$ac_srcdir;;
20440 case $ac_srcdir in
20441 .) ac_abs_srcdir=$ac_abs_builddir;;
20442 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20443 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20444 esac;;
20445 esac
20446 case $ac_abs_builddir in
20447 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20449 case $ac_top_srcdir in
20450 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20451 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20452 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20453 esac;;
20454 esac
20457 case $INSTALL in
20458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20459 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20460 esac
20462 if test x"$ac_file" != x-; then
20463 { echo "$as_me:$LINENO: creating $ac_file" >&5
20464 echo "$as_me: creating $ac_file" >&6;}
20465 rm -f "$ac_file"
20467 # Let's still pretend it is `configure' which instantiates (i.e., don't
20468 # use $as_me), people would be surprised to read:
20469 # /* config.h. Generated by config.status. */
20470 if test x"$ac_file" = x-; then
20471 configure_input=
20472 else
20473 configure_input="$ac_file. "
20475 configure_input=$configure_input"Generated from `echo $ac_file_in |
20476 sed 's,.*/,,'` by configure."
20478 # First look for the input files in the build tree, otherwise in the
20479 # src tree.
20480 ac_file_inputs=`IFS=:
20481 for f in $ac_file_in; do
20482 case $f in
20483 -) echo $tmp/stdin ;;
20484 [\\/$]*)
20485 # Absolute (can't be DOS-style, as IFS=:)
20486 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20487 echo "$as_me: error: cannot find input file: $f" >&2;}
20488 { (exit 1); exit 1; }; }
20489 echo "$f";;
20490 *) # Relative
20491 if test -f "$f"; then
20492 # Build tree
20493 echo "$f"
20494 elif test -f "$srcdir/$f"; then
20495 # Source tree
20496 echo "$srcdir/$f"
20497 else
20498 # /dev/null tree
20499 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20500 echo "$as_me: error: cannot find input file: $f" >&2;}
20501 { (exit 1); exit 1; }; }
20502 fi;;
20503 esac
20504 done` || { (exit 1); exit 1; }
20505 _ACEOF
20506 cat >>$CONFIG_STATUS <<_ACEOF
20507 sed "$ac_vpsub
20508 $extrasub
20509 _ACEOF
20510 cat >>$CONFIG_STATUS <<\_ACEOF
20512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20513 s,@configure_input@,$configure_input,;t t
20514 s,@srcdir@,$ac_srcdir,;t t
20515 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20516 s,@top_srcdir@,$ac_top_srcdir,;t t
20517 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20518 s,@builddir@,$ac_builddir,;t t
20519 s,@abs_builddir@,$ac_abs_builddir,;t t
20520 s,@top_builddir@,$ac_top_builddir,;t t
20521 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20522 s,@INSTALL@,$ac_INSTALL,;t t
20523 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20524 rm -f $tmp/stdin
20525 if test x"$ac_file" != x-; then
20526 mv $tmp/out $ac_file
20527 else
20528 cat $tmp/out
20529 rm -f $tmp/out
20532 done
20533 _ACEOF
20534 cat >>$CONFIG_STATUS <<\_ACEOF
20537 # CONFIG_HEADER section.
20540 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20541 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20543 # ac_d sets the value in "#define NAME VALUE" lines.
20544 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20545 ac_dB='[ ].*$,\1#\2'
20546 ac_dC=' '
20547 ac_dD=',;t'
20548 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20549 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20550 ac_uB='$,\1#\2define\3'
20551 ac_uC=' '
20552 ac_uD=',;t'
20554 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20556 case $ac_file in
20557 - | *:- | *:-:* ) # input from stdin
20558 cat >$tmp/stdin
20559 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20561 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20563 * ) ac_file_in=$ac_file.in ;;
20564 esac
20566 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20567 echo "$as_me: creating $ac_file" >&6;}
20569 # First look for the input files in the build tree, otherwise in the
20570 # src tree.
20571 ac_file_inputs=`IFS=:
20572 for f in $ac_file_in; do
20573 case $f in
20574 -) echo $tmp/stdin ;;
20575 [\\/$]*)
20576 # Absolute (can't be DOS-style, as IFS=:)
20577 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20578 echo "$as_me: error: cannot find input file: $f" >&2;}
20579 { (exit 1); exit 1; }; }
20580 # Do quote $f, to prevent DOS paths from being IFS'd.
20581 echo "$f";;
20582 *) # Relative
20583 if test -f "$f"; then
20584 # Build tree
20585 echo "$f"
20586 elif test -f "$srcdir/$f"; then
20587 # Source tree
20588 echo "$srcdir/$f"
20589 else
20590 # /dev/null tree
20591 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20592 echo "$as_me: error: cannot find input file: $f" >&2;}
20593 { (exit 1); exit 1; }; }
20594 fi;;
20595 esac
20596 done` || { (exit 1); exit 1; }
20597 # Remove the trailing spaces.
20598 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20600 _ACEOF
20602 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20603 # `conftest.undefs', that substitutes the proper values into
20604 # config.h.in to produce config.h. The first handles `#define'
20605 # templates, and the second `#undef' templates.
20606 # And first: Protect against being on the right side of a sed subst in
20607 # config.status. Protect against being in an unquoted here document
20608 # in config.status.
20609 rm -f conftest.defines conftest.undefs
20610 # Using a here document instead of a string reduces the quoting nightmare.
20611 # Putting comments in sed scripts is not portable.
20613 # `end' is used to avoid that the second main sed command (meant for
20614 # 0-ary CPP macros) applies to n-ary macro definitions.
20615 # See the Autoconf documentation for `clear'.
20616 cat >confdef2sed.sed <<\_ACEOF
20617 s/[\\&,]/\\&/g
20618 s,[\\$`],\\&,g
20619 t clear
20620 : clear
20621 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20622 t end
20623 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20624 : end
20625 _ACEOF
20626 # If some macros were called several times there might be several times
20627 # the same #defines, which is useless. Nevertheless, we may not want to
20628 # sort them, since we want the *last* AC-DEFINE to be honored.
20629 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20630 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20631 rm -f confdef2sed.sed
20633 # This sed command replaces #undef with comments. This is necessary, for
20634 # example, in the case of _POSIX_SOURCE, which is predefined and required
20635 # on some systems where configure will not decide to define it.
20636 cat >>conftest.undefs <<\_ACEOF
20637 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20638 _ACEOF
20640 # Break up conftest.defines because some shells have a limit on the size
20641 # of here documents, and old seds have small limits too (100 cmds).
20642 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20643 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20644 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20645 echo ' :' >>$CONFIG_STATUS
20646 rm -f conftest.tail
20647 while grep . conftest.defines >/dev/null
20649 # Write a limited-size here document to $tmp/defines.sed.
20650 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20651 # Speed up: don't consider the non `#define' lines.
20652 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20653 # Work around the forget-to-reset-the-flag bug.
20654 echo 't clr' >>$CONFIG_STATUS
20655 echo ': clr' >>$CONFIG_STATUS
20656 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20657 echo 'CEOF
20658 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20659 rm -f $tmp/in
20660 mv $tmp/out $tmp/in
20661 ' >>$CONFIG_STATUS
20662 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20663 rm -f conftest.defines
20664 mv conftest.tail conftest.defines
20665 done
20666 rm -f conftest.defines
20667 echo ' fi # grep' >>$CONFIG_STATUS
20668 echo >>$CONFIG_STATUS
20670 # Break up conftest.undefs because some shells have a limit on the size
20671 # of here documents, and old seds have small limits too (100 cmds).
20672 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20673 rm -f conftest.tail
20674 while grep . conftest.undefs >/dev/null
20676 # Write a limited-size here document to $tmp/undefs.sed.
20677 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20678 # Speed up: don't consider the non `#undef'
20679 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20680 # Work around the forget-to-reset-the-flag bug.
20681 echo 't clr' >>$CONFIG_STATUS
20682 echo ': clr' >>$CONFIG_STATUS
20683 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20684 echo 'CEOF
20685 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20686 rm -f $tmp/in
20687 mv $tmp/out $tmp/in
20688 ' >>$CONFIG_STATUS
20689 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20690 rm -f conftest.undefs
20691 mv conftest.tail conftest.undefs
20692 done
20693 rm -f conftest.undefs
20695 cat >>$CONFIG_STATUS <<\_ACEOF
20696 # Let's still pretend it is `configure' which instantiates (i.e., don't
20697 # use $as_me), people would be surprised to read:
20698 # /* config.h. Generated by config.status. */
20699 if test x"$ac_file" = x-; then
20700 echo "/* Generated by configure. */" >$tmp/config.h
20701 else
20702 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20704 cat $tmp/in >>$tmp/config.h
20705 rm -f $tmp/in
20706 if test x"$ac_file" != x-; then
20707 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20708 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20709 echo "$as_me: $ac_file is unchanged" >&6;}
20710 else
20711 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20713 X"$ac_file" : 'X\(//\)[^/]' \| \
20714 X"$ac_file" : 'X\(//\)$' \| \
20715 X"$ac_file" : 'X\(/\)' \| \
20716 . : '\(.\)' 2>/dev/null ||
20717 echo X"$ac_file" |
20718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20720 /^X\(\/\/\)$/{ s//\1/; q; }
20721 /^X\(\/\).*/{ s//\1/; q; }
20722 s/.*/./; q'`
20723 { if $as_mkdir_p; then
20724 mkdir -p "$ac_dir"
20725 else
20726 as_dir="$ac_dir"
20727 as_dirs=
20728 while test ! -d "$as_dir"; do
20729 as_dirs="$as_dir $as_dirs"
20730 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20732 X"$as_dir" : 'X\(//\)[^/]' \| \
20733 X"$as_dir" : 'X\(//\)$' \| \
20734 X"$as_dir" : 'X\(/\)' \| \
20735 . : '\(.\)' 2>/dev/null ||
20736 echo X"$as_dir" |
20737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20739 /^X\(\/\/\)$/{ s//\1/; q; }
20740 /^X\(\/\).*/{ s//\1/; q; }
20741 s/.*/./; q'`
20742 done
20743 test ! -n "$as_dirs" || mkdir $as_dirs
20744 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20745 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20746 { (exit 1); exit 1; }; }; }
20748 rm -f $ac_file
20749 mv $tmp/config.h $ac_file
20751 else
20752 cat $tmp/config.h
20753 rm -f $tmp/config.h
20755 # Compute $ac_file's index in $config_headers.
20756 _am_stamp_count=1
20757 for _am_header in $config_headers :; do
20758 case $_am_header in
20759 $ac_file | $ac_file:* )
20760 break ;;
20762 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20763 esac
20764 done
20765 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20766 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20767 X$ac_file : 'X\(//\)[^/]' \| \
20768 X$ac_file : 'X\(//\)$' \| \
20769 X$ac_file : 'X\(/\)' \| \
20770 . : '\(.\)' 2>/dev/null ||
20771 echo X$ac_file |
20772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20774 /^X\(\/\/\)$/{ s//\1/; q; }
20775 /^X\(\/\).*/{ s//\1/; q; }
20776 s/.*/./; q'`/stamp-h$_am_stamp_count
20777 done
20778 _ACEOF
20779 cat >>$CONFIG_STATUS <<\_ACEOF
20782 # CONFIG_COMMANDS section.
20784 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20785 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20786 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20787 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20788 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20789 X"$ac_dest" : 'X\(//\)[^/]' \| \
20790 X"$ac_dest" : 'X\(//\)$' \| \
20791 X"$ac_dest" : 'X\(/\)' \| \
20792 . : '\(.\)' 2>/dev/null ||
20793 echo X"$ac_dest" |
20794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20796 /^X\(\/\/\)$/{ s//\1/; q; }
20797 /^X\(\/\).*/{ s//\1/; q; }
20798 s/.*/./; q'`
20799 { if $as_mkdir_p; then
20800 mkdir -p "$ac_dir"
20801 else
20802 as_dir="$ac_dir"
20803 as_dirs=
20804 while test ! -d "$as_dir"; do
20805 as_dirs="$as_dir $as_dirs"
20806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20808 X"$as_dir" : 'X\(//\)[^/]' \| \
20809 X"$as_dir" : 'X\(//\)$' \| \
20810 X"$as_dir" : 'X\(/\)' \| \
20811 . : '\(.\)' 2>/dev/null ||
20812 echo X"$as_dir" |
20813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20815 /^X\(\/\/\)$/{ s//\1/; q; }
20816 /^X\(\/\).*/{ s//\1/; q; }
20817 s/.*/./; q'`
20818 done
20819 test ! -n "$as_dirs" || mkdir $as_dirs
20820 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20821 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20822 { (exit 1); exit 1; }; }; }
20824 ac_builddir=.
20826 if test "$ac_dir" != .; then
20827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20828 # A "../" for each directory in $ac_dir_suffix.
20829 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20830 else
20831 ac_dir_suffix= ac_top_builddir=
20834 case $srcdir in
20835 .) # No --srcdir option. We are building in place.
20836 ac_srcdir=.
20837 if test -z "$ac_top_builddir"; then
20838 ac_top_srcdir=.
20839 else
20840 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20841 fi ;;
20842 [\\/]* | ?:[\\/]* ) # Absolute path.
20843 ac_srcdir=$srcdir$ac_dir_suffix;
20844 ac_top_srcdir=$srcdir ;;
20845 *) # Relative path.
20846 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20847 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20848 esac
20850 # Do not use `cd foo && pwd` to compute absolute paths, because
20851 # the directories may not exist.
20852 case `pwd` in
20853 .) ac_abs_builddir="$ac_dir";;
20855 case "$ac_dir" in
20856 .) ac_abs_builddir=`pwd`;;
20857 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20858 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20859 esac;;
20860 esac
20861 case $ac_abs_builddir in
20862 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20864 case ${ac_top_builddir}. in
20865 .) ac_abs_top_builddir=$ac_abs_builddir;;
20866 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20867 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20868 esac;;
20869 esac
20870 case $ac_abs_builddir in
20871 .) ac_abs_srcdir=$ac_srcdir;;
20873 case $ac_srcdir in
20874 .) ac_abs_srcdir=$ac_abs_builddir;;
20875 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20876 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20877 esac;;
20878 esac
20879 case $ac_abs_builddir in
20880 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20882 case $ac_top_srcdir in
20883 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20884 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20885 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20886 esac;;
20887 esac
20890 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20891 echo "$as_me: executing $ac_dest commands" >&6;}
20892 case $ac_dest in
20893 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20894 # Strip MF so we end up with the name of the file.
20895 mf=`echo "$mf" | sed -e 's/:.*$//'`
20896 # Check whether this is an Automake generated Makefile or not.
20897 # We used to match only the files named `Makefile.in', but
20898 # some people rename them; so instead we look at the file content.
20899 # Grep'ing the first line is not enough: some people post-process
20900 # each Makefile.in and add a new line on top of each file to say so.
20901 # So let's grep whole file.
20902 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20903 dirpart=`(dirname "$mf") 2>/dev/null ||
20904 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20905 X"$mf" : 'X\(//\)[^/]' \| \
20906 X"$mf" : 'X\(//\)$' \| \
20907 X"$mf" : 'X\(/\)' \| \
20908 . : '\(.\)' 2>/dev/null ||
20909 echo X"$mf" |
20910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20912 /^X\(\/\/\)$/{ s//\1/; q; }
20913 /^X\(\/\).*/{ s//\1/; q; }
20914 s/.*/./; q'`
20915 else
20916 continue
20918 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20919 # Extract the definition of DEP_FILES from the Makefile without
20920 # running `make'.
20921 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20922 test -z "$DEPDIR" && continue
20923 # When using ansi2knr, U may be empty or an underscore; expand it
20924 U=`sed -n -e '/^U = / s///p' < "$mf"`
20925 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20926 # We invoke sed twice because it is the simplest approach to
20927 # changing $(DEPDIR) to its actual value in the expansion.
20928 for file in `sed -n -e '
20929 /^DEP_FILES = .*\\\\$/ {
20930 s/^DEP_FILES = //
20931 :loop
20932 s/\\\\$//
20935 /\\\\$/ b loop
20938 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20939 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20940 # Make sure the directory exists.
20941 test -f "$dirpart/$file" && continue
20942 fdir=`(dirname "$file") 2>/dev/null ||
20943 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20944 X"$file" : 'X\(//\)[^/]' \| \
20945 X"$file" : 'X\(//\)$' \| \
20946 X"$file" : 'X\(/\)' \| \
20947 . : '\(.\)' 2>/dev/null ||
20948 echo X"$file" |
20949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20951 /^X\(\/\/\)$/{ s//\1/; q; }
20952 /^X\(\/\).*/{ s//\1/; q; }
20953 s/.*/./; q'`
20954 { if $as_mkdir_p; then
20955 mkdir -p $dirpart/$fdir
20956 else
20957 as_dir=$dirpart/$fdir
20958 as_dirs=
20959 while test ! -d "$as_dir"; do
20960 as_dirs="$as_dir $as_dirs"
20961 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20963 X"$as_dir" : 'X\(//\)[^/]' \| \
20964 X"$as_dir" : 'X\(//\)$' \| \
20965 X"$as_dir" : 'X\(/\)' \| \
20966 . : '\(.\)' 2>/dev/null ||
20967 echo X"$as_dir" |
20968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20970 /^X\(\/\/\)$/{ s//\1/; q; }
20971 /^X\(\/\).*/{ s//\1/; q; }
20972 s/.*/./; q'`
20973 done
20974 test ! -n "$as_dirs" || mkdir $as_dirs
20975 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20976 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20977 { (exit 1); exit 1; }; }; }
20979 # echo "creating $dirpart/$file"
20980 echo '# dummy' > "$dirpart/$file"
20981 done
20982 done
20984 esac
20985 done
20986 _ACEOF
20988 cat >>$CONFIG_STATUS <<\_ACEOF
20990 { (exit 0); exit 0; }
20991 _ACEOF
20992 chmod +x $CONFIG_STATUS
20993 ac_clean_files=$ac_clean_files_save
20996 # configure is writing to config.log, and then calls config.status.
20997 # config.status does its own redirection, appending to config.log.
20998 # Unfortunately, on DOS this fails, as config.log is still kept open
20999 # by configure, so config.status won't be able to write to it; its
21000 # output is simply discarded. So we exec the FD to /dev/null,
21001 # effectively closing config.log, so it can be properly (re)opened and
21002 # appended to by config.status. When coming back to configure, we
21003 # need to make the FD available again.
21004 if test "$no_create" != yes; then
21005 ac_cs_success=:
21006 ac_config_status_args=
21007 test "$silent" = yes &&
21008 ac_config_status_args="$ac_config_status_args --quiet"
21009 exec 5>/dev/null
21010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21011 exec 5>>config.log
21012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21013 # would make configure fail if this is the last instruction.
21014 $ac_cs_success || { (exit 1); exit 1; }