No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / autoconf-lib-link / tests / rpathx / configure
blob733d2b8a367f255e70c4843063d53f31960b8c9d
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.ac"
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 global_top_auxdir 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 build
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
1497 ac_aux_dir=
1498 for ac_dir in ../../../build-aux $srcdir/../../../build-aux; do
1499 if test -f $ac_dir/install-sh; then
1500 ac_aux_dir=$ac_dir
1501 ac_install_sh="$ac_aux_dir/install-sh -c"
1502 break
1503 elif 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/shtool; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/shtool install -c"
1510 break
1512 done
1513 if test -z "$ac_aux_dir"; then
1514 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&5
1515 echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&2;}
1516 { (exit 1); exit 1; }; }
1518 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1519 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1520 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1522 am__api_version="1.9"
1523 # Find a good install program. We prefer a C program (faster),
1524 # so one script is as good as another. But avoid the broken or
1525 # incompatible versions:
1526 # SysV /etc/install, /usr/sbin/install
1527 # SunOS /usr/etc/install
1528 # IRIX /sbin/install
1529 # AIX /bin/install
1530 # AmigaOS /C/install, which installs bootblocks on floppy discs
1531 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534 # OS/2's system install, which has a completely different semantic
1535 # ./install, which can be erroneously created by make from ./install.sh.
1536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1538 if test -z "$INSTALL"; then
1539 if test "${ac_cv_path_install+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 for as_dir in $PATH
1545 IFS=$as_save_IFS
1546 test -z "$as_dir" && as_dir=.
1547 # Account for people who put trailing slashes in PATH elements.
1548 case $as_dir/ in
1549 ./ | .// | /cC/* | \
1550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1551 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1552 /usr/ucb/* ) ;;
1554 # OSF1 and SCO ODT 3.0 have their own names for install.
1555 # Don't use installbsd from OSF since it installs stuff as root
1556 # by default.
1557 for ac_prog in ginstall scoinst install; do
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1560 if test $ac_prog = install &&
1561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1562 # AIX install. It has an incompatible calling convention.
1564 elif test $ac_prog = install &&
1565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1566 # program-specific install script used by HP pwplus--don't use.
1568 else
1569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1570 break 3
1573 done
1574 done
1576 esac
1577 done
1581 if test "${ac_cv_path_install+set}" = set; then
1582 INSTALL=$ac_cv_path_install
1583 else
1584 # As a last resort, use the slow shell script. We don't cache a
1585 # path for INSTALL within a source directory, because that will
1586 # break other packages using the cache if that directory is
1587 # removed, or if the path is relative.
1588 INSTALL=$ac_install_sh
1591 echo "$as_me:$LINENO: result: $INSTALL" >&5
1592 echo "${ECHO_T}$INSTALL" >&6
1594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1595 # It thinks the first close brace ends the variable substitution.
1596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1602 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1603 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1604 # Just in case
1605 sleep 1
1606 echo timestamp > conftest.file
1607 # Do `set' in a subshell so we don't clobber the current shell's
1608 # arguments. Must try -L first in case configure is actually a
1609 # symlink; some systems play weird games with the mod time of symlinks
1610 # (eg FreeBSD returns the mod time of the symlink's containing
1611 # directory).
1612 if (
1613 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1614 if test "$*" = "X"; then
1615 # -L didn't work.
1616 set X `ls -t $srcdir/configure conftest.file`
1618 rm -f conftest.file
1619 if test "$*" != "X $srcdir/configure conftest.file" \
1620 && test "$*" != "X conftest.file $srcdir/configure"; then
1622 # If neither matched, then we have a broken ls. This can happen
1623 # if, for instance, CONFIG_SHELL is bash and it inherits a
1624 # broken ls alias from the environment. This has actually
1625 # happened. Such a system could not be considered "sane".
1626 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1627 alias in your environment" >&5
1628 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&2;}
1630 { (exit 1); exit 1; }; }
1633 test "$2" = conftest.file
1635 then
1636 # Ok.
1638 else
1639 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1640 Check your system clock" >&5
1641 echo "$as_me: error: newly created file is older than distributed files!
1642 Check your system clock" >&2;}
1643 { (exit 1); exit 1; }; }
1645 echo "$as_me:$LINENO: result: yes" >&5
1646 echo "${ECHO_T}yes" >&6
1647 test "$program_prefix" != NONE &&
1648 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1649 # Use a double $ so make ignores it.
1650 test "$program_suffix" != NONE &&
1651 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1652 # Double any \ or $. echo might interpret backslashes.
1653 # By default was `s,x,x', remove it if useless.
1654 cat <<\_ACEOF >conftest.sed
1655 s/[\\$]/&&/g;s/;s,x,x,$//
1656 _ACEOF
1657 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1658 rm conftest.sed
1660 # expand $ac_aux_dir to an absolute path
1661 am_aux_dir=`cd $ac_aux_dir && pwd`
1663 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1664 # Use eval to expand $SHELL
1665 if eval "$MISSING --run true"; then
1666 am_missing_run="$MISSING --run "
1667 else
1668 am_missing_run=
1669 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1670 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1673 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1674 # We used to keeping the `.' as first argument, in order to
1675 # allow $(mkdir_p) to be used without argument. As in
1676 # $(mkdir_p) $(somedir)
1677 # where $(somedir) is conditionally defined. However this is wrong
1678 # for two reasons:
1679 # 1. if the package is installed by a user who cannot write `.'
1680 # make install will fail,
1681 # 2. the above comment should most certainly read
1682 # $(mkdir_p) $(DESTDIR)$(somedir)
1683 # so it does not work when $(somedir) is undefined and
1684 # $(DESTDIR) is not.
1685 # To support the latter case, we have to write
1686 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1687 # so the `.' trick is pointless.
1688 mkdir_p='mkdir -p --'
1689 else
1690 # On NextStep and OpenStep, the `mkdir' command does not
1691 # recognize any option. It will interpret all options as
1692 # directories to create, and then abort because `.' already
1693 # exists.
1694 for d in ./-p ./--version;
1696 test -d $d && rmdir $d
1697 done
1698 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1699 if test -f "$ac_aux_dir/mkinstalldirs"; then
1700 mkdir_p='$(mkinstalldirs)'
1701 else
1702 mkdir_p='$(install_sh) -d'
1706 for ac_prog in gawk mawk nawk awk
1708 # Extract the first word of "$ac_prog", so it can be a program name with args.
1709 set dummy $ac_prog; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_AWK+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 if test -n "$AWK"; then
1716 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_AWK="$ac_prog"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 break 2
1729 done
1730 done
1734 AWK=$ac_cv_prog_AWK
1735 if test -n "$AWK"; then
1736 echo "$as_me:$LINENO: result: $AWK" >&5
1737 echo "${ECHO_T}$AWK" >&6
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1743 test -n "$AWK" && break
1744 done
1746 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1747 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1749 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752 cat >conftest.make <<\_ACEOF
1753 all:
1754 @echo 'ac_maketemp="$(MAKE)"'
1755 _ACEOF
1756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1757 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1758 if test -n "$ac_maketemp"; then
1759 eval ac_cv_prog_make_${ac_make}_set=yes
1760 else
1761 eval ac_cv_prog_make_${ac_make}_set=no
1763 rm -f conftest.make
1765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1766 echo "$as_me:$LINENO: result: yes" >&5
1767 echo "${ECHO_T}yes" >&6
1768 SET_MAKE=
1769 else
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1772 SET_MAKE="MAKE=${MAKE-make}"
1775 rm -rf .tst 2>/dev/null
1776 mkdir .tst 2>/dev/null
1777 if test -d .tst; then
1778 am__leading_dot=.
1779 else
1780 am__leading_dot=_
1782 rmdir .tst 2>/dev/null
1784 # test to see if srcdir already configured
1785 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1786 test -f $srcdir/config.status; then
1787 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1788 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1789 { (exit 1); exit 1; }; }
1792 # test whether we have cygpath
1793 if test -z "$CYGPATH_W"; then
1794 if (cygpath --version) >/dev/null 2>/dev/null; then
1795 CYGPATH_W='cygpath -w'
1796 else
1797 CYGPATH_W=echo
1802 # Define the identity of the package.
1803 PACKAGE=gettext_rpathx
1804 VERSION=0
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE "$PACKAGE"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define VERSION "$VERSION"
1814 _ACEOF
1816 # Some tools Automake needs.
1818 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1832 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1834 # Installed binaries are usually stripped using `strip' when the user
1835 # run `make install-strip'. However `strip' might not be the right
1836 # tool to use in cross-compilation environments, therefore Automake
1837 # will honor the `STRIP' environment variable to overrule this program.
1838 if test "$cross_compiling" != no; then
1839 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1841 set dummy ${ac_tool_prefix}strip; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_STRIP+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 if test -n "$STRIP"; then
1848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1849 else
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 break 2
1861 done
1862 done
1866 STRIP=$ac_cv_prog_STRIP
1867 if test -n "$STRIP"; then
1868 echo "$as_me:$LINENO: result: $STRIP" >&5
1869 echo "${ECHO_T}$STRIP" >&6
1870 else
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1876 if test -z "$ac_cv_prog_STRIP"; then
1877 ac_ct_STRIP=$STRIP
1878 # Extract the first word of "strip", so it can be a program name with args.
1879 set dummy strip; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test -n "$ac_ct_STRIP"; then
1886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_STRIP="strip"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1899 done
1900 done
1902 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1906 if test -n "$ac_ct_STRIP"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1908 echo "${ECHO_T}$ac_ct_STRIP" >&6
1909 else
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1914 STRIP=$ac_ct_STRIP
1915 else
1916 STRIP="$ac_cv_prog_STRIP"
1920 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1922 # We need awk for the "check" target. The system "awk" is bad on
1923 # some platforms.
1924 # Always define AMTAR for backward compatibility.
1926 AMTAR=${AMTAR-"${am_missing_run}tar"}
1928 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1934 ac_ext=c
1935 ac_cpp='$CPP $CPPFLAGS'
1936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 if test -n "$ac_tool_prefix"; then
1940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$CC"; then
1948 ac_cv_prog_CC="$CC" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1961 done
1962 done
1966 CC=$ac_cv_prog_CC
1967 if test -n "$CC"; then
1968 echo "$as_me:$LINENO: result: $CC" >&5
1969 echo "${ECHO_T}$CC" >&6
1970 else
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1976 if test -z "$ac_cv_prog_CC"; then
1977 ac_ct_CC=$CC
1978 # Extract the first word of "gcc", so it can be a program name with args.
1979 set dummy gcc; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 if test -n "$ac_ct_CC"; then
1986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_ac_ct_CC="gcc"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1999 done
2000 done
2004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2005 if test -n "$ac_ct_CC"; then
2006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2007 echo "${ECHO_T}$ac_ct_CC" >&6
2008 else
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2013 CC=$ac_ct_CC
2014 else
2015 CC="$ac_cv_prog_CC"
2018 if test -z "$CC"; then
2019 if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2021 set dummy ${ac_tool_prefix}cc; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CC="${ac_tool_prefix}cc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2041 done
2042 done
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048 echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2050 else
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2056 if test -z "$ac_cv_prog_CC"; then
2057 ac_ct_CC=$CC
2058 # Extract the first word of "cc", so it can be a program name with args.
2059 set dummy cc; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065 if test -n "$ac_ct_CC"; then
2066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 else
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_ac_ct_CC="cc"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 break 2
2079 done
2080 done
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6
2088 else
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2093 CC=$ac_ct_CC
2094 else
2095 CC="$ac_cv_prog_CC"
2099 if test -z "$CC"; then
2100 # Extract the first word of "cc", so it can be a program name with args.
2101 set dummy cc; ac_word=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 if test -n "$CC"; then
2108 ac_cv_prog_CC="$CC" # Let the user override the test.
2109 else
2110 ac_prog_rejected=no
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2119 ac_prog_rejected=yes
2120 continue
2122 ac_cv_prog_CC="cc"
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 break 2
2126 done
2127 done
2129 if test $ac_prog_rejected = yes; then
2130 # We found a bogon in the path, so make sure we never use it.
2131 set dummy $ac_cv_prog_CC
2132 shift
2133 if test $# != 0; then
2134 # We chose a different compiler from the bogus one.
2135 # However, it has the same basename, so the bogon will be chosen
2136 # first if we set CC to just the basename; use the full file name.
2137 shift
2138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2143 CC=$ac_cv_prog_CC
2144 if test -n "$CC"; then
2145 echo "$as_me:$LINENO: result: $CC" >&5
2146 echo "${ECHO_T}$CC" >&6
2147 else
2148 echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6
2153 if test -z "$CC"; then
2154 if test -n "$ac_tool_prefix"; then
2155 for ac_prog in cl
2157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2178 done
2179 done
2183 CC=$ac_cv_prog_CC
2184 if test -n "$CC"; then
2185 echo "$as_me:$LINENO: result: $CC" >&5
2186 echo "${ECHO_T}$CC" >&6
2187 else
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2192 test -n "$CC" && break
2193 done
2195 if test -z "$CC"; then
2196 ac_ct_CC=$CC
2197 for ac_prog in cl
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test -n "$ac_ct_CC"; then
2207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_ac_ct_CC="$ac_prog"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2220 done
2221 done
2225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2226 if test -n "$ac_ct_CC"; then
2227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2228 echo "${ECHO_T}$ac_ct_CC" >&6
2229 else
2230 echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2234 test -n "$ac_ct_CC" && break
2235 done
2237 CC=$ac_ct_CC
2243 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: no acceptable C compiler found in \$PATH
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2249 # Provide some information about the compiler.
2250 echo "$as_me:$LINENO:" \
2251 "checking for C compiler version" >&5
2252 ac_compiler=`set X $ac_compile; echo $2`
2253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2254 (eval $ac_compiler --version </dev/null >&5) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }
2258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2259 (eval $ac_compiler -v </dev/null >&5) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }
2263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2264 (eval $ac_compiler -V </dev/null >&5) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2269 cat >conftest.$ac_ext <<_ACEOF
2270 /* confdefs.h. */
2271 _ACEOF
2272 cat confdefs.h >>conftest.$ac_ext
2273 cat >>conftest.$ac_ext <<_ACEOF
2274 /* end confdefs.h. */
2277 main ()
2281 return 0;
2283 _ACEOF
2284 ac_clean_files_save=$ac_clean_files
2285 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2286 # Try to create an executable without -o first, disregard a.out.
2287 # It will help us diagnose broken compilers, and finding out an intuition
2288 # of exeext.
2289 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2290 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2291 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2292 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2293 (eval $ac_link_default) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; then
2297 # Find the output, starting from the most likely. This scheme is
2298 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2299 # resort.
2301 # Be careful to initialize this variable, since it used to be cached.
2302 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2303 ac_cv_exeext=
2304 # b.out is created by i960 compilers.
2305 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2307 test -f "$ac_file" || continue
2308 case $ac_file in
2309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2311 conftest.$ac_ext )
2312 # This is the source file.
2314 [ab].out )
2315 # We found the default executable, but exeext='' is most
2316 # certainly right.
2317 break;;
2318 *.* )
2319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320 # FIXME: I believe we export ac_cv_exeext for Libtool,
2321 # but it would be cool to find out if it's true. Does anybody
2322 # maintain Libtool? --akim.
2323 export ac_cv_exeext
2324 break;;
2326 break;;
2327 esac
2328 done
2329 else
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2333 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: C compiler cannot create executables
2336 See \`config.log' for more details." >&2;}
2337 { (exit 77); exit 77; }; }
2340 ac_exeext=$ac_cv_exeext
2341 echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6
2344 # Check the compiler produces executables we can run. If not, either
2345 # the compiler is broken, or we cross compile.
2346 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2347 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2348 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2349 # If not cross compiling, check that we can run a simple program.
2350 if test "$cross_compiling" != yes; then
2351 if { ac_try='./$ac_file'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2357 cross_compiling=no
2358 else
2359 if test "$cross_compiling" = maybe; then
2360 cross_compiling=yes
2361 else
2362 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2363 If you meant to cross compile, use \`--host'.
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot run C compiled programs.
2366 If you meant to cross compile, use \`--host'.
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2372 echo "$as_me:$LINENO: result: yes" >&5
2373 echo "${ECHO_T}yes" >&6
2375 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2376 ac_clean_files=$ac_clean_files_save
2377 # Check the compiler produces executables we can run. If not, either
2378 # the compiler is broken, or we cross compile.
2379 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2380 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2381 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2382 echo "${ECHO_T}$cross_compiling" >&6
2384 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2385 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2393 # work properly (i.e., refer to `conftest.exe'), while it won't with
2394 # `rm'.
2395 for ac_file in conftest.exe conftest conftest.*; do
2396 test -f "$ac_file" || continue
2397 case $ac_file in
2398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2400 export ac_cv_exeext
2401 break;;
2402 * ) break;;
2403 esac
2404 done
2405 else
2406 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
2413 rm -f conftest$ac_cv_exeext
2414 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2415 echo "${ECHO_T}$ac_cv_exeext" >&6
2417 rm -f conftest.$ac_ext
2418 EXEEXT=$ac_cv_exeext
2419 ac_exeext=$EXEEXT
2420 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2421 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2422 if test "${ac_cv_objext+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2433 main ()
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.o conftest.obj
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; then
2446 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2447 case $ac_file in
2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2449 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2450 break;;
2451 esac
2452 done
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2460 See \`config.log' for more details." >&2;}
2461 { (exit 1); exit 1; }; }
2464 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2466 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2467 echo "${ECHO_T}$ac_cv_objext" >&6
2468 OBJEXT=$ac_cv_objext
2469 ac_objext=$OBJEXT
2470 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2471 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2472 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2483 main ()
2485 #ifndef __GNUC__
2486 choke me
2487 #endif
2490 return 0;
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_compiler_gnu=yes
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 ac_compiler_gnu=no
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2526 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2527 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2528 GCC=`test $ac_compiler_gnu = yes && echo yes`
2529 ac_test_CFLAGS=${CFLAGS+set}
2530 ac_save_CFLAGS=$CFLAGS
2531 CFLAGS="-g"
2532 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2533 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2534 if test "${ac_cv_prog_cc_g+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2545 main ()
2549 return 0;
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 ac_cv_prog_cc_g=yes
2575 else
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2579 ac_cv_prog_cc_g=no
2581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2584 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2585 if test "$ac_test_CFLAGS" = set; then
2586 CFLAGS=$ac_save_CFLAGS
2587 elif test $ac_cv_prog_cc_g = yes; then
2588 if test "$GCC" = yes; then
2589 CFLAGS="-g -O2"
2590 else
2591 CFLAGS="-g"
2593 else
2594 if test "$GCC" = yes; then
2595 CFLAGS="-O2"
2596 else
2597 CFLAGS=
2600 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2601 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2602 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605 ac_cv_prog_cc_stdc=no
2606 ac_save_CC=$CC
2607 cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h. */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2613 #include <stdarg.h>
2614 #include <stdio.h>
2615 #include <sys/types.h>
2616 #include <sys/stat.h>
2617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2618 struct buf { int x; };
2619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2620 static char *e (p, i)
2621 char **p;
2622 int i;
2624 return p[i];
2626 static char *f (char * (*g) (char **, int), char **p, ...)
2628 char *s;
2629 va_list v;
2630 va_start (v,p);
2631 s = g (p, va_arg (v,int));
2632 va_end (v);
2633 return s;
2636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2637 function prototypes and stuff, but not '\xHH' hex character constants.
2638 These don't provoke an error unfortunately, instead are silently treated
2639 as 'x'. The following induces an error, until -std1 is added to get
2640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2641 array size at least. It's necessary to write '\x00'==0 to get something
2642 that's true only with -std1. */
2643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2649 int argc;
2650 char **argv;
2652 main ()
2654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2656 return 0;
2658 _ACEOF
2659 # Don't try gcc -ansi; that turns off useful extensions and
2660 # breaks some systems' header files.
2661 # AIX -qlanglvl=ansi
2662 # Ultrix and OSF/1 -std1
2663 # HP-UX 10.20 and later -Ae
2664 # HP-UX older versions -Aa -D_HPUX_SOURCE
2665 # SVR4 -Xc -D__EXTENSIONS__
2666 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2668 CC="$ac_save_CC $ac_arg"
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 (eval $ac_try) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try='test -s conftest.$ac_objext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_prog_cc_stdc=$ac_arg
2692 break
2693 else
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2698 rm -f conftest.err conftest.$ac_objext
2699 done
2700 rm -f conftest.$ac_ext conftest.$ac_objext
2701 CC=$ac_save_CC
2705 case "x$ac_cv_prog_cc_stdc" in
2706 x|xno)
2707 echo "$as_me:$LINENO: result: none needed" >&5
2708 echo "${ECHO_T}none needed" >&6 ;;
2710 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2711 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2712 CC="$CC $ac_cv_prog_cc_stdc" ;;
2713 esac
2715 # Some people use a C++ compiler to compile C. Since we use `exit',
2716 # in C++ we need to declare it. In case someone uses the same compiler
2717 # for both compiling C and C++ we need to have the C++ compiler decide
2718 # the declaration of exit, since it's the most demanding environment.
2719 cat >conftest.$ac_ext <<_ACEOF
2720 #ifndef __cplusplus
2721 choke me
2722 #endif
2723 _ACEOF
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2727 ac_status=$?
2728 grep -v '^ *+' conftest.er1 >conftest.err
2729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 for ac_declaration in \
2747 '' \
2748 'extern "C" void std::exit (int) throw (); using std::exit;' \
2749 'extern "C" void std::exit (int); using std::exit;' \
2750 'extern "C" void exit (int) throw ();' \
2751 'extern "C" void exit (int);' \
2752 'void exit (int);'
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2760 $ac_declaration
2761 #include <stdlib.h>
2763 main ()
2765 exit (42);
2767 return 0;
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772 (eval $ac_compile) 2>conftest.er1
2773 ac_status=$?
2774 grep -v '^ *+' conftest.er1 >conftest.err
2775 rm -f conftest.er1
2776 cat conftest.err >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -z "$ac_c_werror_flag"
2780 || test ! -s conftest.err'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; } &&
2786 { ac_try='test -s conftest.$ac_objext'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 continue
2799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 $ac_declaration
2808 main ()
2810 exit (42);
2812 return 0;
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -z "$ac_c_werror_flag"
2825 || test ! -s conftest.err'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 break
2838 else
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844 done
2845 rm -f conftest*
2846 if test -n "$ac_declaration"; then
2847 echo '#ifdef __cplusplus' >>confdefs.h
2848 echo $ac_declaration >>confdefs.h
2849 echo '#endif' >>confdefs.h
2852 else
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858 ac_ext=c
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 DEPDIR="${am__leading_dot}deps"
2865 ac_config_commands="$ac_config_commands depfiles"
2868 am_make=${MAKE-make}
2869 cat > confinc << 'END'
2870 am__doit:
2871 @echo done
2872 .PHONY: am__doit
2874 # If we don't find an include directive, just comment out the code.
2875 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2876 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2877 am__include="#"
2878 am__quote=
2879 _am_result=none
2880 # First try GNU make style include.
2881 echo "include confinc" > confmf
2882 # We grep out `Entering directory' and `Leaving directory'
2883 # messages which can occur if `w' ends up in MAKEFLAGS.
2884 # In particular we don't look at `^make:' because GNU make might
2885 # be invoked under some other name (usually "gmake"), in which
2886 # case it prints its new name instead of `make'.
2887 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2888 am__include=include
2889 am__quote=
2890 _am_result=GNU
2892 # Now try BSD make style include.
2893 if test "$am__include" = "#"; then
2894 echo '.include "confinc"' > confmf
2895 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2896 am__include=.include
2897 am__quote="\""
2898 _am_result=BSD
2903 echo "$as_me:$LINENO: result: $_am_result" >&5
2904 echo "${ECHO_T}$_am_result" >&6
2905 rm -f confinc confmf
2907 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2908 if test "${enable_dependency_tracking+set}" = set; then
2909 enableval="$enable_dependency_tracking"
2912 if test "x$enable_dependency_tracking" != xno; then
2913 am_depcomp="$ac_aux_dir/depcomp"
2914 AMDEPBACKSLASH='\'
2918 if test "x$enable_dependency_tracking" != xno; then
2919 AMDEP_TRUE=
2920 AMDEP_FALSE='#'
2921 else
2922 AMDEP_TRUE='#'
2923 AMDEP_FALSE=
2929 depcc="$CC" am_compiler_list=
2931 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2932 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2933 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2937 # We make a subdir and do the tests there. Otherwise we can end up
2938 # making bogus files that we don't know about and never remove. For
2939 # instance it was reported that on HP-UX the gcc test will end up
2940 # making a dummy file named `D' -- because `-MD' means `put the output
2941 # in D'.
2942 mkdir conftest.dir
2943 # Copy depcomp to subdir because otherwise we won't find it if we're
2944 # using a relative directory.
2945 cp "$am_depcomp" conftest.dir
2946 cd conftest.dir
2947 # We will build objects and dependencies in a subdirectory because
2948 # it helps to detect inapplicable dependency modes. For instance
2949 # both Tru64's cc and ICC support -MD to output dependencies as a
2950 # side effect of compilation, but ICC will put the dependencies in
2951 # the current directory while Tru64 will put them in the object
2952 # directory.
2953 mkdir sub
2955 am_cv_CC_dependencies_compiler_type=none
2956 if test "$am_compiler_list" = ""; then
2957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2959 for depmode in $am_compiler_list; do
2960 # Setup a source with many dependencies, because some compilers
2961 # like to wrap large dependency lists on column 80 (with \), and
2962 # we should not choose a depcomp mode which is confused by this.
2964 # We need to recreate these files for each test, as the compiler may
2965 # overwrite some of them when testing with obscure command lines.
2966 # This happens at least with the AIX C compiler.
2967 : > sub/conftest.c
2968 for i in 1 2 3 4 5 6; do
2969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2970 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2971 # Solaris 8's {/usr,}/bin/sh.
2972 touch sub/conftst$i.h
2973 done
2974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2976 case $depmode in
2977 nosideeffect)
2978 # after this tag, mechanisms are not by side-effect, so they'll
2979 # only be used when explicitly requested
2980 if test "x$enable_dependency_tracking" = xyes; then
2981 continue
2982 else
2983 break
2986 none) break ;;
2987 esac
2988 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2989 # mode. It turns out that the SunPro C++ compiler does not properly
2990 # handle `-M -o', and we need to detect this.
2991 if depmode=$depmode \
2992 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2993 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2994 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2995 >/dev/null 2>conftest.err &&
2996 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2997 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2998 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2999 # icc doesn't choke on unknown options, it will just issue warnings
3000 # or remarks (even with -Werror). So we grep stderr for any message
3001 # that says an option was ignored or not supported.
3002 # When given -MP, icc 7.0 and 7.1 complain thusly:
3003 # icc: Command line warning: ignoring option '-M'; no argument required
3004 # The diagnosis changed in icc 8.0:
3005 # icc: Command line remark: option '-MP' not supported
3006 if (grep 'ignoring option' conftest.err ||
3007 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3008 am_cv_CC_dependencies_compiler_type=$depmode
3009 break
3012 done
3014 cd ..
3015 rm -rf conftest.dir
3016 else
3017 am_cv_CC_dependencies_compiler_type=none
3021 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3022 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3023 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3028 test "x$enable_dependency_tracking" != xno \
3029 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3030 am__fastdepCC_TRUE=
3031 am__fastdepCC_FALSE='#'
3032 else
3033 am__fastdepCC_TRUE='#'
3034 am__fastdepCC_FALSE=
3038 # Check whether --enable-shared or --disable-shared was given.
3039 if test "${enable_shared+set}" = set; then
3040 enableval="$enable_shared"
3041 p=${PACKAGE-default}
3042 case $enableval in
3043 yes) enable_shared=yes ;;
3044 no) enable_shared=no ;;
3046 enable_shared=no
3047 # Look at the argument we got. We use all the common list separators.
3048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3049 for pkg in $enableval; do
3050 IFS="$lt_save_ifs"
3051 if test "X$pkg" = "X$p"; then
3052 enable_shared=yes
3054 done
3055 IFS="$lt_save_ifs"
3057 esac
3058 else
3059 enable_shared=yes
3062 # Check whether --enable-static or --disable-static was given.
3063 if test "${enable_static+set}" = set; then
3064 enableval="$enable_static"
3065 p=${PACKAGE-default}
3066 case $enableval in
3067 yes) enable_static=yes ;;
3068 no) enable_static=no ;;
3070 enable_static=no
3071 # Look at the argument we got. We use all the common list separators.
3072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3073 for pkg in $enableval; do
3074 IFS="$lt_save_ifs"
3075 if test "X$pkg" = "X$p"; then
3076 enable_static=yes
3078 done
3079 IFS="$lt_save_ifs"
3081 esac
3082 else
3083 enable_static=yes
3086 # Check whether --enable-fast-install or --disable-fast-install was given.
3087 if test "${enable_fast_install+set}" = set; then
3088 enableval="$enable_fast_install"
3089 p=${PACKAGE-default}
3090 case $enableval in
3091 yes) enable_fast_install=yes ;;
3092 no) enable_fast_install=no ;;
3094 enable_fast_install=no
3095 # Look at the argument we got. We use all the common list separators.
3096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3097 for pkg in $enableval; do
3098 IFS="$lt_save_ifs"
3099 if test "X$pkg" = "X$p"; then
3100 enable_fast_install=yes
3102 done
3103 IFS="$lt_save_ifs"
3105 esac
3106 else
3107 enable_fast_install=yes
3110 # Make sure we can run config.sub.
3111 $ac_config_sub sun4 >/dev/null 2>&1 ||
3112 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3113 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3114 { (exit 1); exit 1; }; }
3116 echo "$as_me:$LINENO: checking build system type" >&5
3117 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3118 if test "${ac_cv_build+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121 ac_cv_build_alias=$build_alias
3122 test -z "$ac_cv_build_alias" &&
3123 ac_cv_build_alias=`$ac_config_guess`
3124 test -z "$ac_cv_build_alias" &&
3125 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3126 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3127 { (exit 1); exit 1; }; }
3128 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3129 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3130 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3131 { (exit 1); exit 1; }; }
3134 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3135 echo "${ECHO_T}$ac_cv_build" >&6
3136 build=$ac_cv_build
3137 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3138 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3139 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3142 echo "$as_me:$LINENO: checking host system type" >&5
3143 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3144 if test "${ac_cv_host+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 ac_cv_host_alias=$host_alias
3148 test -z "$ac_cv_host_alias" &&
3149 ac_cv_host_alias=$ac_cv_build_alias
3150 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3151 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3152 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3153 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3157 echo "${ECHO_T}$ac_cv_host" >&6
3158 host=$ac_cv_host
3159 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3160 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3161 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3164 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3165 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3166 if test "${lt_cv_path_SED+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 # Loop through the user's path and test for sed and gsed.
3170 # Then use that list of sed's as ones to test for truncation.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for lt_ac_prog in sed gsed; do
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3179 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3181 done
3182 done
3183 done
3184 lt_ac_max=0
3185 lt_ac_count=0
3186 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3187 # along with /bin/sed that truncates output.
3188 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3189 test ! -f $lt_ac_sed && continue
3190 cat /dev/null > conftest.in
3191 lt_ac_count=0
3192 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3193 # Check for GNU sed and select it if it is found.
3194 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3195 lt_cv_path_SED=$lt_ac_sed
3196 break
3198 while true; do
3199 cat conftest.in conftest.in >conftest.tmp
3200 mv conftest.tmp conftest.in
3201 cp conftest.in conftest.nl
3202 echo >>conftest.nl
3203 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3204 cmp -s conftest.out conftest.nl || break
3205 # 10000 chars as input seems more than enough
3206 test $lt_ac_count -gt 10 && break
3207 lt_ac_count=`expr $lt_ac_count + 1`
3208 if test $lt_ac_count -gt $lt_ac_max; then
3209 lt_ac_max=$lt_ac_count
3210 lt_cv_path_SED=$lt_ac_sed
3212 done
3213 done
3217 SED=$lt_cv_path_SED
3218 echo "$as_me:$LINENO: result: $SED" >&5
3219 echo "${ECHO_T}$SED" >&6
3221 echo "$as_me:$LINENO: checking for egrep" >&5
3222 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3223 if test "${ac_cv_prog_egrep+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3227 then ac_cv_prog_egrep='grep -E'
3228 else ac_cv_prog_egrep='egrep'
3231 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3232 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3233 EGREP=$ac_cv_prog_egrep
3237 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3238 if test "${with_gnu_ld+set}" = set; then
3239 withval="$with_gnu_ld"
3240 test "$withval" = no || with_gnu_ld=yes
3241 else
3242 with_gnu_ld=no
3244 ac_prog=ld
3245 if test "$GCC" = yes; then
3246 # Check if gcc -print-prog-name=ld gives a path.
3247 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3248 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3249 case $host in
3250 *-*-mingw*)
3251 # gcc leaves a trailing carriage return which upsets mingw
3252 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3254 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3255 esac
3256 case $ac_prog in
3257 # Accept absolute paths.
3258 [\\/]* | ?:[\\/]*)
3259 re_direlt='/[^/][^/]*/\.\./'
3260 # Canonicalize the pathname of ld
3261 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3262 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3263 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3264 done
3265 test -z "$LD" && LD="$ac_prog"
3268 # If it fails, then pretend we aren't using GCC.
3269 ac_prog=ld
3272 # If it is relative, then search for the first ld in PATH.
3273 with_gnu_ld=unknown
3275 esac
3276 elif test "$with_gnu_ld" = yes; then
3277 echo "$as_me:$LINENO: checking for GNU ld" >&5
3278 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3279 else
3280 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3281 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3283 if test "${lt_cv_path_LD+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 if test -z "$LD"; then
3287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3288 for ac_dir in $PATH; do
3289 IFS="$lt_save_ifs"
3290 test -z "$ac_dir" && ac_dir=.
3291 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3292 lt_cv_path_LD="$ac_dir/$ac_prog"
3293 # Check to see if the program is GNU ld. I'd rather use --version,
3294 # but apparently some GNU ld's only accept -v.
3295 # Break only if it was the GNU/non-GNU ld that we prefer.
3296 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3297 *GNU* | *'with BFD'*)
3298 test "$with_gnu_ld" != no && break
3301 test "$with_gnu_ld" != yes && break
3303 esac
3305 done
3306 IFS="$lt_save_ifs"
3307 else
3308 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3312 LD="$lt_cv_path_LD"
3313 if test -n "$LD"; then
3314 echo "$as_me:$LINENO: result: $LD" >&5
3315 echo "${ECHO_T}$LD" >&6
3316 else
3317 echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6
3320 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3321 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3322 { (exit 1); exit 1; }; }
3323 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3324 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3325 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3329 case `$LD -v 2>&1 </dev/null` in
3330 *GNU* | *'with BFD'*)
3331 lt_cv_prog_gnu_ld=yes
3334 lt_cv_prog_gnu_ld=no
3336 esac
3338 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3339 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3340 with_gnu_ld=$lt_cv_prog_gnu_ld
3343 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3344 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3345 if test "${lt_cv_ld_reload_flag+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 lt_cv_ld_reload_flag='-r'
3350 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3351 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3352 reload_flag=$lt_cv_ld_reload_flag
3353 case $reload_flag in
3354 "" | " "*) ;;
3355 *) reload_flag=" $reload_flag" ;;
3356 esac
3357 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3358 case $host_os in
3359 darwin*)
3360 if test "$GCC" = yes; then
3361 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3362 else
3363 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3366 esac
3368 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3369 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3370 if test "${lt_cv_path_NM+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 if test -n "$NM"; then
3374 # Let the user override the test.
3375 lt_cv_path_NM="$NM"
3376 else
3377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3378 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3379 IFS="$lt_save_ifs"
3380 test -z "$ac_dir" && ac_dir=.
3381 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3383 # Check to see if the nm accepts a BSD-compat flag.
3384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3385 # nm: unknown option "B" ignored
3386 # Tru64's nm complains that /dev/null is an invalid object file
3387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3388 */dev/null* | *'Invalid file or object type'*)
3389 lt_cv_path_NM="$tmp_nm -B"
3390 break
3393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3394 */dev/null*)
3395 lt_cv_path_NM="$tmp_nm -p"
3396 break
3399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3400 continue # so that we can try to find one that supports BSD flags
3402 esac
3403 esac
3405 done
3406 IFS="$lt_save_ifs"
3407 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3410 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3411 echo "${ECHO_T}$lt_cv_path_NM" >&6
3412 NM="$lt_cv_path_NM"
3414 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3415 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3416 LN_S=$as_ln_s
3417 if test "$LN_S" = "ln -s"; then
3418 echo "$as_me:$LINENO: result: yes" >&5
3419 echo "${ECHO_T}yes" >&6
3420 else
3421 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3422 echo "${ECHO_T}no, using $LN_S" >&6
3425 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3426 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3427 if test "${lt_cv_deplibs_check_method+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430 lt_cv_file_magic_cmd='$MAGIC_CMD'
3431 lt_cv_file_magic_test_file=
3432 lt_cv_deplibs_check_method='unknown'
3433 # Need to set the preceding variable on all platforms that support
3434 # interlibrary dependencies.
3435 # 'none' -- dependencies not supported.
3436 # `unknown' -- same as none, but documents that we really don't know.
3437 # 'pass_all' -- all dependencies passed with no checks.
3438 # 'test_compile' -- check by making test program.
3439 # 'file_magic [[regex]]' -- check by looking for files in library path
3440 # which responds to the $file_magic_cmd with a given extended regex.
3441 # If you have `file' or equivalent on your system and you're not sure
3442 # whether `pass_all' will *always* work, you probably want this one.
3444 case $host_os in
3445 aix4* | aix5*)
3446 lt_cv_deplibs_check_method=pass_all
3449 beos*)
3450 lt_cv_deplibs_check_method=pass_all
3453 bsdi[45]*)
3454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3455 lt_cv_file_magic_cmd='/usr/bin/file -L'
3456 lt_cv_file_magic_test_file=/shlib/libc.so
3459 cygwin*)
3460 # func_win32_libid is a shell function defined in ltmain.sh
3461 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3462 lt_cv_file_magic_cmd='func_win32_libid'
3465 mingw* | pw32*)
3466 # Base MSYS/MinGW do not provide the 'file' command needed by
3467 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3468 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3469 lt_cv_file_magic_cmd='$OBJDUMP -f'
3472 darwin* | rhapsody*)
3473 lt_cv_deplibs_check_method=pass_all
3476 freebsd* | kfreebsd*-gnu | dragonfly*)
3477 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3478 case $host_cpu in
3479 i*86 )
3480 # Not sure whether the presence of OpenBSD here was a mistake.
3481 # Let's accept both of them until this is cleared up.
3482 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3483 lt_cv_file_magic_cmd=/usr/bin/file
3484 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3486 esac
3487 else
3488 lt_cv_deplibs_check_method=pass_all
3492 gnu*)
3493 lt_cv_deplibs_check_method=pass_all
3496 hpux10.20* | hpux11*)
3497 lt_cv_file_magic_cmd=/usr/bin/file
3498 case "$host_cpu" in
3499 ia64*)
3500 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3501 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3503 hppa*64*)
3504 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]'
3505 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3508 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3509 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3511 esac
3514 irix5* | irix6* | nonstopux*)
3515 case $LD in
3516 *-32|*"-32 ") libmagic=32-bit;;
3517 *-n32|*"-n32 ") libmagic=N32;;
3518 *-64|*"-64 ") libmagic=64-bit;;
3519 *) libmagic=never-match;;
3520 esac
3521 lt_cv_deplibs_check_method=pass_all
3524 # This must be Linux ELF.
3525 linux*)
3526 lt_cv_deplibs_check_method=pass_all
3529 netbsd*)
3530 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3532 else
3533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3537 newos6*)
3538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3539 lt_cv_file_magic_cmd=/usr/bin/file
3540 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3543 nto-qnx*)
3544 lt_cv_deplibs_check_method=unknown
3547 openbsd*)
3548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3550 else
3551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3555 osf3* | osf4* | osf5*)
3556 lt_cv_deplibs_check_method=pass_all
3559 sco3.2v5*)
3560 lt_cv_deplibs_check_method=pass_all
3563 solaris*)
3564 lt_cv_deplibs_check_method=pass_all
3567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3568 case $host_vendor in
3569 motorola)
3570 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]'
3571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3573 ncr)
3574 lt_cv_deplibs_check_method=pass_all
3576 sequent)
3577 lt_cv_file_magic_cmd='/bin/file'
3578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3580 sni)
3581 lt_cv_file_magic_cmd='/bin/file'
3582 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3583 lt_cv_file_magic_test_file=/lib/libc.so
3585 siemens)
3586 lt_cv_deplibs_check_method=pass_all
3588 esac
3591 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3592 lt_cv_deplibs_check_method=pass_all
3594 esac
3597 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3598 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3599 file_magic_cmd=$lt_cv_file_magic_cmd
3600 deplibs_check_method=$lt_cv_deplibs_check_method
3601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3606 # If no C compiler was specified, use CC.
3607 LTCC=${LTCC-"$CC"}
3609 # Allow CC to be a program name with arguments.
3610 compiler=$CC
3613 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3614 if test "${enable_libtool_lock+set}" = set; then
3615 enableval="$enable_libtool_lock"
3618 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3620 # Some flags need to be propagated to the compiler or linker for good
3621 # libtool support.
3622 case $host in
3623 ia64-*-hpux*)
3624 # Find out which ABI we are using.
3625 echo 'int i;' > conftest.$ac_ext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; then
3631 case `/usr/bin/file conftest.$ac_objext` in
3632 *ELF-32*)
3633 HPUX_IA64_MODE="32"
3635 *ELF-64*)
3636 HPUX_IA64_MODE="64"
3638 esac
3640 rm -rf conftest*
3642 *-*-irix6*)
3643 # Find out which ABI we are using.
3644 echo '#line 3644 "configure"' > conftest.$ac_ext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; then
3650 if test "$lt_cv_prog_gnu_ld" = yes; then
3651 case `/usr/bin/file conftest.$ac_objext` in
3652 *32-bit*)
3653 LD="${LD-ld} -melf32bsmip"
3655 *N32*)
3656 LD="${LD-ld} -melf32bmipn32"
3658 *64-bit*)
3659 LD="${LD-ld} -melf64bmip"
3661 esac
3662 else
3663 case `/usr/bin/file conftest.$ac_objext` in
3664 *32-bit*)
3665 LD="${LD-ld} -32"
3667 *N32*)
3668 LD="${LD-ld} -n32"
3670 *64-bit*)
3671 LD="${LD-ld} -64"
3673 esac
3676 rm -rf conftest*
3679 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3680 # Find out which ABI we are using.
3681 echo 'int i;' > conftest.$ac_ext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; then
3687 case "`/usr/bin/file conftest.o`" in
3688 *32-bit*)
3689 case $host in
3690 x86_64-*linux*)
3691 LD="${LD-ld} -m elf_i386"
3693 ppc64-*linux*|powerpc64-*linux*)
3694 LD="${LD-ld} -m elf32ppclinux"
3696 s390x-*linux*)
3697 LD="${LD-ld} -m elf_s390"
3699 sparc64-*linux*)
3700 LD="${LD-ld} -m elf32_sparc"
3702 esac
3704 *64-bit*)
3705 case $host in
3706 x86_64-*linux*)
3707 LD="${LD-ld} -m elf_x86_64"
3709 ppc*-*linux*|powerpc*-*linux*)
3710 LD="${LD-ld} -m elf64ppc"
3712 s390*-*linux*)
3713 LD="${LD-ld} -m elf64_s390"
3715 sparc*-*linux*)
3716 LD="${LD-ld} -m elf64_sparc"
3718 esac
3720 esac
3722 rm -rf conftest*
3725 *-*-sco3.2v5*)
3726 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3727 SAVE_CFLAGS="$CFLAGS"
3728 CFLAGS="$CFLAGS -belf"
3729 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3730 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3731 if test "${lt_cv_cc_needs_belf+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3748 main ()
3752 return 0;
3754 _ACEOF
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757 (eval $ac_link) 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -z "$ac_c_werror_flag"
3765 || test ! -s conftest.err'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; } &&
3771 { ac_try='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 lt_cv_cc_needs_belf=yes
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 lt_cv_cc_needs_belf=no
3784 rm -f conftest.err conftest.$ac_objext \
3785 conftest$ac_exeext conftest.$ac_ext
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3794 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3795 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3796 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3797 CFLAGS="$SAVE_CFLAGS"
3801 esac
3803 need_locks="$enable_libtool_lock"
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3812 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3813 # On Suns, sometimes $CPP names a directory.
3814 if test -n "$CPP" && test -d "$CPP"; then
3815 CPP=
3817 if test -z "$CPP"; then
3818 if test "${ac_cv_prog_CPP+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 # Double quotes because CPP needs to be expanded
3822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3824 ac_preproc_ok=false
3825 for ac_c_preproc_warn_flag in '' yes
3827 # Use a header file that comes with gcc, so configuring glibc
3828 # with a fresh cross-compiler works.
3829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830 # <limits.h> exists even on freestanding compilers.
3831 # On the NeXT, cc -E runs the code through the compiler's parser,
3832 # not just through cpp. "Syntax error" is here to catch this case.
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #ifdef __STDC__
3840 # include <limits.h>
3841 #else
3842 # include <assert.h>
3843 #endif
3844 Syntax error
3845 _ACEOF
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
3856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3857 else
3858 ac_cpp_err=
3860 else
3861 ac_cpp_err=yes
3863 if test -z "$ac_cpp_err"; then
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 # Broken: fails on valid input.
3870 continue
3872 rm -f conftest.err conftest.$ac_ext
3874 # OK, works on sane cases. Now check whether non-existent headers
3875 # can be detected and how.
3876 cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h. */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 #include <ac_nonexistent.h>
3883 _ACEOF
3884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3886 ac_status=$?
3887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } >/dev/null; then
3892 if test -s conftest.err; then
3893 ac_cpp_err=$ac_c_preproc_warn_flag
3894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3895 else
3896 ac_cpp_err=
3898 else
3899 ac_cpp_err=yes
3901 if test -z "$ac_cpp_err"; then
3902 # Broken: success on invalid input.
3903 continue
3904 else
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908 # Passes both tests.
3909 ac_preproc_ok=:
3910 break
3912 rm -f conftest.err conftest.$ac_ext
3914 done
3915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3916 rm -f conftest.err conftest.$ac_ext
3917 if $ac_preproc_ok; then
3918 break
3921 done
3922 ac_cv_prog_CPP=$CPP
3925 CPP=$ac_cv_prog_CPP
3926 else
3927 ac_cv_prog_CPP=$CPP
3929 echo "$as_me:$LINENO: result: $CPP" >&5
3930 echo "${ECHO_T}$CPP" >&6
3931 ac_preproc_ok=false
3932 for ac_c_preproc_warn_flag in '' yes
3934 # Use a header file that comes with gcc, so configuring glibc
3935 # with a fresh cross-compiler works.
3936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3937 # <limits.h> exists even on freestanding compilers.
3938 # On the NeXT, cc -E runs the code through the compiler's parser,
3939 # not just through cpp. "Syntax error" is here to catch this case.
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #ifdef __STDC__
3947 # include <limits.h>
3948 #else
3949 # include <assert.h>
3950 #endif
3951 Syntax error
3952 _ACEOF
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } >/dev/null; then
3961 if test -s conftest.err; then
3962 ac_cpp_err=$ac_c_preproc_warn_flag
3963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3964 else
3965 ac_cpp_err=
3967 else
3968 ac_cpp_err=yes
3970 if test -z "$ac_cpp_err"; then
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 # Broken: fails on valid input.
3977 continue
3979 rm -f conftest.err conftest.$ac_ext
3981 # OK, works on sane cases. Now check whether non-existent headers
3982 # can be detected and how.
3983 cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #include <ac_nonexistent.h>
3990 _ACEOF
3991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev/null; then
3999 if test -s conftest.err; then
4000 ac_cpp_err=$ac_c_preproc_warn_flag
4001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4002 else
4003 ac_cpp_err=
4005 else
4006 ac_cpp_err=yes
4008 if test -z "$ac_cpp_err"; then
4009 # Broken: success on invalid input.
4010 continue
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 # Passes both tests.
4016 ac_preproc_ok=:
4017 break
4019 rm -f conftest.err conftest.$ac_ext
4021 done
4022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4023 rm -f conftest.err conftest.$ac_ext
4024 if $ac_preproc_ok; then
4026 else
4027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4028 See \`config.log' for more details." >&5
4029 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4030 See \`config.log' for more details." >&2;}
4031 { (exit 1); exit 1; }; }
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #include <stdlib.h>
4053 #include <stdarg.h>
4054 #include <string.h>
4055 #include <float.h>
4058 main ()
4062 return 0;
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_header_stdc=yes
4088 else
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 ac_cv_header_stdc=no
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 if test $ac_cv_header_stdc = yes; then
4097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <string.h>
4106 _ACEOF
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "memchr" >/dev/null 2>&1; then
4110 else
4111 ac_cv_header_stdc=no
4113 rm -f conftest*
4117 if test $ac_cv_header_stdc = yes; then
4118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h. */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 #include <stdlib.h>
4127 _ACEOF
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "free" >/dev/null 2>&1; then
4131 else
4132 ac_cv_header_stdc=no
4134 rm -f conftest*
4138 if test $ac_cv_header_stdc = yes; then
4139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4140 if test "$cross_compiling" = yes; then
4142 else
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <ctype.h>
4150 #if ((' ' & 0x0FF) == 0x020)
4151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4153 #else
4154 # define ISLOWER(c) \
4155 (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159 #endif
4161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163 main ()
4165 int i;
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4169 exit(2);
4170 exit (0);
4172 _ACEOF
4173 rm -f conftest$ac_exeext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4185 else
4186 echo "$as_me: program exited with status $ac_status" >&5
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 ( exit $ac_status )
4191 ac_cv_header_stdc=no
4193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4199 if test $ac_cv_header_stdc = yes; then
4201 cat >>confdefs.h <<\_ACEOF
4202 #define STDC_HEADERS 1
4203 _ACEOF
4207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4218 inttypes.h stdint.h unistd.h
4220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4221 echo "$as_me:$LINENO: checking for $ac_header" >&5
4222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4234 #include <$ac_header>
4235 _ACEOF
4236 rm -f conftest.$ac_objext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_c_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 eval "$as_ac_Header=yes"
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 eval "$as_ac_Header=no"
4265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4270 cat >>confdefs.h <<_ACEOF
4271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4272 _ACEOF
4276 done
4280 for ac_header in dlfcn.h
4282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4284 echo "$as_me:$LINENO: checking for $ac_header" >&5
4285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4291 else
4292 # Is the header compilable?
4293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4302 #include <$ac_header>
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_header_compiler=yes
4327 else
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 ac_header_compiler=no
4333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4335 echo "${ECHO_T}$ac_header_compiler" >&6
4337 # Is the header present?
4338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #include <$ac_header>
4347 _ACEOF
4348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } >/dev/null; then
4356 if test -s conftest.err; then
4357 ac_cpp_err=$ac_c_preproc_warn_flag
4358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4359 else
4360 ac_cpp_err=
4362 else
4363 ac_cpp_err=yes
4365 if test -z "$ac_cpp_err"; then
4366 ac_header_preproc=yes
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 ac_header_preproc=no
4373 rm -f conftest.err conftest.$ac_ext
4374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4375 echo "${ECHO_T}$ac_header_preproc" >&6
4377 # So? What about this header?
4378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4379 yes:no: )
4380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4384 ac_header_preproc=yes
4386 no:yes:* )
4387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4400 cat <<\_ASBOX
4401 ## ------------------------------------------ ##
4402 ## Report this to the AC_PACKAGE_NAME lists. ##
4403 ## ------------------------------------------ ##
4404 _ASBOX
4406 sed "s/^/$as_me: WARNING: /" >&2
4408 esac
4409 echo "$as_me:$LINENO: checking for $ac_header" >&5
4410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 eval "$as_ac_Header=\$ac_header_preproc"
4416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4421 cat >>confdefs.h <<_ACEOF
4422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4423 _ACEOF
4427 done
4429 ac_ext=cc
4430 ac_cpp='$CXXCPP $CPPFLAGS'
4431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4434 if test -n "$ac_tool_prefix"; then
4435 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_CXX+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 if test -n "$CXX"; then
4445 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4458 done
4459 done
4463 CXX=$ac_cv_prog_CXX
4464 if test -n "$CXX"; then
4465 echo "$as_me:$LINENO: result: $CXX" >&5
4466 echo "${ECHO_T}$CXX" >&6
4467 else
4468 echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4472 test -n "$CXX" && break
4473 done
4475 if test -z "$CXX"; then
4476 ac_ct_CXX=$CXX
4477 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4479 # Extract the first word of "$ac_prog", so it can be a program name with args.
4480 set dummy $ac_prog; ac_word=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 if test -n "$ac_ct_CXX"; then
4487 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496 ac_cv_prog_ac_ct_CXX="$ac_prog"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4500 done
4501 done
4505 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4506 if test -n "$ac_ct_CXX"; then
4507 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4508 echo "${ECHO_T}$ac_ct_CXX" >&6
4509 else
4510 echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4514 test -n "$ac_ct_CXX" && break
4515 done
4516 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4518 CXX=$ac_ct_CXX
4522 # Provide some information about the compiler.
4523 echo "$as_me:$LINENO:" \
4524 "checking for C++ compiler version" >&5
4525 ac_compiler=`set X $ac_compile; echo $2`
4526 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4527 (eval $ac_compiler --version </dev/null >&5) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }
4531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4532 (eval $ac_compiler -v </dev/null >&5) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }
4536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4537 (eval $ac_compiler -V </dev/null >&5) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }
4542 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4543 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4544 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4555 main ()
4557 #ifndef __GNUC__
4558 choke me
4559 #endif
4562 return 0;
4564 _ACEOF
4565 rm -f conftest.$ac_objext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4567 (eval $ac_compile) 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -z "$ac_cxx_werror_flag"
4575 || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try='test -s conftest.$ac_objext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 ac_compiler_gnu=yes
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 ac_compiler_gnu=no
4594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4595 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4598 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4599 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4600 GXX=`test $ac_compiler_gnu = yes && echo yes`
4601 ac_test_CXXFLAGS=${CXXFLAGS+set}
4602 ac_save_CXXFLAGS=$CXXFLAGS
4603 CXXFLAGS="-g"
4604 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4605 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4606 if test "${ac_cv_prog_cxx_g+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h. */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4617 main ()
4621 return 0;
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_cxx_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_prog_cxx_g=yes
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 ac_cv_prog_cxx_g=no
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4656 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4657 if test "$ac_test_CXXFLAGS" = set; then
4658 CXXFLAGS=$ac_save_CXXFLAGS
4659 elif test $ac_cv_prog_cxx_g = yes; then
4660 if test "$GXX" = yes; then
4661 CXXFLAGS="-g -O2"
4662 else
4663 CXXFLAGS="-g"
4665 else
4666 if test "$GXX" = yes; then
4667 CXXFLAGS="-O2"
4668 else
4669 CXXFLAGS=
4672 for ac_declaration in \
4673 '' \
4674 'extern "C" void std::exit (int) throw (); using std::exit;' \
4675 'extern "C" void std::exit (int); using std::exit;' \
4676 'extern "C" void exit (int) throw ();' \
4677 'extern "C" void exit (int);' \
4678 'void exit (int);'
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 $ac_declaration
4687 #include <stdlib.h>
4689 main ()
4691 exit (42);
4693 return 0;
4695 _ACEOF
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>conftest.er1
4699 ac_status=$?
4700 grep -v '^ *+' conftest.er1 >conftest.err
4701 rm -f conftest.er1
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -z "$ac_cxx_werror_flag"
4706 || test ! -s conftest.err'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; } &&
4712 { ac_try='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 continue
4725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h. */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 $ac_declaration
4734 main ()
4736 exit (42);
4738 return 0;
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_cxx_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 break
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 done
4771 rm -f conftest*
4772 if test -n "$ac_declaration"; then
4773 echo '#ifdef __cplusplus' >>confdefs.h
4774 echo $ac_declaration >>confdefs.h
4775 echo '#endif' >>confdefs.h
4778 ac_ext=cc
4779 ac_cpp='$CXXCPP $CPPFLAGS'
4780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4784 depcc="$CXX" am_compiler_list=
4786 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4787 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4788 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4792 # We make a subdir and do the tests there. Otherwise we can end up
4793 # making bogus files that we don't know about and never remove. For
4794 # instance it was reported that on HP-UX the gcc test will end up
4795 # making a dummy file named `D' -- because `-MD' means `put the output
4796 # in D'.
4797 mkdir conftest.dir
4798 # Copy depcomp to subdir because otherwise we won't find it if we're
4799 # using a relative directory.
4800 cp "$am_depcomp" conftest.dir
4801 cd conftest.dir
4802 # We will build objects and dependencies in a subdirectory because
4803 # it helps to detect inapplicable dependency modes. For instance
4804 # both Tru64's cc and ICC support -MD to output dependencies as a
4805 # side effect of compilation, but ICC will put the dependencies in
4806 # the current directory while Tru64 will put them in the object
4807 # directory.
4808 mkdir sub
4810 am_cv_CXX_dependencies_compiler_type=none
4811 if test "$am_compiler_list" = ""; then
4812 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4814 for depmode in $am_compiler_list; do
4815 # Setup a source with many dependencies, because some compilers
4816 # like to wrap large dependency lists on column 80 (with \), and
4817 # we should not choose a depcomp mode which is confused by this.
4819 # We need to recreate these files for each test, as the compiler may
4820 # overwrite some of them when testing with obscure command lines.
4821 # This happens at least with the AIX C compiler.
4822 : > sub/conftest.c
4823 for i in 1 2 3 4 5 6; do
4824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4826 # Solaris 8's {/usr,}/bin/sh.
4827 touch sub/conftst$i.h
4828 done
4829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4831 case $depmode in
4832 nosideeffect)
4833 # after this tag, mechanisms are not by side-effect, so they'll
4834 # only be used when explicitly requested
4835 if test "x$enable_dependency_tracking" = xyes; then
4836 continue
4837 else
4838 break
4841 none) break ;;
4842 esac
4843 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4844 # mode. It turns out that the SunPro C++ compiler does not properly
4845 # handle `-M -o', and we need to detect this.
4846 if depmode=$depmode \
4847 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4849 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4850 >/dev/null 2>conftest.err &&
4851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4852 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4854 # icc doesn't choke on unknown options, it will just issue warnings
4855 # or remarks (even with -Werror). So we grep stderr for any message
4856 # that says an option was ignored or not supported.
4857 # When given -MP, icc 7.0 and 7.1 complain thusly:
4858 # icc: Command line warning: ignoring option '-M'; no argument required
4859 # The diagnosis changed in icc 8.0:
4860 # icc: Command line remark: option '-MP' not supported
4861 if (grep 'ignoring option' conftest.err ||
4862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4863 am_cv_CXX_dependencies_compiler_type=$depmode
4864 break
4867 done
4869 cd ..
4870 rm -rf conftest.dir
4871 else
4872 am_cv_CXX_dependencies_compiler_type=none
4876 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4877 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4878 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4883 test "x$enable_dependency_tracking" != xno \
4884 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4885 am__fastdepCXX_TRUE=
4886 am__fastdepCXX_FALSE='#'
4887 else
4888 am__fastdepCXX_TRUE='#'
4889 am__fastdepCXX_FALSE=
4895 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4896 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4897 (test "X$CXX" != "Xg++"))) ; then
4898 ac_ext=cc
4899 ac_cpp='$CXXCPP $CPPFLAGS'
4900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4904 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4905 if test -z "$CXXCPP"; then
4906 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 # Double quotes because CXXCPP needs to be expanded
4910 for CXXCPP in "$CXX -E" "/lib/cpp"
4912 ac_preproc_ok=false
4913 for ac_cxx_preproc_warn_flag in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 #ifdef __STDC__
4928 # include <limits.h>
4929 #else
4930 # include <assert.h>
4931 #endif
4932 Syntax error
4933 _ACEOF
4934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null; then
4942 if test -s conftest.err; then
4943 ac_cpp_err=$ac_cxx_preproc_warn_flag
4944 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4945 else
4946 ac_cpp_err=
4948 else
4949 ac_cpp_err=yes
4951 if test -z "$ac_cpp_err"; then
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 # Broken: fails on valid input.
4958 continue
4960 rm -f conftest.err conftest.$ac_ext
4962 # OK, works on sane cases. Now check whether non-existent headers
4963 # can be detected and how.
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 #include <ac_nonexistent.h>
4971 _ACEOF
4972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev/null; then
4980 if test -s conftest.err; then
4981 ac_cpp_err=$ac_cxx_preproc_warn_flag
4982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4983 else
4984 ac_cpp_err=
4986 else
4987 ac_cpp_err=yes
4989 if test -z "$ac_cpp_err"; then
4990 # Broken: success on invalid input.
4991 continue
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4996 # Passes both tests.
4997 ac_preproc_ok=:
4998 break
5000 rm -f conftest.err conftest.$ac_ext
5002 done
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.err conftest.$ac_ext
5005 if $ac_preproc_ok; then
5006 break
5009 done
5010 ac_cv_prog_CXXCPP=$CXXCPP
5013 CXXCPP=$ac_cv_prog_CXXCPP
5014 else
5015 ac_cv_prog_CXXCPP=$CXXCPP
5017 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5018 echo "${ECHO_T}$CXXCPP" >&6
5019 ac_preproc_ok=false
5020 for ac_cxx_preproc_warn_flag in '' yes
5022 # Use a header file that comes with gcc, so configuring glibc
5023 # with a fresh cross-compiler works.
5024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 # <limits.h> exists even on freestanding compilers.
5026 # On the NeXT, cc -E runs the code through the compiler's parser,
5027 # not just through cpp. "Syntax error" is here to catch this case.
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #ifdef __STDC__
5035 # include <limits.h>
5036 #else
5037 # include <assert.h>
5038 #endif
5039 Syntax error
5040 _ACEOF
5041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null; then
5049 if test -s conftest.err; then
5050 ac_cpp_err=$ac_cxx_preproc_warn_flag
5051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5052 else
5053 ac_cpp_err=
5055 else
5056 ac_cpp_err=yes
5058 if test -z "$ac_cpp_err"; then
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 # Broken: fails on valid input.
5065 continue
5067 rm -f conftest.err conftest.$ac_ext
5069 # OK, works on sane cases. Now check whether non-existent headers
5070 # can be detected and how.
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5078 _ACEOF
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null; then
5087 if test -s conftest.err; then
5088 ac_cpp_err=$ac_cxx_preproc_warn_flag
5089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5090 else
5091 ac_cpp_err=
5093 else
5094 ac_cpp_err=yes
5096 if test -z "$ac_cpp_err"; then
5097 # Broken: success on invalid input.
5098 continue
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 # Passes both tests.
5104 ac_preproc_ok=:
5105 break
5107 rm -f conftest.err conftest.$ac_ext
5109 done
5110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5111 rm -f conftest.err conftest.$ac_ext
5112 if $ac_preproc_ok; then
5114 else
5115 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5116 See \`config.log' for more details." >&5
5117 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5118 See \`config.log' for more details." >&2;}
5119 { (exit 1); exit 1; }; }
5122 ac_ext=cc
5123 ac_cpp='$CXXCPP $CPPFLAGS'
5124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5131 ac_ext=f
5132 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5133 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5135 if test -n "$ac_tool_prefix"; then
5136 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_F77+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 if test -n "$F77"; then
5146 ac_cv_prog_F77="$F77" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5164 F77=$ac_cv_prog_F77
5165 if test -n "$F77"; then
5166 echo "$as_me:$LINENO: result: $F77" >&5
5167 echo "${ECHO_T}$F77" >&6
5168 else
5169 echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5173 test -n "$F77" && break
5174 done
5176 if test -z "$F77"; then
5177 ac_ct_F77=$F77
5178 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5180 # Extract the first word of "$ac_prog", so it can be a program name with args.
5181 set dummy $ac_prog; ac_word=$2
5182 echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 if test -n "$ac_ct_F77"; then
5188 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_F77="$ac_prog"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5201 done
5202 done
5206 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5207 if test -n "$ac_ct_F77"; then
5208 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5209 echo "${ECHO_T}$ac_ct_F77" >&6
5210 else
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5215 test -n "$ac_ct_F77" && break
5216 done
5218 F77=$ac_ct_F77
5222 # Provide some information about the compiler.
5223 echo "$as_me:5223:" \
5224 "checking for Fortran 77 compiler version" >&5
5225 ac_compiler=`set X $ac_compile; echo $2`
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5227 (eval $ac_compiler --version </dev/null >&5) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5232 (eval $ac_compiler -v </dev/null >&5) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5237 (eval $ac_compiler -V </dev/null >&5) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 rm -f a.out
5243 # If we don't use `.F' as extension, the preprocessor is not run on the
5244 # input file. (Note that this only needs to work for GNU compilers.)
5245 ac_save_ext=$ac_ext
5246 ac_ext=F
5247 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5248 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5249 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 cat >conftest.$ac_ext <<_ACEOF
5253 program main
5254 #ifndef __GNUC__
5255 choke me
5256 #endif
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -z "$ac_f77_werror_flag"
5270 || test ! -s conftest.err'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_compiler_gnu=yes
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 ac_compiler_gnu=no
5289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5290 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5293 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5294 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5295 ac_ext=$ac_save_ext
5296 ac_test_FFLAGS=${FFLAGS+set}
5297 ac_save_FFLAGS=$FFLAGS
5298 FFLAGS=
5299 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5300 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5301 if test "${ac_cv_prog_f77_g+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 FFLAGS=-g
5305 cat >conftest.$ac_ext <<_ACEOF
5306 program main
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_f77_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_prog_f77_g=yes
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 ac_cv_prog_f77_g=no
5339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5343 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5344 if test "$ac_test_FFLAGS" = set; then
5345 FFLAGS=$ac_save_FFLAGS
5346 elif test $ac_cv_prog_f77_g = yes; then
5347 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5348 FFLAGS="-g -O2"
5349 else
5350 FFLAGS="-g"
5352 else
5353 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5354 FFLAGS="-O2"
5355 else
5356 FFLAGS=
5360 G77=`test $ac_compiler_gnu = yes && echo yes`
5361 ac_ext=c
5362 ac_cpp='$CPP $CPPFLAGS'
5363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5371 # find the maximum length of command line arguments
5372 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5373 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5374 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5378 teststring="ABCD"
5380 case $build_os in
5381 msdosdjgpp*)
5382 # On DJGPP, this test can blow up pretty badly due to problems in libc
5383 # (any single argument exceeding 2000 bytes causes a buffer overrun
5384 # during glob expansion). Even if it were fixed, the result of this
5385 # check would be larger than it should be.
5386 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5389 gnu*)
5390 # Under GNU Hurd, this test is not required because there is
5391 # no limit to the length of command line arguments.
5392 # Libtool will interpret -1 as no limit whatsoever
5393 lt_cv_sys_max_cmd_len=-1;
5396 cygwin* | mingw*)
5397 # On Win9x/ME, this test blows up -- it succeeds, but takes
5398 # about 5 minutes as the teststring grows exponentially.
5399 # Worse, since 9x/ME are not pre-emptively multitasking,
5400 # you end up with a "frozen" computer, even though with patience
5401 # the test eventually succeeds (with a max line length of 256k).
5402 # Instead, let's just punt: use the minimum linelength reported by
5403 # all of the supported platforms: 8192 (on NT/2K/XP).
5404 lt_cv_sys_max_cmd_len=8192;
5407 amigaos*)
5408 # On AmigaOS with pdksh, this test takes hours, literally.
5409 # So we just punt and use a minimum line length of 8192.
5410 lt_cv_sys_max_cmd_len=8192;
5413 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5414 # This has been around since 386BSD, at least. Likely further.
5415 if test -x /sbin/sysctl; then
5416 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5417 elif test -x /usr/sbin/sysctl; then
5418 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5419 else
5420 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5422 # And add a safety zone
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5425 osf*)
5426 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5427 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5428 # nice to cause kernel panics so lets avoid the loop below.
5429 # First set a reasonable default.
5430 lt_cv_sys_max_cmd_len=16384
5432 if test -x /sbin/sysconfig; then
5433 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5434 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5435 esac
5439 # If test is not a shell built-in, we'll probably end up computing a
5440 # maximum length that is only half of the actual maximum length, but
5441 # we can't tell.
5442 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5443 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5444 = "XX$teststring") >/dev/null 2>&1 &&
5445 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5446 lt_cv_sys_max_cmd_len=$new_result &&
5447 test $i != 17 # 1/2 MB should be enough
5449 i=`expr $i + 1`
5450 teststring=$teststring$teststring
5451 done
5452 teststring=
5453 # Add a significant safety factor because C++ compilers can tack on massive
5454 # amounts of additional arguments before passing them to the linker.
5455 # It appears as though 1/2 is a usable value.
5456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5458 esac
5462 if test -n $lt_cv_sys_max_cmd_len ; then
5463 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5464 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5465 else
5466 echo "$as_me:$LINENO: result: none" >&5
5467 echo "${ECHO_T}none" >&6
5473 # Check for command to grab the raw symbol name followed by C symbol from nm.
5474 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5475 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5476 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5480 # These are sane defaults that work on at least a few old systems.
5481 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5483 # Character class describing NM global symbol codes.
5484 symcode='[BCDEGRST]'
5486 # Regexp to match symbols that can be accessed directly from C.
5487 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5489 # Transform an extracted symbol line into a proper C declaration
5490 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5492 # Transform an extracted symbol line into symbol name and symbol address
5493 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'"
5495 # Define system-specific variables.
5496 case $host_os in
5497 aix*)
5498 symcode='[BCDT]'
5500 cygwin* | mingw* | pw32*)
5501 symcode='[ABCDGISTW]'
5503 hpux*) # Its linker distinguishes data from code symbols
5504 if test "$host_cpu" = ia64; then
5505 symcode='[ABCDEGRST]'
5507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5508 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'"
5510 linux*)
5511 if test "$host_cpu" = ia64; then
5512 symcode='[ABCDGIRSTW]'
5513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5514 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'"
5517 irix* | nonstopux*)
5518 symcode='[BCDEGRST]'
5520 osf*)
5521 symcode='[BCDEGQRST]'
5523 solaris* | sysv5*)
5524 symcode='[BDRT]'
5526 sysv4)
5527 symcode='[DFNSTU]'
5529 esac
5531 # Handle CRLF in mingw tool chain
5532 opt_cr=
5533 case $build_os in
5534 mingw*)
5535 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5537 esac
5539 # If we're using GNU nm, then use its standard symbol codes.
5540 case `$NM -V 2>&1` in
5541 *GNU* | *'with BFD'*)
5542 symcode='[ABCDGIRSTW]' ;;
5543 esac
5545 # Try without a prefix undercore, then with it.
5546 for ac_symprfx in "" "_"; do
5548 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5549 symxfrm="\\1 $ac_symprfx\\2 \\2"
5551 # Write the raw and C identifiers.
5552 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5554 # Check to see that the pipe works correctly.
5555 pipe_works=no
5557 rm -f conftest*
5558 cat > conftest.$ac_ext <<EOF
5559 #ifdef __cplusplus
5560 extern "C" {
5561 #endif
5562 char nm_test_var;
5563 void nm_test_func(){}
5564 #ifdef __cplusplus
5566 #endif
5567 int main(){nm_test_var='a';nm_test_func();return(0);}
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; then
5575 # Now try to grab the symbols.
5576 nlist=conftest.nm
5577 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5578 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && test -s "$nlist"; then
5582 # Try sorting and uniquifying the output.
5583 if sort "$nlist" | uniq > "$nlist"T; then
5584 mv -f "$nlist"T "$nlist"
5585 else
5586 rm -f "$nlist"T
5589 # Make sure that we snagged all the symbols we need.
5590 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5591 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5592 cat <<EOF > conftest.$ac_ext
5593 #ifdef __cplusplus
5594 extern "C" {
5595 #endif
5598 # Now generate the symbol file.
5599 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5601 cat <<EOF >> conftest.$ac_ext
5602 #if defined (__STDC__) && __STDC__
5603 # define lt_ptr_t void *
5604 #else
5605 # define lt_ptr_t char *
5606 # define const
5607 #endif
5609 /* The mapping between symbol names and symbols. */
5610 const struct {
5611 const char *name;
5612 lt_ptr_t address;
5614 lt_preloaded_symbols[] =
5617 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5618 cat <<\EOF >> conftest.$ac_ext
5619 {0, (lt_ptr_t) 0}
5622 #ifdef __cplusplus
5624 #endif
5626 # Now try linking the two files.
5627 mv conftest.$ac_objext conftstm.$ac_objext
5628 lt_save_LIBS="$LIBS"
5629 lt_save_CFLAGS="$CFLAGS"
5630 LIBS="conftstm.$ac_objext"
5631 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5637 pipe_works=yes
5639 LIBS="$lt_save_LIBS"
5640 CFLAGS="$lt_save_CFLAGS"
5641 else
5642 echo "cannot find nm_test_func in $nlist" >&5
5644 else
5645 echo "cannot find nm_test_var in $nlist" >&5
5647 else
5648 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5650 else
5651 echo "$progname: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5654 rm -f conftest* conftst*
5656 # Do not use the global_symbol_pipe unless it works.
5657 if test "$pipe_works" = yes; then
5658 break
5659 else
5660 lt_cv_sys_global_symbol_pipe=
5662 done
5666 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5667 lt_cv_sys_global_symbol_to_cdecl=
5669 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5670 echo "$as_me:$LINENO: result: failed" >&5
5671 echo "${ECHO_T}failed" >&6
5672 else
5673 echo "$as_me:$LINENO: result: ok" >&5
5674 echo "${ECHO_T}ok" >&6
5677 echo "$as_me:$LINENO: checking for objdir" >&5
5678 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5679 if test "${lt_cv_objdir+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 rm -f .libs 2>/dev/null
5683 mkdir .libs 2>/dev/null
5684 if test -d .libs; then
5685 lt_cv_objdir=.libs
5686 else
5687 # MS-DOS does not allow filenames that begin with a dot.
5688 lt_cv_objdir=_libs
5690 rmdir .libs 2>/dev/null
5692 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5693 echo "${ECHO_T}$lt_cv_objdir" >&6
5694 objdir=$lt_cv_objdir
5700 case $host_os in
5701 aix3*)
5702 # AIX sometimes has problems with the GCC collect2 program. For some
5703 # reason, if we set the COLLECT_NAMES environment variable, the problems
5704 # vanish in a puff of smoke.
5705 if test "X${COLLECT_NAMES+set}" != Xset; then
5706 COLLECT_NAMES=
5707 export COLLECT_NAMES
5710 esac
5712 # Sed substitution that helps us do robust quoting. It backslashifies
5713 # metacharacters that are still active within double-quoted strings.
5714 Xsed='sed -e s/^X//'
5715 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5717 # Same as above, but do not quote variable references.
5718 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5720 # Sed substitution to delay expansion of an escaped shell variable in a
5721 # double_quote_subst'ed string.
5722 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5724 # Sed substitution to avoid accidental globbing in evaled expressions
5725 no_glob_subst='s/\*/\\\*/g'
5727 # Constants:
5728 rm="rm -f"
5730 # Global variables:
5731 default_ofile=libtool
5732 can_build_shared=yes
5734 # All known linkers require a `.a' archive for static linking (except M$VC,
5735 # which needs '.lib').
5736 libext=a
5737 ltmain="$ac_aux_dir/ltmain.sh"
5738 ofile="$default_ofile"
5739 with_gnu_ld="$lt_cv_prog_gnu_ld"
5741 if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5743 set dummy ${ac_tool_prefix}ar; ac_word=$2
5744 echo "$as_me:$LINENO: checking for $ac_word" >&5
5745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746 if test "${ac_cv_prog_AR+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749 if test -n "$AR"; then
5750 ac_cv_prog_AR="$AR" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_AR="${ac_tool_prefix}ar"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5763 done
5764 done
5768 AR=$ac_cv_prog_AR
5769 if test -n "$AR"; then
5770 echo "$as_me:$LINENO: result: $AR" >&5
5771 echo "${ECHO_T}$AR" >&6
5772 else
5773 echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5778 if test -z "$ac_cv_prog_AR"; then
5779 ac_ct_AR=$AR
5780 # Extract the first word of "ar", so it can be a program name with args.
5781 set dummy ar; ac_word=$2
5782 echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 if test -n "$ac_ct_AR"; then
5788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_ac_ct_AR="ar"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5801 done
5802 done
5804 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5807 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5808 if test -n "$ac_ct_AR"; then
5809 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5810 echo "${ECHO_T}$ac_ct_AR" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5816 AR=$ac_ct_AR
5817 else
5818 AR="$ac_cv_prog_AR"
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5824 echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5826 if test "${ac_cv_prog_RANLIB+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829 if test -n "$RANLIB"; then
5830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5843 done
5844 done
5848 RANLIB=$ac_cv_prog_RANLIB
5849 if test -n "$RANLIB"; then
5850 echo "$as_me:$LINENO: result: $RANLIB" >&5
5851 echo "${ECHO_T}$RANLIB" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5858 if test -z "$ac_cv_prog_RANLIB"; then
5859 ac_ct_RANLIB=$RANLIB
5860 # Extract the first word of "ranlib", so it can be a program name with args.
5861 set dummy ranlib; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 if test -n "$ac_ct_RANLIB"; then
5868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_ac_ct_RANLIB="ranlib"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5881 done
5882 done
5884 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5888 if test -n "$ac_ct_RANLIB"; then
5889 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5890 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5891 else
5892 echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5896 RANLIB=$ac_ct_RANLIB
5897 else
5898 RANLIB="$ac_cv_prog_RANLIB"
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}strip; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_STRIP+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 if test -n "$STRIP"; then
5910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5923 done
5924 done
5928 STRIP=$ac_cv_prog_STRIP
5929 if test -n "$STRIP"; then
5930 echo "$as_me:$LINENO: result: $STRIP" >&5
5931 echo "${ECHO_T}$STRIP" >&6
5932 else
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5938 if test -z "$ac_cv_prog_STRIP"; then
5939 ac_ct_STRIP=$STRIP
5940 # Extract the first word of "strip", so it can be a program name with args.
5941 set dummy strip; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 if test -n "$ac_ct_STRIP"; then
5948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_ac_ct_STRIP="strip"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5961 done
5962 done
5964 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5968 if test -n "$ac_ct_STRIP"; then
5969 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5970 echo "${ECHO_T}$ac_ct_STRIP" >&6
5971 else
5972 echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5976 STRIP=$ac_ct_STRIP
5977 else
5978 STRIP="$ac_cv_prog_STRIP"
5982 old_CC="$CC"
5983 old_CFLAGS="$CFLAGS"
5985 # Set sane defaults for various variables
5986 test -z "$AR" && AR=ar
5987 test -z "$AR_FLAGS" && AR_FLAGS=cru
5988 test -z "$AS" && AS=as
5989 test -z "$CC" && CC=cc
5990 test -z "$LTCC" && LTCC=$CC
5991 test -z "$DLLTOOL" && DLLTOOL=dlltool
5992 test -z "$LD" && LD=ld
5993 test -z "$LN_S" && LN_S="ln -s"
5994 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5995 test -z "$NM" && NM=nm
5996 test -z "$SED" && SED=sed
5997 test -z "$OBJDUMP" && OBJDUMP=objdump
5998 test -z "$RANLIB" && RANLIB=:
5999 test -z "$STRIP" && STRIP=:
6000 test -z "$ac_objext" && ac_objext=o
6002 # Determine commands to create old-style static archives.
6003 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6004 old_postinstall_cmds='chmod 644 $oldlib'
6005 old_postuninstall_cmds=
6007 if test -n "$RANLIB"; then
6008 case $host_os in
6009 openbsd*)
6010 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6013 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6015 esac
6016 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6019 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6021 # Only perform the check for file, if the check method requires it
6022 case $deplibs_check_method in
6023 file_magic*)
6024 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6025 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6026 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6027 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 case $MAGIC_CMD in
6031 [\\/*] | ?:[\\/]*)
6032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6035 lt_save_MAGIC_CMD="$MAGIC_CMD"
6036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6037 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6038 for ac_dir in $ac_dummy; do
6039 IFS="$lt_save_ifs"
6040 test -z "$ac_dir" && ac_dir=.
6041 if test -f $ac_dir/${ac_tool_prefix}file; then
6042 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6043 if test -n "$file_magic_test_file"; then
6044 case $deplibs_check_method in
6045 "file_magic "*)
6046 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6049 $EGREP "$file_magic_regex" > /dev/null; then
6051 else
6052 cat <<EOF 1>&2
6054 *** Warning: the command libtool uses to detect shared libraries,
6055 *** $file_magic_cmd, produces output that libtool cannot recognize.
6056 *** The result is that libtool may fail to recognize shared libraries
6057 *** as such. This will affect the creation of libtool libraries that
6058 *** depend on shared libraries, but programs linked with such libtool
6059 *** libraries will work regardless of this problem. Nevertheless, you
6060 *** may want to report the problem to your system manager and/or to
6061 *** bug-libtool@gnu.org
6064 fi ;;
6065 esac
6067 break
6069 done
6070 IFS="$lt_save_ifs"
6071 MAGIC_CMD="$lt_save_MAGIC_CMD"
6073 esac
6076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6077 if test -n "$MAGIC_CMD"; then
6078 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6079 echo "${ECHO_T}$MAGIC_CMD" >&6
6080 else
6081 echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6085 if test -z "$lt_cv_path_MAGIC_CMD"; then
6086 if test -n "$ac_tool_prefix"; then
6087 echo "$as_me:$LINENO: checking for file" >&5
6088 echo $ECHO_N "checking for file... $ECHO_C" >&6
6089 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 case $MAGIC_CMD in
6093 [\\/*] | ?:[\\/]*)
6094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6097 lt_save_MAGIC_CMD="$MAGIC_CMD"
6098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6099 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6100 for ac_dir in $ac_dummy; do
6101 IFS="$lt_save_ifs"
6102 test -z "$ac_dir" && ac_dir=.
6103 if test -f $ac_dir/file; then
6104 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6105 if test -n "$file_magic_test_file"; then
6106 case $deplibs_check_method in
6107 "file_magic "*)
6108 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6110 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6111 $EGREP "$file_magic_regex" > /dev/null; then
6113 else
6114 cat <<EOF 1>&2
6116 *** Warning: the command libtool uses to detect shared libraries,
6117 *** $file_magic_cmd, produces output that libtool cannot recognize.
6118 *** The result is that libtool may fail to recognize shared libraries
6119 *** as such. This will affect the creation of libtool libraries that
6120 *** depend on shared libraries, but programs linked with such libtool
6121 *** libraries will work regardless of this problem. Nevertheless, you
6122 *** may want to report the problem to your system manager and/or to
6123 *** bug-libtool@gnu.org
6126 fi ;;
6127 esac
6129 break
6131 done
6132 IFS="$lt_save_ifs"
6133 MAGIC_CMD="$lt_save_MAGIC_CMD"
6135 esac
6138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6139 if test -n "$MAGIC_CMD"; then
6140 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6141 echo "${ECHO_T}$MAGIC_CMD" >&6
6142 else
6143 echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6
6147 else
6148 MAGIC_CMD=:
6154 esac
6156 enable_dlopen=no
6157 enable_win32_dll=no
6159 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6160 if test "${enable_libtool_lock+set}" = set; then
6161 enableval="$enable_libtool_lock"
6164 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6167 # Check whether --with-pic or --without-pic was given.
6168 if test "${with_pic+set}" = set; then
6169 withval="$with_pic"
6170 pic_mode="$withval"
6171 else
6172 pic_mode=default
6174 test -z "$pic_mode" && pic_mode=default
6176 # Use C for the default configuration in the libtool script
6177 tagname=
6178 lt_save_CC="$CC"
6179 ac_ext=c
6180 ac_cpp='$CPP $CPPFLAGS'
6181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186 # Source file extension for C test sources.
6187 ac_ext=c
6189 # Object file extension for compiled C test sources.
6190 objext=o
6191 objext=$objext
6193 # Code to be used in simple compile tests
6194 lt_simple_compile_test_code="int some_variable = 0;\n"
6196 # Code to be used in simple link tests
6197 lt_simple_link_test_code='int main(){return(0);}\n'
6200 # If no C compiler was specified, use CC.
6201 LTCC=${LTCC-"$CC"}
6203 # Allow CC to be a program name with arguments.
6204 compiler=$CC
6208 # Check for any special shared library compilation flags.
6210 lt_prog_cc_shlib=
6211 if test "$GCC" = no; then
6212 case $host_os in
6213 sco3.2v5*)
6214 lt_prog_cc_shlib='-belf'
6216 esac
6218 if test -n "$lt_prog_cc_shlib"; then
6219 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6220 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6221 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6222 else
6223 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6224 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6225 lt_cv_prog_cc_can_build_shared=no
6231 # Check to make sure the static flag actually works.
6233 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6234 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6235 if test "${lt_prog_compiler_static_works+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238 lt_prog_compiler_static_works=no
6239 save_LDFLAGS="$LDFLAGS"
6240 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6241 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6243 # The compiler can only warn and ignore the option if not recognized
6244 # So say no if there are warnings
6245 if test -s conftest.err; then
6246 # Append any errors to the config.log.
6247 cat conftest.err 1>&5
6248 else
6249 lt_prog_compiler_static_works=yes
6252 $rm conftest*
6253 LDFLAGS="$save_LDFLAGS"
6256 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6257 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6259 if test x"$lt_prog_compiler_static_works" = xyes; then
6261 else
6262 lt_prog_compiler_static=
6268 lt_prog_compiler_no_builtin_flag=
6270 if test "$GCC" = yes; then
6271 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6274 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6275 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6276 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 lt_cv_prog_compiler_rtti_exceptions=no
6280 ac_outfile=conftest.$ac_objext
6281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6282 lt_compiler_flag="-fno-rtti -fno-exceptions"
6283 # Insert the option either (1) after the last *FLAGS variable, or
6284 # (2) before a word containing "conftest.", or (3) at the end.
6285 # Note that $ac_compile itself does not contain backslashes and begins
6286 # with a dollar sign (not a hyphen), so the echo should work correctly.
6287 # The option is referenced via a variable to avoid confusing sed.
6288 lt_compile=`echo "$ac_compile" | $SED \
6289 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6291 -e 's:$: $lt_compiler_flag:'`
6292 (eval echo "\"\$as_me:6292: $lt_compile\"" >&5)
6293 (eval "$lt_compile" 2>conftest.err)
6294 ac_status=$?
6295 cat conftest.err >&5
6296 echo "$as_me:6296: \$? = $ac_status" >&5
6297 if (exit $ac_status) && test -s "$ac_outfile"; then
6298 # The compiler can only warn and ignore the option if not recognized
6299 # So say no if there are warnings
6300 if test ! -s conftest.err; then
6301 lt_cv_prog_compiler_rtti_exceptions=yes
6304 $rm conftest*
6307 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6308 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6310 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6311 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6312 else
6318 lt_prog_compiler_wl=
6319 lt_prog_compiler_pic=
6320 lt_prog_compiler_static=
6322 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6323 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6325 if test "$GCC" = yes; then
6326 lt_prog_compiler_wl='-Wl,'
6327 lt_prog_compiler_static='-static'
6329 case $host_os in
6330 aix*)
6331 # All AIX code is PIC.
6332 if test "$host_cpu" = ia64; then
6333 # AIX 5 now supports IA64 processor
6334 lt_prog_compiler_static='-Bstatic'
6338 amigaos*)
6339 # FIXME: we need at least 68020 code to build shared libraries, but
6340 # adding the `-m68020' flag to GCC prevents building anything better,
6341 # like `-m68040'.
6342 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6345 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6346 # PIC is the default for these OSes.
6349 mingw* | pw32* | os2*)
6350 # This hack is so that the source file can tell whether it is being
6351 # built for inclusion in a dll (and should export symbols for example).
6352 lt_prog_compiler_pic='-DDLL_EXPORT'
6355 darwin* | rhapsody*)
6356 # PIC is the default on this platform
6357 # Common symbols not allowed in MH_DYLIB files
6358 lt_prog_compiler_pic='-fno-common'
6361 msdosdjgpp*)
6362 # Just because we use GCC doesn't mean we suddenly get shared libraries
6363 # on systems that don't support them.
6364 lt_prog_compiler_can_build_shared=no
6365 enable_shared=no
6368 sysv4*MP*)
6369 if test -d /usr/nec; then
6370 lt_prog_compiler_pic=-Kconform_pic
6374 hpux*)
6375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6376 # not for PA HP-UX.
6377 case "$host_cpu" in
6378 hppa*64*|ia64*)
6379 # +Z the default
6382 lt_prog_compiler_pic='-fPIC'
6384 esac
6388 lt_prog_compiler_pic='-fPIC'
6390 esac
6391 else
6392 # PORTME Check for flag to pass linker flags through the system compiler.
6393 case $host_os in
6394 aix*)
6395 lt_prog_compiler_wl='-Wl,'
6396 if test "$host_cpu" = ia64; then
6397 # AIX 5 now supports IA64 processor
6398 lt_prog_compiler_static='-Bstatic'
6399 else
6400 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6403 darwin*)
6404 # PIC is the default on this platform
6405 # Common symbols not allowed in MH_DYLIB files
6406 case "$cc_basename" in
6407 xlc*)
6408 lt_prog_compiler_pic='-qnocommon'
6409 lt_prog_compiler_wl='-Wl,'
6411 esac
6414 mingw* | pw32* | os2*)
6415 # This hack is so that the source file can tell whether it is being
6416 # built for inclusion in a dll (and should export symbols for example).
6417 lt_prog_compiler_pic='-DDLL_EXPORT'
6420 hpux9* | hpux10* | hpux11*)
6421 lt_prog_compiler_wl='-Wl,'
6422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6423 # not for PA HP-UX.
6424 case "$host_cpu" in
6425 hppa*64*|ia64*)
6426 # +Z the default
6429 lt_prog_compiler_pic='+Z'
6431 esac
6432 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6433 lt_prog_compiler_static='${wl}-a ${wl}archive'
6436 irix5* | irix6* | nonstopux*)
6437 lt_prog_compiler_wl='-Wl,'
6438 # PIC (with -KPIC) is the default.
6439 lt_prog_compiler_static='-non_shared'
6442 newsos6)
6443 lt_prog_compiler_pic='-KPIC'
6444 lt_prog_compiler_static='-Bstatic'
6447 linux*)
6448 case $cc_basename in
6449 icc* | ecc*)
6450 lt_prog_compiler_wl='-Wl,'
6451 lt_prog_compiler_pic='-KPIC'
6452 lt_prog_compiler_static='-static'
6454 pgcc | pgf77 | pgf90)
6455 # Portland Group compilers (*not* the Pentium gcc compiler,
6456 # which looks to be a dead project)
6457 lt_prog_compiler_wl='-Wl,'
6458 lt_prog_compiler_pic='-fpic'
6459 lt_prog_compiler_static='-static'
6461 ccc*)
6462 lt_prog_compiler_wl='-Wl,'
6463 # All Alpha code is PIC.
6464 lt_prog_compiler_static='-non_shared'
6466 como)
6467 lt_prog_compiler_wl='-lopt='
6469 esac
6472 osf3* | osf4* | osf5*)
6473 lt_prog_compiler_wl='-Wl,'
6474 # All OSF/1 code is PIC.
6475 lt_prog_compiler_static='-non_shared'
6478 sco3.2v5*)
6479 lt_prog_compiler_pic='-Kpic'
6480 lt_prog_compiler_static='-dn'
6483 solaris*)
6484 lt_prog_compiler_wl='-Wl,'
6485 lt_prog_compiler_pic='-KPIC'
6486 lt_prog_compiler_static='-Bstatic'
6489 sunos4*)
6490 lt_prog_compiler_wl='-Qoption ld '
6491 lt_prog_compiler_pic='-PIC'
6492 lt_prog_compiler_static='-Bstatic'
6495 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6496 lt_prog_compiler_wl='-Wl,'
6497 lt_prog_compiler_pic='-KPIC'
6498 lt_prog_compiler_static='-Bstatic'
6501 sysv4*MP*)
6502 if test -d /usr/nec ;then
6503 lt_prog_compiler_pic='-Kconform_pic'
6504 lt_prog_compiler_static='-Bstatic'
6508 unicos*)
6509 lt_prog_compiler_wl='-Wl,'
6510 lt_prog_compiler_can_build_shared=no
6513 uts4*)
6514 lt_prog_compiler_pic='-pic'
6515 lt_prog_compiler_static='-Bstatic'
6519 lt_prog_compiler_can_build_shared=no
6521 esac
6524 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6525 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6528 # Check to make sure the PIC flag actually works.
6530 if test -n "$lt_prog_compiler_pic"; then
6532 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6533 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6534 if test "${lt_prog_compiler_pic_works+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 lt_prog_compiler_pic_works=no
6538 ac_outfile=conftest.$ac_objext
6539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6541 # Insert the option either (1) after the last *FLAGS variable, or
6542 # (2) before a word containing "conftest.", or (3) at the end.
6543 # Note that $ac_compile itself does not contain backslashes and begins
6544 # with a dollar sign (not a hyphen), so the echo should work correctly.
6545 # The option is referenced via a variable to avoid confusing sed.
6546 lt_compile=`echo "$ac_compile" | $SED \
6547 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6549 -e 's:$: $lt_compiler_flag:'`
6550 (eval echo "\"\$as_me:6550: $lt_compile\"" >&5)
6551 (eval "$lt_compile" 2>conftest.err)
6552 ac_status=$?
6553 cat conftest.err >&5
6554 echo "$as_me:6554: \$? = $ac_status" >&5
6555 if (exit $ac_status) && test -s "$ac_outfile"; then
6556 # The compiler can only warn and ignore the option if not recognized
6557 # So say no if there are warnings
6558 if test ! -s conftest.err; then
6559 lt_prog_compiler_pic_works=yes
6562 $rm conftest*
6565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6566 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6568 if test x"$lt_prog_compiler_pic_works" = xyes; then
6569 case $lt_prog_compiler_pic in
6570 "" | " "*) ;;
6571 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6572 esac
6573 else
6574 lt_prog_compiler_pic=
6575 lt_prog_compiler_can_build_shared=no
6579 case "$host_os" in
6580 # For platforms which do not support PIC, -DPIC is meaningless:
6581 *djgpp*)
6582 lt_prog_compiler_pic=
6585 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6587 esac
6589 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6590 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6591 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594 lt_cv_prog_compiler_c_o=no
6595 $rm -r conftest 2>/dev/null
6596 mkdir conftest
6597 cd conftest
6598 mkdir out
6599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6601 lt_compiler_flag="-o out/conftest2.$ac_objext"
6602 # Insert the option either (1) after the last *FLAGS variable, or
6603 # (2) before a word containing "conftest.", or (3) at the end.
6604 # Note that $ac_compile itself does not contain backslashes and begins
6605 # with a dollar sign (not a hyphen), so the echo should work correctly.
6606 lt_compile=`echo "$ac_compile" | $SED \
6607 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6609 -e 's:$: $lt_compiler_flag:'`
6610 (eval echo "\"\$as_me:6610: $lt_compile\"" >&5)
6611 (eval "$lt_compile" 2>out/conftest.err)
6612 ac_status=$?
6613 cat out/conftest.err >&5
6614 echo "$as_me:6614: \$? = $ac_status" >&5
6615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6616 then
6617 # The compiler can only warn and ignore the option if not recognized
6618 # So say no if there are warnings
6619 if test ! -s out/conftest.err; then
6620 lt_cv_prog_compiler_c_o=yes
6623 chmod u+w .
6624 $rm conftest*
6625 # SGI C++ compiler will create directory out/ii_files/ for
6626 # template instantiation
6627 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6628 $rm out/* && rmdir out
6629 cd ..
6630 rmdir conftest
6631 $rm conftest*
6634 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6635 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6638 hard_links="nottested"
6639 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6640 # do not overwrite the value of need_locks provided by the user
6641 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6642 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6643 hard_links=yes
6644 $rm conftest*
6645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6646 touch conftest.a
6647 ln conftest.a conftest.b 2>&5 || hard_links=no
6648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6649 echo "$as_me:$LINENO: result: $hard_links" >&5
6650 echo "${ECHO_T}$hard_links" >&6
6651 if test "$hard_links" = no; then
6652 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6653 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6654 need_locks=warn
6656 else
6657 need_locks=no
6660 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6661 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6663 runpath_var=
6664 allow_undefined_flag=
6665 enable_shared_with_static_runtimes=no
6666 archive_cmds=
6667 archive_expsym_cmds=
6668 old_archive_From_new_cmds=
6669 old_archive_from_expsyms_cmds=
6670 export_dynamic_flag_spec=
6671 whole_archive_flag_spec=
6672 thread_safe_flag_spec=
6673 hardcode_libdir_flag_spec=
6674 hardcode_libdir_flag_spec_ld=
6675 hardcode_libdir_separator=
6676 hardcode_direct=no
6677 hardcode_minus_L=no
6678 hardcode_shlibpath_var=unsupported
6679 link_all_deplibs=unknown
6680 hardcode_automatic=no
6681 module_cmds=
6682 module_expsym_cmds=
6683 always_export_symbols=no
6684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6685 # include_expsyms should be a list of space-separated symbols to be *always*
6686 # included in the symbol list
6687 include_expsyms=
6688 # exclude_expsyms can be an extended regexp of symbols to exclude
6689 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6690 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6691 # as well as any symbol that contains `d'.
6692 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6693 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6694 # platforms (ab)use it in PIC code, but their linkers get confused if
6695 # the symbol is explicitly referenced. Since portable code cannot
6696 # rely on this symbol name, it's probably fine to never include it in
6697 # preloaded symbol tables.
6698 extract_expsyms_cmds=
6700 case $host_os in
6701 cygwin* | mingw* | pw32*)
6702 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6703 # When not using gcc, we currently assume that we are using
6704 # Microsoft Visual C++.
6705 if test "$GCC" != yes; then
6706 with_gnu_ld=no
6709 openbsd*)
6710 with_gnu_ld=no
6712 esac
6714 ld_shlibs=yes
6715 if test "$with_gnu_ld" = yes; then
6716 # If archive_cmds runs LD, not CC, wlarc should be empty
6717 wlarc='${wl}'
6719 # See if GNU ld supports shared libraries.
6720 case $host_os in
6721 aix3* | aix4* | aix5*)
6722 # On AIX/PPC, the GNU linker is very broken
6723 if test "$host_cpu" != ia64; then
6724 ld_shlibs=no
6725 cat <<EOF 1>&2
6727 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6728 *** to be unable to reliably create shared libraries on AIX.
6729 *** Therefore, libtool is disabling shared libraries support. If you
6730 *** really care for shared libraries, you may want to modify your PATH
6731 *** so that a non-GNU linker is found, and then restart.
6737 amigaos*)
6738 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)'
6739 hardcode_libdir_flag_spec='-L$libdir'
6740 hardcode_minus_L=yes
6742 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6743 # that the semantics of dynamic libraries on AmigaOS, at least up
6744 # to version 4, is to share data among multiple programs linked
6745 # with the same dynamic library. Since this doesn't match the
6746 # behavior of shared libraries on other platforms, we can't use
6747 # them.
6748 ld_shlibs=no
6751 beos*)
6752 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6753 allow_undefined_flag=unsupported
6754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6755 # support --undefined. This deserves some investigation. FIXME
6756 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757 else
6758 ld_shlibs=no
6762 cygwin* | mingw* | pw32*)
6763 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6764 # as there is no search path for DLLs.
6765 hardcode_libdir_flag_spec='-L$libdir'
6766 allow_undefined_flag=unsupported
6767 always_export_symbols=no
6768 enable_shared_with_static_runtimes=yes
6769 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6771 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6773 # If the export-symbols file already is a .def file (1st line
6774 # is EXPORTS), use it as is; otherwise, prepend...
6775 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6776 cp $export_symbols $output_objdir/$soname.def;
6777 else
6778 echo EXPORTS > $output_objdir/$soname.def;
6779 cat $export_symbols >> $output_objdir/$soname.def;
6781 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6782 else
6783 ld_shlibs=no
6787 netbsd*)
6788 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6789 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6790 wlarc=
6791 else
6792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6797 solaris* | sysv5*)
6798 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6799 ld_shlibs=no
6800 cat <<EOF 1>&2
6802 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6803 *** create shared libraries on Solaris systems. Therefore, libtool
6804 *** is disabling shared libraries support. We urge you to upgrade GNU
6805 *** binutils to release 2.9.1 or newer. Another option is to modify
6806 *** your PATH or compiler configuration so that the native linker is
6807 *** used, and then restart.
6810 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6813 else
6814 ld_shlibs=no
6818 sunos4*)
6819 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6820 wlarc=
6821 hardcode_direct=yes
6822 hardcode_shlibpath_var=no
6825 linux*)
6826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6827 tmp_addflag=
6828 case $CC,$host_cpu in
6829 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6830 tmp_addflag=' -fpic' ;;
6831 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6832 tmp_addflag=' -i_dynamic' ;;
6833 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6834 tmp_addflag=' -i_dynamic -nofor_main' ;;
6835 ifc* | ifort*) # Intel Fortran compiler
6836 tmp_addflag=' -nofor_main' ;;
6837 esac
6838 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6839 supports_anon_versioning=no
6840 case `$LD -v 2>/dev/null` in
6841 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6842 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6843 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6844 *\ 2.11.*) ;; # other 2.11 versions
6845 *) supports_anon_versioning=yes ;;
6846 esac
6847 if test $supports_anon_versioning = yes; then
6848 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6850 $echo "local: *; };" >> $output_objdir/$libname.ver~
6851 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6852 else
6853 archive_expsym_cmds=$archive_cmds
6855 else
6856 ld_shlibs=no
6861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6864 else
6865 ld_shlibs=no
6868 esac
6870 if test "$ld_shlibs" = yes; then
6871 runpath_var=LD_RUN_PATH
6872 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6873 export_dynamic_flag_spec='${wl}--export-dynamic'
6874 # ancient GNU ld didn't support --whole-archive et. al.
6875 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6876 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6877 else
6878 whole_archive_flag_spec=
6881 else
6882 # PORTME fill in a description of your system's linker (not GNU ld)
6883 case $host_os in
6884 aix3*)
6885 allow_undefined_flag=unsupported
6886 always_export_symbols=yes
6887 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'
6888 # Note: this linker hardcodes the directories in LIBPATH if there
6889 # are no directories specified by -L.
6890 hardcode_minus_L=yes
6891 if test "$GCC" = yes && test -z "$link_static_flag"; then
6892 # Neither direct hardcoding nor static linking is supported with a
6893 # broken collect2.
6894 hardcode_direct=unsupported
6898 aix4* | aix5*)
6899 if test "$host_cpu" = ia64; then
6900 # On IA64, the linker does run time linking by default, so we don't
6901 # have to do anything special.
6902 aix_use_runtimelinking=no
6903 exp_sym_flag='-Bexport'
6904 no_entry_flag=""
6905 else
6906 # If we're using GNU nm, then we don't want the "-C" option.
6907 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6908 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6909 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'
6910 else
6911 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'
6913 aix_use_runtimelinking=no
6915 # Test if we are trying to use run time linking or normal
6916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6917 # need to do runtime linking.
6918 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6919 for ld_flag in $LDFLAGS; do
6920 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6921 aix_use_runtimelinking=yes
6922 break
6924 done
6925 esac
6927 exp_sym_flag='-bexport'
6928 no_entry_flag='-bnoentry'
6931 # When large executables or shared objects are built, AIX ld can
6932 # have problems creating the table of contents. If linking a library
6933 # or program results in "error TOC overflow" add -mminimal-toc to
6934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6937 archive_cmds=''
6938 hardcode_direct=yes
6939 hardcode_libdir_separator=':'
6940 link_all_deplibs=yes
6942 if test "$GCC" = yes; then
6943 case $host_os in aix4.[012]|aix4.[012].*)
6944 # We only want to do this on AIX 4.2 and lower, the check
6945 # below for broken collect2 doesn't work under 4.3+
6946 collect2name=`${CC} -print-prog-name=collect2`
6947 if test -f "$collect2name" && \
6948 strings "$collect2name" | grep resolve_lib_name >/dev/null
6949 then
6950 # We have reworked collect2
6951 hardcode_direct=yes
6952 else
6953 # We have old collect2
6954 hardcode_direct=unsupported
6955 # It fails to find uninstalled libraries when the uninstalled
6956 # path is not listed in the libpath. Setting hardcode_minus_L
6957 # to unsupported forces relinking
6958 hardcode_minus_L=yes
6959 hardcode_libdir_flag_spec='-L$libdir'
6960 hardcode_libdir_separator=
6962 esac
6963 shared_flag='-shared'
6964 if test "$aix_use_runtimelinking" = yes; then
6965 shared_flag="$shared_flag "'${wl}-G'
6967 else
6968 # not using gcc
6969 if test "$host_cpu" = ia64; then
6970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6971 # chokes on -Wl,-G. The following line is correct:
6972 shared_flag='-G'
6973 else
6974 if test "$aix_use_runtimelinking" = yes; then
6975 shared_flag='${wl}-G'
6976 else
6977 shared_flag='${wl}-bM:SRE'
6982 # It seems that -bexpall does not export symbols beginning with
6983 # underscore (_), so it is better to generate a list of symbols to export.
6984 always_export_symbols=yes
6985 if test "$aix_use_runtimelinking" = yes; then
6986 # Warning - without using the other runtime loading flags (-brtl),
6987 # -berok will link without error, but may produce a broken library.
6988 allow_undefined_flag='-berok'
6989 # Determine the default libpath from the value encoded in an empty executable.
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6998 main ()
7002 return 0;
7004 _ACEOF
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7030 # Check for a 64-bit object if we didn't find anything.
7031 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; }
7032 }'`; fi
7033 else
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7038 rm -f conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7043 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"
7044 else
7045 if test "$host_cpu" = ia64; then
7046 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7047 allow_undefined_flag="-z nodefs"
7048 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"
7049 else
7050 # Determine the default libpath from the value encoded in an empty executable.
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7059 main ()
7063 return 0;
7065 _ACEOF
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7091 # Check for a 64-bit object if we didn't find anything.
7092 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; }
7093 }'`; fi
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7099 rm -f conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7104 # Warning - without using the other run time loading flags,
7105 # -berok will link without error, but may produce a broken library.
7106 no_undefined_flag=' ${wl}-bernotok'
7107 allow_undefined_flag=' ${wl}-berok'
7108 # -bexpall does not export symbols beginning with underscore (_)
7109 always_export_symbols=yes
7110 # Exported symbols can be pulled into shared objects from archives
7111 whole_archive_flag_spec=' '
7112 archive_cmds_need_lc=yes
7113 # This is similar to how AIX traditionally builds it's shared libraries.
7114 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'
7119 amigaos*)
7120 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)'
7121 hardcode_libdir_flag_spec='-L$libdir'
7122 hardcode_minus_L=yes
7123 # see comment about different semantics on the GNU ld section
7124 ld_shlibs=no
7127 bsdi[45]*)
7128 export_dynamic_flag_spec=-rdynamic
7131 cygwin* | mingw* | pw32*)
7132 # When not using gcc, we currently assume that we are using
7133 # Microsoft Visual C++.
7134 # hardcode_libdir_flag_spec is actually meaningless, as there is
7135 # no search path for DLLs.
7136 hardcode_libdir_flag_spec=' '
7137 allow_undefined_flag=unsupported
7138 # Tell ltmain to make .lib files, not .a files.
7139 libext=lib
7140 # Tell ltmain to make .dll files, not .so files.
7141 shrext_cmds=".dll"
7142 # FIXME: Setting linknames here is a bad hack.
7143 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7144 # The linker will automatically build a .lib file if we build a DLL.
7145 old_archive_From_new_cmds='true'
7146 # FIXME: Should let the user specify the lib program.
7147 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7148 fix_srcfile_path='`cygpath -w "$srcfile"`'
7149 enable_shared_with_static_runtimes=yes
7152 darwin* | rhapsody*)
7153 case "$host_os" in
7154 rhapsody* | darwin1.[012])
7155 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7157 *) # Darwin 1.3 on
7158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7159 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7160 else
7161 case ${MACOSX_DEPLOYMENT_TARGET} in
7162 10.[012])
7163 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7165 10.*)
7166 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7168 esac
7171 esac
7172 archive_cmds_need_lc=no
7173 hardcode_direct=no
7174 hardcode_automatic=yes
7175 hardcode_shlibpath_var=unsupported
7176 whole_archive_flag_spec=''
7177 link_all_deplibs=yes
7178 if test "$GCC" = yes ; then
7179 output_verbose_link_cmd='echo'
7180 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7181 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7183 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}'
7184 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}'
7185 else
7186 case "$cc_basename" in
7187 xlc*)
7188 output_verbose_link_cmd='echo'
7189 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7190 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7192 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}'
7193 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}'
7196 ld_shlibs=no
7198 esac
7202 dgux*)
7203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 hardcode_libdir_flag_spec='-L$libdir'
7205 hardcode_shlibpath_var=no
7208 freebsd1*)
7209 ld_shlibs=no
7212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7213 # support. Future versions do this automatically, but an explicit c++rt0.o
7214 # does not break anything, and helps significantly (at the cost of a little
7215 # extra space).
7216 freebsd2.2*)
7217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7218 hardcode_libdir_flag_spec='-R$libdir'
7219 hardcode_direct=yes
7220 hardcode_shlibpath_var=no
7223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7224 freebsd2*)
7225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7226 hardcode_direct=yes
7227 hardcode_minus_L=yes
7228 hardcode_shlibpath_var=no
7231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7232 freebsd* | kfreebsd*-gnu | dragonfly*)
7233 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7234 hardcode_libdir_flag_spec='-R$libdir'
7235 hardcode_direct=yes
7236 hardcode_shlibpath_var=no
7239 hpux9*)
7240 if test "$GCC" = yes; then
7241 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'
7242 else
7243 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'
7245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7246 hardcode_libdir_separator=:
7247 hardcode_direct=yes
7249 # hardcode_minus_L: Not really in the search PATH,
7250 # but as the default location of the library.
7251 hardcode_minus_L=yes
7252 export_dynamic_flag_spec='${wl}-E'
7255 hpux10* | hpux11*)
7256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7257 case "$host_cpu" in
7258 hppa*64*|ia64*)
7259 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7262 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7264 esac
7265 else
7266 case "$host_cpu" in
7267 hppa*64*|ia64*)
7268 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7271 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7273 esac
7275 if test "$with_gnu_ld" = no; then
7276 case "$host_cpu" in
7277 hppa*64*)
7278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7279 hardcode_libdir_flag_spec_ld='+b $libdir'
7280 hardcode_libdir_separator=:
7281 hardcode_direct=no
7282 hardcode_shlibpath_var=no
7284 ia64*)
7285 hardcode_libdir_flag_spec='-L$libdir'
7286 hardcode_direct=no
7287 hardcode_shlibpath_var=no
7289 # hardcode_minus_L: Not really in the search PATH,
7290 # but as the default location of the library.
7291 hardcode_minus_L=yes
7294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7295 hardcode_libdir_separator=:
7296 hardcode_direct=yes
7297 export_dynamic_flag_spec='${wl}-E'
7299 # hardcode_minus_L: Not really in the search PATH,
7300 # but as the default location of the library.
7301 hardcode_minus_L=yes
7303 esac
7307 irix5* | irix6* | nonstopux*)
7308 if test "$GCC" = yes; then
7309 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'
7310 else
7311 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'
7312 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7315 hardcode_libdir_separator=:
7316 link_all_deplibs=yes
7319 netbsd*)
7320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7322 else
7323 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7325 hardcode_libdir_flag_spec='-R$libdir'
7326 hardcode_direct=yes
7327 hardcode_shlibpath_var=no
7330 newsos6)
7331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7332 hardcode_direct=yes
7333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7334 hardcode_libdir_separator=:
7335 hardcode_shlibpath_var=no
7338 openbsd*)
7339 hardcode_direct=yes
7340 hardcode_shlibpath_var=no
7341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7343 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7345 export_dynamic_flag_spec='${wl}-E'
7346 else
7347 case $host_os in
7348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7350 hardcode_libdir_flag_spec='-R$libdir'
7353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7356 esac
7360 os2*)
7361 hardcode_libdir_flag_spec='-L$libdir'
7362 hardcode_minus_L=yes
7363 allow_undefined_flag=unsupported
7364 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'
7365 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7368 osf3*)
7369 if test "$GCC" = yes; then
7370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7371 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'
7372 else
7373 allow_undefined_flag=' -expect_unresolved \*'
7374 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'
7376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7377 hardcode_libdir_separator=:
7380 osf4* | osf5*) # as osf3* with the addition of -msym flag
7381 if test "$GCC" = yes; then
7382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7383 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'
7384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7385 else
7386 allow_undefined_flag=' -expect_unresolved \*'
7387 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'
7388 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7389 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7391 # Both c and cxx compiler support -rpath directly
7392 hardcode_libdir_flag_spec='-rpath $libdir'
7394 hardcode_libdir_separator=:
7397 sco3.2v5*)
7398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_shlibpath_var=no
7400 export_dynamic_flag_spec='${wl}-Bexport'
7401 runpath_var=LD_RUN_PATH
7402 hardcode_runpath_var=yes
7405 solaris*)
7406 no_undefined_flag=' -z text'
7407 if test "$GCC" = yes; then
7408 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7409 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7410 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7411 else
7412 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7414 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7416 hardcode_libdir_flag_spec='-R$libdir'
7417 hardcode_shlibpath_var=no
7418 case $host_os in
7419 solaris2.[0-5] | solaris2.[0-5].*) ;;
7420 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7421 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7422 esac
7423 link_all_deplibs=yes
7426 sunos4*)
7427 if test "x$host_vendor" = xsequent; then
7428 # Use $CC to link under sequent, because it throws in some extra .o
7429 # files that make .init and .fini sections work.
7430 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7431 else
7432 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7434 hardcode_libdir_flag_spec='-L$libdir'
7435 hardcode_direct=yes
7436 hardcode_minus_L=yes
7437 hardcode_shlibpath_var=no
7440 sysv4)
7441 case $host_vendor in
7442 sni)
7443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7444 hardcode_direct=yes # is this really true???
7446 siemens)
7447 ## LD is ld it makes a PLAMLIB
7448 ## CC just makes a GrossModule.
7449 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7450 reload_cmds='$CC -r -o $output$reload_objs'
7451 hardcode_direct=no
7453 motorola)
7454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7457 esac
7458 runpath_var='LD_RUN_PATH'
7459 hardcode_shlibpath_var=no
7462 sysv4.3*)
7463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464 hardcode_shlibpath_var=no
7465 export_dynamic_flag_spec='-Bexport'
7468 sysv4*MP*)
7469 if test -d /usr/nec; then
7470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471 hardcode_shlibpath_var=no
7472 runpath_var=LD_RUN_PATH
7473 hardcode_runpath_var=yes
7474 ld_shlibs=yes
7478 sysv4.2uw2*)
7479 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7480 hardcode_direct=yes
7481 hardcode_minus_L=no
7482 hardcode_shlibpath_var=no
7483 hardcode_runpath_var=yes
7484 runpath_var=LD_RUN_PATH
7487 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7488 no_undefined_flag='${wl}-z ${wl}text'
7489 if test "$GCC" = yes; then
7490 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7491 else
7492 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7494 runpath_var='LD_RUN_PATH'
7495 hardcode_shlibpath_var=no
7498 sysv5*)
7499 no_undefined_flag=' -z text'
7500 # $CC -shared without GNU ld will not create a library from C++
7501 # object files and a static libstdc++, better avoid it by now
7502 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7503 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7504 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7505 hardcode_libdir_flag_spec=
7506 hardcode_shlibpath_var=no
7507 runpath_var='LD_RUN_PATH'
7510 uts4*)
7511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512 hardcode_libdir_flag_spec='-L$libdir'
7513 hardcode_shlibpath_var=no
7517 ld_shlibs=no
7519 esac
7522 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7523 echo "${ECHO_T}$ld_shlibs" >&6
7524 test "$ld_shlibs" = no && can_build_shared=no
7526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7527 if test "$GCC" = yes; then
7528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7532 # Do we need to explicitly link libc?
7534 case "x$archive_cmds_need_lc" in
7535 x|xyes)
7536 # Assume -lc should be added
7537 archive_cmds_need_lc=yes
7539 if test "$enable_shared" = yes && test "$GCC" = yes; then
7540 case $archive_cmds in
7541 *'~'*)
7542 # FIXME: we may have to deal with multi-command sequences.
7544 '$CC '*)
7545 # Test whether the compiler implicitly links with -lc since on some
7546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7547 # to ld, don't add -lc before -lgcc.
7548 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7550 $rm conftest*
7551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7554 (eval $ac_compile) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } 2>conftest.err; then
7558 soname=conftest
7559 lib=conftest
7560 libobjs=conftest.$ac_objext
7561 deplibs=
7562 wl=$lt_prog_compiler_wl
7563 compiler_flags=-v
7564 linker_flags=-v
7565 verstring=
7566 output_objdir=.
7567 libname=conftest
7568 lt_save_allow_undefined_flag=$allow_undefined_flag
7569 allow_undefined_flag=
7570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7571 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }
7575 then
7576 archive_cmds_need_lc=no
7577 else
7578 archive_cmds_need_lc=yes
7580 allow_undefined_flag=$lt_save_allow_undefined_flag
7581 else
7582 cat conftest.err 1>&5
7584 $rm conftest*
7585 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7586 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7588 esac
7591 esac
7593 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7595 library_names_spec=
7596 libname_spec='lib$name'
7597 soname_spec=
7598 shrext_cmds=".so"
7599 postinstall_cmds=
7600 postuninstall_cmds=
7601 finish_cmds=
7602 finish_eval=
7603 shlibpath_var=
7604 shlibpath_overrides_runpath=unknown
7605 version_type=none
7606 dynamic_linker="$host_os ld.so"
7607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7608 if test "$GCC" = yes; then
7609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7611 # if the path contains ";" then we assume it to be the separator
7612 # otherwise default to the standard path separator (i.e. ":") - it is
7613 # assumed that no part of a normal pathname contains ";" but that should
7614 # okay in the real world where ";" in dirpaths is itself problematic.
7615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7616 else
7617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7619 else
7620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7622 need_lib_prefix=unknown
7623 hardcode_into_libs=no
7625 # when you set need_version to no, make sure it does not cause -set_version
7626 # flags to be left without arguments
7627 need_version=unknown
7629 case $host_os in
7630 aix3*)
7631 version_type=linux
7632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7633 shlibpath_var=LIBPATH
7635 # AIX 3 has no versioning support, so we append a major version to the name.
7636 soname_spec='${libname}${release}${shared_ext}$major'
7639 aix4* | aix5*)
7640 version_type=linux
7641 need_lib_prefix=no
7642 need_version=no
7643 hardcode_into_libs=yes
7644 if test "$host_cpu" = ia64; then
7645 # AIX 5 supports IA64
7646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7647 shlibpath_var=LD_LIBRARY_PATH
7648 else
7649 # With GCC up to 2.95.x, collect2 would create an import file
7650 # for dependence libraries. The import file would start with
7651 # the line `#! .'. This would cause the generated library to
7652 # depend on `.', always an invalid library. This was fixed in
7653 # development snapshots of GCC prior to 3.0.
7654 case $host_os in
7655 aix4 | aix4.[01] | aix4.[01].*)
7656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7657 echo ' yes '
7658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7660 else
7661 can_build_shared=no
7664 esac
7665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7666 # soname into executable. Probably we can add versioning support to
7667 # collect2, so additional links can be useful in future.
7668 if test "$aix_use_runtimelinking" = yes; then
7669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7670 # instead of lib<name>.a to let people know that these are not
7671 # typical AIX shared libraries.
7672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673 else
7674 # We preserve .a as extension for shared libraries through AIX4.2
7675 # and later when we are not doing run time linking.
7676 library_names_spec='${libname}${release}.a $libname.a'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7679 shlibpath_var=LIBPATH
7683 amigaos*)
7684 library_names_spec='$libname.ixlibrary $libname.a'
7685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7686 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'
7689 beos*)
7690 library_names_spec='${libname}${shared_ext}'
7691 dynamic_linker="$host_os ld.so"
7692 shlibpath_var=LIBRARY_PATH
7695 bsdi[45]*)
7696 version_type=linux
7697 need_version=no
7698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7699 soname_spec='${libname}${release}${shared_ext}$major'
7700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7701 shlibpath_var=LD_LIBRARY_PATH
7702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7704 # the default ld.so.conf also contains /usr/contrib/lib and
7705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7706 # libtool to hard-code these into programs
7709 cygwin* | mingw* | pw32*)
7710 version_type=windows
7711 shrext_cmds=".dll"
7712 need_version=no
7713 need_lib_prefix=no
7715 case $GCC,$host_os in
7716 yes,cygwin* | yes,mingw* | yes,pw32*)
7717 library_names_spec='$libname.dll.a'
7718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7719 postinstall_cmds='base_file=`basename \${file}`~
7720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7721 dldir=$destdir/`dirname \$dlpath`~
7722 test -d \$dldir || mkdir -p \$dldir~
7723 $install_prog $dir/$dlname \$dldir/$dlname'
7724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7725 dlpath=$dir/\$dldll~
7726 $rm \$dlpath'
7727 shlibpath_overrides_runpath=yes
7729 case $host_os in
7730 cygwin*)
7731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7735 mingw*)
7736 # MinGW DLLs use traditional 'lib' prefix
7737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7739 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7740 # It is most probably a Windows format PATH printed by
7741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7742 # path with ; separators, and with drive letters. We can handle the
7743 # drive letters (cygwin fileutils understands them), so leave them,
7744 # especially as we might pass files found there to a mingw objdump,
7745 # which wouldn't understand a cygwinified path. Ahh.
7746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7747 else
7748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7751 pw32*)
7752 # pw32 DLLs use 'pw' prefix rather than 'lib'
7753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7755 esac
7759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7761 esac
7762 dynamic_linker='Win32 ld.exe'
7763 # FIXME: first we should search . and the directory the executable is in
7764 shlibpath_var=PATH
7767 darwin* | rhapsody*)
7768 dynamic_linker="$host_os dyld"
7769 version_type=darwin
7770 need_lib_prefix=no
7771 need_version=no
7772 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7773 soname_spec='${libname}${release}${major}$shared_ext'
7774 shlibpath_overrides_runpath=yes
7775 shlibpath_var=DYLD_LIBRARY_PATH
7776 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7777 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7778 if test "$GCC" = yes; then
7779 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"`
7780 else
7781 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7786 dgux*)
7787 version_type=linux
7788 need_lib_prefix=no
7789 need_version=no
7790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7791 soname_spec='${libname}${release}${shared_ext}$major'
7792 shlibpath_var=LD_LIBRARY_PATH
7795 freebsd1*)
7796 dynamic_linker=no
7799 kfreebsd*-gnu)
7800 version_type=linux
7801 need_lib_prefix=no
7802 need_version=no
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7804 soname_spec='${libname}${release}${shared_ext}$major'
7805 shlibpath_var=LD_LIBRARY_PATH
7806 shlibpath_overrides_runpath=no
7807 hardcode_into_libs=yes
7808 dynamic_linker='GNU ld.so'
7811 freebsd* | dragonfly*)
7812 # DragonFly does not have aout. When/if they implement a new
7813 # versioning mechanism, adjust this.
7814 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7815 version_type=freebsd-$objformat
7816 case $version_type in
7817 freebsd-elf*)
7818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7819 need_version=no
7820 need_lib_prefix=no
7822 freebsd-*)
7823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7824 need_version=yes
7826 esac
7827 shlibpath_var=LD_LIBRARY_PATH
7828 case $host_os in
7829 freebsd2*)
7830 shlibpath_overrides_runpath=yes
7832 freebsd3.[01]* | freebsdelf3.[01]*)
7833 shlibpath_overrides_runpath=yes
7834 hardcode_into_libs=yes
7836 *) # from 3.2 on
7837 shlibpath_overrides_runpath=no
7838 hardcode_into_libs=yes
7840 esac
7843 gnu*)
7844 version_type=linux
7845 need_lib_prefix=no
7846 need_version=no
7847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7848 soname_spec='${libname}${release}${shared_ext}$major'
7849 shlibpath_var=LD_LIBRARY_PATH
7850 hardcode_into_libs=yes
7853 hpux9* | hpux10* | hpux11*)
7854 # Give a soname corresponding to the major version so that dld.sl refuses to
7855 # link against other versions.
7856 version_type=sunos
7857 need_lib_prefix=no
7858 need_version=no
7859 case "$host_cpu" in
7860 ia64*)
7861 shrext_cmds='.so'
7862 hardcode_into_libs=yes
7863 dynamic_linker="$host_os dld.so"
7864 shlibpath_var=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7867 soname_spec='${libname}${release}${shared_ext}$major'
7868 if test "X$HPUX_IA64_MODE" = X32; then
7869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7870 else
7871 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7875 hppa*64*)
7876 shrext_cmds='.sl'
7877 hardcode_into_libs=yes
7878 dynamic_linker="$host_os dld.sl"
7879 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7882 soname_spec='${libname}${release}${shared_ext}$major'
7883 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7887 shrext_cmds='.sl'
7888 dynamic_linker="$host_os dld.sl"
7889 shlibpath_var=SHLIB_PATH
7890 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892 soname_spec='${libname}${release}${shared_ext}$major'
7894 esac
7895 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7896 postinstall_cmds='chmod 555 $lib'
7899 irix5* | irix6* | nonstopux*)
7900 case $host_os in
7901 nonstopux*) version_type=nonstopux ;;
7903 if test "$lt_cv_prog_gnu_ld" = yes; then
7904 version_type=linux
7905 else
7906 version_type=irix
7907 fi ;;
7908 esac
7909 need_lib_prefix=no
7910 need_version=no
7911 soname_spec='${libname}${release}${shared_ext}$major'
7912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7913 case $host_os in
7914 irix5* | nonstopux*)
7915 libsuff= shlibsuff=
7918 case $LD in # libtool.m4 will add one of these switches to LD
7919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7920 libsuff= shlibsuff= libmagic=32-bit;;
7921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7922 libsuff=32 shlibsuff=N32 libmagic=N32;;
7923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7924 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7925 *) libsuff= shlibsuff= libmagic=never-match;;
7926 esac
7928 esac
7929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7930 shlibpath_overrides_runpath=no
7931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7933 hardcode_into_libs=yes
7936 # No shared lib support for Linux oldld, aout, or coff.
7937 linux*oldld* | linux*aout* | linux*coff*)
7938 dynamic_linker=no
7941 # This must be Linux ELF.
7942 linux*)
7943 version_type=linux
7944 need_lib_prefix=no
7945 need_version=no
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
7948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7949 shlibpath_var=LD_LIBRARY_PATH
7950 shlibpath_overrides_runpath=no
7951 # This implies no fast_install, which is unacceptable.
7952 # Some rework will be needed to allow for fast_install
7953 # before this can be enabled.
7954 hardcode_into_libs=yes
7956 # Append ld.so.conf contents to the search path
7957 if test -f /etc/ld.so.conf; then
7958 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7959 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7962 # We used to test for /lib/ld.so.1 and disable shared libraries on
7963 # powerpc, because MkLinux only supported shared libraries with the
7964 # GNU dynamic linker. Since this was broken with cross compilers,
7965 # most powerpc-linux boxes support dynamic linking these days and
7966 # people can always --disable-shared, the test was removed, and we
7967 # assume the GNU/Linux dynamic linker is in use.
7968 dynamic_linker='GNU/Linux ld.so'
7971 knetbsd*-gnu)
7972 version_type=linux
7973 need_lib_prefix=no
7974 need_version=no
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7976 soname_spec='${libname}${release}${shared_ext}$major'
7977 shlibpath_var=LD_LIBRARY_PATH
7978 shlibpath_overrides_runpath=no
7979 hardcode_into_libs=yes
7980 dynamic_linker='GNU ld.so'
7983 netbsd*)
7984 version_type=sunos
7985 need_lib_prefix=no
7986 need_version=no
7987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7990 dynamic_linker='NetBSD (a.out) ld.so'
7991 else
7992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7993 soname_spec='${libname}${release}${shared_ext}$major'
7994 dynamic_linker='NetBSD ld.elf_so'
7996 shlibpath_var=LD_LIBRARY_PATH
7997 shlibpath_overrides_runpath=yes
7998 hardcode_into_libs=yes
8001 newsos6)
8002 version_type=linux
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 shlibpath_var=LD_LIBRARY_PATH
8005 shlibpath_overrides_runpath=yes
8008 nto-qnx*)
8009 version_type=linux
8010 need_lib_prefix=no
8011 need_version=no
8012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8013 soname_spec='${libname}${release}${shared_ext}$major'
8014 shlibpath_var=LD_LIBRARY_PATH
8015 shlibpath_overrides_runpath=yes
8018 openbsd*)
8019 version_type=sunos
8020 need_lib_prefix=no
8021 need_version=no
8022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8024 shlibpath_var=LD_LIBRARY_PATH
8025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8026 case $host_os in
8027 openbsd2.[89] | openbsd2.[89].*)
8028 shlibpath_overrides_runpath=no
8031 shlibpath_overrides_runpath=yes
8033 esac
8034 else
8035 shlibpath_overrides_runpath=yes
8039 os2*)
8040 libname_spec='$name'
8041 shrext_cmds=".dll"
8042 need_lib_prefix=no
8043 library_names_spec='$libname${shared_ext} $libname.a'
8044 dynamic_linker='OS/2 ld.exe'
8045 shlibpath_var=LIBPATH
8048 osf3* | osf4* | osf5*)
8049 version_type=osf
8050 need_lib_prefix=no
8051 need_version=no
8052 soname_spec='${libname}${release}${shared_ext}$major'
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054 shlibpath_var=LD_LIBRARY_PATH
8055 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8056 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8059 sco3.2v5*)
8060 version_type=osf
8061 soname_spec='${libname}${release}${shared_ext}$major'
8062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8063 shlibpath_var=LD_LIBRARY_PATH
8066 solaris*)
8067 version_type=linux
8068 need_lib_prefix=no
8069 need_version=no
8070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071 soname_spec='${libname}${release}${shared_ext}$major'
8072 shlibpath_var=LD_LIBRARY_PATH
8073 shlibpath_overrides_runpath=yes
8074 hardcode_into_libs=yes
8075 # ldd complains unless libraries are executable
8076 postinstall_cmds='chmod +x $lib'
8079 sunos4*)
8080 version_type=sunos
8081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8083 shlibpath_var=LD_LIBRARY_PATH
8084 shlibpath_overrides_runpath=yes
8085 if test "$with_gnu_ld" = yes; then
8086 need_lib_prefix=no
8088 need_version=yes
8091 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8092 version_type=linux
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094 soname_spec='${libname}${release}${shared_ext}$major'
8095 shlibpath_var=LD_LIBRARY_PATH
8096 case $host_vendor in
8097 sni)
8098 shlibpath_overrides_runpath=no
8099 need_lib_prefix=no
8100 export_dynamic_flag_spec='${wl}-Blargedynsym'
8101 runpath_var=LD_RUN_PATH
8103 siemens)
8104 need_lib_prefix=no
8106 motorola)
8107 need_lib_prefix=no
8108 need_version=no
8109 shlibpath_overrides_runpath=no
8110 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8112 esac
8115 sysv4*MP*)
8116 if test -d /usr/nec ;then
8117 version_type=linux
8118 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8119 soname_spec='$libname${shared_ext}.$major'
8120 shlibpath_var=LD_LIBRARY_PATH
8124 uts4*)
8125 version_type=linux
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
8132 dynamic_linker=no
8134 esac
8135 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8136 echo "${ECHO_T}$dynamic_linker" >&6
8137 test "$dynamic_linker" = no && can_build_shared=no
8139 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8140 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8141 hardcode_action=
8142 if test -n "$hardcode_libdir_flag_spec" || \
8143 test -n "$runpath_var" || \
8144 test "X$hardcode_automatic" = "Xyes" ; then
8146 # We can hardcode non-existant directories.
8147 if test "$hardcode_direct" != no &&
8148 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8149 # have to relink, otherwise we might link with an installed library
8150 # when we should be linking with a yet-to-be-installed one
8151 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8152 test "$hardcode_minus_L" != no; then
8153 # Linking always hardcodes the temporary library directory.
8154 hardcode_action=relink
8155 else
8156 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8157 hardcode_action=immediate
8159 else
8160 # We cannot hardcode anything, or else we can only hardcode existing
8161 # directories.
8162 hardcode_action=unsupported
8164 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8165 echo "${ECHO_T}$hardcode_action" >&6
8167 if test "$hardcode_action" = relink; then
8168 # Fast installation is not supported
8169 enable_fast_install=no
8170 elif test "$shlibpath_overrides_runpath" = yes ||
8171 test "$enable_shared" = no; then
8172 # Fast installation is not necessary
8173 enable_fast_install=needless
8176 striplib=
8177 old_striplib=
8178 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8179 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8180 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8181 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8182 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8183 echo "$as_me:$LINENO: result: yes" >&5
8184 echo "${ECHO_T}yes" >&6
8185 else
8186 # FIXME - insert some real tests, host_os isn't really good enough
8187 case $host_os in
8188 darwin*)
8189 if test -n "$STRIP" ; then
8190 striplib="$STRIP -x"
8191 echo "$as_me:$LINENO: result: yes" >&5
8192 echo "${ECHO_T}yes" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6
8199 echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6
8202 esac
8205 if test "x$enable_dlopen" != xyes; then
8206 enable_dlopen=unknown
8207 enable_dlopen_self=unknown
8208 enable_dlopen_self_static=unknown
8209 else
8210 lt_cv_dlopen=no
8211 lt_cv_dlopen_libs=
8213 case $host_os in
8214 beos*)
8215 lt_cv_dlopen="load_add_on"
8216 lt_cv_dlopen_libs=
8217 lt_cv_dlopen_self=yes
8220 mingw* | pw32*)
8221 lt_cv_dlopen="LoadLibrary"
8222 lt_cv_dlopen_libs=
8225 cygwin*)
8226 lt_cv_dlopen="dlopen"
8227 lt_cv_dlopen_libs=
8230 darwin*)
8231 # if libdl is installed we need to link against it
8232 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8233 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 ac_check_lib_save_LIBS=$LIBS
8238 LIBS="-ldl $LIBS"
8239 cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h. */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8246 /* Override any gcc2 internal prototype to avoid an error. */
8247 #ifdef __cplusplus
8248 extern "C"
8249 #endif
8250 /* We use char because int might match the return type of a gcc2
8251 builtin and then its argument prototype would still apply. */
8252 char dlopen ();
8254 main ()
8256 dlopen ();
8258 return 0;
8260 _ACEOF
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_lib_dl_dlopen=yes
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_lib_dl_dlopen=no
8290 rm -f conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
8292 LIBS=$ac_check_lib_save_LIBS
8294 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8295 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8296 if test $ac_cv_lib_dl_dlopen = yes; then
8297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8298 else
8300 lt_cv_dlopen="dyld"
8301 lt_cv_dlopen_libs=
8302 lt_cv_dlopen_self=yes
8309 echo "$as_me:$LINENO: checking for shl_load" >&5
8310 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8311 if test "${ac_cv_func_shl_load+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8322 #define shl_load innocuous_shl_load
8324 /* System header to define __stub macros and hopefully few prototypes,
8325 which can conflict with char shl_load (); below.
8326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8327 <limits.h> exists even on freestanding compilers. */
8329 #ifdef __STDC__
8330 # include <limits.h>
8331 #else
8332 # include <assert.h>
8333 #endif
8335 #undef shl_load
8337 /* Override any gcc2 internal prototype to avoid an error. */
8338 #ifdef __cplusplus
8339 extern "C"
8341 #endif
8342 /* We use char because int might match the return type of a gcc2
8343 builtin and then its argument prototype would still apply. */
8344 char shl_load ();
8345 /* The GNU C library defines this for functions which it implements
8346 to always fail with ENOSYS. Some functions are actually named
8347 something starting with __ and the normal name is an alias. */
8348 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8349 choke me
8350 #else
8351 char (*f) () = shl_load;
8352 #endif
8353 #ifdef __cplusplus
8355 #endif
8358 main ()
8360 return f != shl_load;
8362 return 0;
8364 _ACEOF
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_func_shl_load=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 ac_cv_func_shl_load=no
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8398 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8399 if test $ac_cv_func_shl_load = yes; then
8400 lt_cv_dlopen="shl_load"
8401 else
8402 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8403 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8404 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407 ac_check_lib_save_LIBS=$LIBS
8408 LIBS="-ldld $LIBS"
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 /* Override any gcc2 internal prototype to avoid an error. */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 /* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8422 char shl_load ();
8424 main ()
8426 shl_load ();
8428 return 0;
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>conftest.er1
8434 ac_status=$?
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag"
8441 || test ! -s conftest.err'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_lib_dld_shl_load=yes
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_cv_lib_dld_shl_load=no
8460 rm -f conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8462 LIBS=$ac_check_lib_save_LIBS
8464 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8465 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8466 if test $ac_cv_lib_dld_shl_load = yes; then
8467 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8468 else
8469 echo "$as_me:$LINENO: checking for dlopen" >&5
8470 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8471 if test "${ac_cv_func_dlopen+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8482 #define dlopen innocuous_dlopen
8484 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char dlopen (); below.
8486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8487 <limits.h> exists even on freestanding compilers. */
8489 #ifdef __STDC__
8490 # include <limits.h>
8491 #else
8492 # include <assert.h>
8493 #endif
8495 #undef dlopen
8497 /* Override any gcc2 internal prototype to avoid an error. */
8498 #ifdef __cplusplus
8499 extern "C"
8501 #endif
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8504 char dlopen ();
8505 /* The GNU C library defines this for functions which it implements
8506 to always fail with ENOSYS. Some functions are actually named
8507 something starting with __ and the normal name is an alias. */
8508 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8509 choke me
8510 #else
8511 char (*f) () = dlopen;
8512 #endif
8513 #ifdef __cplusplus
8515 #endif
8518 main ()
8520 return f != dlopen;
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_func_dlopen=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_cv_func_dlopen=no
8554 rm -f conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8558 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8559 if test $ac_cv_func_dlopen = yes; then
8560 lt_cv_dlopen="dlopen"
8561 else
8562 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8563 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567 ac_check_lib_save_LIBS=$LIBS
8568 LIBS="-ldl $LIBS"
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8582 char dlopen ();
8584 main ()
8586 dlopen ();
8588 return 0;
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_lib_dl_dlopen=yes
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_lib_dl_dlopen=no
8620 rm -f conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_lib_save_LIBS
8624 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8626 if test $ac_cv_lib_dl_dlopen = yes; then
8627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8628 else
8629 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8630 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8631 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634 ac_check_lib_save_LIBS=$LIBS
8635 LIBS="-lsvld $LIBS"
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 #ifdef __cplusplus
8645 extern "C"
8646 #endif
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8649 char dlopen ();
8651 main ()
8653 dlopen ();
8655 return 0;
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>conftest.er1
8661 ac_status=$?
8662 grep -v '^ *+' conftest.er1 >conftest.err
8663 rm -f conftest.er1
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try='test -z "$ac_c_werror_flag"
8668 || test ! -s conftest.err'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_lib_svld_dlopen=yes
8681 else
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_cv_lib_svld_dlopen=no
8687 rm -f conftest.err conftest.$ac_objext \
8688 conftest$ac_exeext conftest.$ac_ext
8689 LIBS=$ac_check_lib_save_LIBS
8691 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8692 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8693 if test $ac_cv_lib_svld_dlopen = yes; then
8694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8695 else
8696 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8697 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8698 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701 ac_check_lib_save_LIBS=$LIBS
8702 LIBS="-ldld $LIBS"
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8710 /* Override any gcc2 internal prototype to avoid an error. */
8711 #ifdef __cplusplus
8712 extern "C"
8713 #endif
8714 /* We use char because int might match the return type of a gcc2
8715 builtin and then its argument prototype would still apply. */
8716 char dld_link ();
8718 main ()
8720 dld_link ();
8722 return 0;
8724 _ACEOF
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -z "$ac_c_werror_flag"
8735 || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_lib_dld_dld_link=yes
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ac_cv_lib_dld_dld_link=no
8754 rm -f conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8758 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8759 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8760 if test $ac_cv_lib_dld_dld_link = yes; then
8761 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8780 esac
8782 if test "x$lt_cv_dlopen" != xno; then
8783 enable_dlopen=yes
8784 else
8785 enable_dlopen=no
8788 case $lt_cv_dlopen in
8789 dlopen)
8790 save_CPPFLAGS="$CPPFLAGS"
8791 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8793 save_LDFLAGS="$LDFLAGS"
8794 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8796 save_LIBS="$LIBS"
8797 LIBS="$lt_cv_dlopen_libs $LIBS"
8799 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8800 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8801 if test "${lt_cv_dlopen_self+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 if test "$cross_compiling" = yes; then :
8805 lt_cv_dlopen_self=cross
8806 else
8807 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8808 lt_status=$lt_dlunknown
8809 cat > conftest.$ac_ext <<EOF
8810 #line 8810 "configure"
8811 #include "confdefs.h"
8813 #if HAVE_DLFCN_H
8814 #include <dlfcn.h>
8815 #endif
8817 #include <stdio.h>
8819 #ifdef RTLD_GLOBAL
8820 # define LT_DLGLOBAL RTLD_GLOBAL
8821 #else
8822 # ifdef DL_GLOBAL
8823 # define LT_DLGLOBAL DL_GLOBAL
8824 # else
8825 # define LT_DLGLOBAL 0
8826 # endif
8827 #endif
8829 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8830 find out it does not work in some platform. */
8831 #ifndef LT_DLLAZY_OR_NOW
8832 # ifdef RTLD_LAZY
8833 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8834 # else
8835 # ifdef DL_LAZY
8836 # define LT_DLLAZY_OR_NOW DL_LAZY
8837 # else
8838 # ifdef RTLD_NOW
8839 # define LT_DLLAZY_OR_NOW RTLD_NOW
8840 # else
8841 # ifdef DL_NOW
8842 # define LT_DLLAZY_OR_NOW DL_NOW
8843 # else
8844 # define LT_DLLAZY_OR_NOW 0
8845 # endif
8846 # endif
8847 # endif
8848 # endif
8849 #endif
8851 #ifdef __cplusplus
8852 extern "C" void exit (int);
8853 #endif
8855 void fnord() { int i=42;}
8856 int main ()
8858 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8859 int status = $lt_dlunknown;
8861 if (self)
8863 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8864 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8865 /* dlclose (self); */
8868 exit (status);
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872 (eval $ac_link) 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8876 (./conftest; exit; ) 2>/dev/null
8877 lt_status=$?
8878 case x$lt_status in
8879 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8880 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8881 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8882 esac
8883 else :
8884 # compilation failed
8885 lt_cv_dlopen_self=no
8888 rm -fr conftest*
8892 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8893 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8895 if test "x$lt_cv_dlopen_self" = xyes; then
8896 LDFLAGS="$LDFLAGS $link_static_flag"
8897 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8898 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8899 if test "${lt_cv_dlopen_self_static+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902 if test "$cross_compiling" = yes; then :
8903 lt_cv_dlopen_self_static=cross
8904 else
8905 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8906 lt_status=$lt_dlunknown
8907 cat > conftest.$ac_ext <<EOF
8908 #line 8908 "configure"
8909 #include "confdefs.h"
8911 #if HAVE_DLFCN_H
8912 #include <dlfcn.h>
8913 #endif
8915 #include <stdio.h>
8917 #ifdef RTLD_GLOBAL
8918 # define LT_DLGLOBAL RTLD_GLOBAL
8919 #else
8920 # ifdef DL_GLOBAL
8921 # define LT_DLGLOBAL DL_GLOBAL
8922 # else
8923 # define LT_DLGLOBAL 0
8924 # endif
8925 #endif
8927 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8928 find out it does not work in some platform. */
8929 #ifndef LT_DLLAZY_OR_NOW
8930 # ifdef RTLD_LAZY
8931 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8932 # else
8933 # ifdef DL_LAZY
8934 # define LT_DLLAZY_OR_NOW DL_LAZY
8935 # else
8936 # ifdef RTLD_NOW
8937 # define LT_DLLAZY_OR_NOW RTLD_NOW
8938 # else
8939 # ifdef DL_NOW
8940 # define LT_DLLAZY_OR_NOW DL_NOW
8941 # else
8942 # define LT_DLLAZY_OR_NOW 0
8943 # endif
8944 # endif
8945 # endif
8946 # endif
8947 #endif
8949 #ifdef __cplusplus
8950 extern "C" void exit (int);
8951 #endif
8953 void fnord() { int i=42;}
8954 int main ()
8956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8957 int status = $lt_dlunknown;
8959 if (self)
8961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8962 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8963 /* dlclose (self); */
8966 exit (status);
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8974 (./conftest; exit; ) 2>/dev/null
8975 lt_status=$?
8976 case x$lt_status in
8977 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8978 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8979 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8980 esac
8981 else :
8982 # compilation failed
8983 lt_cv_dlopen_self_static=no
8986 rm -fr conftest*
8990 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8991 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8994 CPPFLAGS="$save_CPPFLAGS"
8995 LDFLAGS="$save_LDFLAGS"
8996 LIBS="$save_LIBS"
8998 esac
9000 case $lt_cv_dlopen_self in
9001 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9002 *) enable_dlopen_self=unknown ;;
9003 esac
9005 case $lt_cv_dlopen_self_static in
9006 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9007 *) enable_dlopen_self_static=unknown ;;
9008 esac
9012 # Report which librarie types wil actually be built
9013 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9014 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9015 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9016 echo "${ECHO_T}$can_build_shared" >&6
9018 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9019 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9020 test "$can_build_shared" = "no" && enable_shared=no
9022 # On AIX, shared libraries and static libraries use the same namespace, and
9023 # are all built from PIC.
9024 case "$host_os" in
9025 aix3*)
9026 test "$enable_shared" = yes && enable_static=no
9027 if test -n "$RANLIB"; then
9028 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9029 postinstall_cmds='$RANLIB $lib'
9033 aix4* | aix5*)
9034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9035 test "$enable_shared" = yes && enable_static=no
9038 esac
9039 echo "$as_me:$LINENO: result: $enable_shared" >&5
9040 echo "${ECHO_T}$enable_shared" >&6
9042 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9043 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9044 # Make sure either enable_shared or enable_static is yes.
9045 test "$enable_shared" = yes || enable_static=yes
9046 echo "$as_me:$LINENO: result: $enable_static" >&5
9047 echo "${ECHO_T}$enable_static" >&6
9049 # The else clause should only fire when bootstrapping the
9050 # libtool distribution, otherwise you forgot to ship ltmain.sh
9051 # with your package, and you will get complaints that there are
9052 # no rules to generate ltmain.sh.
9053 if test -f "$ltmain"; then
9054 # See if we are running on zsh, and set the options which allow our commands through
9055 # without removal of \ escapes.
9056 if test -n "${ZSH_VERSION+set}" ; then
9057 setopt NO_GLOB_SUBST
9059 # Now quote all the things that may contain metacharacters while being
9060 # careful not to overquote the AC_SUBSTed values. We take copies of the
9061 # variables and quote the copies for generation of the libtool script.
9062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9063 SED SHELL STRIP \
9064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9066 deplibs_check_method reload_flag reload_cmds need_locks \
9067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9068 lt_cv_sys_global_symbol_to_c_name_address \
9069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9070 old_postinstall_cmds old_postuninstall_cmds \
9071 compiler \
9072 CC \
9073 LD \
9074 lt_prog_compiler_wl \
9075 lt_prog_compiler_pic \
9076 lt_prog_compiler_static \
9077 lt_prog_compiler_no_builtin_flag \
9078 export_dynamic_flag_spec \
9079 thread_safe_flag_spec \
9080 whole_archive_flag_spec \
9081 enable_shared_with_static_runtimes \
9082 old_archive_cmds \
9083 old_archive_from_new_cmds \
9084 predep_objects \
9085 postdep_objects \
9086 predeps \
9087 postdeps \
9088 compiler_lib_search_path \
9089 archive_cmds \
9090 archive_expsym_cmds \
9091 postinstall_cmds \
9092 postuninstall_cmds \
9093 old_archive_from_expsyms_cmds \
9094 allow_undefined_flag \
9095 no_undefined_flag \
9096 export_symbols_cmds \
9097 hardcode_libdir_flag_spec \
9098 hardcode_libdir_flag_spec_ld \
9099 hardcode_libdir_separator \
9100 hardcode_automatic \
9101 module_cmds \
9102 module_expsym_cmds \
9103 lt_cv_prog_compiler_c_o \
9104 exclude_expsyms \
9105 include_expsyms; do
9107 case $var in
9108 old_archive_cmds | \
9109 old_archive_from_new_cmds | \
9110 archive_cmds | \
9111 archive_expsym_cmds | \
9112 module_cmds | \
9113 module_expsym_cmds | \
9114 old_archive_from_expsyms_cmds | \
9115 export_symbols_cmds | \
9116 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9117 postinstall_cmds | postuninstall_cmds | \
9118 old_postinstall_cmds | old_postuninstall_cmds | \
9119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9120 # Double-quote double-evaled strings.
9121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9126 esac
9127 done
9129 case $lt_echo in
9130 *'\$0 --fallback-echo"')
9131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9133 esac
9135 cfgfile="${ofile}T"
9136 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9137 $rm -f "$cfgfile"
9138 { echo "$as_me:$LINENO: creating $ofile" >&5
9139 echo "$as_me: creating $ofile" >&6;}
9141 cat <<__EOF__ >> "$cfgfile"
9142 #! $SHELL
9144 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9145 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9148 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9149 # Free Software Foundation, Inc.
9151 # This file is part of GNU Libtool:
9152 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9154 # This program is free software; you can redistribute it and/or modify
9155 # it under the terms of the GNU General Public License as published by
9156 # the Free Software Foundation; either version 2 of the License, or
9157 # (at your option) any later version.
9159 # This program is distributed in the hope that it will be useful, but
9160 # WITHOUT ANY WARRANTY; without even the implied warranty of
9161 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9162 # General Public License for more details.
9164 # You should have received a copy of the GNU General Public License
9165 # along with this program; if not, write to the Free Software
9166 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9168 # As a special exception to the GNU General Public License, if you
9169 # distribute this file as part of a program that contains a
9170 # configuration script generated by Autoconf, you may include it under
9171 # the same distribution terms that you use for the rest of that program.
9173 # A sed program that does not truncate output.
9174 SED=$lt_SED
9176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9177 Xsed="$SED -e s/^X//"
9179 # The HP-UX ksh and POSIX shell print the target directory to stdout
9180 # if CDPATH is set.
9181 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9183 # The names of the tagged configurations supported by this script.
9184 available_tags=
9186 # ### BEGIN LIBTOOL CONFIG
9188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9190 # Shell to use when invoking shell scripts.
9191 SHELL=$lt_SHELL
9193 # Whether or not to build shared libraries.
9194 build_libtool_libs=$enable_shared
9196 # Whether or not to build static libraries.
9197 build_old_libs=$enable_static
9199 # Whether or not to add -lc for building shared libraries.
9200 build_libtool_need_lc=$archive_cmds_need_lc
9202 # Whether or not to disallow shared libs when runtime libs are static
9203 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9205 # Whether or not to optimize for fast installation.
9206 fast_install=$enable_fast_install
9208 # The host system.
9209 host_alias=$host_alias
9210 host=$host
9211 host_os=$host_os
9213 # The build system.
9214 build_alias=$build_alias
9215 build=$build
9216 build_os=$build_os
9218 # An echo program that does not interpret backslashes.
9219 echo=$lt_echo
9221 # The archiver.
9222 AR=$lt_AR
9223 AR_FLAGS=$lt_AR_FLAGS
9225 # A C compiler.
9226 LTCC=$lt_LTCC
9228 # A language-specific compiler.
9229 CC=$lt_compiler
9231 # Is the compiler the GNU C compiler?
9232 with_gcc=$GCC
9234 # An ERE matcher.
9235 EGREP=$lt_EGREP
9237 # The linker used to build libraries.
9238 LD=$lt_LD
9240 # Whether we need hard or soft links.
9241 LN_S=$lt_LN_S
9243 # A BSD-compatible nm program.
9244 NM=$lt_NM
9246 # A symbol stripping program
9247 STRIP=$lt_STRIP
9249 # Used to examine libraries when file_magic_cmd begins "file"
9250 MAGIC_CMD=$MAGIC_CMD
9252 # Used on cygwin: DLL creation program.
9253 DLLTOOL="$DLLTOOL"
9255 # Used on cygwin: object dumper.
9256 OBJDUMP="$OBJDUMP"
9258 # Used on cygwin: assembler.
9259 AS="$AS"
9261 # The name of the directory that contains temporary libtool files.
9262 objdir=$objdir
9264 # How to create reloadable object files.
9265 reload_flag=$lt_reload_flag
9266 reload_cmds=$lt_reload_cmds
9268 # How to pass a linker flag through the compiler.
9269 wl=$lt_lt_prog_compiler_wl
9271 # Object file suffix (normally "o").
9272 objext="$ac_objext"
9274 # Old archive suffix (normally "a").
9275 libext="$libext"
9277 # Shared library suffix (normally ".so").
9278 shrext_cmds='$shrext_cmds'
9280 # Executable file suffix (normally "").
9281 exeext="$exeext"
9283 # Additional compiler flags for building library objects.
9284 pic_flag=$lt_lt_prog_compiler_pic
9285 pic_mode=$pic_mode
9287 # What is the maximum length of a command?
9288 max_cmd_len=$lt_cv_sys_max_cmd_len
9290 # Does compiler simultaneously support -c and -o options?
9291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9293 # Must we lock files when doing compilation ?
9294 need_locks=$lt_need_locks
9296 # Do we need the lib prefix for modules?
9297 need_lib_prefix=$need_lib_prefix
9299 # Do we need a version for libraries?
9300 need_version=$need_version
9302 # Whether dlopen is supported.
9303 dlopen_support=$enable_dlopen
9305 # Whether dlopen of programs is supported.
9306 dlopen_self=$enable_dlopen_self
9308 # Whether dlopen of statically linked programs is supported.
9309 dlopen_self_static=$enable_dlopen_self_static
9311 # Compiler flag to prevent dynamic linking.
9312 link_static_flag=$lt_lt_prog_compiler_static
9314 # Compiler flag to turn off builtin functions.
9315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9317 # Compiler flag to allow reflexive dlopens.
9318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9320 # Compiler flag to generate shared objects directly from archives.
9321 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9323 # Compiler flag to generate thread-safe objects.
9324 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9326 # Library versioning type.
9327 version_type=$version_type
9329 # Format of library name prefix.
9330 libname_spec=$lt_libname_spec
9332 # List of archive names. First name is the real one, the rest are links.
9333 # The last name is the one that the linker finds with -lNAME.
9334 library_names_spec=$lt_library_names_spec
9336 # The coded name of the library, if different from the real name.
9337 soname_spec=$lt_soname_spec
9339 # Commands used to build and install an old-style archive.
9340 RANLIB=$lt_RANLIB
9341 old_archive_cmds=$lt_old_archive_cmds
9342 old_postinstall_cmds=$lt_old_postinstall_cmds
9343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9345 # Create an old-style archive from a shared archive.
9346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9348 # Create a temporary old-style archive to link instead of a shared archive.
9349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9351 # Commands used to build and install a shared archive.
9352 archive_cmds=$lt_archive_cmds
9353 archive_expsym_cmds=$lt_archive_expsym_cmds
9354 postinstall_cmds=$lt_postinstall_cmds
9355 postuninstall_cmds=$lt_postuninstall_cmds
9357 # Commands used to build a loadable module (assumed same as above if empty)
9358 module_cmds=$lt_module_cmds
9359 module_expsym_cmds=$lt_module_expsym_cmds
9361 # Commands to strip libraries.
9362 old_striplib=$lt_old_striplib
9363 striplib=$lt_striplib
9365 # Dependencies to place before the objects being linked to create a
9366 # shared library.
9367 predep_objects=$lt_predep_objects
9369 # Dependencies to place after the objects being linked to create a
9370 # shared library.
9371 postdep_objects=$lt_postdep_objects
9373 # Dependencies to place before the objects being linked to create a
9374 # shared library.
9375 predeps=$lt_predeps
9377 # Dependencies to place after the objects being linked to create a
9378 # shared library.
9379 postdeps=$lt_postdeps
9381 # The library search path used internally by the compiler when linking
9382 # a shared library.
9383 compiler_lib_search_path=$lt_compiler_lib_search_path
9385 # Method to check whether dependent libraries are shared objects.
9386 deplibs_check_method=$lt_deplibs_check_method
9388 # Command to use when deplibs_check_method == file_magic.
9389 file_magic_cmd=$lt_file_magic_cmd
9391 # Flag that allows shared libraries with undefined symbols to be built.
9392 allow_undefined_flag=$lt_allow_undefined_flag
9394 # Flag that forces no undefined symbols.
9395 no_undefined_flag=$lt_no_undefined_flag
9397 # Commands used to finish a libtool library installation in a directory.
9398 finish_cmds=$lt_finish_cmds
9400 # Same as above, but a single script fragment to be evaled but not shown.
9401 finish_eval=$lt_finish_eval
9403 # Take the output of nm and produce a listing of raw symbols and C names.
9404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9406 # Transform the output of nm in a proper C declaration
9407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9409 # Transform the output of nm in a C name address pair
9410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9412 # This is the shared library runtime path variable.
9413 runpath_var=$runpath_var
9415 # This is the shared library path variable.
9416 shlibpath_var=$shlibpath_var
9418 # Is shlibpath searched before the hard-coded library search path?
9419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9421 # How to hardcode a shared library path into an executable.
9422 hardcode_action=$hardcode_action
9424 # Whether we should hardcode library paths into libraries.
9425 hardcode_into_libs=$hardcode_into_libs
9427 # Flag to hardcode \$libdir into a binary during linking.
9428 # This must work even if \$libdir does not exist.
9429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9431 # If ld is used when linking, flag to hardcode \$libdir into
9432 # a binary during linking. This must work even if \$libdir does
9433 # not exist.
9434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9436 # Whether we need a single -rpath flag with a separated argument.
9437 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9440 # resulting binary.
9441 hardcode_direct=$hardcode_direct
9443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9444 # resulting binary.
9445 hardcode_minus_L=$hardcode_minus_L
9447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9448 # the resulting binary.
9449 hardcode_shlibpath_var=$hardcode_shlibpath_var
9451 # Set to yes if building a shared library automatically hardcodes DIR into the library
9452 # and all subsequent libraries and executables linked against it.
9453 hardcode_automatic=$hardcode_automatic
9455 # Variables whose values should be saved in libtool wrapper scripts and
9456 # restored at relink time.
9457 variables_saved_for_relink="$variables_saved_for_relink"
9459 # Whether libtool must link a program against all its dependency libraries.
9460 link_all_deplibs=$link_all_deplibs
9462 # Compile-time system search path for libraries
9463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9465 # Run-time system search path for libraries
9466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9468 # Fix the shell variable \$srcfile for the compiler.
9469 fix_srcfile_path="$fix_srcfile_path"
9471 # Set to yes if exported symbols are required.
9472 always_export_symbols=$always_export_symbols
9474 # The commands to list exported symbols.
9475 export_symbols_cmds=$lt_export_symbols_cmds
9477 # The commands to extract the exported symbol list from a shared archive.
9478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9480 # Symbols that should not be listed in the preloaded symbols.
9481 exclude_expsyms=$lt_exclude_expsyms
9483 # Symbols that must always be exported.
9484 include_expsyms=$lt_include_expsyms
9486 # ### END LIBTOOL CONFIG
9488 __EOF__
9491 case $host_os in
9492 aix3*)
9493 cat <<\EOF >> "$cfgfile"
9495 # AIX sometimes has problems with the GCC collect2 program. For some
9496 # reason, if we set the COLLECT_NAMES environment variable, the problems
9497 # vanish in a puff of smoke.
9498 if test "X${COLLECT_NAMES+set}" != Xset; then
9499 COLLECT_NAMES=
9500 export COLLECT_NAMES
9504 esac
9506 # We use sed instead of cat because bash on DJGPP gets confused if
9507 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9508 # text mode, it properly converts lines to CR/LF. This bash problem
9509 # is reportedly fixed, but why not run on old versions too?
9510 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9512 mv -f "$cfgfile" "$ofile" || \
9513 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9514 chmod +x "$ofile"
9516 else
9517 # If there is no Makefile yet, we rely on a make rule to execute
9518 # `config.status --recheck' to rerun these tests and create the
9519 # libtool script then.
9520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9521 if test -f "$ltmain_in"; then
9522 test -f Makefile && make "$ltmain"
9527 ac_ext=c
9528 ac_cpp='$CPP $CPPFLAGS'
9529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9533 CC="$lt_save_CC"
9536 # Check whether --with-tags or --without-tags was given.
9537 if test "${with_tags+set}" = set; then
9538 withval="$with_tags"
9539 tagnames="$withval"
9542 if test -f "$ltmain" && test -n "$tagnames"; then
9543 if test ! -f "${ofile}"; then
9544 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9545 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9548 if test -z "$LTCC"; then
9549 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9550 if test -z "$LTCC"; then
9551 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9552 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9553 else
9554 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9555 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9559 # Extract list of available tagged configurations in $ofile.
9560 # Note that this assumes the entire list is on one line.
9561 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9564 for tagname in $tagnames; do
9565 IFS="$lt_save_ifs"
9566 # Check whether tagname contains only valid characters
9567 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9568 "") ;;
9569 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9570 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9571 { (exit 1); exit 1; }; }
9573 esac
9575 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9576 then
9577 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9578 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9579 { (exit 1); exit 1; }; }
9582 # Update the list of available tags.
9583 if test -n "$tagname"; then
9584 echo appending configuration tag \"$tagname\" to $ofile
9586 case $tagname in
9587 CXX)
9588 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9589 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9590 (test "X$CXX" != "Xg++"))) ; then
9591 ac_ext=cc
9592 ac_cpp='$CXXCPP $CPPFLAGS'
9593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9600 archive_cmds_need_lc_CXX=no
9601 allow_undefined_flag_CXX=
9602 always_export_symbols_CXX=no
9603 archive_expsym_cmds_CXX=
9604 export_dynamic_flag_spec_CXX=
9605 hardcode_direct_CXX=no
9606 hardcode_libdir_flag_spec_CXX=
9607 hardcode_libdir_flag_spec_ld_CXX=
9608 hardcode_libdir_separator_CXX=
9609 hardcode_minus_L_CXX=no
9610 hardcode_automatic_CXX=no
9611 module_cmds_CXX=
9612 module_expsym_cmds_CXX=
9613 link_all_deplibs_CXX=unknown
9614 old_archive_cmds_CXX=$old_archive_cmds
9615 no_undefined_flag_CXX=
9616 whole_archive_flag_spec_CXX=
9617 enable_shared_with_static_runtimes_CXX=no
9619 # Dependencies to place before and after the object being linked:
9620 predep_objects_CXX=
9621 postdep_objects_CXX=
9622 predeps_CXX=
9623 postdeps_CXX=
9624 compiler_lib_search_path_CXX=
9626 # Source file extension for C++ test sources.
9627 ac_ext=cc
9629 # Object file extension for compiled C++ test sources.
9630 objext=o
9631 objext_CXX=$objext
9633 # Code to be used in simple compile tests
9634 lt_simple_compile_test_code="int some_variable = 0;\n"
9636 # Code to be used in simple link tests
9637 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9639 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9641 # If no C compiler was specified, use CC.
9642 LTCC=${LTCC-"$CC"}
9644 # Allow CC to be a program name with arguments.
9645 compiler=$CC
9648 # Allow CC to be a program name with arguments.
9649 lt_save_CC=$CC
9650 lt_save_LD=$LD
9651 lt_save_GCC=$GCC
9652 GCC=$GXX
9653 lt_save_with_gnu_ld=$with_gnu_ld
9654 lt_save_path_LD=$lt_cv_path_LD
9655 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9656 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9657 else
9658 unset lt_cv_prog_gnu_ld
9660 if test -n "${lt_cv_path_LDCXX+set}"; then
9661 lt_cv_path_LD=$lt_cv_path_LDCXX
9662 else
9663 unset lt_cv_path_LD
9665 test -z "${LDCXX+set}" || LD=$LDCXX
9666 CC=${CXX-"c++"}
9667 compiler=$CC
9668 compiler_CXX=$CC
9669 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9671 # We don't want -fno-exception wen compiling C++ code, so set the
9672 # no_builtin_flag separately
9673 if test "$GXX" = yes; then
9674 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9675 else
9676 lt_prog_compiler_no_builtin_flag_CXX=
9679 if test "$GXX" = yes; then
9680 # Set up default GNU C++ configuration
9683 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9684 if test "${with_gnu_ld+set}" = set; then
9685 withval="$with_gnu_ld"
9686 test "$withval" = no || with_gnu_ld=yes
9687 else
9688 with_gnu_ld=no
9690 ac_prog=ld
9691 if test "$GCC" = yes; then
9692 # Check if gcc -print-prog-name=ld gives a path.
9693 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9694 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9695 case $host in
9696 *-*-mingw*)
9697 # gcc leaves a trailing carriage return which upsets mingw
9698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9701 esac
9702 case $ac_prog in
9703 # Accept absolute paths.
9704 [\\/]* | ?:[\\/]*)
9705 re_direlt='/[^/][^/]*/\.\./'
9706 # Canonicalize the pathname of ld
9707 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9708 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9709 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9710 done
9711 test -z "$LD" && LD="$ac_prog"
9714 # If it fails, then pretend we aren't using GCC.
9715 ac_prog=ld
9718 # If it is relative, then search for the first ld in PATH.
9719 with_gnu_ld=unknown
9721 esac
9722 elif test "$with_gnu_ld" = yes; then
9723 echo "$as_me:$LINENO: checking for GNU ld" >&5
9724 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9725 else
9726 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9727 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9729 if test "${lt_cv_path_LD+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 if test -z "$LD"; then
9733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9734 for ac_dir in $PATH; do
9735 IFS="$lt_save_ifs"
9736 test -z "$ac_dir" && ac_dir=.
9737 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9738 lt_cv_path_LD="$ac_dir/$ac_prog"
9739 # Check to see if the program is GNU ld. I'd rather use --version,
9740 # but apparently some GNU ld's only accept -v.
9741 # Break only if it was the GNU/non-GNU ld that we prefer.
9742 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9743 *GNU* | *'with BFD'*)
9744 test "$with_gnu_ld" != no && break
9747 test "$with_gnu_ld" != yes && break
9749 esac
9751 done
9752 IFS="$lt_save_ifs"
9753 else
9754 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9758 LD="$lt_cv_path_LD"
9759 if test -n "$LD"; then
9760 echo "$as_me:$LINENO: result: $LD" >&5
9761 echo "${ECHO_T}$LD" >&6
9762 else
9763 echo "$as_me:$LINENO: result: no" >&5
9764 echo "${ECHO_T}no" >&6
9766 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9767 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9768 { (exit 1); exit 1; }; }
9769 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9770 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9771 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9775 case `$LD -v 2>&1 </dev/null` in
9776 *GNU* | *'with BFD'*)
9777 lt_cv_prog_gnu_ld=yes
9780 lt_cv_prog_gnu_ld=no
9782 esac
9784 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9785 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9786 with_gnu_ld=$lt_cv_prog_gnu_ld
9790 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9791 # archiving commands below assume that GNU ld is being used.
9792 if test "$with_gnu_ld" = yes; then
9793 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794 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'
9796 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9799 # If archive_cmds runs LD, not CC, wlarc should be empty
9800 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9801 # investigate it a little bit more. (MM)
9802 wlarc='${wl}'
9804 # ancient GNU ld didn't support --whole-archive et. al.
9805 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9806 grep 'no-whole-archive' > /dev/null; then
9807 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9808 else
9809 whole_archive_flag_spec_CXX=
9811 else
9812 with_gnu_ld=no
9813 wlarc=
9815 # A generic and very simple default shared library creation
9816 # command for GNU C++ for the case where it uses the native
9817 # linker, instead of GNU ld. If possible, this setting should
9818 # overridden to take advantage of the native linker features on
9819 # the platform it is being used on.
9820 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9823 # Commands to make compiler produce verbose output that lists
9824 # what "hidden" libraries, object files and flags are used when
9825 # linking a shared library.
9826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9828 else
9829 GXX=no
9830 with_gnu_ld=no
9831 wlarc=
9834 # PORTME: fill in a description of your system's C++ link characteristics
9835 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9836 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9837 ld_shlibs_CXX=yes
9838 case $host_os in
9839 aix3*)
9840 # FIXME: insert proper C++ library support
9841 ld_shlibs_CXX=no
9843 aix4* | aix5*)
9844 if test "$host_cpu" = ia64; then
9845 # On IA64, the linker does run time linking by default, so we don't
9846 # have to do anything special.
9847 aix_use_runtimelinking=no
9848 exp_sym_flag='-Bexport'
9849 no_entry_flag=""
9850 else
9851 aix_use_runtimelinking=no
9853 # Test if we are trying to use run time linking or normal
9854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9855 # need to do runtime linking.
9856 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9857 for ld_flag in $LDFLAGS; do
9858 case $ld_flag in
9859 *-brtl*)
9860 aix_use_runtimelinking=yes
9861 break
9863 esac
9864 done
9865 esac
9867 exp_sym_flag='-bexport'
9868 no_entry_flag='-bnoentry'
9871 # When large executables or shared objects are built, AIX ld can
9872 # have problems creating the table of contents. If linking a library
9873 # or program results in "error TOC overflow" add -mminimal-toc to
9874 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9875 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9877 archive_cmds_CXX=''
9878 hardcode_direct_CXX=yes
9879 hardcode_libdir_separator_CXX=':'
9880 link_all_deplibs_CXX=yes
9882 if test "$GXX" = yes; then
9883 case $host_os in aix4.[012]|aix4.[012].*)
9884 # We only want to do this on AIX 4.2 and lower, the check
9885 # below for broken collect2 doesn't work under 4.3+
9886 collect2name=`${CC} -print-prog-name=collect2`
9887 if test -f "$collect2name" && \
9888 strings "$collect2name" | grep resolve_lib_name >/dev/null
9889 then
9890 # We have reworked collect2
9891 hardcode_direct_CXX=yes
9892 else
9893 # We have old collect2
9894 hardcode_direct_CXX=unsupported
9895 # It fails to find uninstalled libraries when the uninstalled
9896 # path is not listed in the libpath. Setting hardcode_minus_L
9897 # to unsupported forces relinking
9898 hardcode_minus_L_CXX=yes
9899 hardcode_libdir_flag_spec_CXX='-L$libdir'
9900 hardcode_libdir_separator_CXX=
9902 esac
9903 shared_flag='-shared'
9904 if test "$aix_use_runtimelinking" = yes; then
9905 shared_flag="$shared_flag "'${wl}-G'
9907 else
9908 # not using gcc
9909 if test "$host_cpu" = ia64; then
9910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9911 # chokes on -Wl,-G. The following line is correct:
9912 shared_flag='-G'
9913 else
9914 if test "$aix_use_runtimelinking" = yes; then
9915 shared_flag='${wl}-G'
9916 else
9917 shared_flag='${wl}-bM:SRE'
9922 # It seems that -bexpall does not export symbols beginning with
9923 # underscore (_), so it is better to generate a list of symbols to export.
9924 always_export_symbols_CXX=yes
9925 if test "$aix_use_runtimelinking" = yes; then
9926 # Warning - without using the other runtime loading flags (-brtl),
9927 # -berok will link without error, but may produce a broken library.
9928 allow_undefined_flag_CXX='-berok'
9929 # Determine the default libpath from the value encoded in an empty executable.
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9938 main ()
9942 return 0;
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_cxx_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9970 # Check for a 64-bit object if we didn't find anything.
9971 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; }
9972 }'`; fi
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9978 rm -f conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9982 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9984 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"
9985 else
9986 if test "$host_cpu" = ia64; then
9987 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9988 allow_undefined_flag_CXX="-z nodefs"
9989 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"
9990 else
9991 # Determine the default libpath from the value encoded in an empty executable.
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
10000 main ()
10004 return 0;
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_cxx_werror_flag"
10017 || test ! -s conftest.err'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10032 # Check for a 64-bit object if we didn't find anything.
10033 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; }
10034 }'`; fi
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10040 rm -f conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10044 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10045 # Warning - without using the other run time loading flags,
10046 # -berok will link without error, but may produce a broken library.
10047 no_undefined_flag_CXX=' ${wl}-bernotok'
10048 allow_undefined_flag_CXX=' ${wl}-berok'
10049 # -bexpall does not export symbols beginning with underscore (_)
10050 always_export_symbols_CXX=yes
10051 # Exported symbols can be pulled into shared objects from archives
10052 whole_archive_flag_spec_CXX=' '
10053 archive_cmds_need_lc_CXX=yes
10054 # This is similar to how AIX traditionally builds it's shared libraries.
10055 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'
10059 chorus*)
10060 case $cc_basename in
10062 # FIXME: insert proper C++ library support
10063 ld_shlibs_CXX=no
10065 esac
10069 cygwin* | mingw* | pw32*)
10070 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10071 # as there is no search path for DLLs.
10072 hardcode_libdir_flag_spec_CXX='-L$libdir'
10073 allow_undefined_flag_CXX=unsupported
10074 always_export_symbols_CXX=no
10075 enable_shared_with_static_runtimes_CXX=yes
10077 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10078 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'
10079 # If the export-symbols file already is a .def file (1st line
10080 # is EXPORTS), use it as is; otherwise, prepend...
10081 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10082 cp $export_symbols $output_objdir/$soname.def;
10083 else
10084 echo EXPORTS > $output_objdir/$soname.def;
10085 cat $export_symbols >> $output_objdir/$soname.def;
10087 $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'
10088 else
10089 ld_shlibs_CXX=no
10092 darwin* | rhapsody*)
10093 case "$host_os" in
10094 rhapsody* | darwin1.[012])
10095 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10097 *) # Darwin 1.3 on
10098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10099 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10100 else
10101 case ${MACOSX_DEPLOYMENT_TARGET} in
10102 10.[012])
10103 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10105 10.*)
10106 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10108 esac
10111 esac
10112 archive_cmds_need_lc_CXX=no
10113 hardcode_direct_CXX=no
10114 hardcode_automatic_CXX=yes
10115 hardcode_shlibpath_var_CXX=unsupported
10116 whole_archive_flag_spec_CXX=''
10117 link_all_deplibs_CXX=yes
10119 if test "$GXX" = yes ; then
10120 lt_int_apple_cc_single_mod=no
10121 output_verbose_link_cmd='echo'
10122 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10123 lt_int_apple_cc_single_mod=yes
10125 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10126 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10127 else
10128 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'
10130 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10133 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}'
10134 else
10135 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}'
10137 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}'
10138 else
10139 case "$cc_basename" in
10140 xlc*)
10141 output_verbose_link_cmd='echo'
10142 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'
10143 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10145 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}'
10146 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}'
10149 ld_shlibs_CXX=no
10151 esac
10155 dgux*)
10156 case $cc_basename in
10157 ec++)
10158 # FIXME: insert proper C++ library support
10159 ld_shlibs_CXX=no
10161 ghcx)
10162 # Green Hills C++ Compiler
10163 # FIXME: insert proper C++ library support
10164 ld_shlibs_CXX=no
10167 # FIXME: insert proper C++ library support
10168 ld_shlibs_CXX=no
10170 esac
10172 freebsd[12]*)
10173 # C++ shared libraries reported to be fairly broken before switch to ELF
10174 ld_shlibs_CXX=no
10176 freebsd-elf*)
10177 archive_cmds_need_lc_CXX=no
10179 freebsd* | kfreebsd*-gnu | dragonfly*)
10180 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10181 # conventions
10182 ld_shlibs_CXX=yes
10184 gnu*)
10186 hpux9*)
10187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10188 hardcode_libdir_separator_CXX=:
10189 export_dynamic_flag_spec_CXX='${wl}-E'
10190 hardcode_direct_CXX=yes
10191 hardcode_minus_L_CXX=yes # Not in the search PATH,
10192 # but as the default
10193 # location of the library.
10195 case $cc_basename in
10197 # FIXME: insert proper C++ library support
10198 ld_shlibs_CXX=no
10200 aCC)
10201 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'
10202 # Commands to make compiler produce verbose output that lists
10203 # what "hidden" libraries, object files and flags are used when
10204 # linking a shared library.
10206 # There doesn't appear to be a way to prevent this compiler from
10207 # explicitly linking system object files so we need to strip them
10208 # from the output so that they don't get included in the library
10209 # dependencies.
10210 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'
10213 if test "$GXX" = yes; then
10214 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'
10215 else
10216 # FIXME: insert proper C++ library support
10217 ld_shlibs_CXX=no
10220 esac
10222 hpux10*|hpux11*)
10223 if test $with_gnu_ld = no; then
10224 case "$host_cpu" in
10225 hppa*64*)
10226 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10227 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10228 hardcode_libdir_separator_CXX=:
10230 ia64*)
10231 hardcode_libdir_flag_spec_CXX='-L$libdir'
10234 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10235 hardcode_libdir_separator_CXX=:
10236 export_dynamic_flag_spec_CXX='${wl}-E'
10238 esac
10240 case "$host_cpu" in
10241 hppa*64*)
10242 hardcode_direct_CXX=no
10243 hardcode_shlibpath_var_CXX=no
10245 ia64*)
10246 hardcode_direct_CXX=no
10247 hardcode_shlibpath_var_CXX=no
10248 hardcode_minus_L_CXX=yes # Not in the search PATH,
10249 # but as the default
10250 # location of the library.
10253 hardcode_direct_CXX=yes
10254 hardcode_minus_L_CXX=yes # Not in the search PATH,
10255 # but as the default
10256 # location of the library.
10258 esac
10260 case $cc_basename in
10262 # FIXME: insert proper C++ library support
10263 ld_shlibs_CXX=no
10265 aCC)
10266 case "$host_cpu" in
10267 hppa*64*|ia64*)
10268 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10271 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10273 esac
10274 # Commands to make compiler produce verbose output that lists
10275 # what "hidden" libraries, object files and flags are used when
10276 # linking a shared library.
10278 # There doesn't appear to be a way to prevent this compiler from
10279 # explicitly linking system object files so we need to strip them
10280 # from the output so that they don't get included in the library
10281 # dependencies.
10282 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'
10285 if test "$GXX" = yes; then
10286 if test $with_gnu_ld = no; then
10287 case "$host_cpu" in
10288 ia64*|hppa*64*)
10289 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10292 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'
10294 esac
10296 else
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10301 esac
10303 irix5* | irix6*)
10304 case $cc_basename in
10306 # SGI C++
10307 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10309 # Archives containing C++ object files must be created using
10310 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10311 # necessary to make sure instantiated templates are included
10312 # in the archive.
10313 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10316 if test "$GXX" = yes; then
10317 if test "$with_gnu_ld" = no; then
10318 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10319 else
10320 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'
10323 link_all_deplibs_CXX=yes
10325 esac
10326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10327 hardcode_libdir_separator_CXX=:
10329 linux*)
10330 case $cc_basename in
10331 KCC)
10332 # Kuck and Associates, Inc. (KAI) C++ Compiler
10334 # KCC will only create a shared library if the output file
10335 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10336 # to its proper name (with version) after linking.
10337 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'
10338 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'
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10343 # There doesn't appear to be a way to prevent this compiler from
10344 # explicitly linking system object files so we need to strip them
10345 # from the output so that they don't get included in the library
10346 # dependencies.
10347 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'
10349 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10350 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10352 # Archives containing C++ object files must be created using
10353 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10354 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10356 icpc)
10357 # Intel C++
10358 with_gnu_ld=yes
10359 # version 8.0 and above of icpc choke on multiply defined symbols
10360 # if we add $predep_objects and $postdep_objects, however 7.1 and
10361 # earlier do not add the objects themselves.
10362 case `$CC -V 2>&1` in
10363 *"Version 7."*)
10364 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10365 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'
10367 *) # Version 8.0 or newer
10368 tmp_idyn=
10369 case $host_cpu in
10370 ia64*) tmp_idyn=' -i_dynamic';;
10371 esac
10372 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10373 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'
10375 esac
10376 archive_cmds_need_lc_CXX=no
10377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10378 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10379 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10381 pgCC)
10382 # Portland Group C++ compiler
10383 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10384 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'
10386 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10389 cxx)
10390 # Compaq C++
10391 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10392 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'
10394 runpath_var=LD_RUN_PATH
10395 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10396 hardcode_libdir_separator_CXX=:
10398 # Commands to make compiler produce verbose output that lists
10399 # what "hidden" libraries, object files and flags are used when
10400 # linking a shared library.
10402 # There doesn't appear to be a way to prevent this compiler from
10403 # explicitly linking system object files so we need to strip them
10404 # from the output so that they don't get included in the library
10405 # dependencies.
10406 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'
10408 esac
10410 lynxos*)
10411 # FIXME: insert proper C++ library support
10412 ld_shlibs_CXX=no
10414 m88k*)
10415 # FIXME: insert proper C++ library support
10416 ld_shlibs_CXX=no
10418 mvs*)
10419 case $cc_basename in
10420 cxx)
10421 # FIXME: insert proper C++ library support
10422 ld_shlibs_CXX=no
10425 # FIXME: insert proper C++ library support
10426 ld_shlibs_CXX=no
10428 esac
10430 netbsd*)
10431 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10432 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10433 wlarc=
10434 hardcode_libdir_flag_spec_CXX='-R$libdir'
10435 hardcode_direct_CXX=yes
10436 hardcode_shlibpath_var_CXX=no
10438 # Workaround some broken pre-1.5 toolchains
10439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10441 openbsd2*)
10442 # C++ shared libraries are fairly broken
10443 ld_shlibs_CXX=no
10445 openbsd*)
10446 hardcode_direct_CXX=yes
10447 hardcode_shlibpath_var_CXX=no
10448 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10451 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10452 export_dynamic_flag_spec_CXX='${wl}-E'
10453 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10455 output_verbose_link_cmd='echo'
10457 osf3*)
10458 case $cc_basename in
10459 KCC)
10460 # Kuck and Associates, Inc. (KAI) C++ Compiler
10462 # KCC will only create a shared library if the output file
10463 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10464 # to its proper name (with version) after linking.
10465 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'
10467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10468 hardcode_libdir_separator_CXX=:
10470 # Archives containing C++ object files must be created using
10471 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10472 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10475 RCC)
10476 # Rational C++ 2.4.1
10477 # FIXME: insert proper C++ library support
10478 ld_shlibs_CXX=no
10480 cxx)
10481 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10482 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10485 hardcode_libdir_separator_CXX=:
10487 # Commands to make compiler produce verbose output that lists
10488 # what "hidden" libraries, object files and flags are used when
10489 # linking a shared library.
10491 # There doesn't appear to be a way to prevent this compiler from
10492 # explicitly linking system object files so we need to strip them
10493 # from the output so that they don't get included in the library
10494 # dependencies.
10495 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'
10498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10500 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10503 hardcode_libdir_separator_CXX=:
10505 # Commands to make compiler produce verbose output that lists
10506 # what "hidden" libraries, object files and flags are used when
10507 # linking a shared library.
10508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10510 else
10511 # FIXME: insert proper C++ library support
10512 ld_shlibs_CXX=no
10515 esac
10517 osf4* | osf5*)
10518 case $cc_basename in
10519 KCC)
10520 # Kuck and Associates, Inc. (KAI) C++ Compiler
10522 # KCC will only create a shared library if the output file
10523 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10524 # to its proper name (with version) after linking.
10525 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'
10527 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10528 hardcode_libdir_separator_CXX=:
10530 # Archives containing C++ object files must be created using
10531 # the KAI C++ compiler.
10532 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10534 RCC)
10535 # Rational C++ 2.4.1
10536 # FIXME: insert proper C++ library support
10537 ld_shlibs_CXX=no
10539 cxx)
10540 allow_undefined_flag_CXX=' -expect_unresolved \*'
10541 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10542 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10543 echo "-hidden">> $lib.exp~
10544 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10545 $rm $lib.exp'
10547 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10548 hardcode_libdir_separator_CXX=:
10550 # Commands to make compiler produce verbose output that lists
10551 # what "hidden" libraries, object files and flags are used when
10552 # linking a shared library.
10554 # There doesn't appear to be a way to prevent this compiler from
10555 # explicitly linking system object files so we need to strip them
10556 # from the output so that they don't get included in the library
10557 # dependencies.
10558 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'
10561 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10562 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10563 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10566 hardcode_libdir_separator_CXX=:
10568 # Commands to make compiler produce verbose output that lists
10569 # what "hidden" libraries, object files and flags are used when
10570 # linking a shared library.
10571 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10573 else
10574 # FIXME: insert proper C++ library support
10575 ld_shlibs_CXX=no
10578 esac
10580 psos*)
10581 # FIXME: insert proper C++ library support
10582 ld_shlibs_CXX=no
10584 sco*)
10585 archive_cmds_need_lc_CXX=no
10586 case $cc_basename in
10588 # FIXME: insert proper C++ library support
10589 ld_shlibs_CXX=no
10592 # FIXME: insert proper C++ library support
10593 ld_shlibs_CXX=no
10595 esac
10597 sunos4*)
10598 case $cc_basename in
10600 # Sun C++ 4.x
10601 # FIXME: insert proper C++ library support
10602 ld_shlibs_CXX=no
10604 lcc)
10605 # Lucid
10606 # FIXME: insert proper C++ library support
10607 ld_shlibs_CXX=no
10610 # FIXME: insert proper C++ library support
10611 ld_shlibs_CXX=no
10613 esac
10615 solaris*)
10616 case $cc_basename in
10618 # Sun C++ 4.2, 5.x and Centerline C++
10619 no_undefined_flag_CXX=' -zdefs'
10620 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10622 $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'
10624 hardcode_libdir_flag_spec_CXX='-R$libdir'
10625 hardcode_shlibpath_var_CXX=no
10626 case $host_os in
10627 solaris2.[0-5] | solaris2.[0-5].*) ;;
10629 # The C++ compiler is used as linker so we must use $wl
10630 # flag to pass the commands to the underlying system
10631 # linker.
10632 # Supported since Solaris 2.6 (maybe 2.5.1?)
10633 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10635 esac
10636 link_all_deplibs_CXX=yes
10638 # Commands to make compiler produce verbose output that lists
10639 # what "hidden" libraries, object files and flags are used when
10640 # linking a shared library.
10642 # There doesn't appear to be a way to prevent this compiler from
10643 # explicitly linking system object files so we need to strip them
10644 # from the output so that they don't get included in the library
10645 # dependencies.
10646 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'
10648 # Archives containing C++ object files must be created using
10649 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10650 # necessary to make sure instantiated templates are included
10651 # in the archive.
10652 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10654 gcx)
10655 # Green Hills C++ Compiler
10656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10658 # The C++ compiler must be used to create the archive.
10659 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10662 # GNU C++ compiler with Solaris linker
10663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10664 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10665 if $CC --version | grep -v '^2\.7' > /dev/null; then
10666 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10667 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10668 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10670 # Commands to make compiler produce verbose output that lists
10671 # what "hidden" libraries, object files and flags are used when
10672 # linking a shared library.
10673 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10674 else
10675 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10676 # platform.
10677 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10678 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10679 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10681 # Commands to make compiler produce verbose output that lists
10682 # what "hidden" libraries, object files and flags are used when
10683 # linking a shared library.
10684 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10687 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10690 esac
10692 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10693 archive_cmds_need_lc_CXX=no
10695 tandem*)
10696 case $cc_basename in
10697 NCC)
10698 # NonStop-UX NCC 3.20
10699 # FIXME: insert proper C++ library support
10700 ld_shlibs_CXX=no
10703 # FIXME: insert proper C++ library support
10704 ld_shlibs_CXX=no
10706 esac
10708 vxworks*)
10709 # FIXME: insert proper C++ library support
10710 ld_shlibs_CXX=no
10713 # FIXME: insert proper C++ library support
10714 ld_shlibs_CXX=no
10716 esac
10717 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10718 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10719 test "$ld_shlibs_CXX" = no && can_build_shared=no
10721 GCC_CXX="$GXX"
10722 LD_CXX="$LD"
10725 cat > conftest.$ac_ext <<EOF
10726 class Foo
10728 public:
10729 Foo (void) { a = 0; }
10730 private:
10731 int a;
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736 (eval $ac_compile) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; then
10740 # Parse the compiler output and extract the necessary
10741 # objects, libraries and library flags.
10743 # Sentinel used to keep track of whether or not we are before
10744 # the conftest object file.
10745 pre_test_object_deps_done=no
10747 # The `*' in the case matches for architectures that use `case' in
10748 # $output_verbose_cmd can trigger glob expansion during the loop
10749 # eval without this substitution.
10750 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10752 for p in `eval $output_verbose_link_cmd`; do
10753 case $p in
10755 -L* | -R* | -l*)
10756 # Some compilers place space between "-{L,R}" and the path.
10757 # Remove the space.
10758 if test $p = "-L" \
10759 || test $p = "-R"; then
10760 prev=$p
10761 continue
10762 else
10763 prev=
10766 if test "$pre_test_object_deps_done" = no; then
10767 case $p in
10768 -L* | -R*)
10769 # Internal compiler library paths should come after those
10770 # provided the user. The postdeps already come after the
10771 # user supplied libs so there is no need to process them.
10772 if test -z "$compiler_lib_search_path_CXX"; then
10773 compiler_lib_search_path_CXX="${prev}${p}"
10774 else
10775 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10778 # The "-l" case would never come before the object being
10779 # linked, so don't bother handling this case.
10780 esac
10781 else
10782 if test -z "$postdeps_CXX"; then
10783 postdeps_CXX="${prev}${p}"
10784 else
10785 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10790 *.$objext)
10791 # This assumes that the test object file only shows up
10792 # once in the compiler output.
10793 if test "$p" = "conftest.$objext"; then
10794 pre_test_object_deps_done=yes
10795 continue
10798 if test "$pre_test_object_deps_done" = no; then
10799 if test -z "$predep_objects_CXX"; then
10800 predep_objects_CXX="$p"
10801 else
10802 predep_objects_CXX="$predep_objects_CXX $p"
10804 else
10805 if test -z "$postdep_objects_CXX"; then
10806 postdep_objects_CXX="$p"
10807 else
10808 postdep_objects_CXX="$postdep_objects_CXX $p"
10813 *) ;; # Ignore the rest.
10815 esac
10816 done
10818 # Clean up.
10819 rm -f a.out a.exe
10820 else
10821 echo "libtool.m4: error: problem compiling CXX test program"
10824 $rm -f confest.$objext
10826 case " $postdeps_CXX " in
10827 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10828 esac
10830 lt_prog_compiler_wl_CXX=
10831 lt_prog_compiler_pic_CXX=
10832 lt_prog_compiler_static_CXX=
10834 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10837 # C++ specific cases for pic, static, wl, etc.
10838 if test "$GXX" = yes; then
10839 lt_prog_compiler_wl_CXX='-Wl,'
10840 lt_prog_compiler_static_CXX='-static'
10842 case $host_os in
10843 aix*)
10844 # All AIX code is PIC.
10845 if test "$host_cpu" = ia64; then
10846 # AIX 5 now supports IA64 processor
10847 lt_prog_compiler_static_CXX='-Bstatic'
10850 amigaos*)
10851 # FIXME: we need at least 68020 code to build shared libraries, but
10852 # adding the `-m68020' flag to GCC prevents building anything better,
10853 # like `-m68040'.
10854 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10856 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10857 # PIC is the default for these OSes.
10859 mingw* | os2* | pw32*)
10860 # This hack is so that the source file can tell whether it is being
10861 # built for inclusion in a dll (and should export symbols for example).
10862 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10864 darwin* | rhapsody*)
10865 # PIC is the default on this platform
10866 # Common symbols not allowed in MH_DYLIB files
10867 lt_prog_compiler_pic_CXX='-fno-common'
10869 *djgpp*)
10870 # DJGPP does not support shared libraries at all
10871 lt_prog_compiler_pic_CXX=
10873 sysv4*MP*)
10874 if test -d /usr/nec; then
10875 lt_prog_compiler_pic_CXX=-Kconform_pic
10878 hpux*)
10879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10880 # not for PA HP-UX.
10881 case "$host_cpu" in
10882 hppa*64*|ia64*)
10885 lt_prog_compiler_pic_CXX='-fPIC'
10887 esac
10890 lt_prog_compiler_pic_CXX='-fPIC'
10892 esac
10893 else
10894 case $host_os in
10895 aix4* | aix5*)
10896 # All AIX code is PIC.
10897 if test "$host_cpu" = ia64; then
10898 # AIX 5 now supports IA64 processor
10899 lt_prog_compiler_static_CXX='-Bstatic'
10900 else
10901 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10904 chorus*)
10905 case $cc_basename in
10906 cxch68)
10907 # Green Hills C++ Compiler
10908 # _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"
10910 esac
10912 darwin*)
10913 # PIC is the default on this platform
10914 # Common symbols not allowed in MH_DYLIB files
10915 case "$cc_basename" in
10916 xlc*)
10917 lt_prog_compiler_pic_CXX='-qnocommon'
10918 lt_prog_compiler_wl_CXX='-Wl,'
10920 esac
10922 dgux*)
10923 case $cc_basename in
10924 ec++)
10925 lt_prog_compiler_pic_CXX='-KPIC'
10927 ghcx)
10928 # Green Hills C++ Compiler
10929 lt_prog_compiler_pic_CXX='-pic'
10933 esac
10935 freebsd* | kfreebsd*-gnu | dragonfly*)
10936 # FreeBSD uses GNU C++
10938 hpux9* | hpux10* | hpux11*)
10939 case $cc_basename in
10941 lt_prog_compiler_wl_CXX='-Wl,'
10942 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10943 if test "$host_cpu" != ia64; then
10944 lt_prog_compiler_pic_CXX='+Z'
10947 aCC)
10948 lt_prog_compiler_wl_CXX='-Wl,'
10949 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10950 case "$host_cpu" in
10951 hppa*64*|ia64*)
10952 # +Z the default
10955 lt_prog_compiler_pic_CXX='+Z'
10957 esac
10961 esac
10963 irix5* | irix6* | nonstopux*)
10964 case $cc_basename in
10966 lt_prog_compiler_wl_CXX='-Wl,'
10967 lt_prog_compiler_static_CXX='-non_shared'
10968 # CC pic flag -KPIC is the default.
10972 esac
10974 linux*)
10975 case $cc_basename in
10976 KCC)
10977 # KAI C++ Compiler
10978 lt_prog_compiler_wl_CXX='--backend -Wl,'
10979 lt_prog_compiler_pic_CXX='-fPIC'
10981 icpc* | ecpc*)
10982 # Intel C++
10983 lt_prog_compiler_wl_CXX='-Wl,'
10984 lt_prog_compiler_pic_CXX='-KPIC'
10985 lt_prog_compiler_static_CXX='-static'
10987 pgCC)
10988 # Portland Group C++ compiler.
10989 lt_prog_compiler_wl_CXX='-Wl,'
10990 lt_prog_compiler_pic_CXX='-fpic'
10991 lt_prog_compiler_static_CXX='-static'
10993 cxx)
10994 # Compaq C++
10995 # Make sure the PIC flag is empty. It appears that all Alpha
10996 # Linux and Compaq Tru64 Unix objects are PIC.
10997 lt_prog_compiler_pic_CXX=
10998 lt_prog_compiler_static_CXX='-non_shared'
11002 esac
11004 lynxos*)
11006 m88k*)
11008 mvs*)
11009 case $cc_basename in
11010 cxx)
11011 lt_prog_compiler_pic_CXX='-W c,exportall'
11015 esac
11017 netbsd*)
11019 osf3* | osf4* | osf5*)
11020 case $cc_basename in
11021 KCC)
11022 lt_prog_compiler_wl_CXX='--backend -Wl,'
11024 RCC)
11025 # Rational C++ 2.4.1
11026 lt_prog_compiler_pic_CXX='-pic'
11028 cxx)
11029 # Digital/Compaq C++
11030 lt_prog_compiler_wl_CXX='-Wl,'
11031 # Make sure the PIC flag is empty. It appears that all Alpha
11032 # Linux and Compaq Tru64 Unix objects are PIC.
11033 lt_prog_compiler_pic_CXX=
11034 lt_prog_compiler_static_CXX='-non_shared'
11038 esac
11040 psos*)
11042 sco*)
11043 case $cc_basename in
11045 lt_prog_compiler_pic_CXX='-fPIC'
11049 esac
11051 solaris*)
11052 case $cc_basename in
11054 # Sun C++ 4.2, 5.x and Centerline C++
11055 lt_prog_compiler_pic_CXX='-KPIC'
11056 lt_prog_compiler_static_CXX='-Bstatic'
11057 lt_prog_compiler_wl_CXX='-Qoption ld '
11059 gcx)
11060 # Green Hills C++ Compiler
11061 lt_prog_compiler_pic_CXX='-PIC'
11065 esac
11067 sunos4*)
11068 case $cc_basename in
11070 # Sun C++ 4.x
11071 lt_prog_compiler_pic_CXX='-pic'
11072 lt_prog_compiler_static_CXX='-Bstatic'
11074 lcc)
11075 # Lucid
11076 lt_prog_compiler_pic_CXX='-pic'
11080 esac
11082 tandem*)
11083 case $cc_basename in
11084 NCC)
11085 # NonStop-UX NCC 3.20
11086 lt_prog_compiler_pic_CXX='-KPIC'
11090 esac
11092 unixware*)
11094 vxworks*)
11097 lt_prog_compiler_can_build_shared_CXX=no
11099 esac
11102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11103 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11106 # Check to make sure the PIC flag actually works.
11108 if test -n "$lt_prog_compiler_pic_CXX"; then
11110 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11111 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11112 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115 lt_prog_compiler_pic_works_CXX=no
11116 ac_outfile=conftest.$ac_objext
11117 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11118 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11119 # Insert the option either (1) after the last *FLAGS variable, or
11120 # (2) before a word containing "conftest.", or (3) at the end.
11121 # Note that $ac_compile itself does not contain backslashes and begins
11122 # with a dollar sign (not a hyphen), so the echo should work correctly.
11123 # The option is referenced via a variable to avoid confusing sed.
11124 lt_compile=`echo "$ac_compile" | $SED \
11125 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11127 -e 's:$: $lt_compiler_flag:'`
11128 (eval echo "\"\$as_me:11128: $lt_compile\"" >&5)
11129 (eval "$lt_compile" 2>conftest.err)
11130 ac_status=$?
11131 cat conftest.err >&5
11132 echo "$as_me:11132: \$? = $ac_status" >&5
11133 if (exit $ac_status) && test -s "$ac_outfile"; then
11134 # The compiler can only warn and ignore the option if not recognized
11135 # So say no if there are warnings
11136 if test ! -s conftest.err; then
11137 lt_prog_compiler_pic_works_CXX=yes
11140 $rm conftest*
11143 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11144 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11146 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11147 case $lt_prog_compiler_pic_CXX in
11148 "" | " "*) ;;
11149 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11150 esac
11151 else
11152 lt_prog_compiler_pic_CXX=
11153 lt_prog_compiler_can_build_shared_CXX=no
11157 case "$host_os" in
11158 # For platforms which do not support PIC, -DPIC is meaningless:
11159 *djgpp*)
11160 lt_prog_compiler_pic_CXX=
11163 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11165 esac
11167 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11169 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 lt_cv_prog_compiler_c_o_CXX=no
11173 $rm -r conftest 2>/dev/null
11174 mkdir conftest
11175 cd conftest
11176 mkdir out
11177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11179 lt_compiler_flag="-o out/conftest2.$ac_objext"
11180 # Insert the option either (1) after the last *FLAGS variable, or
11181 # (2) before a word containing "conftest.", or (3) at the end.
11182 # Note that $ac_compile itself does not contain backslashes and begins
11183 # with a dollar sign (not a hyphen), so the echo should work correctly.
11184 lt_compile=`echo "$ac_compile" | $SED \
11185 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11187 -e 's:$: $lt_compiler_flag:'`
11188 (eval echo "\"\$as_me:11188: $lt_compile\"" >&5)
11189 (eval "$lt_compile" 2>out/conftest.err)
11190 ac_status=$?
11191 cat out/conftest.err >&5
11192 echo "$as_me:11192: \$? = $ac_status" >&5
11193 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11194 then
11195 # The compiler can only warn and ignore the option if not recognized
11196 # So say no if there are warnings
11197 if test ! -s out/conftest.err; then
11198 lt_cv_prog_compiler_c_o_CXX=yes
11201 chmod u+w .
11202 $rm conftest*
11203 # SGI C++ compiler will create directory out/ii_files/ for
11204 # template instantiation
11205 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11206 $rm out/* && rmdir out
11207 cd ..
11208 rmdir conftest
11209 $rm conftest*
11212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11213 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11216 hard_links="nottested"
11217 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11218 # do not overwrite the value of need_locks provided by the user
11219 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11220 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11221 hard_links=yes
11222 $rm conftest*
11223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11224 touch conftest.a
11225 ln conftest.a conftest.b 2>&5 || hard_links=no
11226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11227 echo "$as_me:$LINENO: result: $hard_links" >&5
11228 echo "${ECHO_T}$hard_links" >&6
11229 if test "$hard_links" = no; then
11230 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11231 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11232 need_locks=warn
11234 else
11235 need_locks=no
11238 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11239 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11241 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11242 case $host_os in
11243 aix4* | aix5*)
11244 # If we're using GNU nm, then we don't want the "-C" option.
11245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11246 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11247 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'
11248 else
11249 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'
11252 pw32*)
11253 export_symbols_cmds_CXX="$ltdll_cmds"
11255 cygwin* | mingw*)
11256 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'
11259 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11261 esac
11263 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11264 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11265 test "$ld_shlibs_CXX" = no && can_build_shared=no
11267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11268 if test "$GCC" = yes; then
11269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11273 # Do we need to explicitly link libc?
11275 case "x$archive_cmds_need_lc_CXX" in
11276 x|xyes)
11277 # Assume -lc should be added
11278 archive_cmds_need_lc_CXX=yes
11280 if test "$enable_shared" = yes && test "$GCC" = yes; then
11281 case $archive_cmds_CXX in
11282 *'~'*)
11283 # FIXME: we may have to deal with multi-command sequences.
11285 '$CC '*)
11286 # Test whether the compiler implicitly links with -lc since on some
11287 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11288 # to ld, don't add -lc before -lgcc.
11289 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11290 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11291 $rm conftest*
11292 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } 2>conftest.err; then
11299 soname=conftest
11300 lib=conftest
11301 libobjs=conftest.$ac_objext
11302 deplibs=
11303 wl=$lt_prog_compiler_wl_CXX
11304 compiler_flags=-v
11305 linker_flags=-v
11306 verstring=
11307 output_objdir=.
11308 libname=conftest
11309 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11310 allow_undefined_flag_CXX=
11311 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11312 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }
11316 then
11317 archive_cmds_need_lc_CXX=no
11318 else
11319 archive_cmds_need_lc_CXX=yes
11321 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11322 else
11323 cat conftest.err 1>&5
11325 $rm conftest*
11326 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11327 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11329 esac
11332 esac
11334 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11335 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11336 library_names_spec=
11337 libname_spec='lib$name'
11338 soname_spec=
11339 shrext_cmds=".so"
11340 postinstall_cmds=
11341 postuninstall_cmds=
11342 finish_cmds=
11343 finish_eval=
11344 shlibpath_var=
11345 shlibpath_overrides_runpath=unknown
11346 version_type=none
11347 dynamic_linker="$host_os ld.so"
11348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11349 if test "$GCC" = yes; then
11350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11351 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11352 # if the path contains ";" then we assume it to be the separator
11353 # otherwise default to the standard path separator (i.e. ":") - it is
11354 # assumed that no part of a normal pathname contains ";" but that should
11355 # okay in the real world where ";" in dirpaths is itself problematic.
11356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11357 else
11358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11360 else
11361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11363 need_lib_prefix=unknown
11364 hardcode_into_libs=no
11366 # when you set need_version to no, make sure it does not cause -set_version
11367 # flags to be left without arguments
11368 need_version=unknown
11370 case $host_os in
11371 aix3*)
11372 version_type=linux
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11374 shlibpath_var=LIBPATH
11376 # AIX 3 has no versioning support, so we append a major version to the name.
11377 soname_spec='${libname}${release}${shared_ext}$major'
11380 aix4* | aix5*)
11381 version_type=linux
11382 need_lib_prefix=no
11383 need_version=no
11384 hardcode_into_libs=yes
11385 if test "$host_cpu" = ia64; then
11386 # AIX 5 supports IA64
11387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 else
11390 # With GCC up to 2.95.x, collect2 would create an import file
11391 # for dependence libraries. The import file would start with
11392 # the line `#! .'. This would cause the generated library to
11393 # depend on `.', always an invalid library. This was fixed in
11394 # development snapshots of GCC prior to 3.0.
11395 case $host_os in
11396 aix4 | aix4.[01] | aix4.[01].*)
11397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11398 echo ' yes '
11399 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11401 else
11402 can_build_shared=no
11405 esac
11406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11407 # soname into executable. Probably we can add versioning support to
11408 # collect2, so additional links can be useful in future.
11409 if test "$aix_use_runtimelinking" = yes; then
11410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411 # instead of lib<name>.a to let people know that these are not
11412 # typical AIX shared libraries.
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 else
11415 # We preserve .a as extension for shared libraries through AIX4.2
11416 # and later when we are not doing run time linking.
11417 library_names_spec='${libname}${release}.a $libname.a'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11420 shlibpath_var=LIBPATH
11424 amigaos*)
11425 library_names_spec='$libname.ixlibrary $libname.a'
11426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11427 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'
11430 beos*)
11431 library_names_spec='${libname}${shared_ext}'
11432 dynamic_linker="$host_os ld.so"
11433 shlibpath_var=LIBRARY_PATH
11436 bsdi[45]*)
11437 version_type=linux
11438 need_version=no
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11445 # the default ld.so.conf also contains /usr/contrib/lib and
11446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11447 # libtool to hard-code these into programs
11450 cygwin* | mingw* | pw32*)
11451 version_type=windows
11452 shrext_cmds=".dll"
11453 need_version=no
11454 need_lib_prefix=no
11456 case $GCC,$host_os in
11457 yes,cygwin* | yes,mingw* | yes,pw32*)
11458 library_names_spec='$libname.dll.a'
11459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11460 postinstall_cmds='base_file=`basename \${file}`~
11461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11462 dldir=$destdir/`dirname \$dlpath`~
11463 test -d \$dldir || mkdir -p \$dldir~
11464 $install_prog $dir/$dlname \$dldir/$dlname'
11465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11466 dlpath=$dir/\$dldll~
11467 $rm \$dlpath'
11468 shlibpath_overrides_runpath=yes
11470 case $host_os in
11471 cygwin*)
11472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11474 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11476 mingw*)
11477 # MinGW DLLs use traditional 'lib' prefix
11478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11479 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11480 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11481 # It is most probably a Windows format PATH printed by
11482 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11483 # path with ; separators, and with drive letters. We can handle the
11484 # drive letters (cygwin fileutils understands them), so leave them,
11485 # especially as we might pass files found there to a mingw objdump,
11486 # which wouldn't understand a cygwinified path. Ahh.
11487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11488 else
11489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11492 pw32*)
11493 # pw32 DLLs use 'pw' prefix rather than 'lib'
11494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11496 esac
11500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11502 esac
11503 dynamic_linker='Win32 ld.exe'
11504 # FIXME: first we should search . and the directory the executable is in
11505 shlibpath_var=PATH
11508 darwin* | rhapsody*)
11509 dynamic_linker="$host_os dyld"
11510 version_type=darwin
11511 need_lib_prefix=no
11512 need_version=no
11513 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11514 soname_spec='${libname}${release}${major}$shared_ext'
11515 shlibpath_overrides_runpath=yes
11516 shlibpath_var=DYLD_LIBRARY_PATH
11517 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11518 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11519 if test "$GCC" = yes; then
11520 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"`
11521 else
11522 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11527 dgux*)
11528 version_type=linux
11529 need_lib_prefix=no
11530 need_version=no
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11536 freebsd1*)
11537 dynamic_linker=no
11540 kfreebsd*-gnu)
11541 version_type=linux
11542 need_lib_prefix=no
11543 need_version=no
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=no
11548 hardcode_into_libs=yes
11549 dynamic_linker='GNU ld.so'
11552 freebsd* | dragonfly*)
11553 # DragonFly does not have aout. When/if they implement a new
11554 # versioning mechanism, adjust this.
11555 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11556 version_type=freebsd-$objformat
11557 case $version_type in
11558 freebsd-elf*)
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11560 need_version=no
11561 need_lib_prefix=no
11563 freebsd-*)
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11565 need_version=yes
11567 esac
11568 shlibpath_var=LD_LIBRARY_PATH
11569 case $host_os in
11570 freebsd2*)
11571 shlibpath_overrides_runpath=yes
11573 freebsd3.[01]* | freebsdelf3.[01]*)
11574 shlibpath_overrides_runpath=yes
11575 hardcode_into_libs=yes
11577 *) # from 3.2 on
11578 shlibpath_overrides_runpath=no
11579 hardcode_into_libs=yes
11581 esac
11584 gnu*)
11585 version_type=linux
11586 need_lib_prefix=no
11587 need_version=no
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 hardcode_into_libs=yes
11594 hpux9* | hpux10* | hpux11*)
11595 # Give a soname corresponding to the major version so that dld.sl refuses to
11596 # link against other versions.
11597 version_type=sunos
11598 need_lib_prefix=no
11599 need_version=no
11600 case "$host_cpu" in
11601 ia64*)
11602 shrext_cmds='.so'
11603 hardcode_into_libs=yes
11604 dynamic_linker="$host_os dld.so"
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 if test "X$HPUX_IA64_MODE" = X32; then
11610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11611 else
11612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11616 hppa*64*)
11617 shrext_cmds='.sl'
11618 hardcode_into_libs=yes
11619 dynamic_linker="$host_os dld.sl"
11620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11628 shrext_cmds='.sl'
11629 dynamic_linker="$host_os dld.sl"
11630 shlibpath_var=SHLIB_PATH
11631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
11635 esac
11636 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11637 postinstall_cmds='chmod 555 $lib'
11640 irix5* | irix6* | nonstopux*)
11641 case $host_os in
11642 nonstopux*) version_type=nonstopux ;;
11644 if test "$lt_cv_prog_gnu_ld" = yes; then
11645 version_type=linux
11646 else
11647 version_type=irix
11648 fi ;;
11649 esac
11650 need_lib_prefix=no
11651 need_version=no
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11654 case $host_os in
11655 irix5* | nonstopux*)
11656 libsuff= shlibsuff=
11659 case $LD in # libtool.m4 will add one of these switches to LD
11660 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11661 libsuff= shlibsuff= libmagic=32-bit;;
11662 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11663 libsuff=32 shlibsuff=N32 libmagic=N32;;
11664 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11665 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11666 *) libsuff= shlibsuff= libmagic=never-match;;
11667 esac
11669 esac
11670 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11671 shlibpath_overrides_runpath=no
11672 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11673 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11674 hardcode_into_libs=yes
11677 # No shared lib support for Linux oldld, aout, or coff.
11678 linux*oldld* | linux*aout* | linux*coff*)
11679 dynamic_linker=no
11682 # This must be Linux ELF.
11683 linux*)
11684 version_type=linux
11685 need_lib_prefix=no
11686 need_version=no
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=no
11692 # This implies no fast_install, which is unacceptable.
11693 # Some rework will be needed to allow for fast_install
11694 # before this can be enabled.
11695 hardcode_into_libs=yes
11697 # Append ld.so.conf contents to the search path
11698 if test -f /etc/ld.so.conf; then
11699 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11700 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11703 # We used to test for /lib/ld.so.1 and disable shared libraries on
11704 # powerpc, because MkLinux only supported shared libraries with the
11705 # GNU dynamic linker. Since this was broken with cross compilers,
11706 # most powerpc-linux boxes support dynamic linking these days and
11707 # people can always --disable-shared, the test was removed, and we
11708 # assume the GNU/Linux dynamic linker is in use.
11709 dynamic_linker='GNU/Linux ld.so'
11712 knetbsd*-gnu)
11713 version_type=linux
11714 need_lib_prefix=no
11715 need_version=no
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=no
11720 hardcode_into_libs=yes
11721 dynamic_linker='GNU ld.so'
11724 netbsd*)
11725 version_type=sunos
11726 need_lib_prefix=no
11727 need_version=no
11728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11731 dynamic_linker='NetBSD (a.out) ld.so'
11732 else
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 dynamic_linker='NetBSD ld.elf_so'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=yes
11739 hardcode_into_libs=yes
11742 newsos6)
11743 version_type=linux
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath=yes
11749 nto-qnx*)
11750 version_type=linux
11751 need_lib_prefix=no
11752 need_version=no
11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754 soname_spec='${libname}${release}${shared_ext}$major'
11755 shlibpath_var=LD_LIBRARY_PATH
11756 shlibpath_overrides_runpath=yes
11759 openbsd*)
11760 version_type=sunos
11761 need_lib_prefix=no
11762 need_version=no
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11767 case $host_os in
11768 openbsd2.[89] | openbsd2.[89].*)
11769 shlibpath_overrides_runpath=no
11772 shlibpath_overrides_runpath=yes
11774 esac
11775 else
11776 shlibpath_overrides_runpath=yes
11780 os2*)
11781 libname_spec='$name'
11782 shrext_cmds=".dll"
11783 need_lib_prefix=no
11784 library_names_spec='$libname${shared_ext} $libname.a'
11785 dynamic_linker='OS/2 ld.exe'
11786 shlibpath_var=LIBPATH
11789 osf3* | osf4* | osf5*)
11790 version_type=osf
11791 need_lib_prefix=no
11792 need_version=no
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11800 sco3.2v5*)
11801 version_type=osf
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 shlibpath_var=LD_LIBRARY_PATH
11807 solaris*)
11808 version_type=linux
11809 need_lib_prefix=no
11810 need_version=no
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=yes
11815 hardcode_into_libs=yes
11816 # ldd complains unless libraries are executable
11817 postinstall_cmds='chmod +x $lib'
11820 sunos4*)
11821 version_type=sunos
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath=yes
11826 if test "$with_gnu_ld" = yes; then
11827 need_lib_prefix=no
11829 need_version=yes
11832 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11833 version_type=linux
11834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835 soname_spec='${libname}${release}${shared_ext}$major'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 case $host_vendor in
11838 sni)
11839 shlibpath_overrides_runpath=no
11840 need_lib_prefix=no
11841 export_dynamic_flag_spec='${wl}-Blargedynsym'
11842 runpath_var=LD_RUN_PATH
11844 siemens)
11845 need_lib_prefix=no
11847 motorola)
11848 need_lib_prefix=no
11849 need_version=no
11850 shlibpath_overrides_runpath=no
11851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11853 esac
11856 sysv4*MP*)
11857 if test -d /usr/nec ;then
11858 version_type=linux
11859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11860 soname_spec='$libname${shared_ext}.$major'
11861 shlibpath_var=LD_LIBRARY_PATH
11865 uts4*)
11866 version_type=linux
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868 soname_spec='${libname}${release}${shared_ext}$major'
11869 shlibpath_var=LD_LIBRARY_PATH
11873 dynamic_linker=no
11875 esac
11876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11877 echo "${ECHO_T}$dynamic_linker" >&6
11878 test "$dynamic_linker" = no && can_build_shared=no
11880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11882 hardcode_action_CXX=
11883 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11884 test -n "$runpath_var_CXX" || \
11885 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11887 # We can hardcode non-existant directories.
11888 if test "$hardcode_direct_CXX" != no &&
11889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11890 # have to relink, otherwise we might link with an installed library
11891 # when we should be linking with a yet-to-be-installed one
11892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11893 test "$hardcode_minus_L_CXX" != no; then
11894 # Linking always hardcodes the temporary library directory.
11895 hardcode_action_CXX=relink
11896 else
11897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11898 hardcode_action_CXX=immediate
11900 else
11901 # We cannot hardcode anything, or else we can only hardcode existing
11902 # directories.
11903 hardcode_action_CXX=unsupported
11905 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11906 echo "${ECHO_T}$hardcode_action_CXX" >&6
11908 if test "$hardcode_action_CXX" = relink; then
11909 # Fast installation is not supported
11910 enable_fast_install=no
11911 elif test "$shlibpath_overrides_runpath" = yes ||
11912 test "$enable_shared" = no; then
11913 # Fast installation is not necessary
11914 enable_fast_install=needless
11917 striplib=
11918 old_striplib=
11919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11921 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11924 echo "$as_me:$LINENO: result: yes" >&5
11925 echo "${ECHO_T}yes" >&6
11926 else
11927 # FIXME - insert some real tests, host_os isn't really good enough
11928 case $host_os in
11929 darwin*)
11930 if test -n "$STRIP" ; then
11931 striplib="$STRIP -x"
11932 echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11934 else
11935 echo "$as_me:$LINENO: result: no" >&5
11936 echo "${ECHO_T}no" >&6
11940 echo "$as_me:$LINENO: result: no" >&5
11941 echo "${ECHO_T}no" >&6
11943 esac
11946 if test "x$enable_dlopen" != xyes; then
11947 enable_dlopen=unknown
11948 enable_dlopen_self=unknown
11949 enable_dlopen_self_static=unknown
11950 else
11951 lt_cv_dlopen=no
11952 lt_cv_dlopen_libs=
11954 case $host_os in
11955 beos*)
11956 lt_cv_dlopen="load_add_on"
11957 lt_cv_dlopen_libs=
11958 lt_cv_dlopen_self=yes
11961 mingw* | pw32*)
11962 lt_cv_dlopen="LoadLibrary"
11963 lt_cv_dlopen_libs=
11966 cygwin*)
11967 lt_cv_dlopen="dlopen"
11968 lt_cv_dlopen_libs=
11971 darwin*)
11972 # if libdl is installed we need to link against it
11973 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-ldl $LIBS"
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 /* Override any gcc2 internal prototype to avoid an error. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 /* We use char because int might match the return type of a gcc2
11992 builtin and then its argument prototype would still apply. */
11993 char dlopen ();
11995 main ()
11997 dlopen ();
11999 return 0;
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004 (eval $ac_link) 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_cxx_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest$ac_exeext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_cv_lib_dl_dlopen=yes
12025 else
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 ac_cv_lib_dl_dlopen=no
12031 rm -f conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12035 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12036 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12037 if test $ac_cv_lib_dl_dlopen = yes; then
12038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12039 else
12041 lt_cv_dlopen="dyld"
12042 lt_cv_dlopen_libs=
12043 lt_cv_dlopen_self=yes
12050 echo "$as_me:$LINENO: checking for shl_load" >&5
12051 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12052 if test "${ac_cv_func_shl_load+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h. */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12063 #define shl_load innocuous_shl_load
12065 /* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char shl_load (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12070 #ifdef __STDC__
12071 # include <limits.h>
12072 #else
12073 # include <assert.h>
12074 #endif
12076 #undef shl_load
12078 /* Override any gcc2 internal prototype to avoid an error. */
12079 #ifdef __cplusplus
12080 extern "C"
12082 #endif
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12085 char shl_load ();
12086 /* The GNU C library defines this for functions which it implements
12087 to always fail with ENOSYS. Some functions are actually named
12088 something starting with __ and the normal name is an alias. */
12089 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12090 choke me
12091 #else
12092 char (*f) () = shl_load;
12093 #endif
12094 #ifdef __cplusplus
12096 #endif
12099 main ()
12101 return f != shl_load;
12103 return 0;
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_cxx_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_cv_func_shl_load=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 ac_cv_func_shl_load=no
12135 rm -f conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12138 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12139 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12140 if test $ac_cv_func_shl_load = yes; then
12141 lt_cv_dlopen="shl_load"
12142 else
12143 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12144 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12145 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148 ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-ldld $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h. */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any gcc2 internal prototype to avoid an error. */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12163 char shl_load ();
12165 main ()
12167 shl_load ();
12169 return 0;
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>conftest.er1
12175 ac_status=$?
12176 grep -v '^ *+' conftest.er1 >conftest.err
12177 rm -f conftest.er1
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -z "$ac_cxx_werror_flag"
12182 || test ! -s conftest.err'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_dld_shl_load=yes
12195 else
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_lib_dld_shl_load=no
12201 rm -f conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12206 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12207 if test $ac_cv_lib_dld_shl_load = yes; then
12208 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12209 else
12210 echo "$as_me:$LINENO: checking for dlopen" >&5
12211 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12212 if test "${ac_cv_func_dlopen+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12223 #define dlopen innocuous_dlopen
12225 /* System header to define __stub macros and hopefully few prototypes,
12226 which can conflict with char dlopen (); below.
12227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12228 <limits.h> exists even on freestanding compilers. */
12230 #ifdef __STDC__
12231 # include <limits.h>
12232 #else
12233 # include <assert.h>
12234 #endif
12236 #undef dlopen
12238 /* Override any gcc2 internal prototype to avoid an error. */
12239 #ifdef __cplusplus
12240 extern "C"
12242 #endif
12243 /* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12245 char dlopen ();
12246 /* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12250 choke me
12251 #else
12252 char (*f) () = dlopen;
12253 #endif
12254 #ifdef __cplusplus
12256 #endif
12259 main ()
12261 return f != dlopen;
12263 return 0;
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_cxx_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_func_dlopen=yes
12289 else
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ac_cv_func_dlopen=no
12295 rm -f conftest.err conftest.$ac_objext \
12296 conftest$ac_exeext conftest.$ac_ext
12298 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12299 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12300 if test $ac_cv_func_dlopen = yes; then
12301 lt_cv_dlopen="dlopen"
12302 else
12303 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12304 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12305 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308 ac_check_lib_save_LIBS=$LIBS
12309 LIBS="-ldl $LIBS"
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12317 /* Override any gcc2 internal prototype to avoid an error. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 /* We use char because int might match the return type of a gcc2
12322 builtin and then its argument prototype would still apply. */
12323 char dlopen ();
12325 main ()
12327 dlopen ();
12329 return 0;
12331 _ACEOF
12332 rm -f conftest.$ac_objext conftest$ac_exeext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>conftest.er1
12335 ac_status=$?
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try='test -z "$ac_cxx_werror_flag"
12342 || test ! -s conftest.err'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_lib_dl_dlopen=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_lib_dl_dlopen=no
12361 rm -f conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12366 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12367 if test $ac_cv_lib_dl_dlopen = yes; then
12368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12369 else
12370 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12371 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12372 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375 ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-lsvld $LIBS"
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12384 /* Override any gcc2 internal prototype to avoid an error. */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 /* We use char because int might match the return type of a gcc2
12389 builtin and then its argument prototype would still apply. */
12390 char dlopen ();
12392 main ()
12394 dlopen ();
12396 return 0;
12398 _ACEOF
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_cxx_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest$ac_exeext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_cv_lib_svld_dlopen=yes
12422 else
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 ac_cv_lib_svld_dlopen=no
12428 rm -f conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430 LIBS=$ac_check_lib_save_LIBS
12432 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12433 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12434 if test $ac_cv_lib_svld_dlopen = yes; then
12435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12436 else
12437 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12438 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12439 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442 ac_check_lib_save_LIBS=$LIBS
12443 LIBS="-ldld $LIBS"
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 /* Override any gcc2 internal prototype to avoid an error. */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 /* We use char because int might match the return type of a gcc2
12456 builtin and then its argument prototype would still apply. */
12457 char dld_link ();
12459 main ()
12461 dld_link ();
12463 return 0;
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_cxx_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_lib_dld_dld_link=yes
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_cv_lib_dld_dld_link=no
12495 rm -f conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 LIBS=$ac_check_lib_save_LIBS
12499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12500 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12501 if test $ac_cv_lib_dld_dld_link = yes; then
12502 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12521 esac
12523 if test "x$lt_cv_dlopen" != xno; then
12524 enable_dlopen=yes
12525 else
12526 enable_dlopen=no
12529 case $lt_cv_dlopen in
12530 dlopen)
12531 save_CPPFLAGS="$CPPFLAGS"
12532 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12534 save_LDFLAGS="$LDFLAGS"
12535 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12537 save_LIBS="$LIBS"
12538 LIBS="$lt_cv_dlopen_libs $LIBS"
12540 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12541 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12542 if test "${lt_cv_dlopen_self+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 else
12545 if test "$cross_compiling" = yes; then :
12546 lt_cv_dlopen_self=cross
12547 else
12548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12549 lt_status=$lt_dlunknown
12550 cat > conftest.$ac_ext <<EOF
12551 #line 12551 "configure"
12552 #include "confdefs.h"
12554 #if HAVE_DLFCN_H
12555 #include <dlfcn.h>
12556 #endif
12558 #include <stdio.h>
12560 #ifdef RTLD_GLOBAL
12561 # define LT_DLGLOBAL RTLD_GLOBAL
12562 #else
12563 # ifdef DL_GLOBAL
12564 # define LT_DLGLOBAL DL_GLOBAL
12565 # else
12566 # define LT_DLGLOBAL 0
12567 # endif
12568 #endif
12570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12571 find out it does not work in some platform. */
12572 #ifndef LT_DLLAZY_OR_NOW
12573 # ifdef RTLD_LAZY
12574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12575 # else
12576 # ifdef DL_LAZY
12577 # define LT_DLLAZY_OR_NOW DL_LAZY
12578 # else
12579 # ifdef RTLD_NOW
12580 # define LT_DLLAZY_OR_NOW RTLD_NOW
12581 # else
12582 # ifdef DL_NOW
12583 # define LT_DLLAZY_OR_NOW DL_NOW
12584 # else
12585 # define LT_DLLAZY_OR_NOW 0
12586 # endif
12587 # endif
12588 # endif
12589 # endif
12590 #endif
12592 #ifdef __cplusplus
12593 extern "C" void exit (int);
12594 #endif
12596 void fnord() { int i=42;}
12597 int main ()
12599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12600 int status = $lt_dlunknown;
12602 if (self)
12604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12606 /* dlclose (self); */
12609 exit (status);
12612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613 (eval $ac_link) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12617 (./conftest; exit; ) 2>/dev/null
12618 lt_status=$?
12619 case x$lt_status in
12620 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12621 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12622 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12623 esac
12624 else :
12625 # compilation failed
12626 lt_cv_dlopen_self=no
12629 rm -fr conftest*
12633 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12634 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12636 if test "x$lt_cv_dlopen_self" = xyes; then
12637 LDFLAGS="$LDFLAGS $link_static_flag"
12638 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12639 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12640 if test "${lt_cv_dlopen_self_static+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643 if test "$cross_compiling" = yes; then :
12644 lt_cv_dlopen_self_static=cross
12645 else
12646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12647 lt_status=$lt_dlunknown
12648 cat > conftest.$ac_ext <<EOF
12649 #line 12649 "configure"
12650 #include "confdefs.h"
12652 #if HAVE_DLFCN_H
12653 #include <dlfcn.h>
12654 #endif
12656 #include <stdio.h>
12658 #ifdef RTLD_GLOBAL
12659 # define LT_DLGLOBAL RTLD_GLOBAL
12660 #else
12661 # ifdef DL_GLOBAL
12662 # define LT_DLGLOBAL DL_GLOBAL
12663 # else
12664 # define LT_DLGLOBAL 0
12665 # endif
12666 #endif
12668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12669 find out it does not work in some platform. */
12670 #ifndef LT_DLLAZY_OR_NOW
12671 # ifdef RTLD_LAZY
12672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12673 # else
12674 # ifdef DL_LAZY
12675 # define LT_DLLAZY_OR_NOW DL_LAZY
12676 # else
12677 # ifdef RTLD_NOW
12678 # define LT_DLLAZY_OR_NOW RTLD_NOW
12679 # else
12680 # ifdef DL_NOW
12681 # define LT_DLLAZY_OR_NOW DL_NOW
12682 # else
12683 # define LT_DLLAZY_OR_NOW 0
12684 # endif
12685 # endif
12686 # endif
12687 # endif
12688 #endif
12690 #ifdef __cplusplus
12691 extern "C" void exit (int);
12692 #endif
12694 void fnord() { int i=42;}
12695 int main ()
12697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12698 int status = $lt_dlunknown;
12700 if (self)
12702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12704 /* dlclose (self); */
12707 exit (status);
12710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12711 (eval $ac_link) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12715 (./conftest; exit; ) 2>/dev/null
12716 lt_status=$?
12717 case x$lt_status in
12718 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12719 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12720 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12721 esac
12722 else :
12723 # compilation failed
12724 lt_cv_dlopen_self_static=no
12727 rm -fr conftest*
12731 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12732 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12735 CPPFLAGS="$save_CPPFLAGS"
12736 LDFLAGS="$save_LDFLAGS"
12737 LIBS="$save_LIBS"
12739 esac
12741 case $lt_cv_dlopen_self in
12742 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12743 *) enable_dlopen_self=unknown ;;
12744 esac
12746 case $lt_cv_dlopen_self_static in
12747 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12748 *) enable_dlopen_self_static=unknown ;;
12749 esac
12753 # The else clause should only fire when bootstrapping the
12754 # libtool distribution, otherwise you forgot to ship ltmain.sh
12755 # with your package, and you will get complaints that there are
12756 # no rules to generate ltmain.sh.
12757 if test -f "$ltmain"; then
12758 # See if we are running on zsh, and set the options which allow our commands through
12759 # without removal of \ escapes.
12760 if test -n "${ZSH_VERSION+set}" ; then
12761 setopt NO_GLOB_SUBST
12763 # Now quote all the things that may contain metacharacters while being
12764 # careful not to overquote the AC_SUBSTed values. We take copies of the
12765 # variables and quote the copies for generation of the libtool script.
12766 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12767 SED SHELL STRIP \
12768 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12769 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12770 deplibs_check_method reload_flag reload_cmds need_locks \
12771 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12772 lt_cv_sys_global_symbol_to_c_name_address \
12773 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12774 old_postinstall_cmds old_postuninstall_cmds \
12775 compiler_CXX \
12776 CC_CXX \
12777 LD_CXX \
12778 lt_prog_compiler_wl_CXX \
12779 lt_prog_compiler_pic_CXX \
12780 lt_prog_compiler_static_CXX \
12781 lt_prog_compiler_no_builtin_flag_CXX \
12782 export_dynamic_flag_spec_CXX \
12783 thread_safe_flag_spec_CXX \
12784 whole_archive_flag_spec_CXX \
12785 enable_shared_with_static_runtimes_CXX \
12786 old_archive_cmds_CXX \
12787 old_archive_from_new_cmds_CXX \
12788 predep_objects_CXX \
12789 postdep_objects_CXX \
12790 predeps_CXX \
12791 postdeps_CXX \
12792 compiler_lib_search_path_CXX \
12793 archive_cmds_CXX \
12794 archive_expsym_cmds_CXX \
12795 postinstall_cmds_CXX \
12796 postuninstall_cmds_CXX \
12797 old_archive_from_expsyms_cmds_CXX \
12798 allow_undefined_flag_CXX \
12799 no_undefined_flag_CXX \
12800 export_symbols_cmds_CXX \
12801 hardcode_libdir_flag_spec_CXX \
12802 hardcode_libdir_flag_spec_ld_CXX \
12803 hardcode_libdir_separator_CXX \
12804 hardcode_automatic_CXX \
12805 module_cmds_CXX \
12806 module_expsym_cmds_CXX \
12807 lt_cv_prog_compiler_c_o_CXX \
12808 exclude_expsyms_CXX \
12809 include_expsyms_CXX; do
12811 case $var in
12812 old_archive_cmds_CXX | \
12813 old_archive_from_new_cmds_CXX | \
12814 archive_cmds_CXX | \
12815 archive_expsym_cmds_CXX | \
12816 module_cmds_CXX | \
12817 module_expsym_cmds_CXX | \
12818 old_archive_from_expsyms_cmds_CXX | \
12819 export_symbols_cmds_CXX | \
12820 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12821 postinstall_cmds | postuninstall_cmds | \
12822 old_postinstall_cmds | old_postuninstall_cmds | \
12823 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12824 # Double-quote double-evaled strings.
12825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12830 esac
12831 done
12833 case $lt_echo in
12834 *'\$0 --fallback-echo"')
12835 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12837 esac
12839 cfgfile="$ofile"
12841 cat <<__EOF__ >> "$cfgfile"
12842 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12844 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12846 # Shell to use when invoking shell scripts.
12847 SHELL=$lt_SHELL
12849 # Whether or not to build shared libraries.
12850 build_libtool_libs=$enable_shared
12852 # Whether or not to build static libraries.
12853 build_old_libs=$enable_static
12855 # Whether or not to add -lc for building shared libraries.
12856 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12858 # Whether or not to disallow shared libs when runtime libs are static
12859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12861 # Whether or not to optimize for fast installation.
12862 fast_install=$enable_fast_install
12864 # The host system.
12865 host_alias=$host_alias
12866 host=$host
12867 host_os=$host_os
12869 # The build system.
12870 build_alias=$build_alias
12871 build=$build
12872 build_os=$build_os
12874 # An echo program that does not interpret backslashes.
12875 echo=$lt_echo
12877 # The archiver.
12878 AR=$lt_AR
12879 AR_FLAGS=$lt_AR_FLAGS
12881 # A C compiler.
12882 LTCC=$lt_LTCC
12884 # A language-specific compiler.
12885 CC=$lt_compiler_CXX
12887 # Is the compiler the GNU C compiler?
12888 with_gcc=$GCC_CXX
12890 # An ERE matcher.
12891 EGREP=$lt_EGREP
12893 # The linker used to build libraries.
12894 LD=$lt_LD_CXX
12896 # Whether we need hard or soft links.
12897 LN_S=$lt_LN_S
12899 # A BSD-compatible nm program.
12900 NM=$lt_NM
12902 # A symbol stripping program
12903 STRIP=$lt_STRIP
12905 # Used to examine libraries when file_magic_cmd begins "file"
12906 MAGIC_CMD=$MAGIC_CMD
12908 # Used on cygwin: DLL creation program.
12909 DLLTOOL="$DLLTOOL"
12911 # Used on cygwin: object dumper.
12912 OBJDUMP="$OBJDUMP"
12914 # Used on cygwin: assembler.
12915 AS="$AS"
12917 # The name of the directory that contains temporary libtool files.
12918 objdir=$objdir
12920 # How to create reloadable object files.
12921 reload_flag=$lt_reload_flag
12922 reload_cmds=$lt_reload_cmds
12924 # How to pass a linker flag through the compiler.
12925 wl=$lt_lt_prog_compiler_wl_CXX
12927 # Object file suffix (normally "o").
12928 objext="$ac_objext"
12930 # Old archive suffix (normally "a").
12931 libext="$libext"
12933 # Shared library suffix (normally ".so").
12934 shrext_cmds='$shrext_cmds'
12936 # Executable file suffix (normally "").
12937 exeext="$exeext"
12939 # Additional compiler flags for building library objects.
12940 pic_flag=$lt_lt_prog_compiler_pic_CXX
12941 pic_mode=$pic_mode
12943 # What is the maximum length of a command?
12944 max_cmd_len=$lt_cv_sys_max_cmd_len
12946 # Does compiler simultaneously support -c and -o options?
12947 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12949 # Must we lock files when doing compilation ?
12950 need_locks=$lt_need_locks
12952 # Do we need the lib prefix for modules?
12953 need_lib_prefix=$need_lib_prefix
12955 # Do we need a version for libraries?
12956 need_version=$need_version
12958 # Whether dlopen is supported.
12959 dlopen_support=$enable_dlopen
12961 # Whether dlopen of programs is supported.
12962 dlopen_self=$enable_dlopen_self
12964 # Whether dlopen of statically linked programs is supported.
12965 dlopen_self_static=$enable_dlopen_self_static
12967 # Compiler flag to prevent dynamic linking.
12968 link_static_flag=$lt_lt_prog_compiler_static_CXX
12970 # Compiler flag to turn off builtin functions.
12971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12973 # Compiler flag to allow reflexive dlopens.
12974 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12976 # Compiler flag to generate shared objects directly from archives.
12977 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12979 # Compiler flag to generate thread-safe objects.
12980 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12982 # Library versioning type.
12983 version_type=$version_type
12985 # Format of library name prefix.
12986 libname_spec=$lt_libname_spec
12988 # List of archive names. First name is the real one, the rest are links.
12989 # The last name is the one that the linker finds with -lNAME.
12990 library_names_spec=$lt_library_names_spec
12992 # The coded name of the library, if different from the real name.
12993 soname_spec=$lt_soname_spec
12995 # Commands used to build and install an old-style archive.
12996 RANLIB=$lt_RANLIB
12997 old_archive_cmds=$lt_old_archive_cmds_CXX
12998 old_postinstall_cmds=$lt_old_postinstall_cmds
12999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13001 # Create an old-style archive from a shared archive.
13002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13004 # Create a temporary old-style archive to link instead of a shared archive.
13005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13007 # Commands used to build and install a shared archive.
13008 archive_cmds=$lt_archive_cmds_CXX
13009 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13010 postinstall_cmds=$lt_postinstall_cmds
13011 postuninstall_cmds=$lt_postuninstall_cmds
13013 # Commands used to build a loadable module (assumed same as above if empty)
13014 module_cmds=$lt_module_cmds_CXX
13015 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13017 # Commands to strip libraries.
13018 old_striplib=$lt_old_striplib
13019 striplib=$lt_striplib
13021 # Dependencies to place before the objects being linked to create a
13022 # shared library.
13023 predep_objects=$lt_predep_objects_CXX
13025 # Dependencies to place after the objects being linked to create a
13026 # shared library.
13027 postdep_objects=$lt_postdep_objects_CXX
13029 # Dependencies to place before the objects being linked to create a
13030 # shared library.
13031 predeps=$lt_predeps_CXX
13033 # Dependencies to place after the objects being linked to create a
13034 # shared library.
13035 postdeps=$lt_postdeps_CXX
13037 # The library search path used internally by the compiler when linking
13038 # a shared library.
13039 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13041 # Method to check whether dependent libraries are shared objects.
13042 deplibs_check_method=$lt_deplibs_check_method
13044 # Command to use when deplibs_check_method == file_magic.
13045 file_magic_cmd=$lt_file_magic_cmd
13047 # Flag that allows shared libraries with undefined symbols to be built.
13048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13050 # Flag that forces no undefined symbols.
13051 no_undefined_flag=$lt_no_undefined_flag_CXX
13053 # Commands used to finish a libtool library installation in a directory.
13054 finish_cmds=$lt_finish_cmds
13056 # Same as above, but a single script fragment to be evaled but not shown.
13057 finish_eval=$lt_finish_eval
13059 # Take the output of nm and produce a listing of raw symbols and C names.
13060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13062 # Transform the output of nm in a proper C declaration
13063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13065 # Transform the output of nm in a C name address pair
13066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13068 # This is the shared library runtime path variable.
13069 runpath_var=$runpath_var
13071 # This is the shared library path variable.
13072 shlibpath_var=$shlibpath_var
13074 # Is shlibpath searched before the hard-coded library search path?
13075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13077 # How to hardcode a shared library path into an executable.
13078 hardcode_action=$hardcode_action_CXX
13080 # Whether we should hardcode library paths into libraries.
13081 hardcode_into_libs=$hardcode_into_libs
13083 # Flag to hardcode \$libdir into a binary during linking.
13084 # This must work even if \$libdir does not exist.
13085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13087 # If ld is used when linking, flag to hardcode \$libdir into
13088 # a binary during linking. This must work even if \$libdir does
13089 # not exist.
13090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13092 # Whether we need a single -rpath flag with a separated argument.
13093 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13095 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13096 # resulting binary.
13097 hardcode_direct=$hardcode_direct_CXX
13099 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13100 # resulting binary.
13101 hardcode_minus_L=$hardcode_minus_L_CXX
13103 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13104 # the resulting binary.
13105 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13107 # Set to yes if building a shared library automatically hardcodes DIR into the library
13108 # and all subsequent libraries and executables linked against it.
13109 hardcode_automatic=$hardcode_automatic_CXX
13111 # Variables whose values should be saved in libtool wrapper scripts and
13112 # restored at relink time.
13113 variables_saved_for_relink="$variables_saved_for_relink"
13115 # Whether libtool must link a program against all its dependency libraries.
13116 link_all_deplibs=$link_all_deplibs_CXX
13118 # Compile-time system search path for libraries
13119 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13121 # Run-time system search path for libraries
13122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13124 # Fix the shell variable \$srcfile for the compiler.
13125 fix_srcfile_path="$fix_srcfile_path_CXX"
13127 # Set to yes if exported symbols are required.
13128 always_export_symbols=$always_export_symbols_CXX
13130 # The commands to list exported symbols.
13131 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13133 # The commands to extract the exported symbol list from a shared archive.
13134 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13136 # Symbols that should not be listed in the preloaded symbols.
13137 exclude_expsyms=$lt_exclude_expsyms_CXX
13139 # Symbols that must always be exported.
13140 include_expsyms=$lt_include_expsyms_CXX
13142 # ### END LIBTOOL TAG CONFIG: $tagname
13144 __EOF__
13147 else
13148 # If there is no Makefile yet, we rely on a make rule to execute
13149 # `config.status --recheck' to rerun these tests and create the
13150 # libtool script then.
13151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13152 if test -f "$ltmain_in"; then
13153 test -f Makefile && make "$ltmain"
13158 ac_ext=c
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164 CC=$lt_save_CC
13165 LDCXX=$LD
13166 LD=$lt_save_LD
13167 GCC=$lt_save_GCC
13168 with_gnu_ldcxx=$with_gnu_ld
13169 with_gnu_ld=$lt_save_with_gnu_ld
13170 lt_cv_path_LDCXX=$lt_cv_path_LD
13171 lt_cv_path_LD=$lt_save_path_LD
13172 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13173 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13175 else
13176 tagname=""
13180 F77)
13181 if test -n "$F77" && test "X$F77" != "Xno"; then
13183 ac_ext=f
13184 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13185 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13189 archive_cmds_need_lc_F77=no
13190 allow_undefined_flag_F77=
13191 always_export_symbols_F77=no
13192 archive_expsym_cmds_F77=
13193 export_dynamic_flag_spec_F77=
13194 hardcode_direct_F77=no
13195 hardcode_libdir_flag_spec_F77=
13196 hardcode_libdir_flag_spec_ld_F77=
13197 hardcode_libdir_separator_F77=
13198 hardcode_minus_L_F77=no
13199 hardcode_automatic_F77=no
13200 module_cmds_F77=
13201 module_expsym_cmds_F77=
13202 link_all_deplibs_F77=unknown
13203 old_archive_cmds_F77=$old_archive_cmds
13204 no_undefined_flag_F77=
13205 whole_archive_flag_spec_F77=
13206 enable_shared_with_static_runtimes_F77=no
13208 # Source file extension for f77 test sources.
13209 ac_ext=f
13211 # Object file extension for compiled f77 test sources.
13212 objext=o
13213 objext_F77=$objext
13215 # Code to be used in simple compile tests
13216 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13218 # Code to be used in simple link tests
13219 lt_simple_link_test_code=" program t\n end\n"
13221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13223 # If no C compiler was specified, use CC.
13224 LTCC=${LTCC-"$CC"}
13226 # Allow CC to be a program name with arguments.
13227 compiler=$CC
13230 # Allow CC to be a program name with arguments.
13231 lt_save_CC="$CC"
13232 CC=${F77-"f77"}
13233 compiler=$CC
13234 compiler_F77=$CC
13235 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13237 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13238 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13239 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13240 echo "${ECHO_T}$can_build_shared" >&6
13242 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13243 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13244 test "$can_build_shared" = "no" && enable_shared=no
13246 # On AIX, shared libraries and static libraries use the same namespace, and
13247 # are all built from PIC.
13248 case "$host_os" in
13249 aix3*)
13250 test "$enable_shared" = yes && enable_static=no
13251 if test -n "$RANLIB"; then
13252 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13253 postinstall_cmds='$RANLIB $lib'
13256 aix4* | aix5*)
13257 test "$enable_shared" = yes && enable_static=no
13259 esac
13260 echo "$as_me:$LINENO: result: $enable_shared" >&5
13261 echo "${ECHO_T}$enable_shared" >&6
13263 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13264 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13265 # Make sure either enable_shared or enable_static is yes.
13266 test "$enable_shared" = yes || enable_static=yes
13267 echo "$as_me:$LINENO: result: $enable_static" >&5
13268 echo "${ECHO_T}$enable_static" >&6
13270 test "$ld_shlibs_F77" = no && can_build_shared=no
13272 GCC_F77="$G77"
13273 LD_F77="$LD"
13275 lt_prog_compiler_wl_F77=
13276 lt_prog_compiler_pic_F77=
13277 lt_prog_compiler_static_F77=
13279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13282 if test "$GCC" = yes; then
13283 lt_prog_compiler_wl_F77='-Wl,'
13284 lt_prog_compiler_static_F77='-static'
13286 case $host_os in
13287 aix*)
13288 # All AIX code is PIC.
13289 if test "$host_cpu" = ia64; then
13290 # AIX 5 now supports IA64 processor
13291 lt_prog_compiler_static_F77='-Bstatic'
13295 amigaos*)
13296 # FIXME: we need at least 68020 code to build shared libraries, but
13297 # adding the `-m68020' flag to GCC prevents building anything better,
13298 # like `-m68040'.
13299 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13302 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13303 # PIC is the default for these OSes.
13306 mingw* | pw32* | os2*)
13307 # This hack is so that the source file can tell whether it is being
13308 # built for inclusion in a dll (and should export symbols for example).
13309 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13312 darwin* | rhapsody*)
13313 # PIC is the default on this platform
13314 # Common symbols not allowed in MH_DYLIB files
13315 lt_prog_compiler_pic_F77='-fno-common'
13318 msdosdjgpp*)
13319 # Just because we use GCC doesn't mean we suddenly get shared libraries
13320 # on systems that don't support them.
13321 lt_prog_compiler_can_build_shared_F77=no
13322 enable_shared=no
13325 sysv4*MP*)
13326 if test -d /usr/nec; then
13327 lt_prog_compiler_pic_F77=-Kconform_pic
13331 hpux*)
13332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13333 # not for PA HP-UX.
13334 case "$host_cpu" in
13335 hppa*64*|ia64*)
13336 # +Z the default
13339 lt_prog_compiler_pic_F77='-fPIC'
13341 esac
13345 lt_prog_compiler_pic_F77='-fPIC'
13347 esac
13348 else
13349 # PORTME Check for flag to pass linker flags through the system compiler.
13350 case $host_os in
13351 aix*)
13352 lt_prog_compiler_wl_F77='-Wl,'
13353 if test "$host_cpu" = ia64; then
13354 # AIX 5 now supports IA64 processor
13355 lt_prog_compiler_static_F77='-Bstatic'
13356 else
13357 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13360 darwin*)
13361 # PIC is the default on this platform
13362 # Common symbols not allowed in MH_DYLIB files
13363 case "$cc_basename" in
13364 xlc*)
13365 lt_prog_compiler_pic_F77='-qnocommon'
13366 lt_prog_compiler_wl_F77='-Wl,'
13368 esac
13371 mingw* | pw32* | os2*)
13372 # This hack is so that the source file can tell whether it is being
13373 # built for inclusion in a dll (and should export symbols for example).
13374 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13377 hpux9* | hpux10* | hpux11*)
13378 lt_prog_compiler_wl_F77='-Wl,'
13379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13380 # not for PA HP-UX.
13381 case "$host_cpu" in
13382 hppa*64*|ia64*)
13383 # +Z the default
13386 lt_prog_compiler_pic_F77='+Z'
13388 esac
13389 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13390 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13393 irix5* | irix6* | nonstopux*)
13394 lt_prog_compiler_wl_F77='-Wl,'
13395 # PIC (with -KPIC) is the default.
13396 lt_prog_compiler_static_F77='-non_shared'
13399 newsos6)
13400 lt_prog_compiler_pic_F77='-KPIC'
13401 lt_prog_compiler_static_F77='-Bstatic'
13404 linux*)
13405 case $cc_basename in
13406 icc* | ecc*)
13407 lt_prog_compiler_wl_F77='-Wl,'
13408 lt_prog_compiler_pic_F77='-KPIC'
13409 lt_prog_compiler_static_F77='-static'
13411 pgcc | pgf77 | pgf90)
13412 # Portland Group compilers (*not* the Pentium gcc compiler,
13413 # which looks to be a dead project)
13414 lt_prog_compiler_wl_F77='-Wl,'
13415 lt_prog_compiler_pic_F77='-fpic'
13416 lt_prog_compiler_static_F77='-static'
13418 ccc*)
13419 lt_prog_compiler_wl_F77='-Wl,'
13420 # All Alpha code is PIC.
13421 lt_prog_compiler_static_F77='-non_shared'
13423 como)
13424 lt_prog_compiler_wl_F77='-lopt='
13426 esac
13429 osf3* | osf4* | osf5*)
13430 lt_prog_compiler_wl_F77='-Wl,'
13431 # All OSF/1 code is PIC.
13432 lt_prog_compiler_static_F77='-non_shared'
13435 sco3.2v5*)
13436 lt_prog_compiler_pic_F77='-Kpic'
13437 lt_prog_compiler_static_F77='-dn'
13440 solaris*)
13441 lt_prog_compiler_wl_F77='-Wl,'
13442 lt_prog_compiler_pic_F77='-KPIC'
13443 lt_prog_compiler_static_F77='-Bstatic'
13446 sunos4*)
13447 lt_prog_compiler_wl_F77='-Qoption ld '
13448 lt_prog_compiler_pic_F77='-PIC'
13449 lt_prog_compiler_static_F77='-Bstatic'
13452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13453 lt_prog_compiler_wl_F77='-Wl,'
13454 lt_prog_compiler_pic_F77='-KPIC'
13455 lt_prog_compiler_static_F77='-Bstatic'
13458 sysv4*MP*)
13459 if test -d /usr/nec ;then
13460 lt_prog_compiler_pic_F77='-Kconform_pic'
13461 lt_prog_compiler_static_F77='-Bstatic'
13465 unicos*)
13466 lt_prog_compiler_wl_F77='-Wl,'
13467 lt_prog_compiler_can_build_shared_F77=no
13470 uts4*)
13471 lt_prog_compiler_pic_F77='-pic'
13472 lt_prog_compiler_static_F77='-Bstatic'
13476 lt_prog_compiler_can_build_shared_F77=no
13478 esac
13481 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13482 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13485 # Check to make sure the PIC flag actually works.
13487 if test -n "$lt_prog_compiler_pic_F77"; then
13489 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13491 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 lt_prog_compiler_pic_works_F77=no
13495 ac_outfile=conftest.$ac_objext
13496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13497 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13498 # Insert the option either (1) after the last *FLAGS variable, or
13499 # (2) before a word containing "conftest.", or (3) at the end.
13500 # Note that $ac_compile itself does not contain backslashes and begins
13501 # with a dollar sign (not a hyphen), so the echo should work correctly.
13502 # The option is referenced via a variable to avoid confusing sed.
13503 lt_compile=`echo "$ac_compile" | $SED \
13504 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13506 -e 's:$: $lt_compiler_flag:'`
13507 (eval echo "\"\$as_me:13507: $lt_compile\"" >&5)
13508 (eval "$lt_compile" 2>conftest.err)
13509 ac_status=$?
13510 cat conftest.err >&5
13511 echo "$as_me:13511: \$? = $ac_status" >&5
13512 if (exit $ac_status) && test -s "$ac_outfile"; then
13513 # The compiler can only warn and ignore the option if not recognized
13514 # So say no if there are warnings
13515 if test ! -s conftest.err; then
13516 lt_prog_compiler_pic_works_F77=yes
13519 $rm conftest*
13522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13523 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13525 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13526 case $lt_prog_compiler_pic_F77 in
13527 "" | " "*) ;;
13528 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13529 esac
13530 else
13531 lt_prog_compiler_pic_F77=
13532 lt_prog_compiler_can_build_shared_F77=no
13536 case "$host_os" in
13537 # For platforms which do not support PIC, -DPIC is meaningless:
13538 *djgpp*)
13539 lt_prog_compiler_pic_F77=
13542 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13544 esac
13546 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13548 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551 lt_cv_prog_compiler_c_o_F77=no
13552 $rm -r conftest 2>/dev/null
13553 mkdir conftest
13554 cd conftest
13555 mkdir out
13556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13558 lt_compiler_flag="-o out/conftest2.$ac_objext"
13559 # Insert the option either (1) after the last *FLAGS variable, or
13560 # (2) before a word containing "conftest.", or (3) at the end.
13561 # Note that $ac_compile itself does not contain backslashes and begins
13562 # with a dollar sign (not a hyphen), so the echo should work correctly.
13563 lt_compile=`echo "$ac_compile" | $SED \
13564 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13566 -e 's:$: $lt_compiler_flag:'`
13567 (eval echo "\"\$as_me:13567: $lt_compile\"" >&5)
13568 (eval "$lt_compile" 2>out/conftest.err)
13569 ac_status=$?
13570 cat out/conftest.err >&5
13571 echo "$as_me:13571: \$? = $ac_status" >&5
13572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13573 then
13574 # The compiler can only warn and ignore the option if not recognized
13575 # So say no if there are warnings
13576 if test ! -s out/conftest.err; then
13577 lt_cv_prog_compiler_c_o_F77=yes
13580 chmod u+w .
13581 $rm conftest*
13582 # SGI C++ compiler will create directory out/ii_files/ for
13583 # template instantiation
13584 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13585 $rm out/* && rmdir out
13586 cd ..
13587 rmdir conftest
13588 $rm conftest*
13591 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13592 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13595 hard_links="nottested"
13596 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13597 # do not overwrite the value of need_locks provided by the user
13598 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13599 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13600 hard_links=yes
13601 $rm conftest*
13602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13603 touch conftest.a
13604 ln conftest.a conftest.b 2>&5 || hard_links=no
13605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13606 echo "$as_me:$LINENO: result: $hard_links" >&5
13607 echo "${ECHO_T}$hard_links" >&6
13608 if test "$hard_links" = no; then
13609 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13610 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13611 need_locks=warn
13613 else
13614 need_locks=no
13617 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13618 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13620 runpath_var=
13621 allow_undefined_flag_F77=
13622 enable_shared_with_static_runtimes_F77=no
13623 archive_cmds_F77=
13624 archive_expsym_cmds_F77=
13625 old_archive_From_new_cmds_F77=
13626 old_archive_from_expsyms_cmds_F77=
13627 export_dynamic_flag_spec_F77=
13628 whole_archive_flag_spec_F77=
13629 thread_safe_flag_spec_F77=
13630 hardcode_libdir_flag_spec_F77=
13631 hardcode_libdir_flag_spec_ld_F77=
13632 hardcode_libdir_separator_F77=
13633 hardcode_direct_F77=no
13634 hardcode_minus_L_F77=no
13635 hardcode_shlibpath_var_F77=unsupported
13636 link_all_deplibs_F77=unknown
13637 hardcode_automatic_F77=no
13638 module_cmds_F77=
13639 module_expsym_cmds_F77=
13640 always_export_symbols_F77=no
13641 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13642 # include_expsyms should be a list of space-separated symbols to be *always*
13643 # included in the symbol list
13644 include_expsyms_F77=
13645 # exclude_expsyms can be an extended regexp of symbols to exclude
13646 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13647 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13648 # as well as any symbol that contains `d'.
13649 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13650 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13651 # platforms (ab)use it in PIC code, but their linkers get confused if
13652 # the symbol is explicitly referenced. Since portable code cannot
13653 # rely on this symbol name, it's probably fine to never include it in
13654 # preloaded symbol tables.
13655 extract_expsyms_cmds=
13657 case $host_os in
13658 cygwin* | mingw* | pw32*)
13659 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13660 # When not using gcc, we currently assume that we are using
13661 # Microsoft Visual C++.
13662 if test "$GCC" != yes; then
13663 with_gnu_ld=no
13666 openbsd*)
13667 with_gnu_ld=no
13669 esac
13671 ld_shlibs_F77=yes
13672 if test "$with_gnu_ld" = yes; then
13673 # If archive_cmds runs LD, not CC, wlarc should be empty
13674 wlarc='${wl}'
13676 # See if GNU ld supports shared libraries.
13677 case $host_os in
13678 aix3* | aix4* | aix5*)
13679 # On AIX/PPC, the GNU linker is very broken
13680 if test "$host_cpu" != ia64; then
13681 ld_shlibs_F77=no
13682 cat <<EOF 1>&2
13684 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13685 *** to be unable to reliably create shared libraries on AIX.
13686 *** Therefore, libtool is disabling shared libraries support. If you
13687 *** really care for shared libraries, you may want to modify your PATH
13688 *** so that a non-GNU linker is found, and then restart.
13694 amigaos*)
13695 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)'
13696 hardcode_libdir_flag_spec_F77='-L$libdir'
13697 hardcode_minus_L_F77=yes
13699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13700 # that the semantics of dynamic libraries on AmigaOS, at least up
13701 # to version 4, is to share data among multiple programs linked
13702 # with the same dynamic library. Since this doesn't match the
13703 # behavior of shared libraries on other platforms, we can't use
13704 # them.
13705 ld_shlibs_F77=no
13708 beos*)
13709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13710 allow_undefined_flag_F77=unsupported
13711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13712 # support --undefined. This deserves some investigation. FIXME
13713 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13714 else
13715 ld_shlibs_F77=no
13719 cygwin* | mingw* | pw32*)
13720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13721 # as there is no search path for DLLs.
13722 hardcode_libdir_flag_spec_F77='-L$libdir'
13723 allow_undefined_flag_F77=unsupported
13724 always_export_symbols_F77=no
13725 enable_shared_with_static_runtimes_F77=yes
13726 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13728 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13729 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13730 # If the export-symbols file already is a .def file (1st line
13731 # is EXPORTS), use it as is; otherwise, prepend...
13732 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13733 cp $export_symbols $output_objdir/$soname.def;
13734 else
13735 echo EXPORTS > $output_objdir/$soname.def;
13736 cat $export_symbols >> $output_objdir/$soname.def;
13738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13739 else
13740 ld_shlibs_F77=no
13744 netbsd*)
13745 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13746 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13747 wlarc=
13748 else
13749 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13750 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13754 solaris* | sysv5*)
13755 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13756 ld_shlibs_F77=no
13757 cat <<EOF 1>&2
13759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13760 *** create shared libraries on Solaris systems. Therefore, libtool
13761 *** is disabling shared libraries support. We urge you to upgrade GNU
13762 *** binutils to release 2.9.1 or newer. Another option is to modify
13763 *** your PATH or compiler configuration so that the native linker is
13764 *** used, and then restart.
13767 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13768 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13770 else
13771 ld_shlibs_F77=no
13775 sunos4*)
13776 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13777 wlarc=
13778 hardcode_direct_F77=yes
13779 hardcode_shlibpath_var_F77=no
13782 linux*)
13783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13784 tmp_addflag=
13785 case $CC,$host_cpu in
13786 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13787 tmp_addflag=' -fpic' ;;
13788 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13789 tmp_addflag=' -i_dynamic' ;;
13790 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13791 tmp_addflag=' -i_dynamic -nofor_main' ;;
13792 ifc* | ifort*) # Intel Fortran compiler
13793 tmp_addflag=' -nofor_main' ;;
13794 esac
13795 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13796 supports_anon_versioning=no
13797 case `$LD -v 2>/dev/null` in
13798 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13799 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13800 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13801 *\ 2.11.*) ;; # other 2.11 versions
13802 *) supports_anon_versioning=yes ;;
13803 esac
13804 if test $supports_anon_versioning = yes; then
13805 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13807 $echo "local: *; };" >> $output_objdir/$libname.ver~
13808 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13809 else
13810 archive_expsym_cmds_F77=$archive_cmds_F77
13812 else
13813 ld_shlibs_F77=no
13818 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13819 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13821 else
13822 ld_shlibs_F77=no
13825 esac
13827 if test "$ld_shlibs_F77" = yes; then
13828 runpath_var=LD_RUN_PATH
13829 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13830 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13831 # ancient GNU ld didn't support --whole-archive et. al.
13832 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13833 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13834 else
13835 whole_archive_flag_spec_F77=
13838 else
13839 # PORTME fill in a description of your system's linker (not GNU ld)
13840 case $host_os in
13841 aix3*)
13842 allow_undefined_flag_F77=unsupported
13843 always_export_symbols_F77=yes
13844 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'
13845 # Note: this linker hardcodes the directories in LIBPATH if there
13846 # are no directories specified by -L.
13847 hardcode_minus_L_F77=yes
13848 if test "$GCC" = yes && test -z "$link_static_flag"; then
13849 # Neither direct hardcoding nor static linking is supported with a
13850 # broken collect2.
13851 hardcode_direct_F77=unsupported
13855 aix4* | aix5*)
13856 if test "$host_cpu" = ia64; then
13857 # On IA64, the linker does run time linking by default, so we don't
13858 # have to do anything special.
13859 aix_use_runtimelinking=no
13860 exp_sym_flag='-Bexport'
13861 no_entry_flag=""
13862 else
13863 # If we're using GNU nm, then we don't want the "-C" option.
13864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13866 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'
13867 else
13868 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'
13870 aix_use_runtimelinking=no
13872 # Test if we are trying to use run time linking or normal
13873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13874 # need to do runtime linking.
13875 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13876 for ld_flag in $LDFLAGS; do
13877 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13878 aix_use_runtimelinking=yes
13879 break
13881 done
13882 esac
13884 exp_sym_flag='-bexport'
13885 no_entry_flag='-bnoentry'
13888 # When large executables or shared objects are built, AIX ld can
13889 # have problems creating the table of contents. If linking a library
13890 # or program results in "error TOC overflow" add -mminimal-toc to
13891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13894 archive_cmds_F77=''
13895 hardcode_direct_F77=yes
13896 hardcode_libdir_separator_F77=':'
13897 link_all_deplibs_F77=yes
13899 if test "$GCC" = yes; then
13900 case $host_os in aix4.[012]|aix4.[012].*)
13901 # We only want to do this on AIX 4.2 and lower, the check
13902 # below for broken collect2 doesn't work under 4.3+
13903 collect2name=`${CC} -print-prog-name=collect2`
13904 if test -f "$collect2name" && \
13905 strings "$collect2name" | grep resolve_lib_name >/dev/null
13906 then
13907 # We have reworked collect2
13908 hardcode_direct_F77=yes
13909 else
13910 # We have old collect2
13911 hardcode_direct_F77=unsupported
13912 # It fails to find uninstalled libraries when the uninstalled
13913 # path is not listed in the libpath. Setting hardcode_minus_L
13914 # to unsupported forces relinking
13915 hardcode_minus_L_F77=yes
13916 hardcode_libdir_flag_spec_F77='-L$libdir'
13917 hardcode_libdir_separator_F77=
13919 esac
13920 shared_flag='-shared'
13921 if test "$aix_use_runtimelinking" = yes; then
13922 shared_flag="$shared_flag "'${wl}-G'
13924 else
13925 # not using gcc
13926 if test "$host_cpu" = ia64; then
13927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13928 # chokes on -Wl,-G. The following line is correct:
13929 shared_flag='-G'
13930 else
13931 if test "$aix_use_runtimelinking" = yes; then
13932 shared_flag='${wl}-G'
13933 else
13934 shared_flag='${wl}-bM:SRE'
13939 # It seems that -bexpall does not export symbols beginning with
13940 # underscore (_), so it is better to generate a list of symbols to export.
13941 always_export_symbols_F77=yes
13942 if test "$aix_use_runtimelinking" = yes; then
13943 # Warning - without using the other runtime loading flags (-brtl),
13944 # -berok will link without error, but may produce a broken library.
13945 allow_undefined_flag_F77='-berok'
13946 # Determine the default libpath from the value encoded in an empty executable.
13947 cat >conftest.$ac_ext <<_ACEOF
13948 program main
13951 _ACEOF
13952 rm -f conftest.$ac_objext conftest$ac_exeext
13953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13954 (eval $ac_link) 2>conftest.er1
13955 ac_status=$?
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
13961 { ac_try='test -z "$ac_f77_werror_flag"
13962 || test ! -s conftest.err'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest$ac_exeext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13977 # Check for a 64-bit object if we didn't find anything.
13978 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; }
13979 }'`; fi
13980 else
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13985 rm -f conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13989 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13990 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"
13991 else
13992 if test "$host_cpu" = ia64; then
13993 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13994 allow_undefined_flag_F77="-z nodefs"
13995 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"
13996 else
13997 # Determine the default libpath from the value encoded in an empty executable.
13998 cat >conftest.$ac_ext <<_ACEOF
13999 program main
14002 _ACEOF
14003 rm -f conftest.$ac_objext conftest$ac_exeext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14005 (eval $ac_link) 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_f77_werror_flag"
14013 || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest$ac_exeext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14028 # Check for a 64-bit object if we didn't find anything.
14029 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; }
14030 }'`; fi
14031 else
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14036 rm -f conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14040 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14041 # Warning - without using the other run time loading flags,
14042 # -berok will link without error, but may produce a broken library.
14043 no_undefined_flag_F77=' ${wl}-bernotok'
14044 allow_undefined_flag_F77=' ${wl}-berok'
14045 # -bexpall does not export symbols beginning with underscore (_)
14046 always_export_symbols_F77=yes
14047 # Exported symbols can be pulled into shared objects from archives
14048 whole_archive_flag_spec_F77=' '
14049 archive_cmds_need_lc_F77=yes
14050 # This is similar to how AIX traditionally builds it's shared libraries.
14051 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'
14056 amigaos*)
14057 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)'
14058 hardcode_libdir_flag_spec_F77='-L$libdir'
14059 hardcode_minus_L_F77=yes
14060 # see comment about different semantics on the GNU ld section
14061 ld_shlibs_F77=no
14064 bsdi[45]*)
14065 export_dynamic_flag_spec_F77=-rdynamic
14068 cygwin* | mingw* | pw32*)
14069 # When not using gcc, we currently assume that we are using
14070 # Microsoft Visual C++.
14071 # hardcode_libdir_flag_spec is actually meaningless, as there is
14072 # no search path for DLLs.
14073 hardcode_libdir_flag_spec_F77=' '
14074 allow_undefined_flag_F77=unsupported
14075 # Tell ltmain to make .lib files, not .a files.
14076 libext=lib
14077 # Tell ltmain to make .dll files, not .so files.
14078 shrext_cmds=".dll"
14079 # FIXME: Setting linknames here is a bad hack.
14080 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14081 # The linker will automatically build a .lib file if we build a DLL.
14082 old_archive_From_new_cmds_F77='true'
14083 # FIXME: Should let the user specify the lib program.
14084 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14085 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14086 enable_shared_with_static_runtimes_F77=yes
14089 darwin* | rhapsody*)
14090 case "$host_os" in
14091 rhapsody* | darwin1.[012])
14092 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14094 *) # Darwin 1.3 on
14095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14096 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14097 else
14098 case ${MACOSX_DEPLOYMENT_TARGET} in
14099 10.[012])
14100 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14102 10.*)
14103 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14105 esac
14108 esac
14109 archive_cmds_need_lc_F77=no
14110 hardcode_direct_F77=no
14111 hardcode_automatic_F77=yes
14112 hardcode_shlibpath_var_F77=unsupported
14113 whole_archive_flag_spec_F77=''
14114 link_all_deplibs_F77=yes
14115 if test "$GCC" = yes ; then
14116 output_verbose_link_cmd='echo'
14117 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14118 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14120 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}'
14121 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}'
14122 else
14123 case "$cc_basename" in
14124 xlc*)
14125 output_verbose_link_cmd='echo'
14126 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14127 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14129 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}'
14130 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}'
14133 ld_shlibs_F77=no
14135 esac
14139 dgux*)
14140 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14141 hardcode_libdir_flag_spec_F77='-L$libdir'
14142 hardcode_shlibpath_var_F77=no
14145 freebsd1*)
14146 ld_shlibs_F77=no
14149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14150 # support. Future versions do this automatically, but an explicit c++rt0.o
14151 # does not break anything, and helps significantly (at the cost of a little
14152 # extra space).
14153 freebsd2.2*)
14154 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14155 hardcode_libdir_flag_spec_F77='-R$libdir'
14156 hardcode_direct_F77=yes
14157 hardcode_shlibpath_var_F77=no
14160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14161 freebsd2*)
14162 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14163 hardcode_direct_F77=yes
14164 hardcode_minus_L_F77=yes
14165 hardcode_shlibpath_var_F77=no
14168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14169 freebsd* | kfreebsd*-gnu | dragonfly*)
14170 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14171 hardcode_libdir_flag_spec_F77='-R$libdir'
14172 hardcode_direct_F77=yes
14173 hardcode_shlibpath_var_F77=no
14176 hpux9*)
14177 if test "$GCC" = yes; then
14178 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'
14179 else
14180 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'
14182 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14183 hardcode_libdir_separator_F77=:
14184 hardcode_direct_F77=yes
14186 # hardcode_minus_L: Not really in the search PATH,
14187 # but as the default location of the library.
14188 hardcode_minus_L_F77=yes
14189 export_dynamic_flag_spec_F77='${wl}-E'
14192 hpux10* | hpux11*)
14193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14194 case "$host_cpu" in
14195 hppa*64*|ia64*)
14196 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14199 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14201 esac
14202 else
14203 case "$host_cpu" in
14204 hppa*64*|ia64*)
14205 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14208 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14210 esac
14212 if test "$with_gnu_ld" = no; then
14213 case "$host_cpu" in
14214 hppa*64*)
14215 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14216 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14217 hardcode_libdir_separator_F77=:
14218 hardcode_direct_F77=no
14219 hardcode_shlibpath_var_F77=no
14221 ia64*)
14222 hardcode_libdir_flag_spec_F77='-L$libdir'
14223 hardcode_direct_F77=no
14224 hardcode_shlibpath_var_F77=no
14226 # hardcode_minus_L: Not really in the search PATH,
14227 # but as the default location of the library.
14228 hardcode_minus_L_F77=yes
14231 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14232 hardcode_libdir_separator_F77=:
14233 hardcode_direct_F77=yes
14234 export_dynamic_flag_spec_F77='${wl}-E'
14236 # hardcode_minus_L: Not really in the search PATH,
14237 # but as the default location of the library.
14238 hardcode_minus_L_F77=yes
14240 esac
14244 irix5* | irix6* | nonstopux*)
14245 if test "$GCC" = yes; then
14246 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'
14247 else
14248 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'
14249 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14251 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14252 hardcode_libdir_separator_F77=:
14253 link_all_deplibs_F77=yes
14256 netbsd*)
14257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14259 else
14260 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14262 hardcode_libdir_flag_spec_F77='-R$libdir'
14263 hardcode_direct_F77=yes
14264 hardcode_shlibpath_var_F77=no
14267 newsos6)
14268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14269 hardcode_direct_F77=yes
14270 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14271 hardcode_libdir_separator_F77=:
14272 hardcode_shlibpath_var_F77=no
14275 openbsd*)
14276 hardcode_direct_F77=yes
14277 hardcode_shlibpath_var_F77=no
14278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14279 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14280 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14281 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14282 export_dynamic_flag_spec_F77='${wl}-E'
14283 else
14284 case $host_os in
14285 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14286 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14287 hardcode_libdir_flag_spec_F77='-R$libdir'
14290 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14291 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14293 esac
14297 os2*)
14298 hardcode_libdir_flag_spec_F77='-L$libdir'
14299 hardcode_minus_L_F77=yes
14300 allow_undefined_flag_F77=unsupported
14301 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'
14302 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14305 osf3*)
14306 if test "$GCC" = yes; then
14307 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14308 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'
14309 else
14310 allow_undefined_flag_F77=' -expect_unresolved \*'
14311 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'
14313 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14314 hardcode_libdir_separator_F77=:
14317 osf4* | osf5*) # as osf3* with the addition of -msym flag
14318 if test "$GCC" = yes; then
14319 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14320 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'
14321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14322 else
14323 allow_undefined_flag_F77=' -expect_unresolved \*'
14324 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'
14325 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~
14326 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14328 # Both c and cxx compiler support -rpath directly
14329 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14331 hardcode_libdir_separator_F77=:
14334 sco3.2v5*)
14335 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14336 hardcode_shlibpath_var_F77=no
14337 export_dynamic_flag_spec_F77='${wl}-Bexport'
14338 runpath_var=LD_RUN_PATH
14339 hardcode_runpath_var=yes
14342 solaris*)
14343 no_undefined_flag_F77=' -z text'
14344 if test "$GCC" = yes; then
14345 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14346 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14347 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14348 else
14349 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14350 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14351 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14353 hardcode_libdir_flag_spec_F77='-R$libdir'
14354 hardcode_shlibpath_var_F77=no
14355 case $host_os in
14356 solaris2.[0-5] | solaris2.[0-5].*) ;;
14357 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14358 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14359 esac
14360 link_all_deplibs_F77=yes
14363 sunos4*)
14364 if test "x$host_vendor" = xsequent; then
14365 # Use $CC to link under sequent, because it throws in some extra .o
14366 # files that make .init and .fini sections work.
14367 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14368 else
14369 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14371 hardcode_libdir_flag_spec_F77='-L$libdir'
14372 hardcode_direct_F77=yes
14373 hardcode_minus_L_F77=yes
14374 hardcode_shlibpath_var_F77=no
14377 sysv4)
14378 case $host_vendor in
14379 sni)
14380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14381 hardcode_direct_F77=yes # is this really true???
14383 siemens)
14384 ## LD is ld it makes a PLAMLIB
14385 ## CC just makes a GrossModule.
14386 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14387 reload_cmds_F77='$CC -r -o $output$reload_objs'
14388 hardcode_direct_F77=no
14390 motorola)
14391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14392 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14394 esac
14395 runpath_var='LD_RUN_PATH'
14396 hardcode_shlibpath_var_F77=no
14399 sysv4.3*)
14400 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14401 hardcode_shlibpath_var_F77=no
14402 export_dynamic_flag_spec_F77='-Bexport'
14405 sysv4*MP*)
14406 if test -d /usr/nec; then
14407 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408 hardcode_shlibpath_var_F77=no
14409 runpath_var=LD_RUN_PATH
14410 hardcode_runpath_var=yes
14411 ld_shlibs_F77=yes
14415 sysv4.2uw2*)
14416 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14417 hardcode_direct_F77=yes
14418 hardcode_minus_L_F77=no
14419 hardcode_shlibpath_var_F77=no
14420 hardcode_runpath_var=yes
14421 runpath_var=LD_RUN_PATH
14424 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14425 no_undefined_flag_F77='${wl}-z ${wl}text'
14426 if test "$GCC" = yes; then
14427 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14428 else
14429 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14431 runpath_var='LD_RUN_PATH'
14432 hardcode_shlibpath_var_F77=no
14435 sysv5*)
14436 no_undefined_flag_F77=' -z text'
14437 # $CC -shared without GNU ld will not create a library from C++
14438 # object files and a static libstdc++, better avoid it by now
14439 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14440 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14442 hardcode_libdir_flag_spec_F77=
14443 hardcode_shlibpath_var_F77=no
14444 runpath_var='LD_RUN_PATH'
14447 uts4*)
14448 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_libdir_flag_spec_F77='-L$libdir'
14450 hardcode_shlibpath_var_F77=no
14454 ld_shlibs_F77=no
14456 esac
14459 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14460 echo "${ECHO_T}$ld_shlibs_F77" >&6
14461 test "$ld_shlibs_F77" = no && can_build_shared=no
14463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14464 if test "$GCC" = yes; then
14465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14469 # Do we need to explicitly link libc?
14471 case "x$archive_cmds_need_lc_F77" in
14472 x|xyes)
14473 # Assume -lc should be added
14474 archive_cmds_need_lc_F77=yes
14476 if test "$enable_shared" = yes && test "$GCC" = yes; then
14477 case $archive_cmds_F77 in
14478 *'~'*)
14479 # FIXME: we may have to deal with multi-command sequences.
14481 '$CC '*)
14482 # Test whether the compiler implicitly links with -lc since on some
14483 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14484 # to ld, don't add -lc before -lgcc.
14485 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14486 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14487 $rm conftest*
14488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491 (eval $ac_compile) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } 2>conftest.err; then
14495 soname=conftest
14496 lib=conftest
14497 libobjs=conftest.$ac_objext
14498 deplibs=
14499 wl=$lt_prog_compiler_wl_F77
14500 compiler_flags=-v
14501 linker_flags=-v
14502 verstring=
14503 output_objdir=.
14504 libname=conftest
14505 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14506 allow_undefined_flag_F77=
14507 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14508 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }
14512 then
14513 archive_cmds_need_lc_F77=no
14514 else
14515 archive_cmds_need_lc_F77=yes
14517 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14518 else
14519 cat conftest.err 1>&5
14521 $rm conftest*
14522 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14523 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14525 esac
14528 esac
14530 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14531 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14532 library_names_spec=
14533 libname_spec='lib$name'
14534 soname_spec=
14535 shrext_cmds=".so"
14536 postinstall_cmds=
14537 postuninstall_cmds=
14538 finish_cmds=
14539 finish_eval=
14540 shlibpath_var=
14541 shlibpath_overrides_runpath=unknown
14542 version_type=none
14543 dynamic_linker="$host_os ld.so"
14544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14545 if test "$GCC" = yes; then
14546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14547 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14548 # if the path contains ";" then we assume it to be the separator
14549 # otherwise default to the standard path separator (i.e. ":") - it is
14550 # assumed that no part of a normal pathname contains ";" but that should
14551 # okay in the real world where ";" in dirpaths is itself problematic.
14552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14553 else
14554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14556 else
14557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14559 need_lib_prefix=unknown
14560 hardcode_into_libs=no
14562 # when you set need_version to no, make sure it does not cause -set_version
14563 # flags to be left without arguments
14564 need_version=unknown
14566 case $host_os in
14567 aix3*)
14568 version_type=linux
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14570 shlibpath_var=LIBPATH
14572 # AIX 3 has no versioning support, so we append a major version to the name.
14573 soname_spec='${libname}${release}${shared_ext}$major'
14576 aix4* | aix5*)
14577 version_type=linux
14578 need_lib_prefix=no
14579 need_version=no
14580 hardcode_into_libs=yes
14581 if test "$host_cpu" = ia64; then
14582 # AIX 5 supports IA64
14583 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14584 shlibpath_var=LD_LIBRARY_PATH
14585 else
14586 # With GCC up to 2.95.x, collect2 would create an import file
14587 # for dependence libraries. The import file would start with
14588 # the line `#! .'. This would cause the generated library to
14589 # depend on `.', always an invalid library. This was fixed in
14590 # development snapshots of GCC prior to 3.0.
14591 case $host_os in
14592 aix4 | aix4.[01] | aix4.[01].*)
14593 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14594 echo ' yes '
14595 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14597 else
14598 can_build_shared=no
14601 esac
14602 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14603 # soname into executable. Probably we can add versioning support to
14604 # collect2, so additional links can be useful in future.
14605 if test "$aix_use_runtimelinking" = yes; then
14606 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14607 # instead of lib<name>.a to let people know that these are not
14608 # typical AIX shared libraries.
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14610 else
14611 # We preserve .a as extension for shared libraries through AIX4.2
14612 # and later when we are not doing run time linking.
14613 library_names_spec='${libname}${release}.a $libname.a'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14616 shlibpath_var=LIBPATH
14620 amigaos*)
14621 library_names_spec='$libname.ixlibrary $libname.a'
14622 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14623 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'
14626 beos*)
14627 library_names_spec='${libname}${shared_ext}'
14628 dynamic_linker="$host_os ld.so"
14629 shlibpath_var=LIBRARY_PATH
14632 bsdi[45]*)
14633 version_type=linux
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14640 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14641 # the default ld.so.conf also contains /usr/contrib/lib and
14642 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14643 # libtool to hard-code these into programs
14646 cygwin* | mingw* | pw32*)
14647 version_type=windows
14648 shrext_cmds=".dll"
14649 need_version=no
14650 need_lib_prefix=no
14652 case $GCC,$host_os in
14653 yes,cygwin* | yes,mingw* | yes,pw32*)
14654 library_names_spec='$libname.dll.a'
14655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14656 postinstall_cmds='base_file=`basename \${file}`~
14657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14658 dldir=$destdir/`dirname \$dlpath`~
14659 test -d \$dldir || mkdir -p \$dldir~
14660 $install_prog $dir/$dlname \$dldir/$dlname'
14661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14662 dlpath=$dir/\$dldll~
14663 $rm \$dlpath'
14664 shlibpath_overrides_runpath=yes
14666 case $host_os in
14667 cygwin*)
14668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14670 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14672 mingw*)
14673 # MinGW DLLs use traditional 'lib' prefix
14674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14676 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14677 # It is most probably a Windows format PATH printed by
14678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14679 # path with ; separators, and with drive letters. We can handle the
14680 # drive letters (cygwin fileutils understands them), so leave them,
14681 # especially as we might pass files found there to a mingw objdump,
14682 # which wouldn't understand a cygwinified path. Ahh.
14683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14684 else
14685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14688 pw32*)
14689 # pw32 DLLs use 'pw' prefix rather than 'lib'
14690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14692 esac
14696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14698 esac
14699 dynamic_linker='Win32 ld.exe'
14700 # FIXME: first we should search . and the directory the executable is in
14701 shlibpath_var=PATH
14704 darwin* | rhapsody*)
14705 dynamic_linker="$host_os dyld"
14706 version_type=darwin
14707 need_lib_prefix=no
14708 need_version=no
14709 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14710 soname_spec='${libname}${release}${major}$shared_ext'
14711 shlibpath_overrides_runpath=yes
14712 shlibpath_var=DYLD_LIBRARY_PATH
14713 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14714 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14715 if test "$GCC" = yes; then
14716 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"`
14717 else
14718 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14720 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14723 dgux*)
14724 version_type=linux
14725 need_lib_prefix=no
14726 need_version=no
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14728 soname_spec='${libname}${release}${shared_ext}$major'
14729 shlibpath_var=LD_LIBRARY_PATH
14732 freebsd1*)
14733 dynamic_linker=no
14736 kfreebsd*-gnu)
14737 version_type=linux
14738 need_lib_prefix=no
14739 need_version=no
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 shlibpath_overrides_runpath=no
14744 hardcode_into_libs=yes
14745 dynamic_linker='GNU ld.so'
14748 freebsd* | dragonfly*)
14749 # DragonFly does not have aout. When/if they implement a new
14750 # versioning mechanism, adjust this.
14751 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14752 version_type=freebsd-$objformat
14753 case $version_type in
14754 freebsd-elf*)
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14756 need_version=no
14757 need_lib_prefix=no
14759 freebsd-*)
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14761 need_version=yes
14763 esac
14764 shlibpath_var=LD_LIBRARY_PATH
14765 case $host_os in
14766 freebsd2*)
14767 shlibpath_overrides_runpath=yes
14769 freebsd3.[01]* | freebsdelf3.[01]*)
14770 shlibpath_overrides_runpath=yes
14771 hardcode_into_libs=yes
14773 *) # from 3.2 on
14774 shlibpath_overrides_runpath=no
14775 hardcode_into_libs=yes
14777 esac
14780 gnu*)
14781 version_type=linux
14782 need_lib_prefix=no
14783 need_version=no
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 hardcode_into_libs=yes
14790 hpux9* | hpux10* | hpux11*)
14791 # Give a soname corresponding to the major version so that dld.sl refuses to
14792 # link against other versions.
14793 version_type=sunos
14794 need_lib_prefix=no
14795 need_version=no
14796 case "$host_cpu" in
14797 ia64*)
14798 shrext_cmds='.so'
14799 hardcode_into_libs=yes
14800 dynamic_linker="$host_os dld.so"
14801 shlibpath_var=LD_LIBRARY_PATH
14802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804 soname_spec='${libname}${release}${shared_ext}$major'
14805 if test "X$HPUX_IA64_MODE" = X32; then
14806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14807 else
14808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14812 hppa*64*)
14813 shrext_cmds='.sl'
14814 hardcode_into_libs=yes
14815 dynamic_linker="$host_os dld.sl"
14816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14824 shrext_cmds='.sl'
14825 dynamic_linker="$host_os dld.sl"
14826 shlibpath_var=SHLIB_PATH
14827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 soname_spec='${libname}${release}${shared_ext}$major'
14831 esac
14832 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14833 postinstall_cmds='chmod 555 $lib'
14836 irix5* | irix6* | nonstopux*)
14837 case $host_os in
14838 nonstopux*) version_type=nonstopux ;;
14840 if test "$lt_cv_prog_gnu_ld" = yes; then
14841 version_type=linux
14842 else
14843 version_type=irix
14844 fi ;;
14845 esac
14846 need_lib_prefix=no
14847 need_version=no
14848 soname_spec='${libname}${release}${shared_ext}$major'
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14850 case $host_os in
14851 irix5* | nonstopux*)
14852 libsuff= shlibsuff=
14855 case $LD in # libtool.m4 will add one of these switches to LD
14856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14857 libsuff= shlibsuff= libmagic=32-bit;;
14858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14859 libsuff=32 shlibsuff=N32 libmagic=N32;;
14860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14862 *) libsuff= shlibsuff= libmagic=never-match;;
14863 esac
14865 esac
14866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14867 shlibpath_overrides_runpath=no
14868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14870 hardcode_into_libs=yes
14873 # No shared lib support for Linux oldld, aout, or coff.
14874 linux*oldld* | linux*aout* | linux*coff*)
14875 dynamic_linker=no
14878 # This must be Linux ELF.
14879 linux*)
14880 version_type=linux
14881 need_lib_prefix=no
14882 need_version=no
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=no
14888 # This implies no fast_install, which is unacceptable.
14889 # Some rework will be needed to allow for fast_install
14890 # before this can be enabled.
14891 hardcode_into_libs=yes
14893 # Append ld.so.conf contents to the search path
14894 if test -f /etc/ld.so.conf; then
14895 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14899 # We used to test for /lib/ld.so.1 and disable shared libraries on
14900 # powerpc, because MkLinux only supported shared libraries with the
14901 # GNU dynamic linker. Since this was broken with cross compilers,
14902 # most powerpc-linux boxes support dynamic linking these days and
14903 # people can always --disable-shared, the test was removed, and we
14904 # assume the GNU/Linux dynamic linker is in use.
14905 dynamic_linker='GNU/Linux ld.so'
14908 knetbsd*-gnu)
14909 version_type=linux
14910 need_lib_prefix=no
14911 need_version=no
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 shlibpath_var=LD_LIBRARY_PATH
14915 shlibpath_overrides_runpath=no
14916 hardcode_into_libs=yes
14917 dynamic_linker='GNU ld.so'
14920 netbsd*)
14921 version_type=sunos
14922 need_lib_prefix=no
14923 need_version=no
14924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14927 dynamic_linker='NetBSD (a.out) ld.so'
14928 else
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 dynamic_linker='NetBSD ld.elf_so'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=yes
14935 hardcode_into_libs=yes
14938 newsos6)
14939 version_type=linux
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes
14945 nto-qnx*)
14946 version_type=linux
14947 need_lib_prefix=no
14948 need_version=no
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes
14955 openbsd*)
14956 version_type=sunos
14957 need_lib_prefix=no
14958 need_version=no
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14963 case $host_os in
14964 openbsd2.[89] | openbsd2.[89].*)
14965 shlibpath_overrides_runpath=no
14968 shlibpath_overrides_runpath=yes
14970 esac
14971 else
14972 shlibpath_overrides_runpath=yes
14976 os2*)
14977 libname_spec='$name'
14978 shrext_cmds=".dll"
14979 need_lib_prefix=no
14980 library_names_spec='$libname${shared_ext} $libname.a'
14981 dynamic_linker='OS/2 ld.exe'
14982 shlibpath_var=LIBPATH
14985 osf3* | osf4* | osf5*)
14986 version_type=osf
14987 need_lib_prefix=no
14988 need_version=no
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14996 sco3.2v5*)
14997 version_type=osf
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 shlibpath_var=LD_LIBRARY_PATH
15003 solaris*)
15004 version_type=linux
15005 need_lib_prefix=no
15006 need_version=no
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=yes
15011 hardcode_into_libs=yes
15012 # ldd complains unless libraries are executable
15013 postinstall_cmds='chmod +x $lib'
15016 sunos4*)
15017 version_type=sunos
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=yes
15022 if test "$with_gnu_ld" = yes; then
15023 need_lib_prefix=no
15025 need_version=yes
15028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15029 version_type=linux
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 soname_spec='${libname}${release}${shared_ext}$major'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 case $host_vendor in
15034 sni)
15035 shlibpath_overrides_runpath=no
15036 need_lib_prefix=no
15037 export_dynamic_flag_spec='${wl}-Blargedynsym'
15038 runpath_var=LD_RUN_PATH
15040 siemens)
15041 need_lib_prefix=no
15043 motorola)
15044 need_lib_prefix=no
15045 need_version=no
15046 shlibpath_overrides_runpath=no
15047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15049 esac
15052 sysv4*MP*)
15053 if test -d /usr/nec ;then
15054 version_type=linux
15055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15056 soname_spec='$libname${shared_ext}.$major'
15057 shlibpath_var=LD_LIBRARY_PATH
15061 uts4*)
15062 version_type=linux
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15064 soname_spec='${libname}${release}${shared_ext}$major'
15065 shlibpath_var=LD_LIBRARY_PATH
15069 dynamic_linker=no
15071 esac
15072 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15073 echo "${ECHO_T}$dynamic_linker" >&6
15074 test "$dynamic_linker" = no && can_build_shared=no
15076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15078 hardcode_action_F77=
15079 if test -n "$hardcode_libdir_flag_spec_F77" || \
15080 test -n "$runpath_var_F77" || \
15081 test "X$hardcode_automatic_F77" = "Xyes" ; then
15083 # We can hardcode non-existant directories.
15084 if test "$hardcode_direct_F77" != no &&
15085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15086 # have to relink, otherwise we might link with an installed library
15087 # when we should be linking with a yet-to-be-installed one
15088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15089 test "$hardcode_minus_L_F77" != no; then
15090 # Linking always hardcodes the temporary library directory.
15091 hardcode_action_F77=relink
15092 else
15093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15094 hardcode_action_F77=immediate
15096 else
15097 # We cannot hardcode anything, or else we can only hardcode existing
15098 # directories.
15099 hardcode_action_F77=unsupported
15101 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15102 echo "${ECHO_T}$hardcode_action_F77" >&6
15104 if test "$hardcode_action_F77" = relink; then
15105 # Fast installation is not supported
15106 enable_fast_install=no
15107 elif test "$shlibpath_overrides_runpath" = yes ||
15108 test "$enable_shared" = no; then
15109 # Fast installation is not necessary
15110 enable_fast_install=needless
15113 striplib=
15114 old_striplib=
15115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15117 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15118 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15119 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15120 echo "$as_me:$LINENO: result: yes" >&5
15121 echo "${ECHO_T}yes" >&6
15122 else
15123 # FIXME - insert some real tests, host_os isn't really good enough
15124 case $host_os in
15125 darwin*)
15126 if test -n "$STRIP" ; then
15127 striplib="$STRIP -x"
15128 echo "$as_me:$LINENO: result: yes" >&5
15129 echo "${ECHO_T}yes" >&6
15130 else
15131 echo "$as_me:$LINENO: result: no" >&5
15132 echo "${ECHO_T}no" >&6
15136 echo "$as_me:$LINENO: result: no" >&5
15137 echo "${ECHO_T}no" >&6
15139 esac
15144 # The else clause should only fire when bootstrapping the
15145 # libtool distribution, otherwise you forgot to ship ltmain.sh
15146 # with your package, and you will get complaints that there are
15147 # no rules to generate ltmain.sh.
15148 if test -f "$ltmain"; then
15149 # See if we are running on zsh, and set the options which allow our commands through
15150 # without removal of \ escapes.
15151 if test -n "${ZSH_VERSION+set}" ; then
15152 setopt NO_GLOB_SUBST
15154 # Now quote all the things that may contain metacharacters while being
15155 # careful not to overquote the AC_SUBSTed values. We take copies of the
15156 # variables and quote the copies for generation of the libtool script.
15157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15158 SED SHELL STRIP \
15159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15161 deplibs_check_method reload_flag reload_cmds need_locks \
15162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15163 lt_cv_sys_global_symbol_to_c_name_address \
15164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15165 old_postinstall_cmds old_postuninstall_cmds \
15166 compiler_F77 \
15167 CC_F77 \
15168 LD_F77 \
15169 lt_prog_compiler_wl_F77 \
15170 lt_prog_compiler_pic_F77 \
15171 lt_prog_compiler_static_F77 \
15172 lt_prog_compiler_no_builtin_flag_F77 \
15173 export_dynamic_flag_spec_F77 \
15174 thread_safe_flag_spec_F77 \
15175 whole_archive_flag_spec_F77 \
15176 enable_shared_with_static_runtimes_F77 \
15177 old_archive_cmds_F77 \
15178 old_archive_from_new_cmds_F77 \
15179 predep_objects_F77 \
15180 postdep_objects_F77 \
15181 predeps_F77 \
15182 postdeps_F77 \
15183 compiler_lib_search_path_F77 \
15184 archive_cmds_F77 \
15185 archive_expsym_cmds_F77 \
15186 postinstall_cmds_F77 \
15187 postuninstall_cmds_F77 \
15188 old_archive_from_expsyms_cmds_F77 \
15189 allow_undefined_flag_F77 \
15190 no_undefined_flag_F77 \
15191 export_symbols_cmds_F77 \
15192 hardcode_libdir_flag_spec_F77 \
15193 hardcode_libdir_flag_spec_ld_F77 \
15194 hardcode_libdir_separator_F77 \
15195 hardcode_automatic_F77 \
15196 module_cmds_F77 \
15197 module_expsym_cmds_F77 \
15198 lt_cv_prog_compiler_c_o_F77 \
15199 exclude_expsyms_F77 \
15200 include_expsyms_F77; do
15202 case $var in
15203 old_archive_cmds_F77 | \
15204 old_archive_from_new_cmds_F77 | \
15205 archive_cmds_F77 | \
15206 archive_expsym_cmds_F77 | \
15207 module_cmds_F77 | \
15208 module_expsym_cmds_F77 | \
15209 old_archive_from_expsyms_cmds_F77 | \
15210 export_symbols_cmds_F77 | \
15211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15212 postinstall_cmds | postuninstall_cmds | \
15213 old_postinstall_cmds | old_postuninstall_cmds | \
15214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15215 # Double-quote double-evaled strings.
15216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15221 esac
15222 done
15224 case $lt_echo in
15225 *'\$0 --fallback-echo"')
15226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15228 esac
15230 cfgfile="$ofile"
15232 cat <<__EOF__ >> "$cfgfile"
15233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15237 # Shell to use when invoking shell scripts.
15238 SHELL=$lt_SHELL
15240 # Whether or not to build shared libraries.
15241 build_libtool_libs=$enable_shared
15243 # Whether or not to build static libraries.
15244 build_old_libs=$enable_static
15246 # Whether or not to add -lc for building shared libraries.
15247 build_libtool_need_lc=$archive_cmds_need_lc_F77
15249 # Whether or not to disallow shared libs when runtime libs are static
15250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15252 # Whether or not to optimize for fast installation.
15253 fast_install=$enable_fast_install
15255 # The host system.
15256 host_alias=$host_alias
15257 host=$host
15258 host_os=$host_os
15260 # The build system.
15261 build_alias=$build_alias
15262 build=$build
15263 build_os=$build_os
15265 # An echo program that does not interpret backslashes.
15266 echo=$lt_echo
15268 # The archiver.
15269 AR=$lt_AR
15270 AR_FLAGS=$lt_AR_FLAGS
15272 # A C compiler.
15273 LTCC=$lt_LTCC
15275 # A language-specific compiler.
15276 CC=$lt_compiler_F77
15278 # Is the compiler the GNU C compiler?
15279 with_gcc=$GCC_F77
15281 # An ERE matcher.
15282 EGREP=$lt_EGREP
15284 # The linker used to build libraries.
15285 LD=$lt_LD_F77
15287 # Whether we need hard or soft links.
15288 LN_S=$lt_LN_S
15290 # A BSD-compatible nm program.
15291 NM=$lt_NM
15293 # A symbol stripping program
15294 STRIP=$lt_STRIP
15296 # Used to examine libraries when file_magic_cmd begins "file"
15297 MAGIC_CMD=$MAGIC_CMD
15299 # Used on cygwin: DLL creation program.
15300 DLLTOOL="$DLLTOOL"
15302 # Used on cygwin: object dumper.
15303 OBJDUMP="$OBJDUMP"
15305 # Used on cygwin: assembler.
15306 AS="$AS"
15308 # The name of the directory that contains temporary libtool files.
15309 objdir=$objdir
15311 # How to create reloadable object files.
15312 reload_flag=$lt_reload_flag
15313 reload_cmds=$lt_reload_cmds
15315 # How to pass a linker flag through the compiler.
15316 wl=$lt_lt_prog_compiler_wl_F77
15318 # Object file suffix (normally "o").
15319 objext="$ac_objext"
15321 # Old archive suffix (normally "a").
15322 libext="$libext"
15324 # Shared library suffix (normally ".so").
15325 shrext_cmds='$shrext_cmds'
15327 # Executable file suffix (normally "").
15328 exeext="$exeext"
15330 # Additional compiler flags for building library objects.
15331 pic_flag=$lt_lt_prog_compiler_pic_F77
15332 pic_mode=$pic_mode
15334 # What is the maximum length of a command?
15335 max_cmd_len=$lt_cv_sys_max_cmd_len
15337 # Does compiler simultaneously support -c and -o options?
15338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15340 # Must we lock files when doing compilation ?
15341 need_locks=$lt_need_locks
15343 # Do we need the lib prefix for modules?
15344 need_lib_prefix=$need_lib_prefix
15346 # Do we need a version for libraries?
15347 need_version=$need_version
15349 # Whether dlopen is supported.
15350 dlopen_support=$enable_dlopen
15352 # Whether dlopen of programs is supported.
15353 dlopen_self=$enable_dlopen_self
15355 # Whether dlopen of statically linked programs is supported.
15356 dlopen_self_static=$enable_dlopen_self_static
15358 # Compiler flag to prevent dynamic linking.
15359 link_static_flag=$lt_lt_prog_compiler_static_F77
15361 # Compiler flag to turn off builtin functions.
15362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15364 # Compiler flag to allow reflexive dlopens.
15365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15367 # Compiler flag to generate shared objects directly from archives.
15368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15370 # Compiler flag to generate thread-safe objects.
15371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15373 # Library versioning type.
15374 version_type=$version_type
15376 # Format of library name prefix.
15377 libname_spec=$lt_libname_spec
15379 # List of archive names. First name is the real one, the rest are links.
15380 # The last name is the one that the linker finds with -lNAME.
15381 library_names_spec=$lt_library_names_spec
15383 # The coded name of the library, if different from the real name.
15384 soname_spec=$lt_soname_spec
15386 # Commands used to build and install an old-style archive.
15387 RANLIB=$lt_RANLIB
15388 old_archive_cmds=$lt_old_archive_cmds_F77
15389 old_postinstall_cmds=$lt_old_postinstall_cmds
15390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15392 # Create an old-style archive from a shared archive.
15393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15395 # Create a temporary old-style archive to link instead of a shared archive.
15396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15398 # Commands used to build and install a shared archive.
15399 archive_cmds=$lt_archive_cmds_F77
15400 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15401 postinstall_cmds=$lt_postinstall_cmds
15402 postuninstall_cmds=$lt_postuninstall_cmds
15404 # Commands used to build a loadable module (assumed same as above if empty)
15405 module_cmds=$lt_module_cmds_F77
15406 module_expsym_cmds=$lt_module_expsym_cmds_F77
15408 # Commands to strip libraries.
15409 old_striplib=$lt_old_striplib
15410 striplib=$lt_striplib
15412 # Dependencies to place before the objects being linked to create a
15413 # shared library.
15414 predep_objects=$lt_predep_objects_F77
15416 # Dependencies to place after the objects being linked to create a
15417 # shared library.
15418 postdep_objects=$lt_postdep_objects_F77
15420 # Dependencies to place before the objects being linked to create a
15421 # shared library.
15422 predeps=$lt_predeps_F77
15424 # Dependencies to place after the objects being linked to create a
15425 # shared library.
15426 postdeps=$lt_postdeps_F77
15428 # The library search path used internally by the compiler when linking
15429 # a shared library.
15430 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15432 # Method to check whether dependent libraries are shared objects.
15433 deplibs_check_method=$lt_deplibs_check_method
15435 # Command to use when deplibs_check_method == file_magic.
15436 file_magic_cmd=$lt_file_magic_cmd
15438 # Flag that allows shared libraries with undefined symbols to be built.
15439 allow_undefined_flag=$lt_allow_undefined_flag_F77
15441 # Flag that forces no undefined symbols.
15442 no_undefined_flag=$lt_no_undefined_flag_F77
15444 # Commands used to finish a libtool library installation in a directory.
15445 finish_cmds=$lt_finish_cmds
15447 # Same as above, but a single script fragment to be evaled but not shown.
15448 finish_eval=$lt_finish_eval
15450 # Take the output of nm and produce a listing of raw symbols and C names.
15451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15453 # Transform the output of nm in a proper C declaration
15454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15456 # Transform the output of nm in a C name address pair
15457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15459 # This is the shared library runtime path variable.
15460 runpath_var=$runpath_var
15462 # This is the shared library path variable.
15463 shlibpath_var=$shlibpath_var
15465 # Is shlibpath searched before the hard-coded library search path?
15466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15468 # How to hardcode a shared library path into an executable.
15469 hardcode_action=$hardcode_action_F77
15471 # Whether we should hardcode library paths into libraries.
15472 hardcode_into_libs=$hardcode_into_libs
15474 # Flag to hardcode \$libdir into a binary during linking.
15475 # This must work even if \$libdir does not exist.
15476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15478 # If ld is used when linking, flag to hardcode \$libdir into
15479 # a binary during linking. This must work even if \$libdir does
15480 # not exist.
15481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15483 # Whether we need a single -rpath flag with a separated argument.
15484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15487 # resulting binary.
15488 hardcode_direct=$hardcode_direct_F77
15490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15491 # resulting binary.
15492 hardcode_minus_L=$hardcode_minus_L_F77
15494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15495 # the resulting binary.
15496 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15498 # Set to yes if building a shared library automatically hardcodes DIR into the library
15499 # and all subsequent libraries and executables linked against it.
15500 hardcode_automatic=$hardcode_automatic_F77
15502 # Variables whose values should be saved in libtool wrapper scripts and
15503 # restored at relink time.
15504 variables_saved_for_relink="$variables_saved_for_relink"
15506 # Whether libtool must link a program against all its dependency libraries.
15507 link_all_deplibs=$link_all_deplibs_F77
15509 # Compile-time system search path for libraries
15510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15512 # Run-time system search path for libraries
15513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15515 # Fix the shell variable \$srcfile for the compiler.
15516 fix_srcfile_path="$fix_srcfile_path_F77"
15518 # Set to yes if exported symbols are required.
15519 always_export_symbols=$always_export_symbols_F77
15521 # The commands to list exported symbols.
15522 export_symbols_cmds=$lt_export_symbols_cmds_F77
15524 # The commands to extract the exported symbol list from a shared archive.
15525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15527 # Symbols that should not be listed in the preloaded symbols.
15528 exclude_expsyms=$lt_exclude_expsyms_F77
15530 # Symbols that must always be exported.
15531 include_expsyms=$lt_include_expsyms_F77
15533 # ### END LIBTOOL TAG CONFIG: $tagname
15535 __EOF__
15538 else
15539 # If there is no Makefile yet, we rely on a make rule to execute
15540 # `config.status --recheck' to rerun these tests and create the
15541 # libtool script then.
15542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15543 if test -f "$ltmain_in"; then
15544 test -f Makefile && make "$ltmain"
15549 ac_ext=c
15550 ac_cpp='$CPP $CPPFLAGS'
15551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15555 CC="$lt_save_CC"
15557 else
15558 tagname=""
15562 GCJ)
15563 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15567 # Source file extension for Java test sources.
15568 ac_ext=java
15570 # Object file extension for compiled Java test sources.
15571 objext=o
15572 objext_GCJ=$objext
15574 # Code to be used in simple compile tests
15575 lt_simple_compile_test_code="class foo {}\n"
15577 # Code to be used in simple link tests
15578 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15582 # If no C compiler was specified, use CC.
15583 LTCC=${LTCC-"$CC"}
15585 # Allow CC to be a program name with arguments.
15586 compiler=$CC
15589 # Allow CC to be a program name with arguments.
15590 lt_save_CC="$CC"
15591 CC=${GCJ-"gcj"}
15592 compiler=$CC
15593 compiler_GCJ=$CC
15595 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15596 archive_cmds_need_lc_GCJ=no
15599 lt_prog_compiler_no_builtin_flag_GCJ=
15601 if test "$GCC" = yes; then
15602 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15605 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15606 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15607 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610 lt_cv_prog_compiler_rtti_exceptions=no
15611 ac_outfile=conftest.$ac_objext
15612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15613 lt_compiler_flag="-fno-rtti -fno-exceptions"
15614 # Insert the option either (1) after the last *FLAGS variable, or
15615 # (2) before a word containing "conftest.", or (3) at the end.
15616 # Note that $ac_compile itself does not contain backslashes and begins
15617 # with a dollar sign (not a hyphen), so the echo should work correctly.
15618 # The option is referenced via a variable to avoid confusing sed.
15619 lt_compile=`echo "$ac_compile" | $SED \
15620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15622 -e 's:$: $lt_compiler_flag:'`
15623 (eval echo "\"\$as_me:15623: $lt_compile\"" >&5)
15624 (eval "$lt_compile" 2>conftest.err)
15625 ac_status=$?
15626 cat conftest.err >&5
15627 echo "$as_me:15627: \$? = $ac_status" >&5
15628 if (exit $ac_status) && test -s "$ac_outfile"; then
15629 # The compiler can only warn and ignore the option if not recognized
15630 # So say no if there are warnings
15631 if test ! -s conftest.err; then
15632 lt_cv_prog_compiler_rtti_exceptions=yes
15635 $rm conftest*
15638 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15639 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15641 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15642 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15643 else
15649 lt_prog_compiler_wl_GCJ=
15650 lt_prog_compiler_pic_GCJ=
15651 lt_prog_compiler_static_GCJ=
15653 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15654 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15656 if test "$GCC" = yes; then
15657 lt_prog_compiler_wl_GCJ='-Wl,'
15658 lt_prog_compiler_static_GCJ='-static'
15660 case $host_os in
15661 aix*)
15662 # All AIX code is PIC.
15663 if test "$host_cpu" = ia64; then
15664 # AIX 5 now supports IA64 processor
15665 lt_prog_compiler_static_GCJ='-Bstatic'
15669 amigaos*)
15670 # FIXME: we need at least 68020 code to build shared libraries, but
15671 # adding the `-m68020' flag to GCC prevents building anything better,
15672 # like `-m68040'.
15673 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15676 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15677 # PIC is the default for these OSes.
15680 mingw* | pw32* | os2*)
15681 # This hack is so that the source file can tell whether it is being
15682 # built for inclusion in a dll (and should export symbols for example).
15683 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15686 darwin* | rhapsody*)
15687 # PIC is the default on this platform
15688 # Common symbols not allowed in MH_DYLIB files
15689 lt_prog_compiler_pic_GCJ='-fno-common'
15692 msdosdjgpp*)
15693 # Just because we use GCC doesn't mean we suddenly get shared libraries
15694 # on systems that don't support them.
15695 lt_prog_compiler_can_build_shared_GCJ=no
15696 enable_shared=no
15699 sysv4*MP*)
15700 if test -d /usr/nec; then
15701 lt_prog_compiler_pic_GCJ=-Kconform_pic
15705 hpux*)
15706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15707 # not for PA HP-UX.
15708 case "$host_cpu" in
15709 hppa*64*|ia64*)
15710 # +Z the default
15713 lt_prog_compiler_pic_GCJ='-fPIC'
15715 esac
15719 lt_prog_compiler_pic_GCJ='-fPIC'
15721 esac
15722 else
15723 # PORTME Check for flag to pass linker flags through the system compiler.
15724 case $host_os in
15725 aix*)
15726 lt_prog_compiler_wl_GCJ='-Wl,'
15727 if test "$host_cpu" = ia64; then
15728 # AIX 5 now supports IA64 processor
15729 lt_prog_compiler_static_GCJ='-Bstatic'
15730 else
15731 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15734 darwin*)
15735 # PIC is the default on this platform
15736 # Common symbols not allowed in MH_DYLIB files
15737 case "$cc_basename" in
15738 xlc*)
15739 lt_prog_compiler_pic_GCJ='-qnocommon'
15740 lt_prog_compiler_wl_GCJ='-Wl,'
15742 esac
15745 mingw* | pw32* | os2*)
15746 # This hack is so that the source file can tell whether it is being
15747 # built for inclusion in a dll (and should export symbols for example).
15748 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15751 hpux9* | hpux10* | hpux11*)
15752 lt_prog_compiler_wl_GCJ='-Wl,'
15753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15754 # not for PA HP-UX.
15755 case "$host_cpu" in
15756 hppa*64*|ia64*)
15757 # +Z the default
15760 lt_prog_compiler_pic_GCJ='+Z'
15762 esac
15763 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15764 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15767 irix5* | irix6* | nonstopux*)
15768 lt_prog_compiler_wl_GCJ='-Wl,'
15769 # PIC (with -KPIC) is the default.
15770 lt_prog_compiler_static_GCJ='-non_shared'
15773 newsos6)
15774 lt_prog_compiler_pic_GCJ='-KPIC'
15775 lt_prog_compiler_static_GCJ='-Bstatic'
15778 linux*)
15779 case $cc_basename in
15780 icc* | ecc*)
15781 lt_prog_compiler_wl_GCJ='-Wl,'
15782 lt_prog_compiler_pic_GCJ='-KPIC'
15783 lt_prog_compiler_static_GCJ='-static'
15785 pgcc | pgf77 | pgf90)
15786 # Portland Group compilers (*not* the Pentium gcc compiler,
15787 # which looks to be a dead project)
15788 lt_prog_compiler_wl_GCJ='-Wl,'
15789 lt_prog_compiler_pic_GCJ='-fpic'
15790 lt_prog_compiler_static_GCJ='-static'
15792 ccc*)
15793 lt_prog_compiler_wl_GCJ='-Wl,'
15794 # All Alpha code is PIC.
15795 lt_prog_compiler_static_GCJ='-non_shared'
15797 como)
15798 lt_prog_compiler_wl_GCJ='-lopt='
15800 esac
15803 osf3* | osf4* | osf5*)
15804 lt_prog_compiler_wl_GCJ='-Wl,'
15805 # All OSF/1 code is PIC.
15806 lt_prog_compiler_static_GCJ='-non_shared'
15809 sco3.2v5*)
15810 lt_prog_compiler_pic_GCJ='-Kpic'
15811 lt_prog_compiler_static_GCJ='-dn'
15814 solaris*)
15815 lt_prog_compiler_wl_GCJ='-Wl,'
15816 lt_prog_compiler_pic_GCJ='-KPIC'
15817 lt_prog_compiler_static_GCJ='-Bstatic'
15820 sunos4*)
15821 lt_prog_compiler_wl_GCJ='-Qoption ld '
15822 lt_prog_compiler_pic_GCJ='-PIC'
15823 lt_prog_compiler_static_GCJ='-Bstatic'
15826 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15827 lt_prog_compiler_wl_GCJ='-Wl,'
15828 lt_prog_compiler_pic_GCJ='-KPIC'
15829 lt_prog_compiler_static_GCJ='-Bstatic'
15832 sysv4*MP*)
15833 if test -d /usr/nec ;then
15834 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15835 lt_prog_compiler_static_GCJ='-Bstatic'
15839 unicos*)
15840 lt_prog_compiler_wl_GCJ='-Wl,'
15841 lt_prog_compiler_can_build_shared_GCJ=no
15844 uts4*)
15845 lt_prog_compiler_pic_GCJ='-pic'
15846 lt_prog_compiler_static_GCJ='-Bstatic'
15850 lt_prog_compiler_can_build_shared_GCJ=no
15852 esac
15855 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15856 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15859 # Check to make sure the PIC flag actually works.
15861 if test -n "$lt_prog_compiler_pic_GCJ"; then
15863 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15864 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15865 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868 lt_prog_compiler_pic_works_GCJ=no
15869 ac_outfile=conftest.$ac_objext
15870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15871 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15872 # Insert the option either (1) after the last *FLAGS variable, or
15873 # (2) before a word containing "conftest.", or (3) at the end.
15874 # Note that $ac_compile itself does not contain backslashes and begins
15875 # with a dollar sign (not a hyphen), so the echo should work correctly.
15876 # The option is referenced via a variable to avoid confusing sed.
15877 lt_compile=`echo "$ac_compile" | $SED \
15878 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15880 -e 's:$: $lt_compiler_flag:'`
15881 (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
15882 (eval "$lt_compile" 2>conftest.err)
15883 ac_status=$?
15884 cat conftest.err >&5
15885 echo "$as_me:15885: \$? = $ac_status" >&5
15886 if (exit $ac_status) && test -s "$ac_outfile"; then
15887 # The compiler can only warn and ignore the option if not recognized
15888 # So say no if there are warnings
15889 if test ! -s conftest.err; then
15890 lt_prog_compiler_pic_works_GCJ=yes
15893 $rm conftest*
15896 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15897 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15899 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15900 case $lt_prog_compiler_pic_GCJ in
15901 "" | " "*) ;;
15902 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15903 esac
15904 else
15905 lt_prog_compiler_pic_GCJ=
15906 lt_prog_compiler_can_build_shared_GCJ=no
15910 case "$host_os" in
15911 # For platforms which do not support PIC, -DPIC is meaningless:
15912 *djgpp*)
15913 lt_prog_compiler_pic_GCJ=
15916 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15918 esac
15920 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15922 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925 lt_cv_prog_compiler_c_o_GCJ=no
15926 $rm -r conftest 2>/dev/null
15927 mkdir conftest
15928 cd conftest
15929 mkdir out
15930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15932 lt_compiler_flag="-o out/conftest2.$ac_objext"
15933 # Insert the option either (1) after the last *FLAGS variable, or
15934 # (2) before a word containing "conftest.", or (3) at the end.
15935 # Note that $ac_compile itself does not contain backslashes and begins
15936 # with a dollar sign (not a hyphen), so the echo should work correctly.
15937 lt_compile=`echo "$ac_compile" | $SED \
15938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15940 -e 's:$: $lt_compiler_flag:'`
15941 (eval echo "\"\$as_me:15941: $lt_compile\"" >&5)
15942 (eval "$lt_compile" 2>out/conftest.err)
15943 ac_status=$?
15944 cat out/conftest.err >&5
15945 echo "$as_me:15945: \$? = $ac_status" >&5
15946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15947 then
15948 # The compiler can only warn and ignore the option if not recognized
15949 # So say no if there are warnings
15950 if test ! -s out/conftest.err; then
15951 lt_cv_prog_compiler_c_o_GCJ=yes
15954 chmod u+w .
15955 $rm conftest*
15956 # SGI C++ compiler will create directory out/ii_files/ for
15957 # template instantiation
15958 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15959 $rm out/* && rmdir out
15960 cd ..
15961 rmdir conftest
15962 $rm conftest*
15965 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15969 hard_links="nottested"
15970 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15971 # do not overwrite the value of need_locks provided by the user
15972 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15973 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15974 hard_links=yes
15975 $rm conftest*
15976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15977 touch conftest.a
15978 ln conftest.a conftest.b 2>&5 || hard_links=no
15979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15980 echo "$as_me:$LINENO: result: $hard_links" >&5
15981 echo "${ECHO_T}$hard_links" >&6
15982 if test "$hard_links" = no; then
15983 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15984 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15985 need_locks=warn
15987 else
15988 need_locks=no
15991 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15994 runpath_var=
15995 allow_undefined_flag_GCJ=
15996 enable_shared_with_static_runtimes_GCJ=no
15997 archive_cmds_GCJ=
15998 archive_expsym_cmds_GCJ=
15999 old_archive_From_new_cmds_GCJ=
16000 old_archive_from_expsyms_cmds_GCJ=
16001 export_dynamic_flag_spec_GCJ=
16002 whole_archive_flag_spec_GCJ=
16003 thread_safe_flag_spec_GCJ=
16004 hardcode_libdir_flag_spec_GCJ=
16005 hardcode_libdir_flag_spec_ld_GCJ=
16006 hardcode_libdir_separator_GCJ=
16007 hardcode_direct_GCJ=no
16008 hardcode_minus_L_GCJ=no
16009 hardcode_shlibpath_var_GCJ=unsupported
16010 link_all_deplibs_GCJ=unknown
16011 hardcode_automatic_GCJ=no
16012 module_cmds_GCJ=
16013 module_expsym_cmds_GCJ=
16014 always_export_symbols_GCJ=no
16015 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16016 # include_expsyms should be a list of space-separated symbols to be *always*
16017 # included in the symbol list
16018 include_expsyms_GCJ=
16019 # exclude_expsyms can be an extended regexp of symbols to exclude
16020 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16021 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16022 # as well as any symbol that contains `d'.
16023 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16025 # platforms (ab)use it in PIC code, but their linkers get confused if
16026 # the symbol is explicitly referenced. Since portable code cannot
16027 # rely on this symbol name, it's probably fine to never include it in
16028 # preloaded symbol tables.
16029 extract_expsyms_cmds=
16031 case $host_os in
16032 cygwin* | mingw* | pw32*)
16033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16034 # When not using gcc, we currently assume that we are using
16035 # Microsoft Visual C++.
16036 if test "$GCC" != yes; then
16037 with_gnu_ld=no
16040 openbsd*)
16041 with_gnu_ld=no
16043 esac
16045 ld_shlibs_GCJ=yes
16046 if test "$with_gnu_ld" = yes; then
16047 # If archive_cmds runs LD, not CC, wlarc should be empty
16048 wlarc='${wl}'
16050 # See if GNU ld supports shared libraries.
16051 case $host_os in
16052 aix3* | aix4* | aix5*)
16053 # On AIX/PPC, the GNU linker is very broken
16054 if test "$host_cpu" != ia64; then
16055 ld_shlibs_GCJ=no
16056 cat <<EOF 1>&2
16058 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16059 *** to be unable to reliably create shared libraries on AIX.
16060 *** Therefore, libtool is disabling shared libraries support. If you
16061 *** really care for shared libraries, you may want to modify your PATH
16062 *** so that a non-GNU linker is found, and then restart.
16068 amigaos*)
16069 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)'
16070 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16071 hardcode_minus_L_GCJ=yes
16073 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16074 # that the semantics of dynamic libraries on AmigaOS, at least up
16075 # to version 4, is to share data among multiple programs linked
16076 # with the same dynamic library. Since this doesn't match the
16077 # behavior of shared libraries on other platforms, we can't use
16078 # them.
16079 ld_shlibs_GCJ=no
16082 beos*)
16083 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16084 allow_undefined_flag_GCJ=unsupported
16085 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16086 # support --undefined. This deserves some investigation. FIXME
16087 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16088 else
16089 ld_shlibs_GCJ=no
16093 cygwin* | mingw* | pw32*)
16094 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16095 # as there is no search path for DLLs.
16096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16097 allow_undefined_flag_GCJ=unsupported
16098 always_export_symbols_GCJ=no
16099 enable_shared_with_static_runtimes_GCJ=yes
16100 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16102 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16103 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16104 # If the export-symbols file already is a .def file (1st line
16105 # is EXPORTS), use it as is; otherwise, prepend...
16106 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16107 cp $export_symbols $output_objdir/$soname.def;
16108 else
16109 echo EXPORTS > $output_objdir/$soname.def;
16110 cat $export_symbols >> $output_objdir/$soname.def;
16112 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16113 else
16114 ld_shlibs_GCJ=no
16118 netbsd*)
16119 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16120 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16121 wlarc=
16122 else
16123 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16128 solaris* | sysv5*)
16129 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16130 ld_shlibs_GCJ=no
16131 cat <<EOF 1>&2
16133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16134 *** create shared libraries on Solaris systems. Therefore, libtool
16135 *** is disabling shared libraries support. We urge you to upgrade GNU
16136 *** binutils to release 2.9.1 or newer. Another option is to modify
16137 *** your PATH or compiler configuration so that the native linker is
16138 *** used, and then restart.
16141 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16143 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16144 else
16145 ld_shlibs_GCJ=no
16149 sunos4*)
16150 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16151 wlarc=
16152 hardcode_direct_GCJ=yes
16153 hardcode_shlibpath_var_GCJ=no
16156 linux*)
16157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16158 tmp_addflag=
16159 case $CC,$host_cpu in
16160 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16161 tmp_addflag=' -fpic' ;;
16162 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16163 tmp_addflag=' -i_dynamic' ;;
16164 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16165 tmp_addflag=' -i_dynamic -nofor_main' ;;
16166 ifc* | ifort*) # Intel Fortran compiler
16167 tmp_addflag=' -nofor_main' ;;
16168 esac
16169 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170 supports_anon_versioning=no
16171 case `$LD -v 2>/dev/null` in
16172 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16173 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16174 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16175 *\ 2.11.*) ;; # other 2.11 versions
16176 *) supports_anon_versioning=yes ;;
16177 esac
16178 if test $supports_anon_versioning = yes; then
16179 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16181 $echo "local: *; };" >> $output_objdir/$libname.ver~
16182 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16183 else
16184 archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16186 else
16187 ld_shlibs_GCJ=no
16192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16193 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16194 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16195 else
16196 ld_shlibs_GCJ=no
16199 esac
16201 if test "$ld_shlibs_GCJ" = yes; then
16202 runpath_var=LD_RUN_PATH
16203 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16204 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16205 # ancient GNU ld didn't support --whole-archive et. al.
16206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16207 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16208 else
16209 whole_archive_flag_spec_GCJ=
16212 else
16213 # PORTME fill in a description of your system's linker (not GNU ld)
16214 case $host_os in
16215 aix3*)
16216 allow_undefined_flag_GCJ=unsupported
16217 always_export_symbols_GCJ=yes
16218 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'
16219 # Note: this linker hardcodes the directories in LIBPATH if there
16220 # are no directories specified by -L.
16221 hardcode_minus_L_GCJ=yes
16222 if test "$GCC" = yes && test -z "$link_static_flag"; then
16223 # Neither direct hardcoding nor static linking is supported with a
16224 # broken collect2.
16225 hardcode_direct_GCJ=unsupported
16229 aix4* | aix5*)
16230 if test "$host_cpu" = ia64; then
16231 # On IA64, the linker does run time linking by default, so we don't
16232 # have to do anything special.
16233 aix_use_runtimelinking=no
16234 exp_sym_flag='-Bexport'
16235 no_entry_flag=""
16236 else
16237 # If we're using GNU nm, then we don't want the "-C" option.
16238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16240 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'
16241 else
16242 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'
16244 aix_use_runtimelinking=no
16246 # Test if we are trying to use run time linking or normal
16247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16248 # need to do runtime linking.
16249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16250 for ld_flag in $LDFLAGS; do
16251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16252 aix_use_runtimelinking=yes
16253 break
16255 done
16256 esac
16258 exp_sym_flag='-bexport'
16259 no_entry_flag='-bnoentry'
16262 # When large executables or shared objects are built, AIX ld can
16263 # have problems creating the table of contents. If linking a library
16264 # or program results in "error TOC overflow" add -mminimal-toc to
16265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16268 archive_cmds_GCJ=''
16269 hardcode_direct_GCJ=yes
16270 hardcode_libdir_separator_GCJ=':'
16271 link_all_deplibs_GCJ=yes
16273 if test "$GCC" = yes; then
16274 case $host_os in aix4.[012]|aix4.[012].*)
16275 # We only want to do this on AIX 4.2 and lower, the check
16276 # below for broken collect2 doesn't work under 4.3+
16277 collect2name=`${CC} -print-prog-name=collect2`
16278 if test -f "$collect2name" && \
16279 strings "$collect2name" | grep resolve_lib_name >/dev/null
16280 then
16281 # We have reworked collect2
16282 hardcode_direct_GCJ=yes
16283 else
16284 # We have old collect2
16285 hardcode_direct_GCJ=unsupported
16286 # It fails to find uninstalled libraries when the uninstalled
16287 # path is not listed in the libpath. Setting hardcode_minus_L
16288 # to unsupported forces relinking
16289 hardcode_minus_L_GCJ=yes
16290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16291 hardcode_libdir_separator_GCJ=
16293 esac
16294 shared_flag='-shared'
16295 if test "$aix_use_runtimelinking" = yes; then
16296 shared_flag="$shared_flag "'${wl}-G'
16298 else
16299 # not using gcc
16300 if test "$host_cpu" = ia64; then
16301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16302 # chokes on -Wl,-G. The following line is correct:
16303 shared_flag='-G'
16304 else
16305 if test "$aix_use_runtimelinking" = yes; then
16306 shared_flag='${wl}-G'
16307 else
16308 shared_flag='${wl}-bM:SRE'
16313 # It seems that -bexpall does not export symbols beginning with
16314 # underscore (_), so it is better to generate a list of symbols to export.
16315 always_export_symbols_GCJ=yes
16316 if test "$aix_use_runtimelinking" = yes; then
16317 # Warning - without using the other runtime loading flags (-brtl),
16318 # -berok will link without error, but may produce a broken library.
16319 allow_undefined_flag_GCJ='-berok'
16320 # Determine the default libpath from the value encoded in an empty executable.
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h. */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16329 main ()
16333 return 0;
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338 (eval $ac_link) 2>conftest.er1
16339 ac_status=$?
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -z "$ac_c_werror_flag"
16346 || test ! -s conftest.err'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest$ac_exeext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16361 # Check for a 64-bit object if we didn't find anything.
16362 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; }
16363 }'`; fi
16364 else
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16369 rm -f conftest.err conftest.$ac_objext \
16370 conftest$ac_exeext conftest.$ac_ext
16371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16373 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16374 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"
16375 else
16376 if test "$host_cpu" = ia64; then
16377 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16378 allow_undefined_flag_GCJ="-z nodefs"
16379 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"
16380 else
16381 # Determine the default libpath from the value encoded in an empty executable.
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h. */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16390 main ()
16394 return 0;
16396 _ACEOF
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16399 (eval $ac_link) 2>conftest.er1
16400 ac_status=$?
16401 grep -v '^ *+' conftest.er1 >conftest.err
16402 rm -f conftest.er1
16403 cat conftest.err >&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
16406 { ac_try='test -z "$ac_c_werror_flag"
16407 || test ! -s conftest.err'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; } &&
16413 { ac_try='test -s conftest$ac_exeext'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16422 # Check for a 64-bit object if we didn't find anything.
16423 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; }
16424 }'`; fi
16425 else
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16430 rm -f conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16434 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16435 # Warning - without using the other run time loading flags,
16436 # -berok will link without error, but may produce a broken library.
16437 no_undefined_flag_GCJ=' ${wl}-bernotok'
16438 allow_undefined_flag_GCJ=' ${wl}-berok'
16439 # -bexpall does not export symbols beginning with underscore (_)
16440 always_export_symbols_GCJ=yes
16441 # Exported symbols can be pulled into shared objects from archives
16442 whole_archive_flag_spec_GCJ=' '
16443 archive_cmds_need_lc_GCJ=yes
16444 # This is similar to how AIX traditionally builds it's shared libraries.
16445 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'
16450 amigaos*)
16451 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)'
16452 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16453 hardcode_minus_L_GCJ=yes
16454 # see comment about different semantics on the GNU ld section
16455 ld_shlibs_GCJ=no
16458 bsdi[45]*)
16459 export_dynamic_flag_spec_GCJ=-rdynamic
16462 cygwin* | mingw* | pw32*)
16463 # When not using gcc, we currently assume that we are using
16464 # Microsoft Visual C++.
16465 # hardcode_libdir_flag_spec is actually meaningless, as there is
16466 # no search path for DLLs.
16467 hardcode_libdir_flag_spec_GCJ=' '
16468 allow_undefined_flag_GCJ=unsupported
16469 # Tell ltmain to make .lib files, not .a files.
16470 libext=lib
16471 # Tell ltmain to make .dll files, not .so files.
16472 shrext_cmds=".dll"
16473 # FIXME: Setting linknames here is a bad hack.
16474 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16475 # The linker will automatically build a .lib file if we build a DLL.
16476 old_archive_From_new_cmds_GCJ='true'
16477 # FIXME: Should let the user specify the lib program.
16478 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16479 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16480 enable_shared_with_static_runtimes_GCJ=yes
16483 darwin* | rhapsody*)
16484 case "$host_os" in
16485 rhapsody* | darwin1.[012])
16486 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16488 *) # Darwin 1.3 on
16489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16490 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16491 else
16492 case ${MACOSX_DEPLOYMENT_TARGET} in
16493 10.[012])
16494 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16496 10.*)
16497 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16499 esac
16502 esac
16503 archive_cmds_need_lc_GCJ=no
16504 hardcode_direct_GCJ=no
16505 hardcode_automatic_GCJ=yes
16506 hardcode_shlibpath_var_GCJ=unsupported
16507 whole_archive_flag_spec_GCJ=''
16508 link_all_deplibs_GCJ=yes
16509 if test "$GCC" = yes ; then
16510 output_verbose_link_cmd='echo'
16511 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16512 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16514 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}'
16515 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}'
16516 else
16517 case "$cc_basename" in
16518 xlc*)
16519 output_verbose_link_cmd='echo'
16520 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16521 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16522 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16523 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}'
16524 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}'
16527 ld_shlibs_GCJ=no
16529 esac
16533 dgux*)
16534 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16536 hardcode_shlibpath_var_GCJ=no
16539 freebsd1*)
16540 ld_shlibs_GCJ=no
16543 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16544 # support. Future versions do this automatically, but an explicit c++rt0.o
16545 # does not break anything, and helps significantly (at the cost of a little
16546 # extra space).
16547 freebsd2.2*)
16548 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16549 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16550 hardcode_direct_GCJ=yes
16551 hardcode_shlibpath_var_GCJ=no
16554 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16555 freebsd2*)
16556 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_direct_GCJ=yes
16558 hardcode_minus_L_GCJ=yes
16559 hardcode_shlibpath_var_GCJ=no
16562 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16563 freebsd* | kfreebsd*-gnu | dragonfly*)
16564 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16565 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16566 hardcode_direct_GCJ=yes
16567 hardcode_shlibpath_var_GCJ=no
16570 hpux9*)
16571 if test "$GCC" = yes; then
16572 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'
16573 else
16574 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'
16576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16577 hardcode_libdir_separator_GCJ=:
16578 hardcode_direct_GCJ=yes
16580 # hardcode_minus_L: Not really in the search PATH,
16581 # but as the default location of the library.
16582 hardcode_minus_L_GCJ=yes
16583 export_dynamic_flag_spec_GCJ='${wl}-E'
16586 hpux10* | hpux11*)
16587 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16588 case "$host_cpu" in
16589 hppa*64*|ia64*)
16590 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16595 esac
16596 else
16597 case "$host_cpu" in
16598 hppa*64*|ia64*)
16599 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16602 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16604 esac
16606 if test "$with_gnu_ld" = no; then
16607 case "$host_cpu" in
16608 hppa*64*)
16609 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16610 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16611 hardcode_libdir_separator_GCJ=:
16612 hardcode_direct_GCJ=no
16613 hardcode_shlibpath_var_GCJ=no
16615 ia64*)
16616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16617 hardcode_direct_GCJ=no
16618 hardcode_shlibpath_var_GCJ=no
16620 # hardcode_minus_L: Not really in the search PATH,
16621 # but as the default location of the library.
16622 hardcode_minus_L_GCJ=yes
16625 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16626 hardcode_libdir_separator_GCJ=:
16627 hardcode_direct_GCJ=yes
16628 export_dynamic_flag_spec_GCJ='${wl}-E'
16630 # hardcode_minus_L: Not really in the search PATH,
16631 # but as the default location of the library.
16632 hardcode_minus_L_GCJ=yes
16634 esac
16638 irix5* | irix6* | nonstopux*)
16639 if test "$GCC" = yes; then
16640 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'
16641 else
16642 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'
16643 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16646 hardcode_libdir_separator_GCJ=:
16647 link_all_deplibs_GCJ=yes
16650 netbsd*)
16651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16652 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16653 else
16654 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16656 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16657 hardcode_direct_GCJ=yes
16658 hardcode_shlibpath_var_GCJ=no
16661 newsos6)
16662 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16663 hardcode_direct_GCJ=yes
16664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16665 hardcode_libdir_separator_GCJ=:
16666 hardcode_shlibpath_var_GCJ=no
16669 openbsd*)
16670 hardcode_direct_GCJ=yes
16671 hardcode_shlibpath_var_GCJ=no
16672 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16673 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16674 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16675 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16676 export_dynamic_flag_spec_GCJ='${wl}-E'
16677 else
16678 case $host_os in
16679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16680 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16681 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16684 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16687 esac
16691 os2*)
16692 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16693 hardcode_minus_L_GCJ=yes
16694 allow_undefined_flag_GCJ=unsupported
16695 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'
16696 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16699 osf3*)
16700 if test "$GCC" = yes; then
16701 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16702 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'
16703 else
16704 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16705 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'
16707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16708 hardcode_libdir_separator_GCJ=:
16711 osf4* | osf5*) # as osf3* with the addition of -msym flag
16712 if test "$GCC" = yes; then
16713 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16714 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'
16715 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16716 else
16717 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16718 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'
16719 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~
16720 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16722 # Both c and cxx compiler support -rpath directly
16723 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16725 hardcode_libdir_separator_GCJ=:
16728 sco3.2v5*)
16729 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730 hardcode_shlibpath_var_GCJ=no
16731 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16732 runpath_var=LD_RUN_PATH
16733 hardcode_runpath_var=yes
16736 solaris*)
16737 no_undefined_flag_GCJ=' -z text'
16738 if test "$GCC" = yes; then
16739 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16740 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16742 else
16743 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16744 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16747 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16748 hardcode_shlibpath_var_GCJ=no
16749 case $host_os in
16750 solaris2.[0-5] | solaris2.[0-5].*) ;;
16751 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16752 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16753 esac
16754 link_all_deplibs_GCJ=yes
16757 sunos4*)
16758 if test "x$host_vendor" = xsequent; then
16759 # Use $CC to link under sequent, because it throws in some extra .o
16760 # files that make .init and .fini sections work.
16761 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16762 else
16763 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16765 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16766 hardcode_direct_GCJ=yes
16767 hardcode_minus_L_GCJ=yes
16768 hardcode_shlibpath_var_GCJ=no
16771 sysv4)
16772 case $host_vendor in
16773 sni)
16774 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16775 hardcode_direct_GCJ=yes # is this really true???
16777 siemens)
16778 ## LD is ld it makes a PLAMLIB
16779 ## CC just makes a GrossModule.
16780 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16781 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16782 hardcode_direct_GCJ=no
16784 motorola)
16785 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16786 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16788 esac
16789 runpath_var='LD_RUN_PATH'
16790 hardcode_shlibpath_var_GCJ=no
16793 sysv4.3*)
16794 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16795 hardcode_shlibpath_var_GCJ=no
16796 export_dynamic_flag_spec_GCJ='-Bexport'
16799 sysv4*MP*)
16800 if test -d /usr/nec; then
16801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16802 hardcode_shlibpath_var_GCJ=no
16803 runpath_var=LD_RUN_PATH
16804 hardcode_runpath_var=yes
16805 ld_shlibs_GCJ=yes
16809 sysv4.2uw2*)
16810 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16811 hardcode_direct_GCJ=yes
16812 hardcode_minus_L_GCJ=no
16813 hardcode_shlibpath_var_GCJ=no
16814 hardcode_runpath_var=yes
16815 runpath_var=LD_RUN_PATH
16818 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16819 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16820 if test "$GCC" = yes; then
16821 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16822 else
16823 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16825 runpath_var='LD_RUN_PATH'
16826 hardcode_shlibpath_var_GCJ=no
16829 sysv5*)
16830 no_undefined_flag_GCJ=' -z text'
16831 # $CC -shared without GNU ld will not create a library from C++
16832 # object files and a static libstdc++, better avoid it by now
16833 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16834 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16836 hardcode_libdir_flag_spec_GCJ=
16837 hardcode_shlibpath_var_GCJ=no
16838 runpath_var='LD_RUN_PATH'
16841 uts4*)
16842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16844 hardcode_shlibpath_var_GCJ=no
16848 ld_shlibs_GCJ=no
16850 esac
16853 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16854 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16855 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16858 if test "$GCC" = yes; then
16859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16863 # Do we need to explicitly link libc?
16865 case "x$archive_cmds_need_lc_GCJ" in
16866 x|xyes)
16867 # Assume -lc should be added
16868 archive_cmds_need_lc_GCJ=yes
16870 if test "$enable_shared" = yes && test "$GCC" = yes; then
16871 case $archive_cmds_GCJ in
16872 *'~'*)
16873 # FIXME: we may have to deal with multi-command sequences.
16875 '$CC '*)
16876 # Test whether the compiler implicitly links with -lc since on some
16877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16878 # to ld, don't add -lc before -lgcc.
16879 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16880 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16881 $rm conftest*
16882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885 (eval $ac_compile) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } 2>conftest.err; then
16889 soname=conftest
16890 lib=conftest
16891 libobjs=conftest.$ac_objext
16892 deplibs=
16893 wl=$lt_prog_compiler_wl_GCJ
16894 compiler_flags=-v
16895 linker_flags=-v
16896 verstring=
16897 output_objdir=.
16898 libname=conftest
16899 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16900 allow_undefined_flag_GCJ=
16901 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16902 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }
16906 then
16907 archive_cmds_need_lc_GCJ=no
16908 else
16909 archive_cmds_need_lc_GCJ=yes
16911 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16912 else
16913 cat conftest.err 1>&5
16915 $rm conftest*
16916 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16917 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16919 esac
16922 esac
16924 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16925 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16926 library_names_spec=
16927 libname_spec='lib$name'
16928 soname_spec=
16929 shrext_cmds=".so"
16930 postinstall_cmds=
16931 postuninstall_cmds=
16932 finish_cmds=
16933 finish_eval=
16934 shlibpath_var=
16935 shlibpath_overrides_runpath=unknown
16936 version_type=none
16937 dynamic_linker="$host_os ld.so"
16938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16939 if test "$GCC" = yes; then
16940 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16941 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16942 # if the path contains ";" then we assume it to be the separator
16943 # otherwise default to the standard path separator (i.e. ":") - it is
16944 # assumed that no part of a normal pathname contains ";" but that should
16945 # okay in the real world where ";" in dirpaths is itself problematic.
16946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16947 else
16948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16950 else
16951 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16953 need_lib_prefix=unknown
16954 hardcode_into_libs=no
16956 # when you set need_version to no, make sure it does not cause -set_version
16957 # flags to be left without arguments
16958 need_version=unknown
16960 case $host_os in
16961 aix3*)
16962 version_type=linux
16963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16964 shlibpath_var=LIBPATH
16966 # AIX 3 has no versioning support, so we append a major version to the name.
16967 soname_spec='${libname}${release}${shared_ext}$major'
16970 aix4* | aix5*)
16971 version_type=linux
16972 need_lib_prefix=no
16973 need_version=no
16974 hardcode_into_libs=yes
16975 if test "$host_cpu" = ia64; then
16976 # AIX 5 supports IA64
16977 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16978 shlibpath_var=LD_LIBRARY_PATH
16979 else
16980 # With GCC up to 2.95.x, collect2 would create an import file
16981 # for dependence libraries. The import file would start with
16982 # the line `#! .'. This would cause the generated library to
16983 # depend on `.', always an invalid library. This was fixed in
16984 # development snapshots of GCC prior to 3.0.
16985 case $host_os in
16986 aix4 | aix4.[01] | aix4.[01].*)
16987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16988 echo ' yes '
16989 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16991 else
16992 can_build_shared=no
16995 esac
16996 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16997 # soname into executable. Probably we can add versioning support to
16998 # collect2, so additional links can be useful in future.
16999 if test "$aix_use_runtimelinking" = yes; then
17000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17001 # instead of lib<name>.a to let people know that these are not
17002 # typical AIX shared libraries.
17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004 else
17005 # We preserve .a as extension for shared libraries through AIX4.2
17006 # and later when we are not doing run time linking.
17007 library_names_spec='${libname}${release}.a $libname.a'
17008 soname_spec='${libname}${release}${shared_ext}$major'
17010 shlibpath_var=LIBPATH
17014 amigaos*)
17015 library_names_spec='$libname.ixlibrary $libname.a'
17016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17017 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'
17020 beos*)
17021 library_names_spec='${libname}${shared_ext}'
17022 dynamic_linker="$host_os ld.so"
17023 shlibpath_var=LIBRARY_PATH
17026 bsdi[45]*)
17027 version_type=linux
17028 need_version=no
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec='${libname}${release}${shared_ext}$major'
17031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17035 # the default ld.so.conf also contains /usr/contrib/lib and
17036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17037 # libtool to hard-code these into programs
17040 cygwin* | mingw* | pw32*)
17041 version_type=windows
17042 shrext_cmds=".dll"
17043 need_version=no
17044 need_lib_prefix=no
17046 case $GCC,$host_os in
17047 yes,cygwin* | yes,mingw* | yes,pw32*)
17048 library_names_spec='$libname.dll.a'
17049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17050 postinstall_cmds='base_file=`basename \${file}`~
17051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17052 dldir=$destdir/`dirname \$dlpath`~
17053 test -d \$dldir || mkdir -p \$dldir~
17054 $install_prog $dir/$dlname \$dldir/$dlname'
17055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17056 dlpath=$dir/\$dldll~
17057 $rm \$dlpath'
17058 shlibpath_overrides_runpath=yes
17060 case $host_os in
17061 cygwin*)
17062 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17063 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17064 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17066 mingw*)
17067 # MinGW DLLs use traditional 'lib' prefix
17068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17069 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17070 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17071 # It is most probably a Windows format PATH printed by
17072 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17073 # path with ; separators, and with drive letters. We can handle the
17074 # drive letters (cygwin fileutils understands them), so leave them,
17075 # especially as we might pass files found there to a mingw objdump,
17076 # which wouldn't understand a cygwinified path. Ahh.
17077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17078 else
17079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17082 pw32*)
17083 # pw32 DLLs use 'pw' prefix rather than 'lib'
17084 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17086 esac
17090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17092 esac
17093 dynamic_linker='Win32 ld.exe'
17094 # FIXME: first we should search . and the directory the executable is in
17095 shlibpath_var=PATH
17098 darwin* | rhapsody*)
17099 dynamic_linker="$host_os dyld"
17100 version_type=darwin
17101 need_lib_prefix=no
17102 need_version=no
17103 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17104 soname_spec='${libname}${release}${major}$shared_ext'
17105 shlibpath_overrides_runpath=yes
17106 shlibpath_var=DYLD_LIBRARY_PATH
17107 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17108 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17109 if test "$GCC" = yes; then
17110 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"`
17111 else
17112 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17117 dgux*)
17118 version_type=linux
17119 need_lib_prefix=no
17120 need_version=no
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17122 soname_spec='${libname}${release}${shared_ext}$major'
17123 shlibpath_var=LD_LIBRARY_PATH
17126 freebsd1*)
17127 dynamic_linker=no
17130 kfreebsd*-gnu)
17131 version_type=linux
17132 need_lib_prefix=no
17133 need_version=no
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath=no
17138 hardcode_into_libs=yes
17139 dynamic_linker='GNU ld.so'
17142 freebsd* | dragonfly*)
17143 # DragonFly does not have aout. When/if they implement a new
17144 # versioning mechanism, adjust this.
17145 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17146 version_type=freebsd-$objformat
17147 case $version_type in
17148 freebsd-elf*)
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17150 need_version=no
17151 need_lib_prefix=no
17153 freebsd-*)
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17155 need_version=yes
17157 esac
17158 shlibpath_var=LD_LIBRARY_PATH
17159 case $host_os in
17160 freebsd2*)
17161 shlibpath_overrides_runpath=yes
17163 freebsd3.[01]* | freebsdelf3.[01]*)
17164 shlibpath_overrides_runpath=yes
17165 hardcode_into_libs=yes
17167 *) # from 3.2 on
17168 shlibpath_overrides_runpath=no
17169 hardcode_into_libs=yes
17171 esac
17174 gnu*)
17175 version_type=linux
17176 need_lib_prefix=no
17177 need_version=no
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17179 soname_spec='${libname}${release}${shared_ext}$major'
17180 shlibpath_var=LD_LIBRARY_PATH
17181 hardcode_into_libs=yes
17184 hpux9* | hpux10* | hpux11*)
17185 # Give a soname corresponding to the major version so that dld.sl refuses to
17186 # link against other versions.
17187 version_type=sunos
17188 need_lib_prefix=no
17189 need_version=no
17190 case "$host_cpu" in
17191 ia64*)
17192 shrext_cmds='.so'
17193 hardcode_into_libs=yes
17194 dynamic_linker="$host_os dld.so"
17195 shlibpath_var=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 if test "X$HPUX_IA64_MODE" = X32; then
17200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17201 else
17202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17206 hppa*64*)
17207 shrext_cmds='.sl'
17208 hardcode_into_libs=yes
17209 dynamic_linker="$host_os dld.sl"
17210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17218 shrext_cmds='.sl'
17219 dynamic_linker="$host_os dld.sl"
17220 shlibpath_var=SHLIB_PATH
17221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 soname_spec='${libname}${release}${shared_ext}$major'
17225 esac
17226 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17227 postinstall_cmds='chmod 555 $lib'
17230 irix5* | irix6* | nonstopux*)
17231 case $host_os in
17232 nonstopux*) version_type=nonstopux ;;
17234 if test "$lt_cv_prog_gnu_ld" = yes; then
17235 version_type=linux
17236 else
17237 version_type=irix
17238 fi ;;
17239 esac
17240 need_lib_prefix=no
17241 need_version=no
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17244 case $host_os in
17245 irix5* | nonstopux*)
17246 libsuff= shlibsuff=
17249 case $LD in # libtool.m4 will add one of these switches to LD
17250 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17251 libsuff= shlibsuff= libmagic=32-bit;;
17252 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17253 libsuff=32 shlibsuff=N32 libmagic=N32;;
17254 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17255 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17256 *) libsuff= shlibsuff= libmagic=never-match;;
17257 esac
17259 esac
17260 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17261 shlibpath_overrides_runpath=no
17262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17264 hardcode_into_libs=yes
17267 # No shared lib support for Linux oldld, aout, or coff.
17268 linux*oldld* | linux*aout* | linux*coff*)
17269 dynamic_linker=no
17272 # This must be Linux ELF.
17273 linux*)
17274 version_type=linux
17275 need_lib_prefix=no
17276 need_version=no
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=no
17282 # This implies no fast_install, which is unacceptable.
17283 # Some rework will be needed to allow for fast_install
17284 # before this can be enabled.
17285 hardcode_into_libs=yes
17287 # Append ld.so.conf contents to the search path
17288 if test -f /etc/ld.so.conf; then
17289 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17290 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17293 # We used to test for /lib/ld.so.1 and disable shared libraries on
17294 # powerpc, because MkLinux only supported shared libraries with the
17295 # GNU dynamic linker. Since this was broken with cross compilers,
17296 # most powerpc-linux boxes support dynamic linking these days and
17297 # people can always --disable-shared, the test was removed, and we
17298 # assume the GNU/Linux dynamic linker is in use.
17299 dynamic_linker='GNU/Linux ld.so'
17302 knetbsd*-gnu)
17303 version_type=linux
17304 need_lib_prefix=no
17305 need_version=no
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17307 soname_spec='${libname}${release}${shared_ext}$major'
17308 shlibpath_var=LD_LIBRARY_PATH
17309 shlibpath_overrides_runpath=no
17310 hardcode_into_libs=yes
17311 dynamic_linker='GNU ld.so'
17314 netbsd*)
17315 version_type=sunos
17316 need_lib_prefix=no
17317 need_version=no
17318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17321 dynamic_linker='NetBSD (a.out) ld.so'
17322 else
17323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17324 soname_spec='${libname}${release}${shared_ext}$major'
17325 dynamic_linker='NetBSD ld.elf_so'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 shlibpath_overrides_runpath=yes
17329 hardcode_into_libs=yes
17332 newsos6)
17333 version_type=linux
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath=yes
17339 nto-qnx*)
17340 version_type=linux
17341 need_lib_prefix=no
17342 need_version=no
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344 soname_spec='${libname}${release}${shared_ext}$major'
17345 shlibpath_var=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath=yes
17349 openbsd*)
17350 version_type=sunos
17351 need_lib_prefix=no
17352 need_version=no
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17357 case $host_os in
17358 openbsd2.[89] | openbsd2.[89].*)
17359 shlibpath_overrides_runpath=no
17362 shlibpath_overrides_runpath=yes
17364 esac
17365 else
17366 shlibpath_overrides_runpath=yes
17370 os2*)
17371 libname_spec='$name'
17372 shrext_cmds=".dll"
17373 need_lib_prefix=no
17374 library_names_spec='$libname${shared_ext} $libname.a'
17375 dynamic_linker='OS/2 ld.exe'
17376 shlibpath_var=LIBPATH
17379 osf3* | osf4* | osf5*)
17380 version_type=osf
17381 need_lib_prefix=no
17382 need_version=no
17383 soname_spec='${libname}${release}${shared_ext}$major'
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17390 sco3.2v5*)
17391 version_type=osf
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394 shlibpath_var=LD_LIBRARY_PATH
17397 solaris*)
17398 version_type=linux
17399 need_lib_prefix=no
17400 need_version=no
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 shlibpath_var=LD_LIBRARY_PATH
17404 shlibpath_overrides_runpath=yes
17405 hardcode_into_libs=yes
17406 # ldd complains unless libraries are executable
17407 postinstall_cmds='chmod +x $lib'
17410 sunos4*)
17411 version_type=sunos
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath=yes
17416 if test "$with_gnu_ld" = yes; then
17417 need_lib_prefix=no
17419 need_version=yes
17422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17423 version_type=linux
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 case $host_vendor in
17428 sni)
17429 shlibpath_overrides_runpath=no
17430 need_lib_prefix=no
17431 export_dynamic_flag_spec='${wl}-Blargedynsym'
17432 runpath_var=LD_RUN_PATH
17434 siemens)
17435 need_lib_prefix=no
17437 motorola)
17438 need_lib_prefix=no
17439 need_version=no
17440 shlibpath_overrides_runpath=no
17441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17443 esac
17446 sysv4*MP*)
17447 if test -d /usr/nec ;then
17448 version_type=linux
17449 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17450 soname_spec='$libname${shared_ext}.$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17455 uts4*)
17456 version_type=linux
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 soname_spec='${libname}${release}${shared_ext}$major'
17459 shlibpath_var=LD_LIBRARY_PATH
17463 dynamic_linker=no
17465 esac
17466 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17467 echo "${ECHO_T}$dynamic_linker" >&6
17468 test "$dynamic_linker" = no && can_build_shared=no
17470 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17472 hardcode_action_GCJ=
17473 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17474 test -n "$runpath_var_GCJ" || \
17475 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17477 # We can hardcode non-existant directories.
17478 if test "$hardcode_direct_GCJ" != no &&
17479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17480 # have to relink, otherwise we might link with an installed library
17481 # when we should be linking with a yet-to-be-installed one
17482 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17483 test "$hardcode_minus_L_GCJ" != no; then
17484 # Linking always hardcodes the temporary library directory.
17485 hardcode_action_GCJ=relink
17486 else
17487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17488 hardcode_action_GCJ=immediate
17490 else
17491 # We cannot hardcode anything, or else we can only hardcode existing
17492 # directories.
17493 hardcode_action_GCJ=unsupported
17495 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17496 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17498 if test "$hardcode_action_GCJ" = relink; then
17499 # Fast installation is not supported
17500 enable_fast_install=no
17501 elif test "$shlibpath_overrides_runpath" = yes ||
17502 test "$enable_shared" = no; then
17503 # Fast installation is not necessary
17504 enable_fast_install=needless
17507 striplib=
17508 old_striplib=
17509 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17510 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17511 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17512 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17513 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17514 echo "$as_me:$LINENO: result: yes" >&5
17515 echo "${ECHO_T}yes" >&6
17516 else
17517 # FIXME - insert some real tests, host_os isn't really good enough
17518 case $host_os in
17519 darwin*)
17520 if test -n "$STRIP" ; then
17521 striplib="$STRIP -x"
17522 echo "$as_me:$LINENO: result: yes" >&5
17523 echo "${ECHO_T}yes" >&6
17524 else
17525 echo "$as_me:$LINENO: result: no" >&5
17526 echo "${ECHO_T}no" >&6
17530 echo "$as_me:$LINENO: result: no" >&5
17531 echo "${ECHO_T}no" >&6
17533 esac
17536 if test "x$enable_dlopen" != xyes; then
17537 enable_dlopen=unknown
17538 enable_dlopen_self=unknown
17539 enable_dlopen_self_static=unknown
17540 else
17541 lt_cv_dlopen=no
17542 lt_cv_dlopen_libs=
17544 case $host_os in
17545 beos*)
17546 lt_cv_dlopen="load_add_on"
17547 lt_cv_dlopen_libs=
17548 lt_cv_dlopen_self=yes
17551 mingw* | pw32*)
17552 lt_cv_dlopen="LoadLibrary"
17553 lt_cv_dlopen_libs=
17556 cygwin*)
17557 lt_cv_dlopen="dlopen"
17558 lt_cv_dlopen_libs=
17561 darwin*)
17562 # if libdl is installed we need to link against it
17563 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17564 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17565 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568 ac_check_lib_save_LIBS=$LIBS
17569 LIBS="-ldl $LIBS"
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h. */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17577 /* Override any gcc2 internal prototype to avoid an error. */
17578 #ifdef __cplusplus
17579 extern "C"
17580 #endif
17581 /* We use char because int might match the return type of a gcc2
17582 builtin and then its argument prototype would still apply. */
17583 char dlopen ();
17585 main ()
17587 dlopen ();
17589 return 0;
17591 _ACEOF
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>conftest.er1
17595 ac_status=$?
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest$ac_exeext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_lib_dl_dlopen=yes
17615 else
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 ac_cv_lib_dl_dlopen=no
17621 rm -f conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623 LIBS=$ac_check_lib_save_LIBS
17625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17627 if test $ac_cv_lib_dl_dlopen = yes; then
17628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17629 else
17631 lt_cv_dlopen="dyld"
17632 lt_cv_dlopen_libs=
17633 lt_cv_dlopen_self=yes
17640 echo "$as_me:$LINENO: checking for shl_load" >&5
17641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17642 if test "${ac_cv_func_shl_load+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17644 else
17645 cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h. */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17653 #define shl_load innocuous_shl_load
17655 /* System header to define __stub macros and hopefully few prototypes,
17656 which can conflict with char shl_load (); below.
17657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17658 <limits.h> exists even on freestanding compilers. */
17660 #ifdef __STDC__
17661 # include <limits.h>
17662 #else
17663 # include <assert.h>
17664 #endif
17666 #undef shl_load
17668 /* Override any gcc2 internal prototype to avoid an error. */
17669 #ifdef __cplusplus
17670 extern "C"
17672 #endif
17673 /* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17675 char shl_load ();
17676 /* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17680 choke me
17681 #else
17682 char (*f) () = shl_load;
17683 #endif
17684 #ifdef __cplusplus
17686 #endif
17689 main ()
17691 return f != shl_load;
17693 return 0;
17695 _ACEOF
17696 rm -f conftest.$ac_objext conftest$ac_exeext
17697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17698 (eval $ac_link) 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -z "$ac_c_werror_flag"
17706 || test ! -s conftest.err'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest$ac_exeext'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 ac_cv_func_shl_load=yes
17719 else
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17723 ac_cv_func_shl_load=no
17725 rm -f conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
17728 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17729 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17730 if test $ac_cv_func_shl_load = yes; then
17731 lt_cv_dlopen="shl_load"
17732 else
17733 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17734 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17735 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738 ac_check_lib_save_LIBS=$LIBS
17739 LIBS="-ldld $LIBS"
17740 cat >conftest.$ac_ext <<_ACEOF
17741 /* confdefs.h. */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17747 /* Override any gcc2 internal prototype to avoid an error. */
17748 #ifdef __cplusplus
17749 extern "C"
17750 #endif
17751 /* We use char because int might match the return type of a gcc2
17752 builtin and then its argument prototype would still apply. */
17753 char shl_load ();
17755 main ()
17757 shl_load ();
17759 return 0;
17761 _ACEOF
17762 rm -f conftest.$ac_objext conftest$ac_exeext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764 (eval $ac_link) 2>conftest.er1
17765 ac_status=$?
17766 grep -v '^ *+' conftest.er1 >conftest.err
17767 rm -f conftest.er1
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try='test -z "$ac_c_werror_flag"
17772 || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest$ac_exeext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 ac_cv_lib_dld_shl_load=yes
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ac_cv_lib_dld_shl_load=no
17791 rm -f conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 LIBS=$ac_check_lib_save_LIBS
17795 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17796 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17797 if test $ac_cv_lib_dld_shl_load = yes; then
17798 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17799 else
17800 echo "$as_me:$LINENO: checking for dlopen" >&5
17801 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17802 if test "${ac_cv_func_dlopen+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 else
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h. */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17813 #define dlopen innocuous_dlopen
17815 /* System header to define __stub macros and hopefully few prototypes,
17816 which can conflict with char dlopen (); below.
17817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818 <limits.h> exists even on freestanding compilers. */
17820 #ifdef __STDC__
17821 # include <limits.h>
17822 #else
17823 # include <assert.h>
17824 #endif
17826 #undef dlopen
17828 /* Override any gcc2 internal prototype to avoid an error. */
17829 #ifdef __cplusplus
17830 extern "C"
17832 #endif
17833 /* We use char because int might match the return type of a gcc2
17834 builtin and then its argument prototype would still apply. */
17835 char dlopen ();
17836 /* The GNU C library defines this for functions which it implements
17837 to always fail with ENOSYS. Some functions are actually named
17838 something starting with __ and the normal name is an alias. */
17839 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17840 choke me
17841 #else
17842 char (*f) () = dlopen;
17843 #endif
17844 #ifdef __cplusplus
17846 #endif
17849 main ()
17851 return f != dlopen;
17853 return 0;
17855 _ACEOF
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17858 (eval $ac_link) 2>conftest.er1
17859 ac_status=$?
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest$ac_exeext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_func_dlopen=yes
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 ac_cv_func_dlopen=no
17885 rm -f conftest.err conftest.$ac_objext \
17886 conftest$ac_exeext conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17889 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17890 if test $ac_cv_func_dlopen = yes; then
17891 lt_cv_dlopen="dlopen"
17892 else
17893 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 else
17898 ac_check_lib_save_LIBS=$LIBS
17899 LIBS="-ldl $LIBS"
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h. */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17907 /* Override any gcc2 internal prototype to avoid an error. */
17908 #ifdef __cplusplus
17909 extern "C"
17910 #endif
17911 /* We use char because int might match the return type of a gcc2
17912 builtin and then its argument prototype would still apply. */
17913 char dlopen ();
17915 main ()
17917 dlopen ();
17919 return 0;
17921 _ACEOF
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924 (eval $ac_link) 2>conftest.er1
17925 ac_status=$?
17926 grep -v '^ *+' conftest.er1 >conftest.err
17927 rm -f conftest.er1
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try='test -z "$ac_c_werror_flag"
17932 || test ! -s conftest.err'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest$ac_exeext'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 ac_cv_lib_dl_dlopen=yes
17945 else
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 ac_cv_lib_dl_dlopen=no
17951 rm -f conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17957 if test $ac_cv_lib_dl_dlopen = yes; then
17958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17959 else
17960 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17961 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965 ac_check_lib_save_LIBS=$LIBS
17966 LIBS="-lsvld $LIBS"
17967 cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h. */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17974 /* Override any gcc2 internal prototype to avoid an error. */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 /* We use char because int might match the return type of a gcc2
17979 builtin and then its argument prototype would still apply. */
17980 char dlopen ();
17982 main ()
17984 dlopen ();
17986 return 0;
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try='test -z "$ac_c_werror_flag"
17999 || test ! -s conftest.err'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; } &&
18005 { ac_try='test -s conftest$ac_exeext'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_lib_svld_dlopen=yes
18012 else
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_cv_lib_svld_dlopen=no
18018 rm -f conftest.err conftest.$ac_objext \
18019 conftest$ac_exeext conftest.$ac_ext
18020 LIBS=$ac_check_lib_save_LIBS
18022 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18023 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18024 if test $ac_cv_lib_svld_dlopen = yes; then
18025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18026 else
18027 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18028 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18029 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032 ac_check_lib_save_LIBS=$LIBS
18033 LIBS="-ldld $LIBS"
18034 cat >conftest.$ac_ext <<_ACEOF
18035 /* confdefs.h. */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18041 /* Override any gcc2 internal prototype to avoid an error. */
18042 #ifdef __cplusplus
18043 extern "C"
18044 #endif
18045 /* We use char because int might match the return type of a gcc2
18046 builtin and then its argument prototype would still apply. */
18047 char dld_link ();
18049 main ()
18051 dld_link ();
18053 return 0;
18055 _ACEOF
18056 rm -f conftest.$ac_objext conftest$ac_exeext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058 (eval $ac_link) 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag"
18066 || test ! -s conftest.err'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try='test -s conftest$ac_exeext'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 ac_cv_lib_dld_dld_link=yes
18079 else
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ac_cv_lib_dld_dld_link=no
18085 rm -f conftest.err conftest.$ac_objext \
18086 conftest$ac_exeext conftest.$ac_ext
18087 LIBS=$ac_check_lib_save_LIBS
18089 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18090 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18091 if test $ac_cv_lib_dld_dld_link = yes; then
18092 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18111 esac
18113 if test "x$lt_cv_dlopen" != xno; then
18114 enable_dlopen=yes
18115 else
18116 enable_dlopen=no
18119 case $lt_cv_dlopen in
18120 dlopen)
18121 save_CPPFLAGS="$CPPFLAGS"
18122 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18124 save_LDFLAGS="$LDFLAGS"
18125 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18127 save_LIBS="$LIBS"
18128 LIBS="$lt_cv_dlopen_libs $LIBS"
18130 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18131 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18132 if test "${lt_cv_dlopen_self+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 else
18135 if test "$cross_compiling" = yes; then :
18136 lt_cv_dlopen_self=cross
18137 else
18138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18139 lt_status=$lt_dlunknown
18140 cat > conftest.$ac_ext <<EOF
18141 #line 18141 "configure"
18142 #include "confdefs.h"
18144 #if HAVE_DLFCN_H
18145 #include <dlfcn.h>
18146 #endif
18148 #include <stdio.h>
18150 #ifdef RTLD_GLOBAL
18151 # define LT_DLGLOBAL RTLD_GLOBAL
18152 #else
18153 # ifdef DL_GLOBAL
18154 # define LT_DLGLOBAL DL_GLOBAL
18155 # else
18156 # define LT_DLGLOBAL 0
18157 # endif
18158 #endif
18160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18161 find out it does not work in some platform. */
18162 #ifndef LT_DLLAZY_OR_NOW
18163 # ifdef RTLD_LAZY
18164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18165 # else
18166 # ifdef DL_LAZY
18167 # define LT_DLLAZY_OR_NOW DL_LAZY
18168 # else
18169 # ifdef RTLD_NOW
18170 # define LT_DLLAZY_OR_NOW RTLD_NOW
18171 # else
18172 # ifdef DL_NOW
18173 # define LT_DLLAZY_OR_NOW DL_NOW
18174 # else
18175 # define LT_DLLAZY_OR_NOW 0
18176 # endif
18177 # endif
18178 # endif
18179 # endif
18180 #endif
18182 #ifdef __cplusplus
18183 extern "C" void exit (int);
18184 #endif
18186 void fnord() { int i=42;}
18187 int main ()
18189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18190 int status = $lt_dlunknown;
18192 if (self)
18194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18196 /* dlclose (self); */
18199 exit (status);
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18207 (./conftest; exit; ) 2>/dev/null
18208 lt_status=$?
18209 case x$lt_status in
18210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18212 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18213 esac
18214 else :
18215 # compilation failed
18216 lt_cv_dlopen_self=no
18219 rm -fr conftest*
18223 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18226 if test "x$lt_cv_dlopen_self" = xyes; then
18227 LDFLAGS="$LDFLAGS $link_static_flag"
18228 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18230 if test "${lt_cv_dlopen_self_static+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233 if test "$cross_compiling" = yes; then :
18234 lt_cv_dlopen_self_static=cross
18235 else
18236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18237 lt_status=$lt_dlunknown
18238 cat > conftest.$ac_ext <<EOF
18239 #line 18239 "configure"
18240 #include "confdefs.h"
18242 #if HAVE_DLFCN_H
18243 #include <dlfcn.h>
18244 #endif
18246 #include <stdio.h>
18248 #ifdef RTLD_GLOBAL
18249 # define LT_DLGLOBAL RTLD_GLOBAL
18250 #else
18251 # ifdef DL_GLOBAL
18252 # define LT_DLGLOBAL DL_GLOBAL
18253 # else
18254 # define LT_DLGLOBAL 0
18255 # endif
18256 #endif
18258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18259 find out it does not work in some platform. */
18260 #ifndef LT_DLLAZY_OR_NOW
18261 # ifdef RTLD_LAZY
18262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18263 # else
18264 # ifdef DL_LAZY
18265 # define LT_DLLAZY_OR_NOW DL_LAZY
18266 # else
18267 # ifdef RTLD_NOW
18268 # define LT_DLLAZY_OR_NOW RTLD_NOW
18269 # else
18270 # ifdef DL_NOW
18271 # define LT_DLLAZY_OR_NOW DL_NOW
18272 # else
18273 # define LT_DLLAZY_OR_NOW 0
18274 # endif
18275 # endif
18276 # endif
18277 # endif
18278 #endif
18280 #ifdef __cplusplus
18281 extern "C" void exit (int);
18282 #endif
18284 void fnord() { int i=42;}
18285 int main ()
18287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18288 int status = $lt_dlunknown;
18290 if (self)
18292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18294 /* dlclose (self); */
18297 exit (status);
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301 (eval $ac_link) 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18305 (./conftest; exit; ) 2>/dev/null
18306 lt_status=$?
18307 case x$lt_status in
18308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18310 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18311 esac
18312 else :
18313 # compilation failed
18314 lt_cv_dlopen_self_static=no
18317 rm -fr conftest*
18321 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18322 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18325 CPPFLAGS="$save_CPPFLAGS"
18326 LDFLAGS="$save_LDFLAGS"
18327 LIBS="$save_LIBS"
18329 esac
18331 case $lt_cv_dlopen_self in
18332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18333 *) enable_dlopen_self=unknown ;;
18334 esac
18336 case $lt_cv_dlopen_self_static in
18337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18338 *) enable_dlopen_self_static=unknown ;;
18339 esac
18343 # The else clause should only fire when bootstrapping the
18344 # libtool distribution, otherwise you forgot to ship ltmain.sh
18345 # with your package, and you will get complaints that there are
18346 # no rules to generate ltmain.sh.
18347 if test -f "$ltmain"; then
18348 # See if we are running on zsh, and set the options which allow our commands through
18349 # without removal of \ escapes.
18350 if test -n "${ZSH_VERSION+set}" ; then
18351 setopt NO_GLOB_SUBST
18353 # Now quote all the things that may contain metacharacters while being
18354 # careful not to overquote the AC_SUBSTed values. We take copies of the
18355 # variables and quote the copies for generation of the libtool script.
18356 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18357 SED SHELL STRIP \
18358 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18359 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18360 deplibs_check_method reload_flag reload_cmds need_locks \
18361 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18362 lt_cv_sys_global_symbol_to_c_name_address \
18363 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18364 old_postinstall_cmds old_postuninstall_cmds \
18365 compiler_GCJ \
18366 CC_GCJ \
18367 LD_GCJ \
18368 lt_prog_compiler_wl_GCJ \
18369 lt_prog_compiler_pic_GCJ \
18370 lt_prog_compiler_static_GCJ \
18371 lt_prog_compiler_no_builtin_flag_GCJ \
18372 export_dynamic_flag_spec_GCJ \
18373 thread_safe_flag_spec_GCJ \
18374 whole_archive_flag_spec_GCJ \
18375 enable_shared_with_static_runtimes_GCJ \
18376 old_archive_cmds_GCJ \
18377 old_archive_from_new_cmds_GCJ \
18378 predep_objects_GCJ \
18379 postdep_objects_GCJ \
18380 predeps_GCJ \
18381 postdeps_GCJ \
18382 compiler_lib_search_path_GCJ \
18383 archive_cmds_GCJ \
18384 archive_expsym_cmds_GCJ \
18385 postinstall_cmds_GCJ \
18386 postuninstall_cmds_GCJ \
18387 old_archive_from_expsyms_cmds_GCJ \
18388 allow_undefined_flag_GCJ \
18389 no_undefined_flag_GCJ \
18390 export_symbols_cmds_GCJ \
18391 hardcode_libdir_flag_spec_GCJ \
18392 hardcode_libdir_flag_spec_ld_GCJ \
18393 hardcode_libdir_separator_GCJ \
18394 hardcode_automatic_GCJ \
18395 module_cmds_GCJ \
18396 module_expsym_cmds_GCJ \
18397 lt_cv_prog_compiler_c_o_GCJ \
18398 exclude_expsyms_GCJ \
18399 include_expsyms_GCJ; do
18401 case $var in
18402 old_archive_cmds_GCJ | \
18403 old_archive_from_new_cmds_GCJ | \
18404 archive_cmds_GCJ | \
18405 archive_expsym_cmds_GCJ | \
18406 module_cmds_GCJ | \
18407 module_expsym_cmds_GCJ | \
18408 old_archive_from_expsyms_cmds_GCJ | \
18409 export_symbols_cmds_GCJ | \
18410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18411 postinstall_cmds | postuninstall_cmds | \
18412 old_postinstall_cmds | old_postuninstall_cmds | \
18413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18414 # Double-quote double-evaled strings.
18415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18420 esac
18421 done
18423 case $lt_echo in
18424 *'\$0 --fallback-echo"')
18425 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18427 esac
18429 cfgfile="$ofile"
18431 cat <<__EOF__ >> "$cfgfile"
18432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18436 # Shell to use when invoking shell scripts.
18437 SHELL=$lt_SHELL
18439 # Whether or not to build shared libraries.
18440 build_libtool_libs=$enable_shared
18442 # Whether or not to build static libraries.
18443 build_old_libs=$enable_static
18445 # Whether or not to add -lc for building shared libraries.
18446 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18448 # Whether or not to disallow shared libs when runtime libs are static
18449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18451 # Whether or not to optimize for fast installation.
18452 fast_install=$enable_fast_install
18454 # The host system.
18455 host_alias=$host_alias
18456 host=$host
18457 host_os=$host_os
18459 # The build system.
18460 build_alias=$build_alias
18461 build=$build
18462 build_os=$build_os
18464 # An echo program that does not interpret backslashes.
18465 echo=$lt_echo
18467 # The archiver.
18468 AR=$lt_AR
18469 AR_FLAGS=$lt_AR_FLAGS
18471 # A C compiler.
18472 LTCC=$lt_LTCC
18474 # A language-specific compiler.
18475 CC=$lt_compiler_GCJ
18477 # Is the compiler the GNU C compiler?
18478 with_gcc=$GCC_GCJ
18480 # An ERE matcher.
18481 EGREP=$lt_EGREP
18483 # The linker used to build libraries.
18484 LD=$lt_LD_GCJ
18486 # Whether we need hard or soft links.
18487 LN_S=$lt_LN_S
18489 # A BSD-compatible nm program.
18490 NM=$lt_NM
18492 # A symbol stripping program
18493 STRIP=$lt_STRIP
18495 # Used to examine libraries when file_magic_cmd begins "file"
18496 MAGIC_CMD=$MAGIC_CMD
18498 # Used on cygwin: DLL creation program.
18499 DLLTOOL="$DLLTOOL"
18501 # Used on cygwin: object dumper.
18502 OBJDUMP="$OBJDUMP"
18504 # Used on cygwin: assembler.
18505 AS="$AS"
18507 # The name of the directory that contains temporary libtool files.
18508 objdir=$objdir
18510 # How to create reloadable object files.
18511 reload_flag=$lt_reload_flag
18512 reload_cmds=$lt_reload_cmds
18514 # How to pass a linker flag through the compiler.
18515 wl=$lt_lt_prog_compiler_wl_GCJ
18517 # Object file suffix (normally "o").
18518 objext="$ac_objext"
18520 # Old archive suffix (normally "a").
18521 libext="$libext"
18523 # Shared library suffix (normally ".so").
18524 shrext_cmds='$shrext_cmds'
18526 # Executable file suffix (normally "").
18527 exeext="$exeext"
18529 # Additional compiler flags for building library objects.
18530 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18531 pic_mode=$pic_mode
18533 # What is the maximum length of a command?
18534 max_cmd_len=$lt_cv_sys_max_cmd_len
18536 # Does compiler simultaneously support -c and -o options?
18537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18539 # Must we lock files when doing compilation ?
18540 need_locks=$lt_need_locks
18542 # Do we need the lib prefix for modules?
18543 need_lib_prefix=$need_lib_prefix
18545 # Do we need a version for libraries?
18546 need_version=$need_version
18548 # Whether dlopen is supported.
18549 dlopen_support=$enable_dlopen
18551 # Whether dlopen of programs is supported.
18552 dlopen_self=$enable_dlopen_self
18554 # Whether dlopen of statically linked programs is supported.
18555 dlopen_self_static=$enable_dlopen_self_static
18557 # Compiler flag to prevent dynamic linking.
18558 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18560 # Compiler flag to turn off builtin functions.
18561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18563 # Compiler flag to allow reflexive dlopens.
18564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18566 # Compiler flag to generate shared objects directly from archives.
18567 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18569 # Compiler flag to generate thread-safe objects.
18570 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18572 # Library versioning type.
18573 version_type=$version_type
18575 # Format of library name prefix.
18576 libname_spec=$lt_libname_spec
18578 # List of archive names. First name is the real one, the rest are links.
18579 # The last name is the one that the linker finds with -lNAME.
18580 library_names_spec=$lt_library_names_spec
18582 # The coded name of the library, if different from the real name.
18583 soname_spec=$lt_soname_spec
18585 # Commands used to build and install an old-style archive.
18586 RANLIB=$lt_RANLIB
18587 old_archive_cmds=$lt_old_archive_cmds_GCJ
18588 old_postinstall_cmds=$lt_old_postinstall_cmds
18589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18591 # Create an old-style archive from a shared archive.
18592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18594 # Create a temporary old-style archive to link instead of a shared archive.
18595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18597 # Commands used to build and install a shared archive.
18598 archive_cmds=$lt_archive_cmds_GCJ
18599 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18600 postinstall_cmds=$lt_postinstall_cmds
18601 postuninstall_cmds=$lt_postuninstall_cmds
18603 # Commands used to build a loadable module (assumed same as above if empty)
18604 module_cmds=$lt_module_cmds_GCJ
18605 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18607 # Commands to strip libraries.
18608 old_striplib=$lt_old_striplib
18609 striplib=$lt_striplib
18611 # Dependencies to place before the objects being linked to create a
18612 # shared library.
18613 predep_objects=$lt_predep_objects_GCJ
18615 # Dependencies to place after the objects being linked to create a
18616 # shared library.
18617 postdep_objects=$lt_postdep_objects_GCJ
18619 # Dependencies to place before the objects being linked to create a
18620 # shared library.
18621 predeps=$lt_predeps_GCJ
18623 # Dependencies to place after the objects being linked to create a
18624 # shared library.
18625 postdeps=$lt_postdeps_GCJ
18627 # The library search path used internally by the compiler when linking
18628 # a shared library.
18629 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18631 # Method to check whether dependent libraries are shared objects.
18632 deplibs_check_method=$lt_deplibs_check_method
18634 # Command to use when deplibs_check_method == file_magic.
18635 file_magic_cmd=$lt_file_magic_cmd
18637 # Flag that allows shared libraries with undefined symbols to be built.
18638 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18640 # Flag that forces no undefined symbols.
18641 no_undefined_flag=$lt_no_undefined_flag_GCJ
18643 # Commands used to finish a libtool library installation in a directory.
18644 finish_cmds=$lt_finish_cmds
18646 # Same as above, but a single script fragment to be evaled but not shown.
18647 finish_eval=$lt_finish_eval
18649 # Take the output of nm and produce a listing of raw symbols and C names.
18650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18652 # Transform the output of nm in a proper C declaration
18653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18655 # Transform the output of nm in a C name address pair
18656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18658 # This is the shared library runtime path variable.
18659 runpath_var=$runpath_var
18661 # This is the shared library path variable.
18662 shlibpath_var=$shlibpath_var
18664 # Is shlibpath searched before the hard-coded library search path?
18665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18667 # How to hardcode a shared library path into an executable.
18668 hardcode_action=$hardcode_action_GCJ
18670 # Whether we should hardcode library paths into libraries.
18671 hardcode_into_libs=$hardcode_into_libs
18673 # Flag to hardcode \$libdir into a binary during linking.
18674 # This must work even if \$libdir does not exist.
18675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18677 # If ld is used when linking, flag to hardcode \$libdir into
18678 # a binary during linking. This must work even if \$libdir does
18679 # not exist.
18680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18682 # Whether we need a single -rpath flag with a separated argument.
18683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18686 # resulting binary.
18687 hardcode_direct=$hardcode_direct_GCJ
18689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18690 # resulting binary.
18691 hardcode_minus_L=$hardcode_minus_L_GCJ
18693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18694 # the resulting binary.
18695 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18697 # Set to yes if building a shared library automatically hardcodes DIR into the library
18698 # and all subsequent libraries and executables linked against it.
18699 hardcode_automatic=$hardcode_automatic_GCJ
18701 # Variables whose values should be saved in libtool wrapper scripts and
18702 # restored at relink time.
18703 variables_saved_for_relink="$variables_saved_for_relink"
18705 # Whether libtool must link a program against all its dependency libraries.
18706 link_all_deplibs=$link_all_deplibs_GCJ
18708 # Compile-time system search path for libraries
18709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18711 # Run-time system search path for libraries
18712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18714 # Fix the shell variable \$srcfile for the compiler.
18715 fix_srcfile_path="$fix_srcfile_path_GCJ"
18717 # Set to yes if exported symbols are required.
18718 always_export_symbols=$always_export_symbols_GCJ
18720 # The commands to list exported symbols.
18721 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18723 # The commands to extract the exported symbol list from a shared archive.
18724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18726 # Symbols that should not be listed in the preloaded symbols.
18727 exclude_expsyms=$lt_exclude_expsyms_GCJ
18729 # Symbols that must always be exported.
18730 include_expsyms=$lt_include_expsyms_GCJ
18732 # ### END LIBTOOL TAG CONFIG: $tagname
18734 __EOF__
18737 else
18738 # If there is no Makefile yet, we rely on a make rule to execute
18739 # `config.status --recheck' to rerun these tests and create the
18740 # libtool script then.
18741 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18742 if test -f "$ltmain_in"; then
18743 test -f Makefile && make "$ltmain"
18748 ac_ext=c
18749 ac_cpp='$CPP $CPPFLAGS'
18750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754 CC="$lt_save_CC"
18756 else
18757 tagname=""
18765 # Source file extension for RC test sources.
18766 ac_ext=rc
18768 # Object file extension for compiled RC test sources.
18769 objext=o
18770 objext_RC=$objext
18772 # Code to be used in simple compile tests
18773 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18775 # Code to be used in simple link tests
18776 lt_simple_link_test_code="$lt_simple_compile_test_code"
18778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18780 # If no C compiler was specified, use CC.
18781 LTCC=${LTCC-"$CC"}
18783 # Allow CC to be a program name with arguments.
18784 compiler=$CC
18787 # Allow CC to be a program name with arguments.
18788 lt_save_CC="$CC"
18789 CC=${RC-"windres"}
18790 compiler=$CC
18791 compiler_RC=$CC
18792 lt_cv_prog_compiler_c_o_RC=yes
18794 # The else clause should only fire when bootstrapping the
18795 # libtool distribution, otherwise you forgot to ship ltmain.sh
18796 # with your package, and you will get complaints that there are
18797 # no rules to generate ltmain.sh.
18798 if test -f "$ltmain"; then
18799 # See if we are running on zsh, and set the options which allow our commands through
18800 # without removal of \ escapes.
18801 if test -n "${ZSH_VERSION+set}" ; then
18802 setopt NO_GLOB_SUBST
18804 # Now quote all the things that may contain metacharacters while being
18805 # careful not to overquote the AC_SUBSTed values. We take copies of the
18806 # variables and quote the copies for generation of the libtool script.
18807 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18808 SED SHELL STRIP \
18809 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18810 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18811 deplibs_check_method reload_flag reload_cmds need_locks \
18812 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18813 lt_cv_sys_global_symbol_to_c_name_address \
18814 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18815 old_postinstall_cmds old_postuninstall_cmds \
18816 compiler_RC \
18817 CC_RC \
18818 LD_RC \
18819 lt_prog_compiler_wl_RC \
18820 lt_prog_compiler_pic_RC \
18821 lt_prog_compiler_static_RC \
18822 lt_prog_compiler_no_builtin_flag_RC \
18823 export_dynamic_flag_spec_RC \
18824 thread_safe_flag_spec_RC \
18825 whole_archive_flag_spec_RC \
18826 enable_shared_with_static_runtimes_RC \
18827 old_archive_cmds_RC \
18828 old_archive_from_new_cmds_RC \
18829 predep_objects_RC \
18830 postdep_objects_RC \
18831 predeps_RC \
18832 postdeps_RC \
18833 compiler_lib_search_path_RC \
18834 archive_cmds_RC \
18835 archive_expsym_cmds_RC \
18836 postinstall_cmds_RC \
18837 postuninstall_cmds_RC \
18838 old_archive_from_expsyms_cmds_RC \
18839 allow_undefined_flag_RC \
18840 no_undefined_flag_RC \
18841 export_symbols_cmds_RC \
18842 hardcode_libdir_flag_spec_RC \
18843 hardcode_libdir_flag_spec_ld_RC \
18844 hardcode_libdir_separator_RC \
18845 hardcode_automatic_RC \
18846 module_cmds_RC \
18847 module_expsym_cmds_RC \
18848 lt_cv_prog_compiler_c_o_RC \
18849 exclude_expsyms_RC \
18850 include_expsyms_RC; do
18852 case $var in
18853 old_archive_cmds_RC | \
18854 old_archive_from_new_cmds_RC | \
18855 archive_cmds_RC | \
18856 archive_expsym_cmds_RC | \
18857 module_cmds_RC | \
18858 module_expsym_cmds_RC | \
18859 old_archive_from_expsyms_cmds_RC | \
18860 export_symbols_cmds_RC | \
18861 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18862 postinstall_cmds | postuninstall_cmds | \
18863 old_postinstall_cmds | old_postuninstall_cmds | \
18864 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18865 # Double-quote double-evaled strings.
18866 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18871 esac
18872 done
18874 case $lt_echo in
18875 *'\$0 --fallback-echo"')
18876 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18878 esac
18880 cfgfile="$ofile"
18882 cat <<__EOF__ >> "$cfgfile"
18883 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18885 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18887 # Shell to use when invoking shell scripts.
18888 SHELL=$lt_SHELL
18890 # Whether or not to build shared libraries.
18891 build_libtool_libs=$enable_shared
18893 # Whether or not to build static libraries.
18894 build_old_libs=$enable_static
18896 # Whether or not to add -lc for building shared libraries.
18897 build_libtool_need_lc=$archive_cmds_need_lc_RC
18899 # Whether or not to disallow shared libs when runtime libs are static
18900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18902 # Whether or not to optimize for fast installation.
18903 fast_install=$enable_fast_install
18905 # The host system.
18906 host_alias=$host_alias
18907 host=$host
18908 host_os=$host_os
18910 # The build system.
18911 build_alias=$build_alias
18912 build=$build
18913 build_os=$build_os
18915 # An echo program that does not interpret backslashes.
18916 echo=$lt_echo
18918 # The archiver.
18919 AR=$lt_AR
18920 AR_FLAGS=$lt_AR_FLAGS
18922 # A C compiler.
18923 LTCC=$lt_LTCC
18925 # A language-specific compiler.
18926 CC=$lt_compiler_RC
18928 # Is the compiler the GNU C compiler?
18929 with_gcc=$GCC_RC
18931 # An ERE matcher.
18932 EGREP=$lt_EGREP
18934 # The linker used to build libraries.
18935 LD=$lt_LD_RC
18937 # Whether we need hard or soft links.
18938 LN_S=$lt_LN_S
18940 # A BSD-compatible nm program.
18941 NM=$lt_NM
18943 # A symbol stripping program
18944 STRIP=$lt_STRIP
18946 # Used to examine libraries when file_magic_cmd begins "file"
18947 MAGIC_CMD=$MAGIC_CMD
18949 # Used on cygwin: DLL creation program.
18950 DLLTOOL="$DLLTOOL"
18952 # Used on cygwin: object dumper.
18953 OBJDUMP="$OBJDUMP"
18955 # Used on cygwin: assembler.
18956 AS="$AS"
18958 # The name of the directory that contains temporary libtool files.
18959 objdir=$objdir
18961 # How to create reloadable object files.
18962 reload_flag=$lt_reload_flag
18963 reload_cmds=$lt_reload_cmds
18965 # How to pass a linker flag through the compiler.
18966 wl=$lt_lt_prog_compiler_wl_RC
18968 # Object file suffix (normally "o").
18969 objext="$ac_objext"
18971 # Old archive suffix (normally "a").
18972 libext="$libext"
18974 # Shared library suffix (normally ".so").
18975 shrext_cmds='$shrext_cmds'
18977 # Executable file suffix (normally "").
18978 exeext="$exeext"
18980 # Additional compiler flags for building library objects.
18981 pic_flag=$lt_lt_prog_compiler_pic_RC
18982 pic_mode=$pic_mode
18984 # What is the maximum length of a command?
18985 max_cmd_len=$lt_cv_sys_max_cmd_len
18987 # Does compiler simultaneously support -c and -o options?
18988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18990 # Must we lock files when doing compilation ?
18991 need_locks=$lt_need_locks
18993 # Do we need the lib prefix for modules?
18994 need_lib_prefix=$need_lib_prefix
18996 # Do we need a version for libraries?
18997 need_version=$need_version
18999 # Whether dlopen is supported.
19000 dlopen_support=$enable_dlopen
19002 # Whether dlopen of programs is supported.
19003 dlopen_self=$enable_dlopen_self
19005 # Whether dlopen of statically linked programs is supported.
19006 dlopen_self_static=$enable_dlopen_self_static
19008 # Compiler flag to prevent dynamic linking.
19009 link_static_flag=$lt_lt_prog_compiler_static_RC
19011 # Compiler flag to turn off builtin functions.
19012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19014 # Compiler flag to allow reflexive dlopens.
19015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19017 # Compiler flag to generate shared objects directly from archives.
19018 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19020 # Compiler flag to generate thread-safe objects.
19021 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19023 # Library versioning type.
19024 version_type=$version_type
19026 # Format of library name prefix.
19027 libname_spec=$lt_libname_spec
19029 # List of archive names. First name is the real one, the rest are links.
19030 # The last name is the one that the linker finds with -lNAME.
19031 library_names_spec=$lt_library_names_spec
19033 # The coded name of the library, if different from the real name.
19034 soname_spec=$lt_soname_spec
19036 # Commands used to build and install an old-style archive.
19037 RANLIB=$lt_RANLIB
19038 old_archive_cmds=$lt_old_archive_cmds_RC
19039 old_postinstall_cmds=$lt_old_postinstall_cmds
19040 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19042 # Create an old-style archive from a shared archive.
19043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19045 # Create a temporary old-style archive to link instead of a shared archive.
19046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19048 # Commands used to build and install a shared archive.
19049 archive_cmds=$lt_archive_cmds_RC
19050 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19051 postinstall_cmds=$lt_postinstall_cmds
19052 postuninstall_cmds=$lt_postuninstall_cmds
19054 # Commands used to build a loadable module (assumed same as above if empty)
19055 module_cmds=$lt_module_cmds_RC
19056 module_expsym_cmds=$lt_module_expsym_cmds_RC
19058 # Commands to strip libraries.
19059 old_striplib=$lt_old_striplib
19060 striplib=$lt_striplib
19062 # Dependencies to place before the objects being linked to create a
19063 # shared library.
19064 predep_objects=$lt_predep_objects_RC
19066 # Dependencies to place after the objects being linked to create a
19067 # shared library.
19068 postdep_objects=$lt_postdep_objects_RC
19070 # Dependencies to place before the objects being linked to create a
19071 # shared library.
19072 predeps=$lt_predeps_RC
19074 # Dependencies to place after the objects being linked to create a
19075 # shared library.
19076 postdeps=$lt_postdeps_RC
19078 # The library search path used internally by the compiler when linking
19079 # a shared library.
19080 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19082 # Method to check whether dependent libraries are shared objects.
19083 deplibs_check_method=$lt_deplibs_check_method
19085 # Command to use when deplibs_check_method == file_magic.
19086 file_magic_cmd=$lt_file_magic_cmd
19088 # Flag that allows shared libraries with undefined symbols to be built.
19089 allow_undefined_flag=$lt_allow_undefined_flag_RC
19091 # Flag that forces no undefined symbols.
19092 no_undefined_flag=$lt_no_undefined_flag_RC
19094 # Commands used to finish a libtool library installation in a directory.
19095 finish_cmds=$lt_finish_cmds
19097 # Same as above, but a single script fragment to be evaled but not shown.
19098 finish_eval=$lt_finish_eval
19100 # Take the output of nm and produce a listing of raw symbols and C names.
19101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19103 # Transform the output of nm in a proper C declaration
19104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19106 # Transform the output of nm in a C name address pair
19107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19109 # This is the shared library runtime path variable.
19110 runpath_var=$runpath_var
19112 # This is the shared library path variable.
19113 shlibpath_var=$shlibpath_var
19115 # Is shlibpath searched before the hard-coded library search path?
19116 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19118 # How to hardcode a shared library path into an executable.
19119 hardcode_action=$hardcode_action_RC
19121 # Whether we should hardcode library paths into libraries.
19122 hardcode_into_libs=$hardcode_into_libs
19124 # Flag to hardcode \$libdir into a binary during linking.
19125 # This must work even if \$libdir does not exist.
19126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19128 # If ld is used when linking, flag to hardcode \$libdir into
19129 # a binary during linking. This must work even if \$libdir does
19130 # not exist.
19131 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19133 # Whether we need a single -rpath flag with a separated argument.
19134 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19136 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19137 # resulting binary.
19138 hardcode_direct=$hardcode_direct_RC
19140 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19141 # resulting binary.
19142 hardcode_minus_L=$hardcode_minus_L_RC
19144 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19145 # the resulting binary.
19146 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19148 # Set to yes if building a shared library automatically hardcodes DIR into the library
19149 # and all subsequent libraries and executables linked against it.
19150 hardcode_automatic=$hardcode_automatic_RC
19152 # Variables whose values should be saved in libtool wrapper scripts and
19153 # restored at relink time.
19154 variables_saved_for_relink="$variables_saved_for_relink"
19156 # Whether libtool must link a program against all its dependency libraries.
19157 link_all_deplibs=$link_all_deplibs_RC
19159 # Compile-time system search path for libraries
19160 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19162 # Run-time system search path for libraries
19163 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19165 # Fix the shell variable \$srcfile for the compiler.
19166 fix_srcfile_path="$fix_srcfile_path_RC"
19168 # Set to yes if exported symbols are required.
19169 always_export_symbols=$always_export_symbols_RC
19171 # The commands to list exported symbols.
19172 export_symbols_cmds=$lt_export_symbols_cmds_RC
19174 # The commands to extract the exported symbol list from a shared archive.
19175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19177 # Symbols that should not be listed in the preloaded symbols.
19178 exclude_expsyms=$lt_exclude_expsyms_RC
19180 # Symbols that must always be exported.
19181 include_expsyms=$lt_include_expsyms_RC
19183 # ### END LIBTOOL TAG CONFIG: $tagname
19185 __EOF__
19188 else
19189 # If there is no Makefile yet, we rely on a make rule to execute
19190 # `config.status --recheck' to rerun these tests and create the
19191 # libtool script then.
19192 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19193 if test -f "$ltmain_in"; then
19194 test -f Makefile && make "$ltmain"
19199 ac_ext=c
19200 ac_cpp='$CPP $CPPFLAGS'
19201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19205 CC="$lt_save_CC"
19210 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19211 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19212 { (exit 1); exit 1; }; }
19214 esac
19216 # Append the new tag name to the list of available tags.
19217 if test -n "$tagname" ; then
19218 available_tags="$available_tags $tagname"
19221 done
19222 IFS="$lt_save_ifs"
19224 # Now substitute the updated list of available tags.
19225 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19226 mv "${ofile}T" "$ofile"
19227 chmod +x "$ofile"
19228 else
19229 rm -f "${ofile}T"
19230 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19231 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19232 { (exit 1); exit 1; }; }
19238 # This can be used to rebuild libtool when needed
19239 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19241 # Always use our own libtool.
19242 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19244 # Prevent multiple expansion
19266 ac_config_files="$ac_config_files Makefile"
19267 cat >confcache <<\_ACEOF
19268 # This file is a shell script that caches the results of configure
19269 # tests run on this system so they can be shared between configure
19270 # scripts and configure runs, see configure's option --config-cache.
19271 # It is not useful on other systems. If it contains results you don't
19272 # want to keep, you may remove or edit it.
19274 # config.status only pays attention to the cache file if you give it
19275 # the --recheck option to rerun configure.
19277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19279 # following values.
19281 _ACEOF
19283 # The following way of writing the cache mishandles newlines in values,
19284 # but we know of no workaround that is simple, portable, and efficient.
19285 # So, don't put newlines in cache variables' values.
19286 # Ultrix sh set writes to stderr and can't be redirected directly,
19287 # and sets the high bit in the cache file unless we assign to the vars.
19289 (set) 2>&1 |
19290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19291 *ac_space=\ *)
19292 # `set' does not quote correctly, so add quotes (double-quote
19293 # substitution turns \\\\ into \\, and sed turns \\ into \).
19294 sed -n \
19295 "s/'/'\\\\''/g;
19296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19299 # `set' quotes correctly as required by POSIX, so do not add quotes.
19300 sed -n \
19301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19303 esac;
19305 sed '
19306 t clear
19307 : clear
19308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19309 t end
19310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19311 : end' >>confcache
19312 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19313 if test -w $cache_file; then
19314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19315 cat confcache >$cache_file
19316 else
19317 echo "not updating unwritable cache $cache_file"
19320 rm -f confcache
19322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19323 # Let make expand exec_prefix.
19324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19328 # trailing colons and then remove the whole line if VPATH becomes empty
19329 # (actually we leave an empty line to preserve line numbers).
19330 if test "x$srcdir" = x.; then
19331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19332 s/:*\$(srcdir):*/:/;
19333 s/:*\${srcdir}:*/:/;
19334 s/:*@srcdir@:*/:/;
19335 s/^\([^=]*=[ ]*\):*/\1/;
19336 s/:*$//;
19337 s/^[^=]*=[ ]*$//;
19341 # Transform confdefs.h into DEFS.
19342 # Protect against shell expansion while executing Makefile rules.
19343 # Protect against Makefile macro expansion.
19345 # If the first sed substitution is executed (which looks for macros that
19346 # take arguments), then we branch to the quote section. Otherwise,
19347 # look for a macro that doesn't take arguments.
19348 cat >confdef2opt.sed <<\_ACEOF
19349 t clear
19350 : clear
19351 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19352 t quote
19353 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19354 t quote
19356 : quote
19357 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19358 s,\[,\\&,g
19359 s,\],\\&,g
19360 s,\$,$$,g
19362 _ACEOF
19363 # We use echo to avoid assuming a particular line-breaking character.
19364 # The extra dot is to prevent the shell from consuming trailing
19365 # line-breaks from the sub-command output. A line-break within
19366 # single-quotes doesn't work because, if this script is created in a
19367 # platform that uses two characters for line-breaks (e.g., DOS), tr
19368 # would break.
19369 ac_LF_and_DOT=`echo; echo .`
19370 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19371 rm -f confdef2opt.sed
19374 ac_libobjs=
19375 ac_ltlibobjs=
19376 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19377 # 1. Remove the extension, and $U if already installed.
19378 ac_i=`echo "$ac_i" |
19379 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19380 # 2. Add them.
19381 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19382 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19383 done
19384 LIBOBJS=$ac_libobjs
19386 LTLIBOBJS=$ac_ltlibobjs
19389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19390 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19391 Usually this means the macro was only invoked conditionally." >&5
19392 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19393 Usually this means the macro was only invoked conditionally." >&2;}
19394 { (exit 1); exit 1; }; }
19396 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19397 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19398 Usually this means the macro was only invoked conditionally." >&5
19399 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19400 Usually this means the macro was only invoked conditionally." >&2;}
19401 { (exit 1); exit 1; }; }
19403 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19404 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19405 Usually this means the macro was only invoked conditionally." >&5
19406 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19407 Usually this means the macro was only invoked conditionally." >&2;}
19408 { (exit 1); exit 1; }; }
19411 : ${CONFIG_STATUS=./config.status}
19412 ac_clean_files_save=$ac_clean_files
19413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19414 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19415 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19416 cat >$CONFIG_STATUS <<_ACEOF
19417 #! $SHELL
19418 # Generated by $as_me.
19419 # Run this file to recreate the current configuration.
19420 # Compiler output produced by configure, useful for debugging
19421 # configure, is in config.log if it exists.
19423 debug=false
19424 ac_cs_recheck=false
19425 ac_cs_silent=false
19426 SHELL=\${CONFIG_SHELL-$SHELL}
19427 _ACEOF
19429 cat >>$CONFIG_STATUS <<\_ACEOF
19430 ## --------------------- ##
19431 ## M4sh Initialization. ##
19432 ## --------------------- ##
19434 # Be Bourne compatible
19435 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19436 emulate sh
19437 NULLCMD=:
19438 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19439 # is contrary to our usage. Disable this feature.
19440 alias -g '${1+"$@"}'='"$@"'
19441 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19442 set -o posix
19444 DUALCASE=1; export DUALCASE # for MKS sh
19446 # Support unset when possible.
19447 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19448 as_unset=unset
19449 else
19450 as_unset=false
19454 # Work around bugs in pre-3.0 UWIN ksh.
19455 $as_unset ENV MAIL MAILPATH
19456 PS1='$ '
19457 PS2='> '
19458 PS4='+ '
19460 # NLS nuisances.
19461 for as_var in \
19462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19464 LC_TELEPHONE LC_TIME
19466 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19467 eval $as_var=C; export $as_var
19468 else
19469 $as_unset $as_var
19471 done
19473 # Required to use basename.
19474 if expr a : '\(a\)' >/dev/null 2>&1; then
19475 as_expr=expr
19476 else
19477 as_expr=false
19480 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19481 as_basename=basename
19482 else
19483 as_basename=false
19487 # Name of the executable.
19488 as_me=`$as_basename "$0" ||
19489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19490 X"$0" : 'X\(//\)$' \| \
19491 X"$0" : 'X\(/\)$' \| \
19492 . : '\(.\)' 2>/dev/null ||
19493 echo X/"$0" |
19494 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19495 /^X\/\(\/\/\)$/{ s//\1/; q; }
19496 /^X\/\(\/\).*/{ s//\1/; q; }
19497 s/.*/./; q'`
19500 # PATH needs CR, and LINENO needs CR and PATH.
19501 # Avoid depending upon Character Ranges.
19502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19505 as_cr_digits='0123456789'
19506 as_cr_alnum=$as_cr_Letters$as_cr_digits
19508 # The user is always right.
19509 if test "${PATH_SEPARATOR+set}" != set; then
19510 echo "#! /bin/sh" >conf$$.sh
19511 echo "exit 0" >>conf$$.sh
19512 chmod +x conf$$.sh
19513 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19514 PATH_SEPARATOR=';'
19515 else
19516 PATH_SEPARATOR=:
19518 rm -f conf$$.sh
19522 as_lineno_1=$LINENO
19523 as_lineno_2=$LINENO
19524 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19525 test "x$as_lineno_1" != "x$as_lineno_2" &&
19526 test "x$as_lineno_3" = "x$as_lineno_2" || {
19527 # Find who we are. Look in the path if we contain no path at all
19528 # relative or not.
19529 case $0 in
19530 *[\\/]* ) as_myself=$0 ;;
19531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 for as_dir in $PATH
19534 IFS=$as_save_IFS
19535 test -z "$as_dir" && as_dir=.
19536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19537 done
19540 esac
19541 # We did not find ourselves, most probably we were run as `sh COMMAND'
19542 # in which case we are not to be found in the path.
19543 if test "x$as_myself" = x; then
19544 as_myself=$0
19546 if test ! -f "$as_myself"; then
19547 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19548 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19549 { (exit 1); exit 1; }; }
19551 case $CONFIG_SHELL in
19553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19554 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19556 IFS=$as_save_IFS
19557 test -z "$as_dir" && as_dir=.
19558 for as_base in sh bash ksh sh5; do
19559 case $as_dir in
19561 if ("$as_dir/$as_base" -c '
19562 as_lineno_1=$LINENO
19563 as_lineno_2=$LINENO
19564 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19565 test "x$as_lineno_1" != "x$as_lineno_2" &&
19566 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19567 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19568 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19569 CONFIG_SHELL=$as_dir/$as_base
19570 export CONFIG_SHELL
19571 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19572 fi;;
19573 esac
19574 done
19575 done
19577 esac
19579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19580 # uniformly replaced by the line number. The first 'sed' inserts a
19581 # line-number line before each line; the second 'sed' does the real
19582 # work. The second script uses 'N' to pair each line-number line
19583 # with the numbered line, and appends trailing '-' during
19584 # substitution so that $LINENO is not a special case at line end.
19585 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19586 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19587 sed '=' <$as_myself |
19588 sed '
19590 s,$,-,
19591 : loop
19592 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19593 t loop
19594 s,-$,,
19595 s,^['$as_cr_digits']*\n,,
19596 ' >$as_me.lineno &&
19597 chmod +x $as_me.lineno ||
19598 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19599 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19600 { (exit 1); exit 1; }; }
19602 # Don't try to exec as it changes $[0], causing all sort of problems
19603 # (the dirname of $[0] is not the place where we might find the
19604 # original and so on. Autoconf is especially sensible to this).
19605 . ./$as_me.lineno
19606 # Exit status is that of the last command.
19607 exit
19611 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19612 *c*,-n*) ECHO_N= ECHO_C='
19613 ' ECHO_T=' ' ;;
19614 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19615 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19616 esac
19618 if expr a : '\(a\)' >/dev/null 2>&1; then
19619 as_expr=expr
19620 else
19621 as_expr=false
19624 rm -f conf$$ conf$$.exe conf$$.file
19625 echo >conf$$.file
19626 if ln -s conf$$.file conf$$ 2>/dev/null; then
19627 # We could just check for DJGPP; but this test a) works b) is more generic
19628 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19629 if test -f conf$$.exe; then
19630 # Don't use ln at all; we don't have any links
19631 as_ln_s='cp -p'
19632 else
19633 as_ln_s='ln -s'
19635 elif ln conf$$.file conf$$ 2>/dev/null; then
19636 as_ln_s=ln
19637 else
19638 as_ln_s='cp -p'
19640 rm -f conf$$ conf$$.exe conf$$.file
19642 if mkdir -p . 2>/dev/null; then
19643 as_mkdir_p=:
19644 else
19645 test -d ./-p && rmdir ./-p
19646 as_mkdir_p=false
19649 as_executable_p="test -f"
19651 # Sed expression to map a string onto a valid CPP name.
19652 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19654 # Sed expression to map a string onto a valid variable name.
19655 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19658 # IFS
19659 # We need space, tab and new line, in precisely that order.
19660 as_nl='
19662 IFS=" $as_nl"
19664 # CDPATH.
19665 $as_unset CDPATH
19667 exec 6>&1
19669 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19670 # report actual input values of CONFIG_FILES etc. instead of their
19671 # values after options handling. Logging --version etc. is OK.
19672 exec 5>>config.log
19674 echo
19675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19676 ## Running $as_me. ##
19677 _ASBOX
19678 } >&5
19679 cat >&5 <<_CSEOF
19681 This file was extended by $as_me, which was
19682 generated by GNU Autoconf 2.59. Invocation command line was
19684 CONFIG_FILES = $CONFIG_FILES
19685 CONFIG_HEADERS = $CONFIG_HEADERS
19686 CONFIG_LINKS = $CONFIG_LINKS
19687 CONFIG_COMMANDS = $CONFIG_COMMANDS
19688 $ $0 $@
19690 _CSEOF
19691 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19692 echo >&5
19693 _ACEOF
19695 # Files that config.status was made for.
19696 if test -n "$ac_config_files"; then
19697 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19700 if test -n "$ac_config_headers"; then
19701 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19704 if test -n "$ac_config_links"; then
19705 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19708 if test -n "$ac_config_commands"; then
19709 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19712 cat >>$CONFIG_STATUS <<\_ACEOF
19714 ac_cs_usage="\
19715 \`$as_me' instantiates files from templates according to the
19716 current configuration.
19718 Usage: $0 [OPTIONS] [FILE]...
19720 -h, --help print this help, then exit
19721 -V, --version print version number, then exit
19722 -q, --quiet do not print progress messages
19723 -d, --debug don't remove temporary files
19724 --recheck update $as_me by reconfiguring in the same conditions
19725 --file=FILE[:TEMPLATE]
19726 instantiate the configuration file FILE
19728 Configuration files:
19729 $config_files
19731 Configuration commands:
19732 $config_commands
19734 Report bugs to <bug-autoconf@gnu.org>."
19735 _ACEOF
19737 cat >>$CONFIG_STATUS <<_ACEOF
19738 ac_cs_version="\\
19739 config.status
19740 configured by $0, generated by GNU Autoconf 2.59,
19741 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19743 Copyright (C) 2003 Free Software Foundation, Inc.
19744 This config.status script is free software; the Free Software Foundation
19745 gives unlimited permission to copy, distribute and modify it."
19746 srcdir=$srcdir
19747 INSTALL="$INSTALL"
19748 _ACEOF
19750 cat >>$CONFIG_STATUS <<\_ACEOF
19751 # If no file are specified by the user, then we need to provide default
19752 # value. By we need to know if files were specified by the user.
19753 ac_need_defaults=:
19754 while test $# != 0
19756 case $1 in
19757 --*=*)
19758 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19759 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19760 ac_shift=:
19763 ac_option=$1
19764 ac_optarg=$2
19765 ac_shift=shift
19767 *) # This is not an option, so the user has probably given explicit
19768 # arguments.
19769 ac_option=$1
19770 ac_need_defaults=false;;
19771 esac
19773 case $ac_option in
19774 # Handling of the options.
19775 _ACEOF
19776 cat >>$CONFIG_STATUS <<\_ACEOF
19777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19778 ac_cs_recheck=: ;;
19779 --version | --vers* | -V )
19780 echo "$ac_cs_version"; exit 0 ;;
19781 --he | --h)
19782 # Conflict between --help and --header
19783 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19784 Try \`$0 --help' for more information." >&5
19785 echo "$as_me: error: ambiguous option: $1
19786 Try \`$0 --help' for more information." >&2;}
19787 { (exit 1); exit 1; }; };;
19788 --help | --hel | -h )
19789 echo "$ac_cs_usage"; exit 0 ;;
19790 --debug | --d* | -d )
19791 debug=: ;;
19792 --file | --fil | --fi | --f )
19793 $ac_shift
19794 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19795 ac_need_defaults=false;;
19796 --header | --heade | --head | --hea )
19797 $ac_shift
19798 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19799 ac_need_defaults=false;;
19800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19801 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19802 ac_cs_silent=: ;;
19804 # This is an error.
19805 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19806 Try \`$0 --help' for more information." >&5
19807 echo "$as_me: error: unrecognized option: $1
19808 Try \`$0 --help' for more information." >&2;}
19809 { (exit 1); exit 1; }; } ;;
19811 *) ac_config_targets="$ac_config_targets $1" ;;
19813 esac
19814 shift
19815 done
19817 ac_configure_extra_args=
19819 if $ac_cs_silent; then
19820 exec 6>/dev/null
19821 ac_configure_extra_args="$ac_configure_extra_args --silent"
19824 _ACEOF
19825 cat >>$CONFIG_STATUS <<_ACEOF
19826 if \$ac_cs_recheck; then
19827 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19828 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19831 _ACEOF
19833 cat >>$CONFIG_STATUS <<_ACEOF
19835 # INIT-COMMANDS section.
19838 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19840 _ACEOF
19844 cat >>$CONFIG_STATUS <<\_ACEOF
19845 for ac_config_target in $ac_config_targets
19847 case "$ac_config_target" in
19848 # Handling of arguments.
19849 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19850 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19851 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19853 { (exit 1); exit 1; }; };;
19854 esac
19855 done
19857 # If the user did not use the arguments to specify the items to instantiate,
19858 # then the envvar interface is used. Set only those that are not.
19859 # We use the long form for the default assignment because of an extremely
19860 # bizarre bug on SunOS 4.1.3.
19861 if $ac_need_defaults; then
19862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19866 # Have a temporary directory for convenience. Make it in the build tree
19867 # simply because there is no reason to put it here, and in addition,
19868 # creating and moving files from /tmp can sometimes cause problems.
19869 # Create a temporary directory, and hook for its removal unless debugging.
19870 $debug ||
19872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19873 trap '{ (exit 1); exit 1; }' 1 2 13 15
19876 # Create a (secure) tmp directory for tmp files.
19879 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19880 test -n "$tmp" && test -d "$tmp"
19881 } ||
19883 tmp=./confstat$$-$RANDOM
19884 (umask 077 && mkdir $tmp)
19885 } ||
19887 echo "$me: cannot create a temporary directory in ." >&2
19888 { (exit 1); exit 1; }
19891 _ACEOF
19893 cat >>$CONFIG_STATUS <<_ACEOF
19896 # CONFIG_FILES section.
19899 # No need to generate the scripts if there are no CONFIG_FILES.
19900 # This happens for instance when ./config.status config.h
19901 if test -n "\$CONFIG_FILES"; then
19902 # Protect against being on the right side of a sed subst in config.status.
19903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19905 s,@SHELL@,$SHELL,;t t
19906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19912 s,@exec_prefix@,$exec_prefix,;t t
19913 s,@prefix@,$prefix,;t t
19914 s,@program_transform_name@,$program_transform_name,;t t
19915 s,@bindir@,$bindir,;t t
19916 s,@sbindir@,$sbindir,;t t
19917 s,@libexecdir@,$libexecdir,;t t
19918 s,@datadir@,$datadir,;t t
19919 s,@sysconfdir@,$sysconfdir,;t t
19920 s,@sharedstatedir@,$sharedstatedir,;t t
19921 s,@localstatedir@,$localstatedir,;t t
19922 s,@libdir@,$libdir,;t t
19923 s,@includedir@,$includedir,;t t
19924 s,@oldincludedir@,$oldincludedir,;t t
19925 s,@infodir@,$infodir,;t t
19926 s,@mandir@,$mandir,;t t
19927 s,@build_alias@,$build_alias,;t t
19928 s,@host_alias@,$host_alias,;t t
19929 s,@target_alias@,$target_alias,;t t
19930 s,@DEFS@,$DEFS,;t t
19931 s,@ECHO_C@,$ECHO_C,;t t
19932 s,@ECHO_N@,$ECHO_N,;t t
19933 s,@ECHO_T@,$ECHO_T,;t t
19934 s,@LIBS@,$LIBS,;t t
19935 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19936 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19937 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19938 s,@CYGPATH_W@,$CYGPATH_W,;t t
19939 s,@PACKAGE@,$PACKAGE,;t t
19940 s,@VERSION@,$VERSION,;t t
19941 s,@ACLOCAL@,$ACLOCAL,;t t
19942 s,@AUTOCONF@,$AUTOCONF,;t t
19943 s,@AUTOMAKE@,$AUTOMAKE,;t t
19944 s,@AUTOHEADER@,$AUTOHEADER,;t t
19945 s,@MAKEINFO@,$MAKEINFO,;t t
19946 s,@install_sh@,$install_sh,;t t
19947 s,@STRIP@,$STRIP,;t t
19948 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19949 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19950 s,@mkdir_p@,$mkdir_p,;t t
19951 s,@AWK@,$AWK,;t t
19952 s,@SET_MAKE@,$SET_MAKE,;t t
19953 s,@am__leading_dot@,$am__leading_dot,;t t
19954 s,@AMTAR@,$AMTAR,;t t
19955 s,@am__tar@,$am__tar,;t t
19956 s,@am__untar@,$am__untar,;t t
19957 s,@CC@,$CC,;t t
19958 s,@CFLAGS@,$CFLAGS,;t t
19959 s,@LDFLAGS@,$LDFLAGS,;t t
19960 s,@CPPFLAGS@,$CPPFLAGS,;t t
19961 s,@ac_ct_CC@,$ac_ct_CC,;t t
19962 s,@EXEEXT@,$EXEEXT,;t t
19963 s,@OBJEXT@,$OBJEXT,;t t
19964 s,@DEPDIR@,$DEPDIR,;t t
19965 s,@am__include@,$am__include,;t t
19966 s,@am__quote@,$am__quote,;t t
19967 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19968 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19969 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19970 s,@CCDEPMODE@,$CCDEPMODE,;t t
19971 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19972 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19973 s,@build@,$build,;t t
19974 s,@build_cpu@,$build_cpu,;t t
19975 s,@build_vendor@,$build_vendor,;t t
19976 s,@build_os@,$build_os,;t t
19977 s,@host@,$host,;t t
19978 s,@host_cpu@,$host_cpu,;t t
19979 s,@host_vendor@,$host_vendor,;t t
19980 s,@host_os@,$host_os,;t t
19981 s,@EGREP@,$EGREP,;t t
19982 s,@LN_S@,$LN_S,;t t
19983 s,@ECHO@,$ECHO,;t t
19984 s,@AR@,$AR,;t t
19985 s,@ac_ct_AR@,$ac_ct_AR,;t t
19986 s,@RANLIB@,$RANLIB,;t t
19987 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19988 s,@CPP@,$CPP,;t t
19989 s,@CXX@,$CXX,;t t
19990 s,@CXXFLAGS@,$CXXFLAGS,;t t
19991 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19992 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19993 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19994 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19995 s,@CXXCPP@,$CXXCPP,;t t
19996 s,@F77@,$F77,;t t
19997 s,@FFLAGS@,$FFLAGS,;t t
19998 s,@ac_ct_F77@,$ac_ct_F77,;t t
19999 s,@LIBTOOL@,$LIBTOOL,;t t
20000 s,@global_top_auxdir@,$global_top_auxdir,;t t
20001 s,@LIBOBJS@,$LIBOBJS,;t t
20002 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20003 CEOF
20005 _ACEOF
20007 cat >>$CONFIG_STATUS <<\_ACEOF
20008 # Split the substitutions into bite-sized pieces for seds with
20009 # small command number limits, like on Digital OSF/1 and HP-UX.
20010 ac_max_sed_lines=48
20011 ac_sed_frag=1 # Number of current file.
20012 ac_beg=1 # First line for current file.
20013 ac_end=$ac_max_sed_lines # Line after last line for current file.
20014 ac_more_lines=:
20015 ac_sed_cmds=
20016 while $ac_more_lines; do
20017 if test $ac_beg -gt 1; then
20018 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20019 else
20020 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20022 if test ! -s $tmp/subs.frag; then
20023 ac_more_lines=false
20024 else
20025 # The purpose of the label and of the branching condition is to
20026 # speed up the sed processing (if there are no `@' at all, there
20027 # is no need to browse any of the substitutions).
20028 # These are the two extra sed commands mentioned above.
20029 (echo ':t
20030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20031 if test -z "$ac_sed_cmds"; then
20032 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20033 else
20034 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20036 ac_sed_frag=`expr $ac_sed_frag + 1`
20037 ac_beg=$ac_end
20038 ac_end=`expr $ac_end + $ac_max_sed_lines`
20040 done
20041 if test -z "$ac_sed_cmds"; then
20042 ac_sed_cmds=cat
20044 fi # test -n "$CONFIG_FILES"
20046 _ACEOF
20047 cat >>$CONFIG_STATUS <<\_ACEOF
20048 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20050 case $ac_file in
20051 - | *:- | *:-:* ) # input from stdin
20052 cat >$tmp/stdin
20053 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20055 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20056 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20057 * ) ac_file_in=$ac_file.in ;;
20058 esac
20060 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20061 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20062 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20063 X"$ac_file" : 'X\(//\)[^/]' \| \
20064 X"$ac_file" : 'X\(//\)$' \| \
20065 X"$ac_file" : 'X\(/\)' \| \
20066 . : '\(.\)' 2>/dev/null ||
20067 echo X"$ac_file" |
20068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20070 /^X\(\/\/\)$/{ s//\1/; q; }
20071 /^X\(\/\).*/{ s//\1/; q; }
20072 s/.*/./; q'`
20073 { if $as_mkdir_p; then
20074 mkdir -p "$ac_dir"
20075 else
20076 as_dir="$ac_dir"
20077 as_dirs=
20078 while test ! -d "$as_dir"; do
20079 as_dirs="$as_dir $as_dirs"
20080 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20082 X"$as_dir" : 'X\(//\)[^/]' \| \
20083 X"$as_dir" : 'X\(//\)$' \| \
20084 X"$as_dir" : 'X\(/\)' \| \
20085 . : '\(.\)' 2>/dev/null ||
20086 echo X"$as_dir" |
20087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20089 /^X\(\/\/\)$/{ s//\1/; q; }
20090 /^X\(\/\).*/{ s//\1/; q; }
20091 s/.*/./; q'`
20092 done
20093 test ! -n "$as_dirs" || mkdir $as_dirs
20094 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20095 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20096 { (exit 1); exit 1; }; }; }
20098 ac_builddir=.
20100 if test "$ac_dir" != .; then
20101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20102 # A "../" for each directory in $ac_dir_suffix.
20103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20104 else
20105 ac_dir_suffix= ac_top_builddir=
20108 case $srcdir in
20109 .) # No --srcdir option. We are building in place.
20110 ac_srcdir=.
20111 if test -z "$ac_top_builddir"; then
20112 ac_top_srcdir=.
20113 else
20114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20115 fi ;;
20116 [\\/]* | ?:[\\/]* ) # Absolute path.
20117 ac_srcdir=$srcdir$ac_dir_suffix;
20118 ac_top_srcdir=$srcdir ;;
20119 *) # Relative path.
20120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20122 esac
20124 # Do not use `cd foo && pwd` to compute absolute paths, because
20125 # the directories may not exist.
20126 case `pwd` in
20127 .) ac_abs_builddir="$ac_dir";;
20129 case "$ac_dir" in
20130 .) ac_abs_builddir=`pwd`;;
20131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20133 esac;;
20134 esac
20135 case $ac_abs_builddir in
20136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20138 case ${ac_top_builddir}. in
20139 .) ac_abs_top_builddir=$ac_abs_builddir;;
20140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20142 esac;;
20143 esac
20144 case $ac_abs_builddir in
20145 .) ac_abs_srcdir=$ac_srcdir;;
20147 case $ac_srcdir in
20148 .) ac_abs_srcdir=$ac_abs_builddir;;
20149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20151 esac;;
20152 esac
20153 case $ac_abs_builddir in
20154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20156 case $ac_top_srcdir in
20157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20160 esac;;
20161 esac
20164 case $INSTALL in
20165 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20166 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20167 esac
20169 if test x"$ac_file" != x-; then
20170 { echo "$as_me:$LINENO: creating $ac_file" >&5
20171 echo "$as_me: creating $ac_file" >&6;}
20172 rm -f "$ac_file"
20174 # Let's still pretend it is `configure' which instantiates (i.e., don't
20175 # use $as_me), people would be surprised to read:
20176 # /* config.h. Generated by config.status. */
20177 if test x"$ac_file" = x-; then
20178 configure_input=
20179 else
20180 configure_input="$ac_file. "
20182 configure_input=$configure_input"Generated from `echo $ac_file_in |
20183 sed 's,.*/,,'` by configure."
20185 # First look for the input files in the build tree, otherwise in the
20186 # src tree.
20187 ac_file_inputs=`IFS=:
20188 for f in $ac_file_in; do
20189 case $f in
20190 -) echo $tmp/stdin ;;
20191 [\\/$]*)
20192 # Absolute (can't be DOS-style, as IFS=:)
20193 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20194 echo "$as_me: error: cannot find input file: $f" >&2;}
20195 { (exit 1); exit 1; }; }
20196 echo "$f";;
20197 *) # Relative
20198 if test -f "$f"; then
20199 # Build tree
20200 echo "$f"
20201 elif test -f "$srcdir/$f"; then
20202 # Source tree
20203 echo "$srcdir/$f"
20204 else
20205 # /dev/null tree
20206 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20207 echo "$as_me: error: cannot find input file: $f" >&2;}
20208 { (exit 1); exit 1; }; }
20209 fi;;
20210 esac
20211 done` || { (exit 1); exit 1; }
20212 _ACEOF
20213 cat >>$CONFIG_STATUS <<_ACEOF
20214 sed "$ac_vpsub
20215 $extrasub
20216 _ACEOF
20217 cat >>$CONFIG_STATUS <<\_ACEOF
20219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20220 s,@configure_input@,$configure_input,;t t
20221 s,@srcdir@,$ac_srcdir,;t t
20222 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20223 s,@top_srcdir@,$ac_top_srcdir,;t t
20224 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20225 s,@builddir@,$ac_builddir,;t t
20226 s,@abs_builddir@,$ac_abs_builddir,;t t
20227 s,@top_builddir@,$ac_top_builddir,;t t
20228 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20229 s,@INSTALL@,$ac_INSTALL,;t t
20230 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20231 rm -f $tmp/stdin
20232 if test x"$ac_file" != x-; then
20233 mv $tmp/out $ac_file
20234 else
20235 cat $tmp/out
20236 rm -f $tmp/out
20239 done
20240 _ACEOF
20241 cat >>$CONFIG_STATUS <<\_ACEOF
20244 # CONFIG_COMMANDS section.
20246 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20247 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20248 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20249 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20250 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20251 X"$ac_dest" : 'X\(//\)[^/]' \| \
20252 X"$ac_dest" : 'X\(//\)$' \| \
20253 X"$ac_dest" : 'X\(/\)' \| \
20254 . : '\(.\)' 2>/dev/null ||
20255 echo X"$ac_dest" |
20256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20258 /^X\(\/\/\)$/{ s//\1/; q; }
20259 /^X\(\/\).*/{ s//\1/; q; }
20260 s/.*/./; q'`
20261 { if $as_mkdir_p; then
20262 mkdir -p "$ac_dir"
20263 else
20264 as_dir="$ac_dir"
20265 as_dirs=
20266 while test ! -d "$as_dir"; do
20267 as_dirs="$as_dir $as_dirs"
20268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20270 X"$as_dir" : 'X\(//\)[^/]' \| \
20271 X"$as_dir" : 'X\(//\)$' \| \
20272 X"$as_dir" : 'X\(/\)' \| \
20273 . : '\(.\)' 2>/dev/null ||
20274 echo X"$as_dir" |
20275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20277 /^X\(\/\/\)$/{ s//\1/; q; }
20278 /^X\(\/\).*/{ s//\1/; q; }
20279 s/.*/./; q'`
20280 done
20281 test ! -n "$as_dirs" || mkdir $as_dirs
20282 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20283 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20284 { (exit 1); exit 1; }; }; }
20286 ac_builddir=.
20288 if test "$ac_dir" != .; then
20289 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20290 # A "../" for each directory in $ac_dir_suffix.
20291 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20292 else
20293 ac_dir_suffix= ac_top_builddir=
20296 case $srcdir in
20297 .) # No --srcdir option. We are building in place.
20298 ac_srcdir=.
20299 if test -z "$ac_top_builddir"; then
20300 ac_top_srcdir=.
20301 else
20302 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20303 fi ;;
20304 [\\/]* | ?:[\\/]* ) # Absolute path.
20305 ac_srcdir=$srcdir$ac_dir_suffix;
20306 ac_top_srcdir=$srcdir ;;
20307 *) # Relative path.
20308 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20309 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20310 esac
20312 # Do not use `cd foo && pwd` to compute absolute paths, because
20313 # the directories may not exist.
20314 case `pwd` in
20315 .) ac_abs_builddir="$ac_dir";;
20317 case "$ac_dir" in
20318 .) ac_abs_builddir=`pwd`;;
20319 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20320 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20321 esac;;
20322 esac
20323 case $ac_abs_builddir in
20324 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20326 case ${ac_top_builddir}. in
20327 .) ac_abs_top_builddir=$ac_abs_builddir;;
20328 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20329 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20330 esac;;
20331 esac
20332 case $ac_abs_builddir in
20333 .) ac_abs_srcdir=$ac_srcdir;;
20335 case $ac_srcdir in
20336 .) ac_abs_srcdir=$ac_abs_builddir;;
20337 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20338 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20339 esac;;
20340 esac
20341 case $ac_abs_builddir in
20342 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20344 case $ac_top_srcdir in
20345 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20346 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20347 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20348 esac;;
20349 esac
20352 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20353 echo "$as_me: executing $ac_dest commands" >&6;}
20354 case $ac_dest in
20355 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20356 # Strip MF so we end up with the name of the file.
20357 mf=`echo "$mf" | sed -e 's/:.*$//'`
20358 # Check whether this is an Automake generated Makefile or not.
20359 # We used to match only the files named `Makefile.in', but
20360 # some people rename them; so instead we look at the file content.
20361 # Grep'ing the first line is not enough: some people post-process
20362 # each Makefile.in and add a new line on top of each file to say so.
20363 # So let's grep whole file.
20364 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20365 dirpart=`(dirname "$mf") 2>/dev/null ||
20366 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20367 X"$mf" : 'X\(//\)[^/]' \| \
20368 X"$mf" : 'X\(//\)$' \| \
20369 X"$mf" : 'X\(/\)' \| \
20370 . : '\(.\)' 2>/dev/null ||
20371 echo X"$mf" |
20372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20374 /^X\(\/\/\)$/{ s//\1/; q; }
20375 /^X\(\/\).*/{ s//\1/; q; }
20376 s/.*/./; q'`
20377 else
20378 continue
20380 # Extract the definition of DEPDIR, am__include, and am__quote
20381 # from the Makefile without running `make'.
20382 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20383 test -z "$DEPDIR" && continue
20384 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20385 test -z "am__include" && continue
20386 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20387 # When using ansi2knr, U may be empty or an underscore; expand it
20388 U=`sed -n 's/^U = //p' < "$mf"`
20389 # Find all dependency output files, they are included files with
20390 # $(DEPDIR) in their names. We invoke sed twice because it is the
20391 # simplest approach to changing $(DEPDIR) to its actual value in the
20392 # expansion.
20393 for file in `sed -n "
20394 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20395 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20396 # Make sure the directory exists.
20397 test -f "$dirpart/$file" && continue
20398 fdir=`(dirname "$file") 2>/dev/null ||
20399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20400 X"$file" : 'X\(//\)[^/]' \| \
20401 X"$file" : 'X\(//\)$' \| \
20402 X"$file" : 'X\(/\)' \| \
20403 . : '\(.\)' 2>/dev/null ||
20404 echo X"$file" |
20405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20407 /^X\(\/\/\)$/{ s//\1/; q; }
20408 /^X\(\/\).*/{ s//\1/; q; }
20409 s/.*/./; q'`
20410 { if $as_mkdir_p; then
20411 mkdir -p $dirpart/$fdir
20412 else
20413 as_dir=$dirpart/$fdir
20414 as_dirs=
20415 while test ! -d "$as_dir"; do
20416 as_dirs="$as_dir $as_dirs"
20417 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20419 X"$as_dir" : 'X\(//\)[^/]' \| \
20420 X"$as_dir" : 'X\(//\)$' \| \
20421 X"$as_dir" : 'X\(/\)' \| \
20422 . : '\(.\)' 2>/dev/null ||
20423 echo X"$as_dir" |
20424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20426 /^X\(\/\/\)$/{ s//\1/; q; }
20427 /^X\(\/\).*/{ s//\1/; q; }
20428 s/.*/./; q'`
20429 done
20430 test ! -n "$as_dirs" || mkdir $as_dirs
20431 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20432 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20433 { (exit 1); exit 1; }; }; }
20435 # echo "creating $dirpart/$file"
20436 echo '# dummy' > "$dirpart/$file"
20437 done
20438 done
20440 esac
20441 done
20442 _ACEOF
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20446 { (exit 0); exit 0; }
20447 _ACEOF
20448 chmod +x $CONFIG_STATUS
20449 ac_clean_files=$ac_clean_files_save
20452 # configure is writing to config.log, and then calls config.status.
20453 # config.status does its own redirection, appending to config.log.
20454 # Unfortunately, on DOS this fails, as config.log is still kept open
20455 # by configure, so config.status won't be able to write to it; its
20456 # output is simply discarded. So we exec the FD to /dev/null,
20457 # effectively closing config.log, so it can be properly (re)opened and
20458 # appended to by config.status. When coming back to configure, we
20459 # need to make the FD available again.
20460 if test "$no_create" != yes; then
20461 ac_cs_success=:
20462 ac_config_status_args=
20463 test "$silent" = yes &&
20464 ac_config_status_args="$ac_config_status_args --quiet"
20465 exec 5>/dev/null
20466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20467 exec 5>>config.log
20468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20469 # would make configure fail if this is the last instruction.
20470 $ac_cs_success || { (exit 1); exit 1; }