view configure @ 0:d39e1d0d75b6

initial add
author paulo@hit-nxdomain.opendns.com
date Sat, 20 Feb 2010 21:18:28 -0800
parents
children
line source
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for gift-gnutella 0.0.11.
4 #
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
21 fi
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
29 fi
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
43 do
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
48 fi
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
56 fi
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
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=:
95 fi
96 rm -f conf$$.sh
97 fi
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
111 do
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
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137 /*)
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
153 ;;
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 '
166 N
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
184 }
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
198 fi
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'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
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
223 fi
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='
237 '
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','`
252 ;;
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
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
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
293 fi
294 done
295 fi
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
300 :
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'
305 #
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
317 fi
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
343 :
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
366 fi
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
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
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"
389 fi
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
405 #
406 # Initializations.
407 #
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='gift-gnutella'
423 PACKAGE_TARNAME='gift-gnutella'
424 PACKAGE_VERSION='0.0.11'
425 PACKAGE_STRING='gift-gnutella 0.0.11'
426 PACKAGE_BUGREPORT=''
428 ac_unique_file="src/gt_gnutella.h"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PLUGIN_LDFLAGS PKG_CONFIG GNUTELLA_CFLAGS GNUTELLA_LIBS USE_ZLIB XML2_CONFIG LIBXML2_CFLAGS LIBXML2_LIBS 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
509 do
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
515 fi
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; }; }
783 ;;
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 ;;
795 *)
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}
801 ;;
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; }; }
810 fi
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
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
826 do
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
850 fi
851 fi
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=..
878 fi
879 else
880 ac_srcdir_defaulted=no
881 fi
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; }; }
889 fi
890 fi
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
948 #
949 # Report the --help message.
950 #
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 gift-gnutella 0.0.11 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
1017 fi
1019 if test -n "$ac_init_help"; then
1020 case $ac_init_help in
1021 short | recursive ) echo "Configuration of gift-gnutella 0.0.11:";;
1022 esac
1023 cat <<\_ACEOF
1025 Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --enable-maintainer-mode enable make rules and dependencies not useful
1029 (and sometimes confusing) to the casual installer
1030 --disable-dependency-tracking Speeds up one-time builds
1031 --enable-dependency-tracking Do not reject slow dependency extractors
1032 --enable-static[=PKGS]
1033 build static libraries [default=no]
1034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1040 Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048 --with-zlib=DIR where to look for ZLIB compiler/linker default paths
1049 DIR points to the ZLIB installation prefix /usr/local
1050 --with-libxml=DIR where to look for libxml compiler/linker default paths
1051 DIR points to the libxml installation prefix /usr/local
1053 Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
1060 CPP C preprocessor
1061 CXX C++ compiler command
1062 CXXFLAGS C++ compiler flags
1063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1070 _ACEOF
1071 fi
1073 if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1080 if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085 ac_dir_suffix= ac_top_builddir=
1086 fi
1088 case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1108 *)
1109 case "$ac_dir" in
1110 .) ac_abs_builddir=`pwd`;;
1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113 esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *)
1118 case ${ac_top_builddir}. in
1119 .) ac_abs_top_builddir=$ac_abs_builddir;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1126 *)
1127 case $ac_srcdir in
1128 .) ac_abs_srcdir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131 esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *)
1136 case $ac_top_srcdir in
1137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140 esac;;
1141 esac
1143 cd $ac_dir
1144 # Check for guested configure; otherwise get Cygnus style configure.
1145 if test -f $ac_srcdir/configure.gnu; then
1146 echo
1147 $SHELL $ac_srcdir/configure.gnu --help=recursive
1148 elif test -f $ac_srcdir/configure; then
1149 echo
1150 $SHELL $ac_srcdir/configure --help=recursive
1151 elif test -f $ac_srcdir/configure.ac ||
1152 test -f $ac_srcdir/configure.in; then
1153 echo
1154 $ac_configure --help
1155 else
1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157 fi
1158 cd "$ac_popdir"
1159 done
1160 fi
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164 cat <<\_ACEOF
1165 gift-gnutella configure 0.0.11
1166 generated by GNU Autoconf 2.59
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1171 _ACEOF
1172 exit 0
1173 fi
1174 exec 5>config.log
1175 cat >&5 <<_ACEOF
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1179 It was created by gift-gnutella $as_me 0.0.11, which was
1180 generated by GNU Autoconf 2.59. Invocation command line was
1182 $ $0 $@
1184 _ACEOF
1186 cat <<_ASUNAME
1187 ## --------- ##
1188 ## Platform. ##
1189 ## --------- ##
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208 _ASUNAME
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 for as_dir in $PATH
1212 do
1213 IFS=$as_save_IFS
1214 test -z "$as_dir" && as_dir=.
1215 echo "PATH: $as_dir"
1216 done
1218 } >&5
1220 cat >&5 <<_ACEOF
1223 ## ----------- ##
1224 ## Core tests. ##
1225 ## ----------- ##
1227 _ACEOF
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1235 ac_configure_args=
1236 ac_configure_args0=
1237 ac_configure_args1=
1238 ac_sep=
1239 ac_must_keep_next=false
1240 for ac_pass in 1 2
1241 do
1242 for ac_arg
1243 do
1244 case $ac_arg in
1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 continue ;;
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 esac
1252 case $ac_pass in
1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 2)
1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256 if test $ac_must_keep_next = true; then
1257 ac_must_keep_next=false # Got value, back to normal.
1258 else
1259 case $ac_arg in
1260 *=* | --config-cache | -C | -disable-* | --disable-* \
1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263 | -with-* | --with-* | -without-* | --without-* | --x)
1264 case "$ac_configure_args0 " in
1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266 esac
1267 ;;
1268 -* ) ac_must_keep_next=true ;;
1269 esac
1270 fi
1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272 # Get rid of the leading space.
1273 ac_sep=" "
1274 ;;
1275 esac
1276 done
1277 done
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log. We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287 # Save into config.log some information that might help in debugging.
1289 echo
1291 cat <<\_ASBOX
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1295 _ASBOX
1296 echo
1297 # The following way of writing the cache mishandles newlines in values,
1299 (set) 2>&1 |
1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301 *ac_space=\ *)
1302 sed -n \
1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305 ;;
1306 *)
1307 sed -n \
1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ;;
1310 esac;
1312 echo
1314 cat <<\_ASBOX
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1318 _ASBOX
1319 echo
1320 for ac_var in $ac_subst_vars
1321 do
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1324 done | sort
1325 echo
1327 if test -n "$ac_subst_files"; then
1328 cat <<\_ASBOX
1329 ## ------------- ##
1330 ## Output files. ##
1331 ## ------------- ##
1332 _ASBOX
1333 echo
1334 for ac_var in $ac_subst_files
1335 do
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1338 done | sort
1339 echo
1340 fi
1342 if test -s confdefs.h; then
1343 cat <<\_ASBOX
1344 ## ----------- ##
1345 ## confdefs.h. ##
1346 ## ----------- ##
1347 _ASBOX
1348 echo
1349 sed "/^$/d" confdefs.h | sort
1350 echo
1351 fi
1352 test "$ac_signal" != 0 &&
1353 echo "$as_me: caught signal $ac_signal"
1354 echo "$as_me: exit $exit_status"
1355 } >&5
1356 rm -f core *.core &&
1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358 exit $exit_status
1359 ' 0
1360 for ac_signal in 1 2 13 15; do
1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 done
1363 ac_signal=0
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 echo >confdefs.h
1370 # Predefined preprocessor variables.
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 _ACEOF
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 _ACEOF
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 _ACEOF
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 _ACEOF
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 _ACEOF
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400 if test "x$prefix" != xNONE; then
1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 else
1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404 fi
1405 fi
1406 for ac_site_file in $CONFIG_SITE; do
1407 if test -r "$ac_site_file"; then
1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410 sed 's/^/| /' "$ac_site_file" >&5
1411 . "$ac_site_file"
1412 fi
1413 done
1415 if test -r "$cache_file"; then
1416 # Some versions of bash will fail to source /dev/null (special
1417 # files actually), so we avoid doing that.
1418 if test -f "$cache_file"; then
1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1421 case $cache_file in
1422 [\\/]* | ?:[\\/]* ) . $cache_file;;
1423 *) . ./$cache_file;;
1424 esac
1425 fi
1426 else
1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1429 >$cache_file
1430 fi
1432 # Check that the precious variables saved in the cache have kept the same
1433 # value.
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438 eval ac_new_set=\$ac_env_${ac_var}_set
1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440 eval ac_new_val="\$ac_env_${ac_var}_value"
1441 case $ac_old_set,$ac_new_set in
1442 set,)
1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445 ac_cache_corrupted=: ;;
1446 ,set)
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1450 ,);;
1451 *)
1452 if test "x$ac_old_val" != "x$ac_new_val"; then
1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1456 echo "$as_me: former value: $ac_old_val" >&2;}
1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1458 echo "$as_me: current value: $ac_new_val" >&2;}
1459 ac_cache_corrupted=:
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1473 fi
1474 done
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480 { (exit 1); exit 1; }; }
1481 fi
1483 ac_ext=c
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518 cat >>confdefs.h <<\_ACEOF
1519 #define GT_MAJOR_VERSION "0"
1520 _ACEOF
1523 cat >>confdefs.h <<\_ACEOF
1524 #define GT_MINOR_VERSION "0"
1525 _ACEOF
1528 cat >>confdefs.h <<\_ACEOF
1529 #define GT_MICRO_VERSION "10"
1530 _ACEOF
1533 if test -e "$srcdir/CVS"; then
1535 cat >>confdefs.h <<\_ACEOF
1536 #define GT_EXTRA_VERSION "-cvs"
1537 _ACEOF
1539 else
1541 cat >>confdefs.h <<\_ACEOF
1542 #define GT_EXTRA_VERSION ""
1543 _ACEOF
1545 fi
1548 am__api_version="1.7"
1549 ac_aux_dir=
1550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1551 if test -f $ac_dir/install-sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install-sh -c"
1554 break
1555 elif test -f $ac_dir/install.sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1558 break
1559 elif test -f $ac_dir/shtool; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1562 break
1563 fi
1564 done
1565 if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1567 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1568 { (exit 1); exit 1; }; }
1569 fi
1570 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1574 # Find a good install program. We prefer a C program (faster),
1575 # so one script is as good as another. But avoid the broken or
1576 # incompatible versions:
1577 # SysV /etc/install, /usr/sbin/install
1578 # SunOS /usr/etc/install
1579 # IRIX /sbin/install
1580 # AIX /bin/install
1581 # AmigaOS /C/install, which installs bootblocks on floppy discs
1582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1585 # OS/2's system install, which has a completely different semantic
1586 # ./install, which can be erroneously created by make from ./install.sh.
1587 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1588 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1589 if test -z "$INSTALL"; then
1590 if test "${ac_cv_path_install+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1595 do
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 # Account for people who put trailing slashes in PATH elements.
1599 case $as_dir/ in
1600 ./ | .// | /cC/* | \
1601 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1602 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1603 /usr/ucb/* ) ;;
1604 *)
1605 # OSF1 and SCO ODT 3.0 have their own names for install.
1606 # Don't use installbsd from OSF since it installs stuff as root
1607 # by default.
1608 for ac_prog in ginstall scoinst install; do
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1611 if test $ac_prog = install &&
1612 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1613 # AIX install. It has an incompatible calling convention.
1615 elif test $ac_prog = install &&
1616 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1617 # program-specific install script used by HP pwplus--don't use.
1619 else
1620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1621 break 3
1622 fi
1623 fi
1624 done
1625 done
1626 ;;
1627 esac
1628 done
1631 fi
1632 if test "${ac_cv_path_install+set}" = set; then
1633 INSTALL=$ac_cv_path_install
1634 else
1635 # As a last resort, use the slow shell script. We don't cache a
1636 # path for INSTALL within a source directory, because that will
1637 # break other packages using the cache if that directory is
1638 # removed, or if the path is relative.
1639 INSTALL=$ac_install_sh
1640 fi
1641 fi
1642 echo "$as_me:$LINENO: result: $INSTALL" >&5
1643 echo "${ECHO_T}$INSTALL" >&6
1645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1646 # It thinks the first close brace ends the variable substitution.
1647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1653 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1654 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1655 # Just in case
1656 sleep 1
1657 echo timestamp > conftest.file
1658 # Do `set' in a subshell so we don't clobber the current shell's
1659 # arguments. Must try -L first in case configure is actually a
1660 # symlink; some systems play weird games with the mod time of symlinks
1661 # (eg FreeBSD returns the mod time of the symlink's containing
1662 # directory).
1663 if (
1664 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1665 if test "$*" = "X"; then
1666 # -L didn't work.
1667 set X `ls -t $srcdir/configure conftest.file`
1668 fi
1669 rm -f conftest.file
1670 if test "$*" != "X $srcdir/configure conftest.file" \
1671 && test "$*" != "X conftest.file $srcdir/configure"; then
1673 # If neither matched, then we have a broken ls. This can happen
1674 # if, for instance, CONFIG_SHELL is bash and it inherits a
1675 # broken ls alias from the environment. This has actually
1676 # happened. Such a system could not be considered "sane".
1677 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1678 alias in your environment" >&5
1679 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1680 alias in your environment" >&2;}
1681 { (exit 1); exit 1; }; }
1682 fi
1684 test "$2" = conftest.file
1686 then
1687 # Ok.
1689 else
1690 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1691 Check your system clock" >&5
1692 echo "$as_me: error: newly created file is older than distributed files!
1693 Check your system clock" >&2;}
1694 { (exit 1); exit 1; }; }
1695 fi
1696 echo "$as_me:$LINENO: result: yes" >&5
1697 echo "${ECHO_T}yes" >&6
1698 test "$program_prefix" != NONE &&
1699 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1700 # Use a double $ so make ignores it.
1701 test "$program_suffix" != NONE &&
1702 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1703 # Double any \ or $. echo might interpret backslashes.
1704 # By default was `s,x,x', remove it if useless.
1705 cat <<\_ACEOF >conftest.sed
1706 s/[\\$]/&&/g;s/;s,x,x,$//
1707 _ACEOF
1708 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1709 rm conftest.sed
1712 # expand $ac_aux_dir to an absolute path
1713 am_aux_dir=`cd $ac_aux_dir && pwd`
1715 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1716 # Use eval to expand $SHELL
1717 if eval "$MISSING --run true"; then
1718 am_missing_run="$MISSING --run "
1719 else
1720 am_missing_run=
1721 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1722 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1723 fi
1725 for ac_prog in gawk mawk nawk awk
1726 do
1727 # Extract the first word of "$ac_prog", so it can be a program name with args.
1728 set dummy $ac_prog; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_AWK+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 if test -n "$AWK"; then
1735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_AWK="$ac_prog"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 break 2
1747 fi
1748 done
1749 done
1751 fi
1752 fi
1753 AWK=$ac_cv_prog_AWK
1754 if test -n "$AWK"; then
1755 echo "$as_me:$LINENO: result: $AWK" >&5
1756 echo "${ECHO_T}$AWK" >&6
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1760 fi
1762 test -n "$AWK" && break
1763 done
1765 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1766 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1767 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1768 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 cat >conftest.make <<\_ACEOF
1772 all:
1773 @echo 'ac_maketemp="$(MAKE)"'
1774 _ACEOF
1775 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1776 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1777 if test -n "$ac_maketemp"; then
1778 eval ac_cv_prog_make_${ac_make}_set=yes
1779 else
1780 eval ac_cv_prog_make_${ac_make}_set=no
1781 fi
1782 rm -f conftest.make
1783 fi
1784 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1785 echo "$as_me:$LINENO: result: yes" >&5
1786 echo "${ECHO_T}yes" >&6
1787 SET_MAKE=
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 SET_MAKE="MAKE=${MAKE-make}"
1792 fi
1794 rm -rf .tst 2>/dev/null
1795 mkdir .tst 2>/dev/null
1796 if test -d .tst; then
1797 am__leading_dot=.
1798 else
1799 am__leading_dot=_
1800 fi
1801 rmdir .tst 2>/dev/null
1803 # test to see if srcdir already configured
1804 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805 test -f $srcdir/config.status; then
1806 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
1811 # test whether we have cygpath
1812 if test -z "$CYGPATH_W"; then
1813 if (cygpath --version) >/dev/null 2>/dev/null; then
1814 CYGPATH_W='cygpath -w'
1815 else
1816 CYGPATH_W=echo
1817 fi
1818 fi
1821 # Define the identity of the package.
1822 PACKAGE='gift-gnutella'
1823 VERSION='0.0.11'
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE "$PACKAGE"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define VERSION "$VERSION"
1833 _ACEOF
1835 # Some tools Automake needs.
1837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1852 AMTAR=${AMTAR-"${am_missing_run}tar"}
1854 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1856 # Installed binaries are usually stripped using `strip' when the user
1857 # run `make install-strip'. However `strip' might not be the right
1858 # tool to use in cross-compilation environments, therefore Automake
1859 # will honor the `STRIP' environment variable to overrule this program.
1860 if test "$cross_compiling" != no; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}strip; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_STRIP+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$STRIP"; then
1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883 done
1884 done
1886 fi
1887 fi
1888 STRIP=$ac_cv_prog_STRIP
1889 if test -n "$STRIP"; then
1890 echo "$as_me:$LINENO: result: $STRIP" >&5
1891 echo "${ECHO_T}$STRIP" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1897 fi
1898 if test -z "$ac_cv_prog_STRIP"; then
1899 ac_ct_STRIP=$STRIP
1900 # Extract the first word of "strip", so it can be a program name with args.
1901 set dummy strip; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$ac_ct_STRIP"; then
1908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_STRIP="strip"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921 done
1922 done
1924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1925 fi
1926 fi
1927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1928 if test -n "$ac_ct_STRIP"; then
1929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1930 echo "${ECHO_T}$ac_ct_STRIP" >&6
1931 else
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1934 fi
1936 STRIP=$ac_ct_STRIP
1937 else
1938 STRIP="$ac_cv_prog_STRIP"
1939 fi
1941 fi
1942 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1944 # We need awk for the "check" target. The system "awk" is bad on
1945 # some platforms.
1949 ac_config_headers="$ac_config_headers config.h"
1952 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1953 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1954 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1955 if test "${enable_maintainer_mode+set}" = set; then
1956 enableval="$enable_maintainer_mode"
1957 USE_MAINTAINER_MODE=$enableval
1958 else
1959 USE_MAINTAINER_MODE=no
1960 fi;
1961 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1962 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1965 if test $USE_MAINTAINER_MODE = yes; then
1966 MAINTAINER_MODE_TRUE=
1967 MAINTAINER_MODE_FALSE='#'
1968 else
1969 MAINTAINER_MODE_TRUE='#'
1970 MAINTAINER_MODE_FALSE=
1971 fi
1973 MAINT=$MAINTAINER_MODE_TRUE
1984 ac_ext=c
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989 if test -n "$ac_tool_prefix"; then
1990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 if test -n "$CC"; then
1998 ac_cv_prog_CC="$CC" # Let the user override the test.
1999 else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2010 fi
2011 done
2012 done
2014 fi
2015 fi
2016 CC=$ac_cv_prog_CC
2017 if test -n "$CC"; then
2018 echo "$as_me:$LINENO: result: $CC" >&5
2019 echo "${ECHO_T}$CC" >&6
2020 else
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2023 fi
2025 fi
2026 if test -z "$ac_cv_prog_CC"; then
2027 ac_ct_CC=$CC
2028 # Extract the first word of "gcc", so it can be a program name with args.
2029 set dummy gcc; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045 ac_cv_prog_ac_ct_CC="gcc"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2048 fi
2049 done
2050 done
2052 fi
2053 fi
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6
2058 else
2059 echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2063 CC=$ac_ct_CC
2064 else
2065 CC="$ac_cv_prog_CC"
2066 fi
2068 if test -z "$CC"; then
2069 if test -n "$ac_tool_prefix"; then
2070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2071 set dummy ${ac_tool_prefix}cc; ac_word=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077 if test -n "$CC"; then
2078 ac_cv_prog_CC="$CC" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087 ac_cv_prog_CC="${ac_tool_prefix}cc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2090 fi
2091 done
2092 done
2094 fi
2095 fi
2096 CC=$ac_cv_prog_CC
2097 if test -n "$CC"; then
2098 echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6
2100 else
2101 echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2103 fi
2105 fi
2106 if test -z "$ac_cv_prog_CC"; then
2107 ac_ct_CC=$CC
2108 # Extract the first word of "cc", so it can be a program name with args.
2109 set dummy cc; ac_word=$2
2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115 if test -n "$ac_ct_CC"; then
2116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 ac_cv_prog_ac_ct_CC="cc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 break 2
2128 fi
2129 done
2130 done
2132 fi
2133 fi
2134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2135 if test -n "$ac_ct_CC"; then
2136 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2137 echo "${ECHO_T}$ac_ct_CC" >&6
2138 else
2139 echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2141 fi
2143 CC=$ac_ct_CC
2144 else
2145 CC="$ac_cv_prog_CC"
2146 fi
2148 fi
2149 if test -z "$CC"; then
2150 # Extract the first word of "cc", so it can be a program name with args.
2151 set dummy cc; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 ac_prog_rejected=no
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2169 ac_prog_rejected=yes
2170 continue
2171 fi
2172 ac_cv_prog_CC="cc"
2173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2175 fi
2176 done
2177 done
2179 if test $ac_prog_rejected = yes; then
2180 # We found a bogon in the path, so make sure we never use it.
2181 set dummy $ac_cv_prog_CC
2182 shift
2183 if test $# != 0; then
2184 # We chose a different compiler from the bogus one.
2185 # However, it has the same basename, so the bogon will be chosen
2186 # first if we set CC to just the basename; use the full file name.
2187 shift
2188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2189 fi
2190 fi
2191 fi
2192 fi
2193 CC=$ac_cv_prog_CC
2194 if test -n "$CC"; then
2195 echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6
2197 else
2198 echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2200 fi
2202 fi
2203 if test -z "$CC"; then
2204 if test -n "$ac_tool_prefix"; then
2205 for ac_prog in cl
2206 do
2207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2209 echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2227 fi
2228 done
2229 done
2231 fi
2232 fi
2233 CC=$ac_cv_prog_CC
2234 if test -n "$CC"; then
2235 echo "$as_me:$LINENO: result: $CC" >&5
2236 echo "${ECHO_T}$CC" >&6
2237 else
2238 echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2240 fi
2242 test -n "$CC" && break
2243 done
2244 fi
2245 if test -z "$CC"; then
2246 ac_ct_CC=$CC
2247 for ac_prog in cl
2248 do
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy $ac_prog; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 if test -n "$ac_ct_CC"; then
2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_ac_ct_CC="$ac_prog"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2269 fi
2270 done
2271 done
2273 fi
2274 fi
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278 echo "${ECHO_T}$ac_ct_CC" >&6
2279 else
2280 echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2282 fi
2284 test -n "$ac_ct_CC" && break
2285 done
2287 CC=$ac_ct_CC
2288 fi
2290 fi
2293 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: no acceptable C compiler found in \$PATH
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2299 # Provide some information about the compiler.
2300 echo "$as_me:$LINENO:" \
2301 "checking for C compiler version" >&5
2302 ac_compiler=`set X $ac_compile; echo $2`
2303 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2304 (eval $ac_compiler --version </dev/null >&5) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }
2308 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2309 (eval $ac_compiler -v </dev/null >&5) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }
2313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2314 (eval $ac_compiler -V </dev/null >&5) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }
2319 cat >conftest.$ac_ext <<_ACEOF
2320 /* confdefs.h. */
2321 _ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h. */
2326 int
2327 main ()
2331 return 0;
2333 _ACEOF
2334 ac_clean_files_save=$ac_clean_files
2335 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2336 # Try to create an executable without -o first, disregard a.out.
2337 # It will help us diagnose broken compilers, and finding out an intuition
2338 # of exeext.
2339 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2340 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2341 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2342 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2343 (eval $ac_link_default) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 # Find the output, starting from the most likely. This scheme is
2348 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2349 # resort.
2351 # Be careful to initialize this variable, since it used to be cached.
2352 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2353 ac_cv_exeext=
2354 # b.out is created by i960 compilers.
2355 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2356 do
2357 test -f "$ac_file" || continue
2358 case $ac_file in
2359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2360 ;;
2361 conftest.$ac_ext )
2362 # This is the source file.
2363 ;;
2364 [ab].out )
2365 # We found the default executable, but exeext='' is most
2366 # certainly right.
2367 break;;
2368 *.* )
2369 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2370 # FIXME: I believe we export ac_cv_exeext for Libtool,
2371 # but it would be cool to find out if it's true. Does anybody
2372 # maintain Libtool? --akim.
2373 export ac_cv_exeext
2374 break;;
2375 * )
2376 break;;
2377 esac
2378 done
2379 else
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2383 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: C compiler cannot create executables
2386 See \`config.log' for more details." >&2;}
2387 { (exit 77); exit 77; }; }
2388 fi
2390 ac_exeext=$ac_cv_exeext
2391 echo "$as_me:$LINENO: result: $ac_file" >&5
2392 echo "${ECHO_T}$ac_file" >&6
2394 # Check the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2397 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2398 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2399 # If not cross compiling, check that we can run a simple program.
2400 if test "$cross_compiling" != yes; then
2401 if { ac_try='./$ac_file'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 cross_compiling=no
2408 else
2409 if test "$cross_compiling" = maybe; then
2410 cross_compiling=yes
2411 else
2412 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2413 If you meant to cross compile, use \`--host'.
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: cannot run C compiled programs.
2416 If you meant to cross compile, use \`--host'.
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2419 fi
2420 fi
2421 fi
2422 echo "$as_me:$LINENO: result: yes" >&5
2423 echo "${ECHO_T}yes" >&6
2425 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2426 ac_clean_files=$ac_clean_files_save
2427 # Check the compiler produces executables we can run. If not, either
2428 # the compiler is broken, or we cross compile.
2429 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2430 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2431 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2432 echo "${ECHO_T}$cross_compiling" >&6
2434 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2435 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2437 (eval $ac_link) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; then
2441 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2442 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2443 # work properly (i.e., refer to `conftest.exe'), while it won't with
2444 # `rm'.
2445 for ac_file in conftest.exe conftest conftest.*; do
2446 test -f "$ac_file" || continue
2447 case $ac_file in
2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2449 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2450 export ac_cv_exeext
2451 break;;
2452 * ) break;;
2453 esac
2454 done
2455 else
2456 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2457 See \`config.log' for more details." >&5
2458 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2459 See \`config.log' for more details." >&2;}
2460 { (exit 1); exit 1; }; }
2461 fi
2463 rm -f conftest$ac_cv_exeext
2464 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2465 echo "${ECHO_T}$ac_cv_exeext" >&6
2467 rm -f conftest.$ac_ext
2468 EXEEXT=$ac_cv_exeext
2469 ac_exeext=$EXEEXT
2470 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2471 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2472 if test "${ac_cv_objext+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. */
2482 int
2483 main ()
2487 return 0;
2489 _ACEOF
2490 rm -f conftest.o conftest.obj
2491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; then
2496 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2497 case $ac_file in
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2500 break;;
2501 esac
2502 done
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2512 fi
2514 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2515 fi
2516 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2517 echo "${ECHO_T}$ac_cv_objext" >&6
2518 OBJEXT=$ac_cv_objext
2519 ac_objext=$OBJEXT
2520 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2521 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2522 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h. */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2532 int
2533 main ()
2535 #ifndef __GNUC__
2536 choke me
2537 #endif
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_compiler_gnu=yes
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2569 ac_compiler_gnu=no
2570 fi
2571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2574 fi
2575 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2576 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2577 GCC=`test $ac_compiler_gnu = yes && echo yes`
2578 ac_test_CFLAGS=${CFLAGS+set}
2579 ac_save_CFLAGS=$CFLAGS
2580 CFLAGS="-g"
2581 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2582 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2583 if test "${ac_cv_prog_cc_g+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2593 int
2594 main ()
2598 return 0;
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 ac_cv_prog_cc_g=yes
2623 else
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2627 ac_cv_prog_cc_g=no
2628 fi
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633 if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS=$ac_save_CFLAGS
2635 elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2637 CFLAGS="-g -O2"
2638 else
2639 CFLAGS="-g"
2640 fi
2641 else
2642 if test "$GCC" = yes; then
2643 CFLAGS="-O2"
2644 else
2645 CFLAGS=
2646 fi
2647 fi
2648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 ac_cv_prog_cc_stdc=no
2654 ac_save_CC=$CC
2655 cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h. */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2661 #include <stdarg.h>
2662 #include <stdio.h>
2663 #include <sys/types.h>
2664 #include <sys/stat.h>
2665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2666 struct buf { int x; };
2667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2668 static char *e (p, i)
2669 char **p;
2670 int i;
2672 return p[i];
2674 static char *f (char * (*g) (char **, int), char **p, ...)
2676 char *s;
2677 va_list v;
2678 va_start (v,p);
2679 s = g (p, va_arg (v,int));
2680 va_end (v);
2681 return s;
2684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2685 function prototypes and stuff, but not '\xHH' hex character constants.
2686 These don't provoke an error unfortunately, instead are silently treated
2687 as 'x'. The following induces an error, until -std1 is added to get
2688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2689 array size at least. It's necessary to write '\x00'==0 to get something
2690 that's true only with -std1. */
2691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2693 int test (int i, double x);
2694 struct s1 {int (*f) (int a);};
2695 struct s2 {int (*f) (double a);};
2696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2697 int argc;
2698 char **argv;
2699 int
2700 main ()
2702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2704 return 0;
2706 _ACEOF
2707 # Don't try gcc -ansi; that turns off useful extensions and
2708 # breaks some systems' header files.
2709 # AIX -qlanglvl=ansi
2710 # Ultrix and OSF/1 -std1
2711 # HP-UX 10.20 and later -Ae
2712 # HP-UX older versions -Aa -D_HPUX_SOURCE
2713 # SVR4 -Xc -D__EXTENSIONS__
2714 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2715 do
2716 CC="$ac_save_CC $ac_arg"
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_stdc=$ac_arg
2739 break
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2744 fi
2745 rm -f conftest.err conftest.$ac_objext
2746 done
2747 rm -f conftest.$ac_ext conftest.$ac_objext
2748 CC=$ac_save_CC
2750 fi
2752 case "x$ac_cv_prog_cc_stdc" in
2753 x|xno)
2754 echo "$as_me:$LINENO: result: none needed" >&5
2755 echo "${ECHO_T}none needed" >&6 ;;
2756 *)
2757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2758 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2759 CC="$CC $ac_cv_prog_cc_stdc" ;;
2760 esac
2762 # Some people use a C++ compiler to compile C. Since we use `exit',
2763 # in C++ we need to declare it. In case someone uses the same compiler
2764 # for both compiling C and C++ we need to have the C++ compiler decide
2765 # the declaration of exit, since it's the most demanding environment.
2766 cat >conftest.$ac_ext <<_ACEOF
2767 #ifndef __cplusplus
2768 choke me
2769 #endif
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag" || 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
2792 for ac_declaration in \
2793 '' \
2794 'extern "C" void std::exit (int) throw (); using std::exit;' \
2795 'extern "C" void std::exit (int); using std::exit;' \
2796 'extern "C" void exit (int) throw ();' \
2797 'extern "C" void exit (int);' \
2798 'void exit (int);'
2799 do
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
2807 #include <stdlib.h>
2808 int
2809 main ()
2811 exit (42);
2813 return 0;
2815 _ACEOF
2816 rm -f conftest.$ac_objext
2817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2818 (eval $ac_compile) 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -z "$ac_c_werror_flag" || 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
2838 else
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2842 continue
2843 fi
2844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845 cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h. */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2851 $ac_declaration
2852 int
2853 main ()
2855 exit (42);
2857 return 0;
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2881 break
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2886 fi
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 done
2889 rm -f conftest*
2890 if test -n "$ac_declaration"; then
2891 echo '#ifdef __cplusplus' >>confdefs.h
2892 echo $ac_declaration >>confdefs.h
2893 echo '#endif' >>confdefs.h
2894 fi
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 fi
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 ac_ext=c
2903 ac_cpp='$CPP $CPPFLAGS'
2904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907 DEPDIR="${am__leading_dot}deps"
2909 ac_config_commands="$ac_config_commands depfiles"
2912 am_make=${MAKE-make}
2913 cat > confinc << 'END'
2914 am__doit:
2915 @echo done
2916 .PHONY: am__doit
2917 END
2918 # If we don't find an include directive, just comment out the code.
2919 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2920 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2921 am__include="#"
2922 am__quote=
2923 _am_result=none
2924 # First try GNU make style include.
2925 echo "include confinc" > confmf
2926 # We grep out `Entering directory' and `Leaving directory'
2927 # messages which can occur if `w' ends up in MAKEFLAGS.
2928 # In particular we don't look at `^make:' because GNU make might
2929 # be invoked under some other name (usually "gmake"), in which
2930 # case it prints its new name instead of `make'.
2931 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2932 am__include=include
2933 am__quote=
2934 _am_result=GNU
2935 fi
2936 # Now try BSD make style include.
2937 if test "$am__include" = "#"; then
2938 echo '.include "confinc"' > confmf
2939 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2940 am__include=.include
2941 am__quote="\""
2942 _am_result=BSD
2943 fi
2944 fi
2947 echo "$as_me:$LINENO: result: $_am_result" >&5
2948 echo "${ECHO_T}$_am_result" >&6
2949 rm -f confinc confmf
2951 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2952 if test "${enable_dependency_tracking+set}" = set; then
2953 enableval="$enable_dependency_tracking"
2955 fi;
2956 if test "x$enable_dependency_tracking" != xno; then
2957 am_depcomp="$ac_aux_dir/depcomp"
2958 AMDEPBACKSLASH='\'
2959 fi
2962 if test "x$enable_dependency_tracking" != xno; then
2963 AMDEP_TRUE=
2964 AMDEP_FALSE='#'
2965 else
2966 AMDEP_TRUE='#'
2967 AMDEP_FALSE=
2968 fi
2973 depcc="$CC" am_compiler_list=
2975 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2976 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2977 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2981 # We make a subdir and do the tests there. Otherwise we can end up
2982 # making bogus files that we don't know about and never remove. For
2983 # instance it was reported that on HP-UX the gcc test will end up
2984 # making a dummy file named `D' -- because `-MD' means `put the output
2985 # in D'.
2986 mkdir conftest.dir
2987 # Copy depcomp to subdir because otherwise we won't find it if we're
2988 # using a relative directory.
2989 cp "$am_depcomp" conftest.dir
2990 cd conftest.dir
2991 # We will build objects and dependencies in a subdirectory because
2992 # it helps to detect inapplicable dependency modes. For instance
2993 # both Tru64's cc and ICC support -MD to output dependencies as a
2994 # side effect of compilation, but ICC will put the dependencies in
2995 # the current directory while Tru64 will put them in the object
2996 # directory.
2997 mkdir sub
2999 am_cv_CC_dependencies_compiler_type=none
3000 if test "$am_compiler_list" = ""; then
3001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3002 fi
3003 for depmode in $am_compiler_list; do
3004 # Setup a source with many dependencies, because some compilers
3005 # like to wrap large dependency lists on column 80 (with \), and
3006 # we should not choose a depcomp mode which is confused by this.
3008 # We need to recreate these files for each test, as the compiler may
3009 # overwrite some of them when testing with obscure command lines.
3010 # This happens at least with the AIX C compiler.
3011 : > sub/conftest.c
3012 for i in 1 2 3 4 5 6; do
3013 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3014 : > sub/conftst$i.h
3015 done
3016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3018 case $depmode in
3019 nosideeffect)
3020 # after this tag, mechanisms are not by side-effect, so they'll
3021 # only be used when explicitly requested
3022 if test "x$enable_dependency_tracking" = xyes; then
3023 continue
3024 else
3025 break
3026 fi
3027 ;;
3028 none) break ;;
3029 esac
3030 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3031 # mode. It turns out that the SunPro C++ compiler does not properly
3032 # handle `-M -o', and we need to detect this.
3033 if depmode=$depmode \
3034 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3037 >/dev/null 2>conftest.err &&
3038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3039 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3041 # icc doesn't choke on unknown options, it will just issue warnings
3042 # (even with -Werror). So we grep stderr for any message
3043 # that says an option was ignored.
3044 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3045 am_cv_CC_dependencies_compiler_type=$depmode
3046 break
3047 fi
3048 fi
3049 done
3051 cd ..
3052 rm -rf conftest.dir
3053 else
3054 am_cv_CC_dependencies_compiler_type=none
3055 fi
3057 fi
3058 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3059 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3064 if
3065 test "x$enable_dependency_tracking" != xno \
3066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3067 am__fastdepCC_TRUE=
3068 am__fastdepCC_FALSE='#'
3069 else
3070 am__fastdepCC_TRUE='#'
3071 am__fastdepCC_FALSE=
3072 fi
3079 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3080 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3081 if test "${am_cv_prog_cc_stdc+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 am_cv_prog_cc_stdc=no
3085 ac_save_CC="$CC"
3086 # Don't try gcc -ansi; that turns off useful extensions and
3087 # breaks some systems' header files.
3088 # AIX -qlanglvl=ansi
3089 # Ultrix and OSF/1 -std1
3090 # HP-UX 10.20 and later -Ae
3091 # HP-UX older versions -Aa -D_HPUX_SOURCE
3092 # SVR4 -Xc -D__EXTENSIONS__
3093 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3094 do
3095 CC="$ac_save_CC $ac_arg"
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <stdarg.h>
3103 #include <stdio.h>
3104 #include <sys/types.h>
3105 #include <sys/stat.h>
3106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3107 struct buf { int x; };
3108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3109 static char *e (p, i)
3110 char **p;
3111 int i;
3113 return p[i];
3115 static char *f (char * (*g) (char **, int), char **p, ...)
3117 char *s;
3118 va_list v;
3119 va_start (v,p);
3120 s = g (p, va_arg (v,int));
3121 va_end (v);
3122 return s;
3124 int test (int i, double x);
3125 struct s1 {int (*f) (int a);};
3126 struct s2 {int (*f) (double a);};
3127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3128 int argc;
3129 char **argv;
3131 int
3132 main ()
3135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3138 return 0;
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 am_cv_prog_cc_stdc="$ac_arg"; break
3163 else
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 fi
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 done
3170 CC="$ac_save_CC"
3172 fi
3174 if test -z "$am_cv_prog_cc_stdc"; then
3175 echo "$as_me:$LINENO: result: none needed" >&5
3176 echo "${ECHO_T}none needed" >&6
3177 else
3178 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3179 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3180 fi
3181 case "x$am_cv_prog_cc_stdc" in
3182 x|xno) ;;
3183 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3184 esac
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3193 # On Suns, sometimes $CPP names a directory.
3194 if test -n "$CPP" && test -d "$CPP"; then
3195 CPP=
3196 fi
3197 if test -z "$CPP"; then
3198 if test "${ac_cv_prog_CPP+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 # Double quotes because CPP needs to be expanded
3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3203 do
3204 ac_preproc_ok=false
3205 for ac_c_preproc_warn_flag in '' yes
3206 do
3207 # Use a header file that comes with gcc, so configuring glibc
3208 # with a fresh cross-compiler works.
3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 # <limits.h> exists even on freestanding compilers.
3211 # On the NeXT, cc -E runs the code through the compiler's parser,
3212 # not just through cpp. "Syntax error" is here to catch this case.
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #ifdef __STDC__
3220 # include <limits.h>
3221 #else
3222 # include <assert.h>
3223 #endif
3224 Syntax error
3225 _ACEOF
3226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } >/dev/null; then
3234 if test -s conftest.err; then
3235 ac_cpp_err=$ac_c_preproc_warn_flag
3236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3237 else
3238 ac_cpp_err=
3239 fi
3240 else
3241 ac_cpp_err=yes
3242 fi
3243 if test -z "$ac_cpp_err"; then
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 # Broken: fails on valid input.
3250 continue
3251 fi
3252 rm -f conftest.err conftest.$ac_ext
3254 # OK, works on sane cases. Now check whether non-existent headers
3255 # can be detected and how.
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 #include <ac_nonexistent.h>
3263 _ACEOF
3264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } >/dev/null; then
3272 if test -s conftest.err; then
3273 ac_cpp_err=$ac_c_preproc_warn_flag
3274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3275 else
3276 ac_cpp_err=
3277 fi
3278 else
3279 ac_cpp_err=yes
3280 fi
3281 if test -z "$ac_cpp_err"; then
3282 # Broken: success on invalid input.
3283 continue
3284 else
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 # Passes both tests.
3289 ac_preproc_ok=:
3290 break
3291 fi
3292 rm -f conftest.err conftest.$ac_ext
3294 done
3295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3296 rm -f conftest.err conftest.$ac_ext
3297 if $ac_preproc_ok; then
3298 break
3299 fi
3301 done
3302 ac_cv_prog_CPP=$CPP
3304 fi
3305 CPP=$ac_cv_prog_CPP
3306 else
3307 ac_cv_prog_CPP=$CPP
3308 fi
3309 echo "$as_me:$LINENO: result: $CPP" >&5
3310 echo "${ECHO_T}$CPP" >&6
3311 ac_preproc_ok=false
3312 for ac_c_preproc_warn_flag in '' yes
3313 do
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h. */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 #ifdef __STDC__
3327 # include <limits.h>
3328 #else
3329 # include <assert.h>
3330 #endif
3331 Syntax error
3332 _ACEOF
3333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null; then
3341 if test -s conftest.err; then
3342 ac_cpp_err=$ac_c_preproc_warn_flag
3343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3344 else
3345 ac_cpp_err=
3346 fi
3347 else
3348 ac_cpp_err=yes
3349 fi
3350 if test -z "$ac_cpp_err"; then
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3356 # Broken: fails on valid input.
3357 continue
3358 fi
3359 rm -f conftest.err conftest.$ac_ext
3361 # OK, works on sane cases. Now check whether non-existent headers
3362 # can be detected and how.
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include <ac_nonexistent.h>
3370 _ACEOF
3371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382 else
3383 ac_cpp_err=
3384 fi
3385 else
3386 ac_cpp_err=yes
3387 fi
3388 if test -z "$ac_cpp_err"; then
3389 # Broken: success on invalid input.
3390 continue
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 # Passes both tests.
3396 ac_preproc_ok=:
3397 break
3398 fi
3399 rm -f conftest.err conftest.$ac_ext
3401 done
3402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403 rm -f conftest.err conftest.$ac_ext
3404 if $ac_preproc_ok; then
3406 else
3407 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3408 See \`config.log' for more details." >&5
3409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }
3412 fi
3414 ac_ext=c
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421 echo "$as_me:$LINENO: checking for egrep" >&5
3422 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3423 if test "${ac_cv_prog_egrep+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3427 then ac_cv_prog_egrep='grep -E'
3428 else ac_cv_prog_egrep='egrep'
3429 fi
3430 fi
3431 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3432 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3433 EGREP=$ac_cv_prog_egrep
3436 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3437 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3438 if test "${ac_cv_header_stdc+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <stdlib.h>
3448 #include <stdarg.h>
3449 #include <string.h>
3450 #include <float.h>
3452 int
3453 main ()
3457 return 0;
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; } &&
3475 { ac_try='test -s conftest.$ac_objext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_header_stdc=yes
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3486 ac_cv_header_stdc=no
3487 fi
3488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3490 if test $ac_cv_header_stdc = yes; then
3491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3492 cat >conftest.$ac_ext <<_ACEOF
3493 /* confdefs.h. */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 #include <string.h>
3500 _ACEOF
3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3502 $EGREP "memchr" >/dev/null 2>&1; then
3504 else
3505 ac_cv_header_stdc=no
3506 fi
3507 rm -f conftest*
3509 fi
3511 if test $ac_cv_header_stdc = yes; then
3512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <stdlib.h>
3521 _ACEOF
3522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3523 $EGREP "free" >/dev/null 2>&1; then
3525 else
3526 ac_cv_header_stdc=no
3527 fi
3528 rm -f conftest*
3530 fi
3532 if test $ac_cv_header_stdc = yes; then
3533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3534 if test "$cross_compiling" = yes; then
3536 else
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <ctype.h>
3544 #if ((' ' & 0x0FF) == 0x020)
3545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3547 #else
3548 # define ISLOWER(c) \
3549 (('a' <= (c) && (c) <= 'i') \
3550 || ('j' <= (c) && (c) <= 'r') \
3551 || ('s' <= (c) && (c) <= 'z'))
3552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3553 #endif
3555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3556 int
3557 main ()
3559 int i;
3560 for (i = 0; i < 256; i++)
3561 if (XOR (islower (i), ISLOWER (i))
3562 || toupper (i) != TOUPPER (i))
3563 exit(2);
3564 exit (0);
3566 _ACEOF
3567 rm -f conftest$ac_exeext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3569 (eval $ac_link) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3579 else
3580 echo "$as_me: program exited with status $ac_status" >&5
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 ( exit $ac_status )
3585 ac_cv_header_stdc=no
3586 fi
3587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 fi
3590 fi
3591 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3592 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3593 if test $ac_cv_header_stdc = yes; then
3595 cat >>confdefs.h <<\_ACEOF
3596 #define STDC_HEADERS 1
3597 _ACEOF
3599 fi
3601 # Find a good install program. We prefer a C program (faster),
3602 # so one script is as good as another. But avoid the broken or
3603 # incompatible versions:
3604 # SysV /etc/install, /usr/sbin/install
3605 # SunOS /usr/etc/install
3606 # IRIX /sbin/install
3607 # AIX /bin/install
3608 # AmigaOS /C/install, which installs bootblocks on floppy discs
3609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3612 # OS/2's system install, which has a completely different semantic
3613 # ./install, which can be erroneously created by make from ./install.sh.
3614 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3615 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3616 if test -z "$INSTALL"; then
3617 if test "${ac_cv_path_install+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 # Account for people who put trailing slashes in PATH elements.
3626 case $as_dir/ in
3627 ./ | .// | /cC/* | \
3628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3629 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3630 /usr/ucb/* ) ;;
3631 *)
3632 # OSF1 and SCO ODT 3.0 have their own names for install.
3633 # Don't use installbsd from OSF since it installs stuff as root
3634 # by default.
3635 for ac_prog in ginstall scoinst install; do
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3638 if test $ac_prog = install &&
3639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3640 # AIX install. It has an incompatible calling convention.
3642 elif test $ac_prog = install &&
3643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3644 # program-specific install script used by HP pwplus--don't use.
3646 else
3647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3648 break 3
3649 fi
3650 fi
3651 done
3652 done
3653 ;;
3654 esac
3655 done
3658 fi
3659 if test "${ac_cv_path_install+set}" = set; then
3660 INSTALL=$ac_cv_path_install
3661 else
3662 # As a last resort, use the slow shell script. We don't cache a
3663 # path for INSTALL within a source directory, because that will
3664 # break other packages using the cache if that directory is
3665 # removed, or if the path is relative.
3666 INSTALL=$ac_install_sh
3667 fi
3668 fi
3669 echo "$as_me:$LINENO: result: $INSTALL" >&5
3670 echo "${ECHO_T}$INSTALL" >&6
3672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3673 # It thinks the first close brace ends the variable substitution.
3674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3681 # Check whether --enable-static or --disable-static was given.
3682 if test "${enable_static+set}" = set; then
3683 enableval="$enable_static"
3684 p=${PACKAGE-default}
3685 case $enableval in
3686 yes) enable_static=yes ;;
3687 no) enable_static=no ;;
3688 *)
3689 enable_static=no
3690 # Look at the argument we got. We use all the common list separators.
3691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3692 for pkg in $enableval; do
3693 IFS="$lt_save_ifs"
3694 if test "X$pkg" = "X$p"; then
3695 enable_static=yes
3696 fi
3697 done
3698 IFS="$lt_save_ifs"
3699 ;;
3700 esac
3701 else
3702 enable_static=no
3703 fi;
3706 # Check whether --enable-shared or --disable-shared was given.
3707 if test "${enable_shared+set}" = set; then
3708 enableval="$enable_shared"
3709 p=${PACKAGE-default}
3710 case $enableval in
3711 yes) enable_shared=yes ;;
3712 no) enable_shared=no ;;
3713 *)
3714 enable_shared=no
3715 # Look at the argument we got. We use all the common list separators.
3716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3717 for pkg in $enableval; do
3718 IFS="$lt_save_ifs"
3719 if test "X$pkg" = "X$p"; then
3720 enable_shared=yes
3721 fi
3722 done
3723 IFS="$lt_save_ifs"
3724 ;;
3725 esac
3726 else
3727 enable_shared=yes
3728 fi;
3730 # Check whether --enable-fast-install or --disable-fast-install was given.
3731 if test "${enable_fast_install+set}" = set; then
3732 enableval="$enable_fast_install"
3733 p=${PACKAGE-default}
3734 case $enableval in
3735 yes) enable_fast_install=yes ;;
3736 no) enable_fast_install=no ;;
3737 *)
3738 enable_fast_install=no
3739 # Look at the argument we got. We use all the common list separators.
3740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3741 for pkg in $enableval; do
3742 IFS="$lt_save_ifs"
3743 if test "X$pkg" = "X$p"; then
3744 enable_fast_install=yes
3745 fi
3746 done
3747 IFS="$lt_save_ifs"
3748 ;;
3749 esac
3750 else
3751 enable_fast_install=yes
3752 fi;
3754 # Make sure we can run config.sub.
3755 $ac_config_sub sun4 >/dev/null 2>&1 ||
3756 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3757 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3758 { (exit 1); exit 1; }; }
3760 echo "$as_me:$LINENO: checking build system type" >&5
3761 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3762 if test "${ac_cv_build+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 ac_cv_build_alias=$build_alias
3766 test -z "$ac_cv_build_alias" &&
3767 ac_cv_build_alias=`$ac_config_guess`
3768 test -z "$ac_cv_build_alias" &&
3769 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3770 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3771 { (exit 1); exit 1; }; }
3772 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3773 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3774 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3775 { (exit 1); exit 1; }; }
3777 fi
3778 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3779 echo "${ECHO_T}$ac_cv_build" >&6
3780 build=$ac_cv_build
3781 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3782 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3783 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3786 echo "$as_me:$LINENO: checking host system type" >&5
3787 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3788 if test "${ac_cv_host+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 ac_cv_host_alias=$host_alias
3792 test -z "$ac_cv_host_alias" &&
3793 ac_cv_host_alias=$ac_cv_build_alias
3794 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3795 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3796 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3797 { (exit 1); exit 1; }; }
3799 fi
3800 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3801 echo "${ECHO_T}$ac_cv_host" >&6
3802 host=$ac_cv_host
3803 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3804 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3805 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3808 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3809 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3810 if test "${lt_cv_path_SED+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 # Loop through the user's path and test for sed and gsed.
3814 # Then use that list of sed's as ones to test for truncation.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818 IFS=$as_save_IFS
3819 test -z "$as_dir" && as_dir=.
3820 for lt_ac_prog in sed gsed; do
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3823 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3824 fi
3825 done
3826 done
3827 done
3828 lt_ac_max=0
3829 lt_ac_count=0
3830 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3831 # along with /bin/sed that truncates output.
3832 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3833 test ! -f $lt_ac_sed && continue
3834 cat /dev/null > conftest.in
3835 lt_ac_count=0
3836 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3837 # Check for GNU sed and select it if it is found.
3838 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3839 lt_cv_path_SED=$lt_ac_sed
3840 break
3841 fi
3842 while true; do
3843 cat conftest.in conftest.in >conftest.tmp
3844 mv conftest.tmp conftest.in
3845 cp conftest.in conftest.nl
3846 echo >>conftest.nl
3847 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3848 cmp -s conftest.out conftest.nl || break
3849 # 10000 chars as input seems more than enough
3850 test $lt_ac_count -gt 10 && break
3851 lt_ac_count=`expr $lt_ac_count + 1`
3852 if test $lt_ac_count -gt $lt_ac_max; then
3853 lt_ac_max=$lt_ac_count
3854 lt_cv_path_SED=$lt_ac_sed
3855 fi
3856 done
3857 done
3859 fi
3861 SED=$lt_cv_path_SED
3862 echo "$as_me:$LINENO: result: $SED" >&5
3863 echo "${ECHO_T}$SED" >&6
3866 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3867 if test "${with_gnu_ld+set}" = set; then
3868 withval="$with_gnu_ld"
3869 test "$withval" = no || with_gnu_ld=yes
3870 else
3871 with_gnu_ld=no
3872 fi;
3873 ac_prog=ld
3874 if test "$GCC" = yes; then
3875 # Check if gcc -print-prog-name=ld gives a path.
3876 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3877 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3878 case $host in
3879 *-*-mingw*)
3880 # gcc leaves a trailing carriage return which upsets mingw
3881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3882 *)
3883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3884 esac
3885 case $ac_prog in
3886 # Accept absolute paths.
3887 [\\/]* | ?:[\\/]*)
3888 re_direlt='/[^/][^/]*/\.\./'
3889 # Canonicalize the pathname of ld
3890 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3891 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3892 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3893 done
3894 test -z "$LD" && LD="$ac_prog"
3895 ;;
3896 "")
3897 # If it fails, then pretend we aren't using GCC.
3898 ac_prog=ld
3899 ;;
3900 *)
3901 # If it is relative, then search for the first ld in PATH.
3902 with_gnu_ld=unknown
3903 ;;
3904 esac
3905 elif test "$with_gnu_ld" = yes; then
3906 echo "$as_me:$LINENO: checking for GNU ld" >&5
3907 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3908 else
3909 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3910 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3911 fi
3912 if test "${lt_cv_path_LD+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 if test -z "$LD"; then
3916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3917 for ac_dir in $PATH; do
3918 IFS="$lt_save_ifs"
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3921 lt_cv_path_LD="$ac_dir/$ac_prog"
3922 # Check to see if the program is GNU ld. I'd rather use --version,
3923 # but apparently some variants of GNU ld only accept -v.
3924 # Break only if it was the GNU/non-GNU ld that we prefer.
3925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3926 *GNU* | *'with BFD'*)
3927 test "$with_gnu_ld" != no && break
3928 ;;
3929 *)
3930 test "$with_gnu_ld" != yes && break
3931 ;;
3932 esac
3933 fi
3934 done
3935 IFS="$lt_save_ifs"
3936 else
3937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3938 fi
3939 fi
3941 LD="$lt_cv_path_LD"
3942 if test -n "$LD"; then
3943 echo "$as_me:$LINENO: result: $LD" >&5
3944 echo "${ECHO_T}$LD" >&6
3945 else
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3950 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3951 { (exit 1); exit 1; }; }
3952 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3953 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3954 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3958 case `$LD -v 2>&1 </dev/null` in
3959 *GNU* | *'with BFD'*)
3960 lt_cv_prog_gnu_ld=yes
3961 ;;
3962 *)
3963 lt_cv_prog_gnu_ld=no
3964 ;;
3965 esac
3966 fi
3967 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3968 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3969 with_gnu_ld=$lt_cv_prog_gnu_ld
3972 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3973 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3974 if test "${lt_cv_ld_reload_flag+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977 lt_cv_ld_reload_flag='-r'
3978 fi
3979 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3980 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3981 reload_flag=$lt_cv_ld_reload_flag
3982 case $reload_flag in
3983 "" | " "*) ;;
3984 *) reload_flag=" $reload_flag" ;;
3985 esac
3986 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3987 case $host_os in
3988 darwin*)
3989 if test "$GCC" = yes; then
3990 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3991 else
3992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3993 fi
3994 ;;
3995 esac
3997 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3998 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3999 if test "${lt_cv_path_NM+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 if test -n "$NM"; then
4003 # Let the user override the test.
4004 lt_cv_path_NM="$NM"
4005 else
4006 lt_nm_to_check="${ac_tool_prefix}nm"
4007 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4008 lt_nm_to_check="$lt_nm_to_check nm"
4009 fi
4010 for lt_tmp_nm in $lt_nm_to_check; do
4011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4012 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4013 IFS="$lt_save_ifs"
4014 test -z "$ac_dir" && ac_dir=.
4015 tmp_nm="$ac_dir/$lt_tmp_nm"
4016 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4017 # Check to see if the nm accepts a BSD-compat flag.
4018 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4019 # nm: unknown option "B" ignored
4020 # Tru64's nm complains that /dev/null is an invalid object file
4021 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4022 */dev/null* | *'Invalid file or object type'*)
4023 lt_cv_path_NM="$tmp_nm -B"
4024 break
4025 ;;
4026 *)
4027 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4028 */dev/null*)
4029 lt_cv_path_NM="$tmp_nm -p"
4030 break
4031 ;;
4032 *)
4033 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4034 continue # so that we can try to find one that supports BSD flags
4035 ;;
4036 esac
4037 ;;
4038 esac
4039 fi
4040 done
4041 IFS="$lt_save_ifs"
4042 done
4043 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4044 fi
4045 fi
4046 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4047 echo "${ECHO_T}$lt_cv_path_NM" >&6
4048 NM="$lt_cv_path_NM"
4050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4052 LN_S=$as_ln_s
4053 if test "$LN_S" = "ln -s"; then
4054 echo "$as_me:$LINENO: result: yes" >&5
4055 echo "${ECHO_T}yes" >&6
4056 else
4057 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4058 echo "${ECHO_T}no, using $LN_S" >&6
4059 fi
4061 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4062 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4063 if test "${lt_cv_deplibs_check_method+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 lt_cv_file_magic_cmd='$MAGIC_CMD'
4067 lt_cv_file_magic_test_file=
4068 lt_cv_deplibs_check_method='unknown'
4069 # Need to set the preceding variable on all platforms that support
4070 # interlibrary dependencies.
4071 # 'none' -- dependencies not supported.
4072 # `unknown' -- same as none, but documents that we really don't know.
4073 # 'pass_all' -- all dependencies passed with no checks.
4074 # 'test_compile' -- check by making test program.
4075 # 'file_magic [[regex]]' -- check by looking for files in library path
4076 # which responds to the $file_magic_cmd with a given extended regex.
4077 # If you have `file' or equivalent on your system and you're not sure
4078 # whether `pass_all' will *always* work, you probably want this one.
4080 case $host_os in
4081 aix4* | aix5*)
4082 lt_cv_deplibs_check_method=pass_all
4083 ;;
4085 beos*)
4086 lt_cv_deplibs_check_method=pass_all
4087 ;;
4089 bsdi[45]*)
4090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4091 lt_cv_file_magic_cmd='/usr/bin/file -L'
4092 lt_cv_file_magic_test_file=/shlib/libc.so
4093 ;;
4095 cygwin*)
4096 # func_win32_libid is a shell function defined in ltmain.sh
4097 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4098 lt_cv_file_magic_cmd='func_win32_libid'
4099 ;;
4101 mingw* | pw32*)
4102 # Base MSYS/MinGW do not provide the 'file' command needed by
4103 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4105 lt_cv_file_magic_cmd='$OBJDUMP -f'
4106 ;;
4108 darwin* | rhapsody*)
4109 lt_cv_deplibs_check_method=pass_all
4110 ;;
4112 freebsd* | kfreebsd*-gnu | dragonfly*)
4113 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4114 case $host_cpu in
4115 i*86 )
4116 # Not sure whether the presence of OpenBSD here was a mistake.
4117 # Let's accept both of them until this is cleared up.
4118 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4119 lt_cv_file_magic_cmd=/usr/bin/file
4120 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4121 ;;
4122 esac
4123 else
4124 lt_cv_deplibs_check_method=pass_all
4125 fi
4126 ;;
4128 gnu*)
4129 lt_cv_deplibs_check_method=pass_all
4130 ;;
4132 hpux10.20* | hpux11*)
4133 lt_cv_file_magic_cmd=/usr/bin/file
4134 case $host_cpu in
4135 ia64*)
4136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4137 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4138 ;;
4139 hppa*64*)
4140 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]'
4141 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4142 ;;
4143 *)
4144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4145 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4146 ;;
4147 esac
4148 ;;
4150 interix3*)
4151 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4153 ;;
4155 irix5* | irix6* | nonstopux*)
4156 case $LD in
4157 *-32|*"-32 ") libmagic=32-bit;;
4158 *-n32|*"-n32 ") libmagic=N32;;
4159 *-64|*"-64 ") libmagic=64-bit;;
4160 *) libmagic=never-match;;
4161 esac
4162 lt_cv_deplibs_check_method=pass_all
4163 ;;
4165 # This must be Linux ELF.
4166 linux*)
4167 lt_cv_deplibs_check_method=pass_all
4168 ;;
4170 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4171 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4173 else
4174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4175 fi
4176 ;;
4178 newos6*)
4179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4180 lt_cv_file_magic_cmd=/usr/bin/file
4181 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4182 ;;
4184 nto-qnx*)
4185 lt_cv_deplibs_check_method=unknown
4186 ;;
4188 openbsd*)
4189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4191 else
4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4193 fi
4194 ;;
4196 osf3* | osf4* | osf5*)
4197 lt_cv_deplibs_check_method=pass_all
4198 ;;
4200 solaris*)
4201 lt_cv_deplibs_check_method=pass_all
4202 ;;
4204 sysv4 | sysv4.3*)
4205 case $host_vendor in
4206 motorola)
4207 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]'
4208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4209 ;;
4210 ncr)
4211 lt_cv_deplibs_check_method=pass_all
4212 ;;
4213 sequent)
4214 lt_cv_file_magic_cmd='/bin/file'
4215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4216 ;;
4217 sni)
4218 lt_cv_file_magic_cmd='/bin/file'
4219 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4220 lt_cv_file_magic_test_file=/lib/libc.so
4221 ;;
4222 siemens)
4223 lt_cv_deplibs_check_method=pass_all
4224 ;;
4225 pc)
4226 lt_cv_deplibs_check_method=pass_all
4227 ;;
4228 esac
4229 ;;
4231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4232 lt_cv_deplibs_check_method=pass_all
4233 ;;
4234 esac
4236 fi
4237 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4238 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4239 file_magic_cmd=$lt_cv_file_magic_cmd
4240 deplibs_check_method=$lt_cv_deplibs_check_method
4241 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4246 # If no C compiler was specified, use CC.
4247 LTCC=${LTCC-"$CC"}
4249 # If no C compiler flags were specified, use CFLAGS.
4250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4252 # Allow CC to be a program name with arguments.
4253 compiler=$CC
4255 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4256 if test "${enable_libtool_lock+set}" = set; then
4257 enableval="$enable_libtool_lock"
4259 fi;
4260 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4262 # Some flags need to be propagated to the compiler or linker for good
4263 # libtool support.
4264 case $host in
4265 ia64-*-hpux*)
4266 # Find out which ABI we are using.
4267 echo 'int i;' > conftest.$ac_ext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269 (eval $ac_compile) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; then
4273 case `/usr/bin/file conftest.$ac_objext` in
4274 *ELF-32*)
4275 HPUX_IA64_MODE="32"
4276 ;;
4277 *ELF-64*)
4278 HPUX_IA64_MODE="64"
4279 ;;
4280 esac
4281 fi
4282 rm -rf conftest*
4283 ;;
4284 *-*-irix6*)
4285 # Find out which ABI we are using.
4286 echo '#line 4286 "configure"' > conftest.$ac_ext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; then
4292 if test "$lt_cv_prog_gnu_ld" = yes; then
4293 case `/usr/bin/file conftest.$ac_objext` in
4294 *32-bit*)
4295 LD="${LD-ld} -melf32bsmip"
4296 ;;
4297 *N32*)
4298 LD="${LD-ld} -melf32bmipn32"
4299 ;;
4300 *64-bit*)
4301 LD="${LD-ld} -melf64bmip"
4302 ;;
4303 esac
4304 else
4305 case `/usr/bin/file conftest.$ac_objext` in
4306 *32-bit*)
4307 LD="${LD-ld} -32"
4308 ;;
4309 *N32*)
4310 LD="${LD-ld} -n32"
4311 ;;
4312 *64-bit*)
4313 LD="${LD-ld} -64"
4314 ;;
4315 esac
4316 fi
4317 fi
4318 rm -rf conftest*
4319 ;;
4321 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4322 # Find out which ABI we are using.
4323 echo 'int i;' > conftest.$ac_ext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; then
4329 case `/usr/bin/file conftest.o` in
4330 *32-bit*)
4331 case $host in
4332 x86_64-*linux*)
4333 LD="${LD-ld} -m elf_i386"
4334 ;;
4335 ppc64-*linux*|powerpc64-*linux*)
4336 LD="${LD-ld} -m elf32ppclinux"
4337 ;;
4338 s390x-*linux*)
4339 LD="${LD-ld} -m elf_s390"
4340 ;;
4341 sparc64-*linux*)
4342 LD="${LD-ld} -m elf32_sparc"
4343 ;;
4344 esac
4345 ;;
4346 *64-bit*)
4347 case $host in
4348 x86_64-*linux*)
4349 LD="${LD-ld} -m elf_x86_64"
4350 ;;
4351 ppc*-*linux*|powerpc*-*linux*)
4352 LD="${LD-ld} -m elf64ppc"
4353 ;;
4354 s390*-*linux*)
4355 LD="${LD-ld} -m elf64_s390"
4356 ;;
4357 sparc*-*linux*)
4358 LD="${LD-ld} -m elf64_sparc"
4359 ;;
4360 esac
4361 ;;
4362 esac
4363 fi
4364 rm -rf conftest*
4365 ;;
4367 *-*-sco3.2v5*)
4368 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4369 SAVE_CFLAGS="$CFLAGS"
4370 CFLAGS="$CFLAGS -belf"
4371 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4372 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4373 if test "${lt_cv_cc_needs_belf+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4389 int
4390 main ()
4394 return 0;
4396 _ACEOF
4397 rm -f conftest.$ac_objext conftest$ac_exeext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4399 (eval $ac_link) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest$ac_exeext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 lt_cv_cc_needs_belf=yes
4419 else
4420 echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4423 lt_cv_cc_needs_belf=no
4424 fi
4425 rm -f conftest.err conftest.$ac_objext \
4426 conftest$ac_exeext conftest.$ac_ext
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 fi
4434 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4435 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4436 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4438 CFLAGS="$SAVE_CFLAGS"
4439 fi
4440 ;;
4441 sparc*-*solaris*)
4442 # Find out which ABI we are using.
4443 echo 'int i;' > conftest.$ac_ext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4445 (eval $ac_compile) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; then
4449 case `/usr/bin/file conftest.o` in
4450 *64-bit*)
4451 case $lt_cv_prog_gnu_ld in
4452 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4453 *) LD="${LD-ld} -64" ;;
4454 esac
4455 ;;
4456 esac
4457 fi
4458 rm -rf conftest*
4459 ;;
4462 esac
4464 need_locks="$enable_libtool_lock"
4467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4477 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4478 inttypes.h stdint.h unistd.h
4479 do
4480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4481 echo "$as_me:$LINENO: checking for $ac_header" >&5
4482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 $ac_includes_default
4494 #include <$ac_header>
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 eval "$as_ac_Header=yes"
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4522 eval "$as_ac_Header=no"
4523 fi
4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525 fi
4526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4529 cat >>confdefs.h <<_ACEOF
4530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531 _ACEOF
4533 fi
4535 done
4539 for ac_header in dlfcn.h
4540 do
4541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4543 echo "$as_me:$LINENO: checking for $ac_header" >&5
4544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 fi
4548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4550 else
4551 # Is the header compilable?
4552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 $ac_includes_default
4561 #include <$ac_header>
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_header_compiler=yes
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_header_compiler=no
4590 fi
4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4593 echo "${ECHO_T}$ac_header_compiler" >&6
4595 # Is the header present?
4596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 #include <$ac_header>
4605 _ACEOF
4606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } >/dev/null; then
4614 if test -s conftest.err; then
4615 ac_cpp_err=$ac_c_preproc_warn_flag
4616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4617 else
4618 ac_cpp_err=
4619 fi
4620 else
4621 ac_cpp_err=yes
4622 fi
4623 if test -z "$ac_cpp_err"; then
4624 ac_header_preproc=yes
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_header_preproc=no
4630 fi
4631 rm -f conftest.err conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4633 echo "${ECHO_T}$ac_header_preproc" >&6
4635 # So? What about this header?
4636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4637 yes:no: )
4638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4642 ac_header_preproc=yes
4643 ;;
4644 no:yes:* )
4645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4658 cat <<\_ASBOX
4659 ## ---------------------------------------- ##
4660 ## Report this to the gift-gnutella lists. ##
4661 ## ---------------------------------------- ##
4662 _ASBOX
4663 ) |
4664 sed "s/^/$as_me: WARNING: /" >&2
4665 ;;
4666 esac
4667 echo "$as_me:$LINENO: checking for $ac_header" >&5
4668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672 eval "$as_ac_Header=\$ac_header_preproc"
4673 fi
4674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4677 fi
4678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4679 cat >>confdefs.h <<_ACEOF
4680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4681 _ACEOF
4683 fi
4685 done
4687 ac_ext=cc
4688 ac_cpp='$CXXCPP $CPPFLAGS'
4689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4692 if test -n "$ac_tool_prefix"; then
4693 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4694 do
4695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699 if test "${ac_cv_prog_CXX+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 if test -n "$CXX"; then
4703 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4719 fi
4720 fi
4721 CXX=$ac_cv_prog_CXX
4722 if test -n "$CXX"; then
4723 echo "$as_me:$LINENO: result: $CXX" >&5
4724 echo "${ECHO_T}$CXX" >&6
4725 else
4726 echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6
4728 fi
4730 test -n "$CXX" && break
4731 done
4732 fi
4733 if test -z "$CXX"; then
4734 ac_ct_CXX=$CXX
4735 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4736 do
4737 # Extract the first word of "$ac_prog", so it can be a program name with args.
4738 set dummy $ac_prog; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 if test -n "$ac_ct_CXX"; then
4745 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 ac_cv_prog_ac_ct_CXX="$ac_prog"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758 done
4759 done
4761 fi
4762 fi
4763 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4764 if test -n "$ac_ct_CXX"; then
4765 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4766 echo "${ECHO_T}$ac_ct_CXX" >&6
4767 else
4768 echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6
4770 fi
4772 test -n "$ac_ct_CXX" && break
4773 done
4774 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4776 CXX=$ac_ct_CXX
4777 fi
4780 # Provide some information about the compiler.
4781 echo "$as_me:$LINENO:" \
4782 "checking for C++ compiler version" >&5
4783 ac_compiler=`set X $ac_compile; echo $2`
4784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4785 (eval $ac_compiler --version </dev/null >&5) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }
4789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4790 (eval $ac_compiler -v </dev/null >&5) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }
4794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4795 (eval $ac_compiler -V </dev/null >&5) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }
4800 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4801 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4802 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4812 int
4813 main ()
4815 #ifndef __GNUC__
4816 choke me
4817 #endif
4820 return 0;
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_compiler_gnu=yes
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 ac_compiler_gnu=no
4850 fi
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4854 fi
4855 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4856 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4857 GXX=`test $ac_compiler_gnu = yes && echo yes`
4858 ac_test_CXXFLAGS=${CXXFLAGS+set}
4859 ac_save_CXXFLAGS=$CXXFLAGS
4860 CXXFLAGS="-g"
4861 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4862 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4863 if test "${ac_cv_prog_cxx_g+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 int
4874 main ()
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_prog_cxx_g=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 ac_cv_prog_cxx_g=no
4908 fi
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910 fi
4911 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4912 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4913 if test "$ac_test_CXXFLAGS" = set; then
4914 CXXFLAGS=$ac_save_CXXFLAGS
4915 elif test $ac_cv_prog_cxx_g = yes; then
4916 if test "$GXX" = yes; then
4917 CXXFLAGS="-g -O2"
4918 else
4919 CXXFLAGS="-g"
4920 fi
4921 else
4922 if test "$GXX" = yes; then
4923 CXXFLAGS="-O2"
4924 else
4925 CXXFLAGS=
4926 fi
4927 fi
4928 for ac_declaration in \
4929 '' \
4930 'extern "C" void std::exit (int) throw (); using std::exit;' \
4931 'extern "C" void std::exit (int); using std::exit;' \
4932 'extern "C" void exit (int) throw ();' \
4933 'extern "C" void exit (int);' \
4934 'void exit (int);'
4935 do
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 $ac_declaration
4943 #include <stdlib.h>
4944 int
4945 main ()
4947 exit (42);
4949 return 0;
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 continue
4979 fi
4980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981 cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h. */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 $ac_declaration
4988 int
4989 main ()
4991 exit (42);
4993 return 0;
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; } &&
5011 { ac_try='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013 (eval $ac_try) 2>&5
5014 ac_status=$?
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 break
5018 else
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 fi
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024 done
5025 rm -f conftest*
5026 if test -n "$ac_declaration"; then
5027 echo '#ifdef __cplusplus' >>confdefs.h
5028 echo $ac_declaration >>confdefs.h
5029 echo '#endif' >>confdefs.h
5030 fi
5032 ac_ext=cc
5033 ac_cpp='$CXXCPP $CPPFLAGS'
5034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5038 depcc="$CXX" am_compiler_list=
5040 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5041 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5042 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5046 # We make a subdir and do the tests there. Otherwise we can end up
5047 # making bogus files that we don't know about and never remove. For
5048 # instance it was reported that on HP-UX the gcc test will end up
5049 # making a dummy file named `D' -- because `-MD' means `put the output
5050 # in D'.
5051 mkdir conftest.dir
5052 # Copy depcomp to subdir because otherwise we won't find it if we're
5053 # using a relative directory.
5054 cp "$am_depcomp" conftest.dir
5055 cd conftest.dir
5056 # We will build objects and dependencies in a subdirectory because
5057 # it helps to detect inapplicable dependency modes. For instance
5058 # both Tru64's cc and ICC support -MD to output dependencies as a
5059 # side effect of compilation, but ICC will put the dependencies in
5060 # the current directory while Tru64 will put them in the object
5061 # directory.
5062 mkdir sub
5064 am_cv_CXX_dependencies_compiler_type=none
5065 if test "$am_compiler_list" = ""; then
5066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5067 fi
5068 for depmode in $am_compiler_list; do
5069 # Setup a source with many dependencies, because some compilers
5070 # like to wrap large dependency lists on column 80 (with \), and
5071 # we should not choose a depcomp mode which is confused by this.
5073 # We need to recreate these files for each test, as the compiler may
5074 # overwrite some of them when testing with obscure command lines.
5075 # This happens at least with the AIX C compiler.
5076 : > sub/conftest.c
5077 for i in 1 2 3 4 5 6; do
5078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5079 : > sub/conftst$i.h
5080 done
5081 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5083 case $depmode in
5084 nosideeffect)
5085 # after this tag, mechanisms are not by side-effect, so they'll
5086 # only be used when explicitly requested
5087 if test "x$enable_dependency_tracking" = xyes; then
5088 continue
5089 else
5090 break
5091 fi
5092 ;;
5093 none) break ;;
5094 esac
5095 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5096 # mode. It turns out that the SunPro C++ compiler does not properly
5097 # handle `-M -o', and we need to detect this.
5098 if depmode=$depmode \
5099 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5101 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5102 >/dev/null 2>conftest.err &&
5103 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5104 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5105 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5106 # icc doesn't choke on unknown options, it will just issue warnings
5107 # (even with -Werror). So we grep stderr for any message
5108 # that says an option was ignored.
5109 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5110 am_cv_CXX_dependencies_compiler_type=$depmode
5111 break
5112 fi
5113 fi
5114 done
5116 cd ..
5117 rm -rf conftest.dir
5118 else
5119 am_cv_CXX_dependencies_compiler_type=none
5120 fi
5122 fi
5123 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5124 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5125 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5129 if
5130 test "x$enable_dependency_tracking" != xno \
5131 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5132 am__fastdepCXX_TRUE=
5133 am__fastdepCXX_FALSE='#'
5134 else
5135 am__fastdepCXX_TRUE='#'
5136 am__fastdepCXX_FALSE=
5137 fi
5142 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5143 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5144 (test "X$CXX" != "Xg++"))) ; then
5145 ac_ext=cc
5146 ac_cpp='$CXXCPP $CPPFLAGS'
5147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5150 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5151 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5152 if test -z "$CXXCPP"; then
5153 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 # Double quotes because CXXCPP needs to be expanded
5157 for CXXCPP in "$CXX -E" "/lib/cpp"
5158 do
5159 ac_preproc_ok=false
5160 for ac_cxx_preproc_warn_flag in '' yes
5161 do
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179 Syntax error
5180 _ACEOF
5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null; then
5189 if test -s conftest.err; then
5190 ac_cpp_err=$ac_cxx_preproc_warn_flag
5191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5192 else
5193 ac_cpp_err=
5194 fi
5195 else
5196 ac_cpp_err=yes
5197 fi
5198 if test -z "$ac_cpp_err"; then
5200 else
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5204 # Broken: fails on valid input.
5205 continue
5206 fi
5207 rm -f conftest.err conftest.$ac_ext
5209 # OK, works on sane cases. Now check whether non-existent headers
5210 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 #include <ac_nonexistent.h>
5218 _ACEOF
5219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } >/dev/null; then
5227 if test -s conftest.err; then
5228 ac_cpp_err=$ac_cxx_preproc_warn_flag
5229 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5230 else
5231 ac_cpp_err=
5232 fi
5233 else
5234 ac_cpp_err=yes
5235 fi
5236 if test -z "$ac_cpp_err"; then
5237 # Broken: success on invalid input.
5238 continue
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 # Passes both tests.
5244 ac_preproc_ok=:
5245 break
5246 fi
5247 rm -f conftest.err conftest.$ac_ext
5249 done
5250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5251 rm -f conftest.err conftest.$ac_ext
5252 if $ac_preproc_ok; then
5253 break
5254 fi
5256 done
5257 ac_cv_prog_CXXCPP=$CXXCPP
5259 fi
5260 CXXCPP=$ac_cv_prog_CXXCPP
5261 else
5262 ac_cv_prog_CXXCPP=$CXXCPP
5263 fi
5264 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5265 echo "${ECHO_T}$CXXCPP" >&6
5266 ac_preproc_ok=false
5267 for ac_cxx_preproc_warn_flag in '' yes
5268 do
5269 # Use a header file that comes with gcc, so configuring glibc
5270 # with a fresh cross-compiler works.
5271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 # <limits.h> exists even on freestanding compilers.
5273 # On the NeXT, cc -E runs the code through the compiler's parser,
5274 # not just through cpp. "Syntax error" is here to catch this case.
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #ifdef __STDC__
5282 # include <limits.h>
5283 #else
5284 # include <assert.h>
5285 #endif
5286 Syntax error
5287 _ACEOF
5288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5290 ac_status=$?
5291 grep -v '^ *+' conftest.er1 >conftest.err
5292 rm -f conftest.er1
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } >/dev/null; then
5296 if test -s conftest.err; then
5297 ac_cpp_err=$ac_cxx_preproc_warn_flag
5298 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5299 else
5300 ac_cpp_err=
5301 fi
5302 else
5303 ac_cpp_err=yes
5304 fi
5305 if test -z "$ac_cpp_err"; then
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 # Broken: fails on valid input.
5312 continue
5313 fi
5314 rm -f conftest.err conftest.$ac_ext
5316 # OK, works on sane cases. Now check whether non-existent headers
5317 # can be detected and how.
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 #include <ac_nonexistent.h>
5325 _ACEOF
5326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } >/dev/null; then
5334 if test -s conftest.err; then
5335 ac_cpp_err=$ac_cxx_preproc_warn_flag
5336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5337 else
5338 ac_cpp_err=
5339 fi
5340 else
5341 ac_cpp_err=yes
5342 fi
5343 if test -z "$ac_cpp_err"; then
5344 # Broken: success on invalid input.
5345 continue
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 # Passes both tests.
5351 ac_preproc_ok=:
5352 break
5353 fi
5354 rm -f conftest.err conftest.$ac_ext
5356 done
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.err conftest.$ac_ext
5359 if $ac_preproc_ok; then
5361 else
5362 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5363 See \`config.log' for more details." >&5
5364 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5365 See \`config.log' for more details." >&2;}
5366 { (exit 1); exit 1; }; }
5367 fi
5369 ac_ext=cc
5370 ac_cpp='$CXXCPP $CPPFLAGS'
5371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5375 fi
5378 ac_ext=f
5379 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5380 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5382 if test -n "$ac_tool_prefix"; then
5383 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5384 do
5385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_prog_F77+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 if test -n "$F77"; then
5393 ac_cv_prog_F77="$F77" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406 done
5407 done
5409 fi
5410 fi
5411 F77=$ac_cv_prog_F77
5412 if test -n "$F77"; then
5413 echo "$as_me:$LINENO: result: $F77" >&5
5414 echo "${ECHO_T}$F77" >&6
5415 else
5416 echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5418 fi
5420 test -n "$F77" && break
5421 done
5422 fi
5423 if test -z "$F77"; then
5424 ac_ct_F77=$F77
5425 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5426 do
5427 # Extract the first word of "$ac_prog", so it can be a program name with args.
5428 set dummy $ac_prog; ac_word=$2
5429 echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5431 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434 if test -n "$ac_ct_F77"; then
5435 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_prog_ac_ct_F77="$ac_prog"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5447 fi
5448 done
5449 done
5451 fi
5452 fi
5453 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5454 if test -n "$ac_ct_F77"; then
5455 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5456 echo "${ECHO_T}$ac_ct_F77" >&6
5457 else
5458 echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6
5460 fi
5462 test -n "$ac_ct_F77" && break
5463 done
5465 F77=$ac_ct_F77
5466 fi
5469 # Provide some information about the compiler.
5470 echo "$as_me:5470:" \
5471 "checking for Fortran 77 compiler version" >&5
5472 ac_compiler=`set X $ac_compile; echo $2`
5473 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5474 (eval $ac_compiler --version </dev/null >&5) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }
5478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5479 (eval $ac_compiler -v </dev/null >&5) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }
5483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5484 (eval $ac_compiler -V </dev/null >&5) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }
5488 rm -f a.out
5490 # If we don't use `.F' as extension, the preprocessor is not run on the
5491 # input file. (Note that this only needs to work for GNU compilers.)
5492 ac_save_ext=$ac_ext
5493 ac_ext=F
5494 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5495 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5496 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 cat >conftest.$ac_ext <<_ACEOF
5500 program main
5501 #ifndef __GNUC__
5502 choke me
5503 #endif
5505 end
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509 (eval $ac_compile) 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; } &&
5522 { ac_try='test -s conftest.$ac_objext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 ac_compiler_gnu=yes
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 ac_compiler_gnu=no
5534 fi
5535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5536 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5538 fi
5539 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5540 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5541 ac_ext=$ac_save_ext
5542 ac_test_FFLAGS=${FFLAGS+set}
5543 ac_save_FFLAGS=$FFLAGS
5544 FFLAGS=
5545 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5546 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5547 if test "${ac_cv_prog_f77_g+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 FFLAGS=-g
5551 cat >conftest.$ac_ext <<_ACEOF
5552 program main
5554 end
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_prog_f77_g=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 ac_cv_prog_f77_g=no
5583 fi
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5588 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5589 if test "$ac_test_FFLAGS" = set; then
5590 FFLAGS=$ac_save_FFLAGS
5591 elif test $ac_cv_prog_f77_g = yes; then
5592 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5593 FFLAGS="-g -O2"
5594 else
5595 FFLAGS="-g"
5596 fi
5597 else
5598 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5599 FFLAGS="-O2"
5600 else
5601 FFLAGS=
5602 fi
5603 fi
5605 G77=`test $ac_compiler_gnu = yes && echo yes`
5606 ac_ext=c
5607 ac_cpp='$CPP $CPPFLAGS'
5608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5614 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5616 # find the maximum length of command line arguments
5617 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5618 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5619 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 i=0
5623 teststring="ABCD"
5625 case $build_os in
5626 msdosdjgpp*)
5627 # On DJGPP, this test can blow up pretty badly due to problems in libc
5628 # (any single argument exceeding 2000 bytes causes a buffer overrun
5629 # during glob expansion). Even if it were fixed, the result of this
5630 # check would be larger than it should be.
5631 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5632 ;;
5634 gnu*)
5635 # Under GNU Hurd, this test is not required because there is
5636 # no limit to the length of command line arguments.
5637 # Libtool will interpret -1 as no limit whatsoever
5638 lt_cv_sys_max_cmd_len=-1;
5639 ;;
5641 cygwin* | mingw*)
5642 # On Win9x/ME, this test blows up -- it succeeds, but takes
5643 # about 5 minutes as the teststring grows exponentially.
5644 # Worse, since 9x/ME are not pre-emptively multitasking,
5645 # you end up with a "frozen" computer, even though with patience
5646 # the test eventually succeeds (with a max line length of 256k).
5647 # Instead, let's just punt: use the minimum linelength reported by
5648 # all of the supported platforms: 8192 (on NT/2K/XP).
5649 lt_cv_sys_max_cmd_len=8192;
5650 ;;
5652 amigaos*)
5653 # On AmigaOS with pdksh, this test takes hours, literally.
5654 # So we just punt and use a minimum line length of 8192.
5655 lt_cv_sys_max_cmd_len=8192;
5656 ;;
5658 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5659 # This has been around since 386BSD, at least. Likely further.
5660 if test -x /sbin/sysctl; then
5661 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5662 elif test -x /usr/sbin/sysctl; then
5663 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5664 else
5665 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5666 fi
5667 # And add a safety zone
5668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5670 ;;
5672 interix*)
5673 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5674 lt_cv_sys_max_cmd_len=196608
5675 ;;
5677 osf*)
5678 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5679 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5680 # nice to cause kernel panics so lets avoid the loop below.
5681 # First set a reasonable default.
5682 lt_cv_sys_max_cmd_len=16384
5684 if test -x /sbin/sysconfig; then
5685 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5686 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5687 esac
5688 fi
5689 ;;
5690 sco3.2v5*)
5691 lt_cv_sys_max_cmd_len=102400
5692 ;;
5693 sysv5* | sco5v6* | sysv4.2uw2*)
5694 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5695 if test -n "$kargmax"; then
5696 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5697 else
5698 lt_cv_sys_max_cmd_len=32768
5699 fi
5700 ;;
5701 *)
5702 # If test is not a shell built-in, we'll probably end up computing a
5703 # maximum length that is only half of the actual maximum length, but
5704 # we can't tell.
5705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5706 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5707 = "XX$teststring") >/dev/null 2>&1 &&
5708 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5709 lt_cv_sys_max_cmd_len=$new_result &&
5710 test $i != 17 # 1/2 MB should be enough
5711 do
5712 i=`expr $i + 1`
5713 teststring=$teststring$teststring
5714 done
5715 teststring=
5716 # Add a significant safety factor because C++ compilers can tack on massive
5717 # amounts of additional arguments before passing them to the linker.
5718 # It appears as though 1/2 is a usable value.
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5720 ;;
5721 esac
5723 fi
5725 if test -n $lt_cv_sys_max_cmd_len ; then
5726 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5727 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5728 else
5729 echo "$as_me:$LINENO: result: none" >&5
5730 echo "${ECHO_T}none" >&6
5731 fi
5736 # Check for command to grab the raw symbol name followed by C symbol from nm.
5737 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5738 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5739 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5743 # These are sane defaults that work on at least a few old systems.
5744 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5746 # Character class describing NM global symbol codes.
5747 symcode='[BCDEGRST]'
5749 # Regexp to match symbols that can be accessed directly from C.
5750 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5752 # Transform an extracted symbol line into a proper C declaration
5753 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5755 # Transform an extracted symbol line into symbol name and symbol address
5756 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'"
5758 # Define system-specific variables.
5759 case $host_os in
5760 aix*)
5761 symcode='[BCDT]'
5762 ;;
5763 cygwin* | mingw* | pw32*)
5764 symcode='[ABCDGISTW]'
5765 ;;
5766 hpux*) # Its linker distinguishes data from code symbols
5767 if test "$host_cpu" = ia64; then
5768 symcode='[ABCDEGRST]'
5769 fi
5770 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5771 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'"
5772 ;;
5773 linux*)
5774 if test "$host_cpu" = ia64; then
5775 symcode='[ABCDGIRSTW]'
5776 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5777 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'"
5778 fi
5779 ;;
5780 irix* | nonstopux*)
5781 symcode='[BCDEGRST]'
5782 ;;
5783 osf*)
5784 symcode='[BCDEGQRST]'
5785 ;;
5786 solaris*)
5787 symcode='[BDRT]'
5788 ;;
5789 sco3.2v5*)
5790 symcode='[DT]'
5791 ;;
5792 sysv4.2uw2*)
5793 symcode='[DT]'
5794 ;;
5795 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5796 symcode='[ABDT]'
5797 ;;
5798 sysv4)
5799 symcode='[DFNSTU]'
5800 ;;
5801 esac
5803 # Handle CRLF in mingw tool chain
5804 opt_cr=
5805 case $build_os in
5806 mingw*)
5807 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5808 ;;
5809 esac
5811 # If we're using GNU nm, then use its standard symbol codes.
5812 case `$NM -V 2>&1` in
5813 *GNU* | *'with BFD'*)
5814 symcode='[ABCDGIRSTW]' ;;
5815 esac
5817 # Try without a prefix undercore, then with it.
5818 for ac_symprfx in "" "_"; do
5820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5821 symxfrm="\\1 $ac_symprfx\\2 \\2"
5823 # Write the raw and C identifiers.
5824 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5826 # Check to see that the pipe works correctly.
5827 pipe_works=no
5829 rm -f conftest*
5830 cat > conftest.$ac_ext <<EOF
5831 #ifdef __cplusplus
5832 extern "C" {
5833 #endif
5834 char nm_test_var;
5835 void nm_test_func(){}
5836 #ifdef __cplusplus
5838 #endif
5839 int main(){nm_test_var='a';nm_test_func();return(0);}
5840 EOF
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; then
5847 # Now try to grab the symbols.
5848 nlist=conftest.nm
5849 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5850 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && test -s "$nlist"; then
5854 # Try sorting and uniquifying the output.
5855 if sort "$nlist" | uniq > "$nlist"T; then
5856 mv -f "$nlist"T "$nlist"
5857 else
5858 rm -f "$nlist"T
5859 fi
5861 # Make sure that we snagged all the symbols we need.
5862 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5863 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5864 cat <<EOF > conftest.$ac_ext
5865 #ifdef __cplusplus
5866 extern "C" {
5867 #endif
5869 EOF
5870 # Now generate the symbol file.
5871 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5873 cat <<EOF >> conftest.$ac_ext
5874 #if defined (__STDC__) && __STDC__
5875 # define lt_ptr_t void *
5876 #else
5877 # define lt_ptr_t char *
5878 # define const
5879 #endif
5881 /* The mapping between symbol names and symbols. */
5882 const struct {
5883 const char *name;
5884 lt_ptr_t address;
5886 lt_preloaded_symbols[] =
5888 EOF
5889 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5890 cat <<\EOF >> conftest.$ac_ext
5891 {0, (lt_ptr_t) 0}
5892 };
5894 #ifdef __cplusplus
5896 #endif
5897 EOF
5898 # Now try linking the two files.
5899 mv conftest.$ac_objext conftstm.$ac_objext
5900 lt_save_LIBS="$LIBS"
5901 lt_save_CFLAGS="$CFLAGS"
5902 LIBS="conftstm.$ac_objext"
5903 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5909 pipe_works=yes
5910 fi
5911 LIBS="$lt_save_LIBS"
5912 CFLAGS="$lt_save_CFLAGS"
5913 else
5914 echo "cannot find nm_test_func in $nlist" >&5
5915 fi
5916 else
5917 echo "cannot find nm_test_var in $nlist" >&5
5918 fi
5919 else
5920 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5921 fi
5922 else
5923 echo "$progname: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5925 fi
5926 rm -f conftest* conftst*
5928 # Do not use the global_symbol_pipe unless it works.
5929 if test "$pipe_works" = yes; then
5930 break
5931 else
5932 lt_cv_sys_global_symbol_pipe=
5933 fi
5934 done
5936 fi
5938 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5939 lt_cv_sys_global_symbol_to_cdecl=
5940 fi
5941 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5942 echo "$as_me:$LINENO: result: failed" >&5
5943 echo "${ECHO_T}failed" >&6
5944 else
5945 echo "$as_me:$LINENO: result: ok" >&5
5946 echo "${ECHO_T}ok" >&6
5947 fi
5949 echo "$as_me:$LINENO: checking for objdir" >&5
5950 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5951 if test "${lt_cv_objdir+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954 rm -f .libs 2>/dev/null
5955 mkdir .libs 2>/dev/null
5956 if test -d .libs; then
5957 lt_cv_objdir=.libs
5958 else
5959 # MS-DOS does not allow filenames that begin with a dot.
5960 lt_cv_objdir=_libs
5961 fi
5962 rmdir .libs 2>/dev/null
5963 fi
5964 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5965 echo "${ECHO_T}$lt_cv_objdir" >&6
5966 objdir=$lt_cv_objdir
5972 case $host_os in
5973 aix3*)
5974 # AIX sometimes has problems with the GCC collect2 program. For some
5975 # reason, if we set the COLLECT_NAMES environment variable, the problems
5976 # vanish in a puff of smoke.
5977 if test "X${COLLECT_NAMES+set}" != Xset; then
5978 COLLECT_NAMES=
5979 export COLLECT_NAMES
5980 fi
5981 ;;
5982 esac
5984 # Sed substitution that helps us do robust quoting. It backslashifies
5985 # metacharacters that are still active within double-quoted strings.
5986 Xsed='sed -e 1s/^X//'
5987 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5989 # Same as above, but do not quote variable references.
5990 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5992 # Sed substitution to delay expansion of an escaped shell variable in a
5993 # double_quote_subst'ed string.
5994 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5996 # Sed substitution to avoid accidental globbing in evaled expressions
5997 no_glob_subst='s/\*/\\\*/g'
5999 # Constants:
6000 rm="rm -f"
6002 # Global variables:
6003 default_ofile=libtool
6004 can_build_shared=yes
6006 # All known linkers require a `.a' archive for static linking (except MSVC,
6007 # which needs '.lib').
6008 libext=a
6009 ltmain="$ac_aux_dir/ltmain.sh"
6010 ofile="$default_ofile"
6011 with_gnu_ld="$lt_cv_prog_gnu_ld"
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}ar; ac_word=$2
6016 echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6018 if test "${ac_cv_prog_AR+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 if test -n "$AR"; then
6022 ac_cv_prog_AR="$AR" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_AR="${ac_tool_prefix}ar"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6038 fi
6039 fi
6040 AR=$ac_cv_prog_AR
6041 if test -n "$AR"; then
6042 echo "$as_me:$LINENO: result: $AR" >&5
6043 echo "${ECHO_T}$AR" >&6
6044 else
6045 echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6
6047 fi
6049 fi
6050 if test -z "$ac_cv_prog_AR"; then
6051 ac_ct_AR=$AR
6052 # Extract the first word of "ar", so it can be a program name with args.
6053 set dummy ar; ac_word=$2
6054 echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6056 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059 if test -n "$ac_ct_AR"; then
6060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069 ac_cv_prog_ac_ct_AR="ar"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073 done
6074 done
6076 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6077 fi
6078 fi
6079 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6080 if test -n "$ac_ct_AR"; then
6081 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6082 echo "${ECHO_T}$ac_ct_AR" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6
6086 fi
6088 AR=$ac_ct_AR
6089 else
6090 AR="$ac_cv_prog_AR"
6091 fi
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6096 echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6098 if test "${ac_cv_prog_RANLIB+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 if test -n "$RANLIB"; then
6102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115 done
6116 done
6118 fi
6119 fi
6120 RANLIB=$ac_cv_prog_RANLIB
6121 if test -n "$RANLIB"; then
6122 echo "$as_me:$LINENO: result: $RANLIB" >&5
6123 echo "${ECHO_T}$RANLIB" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6
6127 fi
6129 fi
6130 if test -z "$ac_cv_prog_RANLIB"; then
6131 ac_ct_RANLIB=$RANLIB
6132 # Extract the first word of "ranlib", so it can be a program name with args.
6133 set dummy ranlib; ac_word=$2
6134 echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 if test -n "$ac_ct_RANLIB"; then
6140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149 ac_cv_prog_ac_ct_RANLIB="ranlib"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6152 fi
6153 done
6154 done
6156 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6157 fi
6158 fi
6159 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6160 if test -n "$ac_ct_RANLIB"; then
6161 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6162 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6163 else
6164 echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6
6166 fi
6168 RANLIB=$ac_ct_RANLIB
6169 else
6170 RANLIB="$ac_cv_prog_RANLIB"
6171 fi
6173 if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}strip; ac_word=$2
6176 echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178 if test "${ac_cv_prog_STRIP+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 if test -n "$STRIP"; then
6182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195 done
6196 done
6198 fi
6199 fi
6200 STRIP=$ac_cv_prog_STRIP
6201 if test -n "$STRIP"; then
6202 echo "$as_me:$LINENO: result: $STRIP" >&5
6203 echo "${ECHO_T}$STRIP" >&6
6204 else
6205 echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6
6207 fi
6209 fi
6210 if test -z "$ac_cv_prog_STRIP"; then
6211 ac_ct_STRIP=$STRIP
6212 # Extract the first word of "strip", so it can be a program name with args.
6213 set dummy strip; ac_word=$2
6214 echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6216 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 if test -n "$ac_ct_STRIP"; then
6220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_ac_ct_STRIP="strip"
6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233 done
6234 done
6236 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6237 fi
6238 fi
6239 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6240 if test -n "$ac_ct_STRIP"; then
6241 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6242 echo "${ECHO_T}$ac_ct_STRIP" >&6
6243 else
6244 echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6
6246 fi
6248 STRIP=$ac_ct_STRIP
6249 else
6250 STRIP="$ac_cv_prog_STRIP"
6251 fi
6254 old_CC="$CC"
6255 old_CFLAGS="$CFLAGS"
6257 # Set sane defaults for various variables
6258 test -z "$AR" && AR=ar
6259 test -z "$AR_FLAGS" && AR_FLAGS=cru
6260 test -z "$AS" && AS=as
6261 test -z "$CC" && CC=cc
6262 test -z "$LTCC" && LTCC=$CC
6263 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6264 test -z "$DLLTOOL" && DLLTOOL=dlltool
6265 test -z "$LD" && LD=ld
6266 test -z "$LN_S" && LN_S="ln -s"
6267 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6268 test -z "$NM" && NM=nm
6269 test -z "$SED" && SED=sed
6270 test -z "$OBJDUMP" && OBJDUMP=objdump
6271 test -z "$RANLIB" && RANLIB=:
6272 test -z "$STRIP" && STRIP=:
6273 test -z "$ac_objext" && ac_objext=o
6275 # Determine commands to create old-style static archives.
6276 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6277 old_postinstall_cmds='chmod 644 $oldlib'
6278 old_postuninstall_cmds=
6280 if test -n "$RANLIB"; then
6281 case $host_os in
6282 openbsd*)
6283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6284 ;;
6285 *)
6286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6287 ;;
6288 esac
6289 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6290 fi
6292 for cc_temp in $compiler""; do
6293 case $cc_temp in
6294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6296 \-*) ;;
6297 *) break;;
6298 esac
6299 done
6300 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6303 # Only perform the check for file, if the check method requires it
6304 case $deplibs_check_method in
6305 file_magic*)
6306 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6307 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6308 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6309 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 case $MAGIC_CMD in
6313 [\\/*] | ?:[\\/]*)
6314 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6315 ;;
6316 *)
6317 lt_save_MAGIC_CMD="$MAGIC_CMD"
6318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6320 for ac_dir in $ac_dummy; do
6321 IFS="$lt_save_ifs"
6322 test -z "$ac_dir" && ac_dir=.
6323 if test -f $ac_dir/${ac_tool_prefix}file; then
6324 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6325 if test -n "$file_magic_test_file"; then
6326 case $deplibs_check_method in
6327 "file_magic "*)
6328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6331 $EGREP "$file_magic_regex" > /dev/null; then
6333 else
6334 cat <<EOF 1>&2
6336 *** Warning: the command libtool uses to detect shared libraries,
6337 *** $file_magic_cmd, produces output that libtool cannot recognize.
6338 *** The result is that libtool may fail to recognize shared libraries
6339 *** as such. This will affect the creation of libtool libraries that
6340 *** depend on shared libraries, but programs linked with such libtool
6341 *** libraries will work regardless of this problem. Nevertheless, you
6342 *** may want to report the problem to your system manager and/or to
6343 *** bug-libtool@gnu.org
6345 EOF
6346 fi ;;
6347 esac
6348 fi
6349 break
6350 fi
6351 done
6352 IFS="$lt_save_ifs"
6353 MAGIC_CMD="$lt_save_MAGIC_CMD"
6354 ;;
6355 esac
6356 fi
6358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6359 if test -n "$MAGIC_CMD"; then
6360 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6361 echo "${ECHO_T}$MAGIC_CMD" >&6
6362 else
6363 echo "$as_me:$LINENO: result: no" >&5
6364 echo "${ECHO_T}no" >&6
6365 fi
6367 if test -z "$lt_cv_path_MAGIC_CMD"; then
6368 if test -n "$ac_tool_prefix"; then
6369 echo "$as_me:$LINENO: checking for file" >&5
6370 echo $ECHO_N "checking for file... $ECHO_C" >&6
6371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374 case $MAGIC_CMD in
6375 [\\/*] | ?:[\\/]*)
6376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6377 ;;
6378 *)
6379 lt_save_MAGIC_CMD="$MAGIC_CMD"
6380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6382 for ac_dir in $ac_dummy; do
6383 IFS="$lt_save_ifs"
6384 test -z "$ac_dir" && ac_dir=.
6385 if test -f $ac_dir/file; then
6386 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6387 if test -n "$file_magic_test_file"; then
6388 case $deplibs_check_method in
6389 "file_magic "*)
6390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6393 $EGREP "$file_magic_regex" > /dev/null; then
6395 else
6396 cat <<EOF 1>&2
6398 *** Warning: the command libtool uses to detect shared libraries,
6399 *** $file_magic_cmd, produces output that libtool cannot recognize.
6400 *** The result is that libtool may fail to recognize shared libraries
6401 *** as such. This will affect the creation of libtool libraries that
6402 *** depend on shared libraries, but programs linked with such libtool
6403 *** libraries will work regardless of this problem. Nevertheless, you
6404 *** may want to report the problem to your system manager and/or to
6405 *** bug-libtool@gnu.org
6407 EOF
6408 fi ;;
6409 esac
6410 fi
6411 break
6412 fi
6413 done
6414 IFS="$lt_save_ifs"
6415 MAGIC_CMD="$lt_save_MAGIC_CMD"
6416 ;;
6417 esac
6418 fi
6420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6421 if test -n "$MAGIC_CMD"; then
6422 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6423 echo "${ECHO_T}$MAGIC_CMD" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6
6427 fi
6429 else
6430 MAGIC_CMD=:
6431 fi
6432 fi
6434 fi
6435 ;;
6436 esac
6438 enable_dlopen=no
6439 enable_win32_dll=no
6441 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6442 if test "${enable_libtool_lock+set}" = set; then
6443 enableval="$enable_libtool_lock"
6445 fi;
6446 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6449 # Check whether --with-pic or --without-pic was given.
6450 if test "${with_pic+set}" = set; then
6451 withval="$with_pic"
6452 pic_mode="$withval"
6453 else
6454 pic_mode=default
6455 fi;
6456 test -z "$pic_mode" && pic_mode=default
6458 # Use C for the default configuration in the libtool script
6459 tagname=
6460 lt_save_CC="$CC"
6461 ac_ext=c
6462 ac_cpp='$CPP $CPPFLAGS'
6463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6468 # Source file extension for C test sources.
6469 ac_ext=c
6471 # Object file extension for compiled C test sources.
6472 objext=o
6473 objext=$objext
6475 # Code to be used in simple compile tests
6476 lt_simple_compile_test_code="int some_variable = 0;\n"
6478 # Code to be used in simple link tests
6479 lt_simple_link_test_code='int main(){return(0);}\n'
6482 # If no C compiler was specified, use CC.
6483 LTCC=${LTCC-"$CC"}
6485 # If no C compiler flags were specified, use CFLAGS.
6486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6488 # Allow CC to be a program name with arguments.
6489 compiler=$CC
6492 # save warnings/boilerplate of simple test code
6493 ac_outfile=conftest.$ac_objext
6494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6496 _lt_compiler_boilerplate=`cat conftest.err`
6497 $rm conftest*
6499 ac_outfile=conftest.$ac_objext
6500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6502 _lt_linker_boilerplate=`cat conftest.err`
6503 $rm conftest*
6507 lt_prog_compiler_no_builtin_flag=
6509 if test "$GCC" = yes; then
6510 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6513 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6514 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6515 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518 lt_cv_prog_compiler_rtti_exceptions=no
6519 ac_outfile=conftest.$ac_objext
6520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6521 lt_compiler_flag="-fno-rtti -fno-exceptions"
6522 # Insert the option either (1) after the last *FLAGS variable, or
6523 # (2) before a word containing "conftest.", or (3) at the end.
6524 # Note that $ac_compile itself does not contain backslashes and begins
6525 # with a dollar sign (not a hyphen), so the echo should work correctly.
6526 # The option is referenced via a variable to avoid confusing sed.
6527 lt_compile=`echo "$ac_compile" | $SED \
6528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6530 -e 's:$: $lt_compiler_flag:'`
6531 (eval echo "\"\$as_me:6531: $lt_compile\"" >&5)
6532 (eval "$lt_compile" 2>conftest.err)
6533 ac_status=$?
6534 cat conftest.err >&5
6535 echo "$as_me:6535: \$? = $ac_status" >&5
6536 if (exit $ac_status) && test -s "$ac_outfile"; then
6537 # The compiler can only warn and ignore the option if not recognized
6538 # So say no if there are warnings other than the usual output.
6539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6542 lt_cv_prog_compiler_rtti_exceptions=yes
6543 fi
6544 fi
6545 $rm conftest*
6547 fi
6548 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6549 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6551 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6552 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6553 else
6555 fi
6557 fi
6559 lt_prog_compiler_wl=
6560 lt_prog_compiler_pic=
6561 lt_prog_compiler_static=
6563 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6564 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6566 if test "$GCC" = yes; then
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_static='-static'
6570 case $host_os in
6571 aix*)
6572 # All AIX code is PIC.
6573 if test "$host_cpu" = ia64; then
6574 # AIX 5 now supports IA64 processor
6575 lt_prog_compiler_static='-Bstatic'
6576 fi
6577 ;;
6579 amigaos*)
6580 # FIXME: we need at least 68020 code to build shared libraries, but
6581 # adding the `-m68020' flag to GCC prevents building anything better,
6582 # like `-m68040'.
6583 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6584 ;;
6586 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6587 # PIC is the default for these OSes.
6588 ;;
6590 mingw* | pw32* | os2*)
6591 # This hack is so that the source file can tell whether it is being
6592 # built for inclusion in a dll (and should export symbols for example).
6593 lt_prog_compiler_pic='-DDLL_EXPORT'
6594 ;;
6596 darwin* | rhapsody*)
6597 # PIC is the default on this platform
6598 # Common symbols not allowed in MH_DYLIB files
6599 lt_prog_compiler_pic='-fno-common'
6600 ;;
6602 interix3*)
6603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6604 # Instead, we relocate shared libraries at runtime.
6605 ;;
6607 msdosdjgpp*)
6608 # Just because we use GCC doesn't mean we suddenly get shared libraries
6609 # on systems that don't support them.
6610 lt_prog_compiler_can_build_shared=no
6611 enable_shared=no
6612 ;;
6614 sysv4*MP*)
6615 if test -d /usr/nec; then
6616 lt_prog_compiler_pic=-Kconform_pic
6617 fi
6618 ;;
6620 hpux*)
6621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6622 # not for PA HP-UX.
6623 case $host_cpu in
6624 hppa*64*|ia64*)
6625 # +Z the default
6626 ;;
6627 *)
6628 lt_prog_compiler_pic='-fPIC'
6629 ;;
6630 esac
6631 ;;
6633 *)
6634 lt_prog_compiler_pic='-fPIC'
6635 ;;
6636 esac
6637 else
6638 # PORTME Check for flag to pass linker flags through the system compiler.
6639 case $host_os in
6640 aix*)
6641 lt_prog_compiler_wl='-Wl,'
6642 if test "$host_cpu" = ia64; then
6643 # AIX 5 now supports IA64 processor
6644 lt_prog_compiler_static='-Bstatic'
6645 else
6646 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6647 fi
6648 ;;
6649 darwin*)
6650 # PIC is the default on this platform
6651 # Common symbols not allowed in MH_DYLIB files
6652 case $cc_basename in
6653 xlc*)
6654 lt_prog_compiler_pic='-qnocommon'
6655 lt_prog_compiler_wl='-Wl,'
6656 ;;
6657 esac
6658 ;;
6660 mingw* | pw32* | os2*)
6661 # This hack is so that the source file can tell whether it is being
6662 # built for inclusion in a dll (and should export symbols for example).
6663 lt_prog_compiler_pic='-DDLL_EXPORT'
6664 ;;
6666 hpux9* | hpux10* | hpux11*)
6667 lt_prog_compiler_wl='-Wl,'
6668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6669 # not for PA HP-UX.
6670 case $host_cpu in
6671 hppa*64*|ia64*)
6672 # +Z the default
6673 ;;
6674 *)
6675 lt_prog_compiler_pic='+Z'
6676 ;;
6677 esac
6678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6679 lt_prog_compiler_static='${wl}-a ${wl}archive'
6680 ;;
6682 irix5* | irix6* | nonstopux*)
6683 lt_prog_compiler_wl='-Wl,'
6684 # PIC (with -KPIC) is the default.
6685 lt_prog_compiler_static='-non_shared'
6686 ;;
6688 newsos6)
6689 lt_prog_compiler_pic='-KPIC'
6690 lt_prog_compiler_static='-Bstatic'
6691 ;;
6693 linux*)
6694 case $cc_basename in
6695 icc* | ecc*)
6696 lt_prog_compiler_wl='-Wl,'
6697 lt_prog_compiler_pic='-KPIC'
6698 lt_prog_compiler_static='-static'
6699 ;;
6700 pgcc* | pgf77* | pgf90* | pgf95*)
6701 # Portland Group compilers (*not* the Pentium gcc compiler,
6702 # which looks to be a dead project)
6703 lt_prog_compiler_wl='-Wl,'
6704 lt_prog_compiler_pic='-fpic'
6705 lt_prog_compiler_static='-Bstatic'
6706 ;;
6707 ccc*)
6708 lt_prog_compiler_wl='-Wl,'
6709 # All Alpha code is PIC.
6710 lt_prog_compiler_static='-non_shared'
6711 ;;
6712 esac
6713 ;;
6715 osf3* | osf4* | osf5*)
6716 lt_prog_compiler_wl='-Wl,'
6717 # All OSF/1 code is PIC.
6718 lt_prog_compiler_static='-non_shared'
6719 ;;
6721 solaris*)
6722 lt_prog_compiler_pic='-KPIC'
6723 lt_prog_compiler_static='-Bstatic'
6724 case $cc_basename in
6725 f77* | f90* | f95*)
6726 lt_prog_compiler_wl='-Qoption ld ';;
6727 *)
6728 lt_prog_compiler_wl='-Wl,';;
6729 esac
6730 ;;
6732 sunos4*)
6733 lt_prog_compiler_wl='-Qoption ld '
6734 lt_prog_compiler_pic='-PIC'
6735 lt_prog_compiler_static='-Bstatic'
6736 ;;
6738 sysv4 | sysv4.2uw2* | sysv4.3*)
6739 lt_prog_compiler_wl='-Wl,'
6740 lt_prog_compiler_pic='-KPIC'
6741 lt_prog_compiler_static='-Bstatic'
6742 ;;
6744 sysv4*MP*)
6745 if test -d /usr/nec ;then
6746 lt_prog_compiler_pic='-Kconform_pic'
6747 lt_prog_compiler_static='-Bstatic'
6748 fi
6749 ;;
6751 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6752 lt_prog_compiler_wl='-Wl,'
6753 lt_prog_compiler_pic='-KPIC'
6754 lt_prog_compiler_static='-Bstatic'
6755 ;;
6757 unicos*)
6758 lt_prog_compiler_wl='-Wl,'
6759 lt_prog_compiler_can_build_shared=no
6760 ;;
6762 uts4*)
6763 lt_prog_compiler_pic='-pic'
6764 lt_prog_compiler_static='-Bstatic'
6765 ;;
6767 *)
6768 lt_prog_compiler_can_build_shared=no
6769 ;;
6770 esac
6771 fi
6773 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6774 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6777 # Check to make sure the PIC flag actually works.
6779 if test -n "$lt_prog_compiler_pic"; then
6781 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6783 if test "${lt_prog_compiler_pic_works+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786 lt_prog_compiler_pic_works=no
6787 ac_outfile=conftest.$ac_objext
6788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6789 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6790 # Insert the option either (1) after the last *FLAGS variable, or
6791 # (2) before a word containing "conftest.", or (3) at the end.
6792 # Note that $ac_compile itself does not contain backslashes and begins
6793 # with a dollar sign (not a hyphen), so the echo should work correctly.
6794 # The option is referenced via a variable to avoid confusing sed.
6795 lt_compile=`echo "$ac_compile" | $SED \
6796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6798 -e 's:$: $lt_compiler_flag:'`
6799 (eval echo "\"\$as_me:6799: $lt_compile\"" >&5)
6800 (eval "$lt_compile" 2>conftest.err)
6801 ac_status=$?
6802 cat conftest.err >&5
6803 echo "$as_me:6803: \$? = $ac_status" >&5
6804 if (exit $ac_status) && test -s "$ac_outfile"; then
6805 # The compiler can only warn and ignore the option if not recognized
6806 # So say no if there are warnings other than the usual output.
6807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6810 lt_prog_compiler_pic_works=yes
6811 fi
6812 fi
6813 $rm conftest*
6815 fi
6816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6817 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6819 if test x"$lt_prog_compiler_pic_works" = xyes; then
6820 case $lt_prog_compiler_pic in
6821 "" | " "*) ;;
6822 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6823 esac
6824 else
6825 lt_prog_compiler_pic=
6826 lt_prog_compiler_can_build_shared=no
6827 fi
6829 fi
6830 case $host_os in
6831 # For platforms which do not support PIC, -DPIC is meaningless:
6832 *djgpp*)
6833 lt_prog_compiler_pic=
6834 ;;
6835 *)
6836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6837 ;;
6838 esac
6841 # Check to make sure the static flag actually works.
6843 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6844 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6846 if test "${lt_prog_compiler_static_works+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 lt_prog_compiler_static_works=no
6850 save_LDFLAGS="$LDFLAGS"
6851 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6852 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6854 # The linker can only warn and ignore the option if not recognized
6855 # So say no if there are warnings
6856 if test -s conftest.err; then
6857 # Append any errors to the config.log.
6858 cat conftest.err 1>&5
6859 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6861 if diff conftest.exp conftest.er2 >/dev/null; then
6862 lt_prog_compiler_static_works=yes
6863 fi
6864 else
6865 lt_prog_compiler_static_works=yes
6866 fi
6867 fi
6868 $rm conftest*
6869 LDFLAGS="$save_LDFLAGS"
6871 fi
6872 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6873 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6875 if test x"$lt_prog_compiler_static_works" = xyes; then
6877 else
6878 lt_prog_compiler_static=
6879 fi
6882 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6883 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 lt_cv_prog_compiler_c_o=no
6888 $rm -r conftest 2>/dev/null
6889 mkdir conftest
6890 cd conftest
6891 mkdir out
6892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6894 lt_compiler_flag="-o out/conftest2.$ac_objext"
6895 # Insert the option either (1) after the last *FLAGS variable, or
6896 # (2) before a word containing "conftest.", or (3) at the end.
6897 # Note that $ac_compile itself does not contain backslashes and begins
6898 # with a dollar sign (not a hyphen), so the echo should work correctly.
6899 lt_compile=`echo "$ac_compile" | $SED \
6900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6902 -e 's:$: $lt_compiler_flag:'`
6903 (eval echo "\"\$as_me:6903: $lt_compile\"" >&5)
6904 (eval "$lt_compile" 2>out/conftest.err)
6905 ac_status=$?
6906 cat out/conftest.err >&5
6907 echo "$as_me:6907: \$? = $ac_status" >&5
6908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6909 then
6910 # The compiler can only warn and ignore the option if not recognized
6911 # So say no if there are warnings
6912 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6915 lt_cv_prog_compiler_c_o=yes
6916 fi
6917 fi
6918 chmod u+w . 2>&5
6919 $rm conftest*
6920 # SGI C++ compiler will create directory out/ii_files/ for
6921 # template instantiation
6922 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6923 $rm out/* && rmdir out
6924 cd ..
6925 rmdir conftest
6926 $rm conftest*
6928 fi
6929 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6933 hard_links="nottested"
6934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6935 # do not overwrite the value of need_locks provided by the user
6936 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6938 hard_links=yes
6939 $rm conftest*
6940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6941 touch conftest.a
6942 ln conftest.a conftest.b 2>&5 || hard_links=no
6943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6944 echo "$as_me:$LINENO: result: $hard_links" >&5
6945 echo "${ECHO_T}$hard_links" >&6
6946 if test "$hard_links" = no; then
6947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6949 need_locks=warn
6950 fi
6951 else
6952 need_locks=no
6953 fi
6955 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6958 runpath_var=
6959 allow_undefined_flag=
6960 enable_shared_with_static_runtimes=no
6961 archive_cmds=
6962 archive_expsym_cmds=
6963 old_archive_From_new_cmds=
6964 old_archive_from_expsyms_cmds=
6965 export_dynamic_flag_spec=
6966 whole_archive_flag_spec=
6967 thread_safe_flag_spec=
6968 hardcode_libdir_flag_spec=
6969 hardcode_libdir_flag_spec_ld=
6970 hardcode_libdir_separator=
6971 hardcode_direct=no
6972 hardcode_minus_L=no
6973 hardcode_shlibpath_var=unsupported
6974 link_all_deplibs=unknown
6975 hardcode_automatic=no
6976 module_cmds=
6977 module_expsym_cmds=
6978 always_export_symbols=no
6979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6980 # include_expsyms should be a list of space-separated symbols to be *always*
6981 # included in the symbol list
6982 include_expsyms=
6983 # exclude_expsyms can be an extended regexp of symbols to exclude
6984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6986 # as well as any symbol that contains `d'.
6987 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6989 # platforms (ab)use it in PIC code, but their linkers get confused if
6990 # the symbol is explicitly referenced. Since portable code cannot
6991 # rely on this symbol name, it's probably fine to never include it in
6992 # preloaded symbol tables.
6993 extract_expsyms_cmds=
6994 # Just being paranoid about ensuring that cc_basename is set.
6995 for cc_temp in $compiler""; do
6996 case $cc_temp in
6997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6999 \-*) ;;
7000 *) break;;
7001 esac
7002 done
7003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7005 case $host_os in
7006 cygwin* | mingw* | pw32*)
7007 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7008 # When not using gcc, we currently assume that we are using
7009 # Microsoft Visual C++.
7010 if test "$GCC" != yes; then
7011 with_gnu_ld=no
7012 fi
7013 ;;
7014 interix*)
7015 # we just hope/assume this is gcc and not c89 (= MSVC++)
7016 with_gnu_ld=yes
7017 ;;
7018 openbsd*)
7019 with_gnu_ld=no
7020 ;;
7021 esac
7023 ld_shlibs=yes
7024 if test "$with_gnu_ld" = yes; then
7025 # If archive_cmds runs LD, not CC, wlarc should be empty
7026 wlarc='${wl}'
7028 # Set some defaults for GNU ld with shared library support. These
7029 # are reset later if shared libraries are not supported. Putting them
7030 # here allows them to be overridden if necessary.
7031 runpath_var=LD_RUN_PATH
7032 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7033 export_dynamic_flag_spec='${wl}--export-dynamic'
7034 # ancient GNU ld didn't support --whole-archive et. al.
7035 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7036 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7037 else
7038 whole_archive_flag_spec=
7039 fi
7040 supports_anon_versioning=no
7041 case `$LD -v 2>/dev/null` in
7042 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7043 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7044 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7045 *\ 2.11.*) ;; # other 2.11 versions
7046 *) supports_anon_versioning=yes ;;
7047 esac
7049 # See if GNU ld supports shared libraries.
7050 case $host_os in
7051 aix3* | aix4* | aix5*)
7052 # On AIX/PPC, the GNU linker is very broken
7053 if test "$host_cpu" != ia64; then
7054 ld_shlibs=no
7055 cat <<EOF 1>&2
7057 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7058 *** to be unable to reliably create shared libraries on AIX.
7059 *** Therefore, libtool is disabling shared libraries support. If you
7060 *** really care for shared libraries, you may want to modify your PATH
7061 *** so that a non-GNU linker is found, and then restart.
7063 EOF
7064 fi
7065 ;;
7067 amigaos*)
7068 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)'
7069 hardcode_libdir_flag_spec='-L$libdir'
7070 hardcode_minus_L=yes
7072 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7073 # that the semantics of dynamic libraries on AmigaOS, at least up
7074 # to version 4, is to share data among multiple programs linked
7075 # with the same dynamic library. Since this doesn't match the
7076 # behavior of shared libraries on other platforms, we can't use
7077 # them.
7078 ld_shlibs=no
7079 ;;
7081 beos*)
7082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7083 allow_undefined_flag=unsupported
7084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7085 # support --undefined. This deserves some investigation. FIXME
7086 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7087 else
7088 ld_shlibs=no
7089 fi
7090 ;;
7092 cygwin* | mingw* | pw32*)
7093 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7094 # as there is no search path for DLLs.
7095 hardcode_libdir_flag_spec='-L$libdir'
7096 allow_undefined_flag=unsupported
7097 always_export_symbols=no
7098 enable_shared_with_static_runtimes=yes
7099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7101 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7103 # If the export-symbols file already is a .def file (1st line
7104 # is EXPORTS), use it as is; otherwise, prepend...
7105 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7106 cp $export_symbols $output_objdir/$soname.def;
7107 else
7108 echo EXPORTS > $output_objdir/$soname.def;
7109 cat $export_symbols >> $output_objdir/$soname.def;
7110 fi~
7111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7112 else
7113 ld_shlibs=no
7114 fi
7115 ;;
7117 interix3*)
7118 hardcode_direct=no
7119 hardcode_shlibpath_var=no
7120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7121 export_dynamic_flag_spec='${wl}-E'
7122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7123 # Instead, shared libraries are loaded at an image base (0x10000000 by
7124 # default) and relocated if they conflict, which is a slow very memory
7125 # consuming and fragmenting process. To avoid this, we pick a random,
7126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7129 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7130 ;;
7132 linux*)
7133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7134 tmp_addflag=
7135 case $cc_basename,$host_cpu in
7136 pgcc*) # Portland Group C compiler
7137 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7138 tmp_addflag=' $pic_flag'
7139 ;;
7140 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7141 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7142 tmp_addflag=' $pic_flag -Mnomain' ;;
7143 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7144 tmp_addflag=' -i_dynamic' ;;
7145 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7146 tmp_addflag=' -i_dynamic -nofor_main' ;;
7147 ifc* | ifort*) # Intel Fortran compiler
7148 tmp_addflag=' -nofor_main' ;;
7149 esac
7150 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7152 if test $supports_anon_versioning = yes; then
7153 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7155 $echo "local: *; };" >> $output_objdir/$libname.ver~
7156 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7157 fi
7158 link_all_deplibs=no
7159 else
7160 ld_shlibs=no
7161 fi
7162 ;;
7164 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7167 wlarc=
7168 else
7169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7171 fi
7172 ;;
7174 solaris*)
7175 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7176 ld_shlibs=no
7177 cat <<EOF 1>&2
7179 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7180 *** create shared libraries on Solaris systems. Therefore, libtool
7181 *** is disabling shared libraries support. We urge you to upgrade GNU
7182 *** binutils to release 2.9.1 or newer. Another option is to modify
7183 *** your PATH or compiler configuration so that the native linker is
7184 *** used, and then restart.
7186 EOF
7187 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7190 else
7191 ld_shlibs=no
7192 fi
7193 ;;
7195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7196 case `$LD -v 2>&1` in
7197 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7198 ld_shlibs=no
7199 cat <<_LT_EOF 1>&2
7201 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7202 *** reliably create shared libraries on SCO systems. Therefore, libtool
7203 *** is disabling shared libraries support. We urge you to upgrade GNU
7204 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7205 *** your PATH or compiler configuration so that the native linker is
7206 *** used, and then restart.
7208 _LT_EOF
7209 ;;
7210 *)
7211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7212 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7215 else
7216 ld_shlibs=no
7217 fi
7218 ;;
7219 esac
7220 ;;
7222 sunos4*)
7223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7224 wlarc=
7225 hardcode_direct=yes
7226 hardcode_shlibpath_var=no
7227 ;;
7229 *)
7230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7233 else
7234 ld_shlibs=no
7235 fi
7236 ;;
7237 esac
7239 if test "$ld_shlibs" = no; then
7240 runpath_var=
7241 hardcode_libdir_flag_spec=
7242 export_dynamic_flag_spec=
7243 whole_archive_flag_spec=
7244 fi
7245 else
7246 # PORTME fill in a description of your system's linker (not GNU ld)
7247 case $host_os in
7248 aix3*)
7249 allow_undefined_flag=unsupported
7250 always_export_symbols=yes
7251 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'
7252 # Note: this linker hardcodes the directories in LIBPATH if there
7253 # are no directories specified by -L.
7254 hardcode_minus_L=yes
7255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7256 # Neither direct hardcoding nor static linking is supported with a
7257 # broken collect2.
7258 hardcode_direct=unsupported
7259 fi
7260 ;;
7262 aix4* | aix5*)
7263 if test "$host_cpu" = ia64; then
7264 # On IA64, the linker does run time linking by default, so we don't
7265 # have to do anything special.
7266 aix_use_runtimelinking=no
7267 exp_sym_flag='-Bexport'
7268 no_entry_flag=""
7269 else
7270 # If we're using GNU nm, then we don't want the "-C" option.
7271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7272 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7273 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'
7274 else
7275 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'
7276 fi
7277 aix_use_runtimelinking=no
7279 # Test if we are trying to use run time linking or normal
7280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7281 # need to do runtime linking.
7282 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7283 for ld_flag in $LDFLAGS; do
7284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7285 aix_use_runtimelinking=yes
7286 break
7287 fi
7288 done
7289 ;;
7290 esac
7292 exp_sym_flag='-bexport'
7293 no_entry_flag='-bnoentry'
7294 fi
7296 # When large executables or shared objects are built, AIX ld can
7297 # have problems creating the table of contents. If linking a library
7298 # or program results in "error TOC overflow" add -mminimal-toc to
7299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7302 archive_cmds=''
7303 hardcode_direct=yes
7304 hardcode_libdir_separator=':'
7305 link_all_deplibs=yes
7307 if test "$GCC" = yes; then
7308 case $host_os in aix4.[012]|aix4.[012].*)
7309 # We only want to do this on AIX 4.2 and lower, the check
7310 # below for broken collect2 doesn't work under 4.3+
7311 collect2name=`${CC} -print-prog-name=collect2`
7312 if test -f "$collect2name" && \
7313 strings "$collect2name" | grep resolve_lib_name >/dev/null
7314 then
7315 # We have reworked collect2
7316 hardcode_direct=yes
7317 else
7318 # We have old collect2
7319 hardcode_direct=unsupported
7320 # It fails to find uninstalled libraries when the uninstalled
7321 # path is not listed in the libpath. Setting hardcode_minus_L
7322 # to unsupported forces relinking
7323 hardcode_minus_L=yes
7324 hardcode_libdir_flag_spec='-L$libdir'
7325 hardcode_libdir_separator=
7326 fi
7327 ;;
7328 esac
7329 shared_flag='-shared'
7330 if test "$aix_use_runtimelinking" = yes; then
7331 shared_flag="$shared_flag "'${wl}-G'
7332 fi
7333 else
7334 # not using gcc
7335 if test "$host_cpu" = ia64; then
7336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7337 # chokes on -Wl,-G. The following line is correct:
7338 shared_flag='-G'
7339 else
7340 if test "$aix_use_runtimelinking" = yes; then
7341 shared_flag='${wl}-G'
7342 else
7343 shared_flag='${wl}-bM:SRE'
7344 fi
7345 fi
7346 fi
7348 # It seems that -bexpall does not export symbols beginning with
7349 # underscore (_), so it is better to generate a list of symbols to export.
7350 always_export_symbols=yes
7351 if test "$aix_use_runtimelinking" = yes; then
7352 # Warning - without using the other runtime loading flags (-brtl),
7353 # -berok will link without error, but may produce a broken library.
7354 allow_undefined_flag='-berok'
7355 # Determine the default libpath from the value encoded in an empty executable.
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7363 int
7364 main ()
7368 return 0;
7370 _ACEOF
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373 (eval $ac_link) 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; } &&
7386 { ac_try='test -s conftest$ac_exeext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 (eval $ac_try) 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7394 }'`
7395 # Check for a 64-bit object if we didn't find anything.
7396 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; }
7397 }'`; fi
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 fi
7403 rm -f conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7408 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7409 else
7410 if test "$host_cpu" = ia64; then
7411 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7412 allow_undefined_flag="-z nodefs"
7413 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7414 else
7415 # Determine the default libpath from the value encoded in an empty executable.
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7423 int
7424 main ()
7428 return 0;
7430 _ACEOF
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433 (eval $ac_link) 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } &&
7440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 (eval $ac_try) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; } &&
7446 { ac_try='test -s conftest$ac_exeext'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 (eval $ac_try) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; }; then
7453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7454 }'`
7455 # Check for a 64-bit object if we didn't find anything.
7456 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; }
7457 }'`; fi
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 fi
7463 rm -f conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7468 # Warning - without using the other run time loading flags,
7469 # -berok will link without error, but may produce a broken library.
7470 no_undefined_flag=' ${wl}-bernotok'
7471 allow_undefined_flag=' ${wl}-berok'
7472 # Exported symbols can be pulled into shared objects from archives
7473 whole_archive_flag_spec='$convenience'
7474 archive_cmds_need_lc=yes
7475 # This is similar to how AIX traditionally builds its shared libraries.
7476 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7477 fi
7478 fi
7479 ;;
7481 amigaos*)
7482 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)'
7483 hardcode_libdir_flag_spec='-L$libdir'
7484 hardcode_minus_L=yes
7485 # see comment about different semantics on the GNU ld section
7486 ld_shlibs=no
7487 ;;
7489 bsdi[45]*)
7490 export_dynamic_flag_spec=-rdynamic
7491 ;;
7493 cygwin* | mingw* | pw32*)
7494 # When not using gcc, we currently assume that we are using
7495 # Microsoft Visual C++.
7496 # hardcode_libdir_flag_spec is actually meaningless, as there is
7497 # no search path for DLLs.
7498 hardcode_libdir_flag_spec=' '
7499 allow_undefined_flag=unsupported
7500 # Tell ltmain to make .lib files, not .a files.
7501 libext=lib
7502 # Tell ltmain to make .dll files, not .so files.
7503 shrext_cmds=".dll"
7504 # FIXME: Setting linknames here is a bad hack.
7505 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7506 # The linker will automatically build a .lib file if we build a DLL.
7507 old_archive_From_new_cmds='true'
7508 # FIXME: Should let the user specify the lib program.
7509 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7510 fix_srcfile_path='`cygpath -w "$srcfile"`'
7511 enable_shared_with_static_runtimes=yes
7512 ;;
7514 darwin* | rhapsody*)
7515 case $host_os in
7516 rhapsody* | darwin1.[012])
7517 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7518 ;;
7519 *) # Darwin 1.3 on
7520 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7521 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7522 else
7523 case ${MACOSX_DEPLOYMENT_TARGET} in
7524 10.[012])
7525 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7526 ;;
7527 10.*)
7528 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7529 ;;
7530 esac
7531 fi
7532 ;;
7533 esac
7534 archive_cmds_need_lc=no
7535 hardcode_direct=no
7536 hardcode_automatic=yes
7537 hardcode_shlibpath_var=unsupported
7538 whole_archive_flag_spec=''
7539 link_all_deplibs=yes
7540 if test "$GCC" = yes ; then
7541 output_verbose_link_cmd='echo'
7542 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7543 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7545 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}'
7546 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}'
7547 else
7548 case $cc_basename in
7549 xlc*)
7550 output_verbose_link_cmd='echo'
7551 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7552 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7553 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7554 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}'
7555 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}'
7556 ;;
7557 *)
7558 ld_shlibs=no
7559 ;;
7560 esac
7561 fi
7562 ;;
7564 dgux*)
7565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7566 hardcode_libdir_flag_spec='-L$libdir'
7567 hardcode_shlibpath_var=no
7568 ;;
7570 freebsd1*)
7571 ld_shlibs=no
7572 ;;
7574 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7575 # support. Future versions do this automatically, but an explicit c++rt0.o
7576 # does not break anything, and helps significantly (at the cost of a little
7577 # extra space).
7578 freebsd2.2*)
7579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7580 hardcode_libdir_flag_spec='-R$libdir'
7581 hardcode_direct=yes
7582 hardcode_shlibpath_var=no
7583 ;;
7585 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7586 freebsd2*)
7587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7588 hardcode_direct=yes
7589 hardcode_minus_L=yes
7590 hardcode_shlibpath_var=no
7591 ;;
7593 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7594 freebsd* | dragonfly*)
7595 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7596 hardcode_libdir_flag_spec='-R$libdir'
7597 hardcode_direct=yes
7598 hardcode_shlibpath_var=no
7599 ;;
7601 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7602 kfreebsd*-gnu)
7603 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7604 hardcode_libdir_flag_spec='-R$libdir'
7605 hardcode_direct=yes
7606 hardcode_shlibpath_var=no
7607 link_all_deplibs=no
7608 ;;
7610 hpux9*)
7611 if test "$GCC" = yes; then
7612 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'
7613 else
7614 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'
7615 fi
7616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7617 hardcode_libdir_separator=:
7618 hardcode_direct=yes
7620 # hardcode_minus_L: Not really in the search PATH,
7621 # but as the default location of the library.
7622 hardcode_minus_L=yes
7623 export_dynamic_flag_spec='${wl}-E'
7624 ;;
7626 hpux10*)
7627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7628 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7629 else
7630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7631 fi
7632 if test "$with_gnu_ld" = no; then
7633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7634 hardcode_libdir_separator=:
7636 hardcode_direct=yes
7637 export_dynamic_flag_spec='${wl}-E'
7639 # hardcode_minus_L: Not really in the search PATH,
7640 # but as the default location of the library.
7641 hardcode_minus_L=yes
7642 fi
7643 ;;
7645 hpux11*)
7646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7647 case $host_cpu in
7648 hppa*64*)
7649 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7650 ;;
7651 ia64*)
7652 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7653 ;;
7654 *)
7655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7656 ;;
7657 esac
7658 else
7659 case $host_cpu in
7660 hppa*64*)
7661 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7662 ;;
7663 ia64*)
7664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7665 ;;
7666 *)
7667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7668 ;;
7669 esac
7670 fi
7671 if test "$with_gnu_ld" = no; then
7672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7673 hardcode_libdir_separator=:
7675 case $host_cpu in
7676 hppa*64*|ia64*)
7677 hardcode_libdir_flag_spec_ld='+b $libdir'
7678 hardcode_direct=no
7679 hardcode_shlibpath_var=no
7680 ;;
7681 *)
7682 hardcode_direct=yes
7683 export_dynamic_flag_spec='${wl}-E'
7685 # hardcode_minus_L: Not really in the search PATH,
7686 # but as the default location of the library.
7687 hardcode_minus_L=yes
7688 ;;
7689 esac
7690 fi
7691 ;;
7693 irix5* | irix6* | nonstopux*)
7694 if test "$GCC" = yes; then
7695 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'
7696 else
7697 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'
7698 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7699 fi
7700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7701 hardcode_libdir_separator=:
7702 link_all_deplibs=yes
7703 ;;
7705 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7708 else
7709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7710 fi
7711 hardcode_libdir_flag_spec='-R$libdir'
7712 hardcode_direct=yes
7713 hardcode_shlibpath_var=no
7714 ;;
7716 newsos6)
7717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7718 hardcode_direct=yes
7719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7720 hardcode_libdir_separator=:
7721 hardcode_shlibpath_var=no
7722 ;;
7724 openbsd*)
7725 hardcode_direct=yes
7726 hardcode_shlibpath_var=no
7727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7729 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7731 export_dynamic_flag_spec='${wl}-E'
7732 else
7733 case $host_os in
7734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7736 hardcode_libdir_flag_spec='-R$libdir'
7737 ;;
7738 *)
7739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7741 ;;
7742 esac
7743 fi
7744 ;;
7746 os2*)
7747 hardcode_libdir_flag_spec='-L$libdir'
7748 hardcode_minus_L=yes
7749 allow_undefined_flag=unsupported
7750 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'
7751 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7752 ;;
7754 osf3*)
7755 if test "$GCC" = yes; then
7756 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7757 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'
7758 else
7759 allow_undefined_flag=' -expect_unresolved \*'
7760 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'
7761 fi
7762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7763 hardcode_libdir_separator=:
7764 ;;
7766 osf4* | osf5*) # as osf3* with the addition of -msym flag
7767 if test "$GCC" = yes; then
7768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7769 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'
7770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7771 else
7772 allow_undefined_flag=' -expect_unresolved \*'
7773 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'
7774 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7775 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7777 # Both c and cxx compiler support -rpath directly
7778 hardcode_libdir_flag_spec='-rpath $libdir'
7779 fi
7780 hardcode_libdir_separator=:
7781 ;;
7783 solaris*)
7784 no_undefined_flag=' -z text'
7785 if test "$GCC" = yes; then
7786 wlarc='${wl}'
7787 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7788 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7789 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7790 else
7791 wlarc=''
7792 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7793 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7794 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7795 fi
7796 hardcode_libdir_flag_spec='-R$libdir'
7797 hardcode_shlibpath_var=no
7798 case $host_os in
7799 solaris2.[0-5] | solaris2.[0-5].*) ;;
7800 *)
7801 # The compiler driver will combine linker options so we
7802 # cannot just pass the convience library names through
7803 # without $wl, iff we do not link with $LD.
7804 # Luckily, gcc supports the same syntax we need for Sun Studio.
7805 # Supported since Solaris 2.6 (maybe 2.5.1?)
7806 case $wlarc in
7807 '')
7808 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7809 *)
7810 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7811 esac ;;
7812 esac
7813 link_all_deplibs=yes
7814 ;;
7816 sunos4*)
7817 if test "x$host_vendor" = xsequent; then
7818 # Use $CC to link under sequent, because it throws in some extra .o
7819 # files that make .init and .fini sections work.
7820 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7821 else
7822 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7823 fi
7824 hardcode_libdir_flag_spec='-L$libdir'
7825 hardcode_direct=yes
7826 hardcode_minus_L=yes
7827 hardcode_shlibpath_var=no
7828 ;;
7830 sysv4)
7831 case $host_vendor in
7832 sni)
7833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_direct=yes # is this really true???
7835 ;;
7836 siemens)
7837 ## LD is ld it makes a PLAMLIB
7838 ## CC just makes a GrossModule.
7839 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7840 reload_cmds='$CC -r -o $output$reload_objs'
7841 hardcode_direct=no
7842 ;;
7843 motorola)
7844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7845 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7846 ;;
7847 esac
7848 runpath_var='LD_RUN_PATH'
7849 hardcode_shlibpath_var=no
7850 ;;
7852 sysv4.3*)
7853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7854 hardcode_shlibpath_var=no
7855 export_dynamic_flag_spec='-Bexport'
7856 ;;
7858 sysv4*MP*)
7859 if test -d /usr/nec; then
7860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7861 hardcode_shlibpath_var=no
7862 runpath_var=LD_RUN_PATH
7863 hardcode_runpath_var=yes
7864 ld_shlibs=yes
7865 fi
7866 ;;
7868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7869 no_undefined_flag='${wl}-z,text'
7870 archive_cmds_need_lc=no
7871 hardcode_shlibpath_var=no
7872 runpath_var='LD_RUN_PATH'
7874 if test "$GCC" = yes; then
7875 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7876 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7877 else
7878 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7879 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7880 fi
7881 ;;
7883 sysv5* | sco3.2v5* | sco5v6*)
7884 # Note: We can NOT use -z defs as we might desire, because we do not
7885 # link with -lc, and that would cause any symbols used from libc to
7886 # always be unresolved, which means just about no library would
7887 # ever link correctly. If we're not using GNU ld we use -z text
7888 # though, which does catch some bad symbols but isn't as heavy-handed
7889 # as -z defs.
7890 no_undefined_flag='${wl}-z,text'
7891 allow_undefined_flag='${wl}-z,nodefs'
7892 archive_cmds_need_lc=no
7893 hardcode_shlibpath_var=no
7894 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7895 hardcode_libdir_separator=':'
7896 link_all_deplibs=yes
7897 export_dynamic_flag_spec='${wl}-Bexport'
7898 runpath_var='LD_RUN_PATH'
7900 if test "$GCC" = yes; then
7901 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7902 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7903 else
7904 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7905 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7906 fi
7907 ;;
7909 uts4*)
7910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7911 hardcode_libdir_flag_spec='-L$libdir'
7912 hardcode_shlibpath_var=no
7913 ;;
7915 *)
7916 ld_shlibs=no
7917 ;;
7918 esac
7919 fi
7921 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7922 echo "${ECHO_T}$ld_shlibs" >&6
7923 test "$ld_shlibs" = no && can_build_shared=no
7926 # Do we need to explicitly link libc?
7928 case "x$archive_cmds_need_lc" in
7929 x|xyes)
7930 # Assume -lc should be added
7931 archive_cmds_need_lc=yes
7933 if test "$enable_shared" = yes && test "$GCC" = yes; then
7934 case $archive_cmds in
7935 *'~'*)
7936 # FIXME: we may have to deal with multi-command sequences.
7937 ;;
7938 '$CC '*)
7939 # Test whether the compiler implicitly links with -lc since on some
7940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7941 # to ld, don't add -lc before -lgcc.
7942 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7943 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7944 $rm conftest*
7945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } 2>conftest.err; then
7952 soname=conftest
7953 lib=conftest
7954 libobjs=conftest.$ac_objext
7955 deplibs=
7956 wl=$lt_prog_compiler_wl
7957 pic_flag=$lt_prog_compiler_pic
7958 compiler_flags=-v
7959 linker_flags=-v
7960 verstring=
7961 output_objdir=.
7962 libname=conftest
7963 lt_save_allow_undefined_flag=$allow_undefined_flag
7964 allow_undefined_flag=
7965 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7966 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }
7970 then
7971 archive_cmds_need_lc=no
7972 else
7973 archive_cmds_need_lc=yes
7974 fi
7975 allow_undefined_flag=$lt_save_allow_undefined_flag
7976 else
7977 cat conftest.err 1>&5
7978 fi
7979 $rm conftest*
7980 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7981 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7982 ;;
7983 esac
7984 fi
7985 ;;
7986 esac
7988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7990 library_names_spec=
7991 libname_spec='lib$name'
7992 soname_spec=
7993 shrext_cmds=".so"
7994 postinstall_cmds=
7995 postuninstall_cmds=
7996 finish_cmds=
7997 finish_eval=
7998 shlibpath_var=
7999 shlibpath_overrides_runpath=unknown
8000 version_type=none
8001 dynamic_linker="$host_os ld.so"
8002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8003 if test "$GCC" = yes; then
8004 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8005 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8006 # if the path contains ";" then we assume it to be the separator
8007 # otherwise default to the standard path separator (i.e. ":") - it is
8008 # assumed that no part of a normal pathname contains ";" but that should
8009 # okay in the real world where ";" in dirpaths is itself problematic.
8010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8011 else
8012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8013 fi
8014 else
8015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8016 fi
8017 need_lib_prefix=unknown
8018 hardcode_into_libs=no
8020 # when you set need_version to no, make sure it does not cause -set_version
8021 # flags to be left without arguments
8022 need_version=unknown
8024 case $host_os in
8025 aix3*)
8026 version_type=linux
8027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8028 shlibpath_var=LIBPATH
8030 # AIX 3 has no versioning support, so we append a major version to the name.
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 ;;
8034 aix4* | aix5*)
8035 version_type=linux
8036 need_lib_prefix=no
8037 need_version=no
8038 hardcode_into_libs=yes
8039 if test "$host_cpu" = ia64; then
8040 # AIX 5 supports IA64
8041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8042 shlibpath_var=LD_LIBRARY_PATH
8043 else
8044 # With GCC up to 2.95.x, collect2 would create an import file
8045 # for dependence libraries. The import file would start with
8046 # the line `#! .'. This would cause the generated library to
8047 # depend on `.', always an invalid library. This was fixed in
8048 # development snapshots of GCC prior to 3.0.
8049 case $host_os in
8050 aix4 | aix4.[01] | aix4.[01].*)
8051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8052 echo ' yes '
8053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8055 else
8056 can_build_shared=no
8057 fi
8058 ;;
8059 esac
8060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8061 # soname into executable. Probably we can add versioning support to
8062 # collect2, so additional links can be useful in future.
8063 if test "$aix_use_runtimelinking" = yes; then
8064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8065 # instead of lib<name>.a to let people know that these are not
8066 # typical AIX shared libraries.
8067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8068 else
8069 # We preserve .a as extension for shared libraries through AIX4.2
8070 # and later when we are not doing run time linking.
8071 library_names_spec='${libname}${release}.a $libname.a'
8072 soname_spec='${libname}${release}${shared_ext}$major'
8073 fi
8074 shlibpath_var=LIBPATH
8075 fi
8076 ;;
8078 amigaos*)
8079 library_names_spec='$libname.ixlibrary $libname.a'
8080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8081 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'
8082 ;;
8084 beos*)
8085 library_names_spec='${libname}${shared_ext}'
8086 dynamic_linker="$host_os ld.so"
8087 shlibpath_var=LIBRARY_PATH
8088 ;;
8090 bsdi[45]*)
8091 version_type=linux
8092 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8096 shlibpath_var=LD_LIBRARY_PATH
8097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8099 # the default ld.so.conf also contains /usr/contrib/lib and
8100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8101 # libtool to hard-code these into programs
8102 ;;
8104 cygwin* | mingw* | pw32*)
8105 version_type=windows
8106 shrext_cmds=".dll"
8107 need_version=no
8108 need_lib_prefix=no
8110 case $GCC,$host_os in
8111 yes,cygwin* | yes,mingw* | yes,pw32*)
8112 library_names_spec='$libname.dll.a'
8113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8114 postinstall_cmds='base_file=`basename \${file}`~
8115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8116 dldir=$destdir/`dirname \$dlpath`~
8117 test -d \$dldir || mkdir -p \$dldir~
8118 $install_prog $dir/$dlname \$dldir/$dlname~
8119 chmod a+x \$dldir/$dlname'
8120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8121 dlpath=$dir/\$dldll~
8122 $rm \$dlpath'
8123 shlibpath_overrides_runpath=yes
8125 case $host_os in
8126 cygwin*)
8127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8130 ;;
8131 mingw*)
8132 # MinGW DLLs use traditional 'lib' prefix
8133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8136 # It is most probably a Windows format PATH printed by
8137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8138 # path with ; separators, and with drive letters. We can handle the
8139 # drive letters (cygwin fileutils understands them), so leave them,
8140 # especially as we might pass files found there to a mingw objdump,
8141 # which wouldn't understand a cygwinified path. Ahh.
8142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8143 else
8144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8145 fi
8146 ;;
8147 pw32*)
8148 # pw32 DLLs use 'pw' prefix rather than 'lib'
8149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8150 ;;
8151 esac
8152 ;;
8154 *)
8155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8156 ;;
8157 esac
8158 dynamic_linker='Win32 ld.exe'
8159 # FIXME: first we should search . and the directory the executable is in
8160 shlibpath_var=PATH
8161 ;;
8163 darwin* | rhapsody*)
8164 dynamic_linker="$host_os dyld"
8165 version_type=darwin
8166 need_lib_prefix=no
8167 need_version=no
8168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8169 soname_spec='${libname}${release}${major}$shared_ext'
8170 shlibpath_overrides_runpath=yes
8171 shlibpath_var=DYLD_LIBRARY_PATH
8172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8174 if test "$GCC" = yes; then
8175 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"`
8176 else
8177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8178 fi
8179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8180 ;;
8182 dgux*)
8183 version_type=linux
8184 need_lib_prefix=no
8185 need_version=no
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8187 soname_spec='${libname}${release}${shared_ext}$major'
8188 shlibpath_var=LD_LIBRARY_PATH
8189 ;;
8191 freebsd1*)
8192 dynamic_linker=no
8193 ;;
8195 kfreebsd*-gnu)
8196 version_type=linux
8197 need_lib_prefix=no
8198 need_version=no
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200 soname_spec='${libname}${release}${shared_ext}$major'
8201 shlibpath_var=LD_LIBRARY_PATH
8202 shlibpath_overrides_runpath=no
8203 hardcode_into_libs=yes
8204 dynamic_linker='GNU ld.so'
8205 ;;
8207 freebsd* | dragonfly*)
8208 # DragonFly does not have aout. When/if they implement a new
8209 # versioning mechanism, adjust this.
8210 if test -x /usr/bin/objformat; then
8211 objformat=`/usr/bin/objformat`
8212 else
8213 case $host_os in
8214 freebsd[123]*) objformat=aout ;;
8215 *) objformat=elf ;;
8216 esac
8217 fi
8218 version_type=freebsd-$objformat
8219 case $version_type in
8220 freebsd-elf*)
8221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8222 need_version=no
8223 need_lib_prefix=no
8224 ;;
8225 freebsd-*)
8226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8227 need_version=yes
8228 ;;
8229 esac
8230 shlibpath_var=LD_LIBRARY_PATH
8231 case $host_os in
8232 freebsd2*)
8233 shlibpath_overrides_runpath=yes
8234 ;;
8235 freebsd3.[01]* | freebsdelf3.[01]*)
8236 shlibpath_overrides_runpath=yes
8237 hardcode_into_libs=yes
8238 ;;
8239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8241 shlibpath_overrides_runpath=no
8242 hardcode_into_libs=yes
8243 ;;
8244 freebsd*) # from 4.6 on
8245 shlibpath_overrides_runpath=yes
8246 hardcode_into_libs=yes
8247 ;;
8248 esac
8249 ;;
8251 gnu*)
8252 version_type=linux
8253 need_lib_prefix=no
8254 need_version=no
8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8256 soname_spec='${libname}${release}${shared_ext}$major'
8257 shlibpath_var=LD_LIBRARY_PATH
8258 hardcode_into_libs=yes
8259 ;;
8261 hpux9* | hpux10* | hpux11*)
8262 # Give a soname corresponding to the major version so that dld.sl refuses to
8263 # link against other versions.
8264 version_type=sunos
8265 need_lib_prefix=no
8266 need_version=no
8267 case $host_cpu in
8268 ia64*)
8269 shrext_cmds='.so'
8270 hardcode_into_libs=yes
8271 dynamic_linker="$host_os dld.so"
8272 shlibpath_var=LD_LIBRARY_PATH
8273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
8276 if test "X$HPUX_IA64_MODE" = X32; then
8277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8278 else
8279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8280 fi
8281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8282 ;;
8283 hppa*64*)
8284 shrext_cmds='.sl'
8285 hardcode_into_libs=yes
8286 dynamic_linker="$host_os dld.sl"
8287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290 soname_spec='${libname}${release}${shared_ext}$major'
8291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8293 ;;
8294 *)
8295 shrext_cmds='.sl'
8296 dynamic_linker="$host_os dld.sl"
8297 shlibpath_var=SHLIB_PATH
8298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 ;;
8302 esac
8303 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8304 postinstall_cmds='chmod 555 $lib'
8305 ;;
8307 interix3*)
8308 version_type=linux
8309 need_lib_prefix=no
8310 need_version=no
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
8313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8314 shlibpath_var=LD_LIBRARY_PATH
8315 shlibpath_overrides_runpath=no
8316 hardcode_into_libs=yes
8317 ;;
8319 irix5* | irix6* | nonstopux*)
8320 case $host_os in
8321 nonstopux*) version_type=nonstopux ;;
8322 *)
8323 if test "$lt_cv_prog_gnu_ld" = yes; then
8324 version_type=linux
8325 else
8326 version_type=irix
8327 fi ;;
8328 esac
8329 need_lib_prefix=no
8330 need_version=no
8331 soname_spec='${libname}${release}${shared_ext}$major'
8332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8333 case $host_os in
8334 irix5* | nonstopux*)
8335 libsuff= shlibsuff=
8336 ;;
8337 *)
8338 case $LD in # libtool.m4 will add one of these switches to LD
8339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8340 libsuff= shlibsuff= libmagic=32-bit;;
8341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8342 libsuff=32 shlibsuff=N32 libmagic=N32;;
8343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8345 *) libsuff= shlibsuff= libmagic=never-match;;
8346 esac
8347 ;;
8348 esac
8349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8350 shlibpath_overrides_runpath=no
8351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8353 hardcode_into_libs=yes
8354 ;;
8356 # No shared lib support for Linux oldld, aout, or coff.
8357 linux*oldld* | linux*aout* | linux*coff*)
8358 dynamic_linker=no
8359 ;;
8361 # This must be Linux ELF.
8362 linux*)
8363 version_type=linux
8364 need_lib_prefix=no
8365 need_version=no
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 shlibpath_overrides_runpath=no
8371 # This implies no fast_install, which is unacceptable.
8372 # Some rework will be needed to allow for fast_install
8373 # before this can be enabled.
8374 hardcode_into_libs=yes
8376 # Append ld.so.conf contents to the search path
8377 if test -f /etc/ld.so.conf; then
8378 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8379 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8380 fi
8382 # We used to test for /lib/ld.so.1 and disable shared libraries on
8383 # powerpc, because MkLinux only supported shared libraries with the
8384 # GNU dynamic linker. Since this was broken with cross compilers,
8385 # most powerpc-linux boxes support dynamic linking these days and
8386 # people can always --disable-shared, the test was removed, and we
8387 # assume the GNU/Linux dynamic linker is in use.
8388 dynamic_linker='GNU/Linux ld.so'
8389 ;;
8391 netbsdelf*-gnu)
8392 version_type=linux
8393 need_lib_prefix=no
8394 need_version=no
8395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8396 soname_spec='${libname}${release}${shared_ext}$major'
8397 shlibpath_var=LD_LIBRARY_PATH
8398 shlibpath_overrides_runpath=no
8399 hardcode_into_libs=yes
8400 dynamic_linker='NetBSD ld.elf_so'
8401 ;;
8403 knetbsd*-gnu)
8404 version_type=linux
8405 need_lib_prefix=no
8406 need_version=no
8407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8408 soname_spec='${libname}${release}${shared_ext}$major'
8409 shlibpath_var=LD_LIBRARY_PATH
8410 shlibpath_overrides_runpath=no
8411 hardcode_into_libs=yes
8412 dynamic_linker='GNU ld.so'
8413 ;;
8415 netbsd*)
8416 version_type=sunos
8417 need_lib_prefix=no
8418 need_version=no
8419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8422 dynamic_linker='NetBSD (a.out) ld.so'
8423 else
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 dynamic_linker='NetBSD ld.elf_so'
8427 fi
8428 shlibpath_var=LD_LIBRARY_PATH
8429 shlibpath_overrides_runpath=yes
8430 hardcode_into_libs=yes
8431 ;;
8433 newsos6)
8434 version_type=linux
8435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8436 shlibpath_var=LD_LIBRARY_PATH
8437 shlibpath_overrides_runpath=yes
8438 ;;
8440 nto-qnx*)
8441 version_type=linux
8442 need_lib_prefix=no
8443 need_version=no
8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445 soname_spec='${libname}${release}${shared_ext}$major'
8446 shlibpath_var=LD_LIBRARY_PATH
8447 shlibpath_overrides_runpath=yes
8448 ;;
8450 openbsd*)
8451 version_type=sunos
8452 sys_lib_dlsearch_path_spec="/usr/lib"
8453 need_lib_prefix=no
8454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8455 case $host_os in
8456 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8457 *) need_version=no ;;
8458 esac
8459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8461 shlibpath_var=LD_LIBRARY_PATH
8462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8463 case $host_os in
8464 openbsd2.[89] | openbsd2.[89].*)
8465 shlibpath_overrides_runpath=no
8466 ;;
8467 *)
8468 shlibpath_overrides_runpath=yes
8469 ;;
8470 esac
8471 else
8472 shlibpath_overrides_runpath=yes
8473 fi
8474 ;;
8476 os2*)
8477 libname_spec='$name'
8478 shrext_cmds=".dll"
8479 need_lib_prefix=no
8480 library_names_spec='$libname${shared_ext} $libname.a'
8481 dynamic_linker='OS/2 ld.exe'
8482 shlibpath_var=LIBPATH
8483 ;;
8485 osf3* | osf4* | osf5*)
8486 version_type=osf
8487 need_lib_prefix=no
8488 need_version=no
8489 soname_spec='${libname}${release}${shared_ext}$major'
8490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8491 shlibpath_var=LD_LIBRARY_PATH
8492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8494 ;;
8496 solaris*)
8497 version_type=linux
8498 need_lib_prefix=no
8499 need_version=no
8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8501 soname_spec='${libname}${release}${shared_ext}$major'
8502 shlibpath_var=LD_LIBRARY_PATH
8503 shlibpath_overrides_runpath=yes
8504 hardcode_into_libs=yes
8505 # ldd complains unless libraries are executable
8506 postinstall_cmds='chmod +x $lib'
8507 ;;
8509 sunos4*)
8510 version_type=sunos
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8513 shlibpath_var=LD_LIBRARY_PATH
8514 shlibpath_overrides_runpath=yes
8515 if test "$with_gnu_ld" = yes; then
8516 need_lib_prefix=no
8517 fi
8518 need_version=yes
8519 ;;
8521 sysv4 | sysv4.3*)
8522 version_type=linux
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8524 soname_spec='${libname}${release}${shared_ext}$major'
8525 shlibpath_var=LD_LIBRARY_PATH
8526 case $host_vendor in
8527 sni)
8528 shlibpath_overrides_runpath=no
8529 need_lib_prefix=no
8530 export_dynamic_flag_spec='${wl}-Blargedynsym'
8531 runpath_var=LD_RUN_PATH
8532 ;;
8533 siemens)
8534 need_lib_prefix=no
8535 ;;
8536 motorola)
8537 need_lib_prefix=no
8538 need_version=no
8539 shlibpath_overrides_runpath=no
8540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8541 ;;
8542 esac
8543 ;;
8545 sysv4*MP*)
8546 if test -d /usr/nec ;then
8547 version_type=linux
8548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8549 soname_spec='$libname${shared_ext}.$major'
8550 shlibpath_var=LD_LIBRARY_PATH
8551 fi
8552 ;;
8554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8555 version_type=freebsd-elf
8556 need_lib_prefix=no
8557 need_version=no
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8559 soname_spec='${libname}${release}${shared_ext}$major'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 hardcode_into_libs=yes
8562 if test "$with_gnu_ld" = yes; then
8563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8564 shlibpath_overrides_runpath=no
8565 else
8566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8567 shlibpath_overrides_runpath=yes
8568 case $host_os in
8569 sco3.2v5*)
8570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8571 ;;
8572 esac
8573 fi
8574 sys_lib_dlsearch_path_spec='/usr/lib'
8575 ;;
8577 uts4*)
8578 version_type=linux
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580 soname_spec='${libname}${release}${shared_ext}$major'
8581 shlibpath_var=LD_LIBRARY_PATH
8582 ;;
8584 *)
8585 dynamic_linker=no
8586 ;;
8587 esac
8588 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8589 echo "${ECHO_T}$dynamic_linker" >&6
8590 test "$dynamic_linker" = no && can_build_shared=no
8592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8593 if test "$GCC" = yes; then
8594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8595 fi
8597 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8599 hardcode_action=
8600 if test -n "$hardcode_libdir_flag_spec" || \
8601 test -n "$runpath_var" || \
8602 test "X$hardcode_automatic" = "Xyes" ; then
8604 # We can hardcode non-existant directories.
8605 if test "$hardcode_direct" != no &&
8606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8607 # have to relink, otherwise we might link with an installed library
8608 # when we should be linking with a yet-to-be-installed one
8609 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8610 test "$hardcode_minus_L" != no; then
8611 # Linking always hardcodes the temporary library directory.
8612 hardcode_action=relink
8613 else
8614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8615 hardcode_action=immediate
8616 fi
8617 else
8618 # We cannot hardcode anything, or else we can only hardcode existing
8619 # directories.
8620 hardcode_action=unsupported
8621 fi
8622 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8623 echo "${ECHO_T}$hardcode_action" >&6
8625 if test "$hardcode_action" = relink; then
8626 # Fast installation is not supported
8627 enable_fast_install=no
8628 elif test "$shlibpath_overrides_runpath" = yes ||
8629 test "$enable_shared" = no; then
8630 # Fast installation is not necessary
8631 enable_fast_install=needless
8632 fi
8634 striplib=
8635 old_striplib=
8636 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8637 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8641 echo "$as_me:$LINENO: result: yes" >&5
8642 echo "${ECHO_T}yes" >&6
8643 else
8644 # FIXME - insert some real tests, host_os isn't really good enough
8645 case $host_os in
8646 darwin*)
8647 if test -n "$STRIP" ; then
8648 striplib="$STRIP -x"
8649 echo "$as_me:$LINENO: result: yes" >&5
8650 echo "${ECHO_T}yes" >&6
8651 else
8652 echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6
8654 fi
8655 ;;
8656 *)
8657 echo "$as_me:$LINENO: result: no" >&5
8658 echo "${ECHO_T}no" >&6
8659 ;;
8660 esac
8661 fi
8663 if test "x$enable_dlopen" != xyes; then
8664 enable_dlopen=unknown
8665 enable_dlopen_self=unknown
8666 enable_dlopen_self_static=unknown
8667 else
8668 lt_cv_dlopen=no
8669 lt_cv_dlopen_libs=
8671 case $host_os in
8672 beos*)
8673 lt_cv_dlopen="load_add_on"
8674 lt_cv_dlopen_libs=
8675 lt_cv_dlopen_self=yes
8676 ;;
8678 mingw* | pw32*)
8679 lt_cv_dlopen="LoadLibrary"
8680 lt_cv_dlopen_libs=
8681 ;;
8683 cygwin*)
8684 lt_cv_dlopen="dlopen"
8685 lt_cv_dlopen_libs=
8686 ;;
8688 darwin*)
8689 # if libdl is installed we need to link against it
8690 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695 ac_check_lib_save_LIBS=$LIBS
8696 LIBS="-ldl $LIBS"
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8704 /* Override any gcc2 internal prototype to avoid an error. */
8705 #ifdef __cplusplus
8706 extern "C"
8707 #endif
8708 /* We use char because int might match the return type of a gcc2
8709 builtin and then its argument prototype would still apply. */
8710 char dlopen ();
8711 int
8712 main ()
8714 dlopen ();
8716 return 0;
8718 _ACEOF
8719 rm -f conftest.$ac_objext conftest$ac_exeext
8720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8721 (eval $ac_link) 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_lib_dl_dlopen=yes
8741 else
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_lib_dl_dlopen=no
8746 fi
8747 rm -f conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LIBS=$ac_check_lib_save_LIBS
8750 fi
8751 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8752 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8753 if test $ac_cv_lib_dl_dlopen = yes; then
8754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8755 else
8757 lt_cv_dlopen="dyld"
8758 lt_cv_dlopen_libs=
8759 lt_cv_dlopen_self=yes
8761 fi
8763 ;;
8765 *)
8766 echo "$as_me:$LINENO: checking for shl_load" >&5
8767 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8768 if test "${ac_cv_func_shl_load+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8779 #define shl_load innocuous_shl_load
8781 /* System header to define __stub macros and hopefully few prototypes,
8782 which can conflict with char shl_load (); below.
8783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8784 <limits.h> exists even on freestanding compilers. */
8786 #ifdef __STDC__
8787 # include <limits.h>
8788 #else
8789 # include <assert.h>
8790 #endif
8792 #undef shl_load
8794 /* Override any gcc2 internal prototype to avoid an error. */
8795 #ifdef __cplusplus
8796 extern "C"
8798 #endif
8799 /* We use char because int might match the return type of a gcc2
8800 builtin and then its argument prototype would still apply. */
8801 char shl_load ();
8802 /* The GNU C library defines this for functions which it implements
8803 to always fail with ENOSYS. Some functions are actually named
8804 something starting with __ and the normal name is an alias. */
8805 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8806 choke me
8807 #else
8808 char (*f) () = shl_load;
8809 #endif
8810 #ifdef __cplusplus
8812 #endif
8814 int
8815 main ()
8817 return f != shl_load;
8819 return 0;
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_func_shl_load=yes
8844 else
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 ac_cv_func_shl_load=no
8849 fi
8850 rm -f conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 fi
8853 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8854 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8855 if test $ac_cv_func_shl_load = yes; then
8856 lt_cv_dlopen="shl_load"
8857 else
8858 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8859 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8860 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 ac_check_lib_save_LIBS=$LIBS
8864 LIBS="-ldld $LIBS"
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8872 /* Override any gcc2 internal prototype to avoid an error. */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8878 char shl_load ();
8879 int
8880 main ()
8882 shl_load ();
8884 return 0;
8886 _ACEOF
8887 rm -f conftest.$ac_objext conftest$ac_exeext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>conftest.er1
8890 ac_status=$?
8891 grep -v '^ *+' conftest.er1 >conftest.err
8892 rm -f conftest.er1
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_lib_dld_shl_load=yes
8909 else
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_cv_lib_dld_shl_load=no
8914 fi
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 LIBS=$ac_check_lib_save_LIBS
8918 fi
8919 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8920 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8921 if test $ac_cv_lib_dld_shl_load = yes; then
8922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8923 else
8924 echo "$as_me:$LINENO: checking for dlopen" >&5
8925 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8926 if test "${ac_cv_func_dlopen+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929 cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8937 #define dlopen innocuous_dlopen
8939 /* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char dlopen (); below.
8941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942 <limits.h> exists even on freestanding compilers. */
8944 #ifdef __STDC__
8945 # include <limits.h>
8946 #else
8947 # include <assert.h>
8948 #endif
8950 #undef dlopen
8952 /* Override any gcc2 internal prototype to avoid an error. */
8953 #ifdef __cplusplus
8954 extern "C"
8956 #endif
8957 /* We use char because int might match the return type of a gcc2
8958 builtin and then its argument prototype would still apply. */
8959 char dlopen ();
8960 /* The GNU C library defines this for functions which it implements
8961 to always fail with ENOSYS. Some functions are actually named
8962 something starting with __ and the normal name is an alias. */
8963 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8964 choke me
8965 #else
8966 char (*f) () = dlopen;
8967 #endif
8968 #ifdef __cplusplus
8970 #endif
8972 int
8973 main ()
8975 return f != dlopen;
8977 return 0;
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest$ac_exeext'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 ac_cv_func_dlopen=yes
9002 else
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 ac_cv_func_dlopen=no
9007 fi
9008 rm -f conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
9010 fi
9011 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9012 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9013 if test $ac_cv_func_dlopen = yes; then
9014 lt_cv_dlopen="dlopen"
9015 else
9016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9017 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021 ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-ldl $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9030 /* Override any gcc2 internal prototype to avoid an error. */
9031 #ifdef __cplusplus
9032 extern "C"
9033 #endif
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9036 char dlopen ();
9037 int
9038 main ()
9040 dlopen ();
9042 return 0;
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_dl_dlopen=yes
9067 else
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_lib_dl_dlopen=no
9072 fi
9073 rm -f conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075 LIBS=$ac_check_lib_save_LIBS
9076 fi
9077 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9079 if test $ac_cv_lib_dl_dlopen = yes; then
9080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9081 else
9082 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9083 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9084 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 ac_check_lib_save_LIBS=$LIBS
9088 LIBS="-lsvld $LIBS"
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9096 /* Override any gcc2 internal prototype to avoid an error. */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 /* We use char because int might match the return type of a gcc2
9101 builtin and then its argument prototype would still apply. */
9102 char dlopen ();
9103 int
9104 main ()
9106 dlopen ();
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; } &&
9126 { ac_try='test -s conftest$ac_exeext'
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; }; then
9132 ac_cv_lib_svld_dlopen=yes
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_cv_lib_svld_dlopen=no
9138 fi
9139 rm -f conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141 LIBS=$ac_check_lib_save_LIBS
9142 fi
9143 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9144 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9145 if test $ac_cv_lib_svld_dlopen = yes; then
9146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9147 else
9148 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9149 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9150 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 ac_check_lib_save_LIBS=$LIBS
9154 LIBS="-ldld $LIBS"
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9162 /* Override any gcc2 internal prototype to avoid an error. */
9163 #ifdef __cplusplus
9164 extern "C"
9165 #endif
9166 /* We use char because int might match the return type of a gcc2
9167 builtin and then its argument prototype would still apply. */
9168 char dld_link ();
9169 int
9170 main ()
9172 dld_link ();
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest$ac_exeext'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 (eval $ac_try) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_cv_lib_dld_dld_link=yes
9199 else
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9203 ac_cv_lib_dld_dld_link=no
9204 fi
9205 rm -f conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
9207 LIBS=$ac_check_lib_save_LIBS
9208 fi
9209 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9210 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9211 if test $ac_cv_lib_dld_dld_link = yes; then
9212 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9213 fi
9216 fi
9219 fi
9222 fi
9225 fi
9228 fi
9230 ;;
9231 esac
9233 if test "x$lt_cv_dlopen" != xno; then
9234 enable_dlopen=yes
9235 else
9236 enable_dlopen=no
9237 fi
9239 case $lt_cv_dlopen in
9240 dlopen)
9241 save_CPPFLAGS="$CPPFLAGS"
9242 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9244 save_LDFLAGS="$LDFLAGS"
9245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9247 save_LIBS="$LIBS"
9248 LIBS="$lt_cv_dlopen_libs $LIBS"
9250 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9251 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9252 if test "${lt_cv_dlopen_self+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255 if test "$cross_compiling" = yes; then :
9256 lt_cv_dlopen_self=cross
9257 else
9258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9259 lt_status=$lt_dlunknown
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9261 "configure"
9262 #include "confdefs.h"
9264 #if HAVE_DLFCN_H
9265 #include <dlfcn.h>
9266 #endif
9268 #include <stdio.h>
9270 #ifdef RTLD_GLOBAL
9271 # define LT_DLGLOBAL RTLD_GLOBAL
9272 #else
9273 # ifdef DL_GLOBAL
9274 # define LT_DLGLOBAL DL_GLOBAL
9275 # else
9276 # define LT_DLGLOBAL 0
9277 # endif
9278 #endif
9280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9281 find out it does not work in some platform. */
9282 #ifndef LT_DLLAZY_OR_NOW
9283 # ifdef RTLD_LAZY
9284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9285 # else
9286 # ifdef DL_LAZY
9287 # define LT_DLLAZY_OR_NOW DL_LAZY
9288 # else
9289 # ifdef RTLD_NOW
9290 # define LT_DLLAZY_OR_NOW RTLD_NOW
9291 # else
9292 # ifdef DL_NOW
9293 # define LT_DLLAZY_OR_NOW DL_NOW
9294 # else
9295 # define LT_DLLAZY_OR_NOW 0
9296 # endif
9297 # endif
9298 # endif
9299 # endif
9300 #endif
9302 #ifdef __cplusplus
9303 extern "C" void exit (int);
9304 #endif
9306 void fnord() { int i=42;}
9307 int main ()
9309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9310 int status = $lt_dlunknown;
9312 if (self)
9314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9315 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9316 /* dlclose (self); */
9318 else
9319 puts (dlerror ());
9321 exit (status);
9323 EOF
9324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9325 (eval $ac_link) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9329 (./conftest; exit; ) >&5 2>/dev/null
9330 lt_status=$?
9331 case x$lt_status in
9332 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9333 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9334 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9335 esac
9336 else :
9337 # compilation failed
9338 lt_cv_dlopen_self=no
9339 fi
9340 fi
9341 rm -fr conftest*
9344 fi
9345 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9346 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9348 if test "x$lt_cv_dlopen_self" = xyes; then
9349 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9350 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9351 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9352 if test "${lt_cv_dlopen_self_static+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355 if test "$cross_compiling" = yes; then :
9356 lt_cv_dlopen_self_static=cross
9357 else
9358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9359 lt_status=$lt_dlunknown
9360 cat > conftest.$ac_ext <<EOF
9361 #line 9361 "configure"
9362 #include "confdefs.h"
9364 #if HAVE_DLFCN_H
9365 #include <dlfcn.h>
9366 #endif
9368 #include <stdio.h>
9370 #ifdef RTLD_GLOBAL
9371 # define LT_DLGLOBAL RTLD_GLOBAL
9372 #else
9373 # ifdef DL_GLOBAL
9374 # define LT_DLGLOBAL DL_GLOBAL
9375 # else
9376 # define LT_DLGLOBAL 0
9377 # endif
9378 #endif
9380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9381 find out it does not work in some platform. */
9382 #ifndef LT_DLLAZY_OR_NOW
9383 # ifdef RTLD_LAZY
9384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9385 # else
9386 # ifdef DL_LAZY
9387 # define LT_DLLAZY_OR_NOW DL_LAZY
9388 # else
9389 # ifdef RTLD_NOW
9390 # define LT_DLLAZY_OR_NOW RTLD_NOW
9391 # else
9392 # ifdef DL_NOW
9393 # define LT_DLLAZY_OR_NOW DL_NOW
9394 # else
9395 # define LT_DLLAZY_OR_NOW 0
9396 # endif
9397 # endif
9398 # endif
9399 # endif
9400 #endif
9402 #ifdef __cplusplus
9403 extern "C" void exit (int);
9404 #endif
9406 void fnord() { int i=42;}
9407 int main ()
9409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9410 int status = $lt_dlunknown;
9412 if (self)
9414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9415 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9416 /* dlclose (self); */
9418 else
9419 puts (dlerror ());
9421 exit (status);
9423 EOF
9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425 (eval $ac_link) 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9429 (./conftest; exit; ) >&5 2>/dev/null
9430 lt_status=$?
9431 case x$lt_status in
9432 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9433 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9434 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9435 esac
9436 else :
9437 # compilation failed
9438 lt_cv_dlopen_self_static=no
9439 fi
9440 fi
9441 rm -fr conftest*
9444 fi
9445 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9446 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9447 fi
9449 CPPFLAGS="$save_CPPFLAGS"
9450 LDFLAGS="$save_LDFLAGS"
9451 LIBS="$save_LIBS"
9452 ;;
9453 esac
9455 case $lt_cv_dlopen_self in
9456 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9457 *) enable_dlopen_self=unknown ;;
9458 esac
9460 case $lt_cv_dlopen_self_static in
9461 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9462 *) enable_dlopen_self_static=unknown ;;
9463 esac
9464 fi
9467 # Report which library types will actually be built
9468 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9469 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9470 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9471 echo "${ECHO_T}$can_build_shared" >&6
9473 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9474 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9475 test "$can_build_shared" = "no" && enable_shared=no
9477 # On AIX, shared libraries and static libraries use the same namespace, and
9478 # are all built from PIC.
9479 case $host_os in
9480 aix3*)
9481 test "$enable_shared" = yes && enable_static=no
9482 if test -n "$RANLIB"; then
9483 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9484 postinstall_cmds='$RANLIB $lib'
9485 fi
9486 ;;
9488 aix4* | aix5*)
9489 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9490 test "$enable_shared" = yes && enable_static=no
9491 fi
9492 ;;
9493 esac
9494 echo "$as_me:$LINENO: result: $enable_shared" >&5
9495 echo "${ECHO_T}$enable_shared" >&6
9497 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9498 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9499 # Make sure either enable_shared or enable_static is yes.
9500 test "$enable_shared" = yes || enable_static=yes
9501 echo "$as_me:$LINENO: result: $enable_static" >&5
9502 echo "${ECHO_T}$enable_static" >&6
9504 # The else clause should only fire when bootstrapping the
9505 # libtool distribution, otherwise you forgot to ship ltmain.sh
9506 # with your package, and you will get complaints that there are
9507 # no rules to generate ltmain.sh.
9508 if test -f "$ltmain"; then
9509 # See if we are running on zsh, and set the options which allow our commands through
9510 # without removal of \ escapes.
9511 if test -n "${ZSH_VERSION+set}" ; then
9512 setopt NO_GLOB_SUBST
9513 fi
9514 # Now quote all the things that may contain metacharacters while being
9515 # careful not to overquote the AC_SUBSTed values. We take copies of the
9516 # variables and quote the copies for generation of the libtool script.
9517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9518 SED SHELL STRIP \
9519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9521 deplibs_check_method reload_flag reload_cmds need_locks \
9522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9523 lt_cv_sys_global_symbol_to_c_name_address \
9524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9525 old_postinstall_cmds old_postuninstall_cmds \
9526 compiler \
9527 CC \
9528 LD \
9529 lt_prog_compiler_wl \
9530 lt_prog_compiler_pic \
9531 lt_prog_compiler_static \
9532 lt_prog_compiler_no_builtin_flag \
9533 export_dynamic_flag_spec \
9534 thread_safe_flag_spec \
9535 whole_archive_flag_spec \
9536 enable_shared_with_static_runtimes \
9537 old_archive_cmds \
9538 old_archive_from_new_cmds \
9539 predep_objects \
9540 postdep_objects \
9541 predeps \
9542 postdeps \
9543 compiler_lib_search_path \
9544 archive_cmds \
9545 archive_expsym_cmds \
9546 postinstall_cmds \
9547 postuninstall_cmds \
9548 old_archive_from_expsyms_cmds \
9549 allow_undefined_flag \
9550 no_undefined_flag \
9551 export_symbols_cmds \
9552 hardcode_libdir_flag_spec \
9553 hardcode_libdir_flag_spec_ld \
9554 hardcode_libdir_separator \
9555 hardcode_automatic \
9556 module_cmds \
9557 module_expsym_cmds \
9558 lt_cv_prog_compiler_c_o \
9559 exclude_expsyms \
9560 include_expsyms; do
9562 case $var in
9563 old_archive_cmds | \
9564 old_archive_from_new_cmds | \
9565 archive_cmds | \
9566 archive_expsym_cmds | \
9567 module_cmds | \
9568 module_expsym_cmds | \
9569 old_archive_from_expsyms_cmds | \
9570 export_symbols_cmds | \
9571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9572 postinstall_cmds | postuninstall_cmds | \
9573 old_postinstall_cmds | old_postuninstall_cmds | \
9574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9575 # Double-quote double-evaled strings.
9576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9577 ;;
9578 *)
9579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9580 ;;
9581 esac
9582 done
9584 case $lt_echo in
9585 *'\$0 --fallback-echo"')
9586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9587 ;;
9588 esac
9590 cfgfile="${ofile}T"
9591 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9592 $rm -f "$cfgfile"
9593 { echo "$as_me:$LINENO: creating $ofile" >&5
9594 echo "$as_me: creating $ofile" >&6;}
9596 cat <<__EOF__ >> "$cfgfile"
9597 #! $SHELL
9599 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9600 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9603 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9604 # Free Software Foundation, Inc.
9606 # This file is part of GNU Libtool:
9607 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9609 # This program is free software; you can redistribute it and/or modify
9610 # it under the terms of the GNU General Public License as published by
9611 # the Free Software Foundation; either version 2 of the License, or
9612 # (at your option) any later version.
9614 # This program is distributed in the hope that it will be useful, but
9615 # WITHOUT ANY WARRANTY; without even the implied warranty of
9616 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9617 # General Public License for more details.
9619 # You should have received a copy of the GNU General Public License
9620 # along with this program; if not, write to the Free Software
9621 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9623 # As a special exception to the GNU General Public License, if you
9624 # distribute this file as part of a program that contains a
9625 # configuration script generated by Autoconf, you may include it under
9626 # the same distribution terms that you use for the rest of that program.
9628 # A sed program that does not truncate output.
9629 SED=$lt_SED
9631 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9632 Xsed="$SED -e 1s/^X//"
9634 # The HP-UX ksh and POSIX shell print the target directory to stdout
9635 # if CDPATH is set.
9636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9638 # The names of the tagged configurations supported by this script.
9639 available_tags=
9641 # ### BEGIN LIBTOOL CONFIG
9643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9645 # Shell to use when invoking shell scripts.
9646 SHELL=$lt_SHELL
9648 # Whether or not to build shared libraries.
9649 build_libtool_libs=$enable_shared
9651 # Whether or not to build static libraries.
9652 build_old_libs=$enable_static
9654 # Whether or not to add -lc for building shared libraries.
9655 build_libtool_need_lc=$archive_cmds_need_lc
9657 # Whether or not to disallow shared libs when runtime libs are static
9658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9660 # Whether or not to optimize for fast installation.
9661 fast_install=$enable_fast_install
9663 # The host system.
9664 host_alias=$host_alias
9665 host=$host
9666 host_os=$host_os
9668 # The build system.
9669 build_alias=$build_alias
9670 build=$build
9671 build_os=$build_os
9673 # An echo program that does not interpret backslashes.
9674 echo=$lt_echo
9676 # The archiver.
9677 AR=$lt_AR
9678 AR_FLAGS=$lt_AR_FLAGS
9680 # A C compiler.
9681 LTCC=$lt_LTCC
9683 # LTCC compiler flags.
9684 LTCFLAGS=$lt_LTCFLAGS
9686 # A language-specific compiler.
9687 CC=$lt_compiler
9689 # Is the compiler the GNU C compiler?
9690 with_gcc=$GCC
9692 # An ERE matcher.
9693 EGREP=$lt_EGREP
9695 # The linker used to build libraries.
9696 LD=$lt_LD
9698 # Whether we need hard or soft links.
9699 LN_S=$lt_LN_S
9701 # A BSD-compatible nm program.
9702 NM=$lt_NM
9704 # A symbol stripping program
9705 STRIP=$lt_STRIP
9707 # Used to examine libraries when file_magic_cmd begins "file"
9708 MAGIC_CMD=$MAGIC_CMD
9710 # Used on cygwin: DLL creation program.
9711 DLLTOOL="$DLLTOOL"
9713 # Used on cygwin: object dumper.
9714 OBJDUMP="$OBJDUMP"
9716 # Used on cygwin: assembler.
9717 AS="$AS"
9719 # The name of the directory that contains temporary libtool files.
9720 objdir=$objdir
9722 # How to create reloadable object files.
9723 reload_flag=$lt_reload_flag
9724 reload_cmds=$lt_reload_cmds
9726 # How to pass a linker flag through the compiler.
9727 wl=$lt_lt_prog_compiler_wl
9729 # Object file suffix (normally "o").
9730 objext="$ac_objext"
9732 # Old archive suffix (normally "a").
9733 libext="$libext"
9735 # Shared library suffix (normally ".so").
9736 shrext_cmds='$shrext_cmds'
9738 # Executable file suffix (normally "").
9739 exeext="$exeext"
9741 # Additional compiler flags for building library objects.
9742 pic_flag=$lt_lt_prog_compiler_pic
9743 pic_mode=$pic_mode
9745 # What is the maximum length of a command?
9746 max_cmd_len=$lt_cv_sys_max_cmd_len
9748 # Does compiler simultaneously support -c and -o options?
9749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9751 # Must we lock files when doing compilation?
9752 need_locks=$lt_need_locks
9754 # Do we need the lib prefix for modules?
9755 need_lib_prefix=$need_lib_prefix
9757 # Do we need a version for libraries?
9758 need_version=$need_version
9760 # Whether dlopen is supported.
9761 dlopen_support=$enable_dlopen
9763 # Whether dlopen of programs is supported.
9764 dlopen_self=$enable_dlopen_self
9766 # Whether dlopen of statically linked programs is supported.
9767 dlopen_self_static=$enable_dlopen_self_static
9769 # Compiler flag to prevent dynamic linking.
9770 link_static_flag=$lt_lt_prog_compiler_static
9772 # Compiler flag to turn off builtin functions.
9773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9775 # Compiler flag to allow reflexive dlopens.
9776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9778 # Compiler flag to generate shared objects directly from archives.
9779 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9781 # Compiler flag to generate thread-safe objects.
9782 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9784 # Library versioning type.
9785 version_type=$version_type
9787 # Format of library name prefix.
9788 libname_spec=$lt_libname_spec
9790 # List of archive names. First name is the real one, the rest are links.
9791 # The last name is the one that the linker finds with -lNAME.
9792 library_names_spec=$lt_library_names_spec
9794 # The coded name of the library, if different from the real name.
9795 soname_spec=$lt_soname_spec
9797 # Commands used to build and install an old-style archive.
9798 RANLIB=$lt_RANLIB
9799 old_archive_cmds=$lt_old_archive_cmds
9800 old_postinstall_cmds=$lt_old_postinstall_cmds
9801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9803 # Create an old-style archive from a shared archive.
9804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9806 # Create a temporary old-style archive to link instead of a shared archive.
9807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9809 # Commands used to build and install a shared archive.
9810 archive_cmds=$lt_archive_cmds
9811 archive_expsym_cmds=$lt_archive_expsym_cmds
9812 postinstall_cmds=$lt_postinstall_cmds
9813 postuninstall_cmds=$lt_postuninstall_cmds
9815 # Commands used to build a loadable module (assumed same as above if empty)
9816 module_cmds=$lt_module_cmds
9817 module_expsym_cmds=$lt_module_expsym_cmds
9819 # Commands to strip libraries.
9820 old_striplib=$lt_old_striplib
9821 striplib=$lt_striplib
9823 # Dependencies to place before the objects being linked to create a
9824 # shared library.
9825 predep_objects=$lt_predep_objects
9827 # Dependencies to place after the objects being linked to create a
9828 # shared library.
9829 postdep_objects=$lt_postdep_objects
9831 # Dependencies to place before the objects being linked to create a
9832 # shared library.
9833 predeps=$lt_predeps
9835 # Dependencies to place after the objects being linked to create a
9836 # shared library.
9837 postdeps=$lt_postdeps
9839 # The library search path used internally by the compiler when linking
9840 # a shared library.
9841 compiler_lib_search_path=$lt_compiler_lib_search_path
9843 # Method to check whether dependent libraries are shared objects.
9844 deplibs_check_method=$lt_deplibs_check_method
9846 # Command to use when deplibs_check_method == file_magic.
9847 file_magic_cmd=$lt_file_magic_cmd
9849 # Flag that allows shared libraries with undefined symbols to be built.
9850 allow_undefined_flag=$lt_allow_undefined_flag
9852 # Flag that forces no undefined symbols.
9853 no_undefined_flag=$lt_no_undefined_flag
9855 # Commands used to finish a libtool library installation in a directory.
9856 finish_cmds=$lt_finish_cmds
9858 # Same as above, but a single script fragment to be evaled but not shown.
9859 finish_eval=$lt_finish_eval
9861 # Take the output of nm and produce a listing of raw symbols and C names.
9862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9864 # Transform the output of nm in a proper C declaration
9865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9867 # Transform the output of nm in a C name address pair
9868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9870 # This is the shared library runtime path variable.
9871 runpath_var=$runpath_var
9873 # This is the shared library path variable.
9874 shlibpath_var=$shlibpath_var
9876 # Is shlibpath searched before the hard-coded library search path?
9877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9879 # How to hardcode a shared library path into an executable.
9880 hardcode_action=$hardcode_action
9882 # Whether we should hardcode library paths into libraries.
9883 hardcode_into_libs=$hardcode_into_libs
9885 # Flag to hardcode \$libdir into a binary during linking.
9886 # This must work even if \$libdir does not exist.
9887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9889 # If ld is used when linking, flag to hardcode \$libdir into
9890 # a binary during linking. This must work even if \$libdir does
9891 # not exist.
9892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9894 # Whether we need a single -rpath flag with a separated argument.
9895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9898 # resulting binary.
9899 hardcode_direct=$hardcode_direct
9901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9902 # resulting binary.
9903 hardcode_minus_L=$hardcode_minus_L
9905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9906 # the resulting binary.
9907 hardcode_shlibpath_var=$hardcode_shlibpath_var
9909 # Set to yes if building a shared library automatically hardcodes DIR into the library
9910 # and all subsequent libraries and executables linked against it.
9911 hardcode_automatic=$hardcode_automatic
9913 # Variables whose values should be saved in libtool wrapper scripts and
9914 # restored at relink time.
9915 variables_saved_for_relink="$variables_saved_for_relink"
9917 # Whether libtool must link a program against all its dependency libraries.
9918 link_all_deplibs=$link_all_deplibs
9920 # Compile-time system search path for libraries
9921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9923 # Run-time system search path for libraries
9924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9926 # Fix the shell variable \$srcfile for the compiler.
9927 fix_srcfile_path="$fix_srcfile_path"
9929 # Set to yes if exported symbols are required.
9930 always_export_symbols=$always_export_symbols
9932 # The commands to list exported symbols.
9933 export_symbols_cmds=$lt_export_symbols_cmds
9935 # The commands to extract the exported symbol list from a shared archive.
9936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9938 # Symbols that should not be listed in the preloaded symbols.
9939 exclude_expsyms=$lt_exclude_expsyms
9941 # Symbols that must always be exported.
9942 include_expsyms=$lt_include_expsyms
9944 # ### END LIBTOOL CONFIG
9946 __EOF__
9949 case $host_os in
9950 aix3*)
9951 cat <<\EOF >> "$cfgfile"
9953 # AIX sometimes has problems with the GCC collect2 program. For some
9954 # reason, if we set the COLLECT_NAMES environment variable, the problems
9955 # vanish in a puff of smoke.
9956 if test "X${COLLECT_NAMES+set}" != Xset; then
9957 COLLECT_NAMES=
9958 export COLLECT_NAMES
9959 fi
9960 EOF
9961 ;;
9962 esac
9964 # We use sed instead of cat because bash on DJGPP gets confused if
9965 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9966 # text mode, it properly converts lines to CR/LF. This bash problem
9967 # is reportedly fixed, but why not run on old versions too?
9968 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9970 mv -f "$cfgfile" "$ofile" || \
9971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9972 chmod +x "$ofile"
9974 else
9975 # If there is no Makefile yet, we rely on a make rule to execute
9976 # `config.status --recheck' to rerun these tests and create the
9977 # libtool script then.
9978 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9979 if test -f "$ltmain_in"; then
9980 test -f Makefile && make "$ltmain"
9981 fi
9982 fi
9985 ac_ext=c
9986 ac_cpp='$CPP $CPPFLAGS'
9987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9991 CC="$lt_save_CC"
9994 # Check whether --with-tags or --without-tags was given.
9995 if test "${with_tags+set}" = set; then
9996 withval="$with_tags"
9997 tagnames="$withval"
9998 fi;
10000 if test -f "$ltmain" && test -n "$tagnames"; then
10001 if test ! -f "${ofile}"; then
10002 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10003 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10004 fi
10006 if test -z "$LTCC"; then
10007 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10008 if test -z "$LTCC"; then
10009 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10010 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10011 else
10012 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10013 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10014 fi
10015 fi
10016 if test -z "$LTCFLAGS"; then
10017 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10018 fi
10020 # Extract list of available tagged configurations in $ofile.
10021 # Note that this assumes the entire list is on one line.
10022 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10025 for tagname in $tagnames; do
10026 IFS="$lt_save_ifs"
10027 # Check whether tagname contains only valid characters
10028 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10029 "") ;;
10030 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10031 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10032 { (exit 1); exit 1; }; }
10033 ;;
10034 esac
10036 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10037 then
10038 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10039 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10040 { (exit 1); exit 1; }; }
10041 fi
10043 # Update the list of available tags.
10044 if test -n "$tagname"; then
10045 echo appending configuration tag \"$tagname\" to $ofile
10047 case $tagname in
10048 CXX)
10049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10050 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10051 (test "X$CXX" != "Xg++"))) ; then
10052 ac_ext=cc
10053 ac_cpp='$CXXCPP $CPPFLAGS'
10054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10061 archive_cmds_need_lc_CXX=no
10062 allow_undefined_flag_CXX=
10063 always_export_symbols_CXX=no
10064 archive_expsym_cmds_CXX=
10065 export_dynamic_flag_spec_CXX=
10066 hardcode_direct_CXX=no
10067 hardcode_libdir_flag_spec_CXX=
10068 hardcode_libdir_flag_spec_ld_CXX=
10069 hardcode_libdir_separator_CXX=
10070 hardcode_minus_L_CXX=no
10071 hardcode_shlibpath_var_CXX=unsupported
10072 hardcode_automatic_CXX=no
10073 module_cmds_CXX=
10074 module_expsym_cmds_CXX=
10075 link_all_deplibs_CXX=unknown
10076 old_archive_cmds_CXX=$old_archive_cmds
10077 no_undefined_flag_CXX=
10078 whole_archive_flag_spec_CXX=
10079 enable_shared_with_static_runtimes_CXX=no
10081 # Dependencies to place before and after the object being linked:
10082 predep_objects_CXX=
10083 postdep_objects_CXX=
10084 predeps_CXX=
10085 postdeps_CXX=
10086 compiler_lib_search_path_CXX=
10088 # Source file extension for C++ test sources.
10089 ac_ext=cpp
10091 # Object file extension for compiled C++ test sources.
10092 objext=o
10093 objext_CXX=$objext
10095 # Code to be used in simple compile tests
10096 lt_simple_compile_test_code="int some_variable = 0;\n"
10098 # Code to be used in simple link tests
10099 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10101 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10103 # If no C compiler was specified, use CC.
10104 LTCC=${LTCC-"$CC"}
10106 # If no C compiler flags were specified, use CFLAGS.
10107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10109 # Allow CC to be a program name with arguments.
10110 compiler=$CC
10113 # save warnings/boilerplate of simple test code
10114 ac_outfile=conftest.$ac_objext
10115 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10117 _lt_compiler_boilerplate=`cat conftest.err`
10118 $rm conftest*
10120 ac_outfile=conftest.$ac_objext
10121 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10123 _lt_linker_boilerplate=`cat conftest.err`
10124 $rm conftest*
10127 # Allow CC to be a program name with arguments.
10128 lt_save_CC=$CC
10129 lt_save_LD=$LD
10130 lt_save_GCC=$GCC
10131 GCC=$GXX
10132 lt_save_with_gnu_ld=$with_gnu_ld
10133 lt_save_path_LD=$lt_cv_path_LD
10134 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10135 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10136 else
10137 $as_unset lt_cv_prog_gnu_ld
10138 fi
10139 if test -n "${lt_cv_path_LDCXX+set}"; then
10140 lt_cv_path_LD=$lt_cv_path_LDCXX
10141 else
10142 $as_unset lt_cv_path_LD
10143 fi
10144 test -z "${LDCXX+set}" || LD=$LDCXX
10145 CC=${CXX-"c++"}
10146 compiler=$CC
10147 compiler_CXX=$CC
10148 for cc_temp in $compiler""; do
10149 case $cc_temp in
10150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10152 \-*) ;;
10153 *) break;;
10154 esac
10155 done
10156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10159 # We don't want -fno-exception wen compiling C++ code, so set the
10160 # no_builtin_flag separately
10161 if test "$GXX" = yes; then
10162 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10163 else
10164 lt_prog_compiler_no_builtin_flag_CXX=
10165 fi
10167 if test "$GXX" = yes; then
10168 # Set up default GNU C++ configuration
10171 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10172 if test "${with_gnu_ld+set}" = set; then
10173 withval="$with_gnu_ld"
10174 test "$withval" = no || with_gnu_ld=yes
10175 else
10176 with_gnu_ld=no
10177 fi;
10178 ac_prog=ld
10179 if test "$GCC" = yes; then
10180 # Check if gcc -print-prog-name=ld gives a path.
10181 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10182 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10183 case $host in
10184 *-*-mingw*)
10185 # gcc leaves a trailing carriage return which upsets mingw
10186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10187 *)
10188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10189 esac
10190 case $ac_prog in
10191 # Accept absolute paths.
10192 [\\/]* | ?:[\\/]*)
10193 re_direlt='/[^/][^/]*/\.\./'
10194 # Canonicalize the pathname of ld
10195 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10196 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10197 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10198 done
10199 test -z "$LD" && LD="$ac_prog"
10200 ;;
10201 "")
10202 # If it fails, then pretend we aren't using GCC.
10203 ac_prog=ld
10204 ;;
10205 *)
10206 # If it is relative, then search for the first ld in PATH.
10207 with_gnu_ld=unknown
10208 ;;
10209 esac
10210 elif test "$with_gnu_ld" = yes; then
10211 echo "$as_me:$LINENO: checking for GNU ld" >&5
10212 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10213 else
10214 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10215 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10216 fi
10217 if test "${lt_cv_path_LD+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 if test -z "$LD"; then
10221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10222 for ac_dir in $PATH; do
10223 IFS="$lt_save_ifs"
10224 test -z "$ac_dir" && ac_dir=.
10225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10226 lt_cv_path_LD="$ac_dir/$ac_prog"
10227 # Check to see if the program is GNU ld. I'd rather use --version,
10228 # but apparently some variants of GNU ld only accept -v.
10229 # Break only if it was the GNU/non-GNU ld that we prefer.
10230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10231 *GNU* | *'with BFD'*)
10232 test "$with_gnu_ld" != no && break
10233 ;;
10234 *)
10235 test "$with_gnu_ld" != yes && break
10236 ;;
10237 esac
10238 fi
10239 done
10240 IFS="$lt_save_ifs"
10241 else
10242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10243 fi
10244 fi
10246 LD="$lt_cv_path_LD"
10247 if test -n "$LD"; then
10248 echo "$as_me:$LINENO: result: $LD" >&5
10249 echo "${ECHO_T}$LD" >&6
10250 else
10251 echo "$as_me:$LINENO: result: no" >&5
10252 echo "${ECHO_T}no" >&6
10253 fi
10254 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10255 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10256 { (exit 1); exit 1; }; }
10257 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10258 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10259 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10263 case `$LD -v 2>&1 </dev/null` in
10264 *GNU* | *'with BFD'*)
10265 lt_cv_prog_gnu_ld=yes
10266 ;;
10267 *)
10268 lt_cv_prog_gnu_ld=no
10269 ;;
10270 esac
10271 fi
10272 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10273 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10274 with_gnu_ld=$lt_cv_prog_gnu_ld
10278 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10279 # archiving commands below assume that GNU ld is being used.
10280 if test "$with_gnu_ld" = yes; then
10281 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282 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'
10284 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10287 # If archive_cmds runs LD, not CC, wlarc should be empty
10288 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10289 # investigate it a little bit more. (MM)
10290 wlarc='${wl}'
10292 # ancient GNU ld didn't support --whole-archive et. al.
10293 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10294 grep 'no-whole-archive' > /dev/null; then
10295 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10296 else
10297 whole_archive_flag_spec_CXX=
10298 fi
10299 else
10300 with_gnu_ld=no
10301 wlarc=
10303 # A generic and very simple default shared library creation
10304 # command for GNU C++ for the case where it uses the native
10305 # linker, instead of GNU ld. If possible, this setting should
10306 # overridden to take advantage of the native linker features on
10307 # the platform it is being used on.
10308 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10309 fi
10311 # Commands to make compiler produce verbose output that lists
10312 # what "hidden" libraries, object files and flags are used when
10313 # linking a shared library.
10314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10316 else
10317 GXX=no
10318 with_gnu_ld=no
10319 wlarc=
10320 fi
10322 # PORTME: fill in a description of your system's C++ link characteristics
10323 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10324 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10325 ld_shlibs_CXX=yes
10326 case $host_os in
10327 aix3*)
10328 # FIXME: insert proper C++ library support
10329 ld_shlibs_CXX=no
10330 ;;
10331 aix4* | aix5*)
10332 if test "$host_cpu" = ia64; then
10333 # On IA64, the linker does run time linking by default, so we don't
10334 # have to do anything special.
10335 aix_use_runtimelinking=no
10336 exp_sym_flag='-Bexport'
10337 no_entry_flag=""
10338 else
10339 aix_use_runtimelinking=no
10341 # Test if we are trying to use run time linking or normal
10342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10343 # need to do runtime linking.
10344 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10345 for ld_flag in $LDFLAGS; do
10346 case $ld_flag in
10347 *-brtl*)
10348 aix_use_runtimelinking=yes
10349 break
10350 ;;
10351 esac
10352 done
10353 ;;
10354 esac
10356 exp_sym_flag='-bexport'
10357 no_entry_flag='-bnoentry'
10358 fi
10360 # When large executables or shared objects are built, AIX ld can
10361 # have problems creating the table of contents. If linking a library
10362 # or program results in "error TOC overflow" add -mminimal-toc to
10363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10366 archive_cmds_CXX=''
10367 hardcode_direct_CXX=yes
10368 hardcode_libdir_separator_CXX=':'
10369 link_all_deplibs_CXX=yes
10371 if test "$GXX" = yes; then
10372 case $host_os in aix4.[012]|aix4.[012].*)
10373 # We only want to do this on AIX 4.2 and lower, the check
10374 # below for broken collect2 doesn't work under 4.3+
10375 collect2name=`${CC} -print-prog-name=collect2`
10376 if test -f "$collect2name" && \
10377 strings "$collect2name" | grep resolve_lib_name >/dev/null
10378 then
10379 # We have reworked collect2
10380 hardcode_direct_CXX=yes
10381 else
10382 # We have old collect2
10383 hardcode_direct_CXX=unsupported
10384 # It fails to find uninstalled libraries when the uninstalled
10385 # path is not listed in the libpath. Setting hardcode_minus_L
10386 # to unsupported forces relinking
10387 hardcode_minus_L_CXX=yes
10388 hardcode_libdir_flag_spec_CXX='-L$libdir'
10389 hardcode_libdir_separator_CXX=
10390 fi
10391 ;;
10392 esac
10393 shared_flag='-shared'
10394 if test "$aix_use_runtimelinking" = yes; then
10395 shared_flag="$shared_flag "'${wl}-G'
10396 fi
10397 else
10398 # not using gcc
10399 if test "$host_cpu" = ia64; then
10400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10401 # chokes on -Wl,-G. The following line is correct:
10402 shared_flag='-G'
10403 else
10404 if test "$aix_use_runtimelinking" = yes; then
10405 shared_flag='${wl}-G'
10406 else
10407 shared_flag='${wl}-bM:SRE'
10408 fi
10409 fi
10410 fi
10412 # It seems that -bexpall does not export symbols beginning with
10413 # underscore (_), so it is better to generate a list of symbols to export.
10414 always_export_symbols_CXX=yes
10415 if test "$aix_use_runtimelinking" = yes; then
10416 # Warning - without using the other runtime loading flags (-brtl),
10417 # -berok will link without error, but may produce a broken library.
10418 allow_undefined_flag_CXX='-berok'
10419 # Determine the default libpath from the value encoded in an empty executable.
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10427 int
10428 main ()
10432 return 0;
10434 _ACEOF
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10437 (eval $ac_link) 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10458 }'`
10459 # Check for a 64-bit object if we didn't find anything.
10460 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; }
10461 }'`; fi
10462 else
10463 echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10466 fi
10467 rm -f conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10471 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10473 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10474 else
10475 if test "$host_cpu" = ia64; then
10476 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10477 allow_undefined_flag_CXX="-z nodefs"
10478 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10479 else
10480 # Determine the default libpath from the value encoded in an empty executable.
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10488 int
10489 main ()
10493 return 0;
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10519 }'`
10520 # Check for a 64-bit object if we didn't find anything.
10521 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; }
10522 }'`; fi
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 fi
10528 rm -f conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10532 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10533 # Warning - without using the other run time loading flags,
10534 # -berok will link without error, but may produce a broken library.
10535 no_undefined_flag_CXX=' ${wl}-bernotok'
10536 allow_undefined_flag_CXX=' ${wl}-berok'
10537 # Exported symbols can be pulled into shared objects from archives
10538 whole_archive_flag_spec_CXX='$convenience'
10539 archive_cmds_need_lc_CXX=yes
10540 # This is similar to how AIX traditionally builds its shared libraries.
10541 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10542 fi
10543 fi
10544 ;;
10546 beos*)
10547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10548 allow_undefined_flag_CXX=unsupported
10549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10550 # support --undefined. This deserves some investigation. FIXME
10551 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10552 else
10553 ld_shlibs_CXX=no
10554 fi
10555 ;;
10557 chorus*)
10558 case $cc_basename in
10559 *)
10560 # FIXME: insert proper C++ library support
10561 ld_shlibs_CXX=no
10562 ;;
10563 esac
10564 ;;
10566 cygwin* | mingw* | pw32*)
10567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10568 # as there is no search path for DLLs.
10569 hardcode_libdir_flag_spec_CXX='-L$libdir'
10570 allow_undefined_flag_CXX=unsupported
10571 always_export_symbols_CXX=no
10572 enable_shared_with_static_runtimes_CXX=yes
10574 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10575 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10576 # If the export-symbols file already is a .def file (1st line
10577 # is EXPORTS), use it as is; otherwise, prepend...
10578 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10579 cp $export_symbols $output_objdir/$soname.def;
10580 else
10581 echo EXPORTS > $output_objdir/$soname.def;
10582 cat $export_symbols >> $output_objdir/$soname.def;
10583 fi~
10584 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10585 else
10586 ld_shlibs_CXX=no
10587 fi
10588 ;;
10589 darwin* | rhapsody*)
10590 case $host_os in
10591 rhapsody* | darwin1.[012])
10592 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10593 ;;
10594 *) # Darwin 1.3 on
10595 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10596 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10597 else
10598 case ${MACOSX_DEPLOYMENT_TARGET} in
10599 10.[012])
10600 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10601 ;;
10602 10.*)
10603 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10604 ;;
10605 esac
10606 fi
10607 ;;
10608 esac
10609 archive_cmds_need_lc_CXX=no
10610 hardcode_direct_CXX=no
10611 hardcode_automatic_CXX=yes
10612 hardcode_shlibpath_var_CXX=unsupported
10613 whole_archive_flag_spec_CXX=''
10614 link_all_deplibs_CXX=yes
10616 if test "$GXX" = yes ; then
10617 lt_int_apple_cc_single_mod=no
10618 output_verbose_link_cmd='echo'
10619 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10620 lt_int_apple_cc_single_mod=yes
10621 fi
10622 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10623 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10624 else
10625 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'
10626 fi
10627 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10628 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10629 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10630 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}'
10631 else
10632 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}'
10633 fi
10634 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}'
10635 else
10636 case $cc_basename in
10637 xlc*)
10638 output_verbose_link_cmd='echo'
10639 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'
10640 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10642 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}'
10643 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}'
10644 ;;
10645 *)
10646 ld_shlibs_CXX=no
10647 ;;
10648 esac
10649 fi
10650 ;;
10652 dgux*)
10653 case $cc_basename in
10654 ec++*)
10655 # FIXME: insert proper C++ library support
10656 ld_shlibs_CXX=no
10657 ;;
10658 ghcx*)
10659 # Green Hills C++ Compiler
10660 # FIXME: insert proper C++ library support
10661 ld_shlibs_CXX=no
10662 ;;
10663 *)
10664 # FIXME: insert proper C++ library support
10665 ld_shlibs_CXX=no
10666 ;;
10667 esac
10668 ;;
10669 freebsd[12]*)
10670 # C++ shared libraries reported to be fairly broken before switch to ELF
10671 ld_shlibs_CXX=no
10672 ;;
10673 freebsd-elf*)
10674 archive_cmds_need_lc_CXX=no
10675 ;;
10676 freebsd* | kfreebsd*-gnu | dragonfly*)
10677 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10678 # conventions
10679 ld_shlibs_CXX=yes
10680 ;;
10681 gnu*)
10682 ;;
10683 hpux9*)
10684 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10685 hardcode_libdir_separator_CXX=:
10686 export_dynamic_flag_spec_CXX='${wl}-E'
10687 hardcode_direct_CXX=yes
10688 hardcode_minus_L_CXX=yes # Not in the search PATH,
10689 # but as the default
10690 # location of the library.
10692 case $cc_basename in
10693 CC*)
10694 # FIXME: insert proper C++ library support
10695 ld_shlibs_CXX=no
10696 ;;
10697 aCC*)
10698 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'
10699 # Commands to make compiler produce verbose output that lists
10700 # what "hidden" libraries, object files and flags are used when
10701 # linking a shared library.
10703 # There doesn't appear to be a way to prevent this compiler from
10704 # explicitly linking system object files so we need to strip them
10705 # from the output so that they don't get included in the library
10706 # dependencies.
10707 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'
10708 ;;
10709 *)
10710 if test "$GXX" = yes; then
10711 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'
10712 else
10713 # FIXME: insert proper C++ library support
10714 ld_shlibs_CXX=no
10715 fi
10716 ;;
10717 esac
10718 ;;
10719 hpux10*|hpux11*)
10720 if test $with_gnu_ld = no; then
10721 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10722 hardcode_libdir_separator_CXX=:
10724 case $host_cpu in
10725 hppa*64*|ia64*)
10726 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10727 ;;
10728 *)
10729 export_dynamic_flag_spec_CXX='${wl}-E'
10730 ;;
10731 esac
10732 fi
10733 case $host_cpu in
10734 hppa*64*|ia64*)
10735 hardcode_direct_CXX=no
10736 hardcode_shlibpath_var_CXX=no
10737 ;;
10738 *)
10739 hardcode_direct_CXX=yes
10740 hardcode_minus_L_CXX=yes # Not in the search PATH,
10741 # but as the default
10742 # location of the library.
10743 ;;
10744 esac
10746 case $cc_basename in
10747 CC*)
10748 # FIXME: insert proper C++ library support
10749 ld_shlibs_CXX=no
10750 ;;
10751 aCC*)
10752 case $host_cpu in
10753 hppa*64*)
10754 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10755 ;;
10756 ia64*)
10757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10758 ;;
10759 *)
10760 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10761 ;;
10762 esac
10763 # Commands to make compiler produce verbose output that lists
10764 # what "hidden" libraries, object files and flags are used when
10765 # linking a shared library.
10767 # There doesn't appear to be a way to prevent this compiler from
10768 # explicitly linking system object files so we need to strip them
10769 # from the output so that they don't get included in the library
10770 # dependencies.
10771 output_verbose_link_cmd='templist=`($CC -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'
10772 ;;
10773 *)
10774 if test "$GXX" = yes; then
10775 if test $with_gnu_ld = no; then
10776 case $host_cpu in
10777 hppa*64*)
10778 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10779 ;;
10780 ia64*)
10781 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10782 ;;
10783 *)
10784 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'
10785 ;;
10786 esac
10787 fi
10788 else
10789 # FIXME: insert proper C++ library support
10790 ld_shlibs_CXX=no
10791 fi
10792 ;;
10793 esac
10794 ;;
10795 interix3*)
10796 hardcode_direct_CXX=no
10797 hardcode_shlibpath_var_CXX=no
10798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10799 export_dynamic_flag_spec_CXX='${wl}-E'
10800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10801 # Instead, shared libraries are loaded at an image base (0x10000000 by
10802 # default) and relocated if they conflict, which is a slow very memory
10803 # consuming and fragmenting process. To avoid this, we pick a random,
10804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10806 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10807 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10808 ;;
10809 irix5* | irix6*)
10810 case $cc_basename in
10811 CC*)
10812 # SGI C++
10813 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10815 # Archives containing C++ object files must be created using
10816 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10817 # necessary to make sure instantiated templates are included
10818 # in the archive.
10819 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10820 ;;
10821 *)
10822 if test "$GXX" = yes; then
10823 if test "$with_gnu_ld" = no; then
10824 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10825 else
10826 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'
10827 fi
10828 fi
10829 link_all_deplibs_CXX=yes
10830 ;;
10831 esac
10832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10833 hardcode_libdir_separator_CXX=:
10834 ;;
10835 linux*)
10836 case $cc_basename in
10837 KCC*)
10838 # Kuck and Associates, Inc. (KAI) C++ Compiler
10840 # KCC will only create a shared library if the output file
10841 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10842 # to its proper name (with version) after linking.
10843 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'
10844 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'
10845 # Commands to make compiler produce verbose output that lists
10846 # what "hidden" libraries, object files and flags are used when
10847 # linking a shared library.
10849 # There doesn't appear to be a way to prevent this compiler from
10850 # explicitly linking system object files so we need to strip them
10851 # from the output so that they don't get included in the library
10852 # dependencies.
10853 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'
10855 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10858 # Archives containing C++ object files must be created using
10859 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10861 ;;
10862 icpc*)
10863 # Intel C++
10864 with_gnu_ld=yes
10865 # version 8.0 and above of icpc choke on multiply defined symbols
10866 # if we add $predep_objects and $postdep_objects, however 7.1 and
10867 # earlier do not add the objects themselves.
10868 case `$CC -V 2>&1` in
10869 *"Version 7."*)
10870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10871 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'
10872 ;;
10873 *) # Version 8.0 or newer
10874 tmp_idyn=
10875 case $host_cpu in
10876 ia64*) tmp_idyn=' -i_dynamic';;
10877 esac
10878 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10879 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'
10880 ;;
10881 esac
10882 archive_cmds_need_lc_CXX=no
10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10885 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10886 ;;
10887 pgCC*)
10888 # Portland Group C++ compiler
10889 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10890 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10892 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10894 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10895 ;;
10896 cxx*)
10897 # Compaq C++
10898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10899 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'
10901 runpath_var=LD_RUN_PATH
10902 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10903 hardcode_libdir_separator_CXX=:
10905 # Commands to make compiler produce verbose output that lists
10906 # what "hidden" libraries, object files and flags are used when
10907 # linking a shared library.
10909 # There doesn't appear to be a way to prevent this compiler from
10910 # explicitly linking system object files so we need to strip them
10911 # from the output so that they don't get included in the library
10912 # dependencies.
10913 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'
10914 ;;
10915 esac
10916 ;;
10917 lynxos*)
10918 # FIXME: insert proper C++ library support
10919 ld_shlibs_CXX=no
10920 ;;
10921 m88k*)
10922 # FIXME: insert proper C++ library support
10923 ld_shlibs_CXX=no
10924 ;;
10925 mvs*)
10926 case $cc_basename in
10927 cxx*)
10928 # FIXME: insert proper C++ library support
10929 ld_shlibs_CXX=no
10930 ;;
10931 *)
10932 # FIXME: insert proper C++ library support
10933 ld_shlibs_CXX=no
10934 ;;
10935 esac
10936 ;;
10937 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10940 wlarc=
10941 hardcode_libdir_flag_spec_CXX='-R$libdir'
10942 hardcode_direct_CXX=yes
10943 hardcode_shlibpath_var_CXX=no
10944 fi
10945 # Workaround some broken pre-1.5 toolchains
10946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10947 ;;
10948 openbsd2*)
10949 # C++ shared libraries are fairly broken
10950 ld_shlibs_CXX=no
10951 ;;
10952 openbsd*)
10953 hardcode_direct_CXX=yes
10954 hardcode_shlibpath_var_CXX=no
10955 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10958 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10959 export_dynamic_flag_spec_CXX='${wl}-E'
10960 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10961 fi
10962 output_verbose_link_cmd='echo'
10963 ;;
10964 osf3*)
10965 case $cc_basename in
10966 KCC*)
10967 # Kuck and Associates, Inc. (KAI) C++ Compiler
10969 # KCC will only create a shared library if the output file
10970 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10971 # to its proper name (with version) after linking.
10972 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'
10974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10975 hardcode_libdir_separator_CXX=:
10977 # Archives containing C++ object files must be created using
10978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10981 ;;
10982 RCC*)
10983 # Rational C++ 2.4.1
10984 # FIXME: insert proper C++ library support
10985 ld_shlibs_CXX=no
10986 ;;
10987 cxx*)
10988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10989 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10992 hardcode_libdir_separator_CXX=:
10994 # Commands to make compiler produce verbose output that lists
10995 # what "hidden" libraries, object files and flags are used when
10996 # linking a shared library.
10998 # There doesn't appear to be a way to prevent this compiler from
10999 # explicitly linking system object files so we need to strip them
11000 # from the output so that they don't get included in the library
11001 # dependencies.
11002 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'
11003 ;;
11004 *)
11005 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11006 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11007 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11010 hardcode_libdir_separator_CXX=:
11012 # Commands to make compiler produce verbose output that lists
11013 # what "hidden" libraries, object files and flags are used when
11014 # linking a shared library.
11015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11017 else
11018 # FIXME: insert proper C++ library support
11019 ld_shlibs_CXX=no
11020 fi
11021 ;;
11022 esac
11023 ;;
11024 osf4* | osf5*)
11025 case $cc_basename in
11026 KCC*)
11027 # Kuck and Associates, Inc. (KAI) C++ Compiler
11029 # KCC will only create a shared library if the output file
11030 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11031 # to its proper name (with version) after linking.
11032 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'
11034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11035 hardcode_libdir_separator_CXX=:
11037 # Archives containing C++ object files must be created using
11038 # the KAI C++ compiler.
11039 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11040 ;;
11041 RCC*)
11042 # Rational C++ 2.4.1
11043 # FIXME: insert proper C++ library support
11044 ld_shlibs_CXX=no
11045 ;;
11046 cxx*)
11047 allow_undefined_flag_CXX=' -expect_unresolved \*'
11048 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11049 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11050 echo "-hidden">> $lib.exp~
11051 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11052 $rm $lib.exp'
11054 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11055 hardcode_libdir_separator_CXX=:
11057 # Commands to make compiler produce verbose output that lists
11058 # what "hidden" libraries, object files and flags are used when
11059 # linking a shared library.
11061 # There doesn't appear to be a way to prevent this compiler from
11062 # explicitly linking system object files so we need to strip them
11063 # from the output so that they don't get included in the library
11064 # dependencies.
11065 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'
11066 ;;
11067 *)
11068 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11070 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11073 hardcode_libdir_separator_CXX=:
11075 # Commands to make compiler produce verbose output that lists
11076 # what "hidden" libraries, object files and flags are used when
11077 # linking a shared library.
11078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11080 else
11081 # FIXME: insert proper C++ library support
11082 ld_shlibs_CXX=no
11083 fi
11084 ;;
11085 esac
11086 ;;
11087 psos*)
11088 # FIXME: insert proper C++ library support
11089 ld_shlibs_CXX=no
11090 ;;
11091 sunos4*)
11092 case $cc_basename in
11093 CC*)
11094 # Sun C++ 4.x
11095 # FIXME: insert proper C++ library support
11096 ld_shlibs_CXX=no
11097 ;;
11098 lcc*)
11099 # Lucid
11100 # FIXME: insert proper C++ library support
11101 ld_shlibs_CXX=no
11102 ;;
11103 *)
11104 # FIXME: insert proper C++ library support
11105 ld_shlibs_CXX=no
11106 ;;
11107 esac
11108 ;;
11109 solaris*)
11110 case $cc_basename in
11111 CC*)
11112 # Sun C++ 4.2, 5.x and Centerline C++
11113 archive_cmds_need_lc_CXX=yes
11114 no_undefined_flag_CXX=' -zdefs'
11115 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11116 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11117 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11119 hardcode_libdir_flag_spec_CXX='-R$libdir'
11120 hardcode_shlibpath_var_CXX=no
11121 case $host_os in
11122 solaris2.[0-5] | solaris2.[0-5].*) ;;
11123 *)
11124 # The C++ compiler is used as linker so we must use $wl
11125 # flag to pass the commands to the underlying system
11126 # linker. We must also pass each convience library through
11127 # to the system linker between allextract/defaultextract.
11128 # The C++ compiler will combine linker options so we
11129 # cannot just pass the convience library names through
11130 # without $wl.
11131 # Supported since Solaris 2.6 (maybe 2.5.1?)
11132 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11133 ;;
11134 esac
11135 link_all_deplibs_CXX=yes
11137 output_verbose_link_cmd='echo'
11139 # Archives containing C++ object files must be created using
11140 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11141 # necessary to make sure instantiated templates are included
11142 # in the archive.
11143 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11144 ;;
11145 gcx*)
11146 # Green Hills C++ Compiler
11147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11149 # The C++ compiler must be used to create the archive.
11150 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11151 ;;
11152 *)
11153 # GNU C++ compiler with Solaris linker
11154 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11155 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11156 if $CC --version | grep -v '^2\.7' > /dev/null; then
11157 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11158 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11159 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11161 # Commands to make compiler produce verbose output that lists
11162 # what "hidden" libraries, object files and flags are used when
11163 # linking a shared library.
11164 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11165 else
11166 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11167 # platform.
11168 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11169 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11170 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11172 # Commands to make compiler produce verbose output that lists
11173 # what "hidden" libraries, object files and flags are used when
11174 # linking a shared library.
11175 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11176 fi
11178 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11179 fi
11180 ;;
11181 esac
11182 ;;
11183 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11184 no_undefined_flag_CXX='${wl}-z,text'
11185 archive_cmds_need_lc_CXX=no
11186 hardcode_shlibpath_var_CXX=no
11187 runpath_var='LD_RUN_PATH'
11189 case $cc_basename in
11190 CC*)
11191 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11192 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193 ;;
11194 *)
11195 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11196 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11197 ;;
11198 esac
11199 ;;
11200 sysv5* | sco3.2v5* | sco5v6*)
11201 # Note: We can NOT use -z defs as we might desire, because we do not
11202 # link with -lc, and that would cause any symbols used from libc to
11203 # always be unresolved, which means just about no library would
11204 # ever link correctly. If we're not using GNU ld we use -z text
11205 # though, which does catch some bad symbols but isn't as heavy-handed
11206 # as -z defs.
11207 # For security reasons, it is highly recommended that you always
11208 # use absolute paths for naming shared libraries, and exclude the
11209 # DT_RUNPATH tag from executables and libraries. But doing so
11210 # requires that you compile everything twice, which is a pain.
11211 # So that behaviour is only enabled if SCOABSPATH is set to a
11212 # non-empty value in the environment. Most likely only useful for
11213 # creating official distributions of packages.
11214 # This is a hack until libtool officially supports absolute path
11215 # names for shared libraries.
11216 no_undefined_flag_CXX='${wl}-z,text'
11217 allow_undefined_flag_CXX='${wl}-z,nodefs'
11218 archive_cmds_need_lc_CXX=no
11219 hardcode_shlibpath_var_CXX=no
11220 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11221 hardcode_libdir_separator_CXX=':'
11222 link_all_deplibs_CXX=yes
11223 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11224 runpath_var='LD_RUN_PATH'
11226 case $cc_basename in
11227 CC*)
11228 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11229 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11230 ;;
11231 *)
11232 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11233 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11234 ;;
11235 esac
11236 ;;
11237 tandem*)
11238 case $cc_basename in
11239 NCC*)
11240 # NonStop-UX NCC 3.20
11241 # FIXME: insert proper C++ library support
11242 ld_shlibs_CXX=no
11243 ;;
11244 *)
11245 # FIXME: insert proper C++ library support
11246 ld_shlibs_CXX=no
11247 ;;
11248 esac
11249 ;;
11250 vxworks*)
11251 # FIXME: insert proper C++ library support
11252 ld_shlibs_CXX=no
11253 ;;
11254 *)
11255 # FIXME: insert proper C++ library support
11256 ld_shlibs_CXX=no
11257 ;;
11258 esac
11259 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11260 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11261 test "$ld_shlibs_CXX" = no && can_build_shared=no
11263 GCC_CXX="$GXX"
11264 LD_CXX="$LD"
11267 cat > conftest.$ac_ext <<EOF
11268 class Foo
11270 public:
11271 Foo (void) { a = 0; }
11272 private:
11273 int a;
11274 };
11275 EOF
11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278 (eval $ac_compile) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; then
11282 # Parse the compiler output and extract the necessary
11283 # objects, libraries and library flags.
11285 # Sentinel used to keep track of whether or not we are before
11286 # the conftest object file.
11287 pre_test_object_deps_done=no
11289 # The `*' in the case matches for architectures that use `case' in
11290 # $output_verbose_cmd can trigger glob expansion during the loop
11291 # eval without this substitution.
11292 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11294 for p in `eval $output_verbose_link_cmd`; do
11295 case $p in
11297 -L* | -R* | -l*)
11298 # Some compilers place space between "-{L,R}" and the path.
11299 # Remove the space.
11300 if test $p = "-L" \
11301 || test $p = "-R"; then
11302 prev=$p
11303 continue
11304 else
11305 prev=
11306 fi
11308 if test "$pre_test_object_deps_done" = no; then
11309 case $p in
11310 -L* | -R*)
11311 # Internal compiler library paths should come after those
11312 # provided the user. The postdeps already come after the
11313 # user supplied libs so there is no need to process them.
11314 if test -z "$compiler_lib_search_path_CXX"; then
11315 compiler_lib_search_path_CXX="${prev}${p}"
11316 else
11317 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11318 fi
11319 ;;
11320 # The "-l" case would never come before the object being
11321 # linked, so don't bother handling this case.
11322 esac
11323 else
11324 if test -z "$postdeps_CXX"; then
11325 postdeps_CXX="${prev}${p}"
11326 else
11327 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11328 fi
11329 fi
11330 ;;
11332 *.$objext)
11333 # This assumes that the test object file only shows up
11334 # once in the compiler output.
11335 if test "$p" = "conftest.$objext"; then
11336 pre_test_object_deps_done=yes
11337 continue
11338 fi
11340 if test "$pre_test_object_deps_done" = no; then
11341 if test -z "$predep_objects_CXX"; then
11342 predep_objects_CXX="$p"
11343 else
11344 predep_objects_CXX="$predep_objects_CXX $p"
11345 fi
11346 else
11347 if test -z "$postdep_objects_CXX"; then
11348 postdep_objects_CXX="$p"
11349 else
11350 postdep_objects_CXX="$postdep_objects_CXX $p"
11351 fi
11352 fi
11353 ;;
11355 *) ;; # Ignore the rest.
11357 esac
11358 done
11360 # Clean up.
11361 rm -f a.out a.exe
11362 else
11363 echo "libtool.m4: error: problem compiling CXX test program"
11364 fi
11366 $rm -f confest.$objext
11368 # PORTME: override above test on systems where it is broken
11369 case $host_os in
11370 interix3*)
11371 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11372 # hack all around it, let's just trust "g++" to DTRT.
11373 predep_objects_CXX=
11374 postdep_objects_CXX=
11375 postdeps_CXX=
11376 ;;
11378 solaris*)
11379 case $cc_basename in
11380 CC*)
11381 # Adding this requires a known-good setup of shared libraries for
11382 # Sun compiler versions before 5.6, else PIC objects from an old
11383 # archive will be linked into the output, leading to subtle bugs.
11384 postdeps_CXX='-lCstd -lCrun'
11385 ;;
11386 esac
11387 ;;
11388 esac
11391 case " $postdeps_CXX " in
11392 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11393 esac
11395 lt_prog_compiler_wl_CXX=
11396 lt_prog_compiler_pic_CXX=
11397 lt_prog_compiler_static_CXX=
11399 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11402 # C++ specific cases for pic, static, wl, etc.
11403 if test "$GXX" = yes; then
11404 lt_prog_compiler_wl_CXX='-Wl,'
11405 lt_prog_compiler_static_CXX='-static'
11407 case $host_os in
11408 aix*)
11409 # All AIX code is PIC.
11410 if test "$host_cpu" = ia64; then
11411 # AIX 5 now supports IA64 processor
11412 lt_prog_compiler_static_CXX='-Bstatic'
11413 fi
11414 ;;
11415 amigaos*)
11416 # FIXME: we need at least 68020 code to build shared libraries, but
11417 # adding the `-m68020' flag to GCC prevents building anything better,
11418 # like `-m68040'.
11419 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11420 ;;
11421 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11422 # PIC is the default for these OSes.
11423 ;;
11424 mingw* | os2* | pw32*)
11425 # This hack is so that the source file can tell whether it is being
11426 # built for inclusion in a dll (and should export symbols for example).
11427 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11428 ;;
11429 darwin* | rhapsody*)
11430 # PIC is the default on this platform
11431 # Common symbols not allowed in MH_DYLIB files
11432 lt_prog_compiler_pic_CXX='-fno-common'
11433 ;;
11434 *djgpp*)
11435 # DJGPP does not support shared libraries at all
11436 lt_prog_compiler_pic_CXX=
11437 ;;
11438 interix3*)
11439 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11440 # Instead, we relocate shared libraries at runtime.
11441 ;;
11442 sysv4*MP*)
11443 if test -d /usr/nec; then
11444 lt_prog_compiler_pic_CXX=-Kconform_pic
11445 fi
11446 ;;
11447 hpux*)
11448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11449 # not for PA HP-UX.
11450 case $host_cpu in
11451 hppa*64*|ia64*)
11452 ;;
11453 *)
11454 lt_prog_compiler_pic_CXX='-fPIC'
11455 ;;
11456 esac
11457 ;;
11458 *)
11459 lt_prog_compiler_pic_CXX='-fPIC'
11460 ;;
11461 esac
11462 else
11463 case $host_os in
11464 aix4* | aix5*)
11465 # All AIX code is PIC.
11466 if test "$host_cpu" = ia64; then
11467 # AIX 5 now supports IA64 processor
11468 lt_prog_compiler_static_CXX='-Bstatic'
11469 else
11470 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11471 fi
11472 ;;
11473 chorus*)
11474 case $cc_basename in
11475 cxch68*)
11476 # Green Hills C++ Compiler
11477 # _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"
11478 ;;
11479 esac
11480 ;;
11481 darwin*)
11482 # PIC is the default on this platform
11483 # Common symbols not allowed in MH_DYLIB files
11484 case $cc_basename in
11485 xlc*)
11486 lt_prog_compiler_pic_CXX='-qnocommon'
11487 lt_prog_compiler_wl_CXX='-Wl,'
11488 ;;
11489 esac
11490 ;;
11491 dgux*)
11492 case $cc_basename in
11493 ec++*)
11494 lt_prog_compiler_pic_CXX='-KPIC'
11495 ;;
11496 ghcx*)
11497 # Green Hills C++ Compiler
11498 lt_prog_compiler_pic_CXX='-pic'
11499 ;;
11500 *)
11501 ;;
11502 esac
11503 ;;
11504 freebsd* | kfreebsd*-gnu | dragonfly*)
11505 # FreeBSD uses GNU C++
11506 ;;
11507 hpux9* | hpux10* | hpux11*)
11508 case $cc_basename in
11509 CC*)
11510 lt_prog_compiler_wl_CXX='-Wl,'
11511 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11512 if test "$host_cpu" != ia64; then
11513 lt_prog_compiler_pic_CXX='+Z'
11514 fi
11515 ;;
11516 aCC*)
11517 lt_prog_compiler_wl_CXX='-Wl,'
11518 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11519 case $host_cpu in
11520 hppa*64*|ia64*)
11521 # +Z the default
11522 ;;
11523 *)
11524 lt_prog_compiler_pic_CXX='+Z'
11525 ;;
11526 esac
11527 ;;
11528 *)
11529 ;;
11530 esac
11531 ;;
11532 interix*)
11533 # This is c89, which is MS Visual C++ (no shared libs)
11534 # Anyone wants to do a port?
11535 ;;
11536 irix5* | irix6* | nonstopux*)
11537 case $cc_basename in
11538 CC*)
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_static_CXX='-non_shared'
11541 # CC pic flag -KPIC is the default.
11542 ;;
11543 *)
11544 ;;
11545 esac
11546 ;;
11547 linux*)
11548 case $cc_basename in
11549 KCC*)
11550 # KAI C++ Compiler
11551 lt_prog_compiler_wl_CXX='--backend -Wl,'
11552 lt_prog_compiler_pic_CXX='-fPIC'
11553 ;;
11554 icpc* | ecpc*)
11555 # Intel C++
11556 lt_prog_compiler_wl_CXX='-Wl,'
11557 lt_prog_compiler_pic_CXX='-KPIC'
11558 lt_prog_compiler_static_CXX='-static'
11559 ;;
11560 pgCC*)
11561 # Portland Group C++ compiler.
11562 lt_prog_compiler_wl_CXX='-Wl,'
11563 lt_prog_compiler_pic_CXX='-fpic'
11564 lt_prog_compiler_static_CXX='-Bstatic'
11565 ;;
11566 cxx*)
11567 # Compaq C++
11568 # Make sure the PIC flag is empty. It appears that all Alpha
11569 # Linux and Compaq Tru64 Unix objects are PIC.
11570 lt_prog_compiler_pic_CXX=
11571 lt_prog_compiler_static_CXX='-non_shared'
11572 ;;
11573 *)
11574 ;;
11575 esac
11576 ;;
11577 lynxos*)
11578 ;;
11579 m88k*)
11580 ;;
11581 mvs*)
11582 case $cc_basename in
11583 cxx*)
11584 lt_prog_compiler_pic_CXX='-W c,exportall'
11585 ;;
11586 *)
11587 ;;
11588 esac
11589 ;;
11590 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11591 ;;
11592 osf3* | osf4* | osf5*)
11593 case $cc_basename in
11594 KCC*)
11595 lt_prog_compiler_wl_CXX='--backend -Wl,'
11596 ;;
11597 RCC*)
11598 # Rational C++ 2.4.1
11599 lt_prog_compiler_pic_CXX='-pic'
11600 ;;
11601 cxx*)
11602 # Digital/Compaq C++
11603 lt_prog_compiler_wl_CXX='-Wl,'
11604 # Make sure the PIC flag is empty. It appears that all Alpha
11605 # Linux and Compaq Tru64 Unix objects are PIC.
11606 lt_prog_compiler_pic_CXX=
11607 lt_prog_compiler_static_CXX='-non_shared'
11608 ;;
11609 *)
11610 ;;
11611 esac
11612 ;;
11613 psos*)
11614 ;;
11615 solaris*)
11616 case $cc_basename in
11617 CC*)
11618 # Sun C++ 4.2, 5.x and Centerline C++
11619 lt_prog_compiler_pic_CXX='-KPIC'
11620 lt_prog_compiler_static_CXX='-Bstatic'
11621 lt_prog_compiler_wl_CXX='-Qoption ld '
11622 ;;
11623 gcx*)
11624 # Green Hills C++ Compiler
11625 lt_prog_compiler_pic_CXX='-PIC'
11626 ;;
11627 *)
11628 ;;
11629 esac
11630 ;;
11631 sunos4*)
11632 case $cc_basename in
11633 CC*)
11634 # Sun C++ 4.x
11635 lt_prog_compiler_pic_CXX='-pic'
11636 lt_prog_compiler_static_CXX='-Bstatic'
11637 ;;
11638 lcc*)
11639 # Lucid
11640 lt_prog_compiler_pic_CXX='-pic'
11641 ;;
11642 *)
11643 ;;
11644 esac
11645 ;;
11646 tandem*)
11647 case $cc_basename in
11648 NCC*)
11649 # NonStop-UX NCC 3.20
11650 lt_prog_compiler_pic_CXX='-KPIC'
11651 ;;
11652 *)
11653 ;;
11654 esac
11655 ;;
11656 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11657 case $cc_basename in
11658 CC*)
11659 lt_prog_compiler_wl_CXX='-Wl,'
11660 lt_prog_compiler_pic_CXX='-KPIC'
11661 lt_prog_compiler_static_CXX='-Bstatic'
11662 ;;
11663 esac
11664 ;;
11665 vxworks*)
11666 ;;
11667 *)
11668 lt_prog_compiler_can_build_shared_CXX=no
11669 ;;
11670 esac
11671 fi
11673 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11674 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11677 # Check to make sure the PIC flag actually works.
11679 if test -n "$lt_prog_compiler_pic_CXX"; then
11681 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11682 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11683 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686 lt_prog_compiler_pic_works_CXX=no
11687 ac_outfile=conftest.$ac_objext
11688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11689 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11690 # Insert the option either (1) after the last *FLAGS variable, or
11691 # (2) before a word containing "conftest.", or (3) at the end.
11692 # Note that $ac_compile itself does not contain backslashes and begins
11693 # with a dollar sign (not a hyphen), so the echo should work correctly.
11694 # The option is referenced via a variable to avoid confusing sed.
11695 lt_compile=`echo "$ac_compile" | $SED \
11696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11698 -e 's:$: $lt_compiler_flag:'`
11699 (eval echo "\"\$as_me:11699: $lt_compile\"" >&5)
11700 (eval "$lt_compile" 2>conftest.err)
11701 ac_status=$?
11702 cat conftest.err >&5
11703 echo "$as_me:11703: \$? = $ac_status" >&5
11704 if (exit $ac_status) && test -s "$ac_outfile"; then
11705 # The compiler can only warn and ignore the option if not recognized
11706 # So say no if there are warnings other than the usual output.
11707 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11710 lt_prog_compiler_pic_works_CXX=yes
11711 fi
11712 fi
11713 $rm conftest*
11715 fi
11716 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11717 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11719 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11720 case $lt_prog_compiler_pic_CXX in
11721 "" | " "*) ;;
11722 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11723 esac
11724 else
11725 lt_prog_compiler_pic_CXX=
11726 lt_prog_compiler_can_build_shared_CXX=no
11727 fi
11729 fi
11730 case $host_os in
11731 # For platforms which do not support PIC, -DPIC is meaningless:
11732 *djgpp*)
11733 lt_prog_compiler_pic_CXX=
11734 ;;
11735 *)
11736 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11737 ;;
11738 esac
11741 # Check to make sure the static flag actually works.
11743 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11744 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11745 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11746 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749 lt_prog_compiler_static_works_CXX=no
11750 save_LDFLAGS="$LDFLAGS"
11751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11752 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11754 # The linker can only warn and ignore the option if not recognized
11755 # So say no if there are warnings
11756 if test -s conftest.err; then
11757 # Append any errors to the config.log.
11758 cat conftest.err 1>&5
11759 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11761 if diff conftest.exp conftest.er2 >/dev/null; then
11762 lt_prog_compiler_static_works_CXX=yes
11763 fi
11764 else
11765 lt_prog_compiler_static_works_CXX=yes
11766 fi
11767 fi
11768 $rm conftest*
11769 LDFLAGS="$save_LDFLAGS"
11771 fi
11772 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11773 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11775 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11777 else
11778 lt_prog_compiler_static_CXX=
11779 fi
11782 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11783 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11784 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787 lt_cv_prog_compiler_c_o_CXX=no
11788 $rm -r conftest 2>/dev/null
11789 mkdir conftest
11790 cd conftest
11791 mkdir out
11792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11794 lt_compiler_flag="-o out/conftest2.$ac_objext"
11795 # Insert the option either (1) after the last *FLAGS variable, or
11796 # (2) before a word containing "conftest.", or (3) at the end.
11797 # Note that $ac_compile itself does not contain backslashes and begins
11798 # with a dollar sign (not a hyphen), so the echo should work correctly.
11799 lt_compile=`echo "$ac_compile" | $SED \
11800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11802 -e 's:$: $lt_compiler_flag:'`
11803 (eval echo "\"\$as_me:11803: $lt_compile\"" >&5)
11804 (eval "$lt_compile" 2>out/conftest.err)
11805 ac_status=$?
11806 cat out/conftest.err >&5
11807 echo "$as_me:11807: \$? = $ac_status" >&5
11808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11809 then
11810 # The compiler can only warn and ignore the option if not recognized
11811 # So say no if there are warnings
11812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11815 lt_cv_prog_compiler_c_o_CXX=yes
11816 fi
11817 fi
11818 chmod u+w . 2>&5
11819 $rm conftest*
11820 # SGI C++ compiler will create directory out/ii_files/ for
11821 # template instantiation
11822 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11823 $rm out/* && rmdir out
11824 cd ..
11825 rmdir conftest
11826 $rm conftest*
11828 fi
11829 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11830 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11833 hard_links="nottested"
11834 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11835 # do not overwrite the value of need_locks provided by the user
11836 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11837 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11838 hard_links=yes
11839 $rm conftest*
11840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11841 touch conftest.a
11842 ln conftest.a conftest.b 2>&5 || hard_links=no
11843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11844 echo "$as_me:$LINENO: result: $hard_links" >&5
11845 echo "${ECHO_T}$hard_links" >&6
11846 if test "$hard_links" = no; then
11847 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11848 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11849 need_locks=warn
11850 fi
11851 else
11852 need_locks=no
11853 fi
11855 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11856 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11858 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11859 case $host_os in
11860 aix4* | aix5*)
11861 # If we're using GNU nm, then we don't want the "-C" option.
11862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11864 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'
11865 else
11866 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'
11867 fi
11868 ;;
11869 pw32*)
11870 export_symbols_cmds_CXX="$ltdll_cmds"
11871 ;;
11872 cygwin* | mingw*)
11873 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'
11874 ;;
11875 kfreebsd*-gnu)
11876 link_all_deplibs_CXX=no
11877 ;;
11878 linux*)
11879 link_all_deplibs_CXX=no
11880 ;;
11881 *)
11882 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11883 ;;
11884 esac
11886 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11887 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11888 test "$ld_shlibs_CXX" = no && can_build_shared=no
11891 # Do we need to explicitly link libc?
11893 case "x$archive_cmds_need_lc_CXX" in
11894 x|xyes)
11895 # Assume -lc should be added
11896 archive_cmds_need_lc_CXX=yes
11898 if test "$enable_shared" = yes && test "$GCC" = yes; then
11899 case $archive_cmds_CXX in
11900 *'~'*)
11901 # FIXME: we may have to deal with multi-command sequences.
11902 ;;
11903 '$CC '*)
11904 # Test whether the compiler implicitly links with -lc since on some
11905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11906 # to ld, don't add -lc before -lgcc.
11907 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11908 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11909 $rm conftest*
11910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913 (eval $ac_compile) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } 2>conftest.err; then
11917 soname=conftest
11918 lib=conftest
11919 libobjs=conftest.$ac_objext
11920 deplibs=
11921 wl=$lt_prog_compiler_wl_CXX
11922 pic_flag=$lt_prog_compiler_pic_CXX
11923 compiler_flags=-v
11924 linker_flags=-v
11925 verstring=
11926 output_objdir=.
11927 libname=conftest
11928 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11929 allow_undefined_flag_CXX=
11930 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11931 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }
11935 then
11936 archive_cmds_need_lc_CXX=no
11937 else
11938 archive_cmds_need_lc_CXX=yes
11939 fi
11940 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11941 else
11942 cat conftest.err 1>&5
11943 fi
11944 $rm conftest*
11945 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11946 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11947 ;;
11948 esac
11949 fi
11950 ;;
11951 esac
11953 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11954 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11955 library_names_spec=
11956 libname_spec='lib$name'
11957 soname_spec=
11958 shrext_cmds=".so"
11959 postinstall_cmds=
11960 postuninstall_cmds=
11961 finish_cmds=
11962 finish_eval=
11963 shlibpath_var=
11964 shlibpath_overrides_runpath=unknown
11965 version_type=none
11966 dynamic_linker="$host_os ld.so"
11967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11968 if test "$GCC" = yes; then
11969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11970 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11971 # if the path contains ";" then we assume it to be the separator
11972 # otherwise default to the standard path separator (i.e. ":") - it is
11973 # assumed that no part of a normal pathname contains ";" but that should
11974 # okay in the real world where ";" in dirpaths is itself problematic.
11975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11976 else
11977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11978 fi
11979 else
11980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11981 fi
11982 need_lib_prefix=unknown
11983 hardcode_into_libs=no
11985 # when you set need_version to no, make sure it does not cause -set_version
11986 # flags to be left without arguments
11987 need_version=unknown
11989 case $host_os in
11990 aix3*)
11991 version_type=linux
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11993 shlibpath_var=LIBPATH
11995 # AIX 3 has no versioning support, so we append a major version to the name.
11996 soname_spec='${libname}${release}${shared_ext}$major'
11997 ;;
11999 aix4* | aix5*)
12000 version_type=linux
12001 need_lib_prefix=no
12002 need_version=no
12003 hardcode_into_libs=yes
12004 if test "$host_cpu" = ia64; then
12005 # AIX 5 supports IA64
12006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12007 shlibpath_var=LD_LIBRARY_PATH
12008 else
12009 # With GCC up to 2.95.x, collect2 would create an import file
12010 # for dependence libraries. The import file would start with
12011 # the line `#! .'. This would cause the generated library to
12012 # depend on `.', always an invalid library. This was fixed in
12013 # development snapshots of GCC prior to 3.0.
12014 case $host_os in
12015 aix4 | aix4.[01] | aix4.[01].*)
12016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12017 echo ' yes '
12018 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12020 else
12021 can_build_shared=no
12022 fi
12023 ;;
12024 esac
12025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12026 # soname into executable. Probably we can add versioning support to
12027 # collect2, so additional links can be useful in future.
12028 if test "$aix_use_runtimelinking" = yes; then
12029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12030 # instead of lib<name>.a to let people know that these are not
12031 # typical AIX shared libraries.
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033 else
12034 # We preserve .a as extension for shared libraries through AIX4.2
12035 # and later when we are not doing run time linking.
12036 library_names_spec='${libname}${release}.a $libname.a'
12037 soname_spec='${libname}${release}${shared_ext}$major'
12038 fi
12039 shlibpath_var=LIBPATH
12040 fi
12041 ;;
12043 amigaos*)
12044 library_names_spec='$libname.ixlibrary $libname.a'
12045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12046 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'
12047 ;;
12049 beos*)
12050 library_names_spec='${libname}${shared_ext}'
12051 dynamic_linker="$host_os ld.so"
12052 shlibpath_var=LIBRARY_PATH
12053 ;;
12055 bsdi[45]*)
12056 version_type=linux
12057 need_version=no
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059 soname_spec='${libname}${release}${shared_ext}$major'
12060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12064 # the default ld.so.conf also contains /usr/contrib/lib and
12065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12066 # libtool to hard-code these into programs
12067 ;;
12069 cygwin* | mingw* | pw32*)
12070 version_type=windows
12071 shrext_cmds=".dll"
12072 need_version=no
12073 need_lib_prefix=no
12075 case $GCC,$host_os in
12076 yes,cygwin* | yes,mingw* | yes,pw32*)
12077 library_names_spec='$libname.dll.a'
12078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12079 postinstall_cmds='base_file=`basename \${file}`~
12080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12081 dldir=$destdir/`dirname \$dlpath`~
12082 test -d \$dldir || mkdir -p \$dldir~
12083 $install_prog $dir/$dlname \$dldir/$dlname~
12084 chmod a+x \$dldir/$dlname'
12085 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12086 dlpath=$dir/\$dldll~
12087 $rm \$dlpath'
12088 shlibpath_overrides_runpath=yes
12090 case $host_os in
12091 cygwin*)
12092 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12093 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12094 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12095 ;;
12096 mingw*)
12097 # MinGW DLLs use traditional 'lib' prefix
12098 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12099 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12100 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12101 # It is most probably a Windows format PATH printed by
12102 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12103 # path with ; separators, and with drive letters. We can handle the
12104 # drive letters (cygwin fileutils understands them), so leave them,
12105 # especially as we might pass files found there to a mingw objdump,
12106 # which wouldn't understand a cygwinified path. Ahh.
12107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12108 else
12109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12110 fi
12111 ;;
12112 pw32*)
12113 # pw32 DLLs use 'pw' prefix rather than 'lib'
12114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12115 ;;
12116 esac
12117 ;;
12119 *)
12120 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12121 ;;
12122 esac
12123 dynamic_linker='Win32 ld.exe'
12124 # FIXME: first we should search . and the directory the executable is in
12125 shlibpath_var=PATH
12126 ;;
12128 darwin* | rhapsody*)
12129 dynamic_linker="$host_os dyld"
12130 version_type=darwin
12131 need_lib_prefix=no
12132 need_version=no
12133 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12134 soname_spec='${libname}${release}${major}$shared_ext'
12135 shlibpath_overrides_runpath=yes
12136 shlibpath_var=DYLD_LIBRARY_PATH
12137 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12138 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12139 if test "$GCC" = yes; then
12140 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"`
12141 else
12142 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12143 fi
12144 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12145 ;;
12147 dgux*)
12148 version_type=linux
12149 need_lib_prefix=no
12150 need_version=no
12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12152 soname_spec='${libname}${release}${shared_ext}$major'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 ;;
12156 freebsd1*)
12157 dynamic_linker=no
12158 ;;
12160 kfreebsd*-gnu)
12161 version_type=linux
12162 need_lib_prefix=no
12163 need_version=no
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12165 soname_spec='${libname}${release}${shared_ext}$major'
12166 shlibpath_var=LD_LIBRARY_PATH
12167 shlibpath_overrides_runpath=no
12168 hardcode_into_libs=yes
12169 dynamic_linker='GNU ld.so'
12170 ;;
12172 freebsd* | dragonfly*)
12173 # DragonFly does not have aout. When/if they implement a new
12174 # versioning mechanism, adjust this.
12175 if test -x /usr/bin/objformat; then
12176 objformat=`/usr/bin/objformat`
12177 else
12178 case $host_os in
12179 freebsd[123]*) objformat=aout ;;
12180 *) objformat=elf ;;
12181 esac
12182 fi
12183 version_type=freebsd-$objformat
12184 case $version_type in
12185 freebsd-elf*)
12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12187 need_version=no
12188 need_lib_prefix=no
12189 ;;
12190 freebsd-*)
12191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12192 need_version=yes
12193 ;;
12194 esac
12195 shlibpath_var=LD_LIBRARY_PATH
12196 case $host_os in
12197 freebsd2*)
12198 shlibpath_overrides_runpath=yes
12199 ;;
12200 freebsd3.[01]* | freebsdelf3.[01]*)
12201 shlibpath_overrides_runpath=yes
12202 hardcode_into_libs=yes
12203 ;;
12204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12206 shlibpath_overrides_runpath=no
12207 hardcode_into_libs=yes
12208 ;;
12209 freebsd*) # from 4.6 on
12210 shlibpath_overrides_runpath=yes
12211 hardcode_into_libs=yes
12212 ;;
12213 esac
12214 ;;
12216 gnu*)
12217 version_type=linux
12218 need_lib_prefix=no
12219 need_version=no
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12221 soname_spec='${libname}${release}${shared_ext}$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 hardcode_into_libs=yes
12224 ;;
12226 hpux9* | hpux10* | hpux11*)
12227 # Give a soname corresponding to the major version so that dld.sl refuses to
12228 # link against other versions.
12229 version_type=sunos
12230 need_lib_prefix=no
12231 need_version=no
12232 case $host_cpu in
12233 ia64*)
12234 shrext_cmds='.so'
12235 hardcode_into_libs=yes
12236 dynamic_linker="$host_os dld.so"
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12240 soname_spec='${libname}${release}${shared_ext}$major'
12241 if test "X$HPUX_IA64_MODE" = X32; then
12242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12243 else
12244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12245 fi
12246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12247 ;;
12248 hppa*64*)
12249 shrext_cmds='.sl'
12250 hardcode_into_libs=yes
12251 dynamic_linker="$host_os dld.sl"
12252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12255 soname_spec='${libname}${release}${shared_ext}$major'
12256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12258 ;;
12259 *)
12260 shrext_cmds='.sl'
12261 dynamic_linker="$host_os dld.sl"
12262 shlibpath_var=SHLIB_PATH
12263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 ;;
12267 esac
12268 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12269 postinstall_cmds='chmod 555 $lib'
12270 ;;
12272 interix3*)
12273 version_type=linux
12274 need_lib_prefix=no
12275 need_version=no
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12277 soname_spec='${libname}${release}${shared_ext}$major'
12278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath=no
12281 hardcode_into_libs=yes
12282 ;;
12284 irix5* | irix6* | nonstopux*)
12285 case $host_os in
12286 nonstopux*) version_type=nonstopux ;;
12287 *)
12288 if test "$lt_cv_prog_gnu_ld" = yes; then
12289 version_type=linux
12290 else
12291 version_type=irix
12292 fi ;;
12293 esac
12294 need_lib_prefix=no
12295 need_version=no
12296 soname_spec='${libname}${release}${shared_ext}$major'
12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12298 case $host_os in
12299 irix5* | nonstopux*)
12300 libsuff= shlibsuff=
12301 ;;
12302 *)
12303 case $LD in # libtool.m4 will add one of these switches to LD
12304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12305 libsuff= shlibsuff= libmagic=32-bit;;
12306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12307 libsuff=32 shlibsuff=N32 libmagic=N32;;
12308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12310 *) libsuff= shlibsuff= libmagic=never-match;;
12311 esac
12312 ;;
12313 esac
12314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12315 shlibpath_overrides_runpath=no
12316 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12317 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12318 hardcode_into_libs=yes
12319 ;;
12321 # No shared lib support for Linux oldld, aout, or coff.
12322 linux*oldld* | linux*aout* | linux*coff*)
12323 dynamic_linker=no
12324 ;;
12326 # This must be Linux ELF.
12327 linux*)
12328 version_type=linux
12329 need_lib_prefix=no
12330 need_version=no
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12332 soname_spec='${libname}${release}${shared_ext}$major'
12333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12334 shlibpath_var=LD_LIBRARY_PATH
12335 shlibpath_overrides_runpath=no
12336 # This implies no fast_install, which is unacceptable.
12337 # Some rework will be needed to allow for fast_install
12338 # before this can be enabled.
12339 hardcode_into_libs=yes
12341 # Append ld.so.conf contents to the search path
12342 if test -f /etc/ld.so.conf; then
12343 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12345 fi
12347 # We used to test for /lib/ld.so.1 and disable shared libraries on
12348 # powerpc, because MkLinux only supported shared libraries with the
12349 # GNU dynamic linker. Since this was broken with cross compilers,
12350 # most powerpc-linux boxes support dynamic linking these days and
12351 # people can always --disable-shared, the test was removed, and we
12352 # assume the GNU/Linux dynamic linker is in use.
12353 dynamic_linker='GNU/Linux ld.so'
12354 ;;
12356 netbsdelf*-gnu)
12357 version_type=linux
12358 need_lib_prefix=no
12359 need_version=no
12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12361 soname_spec='${libname}${release}${shared_ext}$major'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 shlibpath_overrides_runpath=no
12364 hardcode_into_libs=yes
12365 dynamic_linker='NetBSD ld.elf_so'
12366 ;;
12368 knetbsd*-gnu)
12369 version_type=linux
12370 need_lib_prefix=no
12371 need_version=no
12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12373 soname_spec='${libname}${release}${shared_ext}$major'
12374 shlibpath_var=LD_LIBRARY_PATH
12375 shlibpath_overrides_runpath=no
12376 hardcode_into_libs=yes
12377 dynamic_linker='GNU ld.so'
12378 ;;
12380 netbsd*)
12381 version_type=sunos
12382 need_lib_prefix=no
12383 need_version=no
12384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12387 dynamic_linker='NetBSD (a.out) ld.so'
12388 else
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12390 soname_spec='${libname}${release}${shared_ext}$major'
12391 dynamic_linker='NetBSD ld.elf_so'
12392 fi
12393 shlibpath_var=LD_LIBRARY_PATH
12394 shlibpath_overrides_runpath=yes
12395 hardcode_into_libs=yes
12396 ;;
12398 newsos6)
12399 version_type=linux
12400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=yes
12403 ;;
12405 nto-qnx*)
12406 version_type=linux
12407 need_lib_prefix=no
12408 need_version=no
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410 soname_spec='${libname}${release}${shared_ext}$major'
12411 shlibpath_var=LD_LIBRARY_PATH
12412 shlibpath_overrides_runpath=yes
12413 ;;
12415 openbsd*)
12416 version_type=sunos
12417 sys_lib_dlsearch_path_spec="/usr/lib"
12418 need_lib_prefix=no
12419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12420 case $host_os in
12421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12422 *) need_version=no ;;
12423 esac
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12426 shlibpath_var=LD_LIBRARY_PATH
12427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12428 case $host_os in
12429 openbsd2.[89] | openbsd2.[89].*)
12430 shlibpath_overrides_runpath=no
12431 ;;
12432 *)
12433 shlibpath_overrides_runpath=yes
12434 ;;
12435 esac
12436 else
12437 shlibpath_overrides_runpath=yes
12438 fi
12439 ;;
12441 os2*)
12442 libname_spec='$name'
12443 shrext_cmds=".dll"
12444 need_lib_prefix=no
12445 library_names_spec='$libname${shared_ext} $libname.a'
12446 dynamic_linker='OS/2 ld.exe'
12447 shlibpath_var=LIBPATH
12448 ;;
12450 osf3* | osf4* | osf5*)
12451 version_type=osf
12452 need_lib_prefix=no
12453 need_version=no
12454 soname_spec='${libname}${release}${shared_ext}$major'
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12459 ;;
12461 solaris*)
12462 version_type=linux
12463 need_lib_prefix=no
12464 need_version=no
12465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12466 soname_spec='${libname}${release}${shared_ext}$major'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 shlibpath_overrides_runpath=yes
12469 hardcode_into_libs=yes
12470 # ldd complains unless libraries are executable
12471 postinstall_cmds='chmod +x $lib'
12472 ;;
12474 sunos4*)
12475 version_type=sunos
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12478 shlibpath_var=LD_LIBRARY_PATH
12479 shlibpath_overrides_runpath=yes
12480 if test "$with_gnu_ld" = yes; then
12481 need_lib_prefix=no
12482 fi
12483 need_version=yes
12484 ;;
12486 sysv4 | sysv4.3*)
12487 version_type=linux
12488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12489 soname_spec='${libname}${release}${shared_ext}$major'
12490 shlibpath_var=LD_LIBRARY_PATH
12491 case $host_vendor in
12492 sni)
12493 shlibpath_overrides_runpath=no
12494 need_lib_prefix=no
12495 export_dynamic_flag_spec='${wl}-Blargedynsym'
12496 runpath_var=LD_RUN_PATH
12497 ;;
12498 siemens)
12499 need_lib_prefix=no
12500 ;;
12501 motorola)
12502 need_lib_prefix=no
12503 need_version=no
12504 shlibpath_overrides_runpath=no
12505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12506 ;;
12507 esac
12508 ;;
12510 sysv4*MP*)
12511 if test -d /usr/nec ;then
12512 version_type=linux
12513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12514 soname_spec='$libname${shared_ext}.$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 fi
12517 ;;
12519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12520 version_type=freebsd-elf
12521 need_lib_prefix=no
12522 need_version=no
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 hardcode_into_libs=yes
12527 if test "$with_gnu_ld" = yes; then
12528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12529 shlibpath_overrides_runpath=no
12530 else
12531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12532 shlibpath_overrides_runpath=yes
12533 case $host_os in
12534 sco3.2v5*)
12535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12536 ;;
12537 esac
12538 fi
12539 sys_lib_dlsearch_path_spec='/usr/lib'
12540 ;;
12542 uts4*)
12543 version_type=linux
12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 ;;
12549 *)
12550 dynamic_linker=no
12551 ;;
12552 esac
12553 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12554 echo "${ECHO_T}$dynamic_linker" >&6
12555 test "$dynamic_linker" = no && can_build_shared=no
12557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12558 if test "$GCC" = yes; then
12559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12560 fi
12562 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12564 hardcode_action_CXX=
12565 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12566 test -n "$runpath_var_CXX" || \
12567 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12569 # We can hardcode non-existant directories.
12570 if test "$hardcode_direct_CXX" != no &&
12571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12572 # have to relink, otherwise we might link with an installed library
12573 # when we should be linking with a yet-to-be-installed one
12574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12575 test "$hardcode_minus_L_CXX" != no; then
12576 # Linking always hardcodes the temporary library directory.
12577 hardcode_action_CXX=relink
12578 else
12579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12580 hardcode_action_CXX=immediate
12581 fi
12582 else
12583 # We cannot hardcode anything, or else we can only hardcode existing
12584 # directories.
12585 hardcode_action_CXX=unsupported
12586 fi
12587 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12588 echo "${ECHO_T}$hardcode_action_CXX" >&6
12590 if test "$hardcode_action_CXX" = relink; then
12591 # Fast installation is not supported
12592 enable_fast_install=no
12593 elif test "$shlibpath_overrides_runpath" = yes ||
12594 test "$enable_shared" = no; then
12595 # Fast installation is not necessary
12596 enable_fast_install=needless
12597 fi
12600 # The else clause should only fire when bootstrapping the
12601 # libtool distribution, otherwise you forgot to ship ltmain.sh
12602 # with your package, and you will get complaints that there are
12603 # no rules to generate ltmain.sh.
12604 if test -f "$ltmain"; then
12605 # See if we are running on zsh, and set the options which allow our commands through
12606 # without removal of \ escapes.
12607 if test -n "${ZSH_VERSION+set}" ; then
12608 setopt NO_GLOB_SUBST
12609 fi
12610 # Now quote all the things that may contain metacharacters while being
12611 # careful not to overquote the AC_SUBSTed values. We take copies of the
12612 # variables and quote the copies for generation of the libtool script.
12613 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12614 SED SHELL STRIP \
12615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12617 deplibs_check_method reload_flag reload_cmds need_locks \
12618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12619 lt_cv_sys_global_symbol_to_c_name_address \
12620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12621 old_postinstall_cmds old_postuninstall_cmds \
12622 compiler_CXX \
12623 CC_CXX \
12624 LD_CXX \
12625 lt_prog_compiler_wl_CXX \
12626 lt_prog_compiler_pic_CXX \
12627 lt_prog_compiler_static_CXX \
12628 lt_prog_compiler_no_builtin_flag_CXX \
12629 export_dynamic_flag_spec_CXX \
12630 thread_safe_flag_spec_CXX \
12631 whole_archive_flag_spec_CXX \
12632 enable_shared_with_static_runtimes_CXX \
12633 old_archive_cmds_CXX \
12634 old_archive_from_new_cmds_CXX \
12635 predep_objects_CXX \
12636 postdep_objects_CXX \
12637 predeps_CXX \
12638 postdeps_CXX \
12639 compiler_lib_search_path_CXX \
12640 archive_cmds_CXX \
12641 archive_expsym_cmds_CXX \
12642 postinstall_cmds_CXX \
12643 postuninstall_cmds_CXX \
12644 old_archive_from_expsyms_cmds_CXX \
12645 allow_undefined_flag_CXX \
12646 no_undefined_flag_CXX \
12647 export_symbols_cmds_CXX \
12648 hardcode_libdir_flag_spec_CXX \
12649 hardcode_libdir_flag_spec_ld_CXX \
12650 hardcode_libdir_separator_CXX \
12651 hardcode_automatic_CXX \
12652 module_cmds_CXX \
12653 module_expsym_cmds_CXX \
12654 lt_cv_prog_compiler_c_o_CXX \
12655 exclude_expsyms_CXX \
12656 include_expsyms_CXX; do
12658 case $var in
12659 old_archive_cmds_CXX | \
12660 old_archive_from_new_cmds_CXX | \
12661 archive_cmds_CXX | \
12662 archive_expsym_cmds_CXX | \
12663 module_cmds_CXX | \
12664 module_expsym_cmds_CXX | \
12665 old_archive_from_expsyms_cmds_CXX | \
12666 export_symbols_cmds_CXX | \
12667 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12668 postinstall_cmds | postuninstall_cmds | \
12669 old_postinstall_cmds | old_postuninstall_cmds | \
12670 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12671 # Double-quote double-evaled strings.
12672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12673 ;;
12674 *)
12675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12676 ;;
12677 esac
12678 done
12680 case $lt_echo in
12681 *'\$0 --fallback-echo"')
12682 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12683 ;;
12684 esac
12686 cfgfile="$ofile"
12688 cat <<__EOF__ >> "$cfgfile"
12689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12693 # Shell to use when invoking shell scripts.
12694 SHELL=$lt_SHELL
12696 # Whether or not to build shared libraries.
12697 build_libtool_libs=$enable_shared
12699 # Whether or not to build static libraries.
12700 build_old_libs=$enable_static
12702 # Whether or not to add -lc for building shared libraries.
12703 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12705 # Whether or not to disallow shared libs when runtime libs are static
12706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12708 # Whether or not to optimize for fast installation.
12709 fast_install=$enable_fast_install
12711 # The host system.
12712 host_alias=$host_alias
12713 host=$host
12714 host_os=$host_os
12716 # The build system.
12717 build_alias=$build_alias
12718 build=$build
12719 build_os=$build_os
12721 # An echo program that does not interpret backslashes.
12722 echo=$lt_echo
12724 # The archiver.
12725 AR=$lt_AR
12726 AR_FLAGS=$lt_AR_FLAGS
12728 # A C compiler.
12729 LTCC=$lt_LTCC
12731 # LTCC compiler flags.
12732 LTCFLAGS=$lt_LTCFLAGS
12734 # A language-specific compiler.
12735 CC=$lt_compiler_CXX
12737 # Is the compiler the GNU C compiler?
12738 with_gcc=$GCC_CXX
12740 # An ERE matcher.
12741 EGREP=$lt_EGREP
12743 # The linker used to build libraries.
12744 LD=$lt_LD_CXX
12746 # Whether we need hard or soft links.
12747 LN_S=$lt_LN_S
12749 # A BSD-compatible nm program.
12750 NM=$lt_NM
12752 # A symbol stripping program
12753 STRIP=$lt_STRIP
12755 # Used to examine libraries when file_magic_cmd begins "file"
12756 MAGIC_CMD=$MAGIC_CMD
12758 # Used on cygwin: DLL creation program.
12759 DLLTOOL="$DLLTOOL"
12761 # Used on cygwin: object dumper.
12762 OBJDUMP="$OBJDUMP"
12764 # Used on cygwin: assembler.
12765 AS="$AS"
12767 # The name of the directory that contains temporary libtool files.
12768 objdir=$objdir
12770 # How to create reloadable object files.
12771 reload_flag=$lt_reload_flag
12772 reload_cmds=$lt_reload_cmds
12774 # How to pass a linker flag through the compiler.
12775 wl=$lt_lt_prog_compiler_wl_CXX
12777 # Object file suffix (normally "o").
12778 objext="$ac_objext"
12780 # Old archive suffix (normally "a").
12781 libext="$libext"
12783 # Shared library suffix (normally ".so").
12784 shrext_cmds='$shrext_cmds'
12786 # Executable file suffix (normally "").
12787 exeext="$exeext"
12789 # Additional compiler flags for building library objects.
12790 pic_flag=$lt_lt_prog_compiler_pic_CXX
12791 pic_mode=$pic_mode
12793 # What is the maximum length of a command?
12794 max_cmd_len=$lt_cv_sys_max_cmd_len
12796 # Does compiler simultaneously support -c and -o options?
12797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12799 # Must we lock files when doing compilation?
12800 need_locks=$lt_need_locks
12802 # Do we need the lib prefix for modules?
12803 need_lib_prefix=$need_lib_prefix
12805 # Do we need a version for libraries?
12806 need_version=$need_version
12808 # Whether dlopen is supported.
12809 dlopen_support=$enable_dlopen
12811 # Whether dlopen of programs is supported.
12812 dlopen_self=$enable_dlopen_self
12814 # Whether dlopen of statically linked programs is supported.
12815 dlopen_self_static=$enable_dlopen_self_static
12817 # Compiler flag to prevent dynamic linking.
12818 link_static_flag=$lt_lt_prog_compiler_static_CXX
12820 # Compiler flag to turn off builtin functions.
12821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12823 # Compiler flag to allow reflexive dlopens.
12824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12826 # Compiler flag to generate shared objects directly from archives.
12827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12829 # Compiler flag to generate thread-safe objects.
12830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12832 # Library versioning type.
12833 version_type=$version_type
12835 # Format of library name prefix.
12836 libname_spec=$lt_libname_spec
12838 # List of archive names. First name is the real one, the rest are links.
12839 # The last name is the one that the linker finds with -lNAME.
12840 library_names_spec=$lt_library_names_spec
12842 # The coded name of the library, if different from the real name.
12843 soname_spec=$lt_soname_spec
12845 # Commands used to build and install an old-style archive.
12846 RANLIB=$lt_RANLIB
12847 old_archive_cmds=$lt_old_archive_cmds_CXX
12848 old_postinstall_cmds=$lt_old_postinstall_cmds
12849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12851 # Create an old-style archive from a shared archive.
12852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12854 # Create a temporary old-style archive to link instead of a shared archive.
12855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12857 # Commands used to build and install a shared archive.
12858 archive_cmds=$lt_archive_cmds_CXX
12859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12860 postinstall_cmds=$lt_postinstall_cmds
12861 postuninstall_cmds=$lt_postuninstall_cmds
12863 # Commands used to build a loadable module (assumed same as above if empty)
12864 module_cmds=$lt_module_cmds_CXX
12865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12867 # Commands to strip libraries.
12868 old_striplib=$lt_old_striplib
12869 striplib=$lt_striplib
12871 # Dependencies to place before the objects being linked to create a
12872 # shared library.
12873 predep_objects=$lt_predep_objects_CXX
12875 # Dependencies to place after the objects being linked to create a
12876 # shared library.
12877 postdep_objects=$lt_postdep_objects_CXX
12879 # Dependencies to place before the objects being linked to create a
12880 # shared library.
12881 predeps=$lt_predeps_CXX
12883 # Dependencies to place after the objects being linked to create a
12884 # shared library.
12885 postdeps=$lt_postdeps_CXX
12887 # The library search path used internally by the compiler when linking
12888 # a shared library.
12889 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12891 # Method to check whether dependent libraries are shared objects.
12892 deplibs_check_method=$lt_deplibs_check_method
12894 # Command to use when deplibs_check_method == file_magic.
12895 file_magic_cmd=$lt_file_magic_cmd
12897 # Flag that allows shared libraries with undefined symbols to be built.
12898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12900 # Flag that forces no undefined symbols.
12901 no_undefined_flag=$lt_no_undefined_flag_CXX
12903 # Commands used to finish a libtool library installation in a directory.
12904 finish_cmds=$lt_finish_cmds
12906 # Same as above, but a single script fragment to be evaled but not shown.
12907 finish_eval=$lt_finish_eval
12909 # Take the output of nm and produce a listing of raw symbols and C names.
12910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12912 # Transform the output of nm in a proper C declaration
12913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12915 # Transform the output of nm in a C name address pair
12916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12918 # This is the shared library runtime path variable.
12919 runpath_var=$runpath_var
12921 # This is the shared library path variable.
12922 shlibpath_var=$shlibpath_var
12924 # Is shlibpath searched before the hard-coded library search path?
12925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12927 # How to hardcode a shared library path into an executable.
12928 hardcode_action=$hardcode_action_CXX
12930 # Whether we should hardcode library paths into libraries.
12931 hardcode_into_libs=$hardcode_into_libs
12933 # Flag to hardcode \$libdir into a binary during linking.
12934 # This must work even if \$libdir does not exist.
12935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12937 # If ld is used when linking, flag to hardcode \$libdir into
12938 # a binary during linking. This must work even if \$libdir does
12939 # not exist.
12940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12942 # Whether we need a single -rpath flag with a separated argument.
12943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12946 # resulting binary.
12947 hardcode_direct=$hardcode_direct_CXX
12949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12950 # resulting binary.
12951 hardcode_minus_L=$hardcode_minus_L_CXX
12953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12954 # the resulting binary.
12955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12957 # Set to yes if building a shared library automatically hardcodes DIR into the library
12958 # and all subsequent libraries and executables linked against it.
12959 hardcode_automatic=$hardcode_automatic_CXX
12961 # Variables whose values should be saved in libtool wrapper scripts and
12962 # restored at relink time.
12963 variables_saved_for_relink="$variables_saved_for_relink"
12965 # Whether libtool must link a program against all its dependency libraries.
12966 link_all_deplibs=$link_all_deplibs_CXX
12968 # Compile-time system search path for libraries
12969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12971 # Run-time system search path for libraries
12972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12974 # Fix the shell variable \$srcfile for the compiler.
12975 fix_srcfile_path="$fix_srcfile_path_CXX"
12977 # Set to yes if exported symbols are required.
12978 always_export_symbols=$always_export_symbols_CXX
12980 # The commands to list exported symbols.
12981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12983 # The commands to extract the exported symbol list from a shared archive.
12984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12986 # Symbols that should not be listed in the preloaded symbols.
12987 exclude_expsyms=$lt_exclude_expsyms_CXX
12989 # Symbols that must always be exported.
12990 include_expsyms=$lt_include_expsyms_CXX
12992 # ### END LIBTOOL TAG CONFIG: $tagname
12994 __EOF__
12997 else
12998 # If there is no Makefile yet, we rely on a make rule to execute
12999 # `config.status --recheck' to rerun these tests and create the
13000 # libtool script then.
13001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13002 if test -f "$ltmain_in"; then
13003 test -f Makefile && make "$ltmain"
13004 fi
13005 fi
13008 ac_ext=c
13009 ac_cpp='$CPP $CPPFLAGS'
13010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13014 CC=$lt_save_CC
13015 LDCXX=$LD
13016 LD=$lt_save_LD
13017 GCC=$lt_save_GCC
13018 with_gnu_ldcxx=$with_gnu_ld
13019 with_gnu_ld=$lt_save_with_gnu_ld
13020 lt_cv_path_LDCXX=$lt_cv_path_LD
13021 lt_cv_path_LD=$lt_save_path_LD
13022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13025 else
13026 tagname=""
13027 fi
13028 ;;
13030 F77)
13031 if test -n "$F77" && test "X$F77" != "Xno"; then
13033 ac_ext=f
13034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13039 archive_cmds_need_lc_F77=no
13040 allow_undefined_flag_F77=
13041 always_export_symbols_F77=no
13042 archive_expsym_cmds_F77=
13043 export_dynamic_flag_spec_F77=
13044 hardcode_direct_F77=no
13045 hardcode_libdir_flag_spec_F77=
13046 hardcode_libdir_flag_spec_ld_F77=
13047 hardcode_libdir_separator_F77=
13048 hardcode_minus_L_F77=no
13049 hardcode_automatic_F77=no
13050 module_cmds_F77=
13051 module_expsym_cmds_F77=
13052 link_all_deplibs_F77=unknown
13053 old_archive_cmds_F77=$old_archive_cmds
13054 no_undefined_flag_F77=
13055 whole_archive_flag_spec_F77=
13056 enable_shared_with_static_runtimes_F77=no
13058 # Source file extension for f77 test sources.
13059 ac_ext=f
13061 # Object file extension for compiled f77 test sources.
13062 objext=o
13063 objext_F77=$objext
13065 # Code to be used in simple compile tests
13066 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13068 # Code to be used in simple link tests
13069 lt_simple_link_test_code=" program t\n end\n"
13071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13073 # If no C compiler was specified, use CC.
13074 LTCC=${LTCC-"$CC"}
13076 # If no C compiler flags were specified, use CFLAGS.
13077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13079 # Allow CC to be a program name with arguments.
13080 compiler=$CC
13083 # save warnings/boilerplate of simple test code
13084 ac_outfile=conftest.$ac_objext
13085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13087 _lt_compiler_boilerplate=`cat conftest.err`
13088 $rm conftest*
13090 ac_outfile=conftest.$ac_objext
13091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13093 _lt_linker_boilerplate=`cat conftest.err`
13094 $rm conftest*
13097 # Allow CC to be a program name with arguments.
13098 lt_save_CC="$CC"
13099 CC=${F77-"f77"}
13100 compiler=$CC
13101 compiler_F77=$CC
13102 for cc_temp in $compiler""; do
13103 case $cc_temp in
13104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13106 \-*) ;;
13107 *) break;;
13108 esac
13109 done
13110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13113 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13115 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13116 echo "${ECHO_T}$can_build_shared" >&6
13118 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13120 test "$can_build_shared" = "no" && enable_shared=no
13122 # On AIX, shared libraries and static libraries use the same namespace, and
13123 # are all built from PIC.
13124 case $host_os in
13125 aix3*)
13126 test "$enable_shared" = yes && enable_static=no
13127 if test -n "$RANLIB"; then
13128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13129 postinstall_cmds='$RANLIB $lib'
13130 fi
13131 ;;
13132 aix4* | aix5*)
13133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13134 test "$enable_shared" = yes && enable_static=no
13135 fi
13136 ;;
13137 esac
13138 echo "$as_me:$LINENO: result: $enable_shared" >&5
13139 echo "${ECHO_T}$enable_shared" >&6
13141 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13143 # Make sure either enable_shared or enable_static is yes.
13144 test "$enable_shared" = yes || enable_static=yes
13145 echo "$as_me:$LINENO: result: $enable_static" >&5
13146 echo "${ECHO_T}$enable_static" >&6
13148 GCC_F77="$G77"
13149 LD_F77="$LD"
13151 lt_prog_compiler_wl_F77=
13152 lt_prog_compiler_pic_F77=
13153 lt_prog_compiler_static_F77=
13155 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13158 if test "$GCC" = yes; then
13159 lt_prog_compiler_wl_F77='-Wl,'
13160 lt_prog_compiler_static_F77='-static'
13162 case $host_os in
13163 aix*)
13164 # All AIX code is PIC.
13165 if test "$host_cpu" = ia64; then
13166 # AIX 5 now supports IA64 processor
13167 lt_prog_compiler_static_F77='-Bstatic'
13168 fi
13169 ;;
13171 amigaos*)
13172 # FIXME: we need at least 68020 code to build shared libraries, but
13173 # adding the `-m68020' flag to GCC prevents building anything better,
13174 # like `-m68040'.
13175 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13176 ;;
13178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13179 # PIC is the default for these OSes.
13180 ;;
13182 mingw* | pw32* | os2*)
13183 # This hack is so that the source file can tell whether it is being
13184 # built for inclusion in a dll (and should export symbols for example).
13185 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13186 ;;
13188 darwin* | rhapsody*)
13189 # PIC is the default on this platform
13190 # Common symbols not allowed in MH_DYLIB files
13191 lt_prog_compiler_pic_F77='-fno-common'
13192 ;;
13194 interix3*)
13195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13196 # Instead, we relocate shared libraries at runtime.
13197 ;;
13199 msdosdjgpp*)
13200 # Just because we use GCC doesn't mean we suddenly get shared libraries
13201 # on systems that don't support them.
13202 lt_prog_compiler_can_build_shared_F77=no
13203 enable_shared=no
13204 ;;
13206 sysv4*MP*)
13207 if test -d /usr/nec; then
13208 lt_prog_compiler_pic_F77=-Kconform_pic
13209 fi
13210 ;;
13212 hpux*)
13213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13214 # not for PA HP-UX.
13215 case $host_cpu in
13216 hppa*64*|ia64*)
13217 # +Z the default
13218 ;;
13219 *)
13220 lt_prog_compiler_pic_F77='-fPIC'
13221 ;;
13222 esac
13223 ;;
13225 *)
13226 lt_prog_compiler_pic_F77='-fPIC'
13227 ;;
13228 esac
13229 else
13230 # PORTME Check for flag to pass linker flags through the system compiler.
13231 case $host_os in
13232 aix*)
13233 lt_prog_compiler_wl_F77='-Wl,'
13234 if test "$host_cpu" = ia64; then
13235 # AIX 5 now supports IA64 processor
13236 lt_prog_compiler_static_F77='-Bstatic'
13237 else
13238 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13239 fi
13240 ;;
13241 darwin*)
13242 # PIC is the default on this platform
13243 # Common symbols not allowed in MH_DYLIB files
13244 case $cc_basename in
13245 xlc*)
13246 lt_prog_compiler_pic_F77='-qnocommon'
13247 lt_prog_compiler_wl_F77='-Wl,'
13248 ;;
13249 esac
13250 ;;
13252 mingw* | pw32* | os2*)
13253 # This hack is so that the source file can tell whether it is being
13254 # built for inclusion in a dll (and should export symbols for example).
13255 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13256 ;;
13258 hpux9* | hpux10* | hpux11*)
13259 lt_prog_compiler_wl_F77='-Wl,'
13260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13261 # not for PA HP-UX.
13262 case $host_cpu in
13263 hppa*64*|ia64*)
13264 # +Z the default
13265 ;;
13266 *)
13267 lt_prog_compiler_pic_F77='+Z'
13268 ;;
13269 esac
13270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13271 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13272 ;;
13274 irix5* | irix6* | nonstopux*)
13275 lt_prog_compiler_wl_F77='-Wl,'
13276 # PIC (with -KPIC) is the default.
13277 lt_prog_compiler_static_F77='-non_shared'
13278 ;;
13280 newsos6)
13281 lt_prog_compiler_pic_F77='-KPIC'
13282 lt_prog_compiler_static_F77='-Bstatic'
13283 ;;
13285 linux*)
13286 case $cc_basename in
13287 icc* | ecc*)
13288 lt_prog_compiler_wl_F77='-Wl,'
13289 lt_prog_compiler_pic_F77='-KPIC'
13290 lt_prog_compiler_static_F77='-static'
13291 ;;
13292 pgcc* | pgf77* | pgf90* | pgf95*)
13293 # Portland Group compilers (*not* the Pentium gcc compiler,
13294 # which looks to be a dead project)
13295 lt_prog_compiler_wl_F77='-Wl,'
13296 lt_prog_compiler_pic_F77='-fpic'
13297 lt_prog_compiler_static_F77='-Bstatic'
13298 ;;
13299 ccc*)
13300 lt_prog_compiler_wl_F77='-Wl,'
13301 # All Alpha code is PIC.
13302 lt_prog_compiler_static_F77='-non_shared'
13303 ;;
13304 esac
13305 ;;
13307 osf3* | osf4* | osf5*)
13308 lt_prog_compiler_wl_F77='-Wl,'
13309 # All OSF/1 code is PIC.
13310 lt_prog_compiler_static_F77='-non_shared'
13311 ;;
13313 solaris*)
13314 lt_prog_compiler_pic_F77='-KPIC'
13315 lt_prog_compiler_static_F77='-Bstatic'
13316 case $cc_basename in
13317 f77* | f90* | f95*)
13318 lt_prog_compiler_wl_F77='-Qoption ld ';;
13319 *)
13320 lt_prog_compiler_wl_F77='-Wl,';;
13321 esac
13322 ;;
13324 sunos4*)
13325 lt_prog_compiler_wl_F77='-Qoption ld '
13326 lt_prog_compiler_pic_F77='-PIC'
13327 lt_prog_compiler_static_F77='-Bstatic'
13328 ;;
13330 sysv4 | sysv4.2uw2* | sysv4.3*)
13331 lt_prog_compiler_wl_F77='-Wl,'
13332 lt_prog_compiler_pic_F77='-KPIC'
13333 lt_prog_compiler_static_F77='-Bstatic'
13334 ;;
13336 sysv4*MP*)
13337 if test -d /usr/nec ;then
13338 lt_prog_compiler_pic_F77='-Kconform_pic'
13339 lt_prog_compiler_static_F77='-Bstatic'
13340 fi
13341 ;;
13343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13344 lt_prog_compiler_wl_F77='-Wl,'
13345 lt_prog_compiler_pic_F77='-KPIC'
13346 lt_prog_compiler_static_F77='-Bstatic'
13347 ;;
13349 unicos*)
13350 lt_prog_compiler_wl_F77='-Wl,'
13351 lt_prog_compiler_can_build_shared_F77=no
13352 ;;
13354 uts4*)
13355 lt_prog_compiler_pic_F77='-pic'
13356 lt_prog_compiler_static_F77='-Bstatic'
13357 ;;
13359 *)
13360 lt_prog_compiler_can_build_shared_F77=no
13361 ;;
13362 esac
13363 fi
13365 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13366 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13369 # Check to make sure the PIC flag actually works.
13371 if test -n "$lt_prog_compiler_pic_F77"; then
13373 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13375 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378 lt_prog_compiler_pic_works_F77=no
13379 ac_outfile=conftest.$ac_objext
13380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13381 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13382 # Insert the option either (1) after the last *FLAGS variable, or
13383 # (2) before a word containing "conftest.", or (3) at the end.
13384 # Note that $ac_compile itself does not contain backslashes and begins
13385 # with a dollar sign (not a hyphen), so the echo should work correctly.
13386 # The option is referenced via a variable to avoid confusing sed.
13387 lt_compile=`echo "$ac_compile" | $SED \
13388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13390 -e 's:$: $lt_compiler_flag:'`
13391 (eval echo "\"\$as_me:13391: $lt_compile\"" >&5)
13392 (eval "$lt_compile" 2>conftest.err)
13393 ac_status=$?
13394 cat conftest.err >&5
13395 echo "$as_me:13395: \$? = $ac_status" >&5
13396 if (exit $ac_status) && test -s "$ac_outfile"; then
13397 # The compiler can only warn and ignore the option if not recognized
13398 # So say no if there are warnings other than the usual output.
13399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13402 lt_prog_compiler_pic_works_F77=yes
13403 fi
13404 fi
13405 $rm conftest*
13407 fi
13408 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13409 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13411 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13412 case $lt_prog_compiler_pic_F77 in
13413 "" | " "*) ;;
13414 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13415 esac
13416 else
13417 lt_prog_compiler_pic_F77=
13418 lt_prog_compiler_can_build_shared_F77=no
13419 fi
13421 fi
13422 case $host_os in
13423 # For platforms which do not support PIC, -DPIC is meaningless:
13424 *djgpp*)
13425 lt_prog_compiler_pic_F77=
13426 ;;
13427 *)
13428 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13429 ;;
13430 esac
13433 # Check to make sure the static flag actually works.
13435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13436 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13438 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441 lt_prog_compiler_static_works_F77=no
13442 save_LDFLAGS="$LDFLAGS"
13443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13446 # The linker can only warn and ignore the option if not recognized
13447 # So say no if there are warnings
13448 if test -s conftest.err; then
13449 # Append any errors to the config.log.
13450 cat conftest.err 1>&5
13451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13453 if diff conftest.exp conftest.er2 >/dev/null; then
13454 lt_prog_compiler_static_works_F77=yes
13455 fi
13456 else
13457 lt_prog_compiler_static_works_F77=yes
13458 fi
13459 fi
13460 $rm conftest*
13461 LDFLAGS="$save_LDFLAGS"
13463 fi
13464 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13465 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13467 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13469 else
13470 lt_prog_compiler_static_F77=
13471 fi
13474 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13476 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479 lt_cv_prog_compiler_c_o_F77=no
13480 $rm -r conftest 2>/dev/null
13481 mkdir conftest
13482 cd conftest
13483 mkdir out
13484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13486 lt_compiler_flag="-o out/conftest2.$ac_objext"
13487 # Insert the option either (1) after the last *FLAGS variable, or
13488 # (2) before a word containing "conftest.", or (3) at the end.
13489 # Note that $ac_compile itself does not contain backslashes and begins
13490 # with a dollar sign (not a hyphen), so the echo should work correctly.
13491 lt_compile=`echo "$ac_compile" | $SED \
13492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13494 -e 's:$: $lt_compiler_flag:'`
13495 (eval echo "\"\$as_me:13495: $lt_compile\"" >&5)
13496 (eval "$lt_compile" 2>out/conftest.err)
13497 ac_status=$?
13498 cat out/conftest.err >&5
13499 echo "$as_me:13499: \$? = $ac_status" >&5
13500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13501 then
13502 # The compiler can only warn and ignore the option if not recognized
13503 # So say no if there are warnings
13504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13507 lt_cv_prog_compiler_c_o_F77=yes
13508 fi
13509 fi
13510 chmod u+w . 2>&5
13511 $rm conftest*
13512 # SGI C++ compiler will create directory out/ii_files/ for
13513 # template instantiation
13514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13515 $rm out/* && rmdir out
13516 cd ..
13517 rmdir conftest
13518 $rm conftest*
13520 fi
13521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13525 hard_links="nottested"
13526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13527 # do not overwrite the value of need_locks provided by the user
13528 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13530 hard_links=yes
13531 $rm conftest*
13532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13533 touch conftest.a
13534 ln conftest.a conftest.b 2>&5 || hard_links=no
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536 echo "$as_me:$LINENO: result: $hard_links" >&5
13537 echo "${ECHO_T}$hard_links" >&6
13538 if test "$hard_links" = no; then
13539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13541 need_locks=warn
13542 fi
13543 else
13544 need_locks=no
13545 fi
13547 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13550 runpath_var=
13551 allow_undefined_flag_F77=
13552 enable_shared_with_static_runtimes_F77=no
13553 archive_cmds_F77=
13554 archive_expsym_cmds_F77=
13555 old_archive_From_new_cmds_F77=
13556 old_archive_from_expsyms_cmds_F77=
13557 export_dynamic_flag_spec_F77=
13558 whole_archive_flag_spec_F77=
13559 thread_safe_flag_spec_F77=
13560 hardcode_libdir_flag_spec_F77=
13561 hardcode_libdir_flag_spec_ld_F77=
13562 hardcode_libdir_separator_F77=
13563 hardcode_direct_F77=no
13564 hardcode_minus_L_F77=no
13565 hardcode_shlibpath_var_F77=unsupported
13566 link_all_deplibs_F77=unknown
13567 hardcode_automatic_F77=no
13568 module_cmds_F77=
13569 module_expsym_cmds_F77=
13570 always_export_symbols_F77=no
13571 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13572 # include_expsyms should be a list of space-separated symbols to be *always*
13573 # included in the symbol list
13574 include_expsyms_F77=
13575 # exclude_expsyms can be an extended regexp of symbols to exclude
13576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13578 # as well as any symbol that contains `d'.
13579 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13581 # platforms (ab)use it in PIC code, but their linkers get confused if
13582 # the symbol is explicitly referenced. Since portable code cannot
13583 # rely on this symbol name, it's probably fine to never include it in
13584 # preloaded symbol tables.
13585 extract_expsyms_cmds=
13586 # Just being paranoid about ensuring that cc_basename is set.
13587 for cc_temp in $compiler""; do
13588 case $cc_temp in
13589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13591 \-*) ;;
13592 *) break;;
13593 esac
13594 done
13595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13597 case $host_os in
13598 cygwin* | mingw* | pw32*)
13599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13600 # When not using gcc, we currently assume that we are using
13601 # Microsoft Visual C++.
13602 if test "$GCC" != yes; then
13603 with_gnu_ld=no
13604 fi
13605 ;;
13606 interix*)
13607 # we just hope/assume this is gcc and not c89 (= MSVC++)
13608 with_gnu_ld=yes
13609 ;;
13610 openbsd*)
13611 with_gnu_ld=no
13612 ;;
13613 esac
13615 ld_shlibs_F77=yes
13616 if test "$with_gnu_ld" = yes; then
13617 # If archive_cmds runs LD, not CC, wlarc should be empty
13618 wlarc='${wl}'
13620 # Set some defaults for GNU ld with shared library support. These
13621 # are reset later if shared libraries are not supported. Putting them
13622 # here allows them to be overridden if necessary.
13623 runpath_var=LD_RUN_PATH
13624 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13625 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13626 # ancient GNU ld didn't support --whole-archive et. al.
13627 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13628 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13629 else
13630 whole_archive_flag_spec_F77=
13631 fi
13632 supports_anon_versioning=no
13633 case `$LD -v 2>/dev/null` in
13634 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13637 *\ 2.11.*) ;; # other 2.11 versions
13638 *) supports_anon_versioning=yes ;;
13639 esac
13641 # See if GNU ld supports shared libraries.
13642 case $host_os in
13643 aix3* | aix4* | aix5*)
13644 # On AIX/PPC, the GNU linker is very broken
13645 if test "$host_cpu" != ia64; then
13646 ld_shlibs_F77=no
13647 cat <<EOF 1>&2
13649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13650 *** to be unable to reliably create shared libraries on AIX.
13651 *** Therefore, libtool is disabling shared libraries support. If you
13652 *** really care for shared libraries, you may want to modify your PATH
13653 *** so that a non-GNU linker is found, and then restart.
13655 EOF
13656 fi
13657 ;;
13659 amigaos*)
13660 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)'
13661 hardcode_libdir_flag_spec_F77='-L$libdir'
13662 hardcode_minus_L_F77=yes
13664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13665 # that the semantics of dynamic libraries on AmigaOS, at least up
13666 # to version 4, is to share data among multiple programs linked
13667 # with the same dynamic library. Since this doesn't match the
13668 # behavior of shared libraries on other platforms, we can't use
13669 # them.
13670 ld_shlibs_F77=no
13671 ;;
13673 beos*)
13674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13675 allow_undefined_flag_F77=unsupported
13676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13677 # support --undefined. This deserves some investigation. FIXME
13678 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13679 else
13680 ld_shlibs_F77=no
13681 fi
13682 ;;
13684 cygwin* | mingw* | pw32*)
13685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13686 # as there is no search path for DLLs.
13687 hardcode_libdir_flag_spec_F77='-L$libdir'
13688 allow_undefined_flag_F77=unsupported
13689 always_export_symbols_F77=no
13690 enable_shared_with_static_runtimes_F77=yes
13691 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13695 # If the export-symbols file already is a .def file (1st line
13696 # is EXPORTS), use it as is; otherwise, prepend...
13697 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13698 cp $export_symbols $output_objdir/$soname.def;
13699 else
13700 echo EXPORTS > $output_objdir/$soname.def;
13701 cat $export_symbols >> $output_objdir/$soname.def;
13702 fi~
13703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13704 else
13705 ld_shlibs_F77=no
13706 fi
13707 ;;
13709 interix3*)
13710 hardcode_direct_F77=no
13711 hardcode_shlibpath_var_F77=no
13712 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13713 export_dynamic_flag_spec_F77='${wl}-E'
13714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13715 # Instead, shared libraries are loaded at an image base (0x10000000 by
13716 # default) and relocated if they conflict, which is a slow very memory
13717 # consuming and fragmenting process. To avoid this, we pick a random,
13718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13720 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13721 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13722 ;;
13724 linux*)
13725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13726 tmp_addflag=
13727 case $cc_basename,$host_cpu in
13728 pgcc*) # Portland Group C compiler
13729 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13730 tmp_addflag=' $pic_flag'
13731 ;;
13732 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13733 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13734 tmp_addflag=' $pic_flag -Mnomain' ;;
13735 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13736 tmp_addflag=' -i_dynamic' ;;
13737 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13738 tmp_addflag=' -i_dynamic -nofor_main' ;;
13739 ifc* | ifort*) # Intel Fortran compiler
13740 tmp_addflag=' -nofor_main' ;;
13741 esac
13742 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744 if test $supports_anon_versioning = yes; then
13745 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13747 $echo "local: *; };" >> $output_objdir/$libname.ver~
13748 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13749 fi
13750 link_all_deplibs_F77=no
13751 else
13752 ld_shlibs_F77=no
13753 fi
13754 ;;
13756 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13758 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13759 wlarc=
13760 else
13761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13762 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13763 fi
13764 ;;
13766 solaris*)
13767 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13768 ld_shlibs_F77=no
13769 cat <<EOF 1>&2
13771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13772 *** create shared libraries on Solaris systems. Therefore, libtool
13773 *** is disabling shared libraries support. We urge you to upgrade GNU
13774 *** binutils to release 2.9.1 or newer. Another option is to modify
13775 *** your PATH or compiler configuration so that the native linker is
13776 *** used, and then restart.
13778 EOF
13779 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13780 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13781 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13782 else
13783 ld_shlibs_F77=no
13784 fi
13785 ;;
13787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13788 case `$LD -v 2>&1` in
13789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13790 ld_shlibs_F77=no
13791 cat <<_LT_EOF 1>&2
13793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13794 *** reliably create shared libraries on SCO systems. Therefore, libtool
13795 *** is disabling shared libraries support. We urge you to upgrade GNU
13796 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13797 *** your PATH or compiler configuration so that the native linker is
13798 *** used, and then restart.
13800 _LT_EOF
13801 ;;
13802 *)
13803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13804 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13807 else
13808 ld_shlibs_F77=no
13809 fi
13810 ;;
13811 esac
13812 ;;
13814 sunos4*)
13815 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13816 wlarc=
13817 hardcode_direct_F77=yes
13818 hardcode_shlibpath_var_F77=no
13819 ;;
13821 *)
13822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13823 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13825 else
13826 ld_shlibs_F77=no
13827 fi
13828 ;;
13829 esac
13831 if test "$ld_shlibs_F77" = no; then
13832 runpath_var=
13833 hardcode_libdir_flag_spec_F77=
13834 export_dynamic_flag_spec_F77=
13835 whole_archive_flag_spec_F77=
13836 fi
13837 else
13838 # PORTME fill in a description of your system's linker (not GNU ld)
13839 case $host_os in
13840 aix3*)
13841 allow_undefined_flag_F77=unsupported
13842 always_export_symbols_F77=yes
13843 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'
13844 # Note: this linker hardcodes the directories in LIBPATH if there
13845 # are no directories specified by -L.
13846 hardcode_minus_L_F77=yes
13847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13848 # Neither direct hardcoding nor static linking is supported with a
13849 # broken collect2.
13850 hardcode_direct_F77=unsupported
13851 fi
13852 ;;
13854 aix4* | aix5*)
13855 if test "$host_cpu" = ia64; then
13856 # On IA64, the linker does run time linking by default, so we don't
13857 # have to do anything special.
13858 aix_use_runtimelinking=no
13859 exp_sym_flag='-Bexport'
13860 no_entry_flag=""
13861 else
13862 # If we're using GNU nm, then we don't want the "-C" option.
13863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13865 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'
13866 else
13867 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'
13868 fi
13869 aix_use_runtimelinking=no
13871 # Test if we are trying to use run time linking or normal
13872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13873 # need to do runtime linking.
13874 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13875 for ld_flag in $LDFLAGS; do
13876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13877 aix_use_runtimelinking=yes
13878 break
13879 fi
13880 done
13881 ;;
13882 esac
13884 exp_sym_flag='-bexport'
13885 no_entry_flag='-bnoentry'
13886 fi
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=
13918 fi
13919 ;;
13920 esac
13921 shared_flag='-shared'
13922 if test "$aix_use_runtimelinking" = yes; then
13923 shared_flag="$shared_flag "'${wl}-G'
13924 fi
13925 else
13926 # not using gcc
13927 if test "$host_cpu" = ia64; then
13928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13929 # chokes on -Wl,-G. The following line is correct:
13930 shared_flag='-G'
13931 else
13932 if test "$aix_use_runtimelinking" = yes; then
13933 shared_flag='${wl}-G'
13934 else
13935 shared_flag='${wl}-bM:SRE'
13936 fi
13937 fi
13938 fi
13940 # It seems that -bexpall does not export symbols beginning with
13941 # underscore (_), so it is better to generate a list of symbols to export.
13942 always_export_symbols_F77=yes
13943 if test "$aix_use_runtimelinking" = yes; then
13944 # Warning - without using the other runtime loading flags (-brtl),
13945 # -berok will link without error, but may produce a broken library.
13946 allow_undefined_flag_F77='-berok'
13947 # Determine the default libpath from the value encoded in an empty executable.
13948 cat >conftest.$ac_ext <<_ACEOF
13949 program main
13951 end
13952 _ACEOF
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955 (eval $ac_link) 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_f77_werror_flag" || 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; }
13976 }'`
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
13984 fi
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 '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
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 '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_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
14001 end
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" || test ! -s conftest.err'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; } &&
14018 { ac_try='test -s conftest$ac_exeext'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; }; then
14025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14026 }'`
14027 # Check for a 64-bit object if we didn't find anything.
14028 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; }
14029 }'`; fi
14030 else
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 fi
14035 rm -f conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14039 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14040 # Warning - without using the other run time loading flags,
14041 # -berok will link without error, but may produce a broken library.
14042 no_undefined_flag_F77=' ${wl}-bernotok'
14043 allow_undefined_flag_F77=' ${wl}-berok'
14044 # Exported symbols can be pulled into shared objects from archives
14045 whole_archive_flag_spec_F77='$convenience'
14046 archive_cmds_need_lc_F77=yes
14047 # This is similar to how AIX traditionally builds its shared libraries.
14048 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14049 fi
14050 fi
14051 ;;
14053 amigaos*)
14054 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)'
14055 hardcode_libdir_flag_spec_F77='-L$libdir'
14056 hardcode_minus_L_F77=yes
14057 # see comment about different semantics on the GNU ld section
14058 ld_shlibs_F77=no
14059 ;;
14061 bsdi[45]*)
14062 export_dynamic_flag_spec_F77=-rdynamic
14063 ;;
14065 cygwin* | mingw* | pw32*)
14066 # When not using gcc, we currently assume that we are using
14067 # Microsoft Visual C++.
14068 # hardcode_libdir_flag_spec is actually meaningless, as there is
14069 # no search path for DLLs.
14070 hardcode_libdir_flag_spec_F77=' '
14071 allow_undefined_flag_F77=unsupported
14072 # Tell ltmain to make .lib files, not .a files.
14073 libext=lib
14074 # Tell ltmain to make .dll files, not .so files.
14075 shrext_cmds=".dll"
14076 # FIXME: Setting linknames here is a bad hack.
14077 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14078 # The linker will automatically build a .lib file if we build a DLL.
14079 old_archive_From_new_cmds_F77='true'
14080 # FIXME: Should let the user specify the lib program.
14081 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14082 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14083 enable_shared_with_static_runtimes_F77=yes
14084 ;;
14086 darwin* | rhapsody*)
14087 case $host_os in
14088 rhapsody* | darwin1.[012])
14089 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14090 ;;
14091 *) # Darwin 1.3 on
14092 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14093 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14094 else
14095 case ${MACOSX_DEPLOYMENT_TARGET} in
14096 10.[012])
14097 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14098 ;;
14099 10.*)
14100 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14101 ;;
14102 esac
14103 fi
14104 ;;
14105 esac
14106 archive_cmds_need_lc_F77=no
14107 hardcode_direct_F77=no
14108 hardcode_automatic_F77=yes
14109 hardcode_shlibpath_var_F77=unsupported
14110 whole_archive_flag_spec_F77=''
14111 link_all_deplibs_F77=yes
14112 if test "$GCC" = yes ; then
14113 output_verbose_link_cmd='echo'
14114 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14115 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14117 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}'
14118 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}'
14119 else
14120 case $cc_basename in
14121 xlc*)
14122 output_verbose_link_cmd='echo'
14123 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14124 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14126 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}'
14127 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}'
14128 ;;
14129 *)
14130 ld_shlibs_F77=no
14131 ;;
14132 esac
14133 fi
14134 ;;
14136 dgux*)
14137 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14138 hardcode_libdir_flag_spec_F77='-L$libdir'
14139 hardcode_shlibpath_var_F77=no
14140 ;;
14142 freebsd1*)
14143 ld_shlibs_F77=no
14144 ;;
14146 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14147 # support. Future versions do this automatically, but an explicit c++rt0.o
14148 # does not break anything, and helps significantly (at the cost of a little
14149 # extra space).
14150 freebsd2.2*)
14151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14152 hardcode_libdir_flag_spec_F77='-R$libdir'
14153 hardcode_direct_F77=yes
14154 hardcode_shlibpath_var_F77=no
14155 ;;
14157 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14158 freebsd2*)
14159 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14160 hardcode_direct_F77=yes
14161 hardcode_minus_L_F77=yes
14162 hardcode_shlibpath_var_F77=no
14163 ;;
14165 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14166 freebsd* | dragonfly*)
14167 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14168 hardcode_libdir_flag_spec_F77='-R$libdir'
14169 hardcode_direct_F77=yes
14170 hardcode_shlibpath_var_F77=no
14171 ;;
14173 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14174 kfreebsd*-gnu)
14175 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14176 hardcode_libdir_flag_spec_F77='-R$libdir'
14177 hardcode_direct_F77=yes
14178 hardcode_shlibpath_var_F77=no
14179 link_all_deplibs_F77=no
14180 ;;
14182 hpux9*)
14183 if test "$GCC" = yes; then
14184 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'
14185 else
14186 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'
14187 fi
14188 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14189 hardcode_libdir_separator_F77=:
14190 hardcode_direct_F77=yes
14192 # hardcode_minus_L: Not really in the search PATH,
14193 # but as the default location of the library.
14194 hardcode_minus_L_F77=yes
14195 export_dynamic_flag_spec_F77='${wl}-E'
14196 ;;
14198 hpux10*)
14199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14200 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14201 else
14202 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14203 fi
14204 if test "$with_gnu_ld" = no; then
14205 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14206 hardcode_libdir_separator_F77=:
14208 hardcode_direct_F77=yes
14209 export_dynamic_flag_spec_F77='${wl}-E'
14211 # hardcode_minus_L: Not really in the search PATH,
14212 # but as the default location of the library.
14213 hardcode_minus_L_F77=yes
14214 fi
14215 ;;
14217 hpux11*)
14218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14219 case $host_cpu in
14220 hppa*64*)
14221 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14222 ;;
14223 ia64*)
14224 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14225 ;;
14226 *)
14227 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14228 ;;
14229 esac
14230 else
14231 case $host_cpu in
14232 hppa*64*)
14233 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14234 ;;
14235 ia64*)
14236 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14237 ;;
14238 *)
14239 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14240 ;;
14241 esac
14242 fi
14243 if test "$with_gnu_ld" = no; then
14244 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14245 hardcode_libdir_separator_F77=:
14247 case $host_cpu in
14248 hppa*64*|ia64*)
14249 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14250 hardcode_direct_F77=no
14251 hardcode_shlibpath_var_F77=no
14252 ;;
14253 *)
14254 hardcode_direct_F77=yes
14255 export_dynamic_flag_spec_F77='${wl}-E'
14257 # hardcode_minus_L: Not really in the search PATH,
14258 # but as the default location of the library.
14259 hardcode_minus_L_F77=yes
14260 ;;
14261 esac
14262 fi
14263 ;;
14265 irix5* | irix6* | nonstopux*)
14266 if test "$GCC" = yes; then
14267 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'
14268 else
14269 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'
14270 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14271 fi
14272 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14273 hardcode_libdir_separator_F77=:
14274 link_all_deplibs_F77=yes
14275 ;;
14277 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14279 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14280 else
14281 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14282 fi
14283 hardcode_libdir_flag_spec_F77='-R$libdir'
14284 hardcode_direct_F77=yes
14285 hardcode_shlibpath_var_F77=no
14286 ;;
14288 newsos6)
14289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290 hardcode_direct_F77=yes
14291 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14292 hardcode_libdir_separator_F77=:
14293 hardcode_shlibpath_var_F77=no
14294 ;;
14296 openbsd*)
14297 hardcode_direct_F77=yes
14298 hardcode_shlibpath_var_F77=no
14299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14300 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14301 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14302 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14303 export_dynamic_flag_spec_F77='${wl}-E'
14304 else
14305 case $host_os in
14306 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14307 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_libdir_flag_spec_F77='-R$libdir'
14309 ;;
14310 *)
14311 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14312 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14313 ;;
14314 esac
14315 fi
14316 ;;
14318 os2*)
14319 hardcode_libdir_flag_spec_F77='-L$libdir'
14320 hardcode_minus_L_F77=yes
14321 allow_undefined_flag_F77=unsupported
14322 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'
14323 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14324 ;;
14326 osf3*)
14327 if test "$GCC" = yes; then
14328 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14329 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'
14330 else
14331 allow_undefined_flag_F77=' -expect_unresolved \*'
14332 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'
14333 fi
14334 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14335 hardcode_libdir_separator_F77=:
14336 ;;
14338 osf4* | osf5*) # as osf3* with the addition of -msym flag
14339 if test "$GCC" = yes; then
14340 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14341 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'
14342 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14343 else
14344 allow_undefined_flag_F77=' -expect_unresolved \*'
14345 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'
14346 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~
14347 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14349 # Both c and cxx compiler support -rpath directly
14350 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14351 fi
14352 hardcode_libdir_separator_F77=:
14353 ;;
14355 solaris*)
14356 no_undefined_flag_F77=' -z text'
14357 if test "$GCC" = yes; then
14358 wlarc='${wl}'
14359 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14360 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14361 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14362 else
14363 wlarc=''
14364 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14365 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14367 fi
14368 hardcode_libdir_flag_spec_F77='-R$libdir'
14369 hardcode_shlibpath_var_F77=no
14370 case $host_os in
14371 solaris2.[0-5] | solaris2.[0-5].*) ;;
14372 *)
14373 # The compiler driver will combine linker options so we
14374 # cannot just pass the convience library names through
14375 # without $wl, iff we do not link with $LD.
14376 # Luckily, gcc supports the same syntax we need for Sun Studio.
14377 # Supported since Solaris 2.6 (maybe 2.5.1?)
14378 case $wlarc in
14379 '')
14380 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14381 *)
14382 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14383 esac ;;
14384 esac
14385 link_all_deplibs_F77=yes
14386 ;;
14388 sunos4*)
14389 if test "x$host_vendor" = xsequent; then
14390 # Use $CC to link under sequent, because it throws in some extra .o
14391 # files that make .init and .fini sections work.
14392 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14393 else
14394 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14395 fi
14396 hardcode_libdir_flag_spec_F77='-L$libdir'
14397 hardcode_direct_F77=yes
14398 hardcode_minus_L_F77=yes
14399 hardcode_shlibpath_var_F77=no
14400 ;;
14402 sysv4)
14403 case $host_vendor in
14404 sni)
14405 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14406 hardcode_direct_F77=yes # is this really true???
14407 ;;
14408 siemens)
14409 ## LD is ld it makes a PLAMLIB
14410 ## CC just makes a GrossModule.
14411 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14412 reload_cmds_F77='$CC -r -o $output$reload_objs'
14413 hardcode_direct_F77=no
14414 ;;
14415 motorola)
14416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14417 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14418 ;;
14419 esac
14420 runpath_var='LD_RUN_PATH'
14421 hardcode_shlibpath_var_F77=no
14422 ;;
14424 sysv4.3*)
14425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14426 hardcode_shlibpath_var_F77=no
14427 export_dynamic_flag_spec_F77='-Bexport'
14428 ;;
14430 sysv4*MP*)
14431 if test -d /usr/nec; then
14432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14433 hardcode_shlibpath_var_F77=no
14434 runpath_var=LD_RUN_PATH
14435 hardcode_runpath_var=yes
14436 ld_shlibs_F77=yes
14437 fi
14438 ;;
14440 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14441 no_undefined_flag_F77='${wl}-z,text'
14442 archive_cmds_need_lc_F77=no
14443 hardcode_shlibpath_var_F77=no
14444 runpath_var='LD_RUN_PATH'
14446 if test "$GCC" = yes; then
14447 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14448 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14449 else
14450 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14451 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14452 fi
14453 ;;
14455 sysv5* | sco3.2v5* | sco5v6*)
14456 # Note: We can NOT use -z defs as we might desire, because we do not
14457 # link with -lc, and that would cause any symbols used from libc to
14458 # always be unresolved, which means just about no library would
14459 # ever link correctly. If we're not using GNU ld we use -z text
14460 # though, which does catch some bad symbols but isn't as heavy-handed
14461 # as -z defs.
14462 no_undefined_flag_F77='${wl}-z,text'
14463 allow_undefined_flag_F77='${wl}-z,nodefs'
14464 archive_cmds_need_lc_F77=no
14465 hardcode_shlibpath_var_F77=no
14466 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14467 hardcode_libdir_separator_F77=':'
14468 link_all_deplibs_F77=yes
14469 export_dynamic_flag_spec_F77='${wl}-Bexport'
14470 runpath_var='LD_RUN_PATH'
14472 if test "$GCC" = yes; then
14473 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14474 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14475 else
14476 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14477 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14478 fi
14479 ;;
14481 uts4*)
14482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14483 hardcode_libdir_flag_spec_F77='-L$libdir'
14484 hardcode_shlibpath_var_F77=no
14485 ;;
14487 *)
14488 ld_shlibs_F77=no
14489 ;;
14490 esac
14491 fi
14493 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14494 echo "${ECHO_T}$ld_shlibs_F77" >&6
14495 test "$ld_shlibs_F77" = no && can_build_shared=no
14498 # Do we need to explicitly link libc?
14500 case "x$archive_cmds_need_lc_F77" in
14501 x|xyes)
14502 # Assume -lc should be added
14503 archive_cmds_need_lc_F77=yes
14505 if test "$enable_shared" = yes && test "$GCC" = yes; then
14506 case $archive_cmds_F77 in
14507 *'~'*)
14508 # FIXME: we may have to deal with multi-command sequences.
14509 ;;
14510 '$CC '*)
14511 # Test whether the compiler implicitly links with -lc since on some
14512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14513 # to ld, don't add -lc before -lgcc.
14514 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14516 $rm conftest*
14517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14520 (eval $ac_compile) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } 2>conftest.err; then
14524 soname=conftest
14525 lib=conftest
14526 libobjs=conftest.$ac_objext
14527 deplibs=
14528 wl=$lt_prog_compiler_wl_F77
14529 pic_flag=$lt_prog_compiler_pic_F77
14530 compiler_flags=-v
14531 linker_flags=-v
14532 verstring=
14533 output_objdir=.
14534 libname=conftest
14535 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14536 allow_undefined_flag_F77=
14537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14538 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }
14542 then
14543 archive_cmds_need_lc_F77=no
14544 else
14545 archive_cmds_need_lc_F77=yes
14546 fi
14547 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14548 else
14549 cat conftest.err 1>&5
14550 fi
14551 $rm conftest*
14552 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14553 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14554 ;;
14555 esac
14556 fi
14557 ;;
14558 esac
14560 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14562 library_names_spec=
14563 libname_spec='lib$name'
14564 soname_spec=
14565 shrext_cmds=".so"
14566 postinstall_cmds=
14567 postuninstall_cmds=
14568 finish_cmds=
14569 finish_eval=
14570 shlibpath_var=
14571 shlibpath_overrides_runpath=unknown
14572 version_type=none
14573 dynamic_linker="$host_os ld.so"
14574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14575 if test "$GCC" = yes; then
14576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14578 # if the path contains ";" then we assume it to be the separator
14579 # otherwise default to the standard path separator (i.e. ":") - it is
14580 # assumed that no part of a normal pathname contains ";" but that should
14581 # okay in the real world where ";" in dirpaths is itself problematic.
14582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14583 else
14584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14585 fi
14586 else
14587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14588 fi
14589 need_lib_prefix=unknown
14590 hardcode_into_libs=no
14592 # when you set need_version to no, make sure it does not cause -set_version
14593 # flags to be left without arguments
14594 need_version=unknown
14596 case $host_os in
14597 aix3*)
14598 version_type=linux
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14600 shlibpath_var=LIBPATH
14602 # AIX 3 has no versioning support, so we append a major version to the name.
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 ;;
14606 aix4* | aix5*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 hardcode_into_libs=yes
14611 if test "$host_cpu" = ia64; then
14612 # AIX 5 supports IA64
14613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14614 shlibpath_var=LD_LIBRARY_PATH
14615 else
14616 # With GCC up to 2.95.x, collect2 would create an import file
14617 # for dependence libraries. The import file would start with
14618 # the line `#! .'. This would cause the generated library to
14619 # depend on `.', always an invalid library. This was fixed in
14620 # development snapshots of GCC prior to 3.0.
14621 case $host_os in
14622 aix4 | aix4.[01] | aix4.[01].*)
14623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14624 echo ' yes '
14625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14627 else
14628 can_build_shared=no
14629 fi
14630 ;;
14631 esac
14632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14633 # soname into executable. Probably we can add versioning support to
14634 # collect2, so additional links can be useful in future.
14635 if test "$aix_use_runtimelinking" = yes; then
14636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14637 # instead of lib<name>.a to let people know that these are not
14638 # typical AIX shared libraries.
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640 else
14641 # We preserve .a as extension for shared libraries through AIX4.2
14642 # and later when we are not doing run time linking.
14643 library_names_spec='${libname}${release}.a $libname.a'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 fi
14646 shlibpath_var=LIBPATH
14647 fi
14648 ;;
14650 amigaos*)
14651 library_names_spec='$libname.ixlibrary $libname.a'
14652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14653 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'
14654 ;;
14656 beos*)
14657 library_names_spec='${libname}${shared_ext}'
14658 dynamic_linker="$host_os ld.so"
14659 shlibpath_var=LIBRARY_PATH
14660 ;;
14662 bsdi[45]*)
14663 version_type=linux
14664 need_version=no
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14671 # the default ld.so.conf also contains /usr/contrib/lib and
14672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14673 # libtool to hard-code these into programs
14674 ;;
14676 cygwin* | mingw* | pw32*)
14677 version_type=windows
14678 shrext_cmds=".dll"
14679 need_version=no
14680 need_lib_prefix=no
14682 case $GCC,$host_os in
14683 yes,cygwin* | yes,mingw* | yes,pw32*)
14684 library_names_spec='$libname.dll.a'
14685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14686 postinstall_cmds='base_file=`basename \${file}`~
14687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14688 dldir=$destdir/`dirname \$dlpath`~
14689 test -d \$dldir || mkdir -p \$dldir~
14690 $install_prog $dir/$dlname \$dldir/$dlname~
14691 chmod a+x \$dldir/$dlname'
14692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14693 dlpath=$dir/\$dldll~
14694 $rm \$dlpath'
14695 shlibpath_overrides_runpath=yes
14697 case $host_os in
14698 cygwin*)
14699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14700 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14701 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14702 ;;
14703 mingw*)
14704 # MinGW DLLs use traditional 'lib' prefix
14705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14707 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14708 # It is most probably a Windows format PATH printed by
14709 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14710 # path with ; separators, and with drive letters. We can handle the
14711 # drive letters (cygwin fileutils understands them), so leave them,
14712 # especially as we might pass files found there to a mingw objdump,
14713 # which wouldn't understand a cygwinified path. Ahh.
14714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14715 else
14716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14717 fi
14718 ;;
14719 pw32*)
14720 # pw32 DLLs use 'pw' prefix rather than 'lib'
14721 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14722 ;;
14723 esac
14724 ;;
14726 *)
14727 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14728 ;;
14729 esac
14730 dynamic_linker='Win32 ld.exe'
14731 # FIXME: first we should search . and the directory the executable is in
14732 shlibpath_var=PATH
14733 ;;
14735 darwin* | rhapsody*)
14736 dynamic_linker="$host_os dyld"
14737 version_type=darwin
14738 need_lib_prefix=no
14739 need_version=no
14740 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14741 soname_spec='${libname}${release}${major}$shared_ext'
14742 shlibpath_overrides_runpath=yes
14743 shlibpath_var=DYLD_LIBRARY_PATH
14744 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14745 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14746 if test "$GCC" = yes; then
14747 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"`
14748 else
14749 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14750 fi
14751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14752 ;;
14754 dgux*)
14755 version_type=linux
14756 need_lib_prefix=no
14757 need_version=no
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 ;;
14763 freebsd1*)
14764 dynamic_linker=no
14765 ;;
14767 kfreebsd*-gnu)
14768 version_type=linux
14769 need_lib_prefix=no
14770 need_version=no
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 shlibpath_overrides_runpath=no
14775 hardcode_into_libs=yes
14776 dynamic_linker='GNU ld.so'
14777 ;;
14779 freebsd* | dragonfly*)
14780 # DragonFly does not have aout. When/if they implement a new
14781 # versioning mechanism, adjust this.
14782 if test -x /usr/bin/objformat; then
14783 objformat=`/usr/bin/objformat`
14784 else
14785 case $host_os in
14786 freebsd[123]*) objformat=aout ;;
14787 *) objformat=elf ;;
14788 esac
14789 fi
14790 version_type=freebsd-$objformat
14791 case $version_type in
14792 freebsd-elf*)
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14794 need_version=no
14795 need_lib_prefix=no
14796 ;;
14797 freebsd-*)
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14799 need_version=yes
14800 ;;
14801 esac
14802 shlibpath_var=LD_LIBRARY_PATH
14803 case $host_os in
14804 freebsd2*)
14805 shlibpath_overrides_runpath=yes
14806 ;;
14807 freebsd3.[01]* | freebsdelf3.[01]*)
14808 shlibpath_overrides_runpath=yes
14809 hardcode_into_libs=yes
14810 ;;
14811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14813 shlibpath_overrides_runpath=no
14814 hardcode_into_libs=yes
14815 ;;
14816 freebsd*) # from 4.6 on
14817 shlibpath_overrides_runpath=yes
14818 hardcode_into_libs=yes
14819 ;;
14820 esac
14821 ;;
14823 gnu*)
14824 version_type=linux
14825 need_lib_prefix=no
14826 need_version=no
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 hardcode_into_libs=yes
14831 ;;
14833 hpux9* | hpux10* | hpux11*)
14834 # Give a soname corresponding to the major version so that dld.sl refuses to
14835 # link against other versions.
14836 version_type=sunos
14837 need_lib_prefix=no
14838 need_version=no
14839 case $host_cpu in
14840 ia64*)
14841 shrext_cmds='.so'
14842 hardcode_into_libs=yes
14843 dynamic_linker="$host_os dld.so"
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 if test "X$HPUX_IA64_MODE" = X32; then
14849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14850 else
14851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14852 fi
14853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14854 ;;
14855 hppa*64*)
14856 shrext_cmds='.sl'
14857 hardcode_into_libs=yes
14858 dynamic_linker="$host_os dld.sl"
14859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14865 ;;
14866 *)
14867 shrext_cmds='.sl'
14868 dynamic_linker="$host_os dld.sl"
14869 shlibpath_var=SHLIB_PATH
14870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 ;;
14874 esac
14875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14876 postinstall_cmds='chmod 555 $lib'
14877 ;;
14879 interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14886 shlibpath_var=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath=no
14888 hardcode_into_libs=yes
14889 ;;
14891 irix5* | irix6* | nonstopux*)
14892 case $host_os in
14893 nonstopux*) version_type=nonstopux ;;
14894 *)
14895 if test "$lt_cv_prog_gnu_ld" = yes; then
14896 version_type=linux
14897 else
14898 version_type=irix
14899 fi ;;
14900 esac
14901 need_lib_prefix=no
14902 need_version=no
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14905 case $host_os in
14906 irix5* | nonstopux*)
14907 libsuff= shlibsuff=
14908 ;;
14909 *)
14910 case $LD in # libtool.m4 will add one of these switches to LD
14911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14912 libsuff= shlibsuff= libmagic=32-bit;;
14913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14914 libsuff=32 shlibsuff=N32 libmagic=N32;;
14915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14917 *) libsuff= shlibsuff= libmagic=never-match;;
14918 esac
14919 ;;
14920 esac
14921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14922 shlibpath_overrides_runpath=no
14923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14925 hardcode_into_libs=yes
14926 ;;
14928 # No shared lib support for Linux oldld, aout, or coff.
14929 linux*oldld* | linux*aout* | linux*coff*)
14930 dynamic_linker=no
14931 ;;
14933 # This must be Linux ELF.
14934 linux*)
14935 version_type=linux
14936 need_lib_prefix=no
14937 need_version=no
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=no
14943 # This implies no fast_install, which is unacceptable.
14944 # Some rework will be needed to allow for fast_install
14945 # before this can be enabled.
14946 hardcode_into_libs=yes
14948 # Append ld.so.conf contents to the search path
14949 if test -f /etc/ld.so.conf; then
14950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14952 fi
14954 # We used to test for /lib/ld.so.1 and disable shared libraries on
14955 # powerpc, because MkLinux only supported shared libraries with the
14956 # GNU dynamic linker. Since this was broken with cross compilers,
14957 # most powerpc-linux boxes support dynamic linking these days and
14958 # people can always --disable-shared, the test was removed, and we
14959 # assume the GNU/Linux dynamic linker is in use.
14960 dynamic_linker='GNU/Linux ld.so'
14961 ;;
14963 netbsdelf*-gnu)
14964 version_type=linux
14965 need_lib_prefix=no
14966 need_version=no
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 shlibpath_var=LD_LIBRARY_PATH
14970 shlibpath_overrides_runpath=no
14971 hardcode_into_libs=yes
14972 dynamic_linker='NetBSD ld.elf_so'
14973 ;;
14975 knetbsd*-gnu)
14976 version_type=linux
14977 need_lib_prefix=no
14978 need_version=no
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 shlibpath_overrides_runpath=no
14983 hardcode_into_libs=yes
14984 dynamic_linker='GNU ld.so'
14985 ;;
14987 netbsd*)
14988 version_type=sunos
14989 need_lib_prefix=no
14990 need_version=no
14991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14994 dynamic_linker='NetBSD (a.out) ld.so'
14995 else
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 dynamic_linker='NetBSD ld.elf_so'
14999 fi
15000 shlibpath_var=LD_LIBRARY_PATH
15001 shlibpath_overrides_runpath=yes
15002 hardcode_into_libs=yes
15003 ;;
15005 newsos6)
15006 version_type=linux
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 shlibpath_overrides_runpath=yes
15010 ;;
15012 nto-qnx*)
15013 version_type=linux
15014 need_lib_prefix=no
15015 need_version=no
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 shlibpath_var=LD_LIBRARY_PATH
15019 shlibpath_overrides_runpath=yes
15020 ;;
15022 openbsd*)
15023 version_type=sunos
15024 sys_lib_dlsearch_path_spec="/usr/lib"
15025 need_lib_prefix=no
15026 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15027 case $host_os in
15028 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15029 *) need_version=no ;;
15030 esac
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15033 shlibpath_var=LD_LIBRARY_PATH
15034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15035 case $host_os in
15036 openbsd2.[89] | openbsd2.[89].*)
15037 shlibpath_overrides_runpath=no
15038 ;;
15039 *)
15040 shlibpath_overrides_runpath=yes
15041 ;;
15042 esac
15043 else
15044 shlibpath_overrides_runpath=yes
15045 fi
15046 ;;
15048 os2*)
15049 libname_spec='$name'
15050 shrext_cmds=".dll"
15051 need_lib_prefix=no
15052 library_names_spec='$libname${shared_ext} $libname.a'
15053 dynamic_linker='OS/2 ld.exe'
15054 shlibpath_var=LIBPATH
15055 ;;
15057 osf3* | osf4* | osf5*)
15058 version_type=osf
15059 need_lib_prefix=no
15060 need_version=no
15061 soname_spec='${libname}${release}${shared_ext}$major'
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063 shlibpath_var=LD_LIBRARY_PATH
15064 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15065 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15066 ;;
15068 solaris*)
15069 version_type=linux
15070 need_lib_prefix=no
15071 need_version=no
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073 soname_spec='${libname}${release}${shared_ext}$major'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 shlibpath_overrides_runpath=yes
15076 hardcode_into_libs=yes
15077 # ldd complains unless libraries are executable
15078 postinstall_cmds='chmod +x $lib'
15079 ;;
15081 sunos4*)
15082 version_type=sunos
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15085 shlibpath_var=LD_LIBRARY_PATH
15086 shlibpath_overrides_runpath=yes
15087 if test "$with_gnu_ld" = yes; then
15088 need_lib_prefix=no
15089 fi
15090 need_version=yes
15091 ;;
15093 sysv4 | sysv4.3*)
15094 version_type=linux
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 case $host_vendor in
15099 sni)
15100 shlibpath_overrides_runpath=no
15101 need_lib_prefix=no
15102 export_dynamic_flag_spec='${wl}-Blargedynsym'
15103 runpath_var=LD_RUN_PATH
15104 ;;
15105 siemens)
15106 need_lib_prefix=no
15107 ;;
15108 motorola)
15109 need_lib_prefix=no
15110 need_version=no
15111 shlibpath_overrides_runpath=no
15112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15113 ;;
15114 esac
15115 ;;
15117 sysv4*MP*)
15118 if test -d /usr/nec ;then
15119 version_type=linux
15120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15121 soname_spec='$libname${shared_ext}.$major'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 fi
15124 ;;
15126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15127 version_type=freebsd-elf
15128 need_lib_prefix=no
15129 need_version=no
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 shlibpath_var=LD_LIBRARY_PATH
15133 hardcode_into_libs=yes
15134 if test "$with_gnu_ld" = yes; then
15135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15136 shlibpath_overrides_runpath=no
15137 else
15138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15139 shlibpath_overrides_runpath=yes
15140 case $host_os in
15141 sco3.2v5*)
15142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15143 ;;
15144 esac
15145 fi
15146 sys_lib_dlsearch_path_spec='/usr/lib'
15147 ;;
15149 uts4*)
15150 version_type=linux
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 ;;
15156 *)
15157 dynamic_linker=no
15158 ;;
15159 esac
15160 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15161 echo "${ECHO_T}$dynamic_linker" >&6
15162 test "$dynamic_linker" = no && can_build_shared=no
15164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15165 if test "$GCC" = yes; then
15166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15167 fi
15169 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15170 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15171 hardcode_action_F77=
15172 if test -n "$hardcode_libdir_flag_spec_F77" || \
15173 test -n "$runpath_var_F77" || \
15174 test "X$hardcode_automatic_F77" = "Xyes" ; then
15176 # We can hardcode non-existant directories.
15177 if test "$hardcode_direct_F77" != no &&
15178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15179 # have to relink, otherwise we might link with an installed library
15180 # when we should be linking with a yet-to-be-installed one
15181 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15182 test "$hardcode_minus_L_F77" != no; then
15183 # Linking always hardcodes the temporary library directory.
15184 hardcode_action_F77=relink
15185 else
15186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15187 hardcode_action_F77=immediate
15188 fi
15189 else
15190 # We cannot hardcode anything, or else we can only hardcode existing
15191 # directories.
15192 hardcode_action_F77=unsupported
15193 fi
15194 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15195 echo "${ECHO_T}$hardcode_action_F77" >&6
15197 if test "$hardcode_action_F77" = relink; then
15198 # Fast installation is not supported
15199 enable_fast_install=no
15200 elif test "$shlibpath_overrides_runpath" = yes ||
15201 test "$enable_shared" = no; then
15202 # Fast installation is not necessary
15203 enable_fast_install=needless
15204 fi
15207 # The else clause should only fire when bootstrapping the
15208 # libtool distribution, otherwise you forgot to ship ltmain.sh
15209 # with your package, and you will get complaints that there are
15210 # no rules to generate ltmain.sh.
15211 if test -f "$ltmain"; then
15212 # See if we are running on zsh, and set the options which allow our commands through
15213 # without removal of \ escapes.
15214 if test -n "${ZSH_VERSION+set}" ; then
15215 setopt NO_GLOB_SUBST
15216 fi
15217 # Now quote all the things that may contain metacharacters while being
15218 # careful not to overquote the AC_SUBSTed values. We take copies of the
15219 # variables and quote the copies for generation of the libtool script.
15220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15221 SED SHELL STRIP \
15222 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15223 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15224 deplibs_check_method reload_flag reload_cmds need_locks \
15225 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15226 lt_cv_sys_global_symbol_to_c_name_address \
15227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15228 old_postinstall_cmds old_postuninstall_cmds \
15229 compiler_F77 \
15230 CC_F77 \
15231 LD_F77 \
15232 lt_prog_compiler_wl_F77 \
15233 lt_prog_compiler_pic_F77 \
15234 lt_prog_compiler_static_F77 \
15235 lt_prog_compiler_no_builtin_flag_F77 \
15236 export_dynamic_flag_spec_F77 \
15237 thread_safe_flag_spec_F77 \
15238 whole_archive_flag_spec_F77 \
15239 enable_shared_with_static_runtimes_F77 \
15240 old_archive_cmds_F77 \
15241 old_archive_from_new_cmds_F77 \
15242 predep_objects_F77 \
15243 postdep_objects_F77 \
15244 predeps_F77 \
15245 postdeps_F77 \
15246 compiler_lib_search_path_F77 \
15247 archive_cmds_F77 \
15248 archive_expsym_cmds_F77 \
15249 postinstall_cmds_F77 \
15250 postuninstall_cmds_F77 \
15251 old_archive_from_expsyms_cmds_F77 \
15252 allow_undefined_flag_F77 \
15253 no_undefined_flag_F77 \
15254 export_symbols_cmds_F77 \
15255 hardcode_libdir_flag_spec_F77 \
15256 hardcode_libdir_flag_spec_ld_F77 \
15257 hardcode_libdir_separator_F77 \
15258 hardcode_automatic_F77 \
15259 module_cmds_F77 \
15260 module_expsym_cmds_F77 \
15261 lt_cv_prog_compiler_c_o_F77 \
15262 exclude_expsyms_F77 \
15263 include_expsyms_F77; do
15265 case $var in
15266 old_archive_cmds_F77 | \
15267 old_archive_from_new_cmds_F77 | \
15268 archive_cmds_F77 | \
15269 archive_expsym_cmds_F77 | \
15270 module_cmds_F77 | \
15271 module_expsym_cmds_F77 | \
15272 old_archive_from_expsyms_cmds_F77 | \
15273 export_symbols_cmds_F77 | \
15274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15275 postinstall_cmds | postuninstall_cmds | \
15276 old_postinstall_cmds | old_postuninstall_cmds | \
15277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15278 # Double-quote double-evaled strings.
15279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15280 ;;
15281 *)
15282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15283 ;;
15284 esac
15285 done
15287 case $lt_echo in
15288 *'\$0 --fallback-echo"')
15289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15290 ;;
15291 esac
15293 cfgfile="$ofile"
15295 cat <<__EOF__ >> "$cfgfile"
15296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15300 # Shell to use when invoking shell scripts.
15301 SHELL=$lt_SHELL
15303 # Whether or not to build shared libraries.
15304 build_libtool_libs=$enable_shared
15306 # Whether or not to build static libraries.
15307 build_old_libs=$enable_static
15309 # Whether or not to add -lc for building shared libraries.
15310 build_libtool_need_lc=$archive_cmds_need_lc_F77
15312 # Whether or not to disallow shared libs when runtime libs are static
15313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15315 # Whether or not to optimize for fast installation.
15316 fast_install=$enable_fast_install
15318 # The host system.
15319 host_alias=$host_alias
15320 host=$host
15321 host_os=$host_os
15323 # The build system.
15324 build_alias=$build_alias
15325 build=$build
15326 build_os=$build_os
15328 # An echo program that does not interpret backslashes.
15329 echo=$lt_echo
15331 # The archiver.
15332 AR=$lt_AR
15333 AR_FLAGS=$lt_AR_FLAGS
15335 # A C compiler.
15336 LTCC=$lt_LTCC
15338 # LTCC compiler flags.
15339 LTCFLAGS=$lt_LTCFLAGS
15341 # A language-specific compiler.
15342 CC=$lt_compiler_F77
15344 # Is the compiler the GNU C compiler?
15345 with_gcc=$GCC_F77
15347 # An ERE matcher.
15348 EGREP=$lt_EGREP
15350 # The linker used to build libraries.
15351 LD=$lt_LD_F77
15353 # Whether we need hard or soft links.
15354 LN_S=$lt_LN_S
15356 # A BSD-compatible nm program.
15357 NM=$lt_NM
15359 # A symbol stripping program
15360 STRIP=$lt_STRIP
15362 # Used to examine libraries when file_magic_cmd begins "file"
15363 MAGIC_CMD=$MAGIC_CMD
15365 # Used on cygwin: DLL creation program.
15366 DLLTOOL="$DLLTOOL"
15368 # Used on cygwin: object dumper.
15369 OBJDUMP="$OBJDUMP"
15371 # Used on cygwin: assembler.
15372 AS="$AS"
15374 # The name of the directory that contains temporary libtool files.
15375 objdir=$objdir
15377 # How to create reloadable object files.
15378 reload_flag=$lt_reload_flag
15379 reload_cmds=$lt_reload_cmds
15381 # How to pass a linker flag through the compiler.
15382 wl=$lt_lt_prog_compiler_wl_F77
15384 # Object file suffix (normally "o").
15385 objext="$ac_objext"
15387 # Old archive suffix (normally "a").
15388 libext="$libext"
15390 # Shared library suffix (normally ".so").
15391 shrext_cmds='$shrext_cmds'
15393 # Executable file suffix (normally "").
15394 exeext="$exeext"
15396 # Additional compiler flags for building library objects.
15397 pic_flag=$lt_lt_prog_compiler_pic_F77
15398 pic_mode=$pic_mode
15400 # What is the maximum length of a command?
15401 max_cmd_len=$lt_cv_sys_max_cmd_len
15403 # Does compiler simultaneously support -c and -o options?
15404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15406 # Must we lock files when doing compilation?
15407 need_locks=$lt_need_locks
15409 # Do we need the lib prefix for modules?
15410 need_lib_prefix=$need_lib_prefix
15412 # Do we need a version for libraries?
15413 need_version=$need_version
15415 # Whether dlopen is supported.
15416 dlopen_support=$enable_dlopen
15418 # Whether dlopen of programs is supported.
15419 dlopen_self=$enable_dlopen_self
15421 # Whether dlopen of statically linked programs is supported.
15422 dlopen_self_static=$enable_dlopen_self_static
15424 # Compiler flag to prevent dynamic linking.
15425 link_static_flag=$lt_lt_prog_compiler_static_F77
15427 # Compiler flag to turn off builtin functions.
15428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15430 # Compiler flag to allow reflexive dlopens.
15431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15433 # Compiler flag to generate shared objects directly from archives.
15434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15436 # Compiler flag to generate thread-safe objects.
15437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15439 # Library versioning type.
15440 version_type=$version_type
15442 # Format of library name prefix.
15443 libname_spec=$lt_libname_spec
15445 # List of archive names. First name is the real one, the rest are links.
15446 # The last name is the one that the linker finds with -lNAME.
15447 library_names_spec=$lt_library_names_spec
15449 # The coded name of the library, if different from the real name.
15450 soname_spec=$lt_soname_spec
15452 # Commands used to build and install an old-style archive.
15453 RANLIB=$lt_RANLIB
15454 old_archive_cmds=$lt_old_archive_cmds_F77
15455 old_postinstall_cmds=$lt_old_postinstall_cmds
15456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15458 # Create an old-style archive from a shared archive.
15459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15461 # Create a temporary old-style archive to link instead of a shared archive.
15462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15464 # Commands used to build and install a shared archive.
15465 archive_cmds=$lt_archive_cmds_F77
15466 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15467 postinstall_cmds=$lt_postinstall_cmds
15468 postuninstall_cmds=$lt_postuninstall_cmds
15470 # Commands used to build a loadable module (assumed same as above if empty)
15471 module_cmds=$lt_module_cmds_F77
15472 module_expsym_cmds=$lt_module_expsym_cmds_F77
15474 # Commands to strip libraries.
15475 old_striplib=$lt_old_striplib
15476 striplib=$lt_striplib
15478 # Dependencies to place before the objects being linked to create a
15479 # shared library.
15480 predep_objects=$lt_predep_objects_F77
15482 # Dependencies to place after the objects being linked to create a
15483 # shared library.
15484 postdep_objects=$lt_postdep_objects_F77
15486 # Dependencies to place before the objects being linked to create a
15487 # shared library.
15488 predeps=$lt_predeps_F77
15490 # Dependencies to place after the objects being linked to create a
15491 # shared library.
15492 postdeps=$lt_postdeps_F77
15494 # The library search path used internally by the compiler when linking
15495 # a shared library.
15496 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15498 # Method to check whether dependent libraries are shared objects.
15499 deplibs_check_method=$lt_deplibs_check_method
15501 # Command to use when deplibs_check_method == file_magic.
15502 file_magic_cmd=$lt_file_magic_cmd
15504 # Flag that allows shared libraries with undefined symbols to be built.
15505 allow_undefined_flag=$lt_allow_undefined_flag_F77
15507 # Flag that forces no undefined symbols.
15508 no_undefined_flag=$lt_no_undefined_flag_F77
15510 # Commands used to finish a libtool library installation in a directory.
15511 finish_cmds=$lt_finish_cmds
15513 # Same as above, but a single script fragment to be evaled but not shown.
15514 finish_eval=$lt_finish_eval
15516 # Take the output of nm and produce a listing of raw symbols and C names.
15517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15519 # Transform the output of nm in a proper C declaration
15520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15522 # Transform the output of nm in a C name address pair
15523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15525 # This is the shared library runtime path variable.
15526 runpath_var=$runpath_var
15528 # This is the shared library path variable.
15529 shlibpath_var=$shlibpath_var
15531 # Is shlibpath searched before the hard-coded library search path?
15532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15534 # How to hardcode a shared library path into an executable.
15535 hardcode_action=$hardcode_action_F77
15537 # Whether we should hardcode library paths into libraries.
15538 hardcode_into_libs=$hardcode_into_libs
15540 # Flag to hardcode \$libdir into a binary during linking.
15541 # This must work even if \$libdir does not exist.
15542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15544 # If ld is used when linking, flag to hardcode \$libdir into
15545 # a binary during linking. This must work even if \$libdir does
15546 # not exist.
15547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15549 # Whether we need a single -rpath flag with a separated argument.
15550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15552 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15553 # resulting binary.
15554 hardcode_direct=$hardcode_direct_F77
15556 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15557 # resulting binary.
15558 hardcode_minus_L=$hardcode_minus_L_F77
15560 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15561 # the resulting binary.
15562 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15564 # Set to yes if building a shared library automatically hardcodes DIR into the library
15565 # and all subsequent libraries and executables linked against it.
15566 hardcode_automatic=$hardcode_automatic_F77
15568 # Variables whose values should be saved in libtool wrapper scripts and
15569 # restored at relink time.
15570 variables_saved_for_relink="$variables_saved_for_relink"
15572 # Whether libtool must link a program against all its dependency libraries.
15573 link_all_deplibs=$link_all_deplibs_F77
15575 # Compile-time system search path for libraries
15576 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15578 # Run-time system search path for libraries
15579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15581 # Fix the shell variable \$srcfile for the compiler.
15582 fix_srcfile_path="$fix_srcfile_path_F77"
15584 # Set to yes if exported symbols are required.
15585 always_export_symbols=$always_export_symbols_F77
15587 # The commands to list exported symbols.
15588 export_symbols_cmds=$lt_export_symbols_cmds_F77
15590 # The commands to extract the exported symbol list from a shared archive.
15591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15593 # Symbols that should not be listed in the preloaded symbols.
15594 exclude_expsyms=$lt_exclude_expsyms_F77
15596 # Symbols that must always be exported.
15597 include_expsyms=$lt_include_expsyms_F77
15599 # ### END LIBTOOL TAG CONFIG: $tagname
15601 __EOF__
15604 else
15605 # If there is no Makefile yet, we rely on a make rule to execute
15606 # `config.status --recheck' to rerun these tests and create the
15607 # libtool script then.
15608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15609 if test -f "$ltmain_in"; then
15610 test -f Makefile && make "$ltmain"
15611 fi
15612 fi
15615 ac_ext=c
15616 ac_cpp='$CPP $CPPFLAGS'
15617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15621 CC="$lt_save_CC"
15623 else
15624 tagname=""
15625 fi
15626 ;;
15628 GCJ)
15629 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15633 # Source file extension for Java test sources.
15634 ac_ext=java
15636 # Object file extension for compiled Java test sources.
15637 objext=o
15638 objext_GCJ=$objext
15640 # Code to be used in simple compile tests
15641 lt_simple_compile_test_code="class foo {}\n"
15643 # Code to be used in simple link tests
15644 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15648 # If no C compiler was specified, use CC.
15649 LTCC=${LTCC-"$CC"}
15651 # If no C compiler flags were specified, use CFLAGS.
15652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15654 # Allow CC to be a program name with arguments.
15655 compiler=$CC
15658 # save warnings/boilerplate of simple test code
15659 ac_outfile=conftest.$ac_objext
15660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15662 _lt_compiler_boilerplate=`cat conftest.err`
15663 $rm conftest*
15665 ac_outfile=conftest.$ac_objext
15666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15668 _lt_linker_boilerplate=`cat conftest.err`
15669 $rm conftest*
15672 # Allow CC to be a program name with arguments.
15673 lt_save_CC="$CC"
15674 CC=${GCJ-"gcj"}
15675 compiler=$CC
15676 compiler_GCJ=$CC
15677 for cc_temp in $compiler""; do
15678 case $cc_temp in
15679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15681 \-*) ;;
15682 *) break;;
15683 esac
15684 done
15685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15688 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15689 archive_cmds_need_lc_GCJ=no
15691 old_archive_cmds_GCJ=$old_archive_cmds
15694 lt_prog_compiler_no_builtin_flag_GCJ=
15696 if test "$GCC" = yes; then
15697 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15700 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15701 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15702 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705 lt_cv_prog_compiler_rtti_exceptions=no
15706 ac_outfile=conftest.$ac_objext
15707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15708 lt_compiler_flag="-fno-rtti -fno-exceptions"
15709 # Insert the option either (1) after the last *FLAGS variable, or
15710 # (2) before a word containing "conftest.", or (3) at the end.
15711 # Note that $ac_compile itself does not contain backslashes and begins
15712 # with a dollar sign (not a hyphen), so the echo should work correctly.
15713 # The option is referenced via a variable to avoid confusing sed.
15714 lt_compile=`echo "$ac_compile" | $SED \
15715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15717 -e 's:$: $lt_compiler_flag:'`
15718 (eval echo "\"\$as_me:15718: $lt_compile\"" >&5)
15719 (eval "$lt_compile" 2>conftest.err)
15720 ac_status=$?
15721 cat conftest.err >&5
15722 echo "$as_me:15722: \$? = $ac_status" >&5
15723 if (exit $ac_status) && test -s "$ac_outfile"; then
15724 # The compiler can only warn and ignore the option if not recognized
15725 # So say no if there are warnings other than the usual output.
15726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15729 lt_cv_prog_compiler_rtti_exceptions=yes
15730 fi
15731 fi
15732 $rm conftest*
15734 fi
15735 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15736 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15738 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15739 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15740 else
15742 fi
15744 fi
15746 lt_prog_compiler_wl_GCJ=
15747 lt_prog_compiler_pic_GCJ=
15748 lt_prog_compiler_static_GCJ=
15750 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15751 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15753 if test "$GCC" = yes; then
15754 lt_prog_compiler_wl_GCJ='-Wl,'
15755 lt_prog_compiler_static_GCJ='-static'
15757 case $host_os in
15758 aix*)
15759 # All AIX code is PIC.
15760 if test "$host_cpu" = ia64; then
15761 # AIX 5 now supports IA64 processor
15762 lt_prog_compiler_static_GCJ='-Bstatic'
15763 fi
15764 ;;
15766 amigaos*)
15767 # FIXME: we need at least 68020 code to build shared libraries, but
15768 # adding the `-m68020' flag to GCC prevents building anything better,
15769 # like `-m68040'.
15770 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15771 ;;
15773 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15774 # PIC is the default for these OSes.
15775 ;;
15777 mingw* | pw32* | os2*)
15778 # This hack is so that the source file can tell whether it is being
15779 # built for inclusion in a dll (and should export symbols for example).
15780 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15781 ;;
15783 darwin* | rhapsody*)
15784 # PIC is the default on this platform
15785 # Common symbols not allowed in MH_DYLIB files
15786 lt_prog_compiler_pic_GCJ='-fno-common'
15787 ;;
15789 interix3*)
15790 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15791 # Instead, we relocate shared libraries at runtime.
15792 ;;
15794 msdosdjgpp*)
15795 # Just because we use GCC doesn't mean we suddenly get shared libraries
15796 # on systems that don't support them.
15797 lt_prog_compiler_can_build_shared_GCJ=no
15798 enable_shared=no
15799 ;;
15801 sysv4*MP*)
15802 if test -d /usr/nec; then
15803 lt_prog_compiler_pic_GCJ=-Kconform_pic
15804 fi
15805 ;;
15807 hpux*)
15808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15809 # not for PA HP-UX.
15810 case $host_cpu in
15811 hppa*64*|ia64*)
15812 # +Z the default
15813 ;;
15814 *)
15815 lt_prog_compiler_pic_GCJ='-fPIC'
15816 ;;
15817 esac
15818 ;;
15820 *)
15821 lt_prog_compiler_pic_GCJ='-fPIC'
15822 ;;
15823 esac
15824 else
15825 # PORTME Check for flag to pass linker flags through the system compiler.
15826 case $host_os in
15827 aix*)
15828 lt_prog_compiler_wl_GCJ='-Wl,'
15829 if test "$host_cpu" = ia64; then
15830 # AIX 5 now supports IA64 processor
15831 lt_prog_compiler_static_GCJ='-Bstatic'
15832 else
15833 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15834 fi
15835 ;;
15836 darwin*)
15837 # PIC is the default on this platform
15838 # Common symbols not allowed in MH_DYLIB files
15839 case $cc_basename in
15840 xlc*)
15841 lt_prog_compiler_pic_GCJ='-qnocommon'
15842 lt_prog_compiler_wl_GCJ='-Wl,'
15843 ;;
15844 esac
15845 ;;
15847 mingw* | pw32* | os2*)
15848 # This hack is so that the source file can tell whether it is being
15849 # built for inclusion in a dll (and should export symbols for example).
15850 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15851 ;;
15853 hpux9* | hpux10* | hpux11*)
15854 lt_prog_compiler_wl_GCJ='-Wl,'
15855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15856 # not for PA HP-UX.
15857 case $host_cpu in
15858 hppa*64*|ia64*)
15859 # +Z the default
15860 ;;
15861 *)
15862 lt_prog_compiler_pic_GCJ='+Z'
15863 ;;
15864 esac
15865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15866 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15867 ;;
15869 irix5* | irix6* | nonstopux*)
15870 lt_prog_compiler_wl_GCJ='-Wl,'
15871 # PIC (with -KPIC) is the default.
15872 lt_prog_compiler_static_GCJ='-non_shared'
15873 ;;
15875 newsos6)
15876 lt_prog_compiler_pic_GCJ='-KPIC'
15877 lt_prog_compiler_static_GCJ='-Bstatic'
15878 ;;
15880 linux*)
15881 case $cc_basename in
15882 icc* | ecc*)
15883 lt_prog_compiler_wl_GCJ='-Wl,'
15884 lt_prog_compiler_pic_GCJ='-KPIC'
15885 lt_prog_compiler_static_GCJ='-static'
15886 ;;
15887 pgcc* | pgf77* | pgf90* | pgf95*)
15888 # Portland Group compilers (*not* the Pentium gcc compiler,
15889 # which looks to be a dead project)
15890 lt_prog_compiler_wl_GCJ='-Wl,'
15891 lt_prog_compiler_pic_GCJ='-fpic'
15892 lt_prog_compiler_static_GCJ='-Bstatic'
15893 ;;
15894 ccc*)
15895 lt_prog_compiler_wl_GCJ='-Wl,'
15896 # All Alpha code is PIC.
15897 lt_prog_compiler_static_GCJ='-non_shared'
15898 ;;
15899 esac
15900 ;;
15902 osf3* | osf4* | osf5*)
15903 lt_prog_compiler_wl_GCJ='-Wl,'
15904 # All OSF/1 code is PIC.
15905 lt_prog_compiler_static_GCJ='-non_shared'
15906 ;;
15908 solaris*)
15909 lt_prog_compiler_pic_GCJ='-KPIC'
15910 lt_prog_compiler_static_GCJ='-Bstatic'
15911 case $cc_basename in
15912 f77* | f90* | f95*)
15913 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15914 *)
15915 lt_prog_compiler_wl_GCJ='-Wl,';;
15916 esac
15917 ;;
15919 sunos4*)
15920 lt_prog_compiler_wl_GCJ='-Qoption ld '
15921 lt_prog_compiler_pic_GCJ='-PIC'
15922 lt_prog_compiler_static_GCJ='-Bstatic'
15923 ;;
15925 sysv4 | sysv4.2uw2* | sysv4.3*)
15926 lt_prog_compiler_wl_GCJ='-Wl,'
15927 lt_prog_compiler_pic_GCJ='-KPIC'
15928 lt_prog_compiler_static_GCJ='-Bstatic'
15929 ;;
15931 sysv4*MP*)
15932 if test -d /usr/nec ;then
15933 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15934 lt_prog_compiler_static_GCJ='-Bstatic'
15935 fi
15936 ;;
15938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15939 lt_prog_compiler_wl_GCJ='-Wl,'
15940 lt_prog_compiler_pic_GCJ='-KPIC'
15941 lt_prog_compiler_static_GCJ='-Bstatic'
15942 ;;
15944 unicos*)
15945 lt_prog_compiler_wl_GCJ='-Wl,'
15946 lt_prog_compiler_can_build_shared_GCJ=no
15947 ;;
15949 uts4*)
15950 lt_prog_compiler_pic_GCJ='-pic'
15951 lt_prog_compiler_static_GCJ='-Bstatic'
15952 ;;
15954 *)
15955 lt_prog_compiler_can_build_shared_GCJ=no
15956 ;;
15957 esac
15958 fi
15960 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15961 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15964 # Check to make sure the PIC flag actually works.
15966 if test -n "$lt_prog_compiler_pic_GCJ"; then
15968 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15969 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15970 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 else
15973 lt_prog_compiler_pic_works_GCJ=no
15974 ac_outfile=conftest.$ac_objext
15975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15976 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15977 # Insert the option either (1) after the last *FLAGS variable, or
15978 # (2) before a word containing "conftest.", or (3) at the end.
15979 # Note that $ac_compile itself does not contain backslashes and begins
15980 # with a dollar sign (not a hyphen), so the echo should work correctly.
15981 # The option is referenced via a variable to avoid confusing sed.
15982 lt_compile=`echo "$ac_compile" | $SED \
15983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15985 -e 's:$: $lt_compiler_flag:'`
15986 (eval echo "\"\$as_me:15986: $lt_compile\"" >&5)
15987 (eval "$lt_compile" 2>conftest.err)
15988 ac_status=$?
15989 cat conftest.err >&5
15990 echo "$as_me:15990: \$? = $ac_status" >&5
15991 if (exit $ac_status) && test -s "$ac_outfile"; then
15992 # The compiler can only warn and ignore the option if not recognized
15993 # So say no if there are warnings other than the usual output.
15994 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15997 lt_prog_compiler_pic_works_GCJ=yes
15998 fi
15999 fi
16000 $rm conftest*
16002 fi
16003 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16004 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16006 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16007 case $lt_prog_compiler_pic_GCJ in
16008 "" | " "*) ;;
16009 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16010 esac
16011 else
16012 lt_prog_compiler_pic_GCJ=
16013 lt_prog_compiler_can_build_shared_GCJ=no
16014 fi
16016 fi
16017 case $host_os in
16018 # For platforms which do not support PIC, -DPIC is meaningless:
16019 *djgpp*)
16020 lt_prog_compiler_pic_GCJ=
16021 ;;
16022 *)
16023 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16024 ;;
16025 esac
16028 # Check to make sure the static flag actually works.
16030 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16031 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16032 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16033 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036 lt_prog_compiler_static_works_GCJ=no
16037 save_LDFLAGS="$LDFLAGS"
16038 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16039 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16041 # The linker can only warn and ignore the option if not recognized
16042 # So say no if there are warnings
16043 if test -s conftest.err; then
16044 # Append any errors to the config.log.
16045 cat conftest.err 1>&5
16046 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16048 if diff conftest.exp conftest.er2 >/dev/null; then
16049 lt_prog_compiler_static_works_GCJ=yes
16050 fi
16051 else
16052 lt_prog_compiler_static_works_GCJ=yes
16053 fi
16054 fi
16055 $rm conftest*
16056 LDFLAGS="$save_LDFLAGS"
16058 fi
16059 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16060 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16062 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16064 else
16065 lt_prog_compiler_static_GCJ=
16066 fi
16069 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16070 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16071 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074 lt_cv_prog_compiler_c_o_GCJ=no
16075 $rm -r conftest 2>/dev/null
16076 mkdir conftest
16077 cd conftest
16078 mkdir out
16079 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16081 lt_compiler_flag="-o out/conftest2.$ac_objext"
16082 # Insert the option either (1) after the last *FLAGS variable, or
16083 # (2) before a word containing "conftest.", or (3) at the end.
16084 # Note that $ac_compile itself does not contain backslashes and begins
16085 # with a dollar sign (not a hyphen), so the echo should work correctly.
16086 lt_compile=`echo "$ac_compile" | $SED \
16087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16089 -e 's:$: $lt_compiler_flag:'`
16090 (eval echo "\"\$as_me:16090: $lt_compile\"" >&5)
16091 (eval "$lt_compile" 2>out/conftest.err)
16092 ac_status=$?
16093 cat out/conftest.err >&5
16094 echo "$as_me:16094: \$? = $ac_status" >&5
16095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16096 then
16097 # The compiler can only warn and ignore the option if not recognized
16098 # So say no if there are warnings
16099 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16102 lt_cv_prog_compiler_c_o_GCJ=yes
16103 fi
16104 fi
16105 chmod u+w . 2>&5
16106 $rm conftest*
16107 # SGI C++ compiler will create directory out/ii_files/ for
16108 # template instantiation
16109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16110 $rm out/* && rmdir out
16111 cd ..
16112 rmdir conftest
16113 $rm conftest*
16115 fi
16116 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16117 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16120 hard_links="nottested"
16121 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16122 # do not overwrite the value of need_locks provided by the user
16123 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16124 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16125 hard_links=yes
16126 $rm conftest*
16127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16128 touch conftest.a
16129 ln conftest.a conftest.b 2>&5 || hard_links=no
16130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16131 echo "$as_me:$LINENO: result: $hard_links" >&5
16132 echo "${ECHO_T}$hard_links" >&6
16133 if test "$hard_links" = no; then
16134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16135 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16136 need_locks=warn
16137 fi
16138 else
16139 need_locks=no
16140 fi
16142 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16143 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16145 runpath_var=
16146 allow_undefined_flag_GCJ=
16147 enable_shared_with_static_runtimes_GCJ=no
16148 archive_cmds_GCJ=
16149 archive_expsym_cmds_GCJ=
16150 old_archive_From_new_cmds_GCJ=
16151 old_archive_from_expsyms_cmds_GCJ=
16152 export_dynamic_flag_spec_GCJ=
16153 whole_archive_flag_spec_GCJ=
16154 thread_safe_flag_spec_GCJ=
16155 hardcode_libdir_flag_spec_GCJ=
16156 hardcode_libdir_flag_spec_ld_GCJ=
16157 hardcode_libdir_separator_GCJ=
16158 hardcode_direct_GCJ=no
16159 hardcode_minus_L_GCJ=no
16160 hardcode_shlibpath_var_GCJ=unsupported
16161 link_all_deplibs_GCJ=unknown
16162 hardcode_automatic_GCJ=no
16163 module_cmds_GCJ=
16164 module_expsym_cmds_GCJ=
16165 always_export_symbols_GCJ=no
16166 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16167 # include_expsyms should be a list of space-separated symbols to be *always*
16168 # included in the symbol list
16169 include_expsyms_GCJ=
16170 # exclude_expsyms can be an extended regexp of symbols to exclude
16171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16173 # as well as any symbol that contains `d'.
16174 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16176 # platforms (ab)use it in PIC code, but their linkers get confused if
16177 # the symbol is explicitly referenced. Since portable code cannot
16178 # rely on this symbol name, it's probably fine to never include it in
16179 # preloaded symbol tables.
16180 extract_expsyms_cmds=
16181 # Just being paranoid about ensuring that cc_basename is set.
16182 for cc_temp in $compiler""; do
16183 case $cc_temp in
16184 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16185 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16186 \-*) ;;
16187 *) break;;
16188 esac
16189 done
16190 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16192 case $host_os in
16193 cygwin* | mingw* | pw32*)
16194 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16195 # When not using gcc, we currently assume that we are using
16196 # Microsoft Visual C++.
16197 if test "$GCC" != yes; then
16198 with_gnu_ld=no
16199 fi
16200 ;;
16201 interix*)
16202 # we just hope/assume this is gcc and not c89 (= MSVC++)
16203 with_gnu_ld=yes
16204 ;;
16205 openbsd*)
16206 with_gnu_ld=no
16207 ;;
16208 esac
16210 ld_shlibs_GCJ=yes
16211 if test "$with_gnu_ld" = yes; then
16212 # If archive_cmds runs LD, not CC, wlarc should be empty
16213 wlarc='${wl}'
16215 # Set some defaults for GNU ld with shared library support. These
16216 # are reset later if shared libraries are not supported. Putting them
16217 # here allows them to be overridden if necessary.
16218 runpath_var=LD_RUN_PATH
16219 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16220 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16221 # ancient GNU ld didn't support --whole-archive et. al.
16222 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16223 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16224 else
16225 whole_archive_flag_spec_GCJ=
16226 fi
16227 supports_anon_versioning=no
16228 case `$LD -v 2>/dev/null` in
16229 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16230 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16231 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16232 *\ 2.11.*) ;; # other 2.11 versions
16233 *) supports_anon_versioning=yes ;;
16234 esac
16236 # See if GNU ld supports shared libraries.
16237 case $host_os in
16238 aix3* | aix4* | aix5*)
16239 # On AIX/PPC, the GNU linker is very broken
16240 if test "$host_cpu" != ia64; then
16241 ld_shlibs_GCJ=no
16242 cat <<EOF 1>&2
16244 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16245 *** to be unable to reliably create shared libraries on AIX.
16246 *** Therefore, libtool is disabling shared libraries support. If you
16247 *** really care for shared libraries, you may want to modify your PATH
16248 *** so that a non-GNU linker is found, and then restart.
16250 EOF
16251 fi
16252 ;;
16254 amigaos*)
16255 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)'
16256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16257 hardcode_minus_L_GCJ=yes
16259 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16260 # that the semantics of dynamic libraries on AmigaOS, at least up
16261 # to version 4, is to share data among multiple programs linked
16262 # with the same dynamic library. Since this doesn't match the
16263 # behavior of shared libraries on other platforms, we can't use
16264 # them.
16265 ld_shlibs_GCJ=no
16266 ;;
16268 beos*)
16269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16270 allow_undefined_flag_GCJ=unsupported
16271 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16272 # support --undefined. This deserves some investigation. FIXME
16273 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16274 else
16275 ld_shlibs_GCJ=no
16276 fi
16277 ;;
16279 cygwin* | mingw* | pw32*)
16280 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16281 # as there is no search path for DLLs.
16282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16283 allow_undefined_flag_GCJ=unsupported
16284 always_export_symbols_GCJ=no
16285 enable_shared_with_static_runtimes_GCJ=yes
16286 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16288 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16289 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16290 # If the export-symbols file already is a .def file (1st line
16291 # is EXPORTS), use it as is; otherwise, prepend...
16292 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16293 cp $export_symbols $output_objdir/$soname.def;
16294 else
16295 echo EXPORTS > $output_objdir/$soname.def;
16296 cat $export_symbols >> $output_objdir/$soname.def;
16297 fi~
16298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16299 else
16300 ld_shlibs_GCJ=no
16301 fi
16302 ;;
16304 interix3*)
16305 hardcode_direct_GCJ=no
16306 hardcode_shlibpath_var_GCJ=no
16307 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16308 export_dynamic_flag_spec_GCJ='${wl}-E'
16309 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16310 # Instead, shared libraries are loaded at an image base (0x10000000 by
16311 # default) and relocated if they conflict, which is a slow very memory
16312 # consuming and fragmenting process. To avoid this, we pick a random,
16313 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16314 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16315 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16316 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16317 ;;
16319 linux*)
16320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16321 tmp_addflag=
16322 case $cc_basename,$host_cpu in
16323 pgcc*) # Portland Group C compiler
16324 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16325 tmp_addflag=' $pic_flag'
16326 ;;
16327 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16328 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16329 tmp_addflag=' $pic_flag -Mnomain' ;;
16330 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16331 tmp_addflag=' -i_dynamic' ;;
16332 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16333 tmp_addflag=' -i_dynamic -nofor_main' ;;
16334 ifc* | ifort*) # Intel Fortran compiler
16335 tmp_addflag=' -nofor_main' ;;
16336 esac
16337 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16339 if test $supports_anon_versioning = yes; then
16340 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16342 $echo "local: *; };" >> $output_objdir/$libname.ver~
16343 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16344 fi
16345 link_all_deplibs_GCJ=no
16346 else
16347 ld_shlibs_GCJ=no
16348 fi
16349 ;;
16351 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16353 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16354 wlarc=
16355 else
16356 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16357 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16358 fi
16359 ;;
16361 solaris*)
16362 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16363 ld_shlibs_GCJ=no
16364 cat <<EOF 1>&2
16366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16367 *** create shared libraries on Solaris systems. Therefore, libtool
16368 *** is disabling shared libraries support. We urge you to upgrade GNU
16369 *** binutils to release 2.9.1 or newer. Another option is to modify
16370 *** your PATH or compiler configuration so that the native linker is
16371 *** used, and then restart.
16373 EOF
16374 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16375 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16376 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16377 else
16378 ld_shlibs_GCJ=no
16379 fi
16380 ;;
16382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16383 case `$LD -v 2>&1` in
16384 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16385 ld_shlibs_GCJ=no
16386 cat <<_LT_EOF 1>&2
16388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16389 *** reliably create shared libraries on SCO systems. Therefore, libtool
16390 *** is disabling shared libraries support. We urge you to upgrade GNU
16391 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16392 *** your PATH or compiler configuration so that the native linker is
16393 *** used, and then restart.
16395 _LT_EOF
16396 ;;
16397 *)
16398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16399 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16400 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16402 else
16403 ld_shlibs_GCJ=no
16404 fi
16405 ;;
16406 esac
16407 ;;
16409 sunos4*)
16410 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16411 wlarc=
16412 hardcode_direct_GCJ=yes
16413 hardcode_shlibpath_var_GCJ=no
16414 ;;
16416 *)
16417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16418 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16420 else
16421 ld_shlibs_GCJ=no
16422 fi
16423 ;;
16424 esac
16426 if test "$ld_shlibs_GCJ" = no; then
16427 runpath_var=
16428 hardcode_libdir_flag_spec_GCJ=
16429 export_dynamic_flag_spec_GCJ=
16430 whole_archive_flag_spec_GCJ=
16431 fi
16432 else
16433 # PORTME fill in a description of your system's linker (not GNU ld)
16434 case $host_os in
16435 aix3*)
16436 allow_undefined_flag_GCJ=unsupported
16437 always_export_symbols_GCJ=yes
16438 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'
16439 # Note: this linker hardcodes the directories in LIBPATH if there
16440 # are no directories specified by -L.
16441 hardcode_minus_L_GCJ=yes
16442 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16443 # Neither direct hardcoding nor static linking is supported with a
16444 # broken collect2.
16445 hardcode_direct_GCJ=unsupported
16446 fi
16447 ;;
16449 aix4* | aix5*)
16450 if test "$host_cpu" = ia64; then
16451 # On IA64, the linker does run time linking by default, so we don't
16452 # have to do anything special.
16453 aix_use_runtimelinking=no
16454 exp_sym_flag='-Bexport'
16455 no_entry_flag=""
16456 else
16457 # If we're using GNU nm, then we don't want the "-C" option.
16458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16459 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16460 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'
16461 else
16462 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'
16463 fi
16464 aix_use_runtimelinking=no
16466 # Test if we are trying to use run time linking or normal
16467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16468 # need to do runtime linking.
16469 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16470 for ld_flag in $LDFLAGS; do
16471 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16472 aix_use_runtimelinking=yes
16473 break
16474 fi
16475 done
16476 ;;
16477 esac
16479 exp_sym_flag='-bexport'
16480 no_entry_flag='-bnoentry'
16481 fi
16483 # When large executables or shared objects are built, AIX ld can
16484 # have problems creating the table of contents. If linking a library
16485 # or program results in "error TOC overflow" add -mminimal-toc to
16486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16489 archive_cmds_GCJ=''
16490 hardcode_direct_GCJ=yes
16491 hardcode_libdir_separator_GCJ=':'
16492 link_all_deplibs_GCJ=yes
16494 if test "$GCC" = yes; then
16495 case $host_os in aix4.[012]|aix4.[012].*)
16496 # We only want to do this on AIX 4.2 and lower, the check
16497 # below for broken collect2 doesn't work under 4.3+
16498 collect2name=`${CC} -print-prog-name=collect2`
16499 if test -f "$collect2name" && \
16500 strings "$collect2name" | grep resolve_lib_name >/dev/null
16501 then
16502 # We have reworked collect2
16503 hardcode_direct_GCJ=yes
16504 else
16505 # We have old collect2
16506 hardcode_direct_GCJ=unsupported
16507 # It fails to find uninstalled libraries when the uninstalled
16508 # path is not listed in the libpath. Setting hardcode_minus_L
16509 # to unsupported forces relinking
16510 hardcode_minus_L_GCJ=yes
16511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16512 hardcode_libdir_separator_GCJ=
16513 fi
16514 ;;
16515 esac
16516 shared_flag='-shared'
16517 if test "$aix_use_runtimelinking" = yes; then
16518 shared_flag="$shared_flag "'${wl}-G'
16519 fi
16520 else
16521 # not using gcc
16522 if test "$host_cpu" = ia64; then
16523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16524 # chokes on -Wl,-G. The following line is correct:
16525 shared_flag='-G'
16526 else
16527 if test "$aix_use_runtimelinking" = yes; then
16528 shared_flag='${wl}-G'
16529 else
16530 shared_flag='${wl}-bM:SRE'
16531 fi
16532 fi
16533 fi
16535 # It seems that -bexpall does not export symbols beginning with
16536 # underscore (_), so it is better to generate a list of symbols to export.
16537 always_export_symbols_GCJ=yes
16538 if test "$aix_use_runtimelinking" = yes; then
16539 # Warning - without using the other runtime loading flags (-brtl),
16540 # -berok will link without error, but may produce a broken library.
16541 allow_undefined_flag_GCJ='-berok'
16542 # Determine the default libpath from the value encoded in an empty executable.
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16550 int
16551 main ()
16555 return 0;
16557 _ACEOF
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; } &&
16573 { ac_try='test -s conftest$ac_exeext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16581 }'`
16582 # Check for a 64-bit object if we didn't find anything.
16583 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; }
16584 }'`; fi
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 fi
16590 rm -f conftest.err conftest.$ac_objext \
16591 conftest$ac_exeext conftest.$ac_ext
16592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16594 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16595 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16596 else
16597 if test "$host_cpu" = ia64; then
16598 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16599 allow_undefined_flag_GCJ="-z nodefs"
16600 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16601 else
16602 # Determine the default libpath from the value encoded in an empty executable.
16603 cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h. */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16610 int
16611 main ()
16615 return 0;
16617 _ACEOF
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
16627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest$ac_exeext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16641 }'`
16642 # Check for a 64-bit object if we didn't find anything.
16643 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; }
16644 }'`; fi
16645 else
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 fi
16650 rm -f conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16654 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16655 # Warning - without using the other run time loading flags,
16656 # -berok will link without error, but may produce a broken library.
16657 no_undefined_flag_GCJ=' ${wl}-bernotok'
16658 allow_undefined_flag_GCJ=' ${wl}-berok'
16659 # Exported symbols can be pulled into shared objects from archives
16660 whole_archive_flag_spec_GCJ='$convenience'
16661 archive_cmds_need_lc_GCJ=yes
16662 # This is similar to how AIX traditionally builds its shared libraries.
16663 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16664 fi
16665 fi
16666 ;;
16668 amigaos*)
16669 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)'
16670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16671 hardcode_minus_L_GCJ=yes
16672 # see comment about different semantics on the GNU ld section
16673 ld_shlibs_GCJ=no
16674 ;;
16676 bsdi[45]*)
16677 export_dynamic_flag_spec_GCJ=-rdynamic
16678 ;;
16680 cygwin* | mingw* | pw32*)
16681 # When not using gcc, we currently assume that we are using
16682 # Microsoft Visual C++.
16683 # hardcode_libdir_flag_spec is actually meaningless, as there is
16684 # no search path for DLLs.
16685 hardcode_libdir_flag_spec_GCJ=' '
16686 allow_undefined_flag_GCJ=unsupported
16687 # Tell ltmain to make .lib files, not .a files.
16688 libext=lib
16689 # Tell ltmain to make .dll files, not .so files.
16690 shrext_cmds=".dll"
16691 # FIXME: Setting linknames here is a bad hack.
16692 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16693 # The linker will automatically build a .lib file if we build a DLL.
16694 old_archive_From_new_cmds_GCJ='true'
16695 # FIXME: Should let the user specify the lib program.
16696 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16697 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16698 enable_shared_with_static_runtimes_GCJ=yes
16699 ;;
16701 darwin* | rhapsody*)
16702 case $host_os in
16703 rhapsody* | darwin1.[012])
16704 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16705 ;;
16706 *) # Darwin 1.3 on
16707 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16708 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16709 else
16710 case ${MACOSX_DEPLOYMENT_TARGET} in
16711 10.[012])
16712 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16713 ;;
16714 10.*)
16715 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16716 ;;
16717 esac
16718 fi
16719 ;;
16720 esac
16721 archive_cmds_need_lc_GCJ=no
16722 hardcode_direct_GCJ=no
16723 hardcode_automatic_GCJ=yes
16724 hardcode_shlibpath_var_GCJ=unsupported
16725 whole_archive_flag_spec_GCJ=''
16726 link_all_deplibs_GCJ=yes
16727 if test "$GCC" = yes ; then
16728 output_verbose_link_cmd='echo'
16729 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16730 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16732 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}'
16733 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}'
16734 else
16735 case $cc_basename in
16736 xlc*)
16737 output_verbose_link_cmd='echo'
16738 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16739 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16741 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}'
16742 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}'
16743 ;;
16744 *)
16745 ld_shlibs_GCJ=no
16746 ;;
16747 esac
16748 fi
16749 ;;
16751 dgux*)
16752 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16754 hardcode_shlibpath_var_GCJ=no
16755 ;;
16757 freebsd1*)
16758 ld_shlibs_GCJ=no
16759 ;;
16761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16762 # support. Future versions do this automatically, but an explicit c++rt0.o
16763 # does not break anything, and helps significantly (at the cost of a little
16764 # extra space).
16765 freebsd2.2*)
16766 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16767 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16768 hardcode_direct_GCJ=yes
16769 hardcode_shlibpath_var_GCJ=no
16770 ;;
16772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16773 freebsd2*)
16774 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16775 hardcode_direct_GCJ=yes
16776 hardcode_minus_L_GCJ=yes
16777 hardcode_shlibpath_var_GCJ=no
16778 ;;
16780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16781 freebsd* | dragonfly*)
16782 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16783 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16784 hardcode_direct_GCJ=yes
16785 hardcode_shlibpath_var_GCJ=no
16786 ;;
16788 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16789 kfreebsd*-gnu)
16790 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16791 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16792 hardcode_direct_GCJ=yes
16793 hardcode_shlibpath_var_GCJ=no
16794 link_all_deplibs_GCJ=no
16795 ;;
16797 hpux9*)
16798 if test "$GCC" = yes; then
16799 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'
16800 else
16801 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'
16802 fi
16803 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16804 hardcode_libdir_separator_GCJ=:
16805 hardcode_direct_GCJ=yes
16807 # hardcode_minus_L: Not really in the search PATH,
16808 # but as the default location of the library.
16809 hardcode_minus_L_GCJ=yes
16810 export_dynamic_flag_spec_GCJ='${wl}-E'
16811 ;;
16813 hpux10*)
16814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16815 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16816 else
16817 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16818 fi
16819 if test "$with_gnu_ld" = no; then
16820 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16821 hardcode_libdir_separator_GCJ=:
16823 hardcode_direct_GCJ=yes
16824 export_dynamic_flag_spec_GCJ='${wl}-E'
16826 # hardcode_minus_L: Not really in the search PATH,
16827 # but as the default location of the library.
16828 hardcode_minus_L_GCJ=yes
16829 fi
16830 ;;
16832 hpux11*)
16833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16834 case $host_cpu in
16835 hppa*64*)
16836 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16837 ;;
16838 ia64*)
16839 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16840 ;;
16841 *)
16842 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16843 ;;
16844 esac
16845 else
16846 case $host_cpu in
16847 hppa*64*)
16848 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16849 ;;
16850 ia64*)
16851 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16852 ;;
16853 *)
16854 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16855 ;;
16856 esac
16857 fi
16858 if test "$with_gnu_ld" = no; then
16859 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16860 hardcode_libdir_separator_GCJ=:
16862 case $host_cpu in
16863 hppa*64*|ia64*)
16864 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16865 hardcode_direct_GCJ=no
16866 hardcode_shlibpath_var_GCJ=no
16867 ;;
16868 *)
16869 hardcode_direct_GCJ=yes
16870 export_dynamic_flag_spec_GCJ='${wl}-E'
16872 # hardcode_minus_L: Not really in the search PATH,
16873 # but as the default location of the library.
16874 hardcode_minus_L_GCJ=yes
16875 ;;
16876 esac
16877 fi
16878 ;;
16880 irix5* | irix6* | nonstopux*)
16881 if test "$GCC" = yes; then
16882 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'
16883 else
16884 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'
16885 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16886 fi
16887 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16888 hardcode_libdir_separator_GCJ=:
16889 link_all_deplibs_GCJ=yes
16890 ;;
16892 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16895 else
16896 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16897 fi
16898 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16899 hardcode_direct_GCJ=yes
16900 hardcode_shlibpath_var_GCJ=no
16901 ;;
16903 newsos6)
16904 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_direct_GCJ=yes
16906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16907 hardcode_libdir_separator_GCJ=:
16908 hardcode_shlibpath_var_GCJ=no
16909 ;;
16911 openbsd*)
16912 hardcode_direct_GCJ=yes
16913 hardcode_shlibpath_var_GCJ=no
16914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16915 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16916 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16917 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16918 export_dynamic_flag_spec_GCJ='${wl}-E'
16919 else
16920 case $host_os in
16921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16922 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16923 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16924 ;;
16925 *)
16926 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16927 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16928 ;;
16929 esac
16930 fi
16931 ;;
16933 os2*)
16934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16935 hardcode_minus_L_GCJ=yes
16936 allow_undefined_flag_GCJ=unsupported
16937 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'
16938 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16939 ;;
16941 osf3*)
16942 if test "$GCC" = yes; then
16943 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16944 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'
16945 else
16946 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16947 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'
16948 fi
16949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16950 hardcode_libdir_separator_GCJ=:
16951 ;;
16953 osf4* | osf5*) # as osf3* with the addition of -msym flag
16954 if test "$GCC" = yes; then
16955 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16956 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'
16957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16958 else
16959 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16960 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'
16961 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~
16962 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16964 # Both c and cxx compiler support -rpath directly
16965 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16966 fi
16967 hardcode_libdir_separator_GCJ=:
16968 ;;
16970 solaris*)
16971 no_undefined_flag_GCJ=' -z text'
16972 if test "$GCC" = yes; then
16973 wlarc='${wl}'
16974 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16975 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16976 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16977 else
16978 wlarc=''
16979 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16980 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16981 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16982 fi
16983 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16984 hardcode_shlibpath_var_GCJ=no
16985 case $host_os in
16986 solaris2.[0-5] | solaris2.[0-5].*) ;;
16987 *)
16988 # The compiler driver will combine linker options so we
16989 # cannot just pass the convience library names through
16990 # without $wl, iff we do not link with $LD.
16991 # Luckily, gcc supports the same syntax we need for Sun Studio.
16992 # Supported since Solaris 2.6 (maybe 2.5.1?)
16993 case $wlarc in
16994 '')
16995 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16996 *)
16997 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16998 esac ;;
16999 esac
17000 link_all_deplibs_GCJ=yes
17001 ;;
17003 sunos4*)
17004 if test "x$host_vendor" = xsequent; then
17005 # Use $CC to link under sequent, because it throws in some extra .o
17006 # files that make .init and .fini sections work.
17007 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17008 else
17009 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17010 fi
17011 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17012 hardcode_direct_GCJ=yes
17013 hardcode_minus_L_GCJ=yes
17014 hardcode_shlibpath_var_GCJ=no
17015 ;;
17017 sysv4)
17018 case $host_vendor in
17019 sni)
17020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17021 hardcode_direct_GCJ=yes # is this really true???
17022 ;;
17023 siemens)
17024 ## LD is ld it makes a PLAMLIB
17025 ## CC just makes a GrossModule.
17026 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17027 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17028 hardcode_direct_GCJ=no
17029 ;;
17030 motorola)
17031 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17033 ;;
17034 esac
17035 runpath_var='LD_RUN_PATH'
17036 hardcode_shlibpath_var_GCJ=no
17037 ;;
17039 sysv4.3*)
17040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17041 hardcode_shlibpath_var_GCJ=no
17042 export_dynamic_flag_spec_GCJ='-Bexport'
17043 ;;
17045 sysv4*MP*)
17046 if test -d /usr/nec; then
17047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17048 hardcode_shlibpath_var_GCJ=no
17049 runpath_var=LD_RUN_PATH
17050 hardcode_runpath_var=yes
17051 ld_shlibs_GCJ=yes
17052 fi
17053 ;;
17055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17056 no_undefined_flag_GCJ='${wl}-z,text'
17057 archive_cmds_need_lc_GCJ=no
17058 hardcode_shlibpath_var_GCJ=no
17059 runpath_var='LD_RUN_PATH'
17061 if test "$GCC" = yes; then
17062 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17063 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17064 else
17065 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17067 fi
17068 ;;
17070 sysv5* | sco3.2v5* | sco5v6*)
17071 # Note: We can NOT use -z defs as we might desire, because we do not
17072 # link with -lc, and that would cause any symbols used from libc to
17073 # always be unresolved, which means just about no library would
17074 # ever link correctly. If we're not using GNU ld we use -z text
17075 # though, which does catch some bad symbols but isn't as heavy-handed
17076 # as -z defs.
17077 no_undefined_flag_GCJ='${wl}-z,text'
17078 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17079 archive_cmds_need_lc_GCJ=no
17080 hardcode_shlibpath_var_GCJ=no
17081 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17082 hardcode_libdir_separator_GCJ=':'
17083 link_all_deplibs_GCJ=yes
17084 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17085 runpath_var='LD_RUN_PATH'
17087 if test "$GCC" = yes; then
17088 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17090 else
17091 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17092 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17093 fi
17094 ;;
17096 uts4*)
17097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17098 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17099 hardcode_shlibpath_var_GCJ=no
17100 ;;
17102 *)
17103 ld_shlibs_GCJ=no
17104 ;;
17105 esac
17106 fi
17108 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17109 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17110 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17113 # Do we need to explicitly link libc?
17115 case "x$archive_cmds_need_lc_GCJ" in
17116 x|xyes)
17117 # Assume -lc should be added
17118 archive_cmds_need_lc_GCJ=yes
17120 if test "$enable_shared" = yes && test "$GCC" = yes; then
17121 case $archive_cmds_GCJ in
17122 *'~'*)
17123 # FIXME: we may have to deal with multi-command sequences.
17124 ;;
17125 '$CC '*)
17126 # Test whether the compiler implicitly links with -lc since on some
17127 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17128 # to ld, don't add -lc before -lgcc.
17129 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17131 $rm conftest*
17132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17135 (eval $ac_compile) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } 2>conftest.err; then
17139 soname=conftest
17140 lib=conftest
17141 libobjs=conftest.$ac_objext
17142 deplibs=
17143 wl=$lt_prog_compiler_wl_GCJ
17144 pic_flag=$lt_prog_compiler_pic_GCJ
17145 compiler_flags=-v
17146 linker_flags=-v
17147 verstring=
17148 output_objdir=.
17149 libname=conftest
17150 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17151 allow_undefined_flag_GCJ=
17152 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17153 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }
17157 then
17158 archive_cmds_need_lc_GCJ=no
17159 else
17160 archive_cmds_need_lc_GCJ=yes
17161 fi
17162 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17163 else
17164 cat conftest.err 1>&5
17165 fi
17166 $rm conftest*
17167 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17168 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17169 ;;
17170 esac
17171 fi
17172 ;;
17173 esac
17175 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17177 library_names_spec=
17178 libname_spec='lib$name'
17179 soname_spec=
17180 shrext_cmds=".so"
17181 postinstall_cmds=
17182 postuninstall_cmds=
17183 finish_cmds=
17184 finish_eval=
17185 shlibpath_var=
17186 shlibpath_overrides_runpath=unknown
17187 version_type=none
17188 dynamic_linker="$host_os ld.so"
17189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17190 if test "$GCC" = yes; then
17191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17192 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17193 # if the path contains ";" then we assume it to be the separator
17194 # otherwise default to the standard path separator (i.e. ":") - it is
17195 # assumed that no part of a normal pathname contains ";" but that should
17196 # okay in the real world where ";" in dirpaths is itself problematic.
17197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17198 else
17199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17200 fi
17201 else
17202 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17203 fi
17204 need_lib_prefix=unknown
17205 hardcode_into_libs=no
17207 # when you set need_version to no, make sure it does not cause -set_version
17208 # flags to be left without arguments
17209 need_version=unknown
17211 case $host_os in
17212 aix3*)
17213 version_type=linux
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17215 shlibpath_var=LIBPATH
17217 # AIX 3 has no versioning support, so we append a major version to the name.
17218 soname_spec='${libname}${release}${shared_ext}$major'
17219 ;;
17221 aix4* | aix5*)
17222 version_type=linux
17223 need_lib_prefix=no
17224 need_version=no
17225 hardcode_into_libs=yes
17226 if test "$host_cpu" = ia64; then
17227 # AIX 5 supports IA64
17228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 else
17231 # With GCC up to 2.95.x, collect2 would create an import file
17232 # for dependence libraries. The import file would start with
17233 # the line `#! .'. This would cause the generated library to
17234 # depend on `.', always an invalid library. This was fixed in
17235 # development snapshots of GCC prior to 3.0.
17236 case $host_os in
17237 aix4 | aix4.[01] | aix4.[01].*)
17238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17239 echo ' yes '
17240 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17242 else
17243 can_build_shared=no
17244 fi
17245 ;;
17246 esac
17247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17248 # soname into executable. Probably we can add versioning support to
17249 # collect2, so additional links can be useful in future.
17250 if test "$aix_use_runtimelinking" = yes; then
17251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17252 # instead of lib<name>.a to let people know that these are not
17253 # typical AIX shared libraries.
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 else
17256 # We preserve .a as extension for shared libraries through AIX4.2
17257 # and later when we are not doing run time linking.
17258 library_names_spec='${libname}${release}.a $libname.a'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 fi
17261 shlibpath_var=LIBPATH
17262 fi
17263 ;;
17265 amigaos*)
17266 library_names_spec='$libname.ixlibrary $libname.a'
17267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17268 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'
17269 ;;
17271 beos*)
17272 library_names_spec='${libname}${shared_ext}'
17273 dynamic_linker="$host_os ld.so"
17274 shlibpath_var=LIBRARY_PATH
17275 ;;
17277 bsdi[45]*)
17278 version_type=linux
17279 need_version=no
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17283 shlibpath_var=LD_LIBRARY_PATH
17284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17286 # the default ld.so.conf also contains /usr/contrib/lib and
17287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17288 # libtool to hard-code these into programs
17289 ;;
17291 cygwin* | mingw* | pw32*)
17292 version_type=windows
17293 shrext_cmds=".dll"
17294 need_version=no
17295 need_lib_prefix=no
17297 case $GCC,$host_os in
17298 yes,cygwin* | yes,mingw* | yes,pw32*)
17299 library_names_spec='$libname.dll.a'
17300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17301 postinstall_cmds='base_file=`basename \${file}`~
17302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17303 dldir=$destdir/`dirname \$dlpath`~
17304 test -d \$dldir || mkdir -p \$dldir~
17305 $install_prog $dir/$dlname \$dldir/$dlname~
17306 chmod a+x \$dldir/$dlname'
17307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17308 dlpath=$dir/\$dldll~
17309 $rm \$dlpath'
17310 shlibpath_overrides_runpath=yes
17312 case $host_os in
17313 cygwin*)
17314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17316 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17317 ;;
17318 mingw*)
17319 # MinGW DLLs use traditional 'lib' prefix
17320 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17321 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17322 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17323 # It is most probably a Windows format PATH printed by
17324 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17325 # path with ; separators, and with drive letters. We can handle the
17326 # drive letters (cygwin fileutils understands them), so leave them,
17327 # especially as we might pass files found there to a mingw objdump,
17328 # which wouldn't understand a cygwinified path. Ahh.
17329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17330 else
17331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17332 fi
17333 ;;
17334 pw32*)
17335 # pw32 DLLs use 'pw' prefix rather than 'lib'
17336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17337 ;;
17338 esac
17339 ;;
17341 *)
17342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17343 ;;
17344 esac
17345 dynamic_linker='Win32 ld.exe'
17346 # FIXME: first we should search . and the directory the executable is in
17347 shlibpath_var=PATH
17348 ;;
17350 darwin* | rhapsody*)
17351 dynamic_linker="$host_os dyld"
17352 version_type=darwin
17353 need_lib_prefix=no
17354 need_version=no
17355 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17356 soname_spec='${libname}${release}${major}$shared_ext'
17357 shlibpath_overrides_runpath=yes
17358 shlibpath_var=DYLD_LIBRARY_PATH
17359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17360 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17361 if test "$GCC" = yes; then
17362 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"`
17363 else
17364 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17365 fi
17366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17367 ;;
17369 dgux*)
17370 version_type=linux
17371 need_lib_prefix=no
17372 need_version=no
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17374 soname_spec='${libname}${release}${shared_ext}$major'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 ;;
17378 freebsd1*)
17379 dynamic_linker=no
17380 ;;
17382 kfreebsd*-gnu)
17383 version_type=linux
17384 need_lib_prefix=no
17385 need_version=no
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=no
17390 hardcode_into_libs=yes
17391 dynamic_linker='GNU ld.so'
17392 ;;
17394 freebsd* | dragonfly*)
17395 # DragonFly does not have aout. When/if they implement a new
17396 # versioning mechanism, adjust this.
17397 if test -x /usr/bin/objformat; then
17398 objformat=`/usr/bin/objformat`
17399 else
17400 case $host_os in
17401 freebsd[123]*) objformat=aout ;;
17402 *) objformat=elf ;;
17403 esac
17404 fi
17405 version_type=freebsd-$objformat
17406 case $version_type in
17407 freebsd-elf*)
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17409 need_version=no
17410 need_lib_prefix=no
17411 ;;
17412 freebsd-*)
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17414 need_version=yes
17415 ;;
17416 esac
17417 shlibpath_var=LD_LIBRARY_PATH
17418 case $host_os in
17419 freebsd2*)
17420 shlibpath_overrides_runpath=yes
17421 ;;
17422 freebsd3.[01]* | freebsdelf3.[01]*)
17423 shlibpath_overrides_runpath=yes
17424 hardcode_into_libs=yes
17425 ;;
17426 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17427 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17428 shlibpath_overrides_runpath=no
17429 hardcode_into_libs=yes
17430 ;;
17431 freebsd*) # from 4.6 on
17432 shlibpath_overrides_runpath=yes
17433 hardcode_into_libs=yes
17434 ;;
17435 esac
17436 ;;
17438 gnu*)
17439 version_type=linux
17440 need_lib_prefix=no
17441 need_version=no
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 hardcode_into_libs=yes
17446 ;;
17448 hpux9* | hpux10* | hpux11*)
17449 # Give a soname corresponding to the major version so that dld.sl refuses to
17450 # link against other versions.
17451 version_type=sunos
17452 need_lib_prefix=no
17453 need_version=no
17454 case $host_cpu in
17455 ia64*)
17456 shrext_cmds='.so'
17457 hardcode_into_libs=yes
17458 dynamic_linker="$host_os dld.so"
17459 shlibpath_var=LD_LIBRARY_PATH
17460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 if test "X$HPUX_IA64_MODE" = X32; then
17464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17465 else
17466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17467 fi
17468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17469 ;;
17470 hppa*64*)
17471 shrext_cmds='.sl'
17472 hardcode_into_libs=yes
17473 dynamic_linker="$host_os dld.sl"
17474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17477 soname_spec='${libname}${release}${shared_ext}$major'
17478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17480 ;;
17481 *)
17482 shrext_cmds='.sl'
17483 dynamic_linker="$host_os dld.sl"
17484 shlibpath_var=SHLIB_PATH
17485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 ;;
17489 esac
17490 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17491 postinstall_cmds='chmod 555 $lib'
17492 ;;
17494 interix3*)
17495 version_type=linux
17496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath=no
17503 hardcode_into_libs=yes
17504 ;;
17506 irix5* | irix6* | nonstopux*)
17507 case $host_os in
17508 nonstopux*) version_type=nonstopux ;;
17509 *)
17510 if test "$lt_cv_prog_gnu_ld" = yes; then
17511 version_type=linux
17512 else
17513 version_type=irix
17514 fi ;;
17515 esac
17516 need_lib_prefix=no
17517 need_version=no
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17520 case $host_os in
17521 irix5* | nonstopux*)
17522 libsuff= shlibsuff=
17523 ;;
17524 *)
17525 case $LD in # libtool.m4 will add one of these switches to LD
17526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17527 libsuff= shlibsuff= libmagic=32-bit;;
17528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17529 libsuff=32 shlibsuff=N32 libmagic=N32;;
17530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17532 *) libsuff= shlibsuff= libmagic=never-match;;
17533 esac
17534 ;;
17535 esac
17536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17537 shlibpath_overrides_runpath=no
17538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17540 hardcode_into_libs=yes
17541 ;;
17543 # No shared lib support for Linux oldld, aout, or coff.
17544 linux*oldld* | linux*aout* | linux*coff*)
17545 dynamic_linker=no
17546 ;;
17548 # This must be Linux ELF.
17549 linux*)
17550 version_type=linux
17551 need_lib_prefix=no
17552 need_version=no
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath=no
17558 # This implies no fast_install, which is unacceptable.
17559 # Some rework will be needed to allow for fast_install
17560 # before this can be enabled.
17561 hardcode_into_libs=yes
17563 # Append ld.so.conf contents to the search path
17564 if test -f /etc/ld.so.conf; then
17565 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17567 fi
17569 # We used to test for /lib/ld.so.1 and disable shared libraries on
17570 # powerpc, because MkLinux only supported shared libraries with the
17571 # GNU dynamic linker. Since this was broken with cross compilers,
17572 # most powerpc-linux boxes support dynamic linking these days and
17573 # people can always --disable-shared, the test was removed, and we
17574 # assume the GNU/Linux dynamic linker is in use.
17575 dynamic_linker='GNU/Linux ld.so'
17576 ;;
17578 netbsdelf*-gnu)
17579 version_type=linux
17580 need_lib_prefix=no
17581 need_version=no
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17583 soname_spec='${libname}${release}${shared_ext}$major'
17584 shlibpath_var=LD_LIBRARY_PATH
17585 shlibpath_overrides_runpath=no
17586 hardcode_into_libs=yes
17587 dynamic_linker='NetBSD ld.elf_so'
17588 ;;
17590 knetbsd*-gnu)
17591 version_type=linux
17592 need_lib_prefix=no
17593 need_version=no
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17595 soname_spec='${libname}${release}${shared_ext}$major'
17596 shlibpath_var=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath=no
17598 hardcode_into_libs=yes
17599 dynamic_linker='GNU ld.so'
17600 ;;
17602 netbsd*)
17603 version_type=sunos
17604 need_lib_prefix=no
17605 need_version=no
17606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17609 dynamic_linker='NetBSD (a.out) ld.so'
17610 else
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 dynamic_linker='NetBSD ld.elf_so'
17614 fi
17615 shlibpath_var=LD_LIBRARY_PATH
17616 shlibpath_overrides_runpath=yes
17617 hardcode_into_libs=yes
17618 ;;
17620 newsos6)
17621 version_type=linux
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623 shlibpath_var=LD_LIBRARY_PATH
17624 shlibpath_overrides_runpath=yes
17625 ;;
17627 nto-qnx*)
17628 version_type=linux
17629 need_lib_prefix=no
17630 need_version=no
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 shlibpath_var=LD_LIBRARY_PATH
17634 shlibpath_overrides_runpath=yes
17635 ;;
17637 openbsd*)
17638 version_type=sunos
17639 sys_lib_dlsearch_path_spec="/usr/lib"
17640 need_lib_prefix=no
17641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17642 case $host_os in
17643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17644 *) need_version=no ;;
17645 esac
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17648 shlibpath_var=LD_LIBRARY_PATH
17649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17650 case $host_os in
17651 openbsd2.[89] | openbsd2.[89].*)
17652 shlibpath_overrides_runpath=no
17653 ;;
17654 *)
17655 shlibpath_overrides_runpath=yes
17656 ;;
17657 esac
17658 else
17659 shlibpath_overrides_runpath=yes
17660 fi
17661 ;;
17663 os2*)
17664 libname_spec='$name'
17665 shrext_cmds=".dll"
17666 need_lib_prefix=no
17667 library_names_spec='$libname${shared_ext} $libname.a'
17668 dynamic_linker='OS/2 ld.exe'
17669 shlibpath_var=LIBPATH
17670 ;;
17672 osf3* | osf4* | osf5*)
17673 version_type=osf
17674 need_lib_prefix=no
17675 need_version=no
17676 soname_spec='${libname}${release}${shared_ext}$major'
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678 shlibpath_var=LD_LIBRARY_PATH
17679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17681 ;;
17683 solaris*)
17684 version_type=linux
17685 need_lib_prefix=no
17686 need_version=no
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 shlibpath_overrides_runpath=yes
17691 hardcode_into_libs=yes
17692 # ldd complains unless libraries are executable
17693 postinstall_cmds='chmod +x $lib'
17694 ;;
17696 sunos4*)
17697 version_type=sunos
17698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17699 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17700 shlibpath_var=LD_LIBRARY_PATH
17701 shlibpath_overrides_runpath=yes
17702 if test "$with_gnu_ld" = yes; then
17703 need_lib_prefix=no
17704 fi
17705 need_version=yes
17706 ;;
17708 sysv4 | sysv4.3*)
17709 version_type=linux
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 case $host_vendor in
17714 sni)
17715 shlibpath_overrides_runpath=no
17716 need_lib_prefix=no
17717 export_dynamic_flag_spec='${wl}-Blargedynsym'
17718 runpath_var=LD_RUN_PATH
17719 ;;
17720 siemens)
17721 need_lib_prefix=no
17722 ;;
17723 motorola)
17724 need_lib_prefix=no
17725 need_version=no
17726 shlibpath_overrides_runpath=no
17727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17728 ;;
17729 esac
17730 ;;
17732 sysv4*MP*)
17733 if test -d /usr/nec ;then
17734 version_type=linux
17735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17736 soname_spec='$libname${shared_ext}.$major'
17737 shlibpath_var=LD_LIBRARY_PATH
17738 fi
17739 ;;
17741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17742 version_type=freebsd-elf
17743 need_lib_prefix=no
17744 need_version=no
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 hardcode_into_libs=yes
17749 if test "$with_gnu_ld" = yes; then
17750 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17751 shlibpath_overrides_runpath=no
17752 else
17753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17754 shlibpath_overrides_runpath=yes
17755 case $host_os in
17756 sco3.2v5*)
17757 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17758 ;;
17759 esac
17760 fi
17761 sys_lib_dlsearch_path_spec='/usr/lib'
17762 ;;
17764 uts4*)
17765 version_type=linux
17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767 soname_spec='${libname}${release}${shared_ext}$major'
17768 shlibpath_var=LD_LIBRARY_PATH
17769 ;;
17771 *)
17772 dynamic_linker=no
17773 ;;
17774 esac
17775 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17776 echo "${ECHO_T}$dynamic_linker" >&6
17777 test "$dynamic_linker" = no && can_build_shared=no
17779 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17780 if test "$GCC" = yes; then
17781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17782 fi
17784 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17785 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17786 hardcode_action_GCJ=
17787 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17788 test -n "$runpath_var_GCJ" || \
17789 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17791 # We can hardcode non-existant directories.
17792 if test "$hardcode_direct_GCJ" != no &&
17793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17794 # have to relink, otherwise we might link with an installed library
17795 # when we should be linking with a yet-to-be-installed one
17796 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17797 test "$hardcode_minus_L_GCJ" != no; then
17798 # Linking always hardcodes the temporary library directory.
17799 hardcode_action_GCJ=relink
17800 else
17801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17802 hardcode_action_GCJ=immediate
17803 fi
17804 else
17805 # We cannot hardcode anything, or else we can only hardcode existing
17806 # directories.
17807 hardcode_action_GCJ=unsupported
17808 fi
17809 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17810 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17812 if test "$hardcode_action_GCJ" = relink; then
17813 # Fast installation is not supported
17814 enable_fast_install=no
17815 elif test "$shlibpath_overrides_runpath" = yes ||
17816 test "$enable_shared" = no; then
17817 # Fast installation is not necessary
17818 enable_fast_install=needless
17819 fi
17822 # The else clause should only fire when bootstrapping the
17823 # libtool distribution, otherwise you forgot to ship ltmain.sh
17824 # with your package, and you will get complaints that there are
17825 # no rules to generate ltmain.sh.
17826 if test -f "$ltmain"; then
17827 # See if we are running on zsh, and set the options which allow our commands through
17828 # without removal of \ escapes.
17829 if test -n "${ZSH_VERSION+set}" ; then
17830 setopt NO_GLOB_SUBST
17831 fi
17832 # Now quote all the things that may contain metacharacters while being
17833 # careful not to overquote the AC_SUBSTed values. We take copies of the
17834 # variables and quote the copies for generation of the libtool script.
17835 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17836 SED SHELL STRIP \
17837 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17838 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17839 deplibs_check_method reload_flag reload_cmds need_locks \
17840 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17841 lt_cv_sys_global_symbol_to_c_name_address \
17842 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17843 old_postinstall_cmds old_postuninstall_cmds \
17844 compiler_GCJ \
17845 CC_GCJ \
17846 LD_GCJ \
17847 lt_prog_compiler_wl_GCJ \
17848 lt_prog_compiler_pic_GCJ \
17849 lt_prog_compiler_static_GCJ \
17850 lt_prog_compiler_no_builtin_flag_GCJ \
17851 export_dynamic_flag_spec_GCJ \
17852 thread_safe_flag_spec_GCJ \
17853 whole_archive_flag_spec_GCJ \
17854 enable_shared_with_static_runtimes_GCJ \
17855 old_archive_cmds_GCJ \
17856 old_archive_from_new_cmds_GCJ \
17857 predep_objects_GCJ \
17858 postdep_objects_GCJ \
17859 predeps_GCJ \
17860 postdeps_GCJ \
17861 compiler_lib_search_path_GCJ \
17862 archive_cmds_GCJ \
17863 archive_expsym_cmds_GCJ \
17864 postinstall_cmds_GCJ \
17865 postuninstall_cmds_GCJ \
17866 old_archive_from_expsyms_cmds_GCJ \
17867 allow_undefined_flag_GCJ \
17868 no_undefined_flag_GCJ \
17869 export_symbols_cmds_GCJ \
17870 hardcode_libdir_flag_spec_GCJ \
17871 hardcode_libdir_flag_spec_ld_GCJ \
17872 hardcode_libdir_separator_GCJ \
17873 hardcode_automatic_GCJ \
17874 module_cmds_GCJ \
17875 module_expsym_cmds_GCJ \
17876 lt_cv_prog_compiler_c_o_GCJ \
17877 exclude_expsyms_GCJ \
17878 include_expsyms_GCJ; do
17880 case $var in
17881 old_archive_cmds_GCJ | \
17882 old_archive_from_new_cmds_GCJ | \
17883 archive_cmds_GCJ | \
17884 archive_expsym_cmds_GCJ | \
17885 module_cmds_GCJ | \
17886 module_expsym_cmds_GCJ | \
17887 old_archive_from_expsyms_cmds_GCJ | \
17888 export_symbols_cmds_GCJ | \
17889 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17890 postinstall_cmds | postuninstall_cmds | \
17891 old_postinstall_cmds | old_postuninstall_cmds | \
17892 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17893 # Double-quote double-evaled strings.
17894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17895 ;;
17896 *)
17897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17898 ;;
17899 esac
17900 done
17902 case $lt_echo in
17903 *'\$0 --fallback-echo"')
17904 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17905 ;;
17906 esac
17908 cfgfile="$ofile"
17910 cat <<__EOF__ >> "$cfgfile"
17911 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17913 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17915 # Shell to use when invoking shell scripts.
17916 SHELL=$lt_SHELL
17918 # Whether or not to build shared libraries.
17919 build_libtool_libs=$enable_shared
17921 # Whether or not to build static libraries.
17922 build_old_libs=$enable_static
17924 # Whether or not to add -lc for building shared libraries.
17925 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17927 # Whether or not to disallow shared libs when runtime libs are static
17928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17930 # Whether or not to optimize for fast installation.
17931 fast_install=$enable_fast_install
17933 # The host system.
17934 host_alias=$host_alias
17935 host=$host
17936 host_os=$host_os
17938 # The build system.
17939 build_alias=$build_alias
17940 build=$build
17941 build_os=$build_os
17943 # An echo program that does not interpret backslashes.
17944 echo=$lt_echo
17946 # The archiver.
17947 AR=$lt_AR
17948 AR_FLAGS=$lt_AR_FLAGS
17950 # A C compiler.
17951 LTCC=$lt_LTCC
17953 # LTCC compiler flags.
17954 LTCFLAGS=$lt_LTCFLAGS
17956 # A language-specific compiler.
17957 CC=$lt_compiler_GCJ
17959 # Is the compiler the GNU C compiler?
17960 with_gcc=$GCC_GCJ
17962 # An ERE matcher.
17963 EGREP=$lt_EGREP
17965 # The linker used to build libraries.
17966 LD=$lt_LD_GCJ
17968 # Whether we need hard or soft links.
17969 LN_S=$lt_LN_S
17971 # A BSD-compatible nm program.
17972 NM=$lt_NM
17974 # A symbol stripping program
17975 STRIP=$lt_STRIP
17977 # Used to examine libraries when file_magic_cmd begins "file"
17978 MAGIC_CMD=$MAGIC_CMD
17980 # Used on cygwin: DLL creation program.
17981 DLLTOOL="$DLLTOOL"
17983 # Used on cygwin: object dumper.
17984 OBJDUMP="$OBJDUMP"
17986 # Used on cygwin: assembler.
17987 AS="$AS"
17989 # The name of the directory that contains temporary libtool files.
17990 objdir=$objdir
17992 # How to create reloadable object files.
17993 reload_flag=$lt_reload_flag
17994 reload_cmds=$lt_reload_cmds
17996 # How to pass a linker flag through the compiler.
17997 wl=$lt_lt_prog_compiler_wl_GCJ
17999 # Object file suffix (normally "o").
18000 objext="$ac_objext"
18002 # Old archive suffix (normally "a").
18003 libext="$libext"
18005 # Shared library suffix (normally ".so").
18006 shrext_cmds='$shrext_cmds'
18008 # Executable file suffix (normally "").
18009 exeext="$exeext"
18011 # Additional compiler flags for building library objects.
18012 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18013 pic_mode=$pic_mode
18015 # What is the maximum length of a command?
18016 max_cmd_len=$lt_cv_sys_max_cmd_len
18018 # Does compiler simultaneously support -c and -o options?
18019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18021 # Must we lock files when doing compilation?
18022 need_locks=$lt_need_locks
18024 # Do we need the lib prefix for modules?
18025 need_lib_prefix=$need_lib_prefix
18027 # Do we need a version for libraries?
18028 need_version=$need_version
18030 # Whether dlopen is supported.
18031 dlopen_support=$enable_dlopen
18033 # Whether dlopen of programs is supported.
18034 dlopen_self=$enable_dlopen_self
18036 # Whether dlopen of statically linked programs is supported.
18037 dlopen_self_static=$enable_dlopen_self_static
18039 # Compiler flag to prevent dynamic linking.
18040 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18042 # Compiler flag to turn off builtin functions.
18043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18045 # Compiler flag to allow reflexive dlopens.
18046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18048 # Compiler flag to generate shared objects directly from archives.
18049 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18051 # Compiler flag to generate thread-safe objects.
18052 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18054 # Library versioning type.
18055 version_type=$version_type
18057 # Format of library name prefix.
18058 libname_spec=$lt_libname_spec
18060 # List of archive names. First name is the real one, the rest are links.
18061 # The last name is the one that the linker finds with -lNAME.
18062 library_names_spec=$lt_library_names_spec
18064 # The coded name of the library, if different from the real name.
18065 soname_spec=$lt_soname_spec
18067 # Commands used to build and install an old-style archive.
18068 RANLIB=$lt_RANLIB
18069 old_archive_cmds=$lt_old_archive_cmds_GCJ
18070 old_postinstall_cmds=$lt_old_postinstall_cmds
18071 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18073 # Create an old-style archive from a shared archive.
18074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18076 # Create a temporary old-style archive to link instead of a shared archive.
18077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18079 # Commands used to build and install a shared archive.
18080 archive_cmds=$lt_archive_cmds_GCJ
18081 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18082 postinstall_cmds=$lt_postinstall_cmds
18083 postuninstall_cmds=$lt_postuninstall_cmds
18085 # Commands used to build a loadable module (assumed same as above if empty)
18086 module_cmds=$lt_module_cmds_GCJ
18087 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18089 # Commands to strip libraries.
18090 old_striplib=$lt_old_striplib
18091 striplib=$lt_striplib
18093 # Dependencies to place before the objects being linked to create a
18094 # shared library.
18095 predep_objects=$lt_predep_objects_GCJ
18097 # Dependencies to place after the objects being linked to create a
18098 # shared library.
18099 postdep_objects=$lt_postdep_objects_GCJ
18101 # Dependencies to place before the objects being linked to create a
18102 # shared library.
18103 predeps=$lt_predeps_GCJ
18105 # Dependencies to place after the objects being linked to create a
18106 # shared library.
18107 postdeps=$lt_postdeps_GCJ
18109 # The library search path used internally by the compiler when linking
18110 # a shared library.
18111 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18113 # Method to check whether dependent libraries are shared objects.
18114 deplibs_check_method=$lt_deplibs_check_method
18116 # Command to use when deplibs_check_method == file_magic.
18117 file_magic_cmd=$lt_file_magic_cmd
18119 # Flag that allows shared libraries with undefined symbols to be built.
18120 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18122 # Flag that forces no undefined symbols.
18123 no_undefined_flag=$lt_no_undefined_flag_GCJ
18125 # Commands used to finish a libtool library installation in a directory.
18126 finish_cmds=$lt_finish_cmds
18128 # Same as above, but a single script fragment to be evaled but not shown.
18129 finish_eval=$lt_finish_eval
18131 # Take the output of nm and produce a listing of raw symbols and C names.
18132 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18134 # Transform the output of nm in a proper C declaration
18135 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18137 # Transform the output of nm in a C name address pair
18138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18140 # This is the shared library runtime path variable.
18141 runpath_var=$runpath_var
18143 # This is the shared library path variable.
18144 shlibpath_var=$shlibpath_var
18146 # Is shlibpath searched before the hard-coded library search path?
18147 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18149 # How to hardcode a shared library path into an executable.
18150 hardcode_action=$hardcode_action_GCJ
18152 # Whether we should hardcode library paths into libraries.
18153 hardcode_into_libs=$hardcode_into_libs
18155 # Flag to hardcode \$libdir into a binary during linking.
18156 # This must work even if \$libdir does not exist.
18157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18159 # If ld is used when linking, flag to hardcode \$libdir into
18160 # a binary during linking. This must work even if \$libdir does
18161 # not exist.
18162 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18164 # Whether we need a single -rpath flag with a separated argument.
18165 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18167 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18168 # resulting binary.
18169 hardcode_direct=$hardcode_direct_GCJ
18171 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18172 # resulting binary.
18173 hardcode_minus_L=$hardcode_minus_L_GCJ
18175 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18176 # the resulting binary.
18177 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18179 # Set to yes if building a shared library automatically hardcodes DIR into the library
18180 # and all subsequent libraries and executables linked against it.
18181 hardcode_automatic=$hardcode_automatic_GCJ
18183 # Variables whose values should be saved in libtool wrapper scripts and
18184 # restored at relink time.
18185 variables_saved_for_relink="$variables_saved_for_relink"
18187 # Whether libtool must link a program against all its dependency libraries.
18188 link_all_deplibs=$link_all_deplibs_GCJ
18190 # Compile-time system search path for libraries
18191 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18193 # Run-time system search path for libraries
18194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18196 # Fix the shell variable \$srcfile for the compiler.
18197 fix_srcfile_path="$fix_srcfile_path_GCJ"
18199 # Set to yes if exported symbols are required.
18200 always_export_symbols=$always_export_symbols_GCJ
18202 # The commands to list exported symbols.
18203 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18205 # The commands to extract the exported symbol list from a shared archive.
18206 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18208 # Symbols that should not be listed in the preloaded symbols.
18209 exclude_expsyms=$lt_exclude_expsyms_GCJ
18211 # Symbols that must always be exported.
18212 include_expsyms=$lt_include_expsyms_GCJ
18214 # ### END LIBTOOL TAG CONFIG: $tagname
18216 __EOF__
18219 else
18220 # If there is no Makefile yet, we rely on a make rule to execute
18221 # `config.status --recheck' to rerun these tests and create the
18222 # libtool script then.
18223 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18224 if test -f "$ltmain_in"; then
18225 test -f Makefile && make "$ltmain"
18226 fi
18227 fi
18230 ac_ext=c
18231 ac_cpp='$CPP $CPPFLAGS'
18232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18236 CC="$lt_save_CC"
18238 else
18239 tagname=""
18240 fi
18241 ;;
18243 RC)
18247 # Source file extension for RC test sources.
18248 ac_ext=rc
18250 # Object file extension for compiled RC test sources.
18251 objext=o
18252 objext_RC=$objext
18254 # Code to be used in simple compile tests
18255 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18257 # Code to be used in simple link tests
18258 lt_simple_link_test_code="$lt_simple_compile_test_code"
18260 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18262 # If no C compiler was specified, use CC.
18263 LTCC=${LTCC-"$CC"}
18265 # If no C compiler flags were specified, use CFLAGS.
18266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18268 # Allow CC to be a program name with arguments.
18269 compiler=$CC
18272 # save warnings/boilerplate of simple test code
18273 ac_outfile=conftest.$ac_objext
18274 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18276 _lt_compiler_boilerplate=`cat conftest.err`
18277 $rm conftest*
18279 ac_outfile=conftest.$ac_objext
18280 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18282 _lt_linker_boilerplate=`cat conftest.err`
18283 $rm conftest*
18286 # Allow CC to be a program name with arguments.
18287 lt_save_CC="$CC"
18288 CC=${RC-"windres"}
18289 compiler=$CC
18290 compiler_RC=$CC
18291 for cc_temp in $compiler""; do
18292 case $cc_temp in
18293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18295 \-*) ;;
18296 *) break;;
18297 esac
18298 done
18299 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18301 lt_cv_prog_compiler_c_o_RC=yes
18303 # The else clause should only fire when bootstrapping the
18304 # libtool distribution, otherwise you forgot to ship ltmain.sh
18305 # with your package, and you will get complaints that there are
18306 # no rules to generate ltmain.sh.
18307 if test -f "$ltmain"; then
18308 # See if we are running on zsh, and set the options which allow our commands through
18309 # without removal of \ escapes.
18310 if test -n "${ZSH_VERSION+set}" ; then
18311 setopt NO_GLOB_SUBST
18312 fi
18313 # Now quote all the things that may contain metacharacters while being
18314 # careful not to overquote the AC_SUBSTed values. We take copies of the
18315 # variables and quote the copies for generation of the libtool script.
18316 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18317 SED SHELL STRIP \
18318 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18319 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18320 deplibs_check_method reload_flag reload_cmds need_locks \
18321 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18322 lt_cv_sys_global_symbol_to_c_name_address \
18323 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18324 old_postinstall_cmds old_postuninstall_cmds \
18325 compiler_RC \
18326 CC_RC \
18327 LD_RC \
18328 lt_prog_compiler_wl_RC \
18329 lt_prog_compiler_pic_RC \
18330 lt_prog_compiler_static_RC \
18331 lt_prog_compiler_no_builtin_flag_RC \
18332 export_dynamic_flag_spec_RC \
18333 thread_safe_flag_spec_RC \
18334 whole_archive_flag_spec_RC \
18335 enable_shared_with_static_runtimes_RC \
18336 old_archive_cmds_RC \
18337 old_archive_from_new_cmds_RC \
18338 predep_objects_RC \
18339 postdep_objects_RC \
18340 predeps_RC \
18341 postdeps_RC \
18342 compiler_lib_search_path_RC \
18343 archive_cmds_RC \
18344 archive_expsym_cmds_RC \
18345 postinstall_cmds_RC \
18346 postuninstall_cmds_RC \
18347 old_archive_from_expsyms_cmds_RC \
18348 allow_undefined_flag_RC \
18349 no_undefined_flag_RC \
18350 export_symbols_cmds_RC \
18351 hardcode_libdir_flag_spec_RC \
18352 hardcode_libdir_flag_spec_ld_RC \
18353 hardcode_libdir_separator_RC \
18354 hardcode_automatic_RC \
18355 module_cmds_RC \
18356 module_expsym_cmds_RC \
18357 lt_cv_prog_compiler_c_o_RC \
18358 exclude_expsyms_RC \
18359 include_expsyms_RC; do
18361 case $var in
18362 old_archive_cmds_RC | \
18363 old_archive_from_new_cmds_RC | \
18364 archive_cmds_RC | \
18365 archive_expsym_cmds_RC | \
18366 module_cmds_RC | \
18367 module_expsym_cmds_RC | \
18368 old_archive_from_expsyms_cmds_RC | \
18369 export_symbols_cmds_RC | \
18370 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18371 postinstall_cmds | postuninstall_cmds | \
18372 old_postinstall_cmds | old_postuninstall_cmds | \
18373 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18374 # Double-quote double-evaled strings.
18375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18376 ;;
18377 *)
18378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18379 ;;
18380 esac
18381 done
18383 case $lt_echo in
18384 *'\$0 --fallback-echo"')
18385 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18386 ;;
18387 esac
18389 cfgfile="$ofile"
18391 cat <<__EOF__ >> "$cfgfile"
18392 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18394 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18396 # Shell to use when invoking shell scripts.
18397 SHELL=$lt_SHELL
18399 # Whether or not to build shared libraries.
18400 build_libtool_libs=$enable_shared
18402 # Whether or not to build static libraries.
18403 build_old_libs=$enable_static
18405 # Whether or not to add -lc for building shared libraries.
18406 build_libtool_need_lc=$archive_cmds_need_lc_RC
18408 # Whether or not to disallow shared libs when runtime libs are static
18409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18411 # Whether or not to optimize for fast installation.
18412 fast_install=$enable_fast_install
18414 # The host system.
18415 host_alias=$host_alias
18416 host=$host
18417 host_os=$host_os
18419 # The build system.
18420 build_alias=$build_alias
18421 build=$build
18422 build_os=$build_os
18424 # An echo program that does not interpret backslashes.
18425 echo=$lt_echo
18427 # The archiver.
18428 AR=$lt_AR
18429 AR_FLAGS=$lt_AR_FLAGS
18431 # A C compiler.
18432 LTCC=$lt_LTCC
18434 # LTCC compiler flags.
18435 LTCFLAGS=$lt_LTCFLAGS
18437 # A language-specific compiler.
18438 CC=$lt_compiler_RC
18440 # Is the compiler the GNU C compiler?
18441 with_gcc=$GCC_RC
18443 # An ERE matcher.
18444 EGREP=$lt_EGREP
18446 # The linker used to build libraries.
18447 LD=$lt_LD_RC
18449 # Whether we need hard or soft links.
18450 LN_S=$lt_LN_S
18452 # A BSD-compatible nm program.
18453 NM=$lt_NM
18455 # A symbol stripping program
18456 STRIP=$lt_STRIP
18458 # Used to examine libraries when file_magic_cmd begins "file"
18459 MAGIC_CMD=$MAGIC_CMD
18461 # Used on cygwin: DLL creation program.
18462 DLLTOOL="$DLLTOOL"
18464 # Used on cygwin: object dumper.
18465 OBJDUMP="$OBJDUMP"
18467 # Used on cygwin: assembler.
18468 AS="$AS"
18470 # The name of the directory that contains temporary libtool files.
18471 objdir=$objdir
18473 # How to create reloadable object files.
18474 reload_flag=$lt_reload_flag
18475 reload_cmds=$lt_reload_cmds
18477 # How to pass a linker flag through the compiler.
18478 wl=$lt_lt_prog_compiler_wl_RC
18480 # Object file suffix (normally "o").
18481 objext="$ac_objext"
18483 # Old archive suffix (normally "a").
18484 libext="$libext"
18486 # Shared library suffix (normally ".so").
18487 shrext_cmds='$shrext_cmds'
18489 # Executable file suffix (normally "").
18490 exeext="$exeext"
18492 # Additional compiler flags for building library objects.
18493 pic_flag=$lt_lt_prog_compiler_pic_RC
18494 pic_mode=$pic_mode
18496 # What is the maximum length of a command?
18497 max_cmd_len=$lt_cv_sys_max_cmd_len
18499 # Does compiler simultaneously support -c and -o options?
18500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18502 # Must we lock files when doing compilation?
18503 need_locks=$lt_need_locks
18505 # Do we need the lib prefix for modules?
18506 need_lib_prefix=$need_lib_prefix
18508 # Do we need a version for libraries?
18509 need_version=$need_version
18511 # Whether dlopen is supported.
18512 dlopen_support=$enable_dlopen
18514 # Whether dlopen of programs is supported.
18515 dlopen_self=$enable_dlopen_self
18517 # Whether dlopen of statically linked programs is supported.
18518 dlopen_self_static=$enable_dlopen_self_static
18520 # Compiler flag to prevent dynamic linking.
18521 link_static_flag=$lt_lt_prog_compiler_static_RC
18523 # Compiler flag to turn off builtin functions.
18524 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18526 # Compiler flag to allow reflexive dlopens.
18527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18529 # Compiler flag to generate shared objects directly from archives.
18530 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18532 # Compiler flag to generate thread-safe objects.
18533 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18535 # Library versioning type.
18536 version_type=$version_type
18538 # Format of library name prefix.
18539 libname_spec=$lt_libname_spec
18541 # List of archive names. First name is the real one, the rest are links.
18542 # The last name is the one that the linker finds with -lNAME.
18543 library_names_spec=$lt_library_names_spec
18545 # The coded name of the library, if different from the real name.
18546 soname_spec=$lt_soname_spec
18548 # Commands used to build and install an old-style archive.
18549 RANLIB=$lt_RANLIB
18550 old_archive_cmds=$lt_old_archive_cmds_RC
18551 old_postinstall_cmds=$lt_old_postinstall_cmds
18552 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18554 # Create an old-style archive from a shared archive.
18555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18557 # Create a temporary old-style archive to link instead of a shared archive.
18558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18560 # Commands used to build and install a shared archive.
18561 archive_cmds=$lt_archive_cmds_RC
18562 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18563 postinstall_cmds=$lt_postinstall_cmds
18564 postuninstall_cmds=$lt_postuninstall_cmds
18566 # Commands used to build a loadable module (assumed same as above if empty)
18567 module_cmds=$lt_module_cmds_RC
18568 module_expsym_cmds=$lt_module_expsym_cmds_RC
18570 # Commands to strip libraries.
18571 old_striplib=$lt_old_striplib
18572 striplib=$lt_striplib
18574 # Dependencies to place before the objects being linked to create a
18575 # shared library.
18576 predep_objects=$lt_predep_objects_RC
18578 # Dependencies to place after the objects being linked to create a
18579 # shared library.
18580 postdep_objects=$lt_postdep_objects_RC
18582 # Dependencies to place before the objects being linked to create a
18583 # shared library.
18584 predeps=$lt_predeps_RC
18586 # Dependencies to place after the objects being linked to create a
18587 # shared library.
18588 postdeps=$lt_postdeps_RC
18590 # The library search path used internally by the compiler when linking
18591 # a shared library.
18592 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18594 # Method to check whether dependent libraries are shared objects.
18595 deplibs_check_method=$lt_deplibs_check_method
18597 # Command to use when deplibs_check_method == file_magic.
18598 file_magic_cmd=$lt_file_magic_cmd
18600 # Flag that allows shared libraries with undefined symbols to be built.
18601 allow_undefined_flag=$lt_allow_undefined_flag_RC
18603 # Flag that forces no undefined symbols.
18604 no_undefined_flag=$lt_no_undefined_flag_RC
18606 # Commands used to finish a libtool library installation in a directory.
18607 finish_cmds=$lt_finish_cmds
18609 # Same as above, but a single script fragment to be evaled but not shown.
18610 finish_eval=$lt_finish_eval
18612 # Take the output of nm and produce a listing of raw symbols and C names.
18613 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18615 # Transform the output of nm in a proper C declaration
18616 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18618 # Transform the output of nm in a C name address pair
18619 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18621 # This is the shared library runtime path variable.
18622 runpath_var=$runpath_var
18624 # This is the shared library path variable.
18625 shlibpath_var=$shlibpath_var
18627 # Is shlibpath searched before the hard-coded library search path?
18628 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18630 # How to hardcode a shared library path into an executable.
18631 hardcode_action=$hardcode_action_RC
18633 # Whether we should hardcode library paths into libraries.
18634 hardcode_into_libs=$hardcode_into_libs
18636 # Flag to hardcode \$libdir into a binary during linking.
18637 # This must work even if \$libdir does not exist.
18638 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18640 # If ld is used when linking, flag to hardcode \$libdir into
18641 # a binary during linking. This must work even if \$libdir does
18642 # not exist.
18643 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18645 # Whether we need a single -rpath flag with a separated argument.
18646 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18648 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18649 # resulting binary.
18650 hardcode_direct=$hardcode_direct_RC
18652 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18653 # resulting binary.
18654 hardcode_minus_L=$hardcode_minus_L_RC
18656 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18657 # the resulting binary.
18658 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18660 # Set to yes if building a shared library automatically hardcodes DIR into the library
18661 # and all subsequent libraries and executables linked against it.
18662 hardcode_automatic=$hardcode_automatic_RC
18664 # Variables whose values should be saved in libtool wrapper scripts and
18665 # restored at relink time.
18666 variables_saved_for_relink="$variables_saved_for_relink"
18668 # Whether libtool must link a program against all its dependency libraries.
18669 link_all_deplibs=$link_all_deplibs_RC
18671 # Compile-time system search path for libraries
18672 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18674 # Run-time system search path for libraries
18675 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18677 # Fix the shell variable \$srcfile for the compiler.
18678 fix_srcfile_path="$fix_srcfile_path_RC"
18680 # Set to yes if exported symbols are required.
18681 always_export_symbols=$always_export_symbols_RC
18683 # The commands to list exported symbols.
18684 export_symbols_cmds=$lt_export_symbols_cmds_RC
18686 # The commands to extract the exported symbol list from a shared archive.
18687 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18689 # Symbols that should not be listed in the preloaded symbols.
18690 exclude_expsyms=$lt_exclude_expsyms_RC
18692 # Symbols that must always be exported.
18693 include_expsyms=$lt_include_expsyms_RC
18695 # ### END LIBTOOL TAG CONFIG: $tagname
18697 __EOF__
18700 else
18701 # If there is no Makefile yet, we rely on a make rule to execute
18702 # `config.status --recheck' to rerun these tests and create the
18703 # libtool script then.
18704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18705 if test -f "$ltmain_in"; then
18706 test -f Makefile && make "$ltmain"
18707 fi
18708 fi
18711 ac_ext=c
18712 ac_cpp='$CPP $CPPFLAGS'
18713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18717 CC="$lt_save_CC"
18719 ;;
18721 *)
18722 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18723 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18724 { (exit 1); exit 1; }; }
18725 ;;
18726 esac
18728 # Append the new tag name to the list of available tags.
18729 if test -n "$tagname" ; then
18730 available_tags="$available_tags $tagname"
18731 fi
18732 fi
18733 done
18734 IFS="$lt_save_ifs"
18736 # Now substitute the updated list of available tags.
18737 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18738 mv "${ofile}T" "$ofile"
18739 chmod +x "$ofile"
18740 else
18741 rm -f "${ofile}T"
18742 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18743 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18744 { (exit 1); exit 1; }; }
18745 fi
18746 fi
18750 # This can be used to rebuild libtool when needed
18751 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18753 # Always use our own libtool.
18754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18756 # Prevent multiple expansion
18778 PLUGIN_LDFLAGS="-module -avoid-version"
18781 # work around a bug where need_version is set to no by the above
18782 # -avoid-version call when this is not supported on OpenBSD (or am I
18783 # completely wrong about this?)
18784 case "${host_os}" in
18785 openbsd*)
18786 sed 's/^need_version=no$/need_version=yes/' < libtool > libtool.tmp && mv -f libtool.tmp libtool
18787 ;;
18788 esac
18792 # Extract the first word of "pkg-config", so it can be a program name with args.
18793 set dummy pkg-config; ac_word=$2
18794 echo "$as_me:$LINENO: checking for $ac_word" >&5
18795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799 case $PKG_CONFIG in
18800 [\\/]* | ?:[\\/]*)
18801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18802 ;;
18803 *)
18804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18805 for as_dir in $PATH
18806 do
18807 IFS=$as_save_IFS
18808 test -z "$as_dir" && as_dir=.
18809 for ac_exec_ext in '' $ac_executable_extensions; do
18810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18813 break 2
18814 fi
18815 done
18816 done
18818 ;;
18819 esac
18820 fi
18821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18823 if test -n "$PKG_CONFIG"; then
18824 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18825 echo "${ECHO_T}$PKG_CONFIG" >&6
18826 else
18827 echo "$as_me:$LINENO: result: no" >&5
18828 echo "${ECHO_T}no" >&6
18829 fi
18832 if test x$prefix != xNONE; then
18833 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig"
18834 fi
18836 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
18837 export PKG_CONFIG_PATH
18840 succeeded=no
18842 if test -z "$PKG_CONFIG"; then
18843 # Extract the first word of "pkg-config", so it can be a program name with args.
18844 set dummy pkg-config; ac_word=$2
18845 echo "$as_me:$LINENO: checking for $ac_word" >&5
18846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18849 else
18850 case $PKG_CONFIG in
18851 [\\/]* | ?:[\\/]*)
18852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18853 ;;
18854 *)
18855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18856 for as_dir in $PATH
18857 do
18858 IFS=$as_save_IFS
18859 test -z "$as_dir" && as_dir=.
18860 for ac_exec_ext in '' $ac_executable_extensions; do
18861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18864 break 2
18865 fi
18866 done
18867 done
18869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18870 ;;
18871 esac
18872 fi
18873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18875 if test -n "$PKG_CONFIG"; then
18876 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18877 echo "${ECHO_T}$PKG_CONFIG" >&6
18878 else
18879 echo "$as_me:$LINENO: result: no" >&5
18880 echo "${ECHO_T}no" >&6
18881 fi
18883 fi
18885 if test "$PKG_CONFIG" = "no" ; then
18886 echo "*** The pkg-config script could not be found. Make sure it is"
18887 echo "*** in your path, or set the PKG_CONFIG environment variable"
18888 echo "*** to the full path to pkg-config."
18889 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18890 else
18891 PKG_CONFIG_MIN_VERSION=0.9.0
18892 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18893 echo "$as_me:$LINENO: checking for libgift >= 0.11.4 libgift < 0.12.0" >&5
18894 echo $ECHO_N "checking for libgift >= 0.11.4 libgift < 0.12.0... $ECHO_C" >&6
18896 if $PKG_CONFIG --exists "libgift >= 0.11.4 libgift < 0.12.0" ; then
18897 echo "$as_me:$LINENO: result: yes" >&5
18898 echo "${ECHO_T}yes" >&6
18899 succeeded=yes
18901 echo "$as_me:$LINENO: checking GNUTELLA_CFLAGS" >&5
18902 echo $ECHO_N "checking GNUTELLA_CFLAGS... $ECHO_C" >&6
18903 GNUTELLA_CFLAGS=`$PKG_CONFIG --cflags "libgift >= 0.11.4 libgift < 0.12.0"`
18904 echo "$as_me:$LINENO: result: $GNUTELLA_CFLAGS" >&5
18905 echo "${ECHO_T}$GNUTELLA_CFLAGS" >&6
18907 echo "$as_me:$LINENO: checking GNUTELLA_LIBS" >&5
18908 echo $ECHO_N "checking GNUTELLA_LIBS... $ECHO_C" >&6
18909 GNUTELLA_LIBS=`$PKG_CONFIG --libs "libgift >= 0.11.4 libgift < 0.12.0"`
18910 echo "$as_me:$LINENO: result: $GNUTELLA_LIBS" >&5
18911 echo "${ECHO_T}$GNUTELLA_LIBS" >&6
18912 else
18913 GNUTELLA_CFLAGS=""
18914 GNUTELLA_LIBS=""
18915 ## If we have a custom action on failure, don't print errors, but
18916 ## do set a variable so people can do so.
18917 GNUTELLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgift >= 0.11.4 libgift < 0.12.0"`
18918 echo $GNUTELLA_PKG_ERRORS
18919 fi
18923 else
18924 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18925 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18926 fi
18927 fi
18929 if test $succeeded = yes; then
18931 else
18932 { { echo "$as_me:$LINENO: error: Library requirements (libgift >= 0.11.4 libgift < 0.12.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
18933 echo "$as_me: error: Library requirements (libgift >= 0.11.4 libgift < 0.12.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
18934 { (exit 1); exit 1; }; }
18935 fi
18938 # fudge libgiftproto in there which doesnt have any pkg-config entry
18939 GNUTELLA_LIBS="$GNUTELLA_LIBS -lgiftproto"
18941 # hack to set libgift_version
18942 libgift_version=`pkg-config libgift --modversion`
18950 # Get rid of -g[0-9] -Wall -O[0-9] and add them unconditionally if
18951 # compiling in maintainer mode
18952 if test x"$USE_MAINTAINER_MODE" = xyes; then
18953 CFLAGS=`echo "$CFLAGS" | sed 's/-Wall\>//; s/-O[0-9]//; s/-g\([0-9]\)*//'`
18954 CFLAGS="$CFLAGS -Wall -g3 -O0"
18955 fi
18960 for ac_func in getpid getppid
18961 do
18962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963 echo "$as_me:$LINENO: checking for $ac_func" >&5
18964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18965 if eval "test \"\${$as_ac_var+set}\" = set"; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h. */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18976 #define $ac_func innocuous_$ac_func
18978 /* System header to define __stub macros and hopefully few prototypes,
18979 which can conflict with char $ac_func (); below.
18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 <limits.h> exists even on freestanding compilers. */
18983 #ifdef __STDC__
18984 # include <limits.h>
18985 #else
18986 # include <assert.h>
18987 #endif
18989 #undef $ac_func
18991 /* Override any gcc2 internal prototype to avoid an error. */
18992 #ifdef __cplusplus
18993 extern "C"
18995 #endif
18996 /* We use char because int might match the return type of a gcc2
18997 builtin and then its argument prototype would still apply. */
18998 char $ac_func ();
18999 /* The GNU C library defines this for functions which it implements
19000 to always fail with ENOSYS. Some functions are actually named
19001 something starting with __ and the normal name is an alias. */
19002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19003 choke me
19004 #else
19005 char (*f) () = $ac_func;
19006 #endif
19007 #ifdef __cplusplus
19009 #endif
19011 int
19012 main ()
19014 return f != $ac_func;
19016 return 0;
19018 _ACEOF
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19021 (eval $ac_link) 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest$ac_exeext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 eval "$as_ac_var=yes"
19041 else
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19045 eval "$as_ac_var=no"
19046 fi
19047 rm -f conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19049 fi
19050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19052 if test `eval echo '${'$as_ac_var'}'` = yes; then
19053 cat >>confdefs.h <<_ACEOF
19054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19055 _ACEOF
19057 fi
19058 done
19063 for ac_func in hstrerror
19064 do
19065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19066 echo "$as_me:$LINENO: checking for $ac_func" >&5
19067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19068 if eval "test \"\${$as_ac_var+set}\" = set"; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 else
19071 cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h. */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19079 #define $ac_func innocuous_$ac_func
19081 /* System header to define __stub macros and hopefully few prototypes,
19082 which can conflict with char $ac_func (); below.
19083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19084 <limits.h> exists even on freestanding compilers. */
19086 #ifdef __STDC__
19087 # include <limits.h>
19088 #else
19089 # include <assert.h>
19090 #endif
19092 #undef $ac_func
19094 /* Override any gcc2 internal prototype to avoid an error. */
19095 #ifdef __cplusplus
19096 extern "C"
19098 #endif
19099 /* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19101 char $ac_func ();
19102 /* The GNU C library defines this for functions which it implements
19103 to always fail with ENOSYS. Some functions are actually named
19104 something starting with __ and the normal name is an alias. */
19105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19106 choke me
19107 #else
19108 char (*f) () = $ac_func;
19109 #endif
19110 #ifdef __cplusplus
19112 #endif
19114 int
19115 main ()
19117 return f != $ac_func;
19119 return 0;
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124 (eval $ac_link) 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest$ac_exeext'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 eval "$as_ac_var=yes"
19144 else
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 eval "$as_ac_var=no"
19149 fi
19150 rm -f conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 fi
19153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19155 if test `eval echo '${'$as_ac_var'}'` = yes; then
19156 cat >>confdefs.h <<_ACEOF
19157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19158 _ACEOF
19160 fi
19161 done
19165 OPT_ZLIB=
19167 # Check whether --with-zlib or --without-zlib was given.
19168 if test "${with_zlib+set}" = set; then
19169 withval="$with_zlib"
19170 OPT_ZLIB=$withval
19171 fi;
19173 if test x"$OPT_ZLIB" = xno; then
19174 { { echo "$as_me:$LINENO: error: zlib support is required" >&5
19175 echo "$as_me: error: zlib support is required" >&2;}
19176 { (exit 1); exit 1; }; }
19177 fi
19180 # set the minimum ZLIB_VER we're willing to link against...
19181 ZLIB_VER=1.1.4
19183 # for some reason Darwin has a 1.1.3 version with the 1.1.4 security fix
19184 # applied backwards...
19185 case "${host}" in
19186 *-*-darwin* )
19187 ZLIB_VER=1.1.3
19188 ;;
19189 esac
19191 if test x"$OPT_ZLIB" = xno; then
19192 zlib_ok=no
19193 else
19194 ZLIB_DIRS="$OPT_ZLIB /usr /usr/local /sw"
19195 for ZLIB_DIR in $ZLIB_DIRS;
19196 do
19197 LIBS_SAVE="$LIBS"
19198 CPPFLAGS_SAVE="$CPPFLAGS"
19199 LIBS="$LIBS -L${ZLIB_DIR}/lib"
19200 CPPFLAGS="$CPPFLAGS -I${ZLIB_DIR}/include"
19201 echo "$as_me:$LINENO: checking for zlib version ${ZLIB_VER}+ in ${ZLIB_DIR}" >&5
19202 echo $ECHO_N "checking for zlib version ${ZLIB_VER}+ in ${ZLIB_DIR}... $ECHO_C" >&6
19203 if test "${zlib_ok+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206 if test "$cross_compiling" = yes; then
19207 zlib_ok=yes
19208 else
19209 cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h. */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 #include <zlib.h>
19216 #include <string.h>
19217 void main() {
19218 exit(strcmp(ZLIB_VERSION, "${ZLIB_VER}") < 0);
19221 _ACEOF
19222 rm -f conftest$ac_exeext
19223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19224 (eval $ac_link) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 zlib_ok=yes
19234 else
19235 echo "$as_me: program exited with status $ac_status" >&5
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 ( exit $ac_status )
19240 zlib_ok=no
19241 fi
19242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19243 fi
19244 fi
19245 echo "$as_me:$LINENO: result: $zlib_ok" >&5
19246 echo "${ECHO_T}$zlib_ok" >&6
19248 if test "$zlib_ok" != "no"; then
19249 echo "$as_me:$LINENO: checking for gzread" >&5
19250 echo $ECHO_N "checking for gzread... $ECHO_C" >&6
19251 if test "${ac_cv_func_gzread+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h. */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 /* Define gzread to an innocuous variant, in case <limits.h> declares gzread.
19261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19262 #define gzread innocuous_gzread
19264 /* System header to define __stub macros and hopefully few prototypes,
19265 which can conflict with char gzread (); below.
19266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19267 <limits.h> exists even on freestanding compilers. */
19269 #ifdef __STDC__
19270 # include <limits.h>
19271 #else
19272 # include <assert.h>
19273 #endif
19275 #undef gzread
19277 /* Override any gcc2 internal prototype to avoid an error. */
19278 #ifdef __cplusplus
19279 extern "C"
19281 #endif
19282 /* We use char because int might match the return type of a gcc2
19283 builtin and then its argument prototype would still apply. */
19284 char gzread ();
19285 /* The GNU C library defines this for functions which it implements
19286 to always fail with ENOSYS. Some functions are actually named
19287 something starting with __ and the normal name is an alias. */
19288 #if defined (__stub_gzread) || defined (__stub___gzread)
19289 choke me
19290 #else
19291 char (*f) () = gzread;
19292 #endif
19293 #ifdef __cplusplus
19295 #endif
19297 int
19298 main ()
19300 return f != gzread;
19302 return 0;
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19307 (eval $ac_link) 2>conftest.er1
19308 ac_status=$?
19309 grep -v '^ *+' conftest.er1 >conftest.err
19310 rm -f conftest.er1
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } &&
19314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 ac_cv_func_gzread=yes
19327 else
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19331 ac_cv_func_gzread=no
19332 fi
19333 rm -f conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 fi
19336 echo "$as_me:$LINENO: result: $ac_cv_func_gzread" >&5
19337 echo "${ECHO_T}$ac_cv_func_gzread" >&6
19338 if test $ac_cv_func_gzread = yes; then
19340 else
19342 echo "$as_me:$LINENO: checking for gzread in -lz" >&5
19343 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
19344 if test "${ac_cv_lib_z_gzread+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347 ac_check_lib_save_LIBS=$LIBS
19348 LIBS="-lz $LIBS"
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h. */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19356 /* Override any gcc2 internal prototype to avoid an error. */
19357 #ifdef __cplusplus
19358 extern "C"
19359 #endif
19360 /* We use char because int might match the return type of a gcc2
19361 builtin and then its argument prototype would still apply. */
19362 char gzread ();
19363 int
19364 main ()
19366 gzread ();
19368 return 0;
19370 _ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19373 (eval $ac_link) 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_lib_z_gzread=yes
19393 else
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_cv_lib_z_gzread=no
19398 fi
19399 rm -f conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19401 LIBS=$ac_check_lib_save_LIBS
19402 fi
19403 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
19404 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
19405 if test $ac_cv_lib_z_gzread = yes; then
19406 cat >>confdefs.h <<_ACEOF
19407 #define HAVE_LIBZ 1
19408 _ACEOF
19410 LIBS="-lz $LIBS"
19412 fi
19414 fi
19416 cat >>confdefs.h <<\_ACEOF
19417 #define USE_ZLIB 1
19418 _ACEOF
19421 break
19422 fi
19423 LIBS="$LIBS_SAVE"
19424 CPPFLAGS="$CPPFLAGS_SAVE"
19425 done
19427 if test "$zlib_ok" = "no"; then
19428 { { echo "$as_me:$LINENO: error:
19429 NOTE: The zlib compression library version ${ZLIB_VER} or greater was not found
19430 on your system.
19432 If zlib ${ZLIB_VER}+ is not installed, install it.
19433 " >&5
19434 echo "$as_me: error:
19435 NOTE: The zlib compression library version ${ZLIB_VER} or greater was not found
19436 on your system.
19438 If zlib ${ZLIB_VER}+ is not installed, install it.
19439 " >&2;}
19440 { (exit 1); exit 1; }; }
19441 fi
19442 fi
19446 OPT_LIBXML=no
19448 # Check whether --with-libxml or --without-libxml was given.
19449 if test "${with_libxml+set}" = set; then
19450 withval="$with_libxml"
19451 OPT_LIBXML=$withval
19452 fi;
19454 echo "$as_me:$LINENO: checking whether libxml should be used" >&5
19455 echo $ECHO_N "checking whether libxml should be used... $ECHO_C" >&6
19456 use_libxml=no
19458 if test x"$OPT_LIBXML" != xno; then
19459 echo "$as_me:$LINENO: result: yes" >&5
19460 echo "${ECHO_T}yes" >&6
19463 # Check on the user's PATH if no path was specified in OPT_LIBXML,
19464 # when the user has passed --with-libxml without a directory,
19465 # or check the directory if one was supplied.
19467 if test x"$OPT_LIBXML" = xyes; then
19468 # Extract the first word of "xml2-config", so it can be a program name with args.
19469 set dummy xml2-config; ac_word=$2
19470 echo "$as_me:$LINENO: checking for $ac_word" >&5
19471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19472 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475 case $XML2_CONFIG in
19476 [\\/]* | ?:[\\/]*)
19477 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
19478 ;;
19479 *)
19480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19481 for as_dir in $PATH
19482 do
19483 IFS=$as_save_IFS
19484 test -z "$as_dir" && as_dir=.
19485 for ac_exec_ext in '' $ac_executable_extensions; do
19486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19487 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19489 break 2
19490 fi
19491 done
19492 done
19494 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
19495 ;;
19496 esac
19497 fi
19498 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
19500 if test -n "$XML2_CONFIG"; then
19501 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
19502 echo "${ECHO_T}$XML2_CONFIG" >&6
19503 else
19504 echo "$as_me:$LINENO: result: no" >&5
19505 echo "${ECHO_T}no" >&6
19506 fi
19508 else
19509 XMLPATH="$OPT_LIBXML/bin"
19510 # Extract the first word of "xml2-config", so it can be a program name with args.
19511 set dummy xml2-config; ac_word=$2
19512 echo "$as_me:$LINENO: checking for $ac_word" >&5
19513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19514 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19517 case $XML2_CONFIG in
19518 [\\/]* | ?:[\\/]*)
19519 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
19520 ;;
19521 *)
19522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19523 for as_dir in $XMLPATH
19524 do
19525 IFS=$as_save_IFS
19526 test -z "$as_dir" && as_dir=.
19527 for ac_exec_ext in '' $ac_executable_extensions; do
19528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19529 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19531 break 2
19532 fi
19533 done
19534 done
19536 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
19537 ;;
19538 esac
19539 fi
19540 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
19542 if test -n "$XML2_CONFIG"; then
19543 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
19544 echo "${ECHO_T}$XML2_CONFIG" >&6
19545 else
19546 echo "$as_me:$LINENO: result: no" >&5
19547 echo "${ECHO_T}no" >&6
19548 fi
19550 fi
19552 if test x"$XML2_CONFIG" != xno; then
19553 LIBXML2_CFLAGS=`$XML2_CONFIG --cflags`
19554 LIBXML2_LIBS=`$XML2_CONFIG --libs`
19558 cat >>confdefs.h <<\_ACEOF
19559 #define USE_LIBXML2 1
19560 _ACEOF
19562 else
19563 { { echo "$as_me:$LINENO: error:
19564 Couldn't run ${OPT_LIBXML}/bin/xml2-config
19566 " >&5
19567 echo "$as_me: error:
19568 Couldn't run ${OPT_LIBXML}/bin/xml2-config
19570 " >&2;}
19571 { (exit 1); exit 1; }; }
19572 fi
19574 use_libxml=yes
19575 else
19576 echo "$as_me:$LINENO: result: no" >&5
19577 echo "${ECHO_T}no" >&6
19578 fi
19581 ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile src/encoding/Makefile src/io/Makefile src/message/Makefile src/transfer/Makefile data/Makefile gnutella.spec"
19584 cat >confcache <<\_ACEOF
19585 # This file is a shell script that caches the results of configure
19586 # tests run on this system so they can be shared between configure
19587 # scripts and configure runs, see configure's option --config-cache.
19588 # It is not useful on other systems. If it contains results you don't
19589 # want to keep, you may remove or edit it.
19591 # config.status only pays attention to the cache file if you give it
19592 # the --recheck option to rerun configure.
19594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19596 # following values.
19598 _ACEOF
19600 # The following way of writing the cache mishandles newlines in values,
19601 # but we know of no workaround that is simple, portable, and efficient.
19602 # So, don't put newlines in cache variables' values.
19603 # Ultrix sh set writes to stderr and can't be redirected directly,
19604 # and sets the high bit in the cache file unless we assign to the vars.
19606 (set) 2>&1 |
19607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19608 *ac_space=\ *)
19609 # `set' does not quote correctly, so add quotes (double-quote
19610 # substitution turns \\\\ into \\, and sed turns \\ into \).
19611 sed -n \
19612 "s/'/'\\\\''/g;
19613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19614 ;;
19615 *)
19616 # `set' quotes correctly as required by POSIX, so do not add quotes.
19617 sed -n \
19618 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19619 ;;
19620 esac;
19621 } |
19622 sed '
19623 t clear
19624 : clear
19625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19626 t end
19627 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19628 : end' >>confcache
19629 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19630 if test -w $cache_file; then
19631 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19632 cat confcache >$cache_file
19633 else
19634 echo "not updating unwritable cache $cache_file"
19635 fi
19636 fi
19637 rm -f confcache
19639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19640 # Let make expand exec_prefix.
19641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19643 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19644 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19645 # trailing colons and then remove the whole line if VPATH becomes empty
19646 # (actually we leave an empty line to preserve line numbers).
19647 if test "x$srcdir" = x.; then
19648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19649 s/:*\$(srcdir):*/:/;
19650 s/:*\${srcdir}:*/:/;
19651 s/:*@srcdir@:*/:/;
19652 s/^\([^=]*=[ ]*\):*/\1/;
19653 s/:*$//;
19654 s/^[^=]*=[ ]*$//;
19655 }'
19656 fi
19658 DEFS=-DHAVE_CONFIG_H
19660 ac_libobjs=
19661 ac_ltlibobjs=
19662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19663 # 1. Remove the extension, and $U if already installed.
19664 ac_i=`echo "$ac_i" |
19665 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19666 # 2. Add them.
19667 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19668 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19669 done
19670 LIBOBJS=$ac_libobjs
19672 LTLIBOBJS=$ac_ltlibobjs
19675 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19676 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19677 Usually this means the macro was only invoked conditionally." >&5
19678 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19679 Usually this means the macro was only invoked conditionally." >&2;}
19680 { (exit 1); exit 1; }; }
19681 fi
19682 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19683 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19684 Usually this means the macro was only invoked conditionally." >&5
19685 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19686 Usually this means the macro was only invoked conditionally." >&2;}
19687 { (exit 1); exit 1; }; }
19688 fi
19689 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19690 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19691 Usually this means the macro was only invoked conditionally." >&5
19692 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19693 Usually this means the macro was only invoked conditionally." >&2;}
19694 { (exit 1); exit 1; }; }
19695 fi
19696 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19697 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19698 Usually this means the macro was only invoked conditionally." >&5
19699 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19700 Usually this means the macro was only invoked conditionally." >&2;}
19701 { (exit 1); exit 1; }; }
19702 fi
19704 : ${CONFIG_STATUS=./config.status}
19705 ac_clean_files_save=$ac_clean_files
19706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19707 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19708 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19709 cat >$CONFIG_STATUS <<_ACEOF
19710 #! $SHELL
19711 # Generated by $as_me.
19712 # Run this file to recreate the current configuration.
19713 # Compiler output produced by configure, useful for debugging
19714 # configure, is in config.log if it exists.
19716 debug=false
19717 ac_cs_recheck=false
19718 ac_cs_silent=false
19719 SHELL=\${CONFIG_SHELL-$SHELL}
19720 _ACEOF
19722 cat >>$CONFIG_STATUS <<\_ACEOF
19723 ## --------------------- ##
19724 ## M4sh Initialization. ##
19725 ## --------------------- ##
19727 # Be Bourne compatible
19728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19729 emulate sh
19730 NULLCMD=:
19731 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19732 # is contrary to our usage. Disable this feature.
19733 alias -g '${1+"$@"}'='"$@"'
19734 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19735 set -o posix
19736 fi
19737 DUALCASE=1; export DUALCASE # for MKS sh
19739 # Support unset when possible.
19740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19741 as_unset=unset
19742 else
19743 as_unset=false
19744 fi
19747 # Work around bugs in pre-3.0 UWIN ksh.
19748 $as_unset ENV MAIL MAILPATH
19749 PS1='$ '
19750 PS2='> '
19751 PS4='+ '
19753 # NLS nuisances.
19754 for as_var in \
19755 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19756 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19757 LC_TELEPHONE LC_TIME
19758 do
19759 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19760 eval $as_var=C; export $as_var
19761 else
19762 $as_unset $as_var
19763 fi
19764 done
19766 # Required to use basename.
19767 if expr a : '\(a\)' >/dev/null 2>&1; then
19768 as_expr=expr
19769 else
19770 as_expr=false
19771 fi
19773 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19774 as_basename=basename
19775 else
19776 as_basename=false
19777 fi
19780 # Name of the executable.
19781 as_me=`$as_basename "$0" ||
19782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19783 X"$0" : 'X\(//\)$' \| \
19784 X"$0" : 'X\(/\)$' \| \
19785 . : '\(.\)' 2>/dev/null ||
19786 echo X/"$0" |
19787 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19788 /^X\/\(\/\/\)$/{ s//\1/; q; }
19789 /^X\/\(\/\).*/{ s//\1/; q; }
19790 s/.*/./; q'`
19793 # PATH needs CR, and LINENO needs CR and PATH.
19794 # Avoid depending upon Character Ranges.
19795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19798 as_cr_digits='0123456789'
19799 as_cr_alnum=$as_cr_Letters$as_cr_digits
19801 # The user is always right.
19802 if test "${PATH_SEPARATOR+set}" != set; then
19803 echo "#! /bin/sh" >conf$$.sh
19804 echo "exit 0" >>conf$$.sh
19805 chmod +x conf$$.sh
19806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19807 PATH_SEPARATOR=';'
19808 else
19809 PATH_SEPARATOR=:
19810 fi
19811 rm -f conf$$.sh
19812 fi
19815 as_lineno_1=$LINENO
19816 as_lineno_2=$LINENO
19817 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19818 test "x$as_lineno_1" != "x$as_lineno_2" &&
19819 test "x$as_lineno_3" = "x$as_lineno_2" || {
19820 # Find who we are. Look in the path if we contain no path at all
19821 # relative or not.
19822 case $0 in
19823 *[\\/]* ) as_myself=$0 ;;
19824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19825 for as_dir in $PATH
19826 do
19827 IFS=$as_save_IFS
19828 test -z "$as_dir" && as_dir=.
19829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19830 done
19832 ;;
19833 esac
19834 # We did not find ourselves, most probably we were run as `sh COMMAND'
19835 # in which case we are not to be found in the path.
19836 if test "x$as_myself" = x; then
19837 as_myself=$0
19838 fi
19839 if test ! -f "$as_myself"; then
19840 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19841 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19842 { (exit 1); exit 1; }; }
19843 fi
19844 case $CONFIG_SHELL in
19845 '')
19846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19848 do
19849 IFS=$as_save_IFS
19850 test -z "$as_dir" && as_dir=.
19851 for as_base in sh bash ksh sh5; do
19852 case $as_dir in
19853 /*)
19854 if ("$as_dir/$as_base" -c '
19855 as_lineno_1=$LINENO
19856 as_lineno_2=$LINENO
19857 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19858 test "x$as_lineno_1" != "x$as_lineno_2" &&
19859 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19860 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19861 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19862 CONFIG_SHELL=$as_dir/$as_base
19863 export CONFIG_SHELL
19864 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19865 fi;;
19866 esac
19867 done
19868 done
19869 ;;
19870 esac
19872 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19873 # uniformly replaced by the line number. The first 'sed' inserts a
19874 # line-number line before each line; the second 'sed' does the real
19875 # work. The second script uses 'N' to pair each line-number line
19876 # with the numbered line, and appends trailing '-' during
19877 # substitution so that $LINENO is not a special case at line end.
19878 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19879 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19880 sed '=' <$as_myself |
19881 sed '
19883 s,$,-,
19884 : loop
19885 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19886 t loop
19887 s,-$,,
19888 s,^['$as_cr_digits']*\n,,
19889 ' >$as_me.lineno &&
19890 chmod +x $as_me.lineno ||
19891 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19892 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19893 { (exit 1); exit 1; }; }
19895 # Don't try to exec as it changes $[0], causing all sort of problems
19896 # (the dirname of $[0] is not the place where we might find the
19897 # original and so on. Autoconf is especially sensible to this).
19898 . ./$as_me.lineno
19899 # Exit status is that of the last command.
19900 exit
19904 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19905 *c*,-n*) ECHO_N= ECHO_C='
19906 ' ECHO_T=' ' ;;
19907 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19908 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19909 esac
19911 if expr a : '\(a\)' >/dev/null 2>&1; then
19912 as_expr=expr
19913 else
19914 as_expr=false
19915 fi
19917 rm -f conf$$ conf$$.exe conf$$.file
19918 echo >conf$$.file
19919 if ln -s conf$$.file conf$$ 2>/dev/null; then
19920 # We could just check for DJGPP; but this test a) works b) is more generic
19921 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19922 if test -f conf$$.exe; then
19923 # Don't use ln at all; we don't have any links
19924 as_ln_s='cp -p'
19925 else
19926 as_ln_s='ln -s'
19927 fi
19928 elif ln conf$$.file conf$$ 2>/dev/null; then
19929 as_ln_s=ln
19930 else
19931 as_ln_s='cp -p'
19932 fi
19933 rm -f conf$$ conf$$.exe conf$$.file
19935 if mkdir -p . 2>/dev/null; then
19936 as_mkdir_p=:
19937 else
19938 test -d ./-p && rmdir ./-p
19939 as_mkdir_p=false
19940 fi
19942 as_executable_p="test -f"
19944 # Sed expression to map a string onto a valid CPP name.
19945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19947 # Sed expression to map a string onto a valid variable name.
19948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19951 # IFS
19952 # We need space, tab and new line, in precisely that order.
19953 as_nl='
19955 IFS=" $as_nl"
19957 # CDPATH.
19958 $as_unset CDPATH
19960 exec 6>&1
19962 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19963 # report actual input values of CONFIG_FILES etc. instead of their
19964 # values after options handling. Logging --version etc. is OK.
19965 exec 5>>config.log
19967 echo
19968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19969 ## Running $as_me. ##
19970 _ASBOX
19971 } >&5
19972 cat >&5 <<_CSEOF
19974 This file was extended by gift-gnutella $as_me 0.0.11, which was
19975 generated by GNU Autoconf 2.59. Invocation command line was
19977 CONFIG_FILES = $CONFIG_FILES
19978 CONFIG_HEADERS = $CONFIG_HEADERS
19979 CONFIG_LINKS = $CONFIG_LINKS
19980 CONFIG_COMMANDS = $CONFIG_COMMANDS
19981 $ $0 $@
19983 _CSEOF
19984 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19985 echo >&5
19986 _ACEOF
19988 # Files that config.status was made for.
19989 if test -n "$ac_config_files"; then
19990 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19991 fi
19993 if test -n "$ac_config_headers"; then
19994 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19995 fi
19997 if test -n "$ac_config_links"; then
19998 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19999 fi
20001 if test -n "$ac_config_commands"; then
20002 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20003 fi
20005 cat >>$CONFIG_STATUS <<\_ACEOF
20007 ac_cs_usage="\
20008 \`$as_me' instantiates files from templates according to the
20009 current configuration.
20011 Usage: $0 [OPTIONS] [FILE]...
20013 -h, --help print this help, then exit
20014 -V, --version print version number, then exit
20015 -q, --quiet do not print progress messages
20016 -d, --debug don't remove temporary files
20017 --recheck update $as_me by reconfiguring in the same conditions
20018 --file=FILE[:TEMPLATE]
20019 instantiate the configuration file FILE
20020 --header=FILE[:TEMPLATE]
20021 instantiate the configuration header FILE
20023 Configuration files:
20024 $config_files
20026 Configuration headers:
20027 $config_headers
20029 Configuration commands:
20030 $config_commands
20032 Report bugs to <bug-autoconf@gnu.org>."
20033 _ACEOF
20035 cat >>$CONFIG_STATUS <<_ACEOF
20036 ac_cs_version="\\
20037 gift-gnutella config.status 0.0.11
20038 configured by $0, generated by GNU Autoconf 2.59,
20039 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20041 Copyright (C) 2003 Free Software Foundation, Inc.
20042 This config.status script is free software; the Free Software Foundation
20043 gives unlimited permission to copy, distribute and modify it."
20044 srcdir=$srcdir
20045 INSTALL="$INSTALL"
20046 _ACEOF
20048 cat >>$CONFIG_STATUS <<\_ACEOF
20049 # If no file are specified by the user, then we need to provide default
20050 # value. By we need to know if files were specified by the user.
20051 ac_need_defaults=:
20052 while test $# != 0
20053 do
20054 case $1 in
20055 --*=*)
20056 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20057 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20058 ac_shift=:
20059 ;;
20060 -*)
20061 ac_option=$1
20062 ac_optarg=$2
20063 ac_shift=shift
20064 ;;
20065 *) # This is not an option, so the user has probably given explicit
20066 # arguments.
20067 ac_option=$1
20068 ac_need_defaults=false;;
20069 esac
20071 case $ac_option in
20072 # Handling of the options.
20073 _ACEOF
20074 cat >>$CONFIG_STATUS <<\_ACEOF
20075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20076 ac_cs_recheck=: ;;
20077 --version | --vers* | -V )
20078 echo "$ac_cs_version"; exit 0 ;;
20079 --he | --h)
20080 # Conflict between --help and --header
20081 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20082 Try \`$0 --help' for more information." >&5
20083 echo "$as_me: error: ambiguous option: $1
20084 Try \`$0 --help' for more information." >&2;}
20085 { (exit 1); exit 1; }; };;
20086 --help | --hel | -h )
20087 echo "$ac_cs_usage"; exit 0 ;;
20088 --debug | --d* | -d )
20089 debug=: ;;
20090 --file | --fil | --fi | --f )
20091 $ac_shift
20092 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20093 ac_need_defaults=false;;
20094 --header | --heade | --head | --hea )
20095 $ac_shift
20096 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20097 ac_need_defaults=false;;
20098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20099 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20100 ac_cs_silent=: ;;
20102 # This is an error.
20103 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20104 Try \`$0 --help' for more information." >&5
20105 echo "$as_me: error: unrecognized option: $1
20106 Try \`$0 --help' for more information." >&2;}
20107 { (exit 1); exit 1; }; } ;;
20109 *) ac_config_targets="$ac_config_targets $1" ;;
20111 esac
20112 shift
20113 done
20115 ac_configure_extra_args=
20117 if $ac_cs_silent; then
20118 exec 6>/dev/null
20119 ac_configure_extra_args="$ac_configure_extra_args --silent"
20120 fi
20122 _ACEOF
20123 cat >>$CONFIG_STATUS <<_ACEOF
20124 if \$ac_cs_recheck; then
20125 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20126 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20127 fi
20129 _ACEOF
20131 cat >>$CONFIG_STATUS <<_ACEOF
20133 # INIT-COMMANDS section.
20136 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20138 _ACEOF
20142 cat >>$CONFIG_STATUS <<\_ACEOF
20143 for ac_config_target in $ac_config_targets
20144 do
20145 case "$ac_config_target" in
20146 # Handling of arguments.
20147 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20148 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20149 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20150 "src/encoding/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/encoding/Makefile" ;;
20151 "src/io/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/io/Makefile" ;;
20152 "src/message/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/message/Makefile" ;;
20153 "src/transfer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/transfer/Makefile" ;;
20154 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
20155 "gnutella.spec" ) CONFIG_FILES="$CONFIG_FILES gnutella.spec" ;;
20156 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20157 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20158 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20159 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20160 { (exit 1); exit 1; }; };;
20161 esac
20162 done
20164 # If the user did not use the arguments to specify the items to instantiate,
20165 # then the envvar interface is used. Set only those that are not.
20166 # We use the long form for the default assignment because of an extremely
20167 # bizarre bug on SunOS 4.1.3.
20168 if $ac_need_defaults; then
20169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20171 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20172 fi
20174 # Have a temporary directory for convenience. Make it in the build tree
20175 # simply because there is no reason to put it here, and in addition,
20176 # creating and moving files from /tmp can sometimes cause problems.
20177 # Create a temporary directory, and hook for its removal unless debugging.
20178 $debug ||
20180 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20181 trap '{ (exit 1); exit 1; }' 1 2 13 15
20184 # Create a (secure) tmp directory for tmp files.
20187 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20188 test -n "$tmp" && test -d "$tmp"
20189 } ||
20191 tmp=./confstat$$-$RANDOM
20192 (umask 077 && mkdir $tmp)
20193 } ||
20195 echo "$me: cannot create a temporary directory in ." >&2
20196 { (exit 1); exit 1; }
20199 _ACEOF
20201 cat >>$CONFIG_STATUS <<_ACEOF
20204 # CONFIG_FILES section.
20207 # No need to generate the scripts if there are no CONFIG_FILES.
20208 # This happens for instance when ./config.status config.h
20209 if test -n "\$CONFIG_FILES"; then
20210 # Protect against being on the right side of a sed subst in config.status.
20211 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20212 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20213 s,@SHELL@,$SHELL,;t t
20214 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20215 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20216 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20217 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20218 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20219 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20220 s,@exec_prefix@,$exec_prefix,;t t
20221 s,@prefix@,$prefix,;t t
20222 s,@program_transform_name@,$program_transform_name,;t t
20223 s,@bindir@,$bindir,;t t
20224 s,@sbindir@,$sbindir,;t t
20225 s,@libexecdir@,$libexecdir,;t t
20226 s,@datadir@,$datadir,;t t
20227 s,@sysconfdir@,$sysconfdir,;t t
20228 s,@sharedstatedir@,$sharedstatedir,;t t
20229 s,@localstatedir@,$localstatedir,;t t
20230 s,@libdir@,$libdir,;t t
20231 s,@includedir@,$includedir,;t t
20232 s,@oldincludedir@,$oldincludedir,;t t
20233 s,@infodir@,$infodir,;t t
20234 s,@mandir@,$mandir,;t t
20235 s,@build_alias@,$build_alias,;t t
20236 s,@host_alias@,$host_alias,;t t
20237 s,@target_alias@,$target_alias,;t t
20238 s,@DEFS@,$DEFS,;t t
20239 s,@ECHO_C@,$ECHO_C,;t t
20240 s,@ECHO_N@,$ECHO_N,;t t
20241 s,@ECHO_T@,$ECHO_T,;t t
20242 s,@LIBS@,$LIBS,;t t
20243 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20244 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20245 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20246 s,@CYGPATH_W@,$CYGPATH_W,;t t
20247 s,@PACKAGE@,$PACKAGE,;t t
20248 s,@VERSION@,$VERSION,;t t
20249 s,@ACLOCAL@,$ACLOCAL,;t t
20250 s,@AUTOCONF@,$AUTOCONF,;t t
20251 s,@AUTOMAKE@,$AUTOMAKE,;t t
20252 s,@AUTOHEADER@,$AUTOHEADER,;t t
20253 s,@MAKEINFO@,$MAKEINFO,;t t
20254 s,@AMTAR@,$AMTAR,;t t
20255 s,@install_sh@,$install_sh,;t t
20256 s,@STRIP@,$STRIP,;t t
20257 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20258 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20259 s,@AWK@,$AWK,;t t
20260 s,@SET_MAKE@,$SET_MAKE,;t t
20261 s,@am__leading_dot@,$am__leading_dot,;t t
20262 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20263 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20264 s,@MAINT@,$MAINT,;t t
20265 s,@CC@,$CC,;t t
20266 s,@CFLAGS@,$CFLAGS,;t t
20267 s,@LDFLAGS@,$LDFLAGS,;t t
20268 s,@CPPFLAGS@,$CPPFLAGS,;t t
20269 s,@ac_ct_CC@,$ac_ct_CC,;t t
20270 s,@EXEEXT@,$EXEEXT,;t t
20271 s,@OBJEXT@,$OBJEXT,;t t
20272 s,@DEPDIR@,$DEPDIR,;t t
20273 s,@am__include@,$am__include,;t t
20274 s,@am__quote@,$am__quote,;t t
20275 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20276 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20277 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20278 s,@CCDEPMODE@,$CCDEPMODE,;t t
20279 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20280 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20281 s,@CPP@,$CPP,;t t
20282 s,@EGREP@,$EGREP,;t t
20283 s,@build@,$build,;t t
20284 s,@build_cpu@,$build_cpu,;t t
20285 s,@build_vendor@,$build_vendor,;t t
20286 s,@build_os@,$build_os,;t t
20287 s,@host@,$host,;t t
20288 s,@host_cpu@,$host_cpu,;t t
20289 s,@host_vendor@,$host_vendor,;t t
20290 s,@host_os@,$host_os,;t t
20291 s,@LN_S@,$LN_S,;t t
20292 s,@ECHO@,$ECHO,;t t
20293 s,@AR@,$AR,;t t
20294 s,@ac_ct_AR@,$ac_ct_AR,;t t
20295 s,@RANLIB@,$RANLIB,;t t
20296 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20297 s,@CXX@,$CXX,;t t
20298 s,@CXXFLAGS@,$CXXFLAGS,;t t
20299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20300 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20301 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20302 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20303 s,@CXXCPP@,$CXXCPP,;t t
20304 s,@F77@,$F77,;t t
20305 s,@FFLAGS@,$FFLAGS,;t t
20306 s,@ac_ct_F77@,$ac_ct_F77,;t t
20307 s,@LIBTOOL@,$LIBTOOL,;t t
20308 s,@PLUGIN_LDFLAGS@,$PLUGIN_LDFLAGS,;t t
20309 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20310 s,@GNUTELLA_CFLAGS@,$GNUTELLA_CFLAGS,;t t
20311 s,@GNUTELLA_LIBS@,$GNUTELLA_LIBS,;t t
20312 s,@USE_ZLIB@,$USE_ZLIB,;t t
20313 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
20314 s,@LIBXML2_CFLAGS@,$LIBXML2_CFLAGS,;t t
20315 s,@LIBXML2_LIBS@,$LIBXML2_LIBS,;t t
20316 s,@LIBOBJS@,$LIBOBJS,;t t
20317 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20318 CEOF
20320 _ACEOF
20322 cat >>$CONFIG_STATUS <<\_ACEOF
20323 # Split the substitutions into bite-sized pieces for seds with
20324 # small command number limits, like on Digital OSF/1 and HP-UX.
20325 ac_max_sed_lines=48
20326 ac_sed_frag=1 # Number of current file.
20327 ac_beg=1 # First line for current file.
20328 ac_end=$ac_max_sed_lines # Line after last line for current file.
20329 ac_more_lines=:
20330 ac_sed_cmds=
20331 while $ac_more_lines; do
20332 if test $ac_beg -gt 1; then
20333 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20334 else
20335 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20336 fi
20337 if test ! -s $tmp/subs.frag; then
20338 ac_more_lines=false
20339 else
20340 # The purpose of the label and of the branching condition is to
20341 # speed up the sed processing (if there are no `@' at all, there
20342 # is no need to browse any of the substitutions).
20343 # These are the two extra sed commands mentioned above.
20344 (echo ':t
20345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20346 if test -z "$ac_sed_cmds"; then
20347 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20348 else
20349 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20350 fi
20351 ac_sed_frag=`expr $ac_sed_frag + 1`
20352 ac_beg=$ac_end
20353 ac_end=`expr $ac_end + $ac_max_sed_lines`
20354 fi
20355 done
20356 if test -z "$ac_sed_cmds"; then
20357 ac_sed_cmds=cat
20358 fi
20359 fi # test -n "$CONFIG_FILES"
20361 _ACEOF
20362 cat >>$CONFIG_STATUS <<\_ACEOF
20363 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20365 case $ac_file in
20366 - | *:- | *:-:* ) # input from stdin
20367 cat >$tmp/stdin
20368 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20370 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20372 * ) ac_file_in=$ac_file.in ;;
20373 esac
20375 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20376 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20378 X"$ac_file" : 'X\(//\)[^/]' \| \
20379 X"$ac_file" : 'X\(//\)$' \| \
20380 X"$ac_file" : 'X\(/\)' \| \
20381 . : '\(.\)' 2>/dev/null ||
20382 echo X"$ac_file" |
20383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20385 /^X\(\/\/\)$/{ s//\1/; q; }
20386 /^X\(\/\).*/{ s//\1/; q; }
20387 s/.*/./; q'`
20388 { if $as_mkdir_p; then
20389 mkdir -p "$ac_dir"
20390 else
20391 as_dir="$ac_dir"
20392 as_dirs=
20393 while test ! -d "$as_dir"; do
20394 as_dirs="$as_dir $as_dirs"
20395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20397 X"$as_dir" : 'X\(//\)[^/]' \| \
20398 X"$as_dir" : 'X\(//\)$' \| \
20399 X"$as_dir" : 'X\(/\)' \| \
20400 . : '\(.\)' 2>/dev/null ||
20401 echo X"$as_dir" |
20402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20404 /^X\(\/\/\)$/{ s//\1/; q; }
20405 /^X\(\/\).*/{ s//\1/; q; }
20406 s/.*/./; q'`
20407 done
20408 test ! -n "$as_dirs" || mkdir $as_dirs
20409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20411 { (exit 1); exit 1; }; }; }
20413 ac_builddir=.
20415 if test "$ac_dir" != .; then
20416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20417 # A "../" for each directory in $ac_dir_suffix.
20418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20419 else
20420 ac_dir_suffix= ac_top_builddir=
20421 fi
20423 case $srcdir in
20424 .) # No --srcdir option. We are building in place.
20425 ac_srcdir=.
20426 if test -z "$ac_top_builddir"; then
20427 ac_top_srcdir=.
20428 else
20429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20430 fi ;;
20431 [\\/]* | ?:[\\/]* ) # Absolute path.
20432 ac_srcdir=$srcdir$ac_dir_suffix;
20433 ac_top_srcdir=$srcdir ;;
20434 *) # Relative path.
20435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20437 esac
20439 # Do not use `cd foo && pwd` to compute absolute paths, because
20440 # the directories may not exist.
20441 case `pwd` in
20442 .) ac_abs_builddir="$ac_dir";;
20443 *)
20444 case "$ac_dir" in
20445 .) ac_abs_builddir=`pwd`;;
20446 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20447 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20448 esac;;
20449 esac
20450 case $ac_abs_builddir in
20451 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20452 *)
20453 case ${ac_top_builddir}. in
20454 .) ac_abs_top_builddir=$ac_abs_builddir;;
20455 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20456 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20457 esac;;
20458 esac
20459 case $ac_abs_builddir in
20460 .) ac_abs_srcdir=$ac_srcdir;;
20461 *)
20462 case $ac_srcdir in
20463 .) ac_abs_srcdir=$ac_abs_builddir;;
20464 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20465 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20466 esac;;
20467 esac
20468 case $ac_abs_builddir in
20469 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20470 *)
20471 case $ac_top_srcdir in
20472 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20473 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20474 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20475 esac;;
20476 esac
20479 case $INSTALL in
20480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20481 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20482 esac
20484 # Let's still pretend it is `configure' which instantiates (i.e., don't
20485 # use $as_me), people would be surprised to read:
20486 # /* config.h. Generated by config.status. */
20487 if test x"$ac_file" = x-; then
20488 configure_input=
20489 else
20490 configure_input="$ac_file. "
20491 fi
20492 configure_input=$configure_input"Generated from `echo $ac_file_in |
20493 sed 's,.*/,,'` by configure."
20495 # First look for the input files in the build tree, otherwise in the
20496 # src tree.
20497 ac_file_inputs=`IFS=:
20498 for f in $ac_file_in; do
20499 case $f in
20500 -) echo $tmp/stdin ;;
20501 [\\/$]*)
20502 # Absolute (can't be DOS-style, as IFS=:)
20503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20504 echo "$as_me: error: cannot find input file: $f" >&2;}
20505 { (exit 1); exit 1; }; }
20506 echo "$f";;
20507 *) # Relative
20508 if test -f "$f"; then
20509 # Build tree
20510 echo "$f"
20511 elif test -f "$srcdir/$f"; then
20512 # Source tree
20513 echo "$srcdir/$f"
20514 else
20515 # /dev/null tree
20516 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20517 echo "$as_me: error: cannot find input file: $f" >&2;}
20518 { (exit 1); exit 1; }; }
20519 fi;;
20520 esac
20521 done` || { (exit 1); exit 1; }
20523 if test x"$ac_file" != x-; then
20524 { echo "$as_me:$LINENO: creating $ac_file" >&5
20525 echo "$as_me: creating $ac_file" >&6;}
20526 rm -f "$ac_file"
20527 fi
20528 _ACEOF
20529 cat >>$CONFIG_STATUS <<_ACEOF
20530 sed "$ac_vpsub
20531 $extrasub
20532 _ACEOF
20533 cat >>$CONFIG_STATUS <<\_ACEOF
20534 :t
20535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20536 s,@configure_input@,$configure_input,;t t
20537 s,@srcdir@,$ac_srcdir,;t t
20538 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20539 s,@top_srcdir@,$ac_top_srcdir,;t t
20540 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20541 s,@builddir@,$ac_builddir,;t t
20542 s,@abs_builddir@,$ac_abs_builddir,;t t
20543 s,@top_builddir@,$ac_top_builddir,;t t
20544 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20545 s,@INSTALL@,$ac_INSTALL,;t t
20546 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20547 rm -f $tmp/stdin
20548 if test x"$ac_file" != x-; then
20549 mv $tmp/out $ac_file
20550 else
20551 cat $tmp/out
20552 rm -f $tmp/out
20553 fi
20555 done
20556 _ACEOF
20557 cat >>$CONFIG_STATUS <<\_ACEOF
20560 # CONFIG_HEADER section.
20563 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20564 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20566 # ac_d sets the value in "#define NAME VALUE" lines.
20567 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20568 ac_dB='[ ].*$,\1#\2'
20569 ac_dC=' '
20570 ac_dD=',;t'
20571 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20572 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20573 ac_uB='$,\1#\2define\3'
20574 ac_uC=' '
20575 ac_uD=',;t'
20577 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20579 case $ac_file in
20580 - | *:- | *:-:* ) # input from stdin
20581 cat >$tmp/stdin
20582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20586 * ) ac_file_in=$ac_file.in ;;
20587 esac
20589 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20590 echo "$as_me: creating $ac_file" >&6;}
20592 # First look for the input files in the build tree, otherwise in the
20593 # src tree.
20594 ac_file_inputs=`IFS=:
20595 for f in $ac_file_in; do
20596 case $f in
20597 -) echo $tmp/stdin ;;
20598 [\\/$]*)
20599 # Absolute (can't be DOS-style, as IFS=:)
20600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20601 echo "$as_me: error: cannot find input file: $f" >&2;}
20602 { (exit 1); exit 1; }; }
20603 # Do quote $f, to prevent DOS paths from being IFS'd.
20604 echo "$f";;
20605 *) # Relative
20606 if test -f "$f"; then
20607 # Build tree
20608 echo "$f"
20609 elif test -f "$srcdir/$f"; then
20610 # Source tree
20611 echo "$srcdir/$f"
20612 else
20613 # /dev/null tree
20614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20615 echo "$as_me: error: cannot find input file: $f" >&2;}
20616 { (exit 1); exit 1; }; }
20617 fi;;
20618 esac
20619 done` || { (exit 1); exit 1; }
20620 # Remove the trailing spaces.
20621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20623 _ACEOF
20625 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20626 # `conftest.undefs', that substitutes the proper values into
20627 # config.h.in to produce config.h. The first handles `#define'
20628 # templates, and the second `#undef' templates.
20629 # And first: Protect against being on the right side of a sed subst in
20630 # config.status. Protect against being in an unquoted here document
20631 # in config.status.
20632 rm -f conftest.defines conftest.undefs
20633 # Using a here document instead of a string reduces the quoting nightmare.
20634 # Putting comments in sed scripts is not portable.
20636 # `end' is used to avoid that the second main sed command (meant for
20637 # 0-ary CPP macros) applies to n-ary macro definitions.
20638 # See the Autoconf documentation for `clear'.
20639 cat >confdef2sed.sed <<\_ACEOF
20640 s/[\\&,]/\\&/g
20641 s,[\\$`],\\&,g
20642 t clear
20643 : clear
20644 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20645 t end
20646 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20647 : end
20648 _ACEOF
20649 # If some macros were called several times there might be several times
20650 # the same #defines, which is useless. Nevertheless, we may not want to
20651 # sort them, since we want the *last* AC-DEFINE to be honored.
20652 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20653 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20654 rm -f confdef2sed.sed
20656 # This sed command replaces #undef with comments. This is necessary, for
20657 # example, in the case of _POSIX_SOURCE, which is predefined and required
20658 # on some systems where configure will not decide to define it.
20659 cat >>conftest.undefs <<\_ACEOF
20660 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20661 _ACEOF
20663 # Break up conftest.defines because some shells have a limit on the size
20664 # of here documents, and old seds have small limits too (100 cmds).
20665 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20666 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20667 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20668 echo ' :' >>$CONFIG_STATUS
20669 rm -f conftest.tail
20670 while grep . conftest.defines >/dev/null
20671 do
20672 # Write a limited-size here document to $tmp/defines.sed.
20673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20674 # Speed up: don't consider the non `#define' lines.
20675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20676 # Work around the forget-to-reset-the-flag bug.
20677 echo 't clr' >>$CONFIG_STATUS
20678 echo ': clr' >>$CONFIG_STATUS
20679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20680 echo 'CEOF
20681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20682 rm -f $tmp/in
20683 mv $tmp/out $tmp/in
20684 ' >>$CONFIG_STATUS
20685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20686 rm -f conftest.defines
20687 mv conftest.tail conftest.defines
20688 done
20689 rm -f conftest.defines
20690 echo ' fi # grep' >>$CONFIG_STATUS
20691 echo >>$CONFIG_STATUS
20693 # Break up conftest.undefs because some shells have a limit on the size
20694 # of here documents, and old seds have small limits too (100 cmds).
20695 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20696 rm -f conftest.tail
20697 while grep . conftest.undefs >/dev/null
20698 do
20699 # Write a limited-size here document to $tmp/undefs.sed.
20700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20701 # Speed up: don't consider the non `#undef'
20702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20703 # Work around the forget-to-reset-the-flag bug.
20704 echo 't clr' >>$CONFIG_STATUS
20705 echo ': clr' >>$CONFIG_STATUS
20706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20707 echo 'CEOF
20708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20709 rm -f $tmp/in
20710 mv $tmp/out $tmp/in
20711 ' >>$CONFIG_STATUS
20712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20713 rm -f conftest.undefs
20714 mv conftest.tail conftest.undefs
20715 done
20716 rm -f conftest.undefs
20718 cat >>$CONFIG_STATUS <<\_ACEOF
20719 # Let's still pretend it is `configure' which instantiates (i.e., don't
20720 # use $as_me), people would be surprised to read:
20721 # /* config.h. Generated by config.status. */
20722 if test x"$ac_file" = x-; then
20723 echo "/* Generated by configure. */" >$tmp/config.h
20724 else
20725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20726 fi
20727 cat $tmp/in >>$tmp/config.h
20728 rm -f $tmp/in
20729 if test x"$ac_file" != x-; then
20730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20732 echo "$as_me: $ac_file is unchanged" >&6;}
20733 else
20734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20736 X"$ac_file" : 'X\(//\)[^/]' \| \
20737 X"$ac_file" : 'X\(//\)$' \| \
20738 X"$ac_file" : 'X\(/\)' \| \
20739 . : '\(.\)' 2>/dev/null ||
20740 echo X"$ac_file" |
20741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20743 /^X\(\/\/\)$/{ s//\1/; q; }
20744 /^X\(\/\).*/{ s//\1/; q; }
20745 s/.*/./; q'`
20746 { if $as_mkdir_p; then
20747 mkdir -p "$ac_dir"
20748 else
20749 as_dir="$ac_dir"
20750 as_dirs=
20751 while test ! -d "$as_dir"; do
20752 as_dirs="$as_dir $as_dirs"
20753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20755 X"$as_dir" : 'X\(//\)[^/]' \| \
20756 X"$as_dir" : 'X\(//\)$' \| \
20757 X"$as_dir" : 'X\(/\)' \| \
20758 . : '\(.\)' 2>/dev/null ||
20759 echo X"$as_dir" |
20760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20762 /^X\(\/\/\)$/{ s//\1/; q; }
20763 /^X\(\/\).*/{ s//\1/; q; }
20764 s/.*/./; q'`
20765 done
20766 test ! -n "$as_dirs" || mkdir $as_dirs
20767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20769 { (exit 1); exit 1; }; }; }
20771 rm -f $ac_file
20772 mv $tmp/config.h $ac_file
20773 fi
20774 else
20775 cat $tmp/config.h
20776 rm -f $tmp/config.h
20777 fi
20778 # Compute $ac_file's index in $config_headers.
20779 _am_stamp_count=1
20780 for _am_header in $config_headers :; do
20781 case $_am_header in
20782 $ac_file | $ac_file:* )
20783 break ;;
20784 * )
20785 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20786 esac
20787 done
20788 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20789 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20790 X$ac_file : 'X\(//\)[^/]' \| \
20791 X$ac_file : 'X\(//\)$' \| \
20792 X$ac_file : 'X\(/\)' \| \
20793 . : '\(.\)' 2>/dev/null ||
20794 echo X$ac_file |
20795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20797 /^X\(\/\/\)$/{ s//\1/; q; }
20798 /^X\(\/\).*/{ s//\1/; q; }
20799 s/.*/./; q'`/stamp-h$_am_stamp_count
20800 done
20801 _ACEOF
20802 cat >>$CONFIG_STATUS <<\_ACEOF
20805 # CONFIG_COMMANDS section.
20807 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20808 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20809 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20810 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20811 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20812 X"$ac_dest" : 'X\(//\)[^/]' \| \
20813 X"$ac_dest" : 'X\(//\)$' \| \
20814 X"$ac_dest" : 'X\(/\)' \| \
20815 . : '\(.\)' 2>/dev/null ||
20816 echo X"$ac_dest" |
20817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20819 /^X\(\/\/\)$/{ s//\1/; q; }
20820 /^X\(\/\).*/{ s//\1/; q; }
20821 s/.*/./; q'`
20822 { if $as_mkdir_p; then
20823 mkdir -p "$ac_dir"
20824 else
20825 as_dir="$ac_dir"
20826 as_dirs=
20827 while test ! -d "$as_dir"; do
20828 as_dirs="$as_dir $as_dirs"
20829 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20831 X"$as_dir" : 'X\(//\)[^/]' \| \
20832 X"$as_dir" : 'X\(//\)$' \| \
20833 X"$as_dir" : 'X\(/\)' \| \
20834 . : '\(.\)' 2>/dev/null ||
20835 echo X"$as_dir" |
20836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20838 /^X\(\/\/\)$/{ s//\1/; q; }
20839 /^X\(\/\).*/{ s//\1/; q; }
20840 s/.*/./; q'`
20841 done
20842 test ! -n "$as_dirs" || mkdir $as_dirs
20843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20845 { (exit 1); exit 1; }; }; }
20847 ac_builddir=.
20849 if test "$ac_dir" != .; then
20850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20851 # A "../" for each directory in $ac_dir_suffix.
20852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20853 else
20854 ac_dir_suffix= ac_top_builddir=
20855 fi
20857 case $srcdir in
20858 .) # No --srcdir option. We are building in place.
20859 ac_srcdir=.
20860 if test -z "$ac_top_builddir"; then
20861 ac_top_srcdir=.
20862 else
20863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20864 fi ;;
20865 [\\/]* | ?:[\\/]* ) # Absolute path.
20866 ac_srcdir=$srcdir$ac_dir_suffix;
20867 ac_top_srcdir=$srcdir ;;
20868 *) # Relative path.
20869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20870 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20871 esac
20873 # Do not use `cd foo && pwd` to compute absolute paths, because
20874 # the directories may not exist.
20875 case `pwd` in
20876 .) ac_abs_builddir="$ac_dir";;
20877 *)
20878 case "$ac_dir" in
20879 .) ac_abs_builddir=`pwd`;;
20880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20881 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20882 esac;;
20883 esac
20884 case $ac_abs_builddir in
20885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20886 *)
20887 case ${ac_top_builddir}. in
20888 .) ac_abs_top_builddir=$ac_abs_builddir;;
20889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20891 esac;;
20892 esac
20893 case $ac_abs_builddir in
20894 .) ac_abs_srcdir=$ac_srcdir;;
20895 *)
20896 case $ac_srcdir in
20897 .) ac_abs_srcdir=$ac_abs_builddir;;
20898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20900 esac;;
20901 esac
20902 case $ac_abs_builddir in
20903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20904 *)
20905 case $ac_top_srcdir in
20906 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20909 esac;;
20910 esac
20913 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20914 echo "$as_me: executing $ac_dest commands" >&6;}
20915 case $ac_dest in
20916 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20917 # Strip MF so we end up with the name of the file.
20918 mf=`echo "$mf" | sed -e 's/:.*$//'`
20919 # Check whether this is an Automake generated Makefile or not.
20920 # We used to match only the files named `Makefile.in', but
20921 # some people rename them; so instead we look at the file content.
20922 # Grep'ing the first line is not enough: some people post-process
20923 # each Makefile.in and add a new line on top of each file to say so.
20924 # So let's grep whole file.
20925 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20926 dirpart=`(dirname "$mf") 2>/dev/null ||
20927 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20928 X"$mf" : 'X\(//\)[^/]' \| \
20929 X"$mf" : 'X\(//\)$' \| \
20930 X"$mf" : 'X\(/\)' \| \
20931 . : '\(.\)' 2>/dev/null ||
20932 echo X"$mf" |
20933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20935 /^X\(\/\/\)$/{ s//\1/; q; }
20936 /^X\(\/\).*/{ s//\1/; q; }
20937 s/.*/./; q'`
20938 else
20939 continue
20940 fi
20941 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20942 # Extract the definition of DEP_FILES from the Makefile without
20943 # running `make'.
20944 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20945 test -z "$DEPDIR" && continue
20946 # When using ansi2knr, U may be empty or an underscore; expand it
20947 U=`sed -n -e '/^U = / s///p' < "$mf"`
20948 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20949 # We invoke sed twice because it is the simplest approach to
20950 # changing $(DEPDIR) to its actual value in the expansion.
20951 for file in `sed -n -e '
20952 /^DEP_FILES = .*\\\\$/ {
20953 s/^DEP_FILES = //
20954 :loop
20955 s/\\\\$//
20958 /\\\\$/ b loop
20961 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20962 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20963 # Make sure the directory exists.
20964 test -f "$dirpart/$file" && continue
20965 fdir=`(dirname "$file") 2>/dev/null ||
20966 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20967 X"$file" : 'X\(//\)[^/]' \| \
20968 X"$file" : 'X\(//\)$' \| \
20969 X"$file" : 'X\(/\)' \| \
20970 . : '\(.\)' 2>/dev/null ||
20971 echo X"$file" |
20972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20974 /^X\(\/\/\)$/{ s//\1/; q; }
20975 /^X\(\/\).*/{ s//\1/; q; }
20976 s/.*/./; q'`
20977 { if $as_mkdir_p; then
20978 mkdir -p $dirpart/$fdir
20979 else
20980 as_dir=$dirpart/$fdir
20981 as_dirs=
20982 while test ! -d "$as_dir"; do
20983 as_dirs="$as_dir $as_dirs"
20984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20986 X"$as_dir" : 'X\(//\)[^/]' \| \
20987 X"$as_dir" : 'X\(//\)$' \| \
20988 X"$as_dir" : 'X\(/\)' \| \
20989 . : '\(.\)' 2>/dev/null ||
20990 echo X"$as_dir" |
20991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20993 /^X\(\/\/\)$/{ s//\1/; q; }
20994 /^X\(\/\).*/{ s//\1/; q; }
20995 s/.*/./; q'`
20996 done
20997 test ! -n "$as_dirs" || mkdir $as_dirs
20998 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20999 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21000 { (exit 1); exit 1; }; }; }
21002 # echo "creating $dirpart/$file"
21003 echo '# dummy' > "$dirpart/$file"
21004 done
21005 done
21006 ;;
21007 esac
21008 done
21009 _ACEOF
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21013 { (exit 0); exit 0; }
21014 _ACEOF
21015 chmod +x $CONFIG_STATUS
21016 ac_clean_files=$ac_clean_files_save
21019 # configure is writing to config.log, and then calls config.status.
21020 # config.status does its own redirection, appending to config.log.
21021 # Unfortunately, on DOS this fails, as config.log is still kept open
21022 # by configure, so config.status won't be able to write to it; its
21023 # output is simply discarded. So we exec the FD to /dev/null,
21024 # effectively closing config.log, so it can be properly (re)opened and
21025 # appended to by config.status. When coming back to configure, we
21026 # need to make the FD available again.
21027 if test "$no_create" != yes; then
21028 ac_cs_success=:
21029 ac_config_status_args=
21030 test "$silent" = yes &&
21031 ac_config_status_args="$ac_config_status_args --quiet"
21032 exec 5>/dev/null
21033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21034 exec 5>>config.log
21035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21036 # would make configure fail if this is the last instruction.
21037 $ac_cs_success || { (exit 1); exit 1; }
21038 fi
21042 echo
21043 echo "$PACKAGE_NAME $VERSION"
21044 echo
21045 echo "-------------------- core ---"
21046 echo
21047 echo "libgift.................: $libgift_version"
21048 echo "libgiftproto............: $libgift_version"
21049 echo
21050 echo "-------------- extensions ---"
21051 echo
21052 echo "use zlib................: yes (required)"
21053 echo "use libxml..............: $use_libxml"
21054 echo
21055 echo "-----------------------------"
21056 echo
21060 libgift_prefix=`pkg-config --variable=prefix libgift`
21062 gift_plugin_prefix=$prefix
21063 if test x"$prefix" = xNONE; then
21064 gift_plugin_prefix=/usr/local
21065 fi
21067 if test x"$libgift_prefix" != x"$gift_plugin_prefix"; then
21068 { echo "$as_me:$LINENO: WARNING:
21069 You are trying to install in $gift_plugin_prefix, but I only
21070 detected a giFT installation in $libgift_prefix.
21071 You may be installing in the wrong place.
21073 You should probably supply --prefix=$libgift_prefix
21074 to configure. Or, if you have a giFT installation in
21075 $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig
21076 to the PKG_CONFIG_PATH environment variable, so I can detect it.
21077 " >&5
21078 echo "$as_me: WARNING:
21079 You are trying to install in $gift_plugin_prefix, but I only
21080 detected a giFT installation in $libgift_prefix.
21081 You may be installing in the wrong place.
21083 You should probably supply --prefix=$libgift_prefix
21084 to configure. Or, if you have a giFT installation in
21085 $gift_plugin_prefix, you could add ${gift_plugin_prefix}/lib/pkgconfig
21086 to the PKG_CONFIG_PATH environment variable, so I can detect it.
21087 " >&2;}
21088 fi
21092 echo
21093 echo "Type 'make' ('gmake' on some systems) to compile gift-gnutella."
21094 echo