blob: a3c2ba646eb78488d9494a6a247067d15a2379fc [file] [log] [blame]
Reid Spencer820dab72004-09-04 19:48:50 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for [Stacker] [1.0].
4#
5# Report bugs to <rspencer@x10sys.com>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
Reid Spencer011f5ca2004-09-15 06:19:53 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276$*
277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
Reid Spencer820dab72004-09-04 19:48:50 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='[Stacker]'
425PACKAGE_TARNAME='--stacker--'
426PACKAGE_VERSION='[1.0]'
427PACKAGE_STRING='[Stacker] [1.0]'
428PACKAGE_BUGREPORT='rspencer@x10sys.com'
429
Reid Spencerbb874262004-12-27 08:51:55 +0000430ac_unique_file="lib/compiler/StackerParser.y"
Reid Spencer011f5ca2004-09-15 06:19:53 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SHLIBEXT LLVM_SRC LLVM_OBJ LIBOBJS LTLIBOBJS'
Reid Spencer820dab72004-09-04 19:48:50 +0000469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
Reid Spencer011f5ca2004-09-15 06:19:53 +0000909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
Reid Spencer820dab72004-09-04 19:48:50 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957\`configure' configures [Stacker] [1.0] to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
Reid Spencer011f5ca2004-09-15 06:19:53 +00001009
1010System types:
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Reid Spencer820dab72004-09-04 19:48:50 +00001013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [Stacker] [1.0]:";;
1019 esac
1020 cat <<\_ACEOF
1021
Reid Spencer011f5ca2004-09-15 06:19:53 +00001022Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
1031 --disable-libtool-lock avoid locking (might break parallel builds)
1032
Reid Spencer820dab72004-09-04 19:48:50 +00001033Optional Packages:
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer011f5ca2004-09-15 06:19:53 +00001036 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1037 --with-pic try to use only PIC/non-PIC objects [default=use
1038 both]
1039 --with-tags[=TAGS]
1040 include additional configurations [automatic]
Reid Spencer820dab72004-09-04 19:48:50 +00001041 --with-llvmsrc Location of LLVM Source Code
1042 --with-llvmobj Location of LLVM Object Code
1043
Reid Spencer011f5ca2004-09-15 06:19:53 +00001044Some influential environment variables:
1045 CC C compiler command
1046 CFLAGS C compiler flags
1047 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1048 nonstandard directory <lib dir>
1049 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1050 headers in a nonstandard directory <include dir>
1051 CPP C preprocessor
1052 CXX C++ compiler command
1053 CXXFLAGS C++ compiler flags
1054 CXXCPP C++ preprocessor
1055 F77 Fortran 77 compiler command
1056 FFLAGS Fortran 77 compiler flags
1057
1058Use these variables to override the choices made by `configure' or to help
1059it to find libraries and programs with nonstandard names/locations.
1060
Reid Spencer820dab72004-09-04 19:48:50 +00001061Report bugs to <rspencer@x10sys.com>.
1062_ACEOF
1063fi
1064
1065if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1067 ac_popdir=`pwd`
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1070 ac_builddir=.
1071
1072if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1076else
1077 ac_dir_suffix= ac_top_builddir=
1078fi
1079
1080case $srcdir in
1081 .) # No --srcdir option. We are building in place.
1082 ac_srcdir=.
1083 if test -z "$ac_top_builddir"; then
1084 ac_top_srcdir=.
1085 else
1086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1087 fi ;;
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1091 *) # Relative path.
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1094esac
1095
1096# Do not use `cd foo && pwd` to compute absolute paths, because
1097# the directories may not exist.
1098case `pwd` in
1099.) ac_abs_builddir="$ac_dir";;
1100*)
1101 case "$ac_dir" in
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105 esac;;
1106esac
1107case $ac_abs_builddir in
1108.) ac_abs_top_builddir=${ac_top_builddir}.;;
1109*)
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114 esac;;
1115esac
1116case $ac_abs_builddir in
1117.) ac_abs_srcdir=$ac_srcdir;;
1118*)
1119 case $ac_srcdir in
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_top_srcdir=$ac_top_srcdir;;
1127*)
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132 esac;;
1133esac
1134
1135 cd $ac_dir
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1138 echo
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1141 echo
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1145 echo
1146 $ac_configure --help
1147 else
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1149 fi
1150 cd $ac_popdir
1151 done
1152fi
1153
1154test -n "$ac_init_help" && exit 0
1155if $ac_init_version; then
1156 cat <<\_ACEOF
1157[Stacker] configure [1.0]
1158generated by GNU Autoconf 2.59
1159
1160Copyright (C) 2003 Free Software Foundation, Inc.
1161This configure script is free software; the Free Software Foundation
1162gives unlimited permission to copy, distribute and modify it.
1163_ACEOF
1164 exit 0
1165fi
1166exec 5>config.log
1167cat >&5 <<_ACEOF
1168This file contains any messages produced by compilers while
1169running configure, to aid debugging if configure makes a mistake.
1170
1171It was created by [Stacker] $as_me [1.0], which was
1172generated by GNU Autoconf 2.59. Invocation command line was
1173
1174 $ $0 $@
1175
1176_ACEOF
1177{
1178cat <<_ASUNAME
1179## --------- ##
1180## Platform. ##
1181## --------- ##
1182
1183hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188
1189/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191
1192/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1193/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1194/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1196/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1197/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1198/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1199
1200_ASUNAME
1201
1202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1203for as_dir in $PATH
1204do
1205 IFS=$as_save_IFS
1206 test -z "$as_dir" && as_dir=.
1207 echo "PATH: $as_dir"
1208done
1209
1210} >&5
1211
1212cat >&5 <<_ACEOF
1213
1214
1215## ----------- ##
1216## Core tests. ##
1217## ----------- ##
1218
1219_ACEOF
1220
1221
1222# Keep a trace of the command line.
1223# Strip out --no-create and --no-recursion so they do not pile up.
1224# Strip out --silent because we don't want to record it for future runs.
1225# Also quote any args containing shell meta-characters.
1226# Make two passes to allow for proper duplicate-argument suppression.
1227ac_configure_args=
1228ac_configure_args0=
1229ac_configure_args1=
1230ac_sep=
1231ac_must_keep_next=false
1232for ac_pass in 1 2
1233do
1234 for ac_arg
1235 do
1236 case $ac_arg in
1237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1240 continue ;;
1241 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1243 esac
1244 case $ac_pass in
1245 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 2)
1247 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248 if test $ac_must_keep_next = true; then
1249 ac_must_keep_next=false # Got value, back to normal.
1250 else
1251 case $ac_arg in
1252 *=* | --config-cache | -C | -disable-* | --disable-* \
1253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255 | -with-* | --with-* | -without-* | --without-* | --x)
1256 case "$ac_configure_args0 " in
1257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258 esac
1259 ;;
1260 -* ) ac_must_keep_next=true ;;
1261 esac
1262 fi
1263 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264 # Get rid of the leading space.
1265 ac_sep=" "
1266 ;;
1267 esac
1268 done
1269done
1270$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272
1273# When interrupted or exit'd, cleanup temporary files, and complete
1274# config.log. We remove comments because anyway the quotes in there
1275# would cause problems or look ugly.
1276# WARNING: Be sure not to use single quotes in there, as some shells,
1277# such as our DU 5.0 friend, will then `close' the trap.
1278trap 'exit_status=$?
1279 # Save into config.log some information that might help in debugging.
1280 {
1281 echo
1282
1283 cat <<\_ASBOX
1284## ---------------- ##
1285## Cache variables. ##
1286## ---------------- ##
1287_ASBOX
1288 echo
1289 # The following way of writing the cache mishandles newlines in values,
1290{
1291 (set) 2>&1 |
1292 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293 *ac_space=\ *)
1294 sed -n \
1295 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297 ;;
1298 *)
1299 sed -n \
1300 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301 ;;
1302 esac;
1303}
1304 echo
1305
1306 cat <<\_ASBOX
1307## ----------------- ##
1308## Output variables. ##
1309## ----------------- ##
1310_ASBOX
1311 echo
1312 for ac_var in $ac_subst_vars
1313 do
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1316 done | sort
1317 echo
1318
1319 if test -n "$ac_subst_files"; then
1320 cat <<\_ASBOX
1321## ------------- ##
1322## Output files. ##
1323## ------------- ##
1324_ASBOX
1325 echo
1326 for ac_var in $ac_subst_files
1327 do
1328 eval ac_val=$`echo $ac_var`
1329 echo "$ac_var='"'"'$ac_val'"'"'"
1330 done | sort
1331 echo
1332 fi
1333
1334 if test -s confdefs.h; then
1335 cat <<\_ASBOX
1336## ----------- ##
1337## confdefs.h. ##
1338## ----------- ##
1339_ASBOX
1340 echo
1341 sed "/^$/d" confdefs.h | sort
1342 echo
1343 fi
1344 test "$ac_signal" != 0 &&
1345 echo "$as_me: caught signal $ac_signal"
1346 echo "$as_me: exit $exit_status"
1347 } >&5
1348 rm -f core *.core &&
1349 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1350 exit $exit_status
1351 ' 0
1352for ac_signal in 1 2 13 15; do
1353 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1354done
1355ac_signal=0
1356
1357# confdefs.h avoids OS command line length limits that DEFS can exceed.
1358rm -rf conftest* confdefs.h
1359# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360echo >confdefs.h
1361
1362# Predefined preprocessor variables.
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_NAME "$PACKAGE_NAME"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_VERSION "$PACKAGE_VERSION"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_STRING "$PACKAGE_STRING"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1386_ACEOF
1387
1388
1389# Let the site file select an alternate cache file if it wants to.
1390# Prefer explicitly selected file to automatically selected ones.
1391if test -z "$CONFIG_SITE"; then
1392 if test "x$prefix" != xNONE; then
1393 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 else
1395 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396 fi
1397fi
1398for ac_site_file in $CONFIG_SITE; do
1399 if test -r "$ac_site_file"; then
1400 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1401echo "$as_me: loading site script $ac_site_file" >&6;}
1402 sed 's/^/| /' "$ac_site_file" >&5
1403 . "$ac_site_file"
1404 fi
1405done
1406
1407if test -r "$cache_file"; then
1408 # Some versions of bash will fail to source /dev/null (special
1409 # files actually), so we avoid doing that.
1410 if test -f "$cache_file"; then
1411 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1412echo "$as_me: loading cache $cache_file" >&6;}
1413 case $cache_file in
1414 [\\/]* | ?:[\\/]* ) . $cache_file;;
1415 *) . ./$cache_file;;
1416 esac
1417 fi
1418else
1419 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1420echo "$as_me: creating cache $cache_file" >&6;}
1421 >$cache_file
1422fi
1423
1424# Check that the precious variables saved in the cache have kept the same
1425# value.
1426ac_cache_corrupted=false
1427for ac_var in `(set) 2>&1 |
1428 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1429 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430 eval ac_new_set=\$ac_env_${ac_var}_set
1431 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432 eval ac_new_val="\$ac_env_${ac_var}_value"
1433 case $ac_old_set,$ac_new_set in
1434 set,)
1435 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1436echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437 ac_cache_corrupted=: ;;
1438 ,set)
1439 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1440echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441 ac_cache_corrupted=: ;;
1442 ,);;
1443 *)
1444 if test "x$ac_old_val" != "x$ac_new_val"; then
1445 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1446echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1447 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1448echo "$as_me: former value: $ac_old_val" >&2;}
1449 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1450echo "$as_me: current value: $ac_new_val" >&2;}
1451 ac_cache_corrupted=:
1452 fi;;
1453 esac
1454 # Pass precious variables to config.status.
1455 if test "$ac_new_set" = set; then
1456 case $ac_new_val in
1457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1458 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459 *) ac_arg=$ac_var=$ac_new_val ;;
1460 esac
1461 case " $ac_configure_args " in
1462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1463 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1464 esac
1465 fi
1466done
1467if $ac_cache_corrupted; then
1468 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1469echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1470 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1471echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472 { (exit 1); exit 1; }; }
1473fi
1474
1475ac_ext=c
1476ac_cpp='$CPP $CPPFLAGS'
1477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508ac_aux_dir=
1509for ac_dir in autoconf $srcdir/autoconf; do
1510 if test -f $ac_dir/install-sh; then
1511 ac_aux_dir=$ac_dir
1512 ac_install_sh="$ac_aux_dir/install-sh -c"
1513 break
1514 elif test -f $ac_dir/install.sh; then
1515 ac_aux_dir=$ac_dir
1516 ac_install_sh="$ac_aux_dir/install.sh -c"
1517 break
1518 elif test -f $ac_dir/shtool; then
1519 ac_aux_dir=$ac_dir
1520 ac_install_sh="$ac_aux_dir/shtool install -c"
1521 break
1522 fi
1523done
1524if test -z "$ac_aux_dir"; then
1525 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1526echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1527 { (exit 1); exit 1; }; }
1528fi
1529ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
1533
1534
1535
Reid Spencerbb874262004-12-27 08:51:55 +00001536 ac_config_files="$ac_config_files Makefile.common"
1537
1538
Reid Spencer011f5ca2004-09-15 06:19:53 +00001539
Reid Spencer820dab72004-09-04 19:48:50 +00001540 ac_config_commands="$ac_config_commands Makefile"
1541
1542
1543 ac_config_commands="$ac_config_commands lib/Makefile"
1544
1545
1546 ac_config_commands="$ac_config_commands lib/compiler/Makefile"
1547
1548
1549 ac_config_commands="$ac_config_commands lib/runtime/Makefile"
1550
1551
Reid Spencere07d9aa2004-09-05 16:42:30 +00001552 ac_config_commands="$ac_config_commands test/Makefile"
1553
1554
Reid Spencer820dab72004-09-04 19:48:50 +00001555 ac_config_commands="$ac_config_commands tools/Makefile"
1556
1557
1558 ac_config_commands="$ac_config_commands tools/stkrc/Makefile"
1559
1560
1561
1562
Reid Spencer011f5ca2004-09-15 06:19:53 +00001563# Check whether --enable-shared or --disable-shared was given.
1564if test "${enable_shared+set}" = set; then
1565 enableval="$enable_shared"
1566 p=${PACKAGE-default}
1567 case $enableval in
1568 yes) enable_shared=yes ;;
1569 no) enable_shared=no ;;
1570 *)
1571 enable_shared=no
1572 # Look at the argument we got. We use all the common list separators.
1573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1574 for pkg in $enableval; do
1575 IFS="$lt_save_ifs"
1576 if test "X$pkg" = "X$p"; then
1577 enable_shared=yes
1578 fi
1579 done
1580 IFS="$lt_save_ifs"
1581 ;;
1582 esac
1583else
1584 enable_shared=yes
1585fi;
1586
1587# Check whether --enable-static or --disable-static was given.
1588if test "${enable_static+set}" = set; then
1589 enableval="$enable_static"
1590 p=${PACKAGE-default}
1591 case $enableval in
1592 yes) enable_static=yes ;;
1593 no) enable_static=no ;;
1594 *)
1595 enable_static=no
1596 # Look at the argument we got. We use all the common list separators.
1597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1598 for pkg in $enableval; do
1599 IFS="$lt_save_ifs"
1600 if test "X$pkg" = "X$p"; then
1601 enable_static=yes
1602 fi
1603 done
1604 IFS="$lt_save_ifs"
1605 ;;
1606 esac
1607else
1608 enable_static=yes
1609fi;
1610
1611# Check whether --enable-fast-install or --disable-fast-install was given.
1612if test "${enable_fast_install+set}" = set; then
1613 enableval="$enable_fast_install"
1614 p=${PACKAGE-default}
1615 case $enableval in
1616 yes) enable_fast_install=yes ;;
1617 no) enable_fast_install=no ;;
1618 *)
1619 enable_fast_install=no
1620 # Look at the argument we got. We use all the common list separators.
1621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1622 for pkg in $enableval; do
1623 IFS="$lt_save_ifs"
1624 if test "X$pkg" = "X$p"; then
1625 enable_fast_install=yes
1626 fi
1627 done
1628 IFS="$lt_save_ifs"
1629 ;;
1630 esac
1631else
1632 enable_fast_install=yes
1633fi;
1634
1635# Make sure we can run config.sub.
1636$ac_config_sub sun4 >/dev/null 2>&1 ||
1637 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1638echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641echo "$as_me:$LINENO: checking build system type" >&5
1642echo $ECHO_N "checking build system type... $ECHO_C" >&6
1643if test "${ac_cv_build+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645else
1646 ac_cv_build_alias=$build_alias
1647test -z "$ac_cv_build_alias" &&
1648 ac_cv_build_alias=`$ac_config_guess`
1649test -z "$ac_cv_build_alias" &&
1650 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1651echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1652 { (exit 1); exit 1; }; }
1653ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1655echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1657
1658fi
1659echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1660echo "${ECHO_T}$ac_cv_build" >&6
1661build=$ac_cv_build
1662build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665
1666
1667echo "$as_me:$LINENO: checking host system type" >&5
1668echo $ECHO_N "checking host system type... $ECHO_C" >&6
1669if test "${ac_cv_host+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672 ac_cv_host_alias=$host_alias
1673test -z "$ac_cv_host_alias" &&
1674 ac_cv_host_alias=$ac_cv_build_alias
1675ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1676 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1677echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1678 { (exit 1); exit 1; }; }
1679
1680fi
1681echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1682echo "${ECHO_T}$ac_cv_host" >&6
1683host=$ac_cv_host
1684host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687
1688
1689ac_ext=c
1690ac_cpp='$CPP $CPPFLAGS'
1691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1693ac_compiler_gnu=$ac_cv_c_compiler_gnu
1694if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}gcc; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721CC=$ac_cv_prog_CC
1722if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730fi
1731if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "gcc", so it can be a program name with args.
1734set dummy gcc; ac_word=$2
1735echo "$as_me:$LINENO: checking for $ac_word" >&5
1736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742else
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="gcc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1753 fi
1754done
1755done
1756
1757fi
1758fi
1759ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762echo "${ECHO_T}$ac_ct_CC" >&6
1763else
1764 echo "$as_me:$LINENO: result: no" >&5
1765echo "${ECHO_T}no" >&6
1766fi
1767
1768 CC=$ac_ct_CC
1769else
1770 CC="$ac_cv_prog_CC"
1771fi
1772
1773if test -z "$CC"; then
1774 if test -n "$ac_tool_prefix"; then
1775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1776set dummy ${ac_tool_prefix}cc; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784else
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_CC="${ac_tool_prefix}cc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1795 fi
1796done
1797done
1798
1799fi
1800fi
1801CC=$ac_cv_prog_CC
1802if test -n "$CC"; then
1803 echo "$as_me:$LINENO: result: $CC" >&5
1804echo "${ECHO_T}$CC" >&6
1805else
1806 echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808fi
1809
1810fi
1811if test -z "$ac_cv_prog_CC"; then
1812 ac_ct_CC=$CC
1813 # Extract the first word of "cc", so it can be a program name with args.
1814set dummy cc; ac_word=$2
1815echo "$as_me:$LINENO: checking for $ac_word" >&5
1816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 if test -n "$ac_ct_CC"; then
1821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1822else
1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824for as_dir in $PATH
1825do
1826 IFS=$as_save_IFS
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_ac_ct_CC="cc"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 break 2
1833 fi
1834done
1835done
1836
1837fi
1838fi
1839ac_ct_CC=$ac_cv_prog_ac_ct_CC
1840if test -n "$ac_ct_CC"; then
1841 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1842echo "${ECHO_T}$ac_ct_CC" >&6
1843else
1844 echo "$as_me:$LINENO: result: no" >&5
1845echo "${ECHO_T}no" >&6
1846fi
1847
1848 CC=$ac_ct_CC
1849else
1850 CC="$ac_cv_prog_CC"
1851fi
1852
1853fi
1854if test -z "$CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856set dummy cc; ac_word=$2
1857echo "$as_me:$LINENO: checking for $ac_word" >&5
1858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859if test "${ac_cv_prog_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861else
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1864else
1865 ac_prog_rejected=no
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1874 ac_prog_rejected=yes
1875 continue
1876 fi
1877 ac_cv_prog_CC="cc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1880 fi
1881done
1882done
1883
1884if test $ac_prog_rejected = yes; then
1885 # We found a bogon in the path, so make sure we never use it.
1886 set dummy $ac_cv_prog_CC
1887 shift
1888 if test $# != 0; then
1889 # We chose a different compiler from the bogus one.
1890 # However, it has the same basename, so the bogon will be chosen
1891 # first if we set CC to just the basename; use the full file name.
1892 shift
1893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1894 fi
1895fi
1896fi
1897fi
1898CC=$ac_cv_prog_CC
1899if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901echo "${ECHO_T}$CC" >&6
1902else
1903 echo "$as_me:$LINENO: result: no" >&5
1904echo "${ECHO_T}no" >&6
1905fi
1906
1907fi
1908if test -z "$CC"; then
1909 if test -n "$ac_tool_prefix"; then
1910 for ac_prog in cl
1911 do
1912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1914echo "$as_me:$LINENO: checking for $ac_word" >&5
1915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916if test "${ac_cv_prog_CC+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1921else
1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923for as_dir in $PATH
1924do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1932 fi
1933done
1934done
1935
1936fi
1937fi
1938CC=$ac_cv_prog_CC
1939if test -n "$CC"; then
1940 echo "$as_me:$LINENO: result: $CC" >&5
1941echo "${ECHO_T}$CC" >&6
1942else
1943 echo "$as_me:$LINENO: result: no" >&5
1944echo "${ECHO_T}no" >&6
1945fi
1946
1947 test -n "$CC" && break
1948 done
1949fi
1950if test -z "$CC"; then
1951 ac_ct_CC=$CC
1952 for ac_prog in cl
1953do
1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
1955set dummy $ac_prog; ac_word=$2
1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960else
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963else
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC="$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975done
1976done
1977
1978fi
1979fi
1980ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983echo "${ECHO_T}$ac_ct_CC" >&6
1984else
1985 echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989 test -n "$ac_ct_CC" && break
1990done
1991
1992 CC=$ac_ct_CC
1993fi
1994
1995fi
1996
1997
1998test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1999See \`config.log' for more details." >&5
2000echo "$as_me: error: no acceptable C compiler found in \$PATH
2001See \`config.log' for more details." >&2;}
2002 { (exit 1); exit 1; }; }
2003
2004# Provide some information about the compiler.
2005echo "$as_me:$LINENO:" \
2006 "checking for C compiler version" >&5
2007ac_compiler=`set X $ac_compile; echo $2`
2008{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2009 (eval $ac_compiler --version </dev/null >&5) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2014 (eval $ac_compiler -v </dev/null >&5) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }
2018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2019 (eval $ac_compiler -V </dev/null >&5) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2023
2024cat >conftest.$ac_ext <<_ACEOF
2025/* confdefs.h. */
2026_ACEOF
2027cat confdefs.h >>conftest.$ac_ext
2028cat >>conftest.$ac_ext <<_ACEOF
2029/* end confdefs.h. */
2030
2031int
2032main ()
2033{
2034
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039ac_clean_files_save=$ac_clean_files
2040ac_clean_files="$ac_clean_files a.out a.exe b.out"
2041# Try to create an executable without -o first, disregard a.out.
2042# It will help us diagnose broken compilers, and finding out an intuition
2043# of exeext.
2044echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2045echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2046ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2047if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2048 (eval $ac_link_default) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; then
2052 # Find the output, starting from the most likely. This scheme is
2053# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2054# resort.
2055
2056# Be careful to initialize this variable, since it used to be cached.
2057# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2058ac_cv_exeext=
2059# b.out is created by i960 compilers.
2060for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2061do
2062 test -f "$ac_file" || continue
2063 case $ac_file in
2064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2065 ;;
2066 conftest.$ac_ext )
2067 # This is the source file.
2068 ;;
2069 [ab].out )
2070 # We found the default executable, but exeext='' is most
2071 # certainly right.
2072 break;;
2073 *.* )
2074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 # FIXME: I believe we export ac_cv_exeext for Libtool,
2076 # but it would be cool to find out if it's true. Does anybody
2077 # maintain Libtool? --akim.
2078 export ac_cv_exeext
2079 break;;
2080 * )
2081 break;;
2082 esac
2083done
2084else
2085 echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2089See \`config.log' for more details." >&5
2090echo "$as_me: error: C compiler cannot create executables
2091See \`config.log' for more details." >&2;}
2092 { (exit 77); exit 77; }; }
2093fi
2094
2095ac_exeext=$ac_cv_exeext
2096echo "$as_me:$LINENO: result: $ac_file" >&5
2097echo "${ECHO_T}$ac_file" >&6
2098
2099# Check the compiler produces executables we can run. If not, either
2100# the compiler is broken, or we cross compile.
2101echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2102echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2103# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2104# If not cross compiling, check that we can run a simple program.
2105if test "$cross_compiling" != yes; then
2106 if { ac_try='./$ac_file'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 (eval $ac_try) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2112 cross_compiling=no
2113 else
2114 if test "$cross_compiling" = maybe; then
2115 cross_compiling=yes
2116 else
2117 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2118If you meant to cross compile, use \`--host'.
2119See \`config.log' for more details." >&5
2120echo "$as_me: error: cannot run C compiled programs.
2121If you meant to cross compile, use \`--host'.
2122See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2124 fi
2125 fi
2126fi
2127echo "$as_me:$LINENO: result: yes" >&5
2128echo "${ECHO_T}yes" >&6
2129
2130rm -f a.out a.exe conftest$ac_cv_exeext b.out
2131ac_clean_files=$ac_clean_files_save
2132# Check the compiler produces executables we can run. If not, either
2133# the compiler is broken, or we cross compile.
2134echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2135echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2136echo "$as_me:$LINENO: result: $cross_compiling" >&5
2137echo "${ECHO_T}$cross_compiling" >&6
2138
2139echo "$as_me:$LINENO: checking for suffix of executables" >&5
2140echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2142 (eval $ac_link) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2147# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2148# work properly (i.e., refer to `conftest.exe'), while it won't with
2149# `rm'.
2150for ac_file in conftest.exe conftest conftest.*; do
2151 test -f "$ac_file" || continue
2152 case $ac_file in
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2155 export ac_cv_exeext
2156 break;;
2157 * ) break;;
2158 esac
2159done
2160else
2161 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2164See \`config.log' for more details." >&2;}
2165 { (exit 1); exit 1; }; }
2166fi
2167
2168rm -f conftest$ac_cv_exeext
2169echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170echo "${ECHO_T}$ac_cv_exeext" >&6
2171
2172rm -f conftest.$ac_ext
2173EXEEXT=$ac_cv_exeext
2174ac_exeext=$EXEEXT
2175echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177if test "${ac_cv_objext+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 cat >conftest.$ac_ext <<_ACEOF
2181/* confdefs.h. */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h. */
2186
2187int
2188main ()
2189{
2190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195rm -f conftest.o conftest.obj
2196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>&5
2198 ac_status=$?
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2202 case $ac_file in
2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2204 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2205 break;;
2206 esac
2207done
2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: cannot compute suffix of object files: cannot compile
2215See \`config.log' for more details." >&2;}
2216 { (exit 1); exit 1; }; }
2217fi
2218
2219rm -f conftest.$ac_cv_objext conftest.$ac_ext
2220fi
2221echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2222echo "${ECHO_T}$ac_cv_objext" >&6
2223OBJEXT=$ac_cv_objext
2224ac_objext=$OBJEXT
2225echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2226echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2227if test "${ac_cv_c_compiler_gnu+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230 cat >conftest.$ac_ext <<_ACEOF
2231/* confdefs.h. */
2232_ACEOF
2233cat confdefs.h >>conftest.$ac_ext
2234cat >>conftest.$ac_ext <<_ACEOF
2235/* end confdefs.h. */
2236
2237int
2238main ()
2239{
2240#ifndef __GNUC__
2241 choke me
2242#endif
2243
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>conftest.er1
2251 ac_status=$?
2252 grep -v '^ *+' conftest.er1 >conftest.err
2253 rm -f conftest.er1
2254 cat conftest.err >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -z "$ac_c_werror_flag"
2258 || test ! -s conftest.err'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; } &&
2264 { ac_try='test -s conftest.$ac_objext'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; }; then
2270 ac_compiler_gnu=yes
2271else
2272 echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
2275ac_compiler_gnu=no
2276fi
2277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278ac_cv_c_compiler_gnu=$ac_compiler_gnu
2279
2280fi
2281echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2282echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2283GCC=`test $ac_compiler_gnu = yes && echo yes`
2284ac_test_CFLAGS=${CFLAGS+set}
2285ac_save_CFLAGS=$CFLAGS
2286CFLAGS="-g"
2287echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2288echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2289if test "${ac_cv_prog_cc_g+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292 cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h. */
2298
2299int
2300main ()
2301{
2302
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307rm -f conftest.$ac_objext
2308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2310 ac_status=$?
2311 grep -v '^ *+' conftest.er1 >conftest.err
2312 rm -f conftest.er1
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 ac_cv_prog_cc_g=yes
2330else
2331 echo "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334ac_cv_prog_cc_g=no
2335fi
2336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337fi
2338echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2339echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2340if test "$ac_test_CFLAGS" = set; then
2341 CFLAGS=$ac_save_CFLAGS
2342elif test $ac_cv_prog_cc_g = yes; then
2343 if test "$GCC" = yes; then
2344 CFLAGS="-g -O2"
2345 else
2346 CFLAGS="-g"
2347 fi
2348else
2349 if test "$GCC" = yes; then
2350 CFLAGS="-O2"
2351 else
2352 CFLAGS=
2353 fi
2354fi
2355echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2356echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2357if test "${ac_cv_prog_cc_stdc+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360 ac_cv_prog_cc_stdc=no
2361ac_save_CC=$CC
2362cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h. */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h. */
2368#include <stdarg.h>
2369#include <stdio.h>
2370#include <sys/types.h>
2371#include <sys/stat.h>
2372/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2373struct buf { int x; };
2374FILE * (*rcsopen) (struct buf *, struct stat *, int);
2375static char *e (p, i)
2376 char **p;
2377 int i;
2378{
2379 return p[i];
2380}
2381static char *f (char * (*g) (char **, int), char **p, ...)
2382{
2383 char *s;
2384 va_list v;
2385 va_start (v,p);
2386 s = g (p, va_arg (v,int));
2387 va_end (v);
2388 return s;
2389}
2390
2391/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2392 function prototypes and stuff, but not '\xHH' hex character constants.
2393 These don't provoke an error unfortunately, instead are silently treated
2394 as 'x'. The following induces an error, until -std1 is added to get
2395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2396 array size at least. It's necessary to write '\x00'==0 to get something
2397 that's true only with -std1. */
2398int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2399
2400int test (int i, double x);
2401struct s1 {int (*f) (int a);};
2402struct s2 {int (*f) (double a);};
2403int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2404int argc;
2405char **argv;
2406int
2407main ()
2408{
2409return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2410 ;
2411 return 0;
2412}
2413_ACEOF
2414# Don't try gcc -ansi; that turns off useful extensions and
2415# breaks some systems' header files.
2416# AIX -qlanglvl=ansi
2417# Ultrix and OSF/1 -std1
2418# HP-UX 10.20 and later -Ae
2419# HP-UX older versions -Aa -D_HPUX_SOURCE
2420# SVR4 -Xc -D__EXTENSIONS__
2421for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2422do
2423 CC="$ac_save_CC $ac_arg"
2424 rm -f conftest.$ac_objext
2425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>conftest.er1
2427 ac_status=$?
2428 grep -v '^ *+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -z "$ac_c_werror_flag"
2434 || test ! -s conftest.err'
2435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; } &&
2440 { ac_try='test -s conftest.$ac_objext'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; }; then
2446 ac_cv_prog_cc_stdc=$ac_arg
2447break
2448else
2449 echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452fi
2453rm -f conftest.err conftest.$ac_objext
2454done
2455rm -f conftest.$ac_ext conftest.$ac_objext
2456CC=$ac_save_CC
2457
2458fi
2459
2460case "x$ac_cv_prog_cc_stdc" in
2461 x|xno)
2462 echo "$as_me:$LINENO: result: none needed" >&5
2463echo "${ECHO_T}none needed" >&6 ;;
2464 *)
2465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2466echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2467 CC="$CC $ac_cv_prog_cc_stdc" ;;
2468esac
2469
2470# Some people use a C++ compiler to compile C. Since we use `exit',
2471# in C++ we need to declare it. In case someone uses the same compiler
2472# for both compiling C and C++ we need to have the C++ compiler decide
2473# the declaration of exit, since it's the most demanding environment.
2474cat >conftest.$ac_ext <<_ACEOF
2475#ifndef __cplusplus
2476 choke me
2477#endif
2478_ACEOF
2479rm -f conftest.$ac_objext
2480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481 (eval $ac_compile) 2>conftest.er1
2482 ac_status=$?
2483 grep -v '^ *+' conftest.er1 >conftest.err
2484 rm -f conftest.er1
2485 cat conftest.err >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -z "$ac_c_werror_flag"
2489 || test ! -s conftest.err'
2490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 (eval $ac_try) 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 (eval $ac_try) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 for ac_declaration in \
2502 '' \
2503 'extern "C" void std::exit (int) throw (); using std::exit;' \
2504 'extern "C" void std::exit (int); using std::exit;' \
2505 'extern "C" void exit (int) throw ();' \
2506 'extern "C" void exit (int);' \
2507 'void exit (int);'
2508do
2509 cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h. */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h. */
2515$ac_declaration
2516#include <stdlib.h>
2517int
2518main ()
2519{
2520exit (42);
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525rm -f conftest.$ac_objext
2526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 :
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552continue
2553fi
2554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 cat >conftest.$ac_ext <<_ACEOF
2556/* confdefs.h. */
2557_ACEOF
2558cat confdefs.h >>conftest.$ac_ext
2559cat >>conftest.$ac_ext <<_ACEOF
2560/* end confdefs.h. */
2561$ac_declaration
2562int
2563main ()
2564{
2565exit (42);
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext
2571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag"
2580 || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 break
2593else
2594 echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599done
2600rm -f conftest*
2601if test -n "$ac_declaration"; then
2602 echo '#ifdef __cplusplus' >>confdefs.h
2603 echo $ac_declaration >>confdefs.h
2604 echo '#endif' >>confdefs.h
2605fi
2606
2607else
2608 echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611fi
2612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613ac_ext=c
2614ac_cpp='$CPP $CPPFLAGS'
2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
2619echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2620echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2621if test "${lt_cv_path_SED+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623else
2624 # Loop through the user's path and test for sed and gsed.
2625# Then use that list of sed's as ones to test for truncation.
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for lt_ac_prog in sed gsed; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2634 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2635 fi
2636 done
2637 done
2638done
2639lt_ac_max=0
2640lt_ac_count=0
2641# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2642# along with /bin/sed that truncates output.
2643for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2644 test ! -f $lt_ac_sed && break
2645 cat /dev/null > conftest.in
2646 lt_ac_count=0
2647 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2648 # Check for GNU sed and select it if it is found.
2649 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2650 lt_cv_path_SED=$lt_ac_sed
2651 break
2652 fi
2653 while true; do
2654 cat conftest.in conftest.in >conftest.tmp
2655 mv conftest.tmp conftest.in
2656 cp conftest.in conftest.nl
2657 echo >>conftest.nl
2658 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2659 cmp -s conftest.out conftest.nl || break
2660 # 10000 chars as input seems more than enough
2661 test $lt_ac_count -gt 10 && break
2662 lt_ac_count=`expr $lt_ac_count + 1`
2663 if test $lt_ac_count -gt $lt_ac_max; then
2664 lt_ac_max=$lt_ac_count
2665 lt_cv_path_SED=$lt_ac_sed
2666 fi
2667 done
2668done
2669SED=$lt_cv_path_SED
2670
2671fi
2672
2673echo "$as_me:$LINENO: result: $SED" >&5
2674echo "${ECHO_T}$SED" >&6
2675
2676echo "$as_me:$LINENO: checking for egrep" >&5
2677echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2678if test "${ac_cv_prog_egrep+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2682 then ac_cv_prog_egrep='grep -E'
2683 else ac_cv_prog_egrep='egrep'
2684 fi
2685fi
2686echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2687echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2688 EGREP=$ac_cv_prog_egrep
2689
2690
2691
2692# Check whether --with-gnu-ld or --without-gnu-ld was given.
2693if test "${with_gnu_ld+set}" = set; then
2694 withval="$with_gnu_ld"
2695 test "$withval" = no || with_gnu_ld=yes
2696else
2697 with_gnu_ld=no
2698fi;
2699ac_prog=ld
2700if test "$GCC" = yes; then
2701 # Check if gcc -print-prog-name=ld gives a path.
2702 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2703echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2704 case $host in
2705 *-*-mingw*)
2706 # gcc leaves a trailing carriage return which upsets mingw
2707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2708 *)
2709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2710 esac
2711 case $ac_prog in
2712 # Accept absolute paths.
2713 [\\/]* | ?:[\\/]*)
2714 re_direlt='/[^/][^/]*/\.\./'
2715 # Canonicalize the path of ld
2716 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2717 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2718 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2719 done
2720 test -z "$LD" && LD="$ac_prog"
2721 ;;
2722 "")
2723 # If it fails, then pretend we aren't using GCC.
2724 ac_prog=ld
2725 ;;
2726 *)
2727 # If it is relative, then search for the first ld in PATH.
2728 with_gnu_ld=unknown
2729 ;;
2730 esac
2731elif test "$with_gnu_ld" = yes; then
2732 echo "$as_me:$LINENO: checking for GNU ld" >&5
2733echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2734else
2735 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2736echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2737fi
2738if test "${lt_cv_path_LD+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 if test -z "$LD"; then
2742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2743 for ac_dir in $PATH; do
2744 IFS="$lt_save_ifs"
2745 test -z "$ac_dir" && ac_dir=.
2746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2747 lt_cv_path_LD="$ac_dir/$ac_prog"
2748 # Check to see if the program is GNU ld. I'd rather use --version,
2749 # but apparently some GNU ld's only accept -v.
2750 # Break only if it was the GNU/non-GNU ld that we prefer.
2751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2752 *GNU* | *'with BFD'*)
2753 test "$with_gnu_ld" != no && break
2754 ;;
2755 *)
2756 test "$with_gnu_ld" != yes && break
2757 ;;
2758 esac
2759 fi
2760 done
2761 IFS="$lt_save_ifs"
2762else
2763 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2764fi
2765fi
2766
2767LD="$lt_cv_path_LD"
2768if test -n "$LD"; then
2769 echo "$as_me:$LINENO: result: $LD" >&5
2770echo "${ECHO_T}$LD" >&6
2771else
2772 echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
2774fi
2775test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2776echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2777 { (exit 1); exit 1; }; }
2778echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2779echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2780if test "${lt_cv_prog_gnu_ld+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782else
2783 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2784case `"$LD" -v 2>&1 </dev/null` in
2785*GNU* | *'with BFD'*)
2786 lt_cv_prog_gnu_ld=yes
2787 ;;
2788*)
2789 lt_cv_prog_gnu_ld=no
2790 ;;
2791esac
2792fi
2793echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2794echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2795with_gnu_ld=$lt_cv_prog_gnu_ld
2796
2797
2798echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2799echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2800if test "${lt_cv_ld_reload_flag+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802else
2803 lt_cv_ld_reload_flag='-r'
2804fi
2805echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2806echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2807reload_flag=$lt_cv_ld_reload_flag
2808case $reload_flag in
2809"" | " "*) ;;
2810*) reload_flag=" $reload_flag" ;;
2811esac
2812reload_cmds='$LD$reload_flag -o $output$reload_objs'
2813
2814echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2815echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2816if test "${lt_cv_path_NM+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$NM"; then
2820 # Let the user override the test.
2821 lt_cv_path_NM="$NM"
2822else
2823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2824 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2825 IFS="$lt_save_ifs"
2826 test -z "$ac_dir" && ac_dir=.
2827 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2828 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2829 # Check to see if the nm accepts a BSD-compat flag.
2830 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2831 # nm: unknown option "B" ignored
2832 # Tru64's nm complains that /dev/null is an invalid object file
2833 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2834 */dev/null* | *'Invalid file or object type'*)
2835 lt_cv_path_NM="$tmp_nm -B"
2836 break
2837 ;;
2838 *)
2839 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2840 */dev/null*)
2841 lt_cv_path_NM="$tmp_nm -p"
2842 break
2843 ;;
2844 *)
2845 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2846 continue # so that we can try to find one that supports BSD flags
2847 ;;
2848 esac
2849 esac
2850 fi
2851 done
2852 IFS="$lt_save_ifs"
2853 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2854fi
2855fi
2856echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2857echo "${ECHO_T}$lt_cv_path_NM" >&6
2858NM="$lt_cv_path_NM"
2859
2860echo "$as_me:$LINENO: checking whether ln -s works" >&5
2861echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2862LN_S=$as_ln_s
2863if test "$LN_S" = "ln -s"; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6
2866else
2867 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2868echo "${ECHO_T}no, using $LN_S" >&6
2869fi
2870
2871echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2872echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2873if test "${lt_cv_deplibs_check_method+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876 lt_cv_file_magic_cmd='$MAGIC_CMD'
2877lt_cv_file_magic_test_file=
2878lt_cv_deplibs_check_method='unknown'
2879# Need to set the preceding variable on all platforms that support
2880# interlibrary dependencies.
2881# 'none' -- dependencies not supported.
2882# `unknown' -- same as none, but documents that we really don't know.
2883# 'pass_all' -- all dependencies passed with no checks.
2884# 'test_compile' -- check by making test program.
2885# 'file_magic [[regex]]' -- check by looking for files in library path
2886# which responds to the $file_magic_cmd with a given extended regex.
2887# If you have `file' or equivalent on your system and you're not sure
2888# whether `pass_all' will *always* work, you probably want this one.
2889
2890case $host_os in
2891aix4* | aix5*)
2892 lt_cv_deplibs_check_method=pass_all
2893 ;;
2894
2895beos*)
2896 lt_cv_deplibs_check_method=pass_all
2897 ;;
2898
2899bsdi4*)
2900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2901 lt_cv_file_magic_cmd='/usr/bin/file -L'
2902 lt_cv_file_magic_test_file=/shlib/libc.so
2903 ;;
2904
2905cygwin* | mingw* | pw32*)
2906 # win32_libid is a shell function defined in ltmain.sh
2907 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2908 lt_cv_file_magic_cmd='win32_libid'
2909 ;;
2910
2911darwin* | rhapsody*)
2912 # this will be overwritten by pass_all, but leave it in just in case
2913 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2914 lt_cv_file_magic_cmd='/usr/bin/file -L'
2915 case "$host_os" in
2916 rhapsody* | darwin1.[012])
2917 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2918 ;;
2919 *) # Darwin 1.3 on
2920 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2921 ;;
2922 esac
2923 lt_cv_deplibs_check_method=pass_all
2924 ;;
2925
2926freebsd*)
2927 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2928 case $host_cpu in
2929 i*86 )
2930 # Not sure whether the presence of OpenBSD here was a mistake.
2931 # Let's accept both of them until this is cleared up.
2932 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2933 lt_cv_file_magic_cmd=/usr/bin/file
2934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2935 ;;
2936 esac
2937 else
2938 lt_cv_deplibs_check_method=pass_all
2939 fi
2940 ;;
2941
2942gnu*)
2943 lt_cv_deplibs_check_method=pass_all
2944 ;;
2945
2946hpux10.20* | hpux11*)
2947 lt_cv_file_magic_cmd=/usr/bin/file
2948 case "$host_cpu" in
2949 ia64*)
2950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2951 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2952 ;;
2953 hppa*64*)
2954 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]'
2955 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2956 ;;
2957 *)
2958 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2959 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2960 ;;
2961 esac
2962 ;;
2963
2964irix5* | irix6* | nonstopux*)
2965 case $host_os in
2966 irix5* | nonstopux*)
2967 # this will be overridden with pass_all, but let us keep it just in case
2968 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2969 ;;
2970 *)
2971 case $LD in
2972 *-32|*"-32 ") libmagic=32-bit;;
2973 *-n32|*"-n32 ") libmagic=N32;;
2974 *-64|*"-64 ") libmagic=64-bit;;
2975 *) libmagic=never-match;;
2976 esac
2977 # this will be overridden with pass_all, but let us keep it just in case
2978 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2979 ;;
2980 esac
2981 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2982 lt_cv_deplibs_check_method=pass_all
2983 ;;
2984
2985# This must be Linux ELF.
2986linux*)
2987 case $host_cpu in
2988 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2989 lt_cv_deplibs_check_method=pass_all ;;
2990 *)
2991 # glibc up to 2.1.1 does not perform some relocations on ARM
2992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2993 esac
2994 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2995 ;;
2996
2997netbsd*)
2998 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3000 else
3001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3002 fi
3003 ;;
3004
3005newos6*)
3006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3007 lt_cv_file_magic_cmd=/usr/bin/file
3008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3009 ;;
3010
3011nto-qnx)
3012 lt_cv_deplibs_check_method=unknown
3013 ;;
3014
3015openbsd*)
3016 lt_cv_file_magic_cmd=/usr/bin/file
3017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3020 else
3021 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3022 fi
3023 ;;
3024
3025osf3* | osf4* | osf5*)
3026 # this will be overridden with pass_all, but let us keep it just in case
3027 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3028 lt_cv_file_magic_test_file=/shlib/libc.so
3029 lt_cv_deplibs_check_method=pass_all
3030 ;;
3031
3032sco3.2v5*)
3033 lt_cv_deplibs_check_method=pass_all
3034 ;;
3035
3036solaris*)
3037 lt_cv_deplibs_check_method=pass_all
3038 lt_cv_file_magic_test_file=/lib/libc.so
3039 ;;
3040
3041sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3042 case $host_vendor in
3043 motorola)
3044 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]'
3045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3046 ;;
3047 ncr)
3048 lt_cv_deplibs_check_method=pass_all
3049 ;;
3050 sequent)
3051 lt_cv_file_magic_cmd='/bin/file'
3052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3053 ;;
3054 sni)
3055 lt_cv_file_magic_cmd='/bin/file'
3056 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3057 lt_cv_file_magic_test_file=/lib/libc.so
3058 ;;
3059 siemens)
3060 lt_cv_deplibs_check_method=pass_all
3061 ;;
3062 esac
3063 ;;
3064
3065sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3066 lt_cv_deplibs_check_method=pass_all
3067 ;;
3068esac
3069
3070fi
3071echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3072echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3073file_magic_cmd=$lt_cv_file_magic_cmd
3074deplibs_check_method=$lt_cv_deplibs_check_method
3075test -z "$deplibs_check_method" && deplibs_check_method=unknown
3076
3077
3078
3079
3080# If no C compiler was specified, use CC.
3081LTCC=${LTCC-"$CC"}
3082
3083# Allow CC to be a program name with arguments.
3084compiler=$CC
3085
3086
3087# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3088if test "${enable_libtool_lock+set}" = set; then
3089 enableval="$enable_libtool_lock"
3090
3091fi;
3092test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3093
3094# Some flags need to be propagated to the compiler or linker for good
3095# libtool support.
3096case $host in
3097ia64-*-hpux*)
3098 # Find out which ABI we are using.
3099 echo 'int i;' > conftest.$ac_ext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 case `/usr/bin/file conftest.$ac_objext` in
3106 *ELF-32*)
3107 HPUX_IA64_MODE="32"
3108 ;;
3109 *ELF-64*)
3110 HPUX_IA64_MODE="64"
3111 ;;
3112 esac
3113 fi
3114 rm -rf conftest*
3115 ;;
3116*-*-irix6*)
3117 # Find out which ABI we are using.
Reid Spencerbb874262004-12-27 08:51:55 +00003118 echo '#line 3118 "configure"' > conftest.$ac_ext
Reid Spencer011f5ca2004-09-15 06:19:53 +00003119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120 (eval $ac_compile) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; then
3124 if test "$lt_cv_prog_gnu_ld" = yes; then
3125 case `/usr/bin/file conftest.$ac_objext` in
3126 *32-bit*)
3127 LD="${LD-ld} -melf32bsmip"
3128 ;;
3129 *N32*)
3130 LD="${LD-ld} -melf32bmipn32"
3131 ;;
3132 *64-bit*)
3133 LD="${LD-ld} -melf64bmip"
3134 ;;
3135 esac
3136 else
3137 case `/usr/bin/file conftest.$ac_objext` in
3138 *32-bit*)
3139 LD="${LD-ld} -32"
3140 ;;
3141 *N32*)
3142 LD="${LD-ld} -n32"
3143 ;;
3144 *64-bit*)
3145 LD="${LD-ld} -64"
3146 ;;
3147 esac
3148 fi
3149 fi
3150 rm -rf conftest*
3151 ;;
3152
3153x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3154 # Find out which ABI we are using.
3155 echo 'int i;' > conftest.$ac_ext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; then
3161 case "`/usr/bin/file conftest.o`" in
3162 *32-bit*)
3163 case $host in
3164 x86_64-*linux*)
3165 LD="${LD-ld} -m elf_i386"
3166 ;;
3167 ppc64-*linux*)
3168 LD="${LD-ld} -m elf32ppclinux"
3169 ;;
3170 s390x-*linux*)
3171 LD="${LD-ld} -m elf_s390"
3172 ;;
3173 sparc64-*linux*)
3174 LD="${LD-ld} -m elf32_sparc"
3175 ;;
3176 esac
3177 ;;
3178 *64-bit*)
3179 case $host in
3180 x86_64-*linux*)
3181 LD="${LD-ld} -m elf_x86_64"
3182 ;;
3183 ppc*-*linux*|powerpc*-*linux*)
3184 LD="${LD-ld} -m elf64ppc"
3185 ;;
3186 s390*-*linux*)
3187 LD="${LD-ld} -m elf64_s390"
3188 ;;
3189 sparc*-*linux*)
3190 LD="${LD-ld} -m elf64_sparc"
3191 ;;
3192 esac
3193 ;;
3194 esac
3195 fi
3196 rm -rf conftest*
3197 ;;
3198
3199*-*-sco3.2v5*)
3200 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3201 SAVE_CFLAGS="$CFLAGS"
3202 CFLAGS="$CFLAGS -belf"
3203 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3204echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3205if test "${lt_cv_cc_needs_belf+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220
3221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext conftest$ac_exeext
3230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3231 (eval $ac_link) 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag"
3239 || test ! -s conftest.err'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 (eval $ac_try) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest$ac_exeext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 lt_cv_cc_needs_belf=yes
3252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256lt_cv_cc_needs_belf=no
3257fi
3258rm -f conftest.err conftest.$ac_objext \
3259 conftest$ac_exeext conftest.$ac_ext
3260 ac_ext=c
3261ac_cpp='$CPP $CPPFLAGS'
3262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266fi
3267echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3268echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3269 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3270 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3271 CFLAGS="$SAVE_CFLAGS"
3272 fi
3273 ;;
3274
3275esac
3276
3277need_locks="$enable_libtool_lock"
3278
3279
3280ac_ext=c
3281ac_cpp='$CPP $CPPFLAGS'
3282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3287# On Suns, sometimes $CPP names a directory.
3288if test -n "$CPP" && test -d "$CPP"; then
3289 CPP=
3290fi
3291if test -z "$CPP"; then
3292 if test "${ac_cv_prog_CPP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295 # Double quotes because CPP needs to be expanded
3296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3297 do
3298 ac_preproc_ok=false
3299for ac_c_preproc_warn_flag in '' yes
3300do
3301 # Use a header file that comes with gcc, so configuring glibc
3302 # with a fresh cross-compiler works.
3303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304 # <limits.h> exists even on freestanding compilers.
3305 # On the NeXT, cc -E runs the code through the compiler's parser,
3306 # not just through cpp. "Syntax error" is here to catch this case.
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313#ifdef __STDC__
3314# include <limits.h>
3315#else
3316# include <assert.h>
3317#endif
3318 Syntax error
3319_ACEOF
3320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null; then
3328 if test -s conftest.err; then
3329 ac_cpp_err=$ac_c_preproc_warn_flag
3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331 else
3332 ac_cpp_err=
3333 fi
3334else
3335 ac_cpp_err=yes
3336fi
3337if test -z "$ac_cpp_err"; then
3338 :
3339else
3340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 # Broken: fails on valid input.
3344continue
3345fi
3346rm -f conftest.err conftest.$ac_ext
3347
3348 # OK, works on sane cases. Now check whether non-existent headers
3349 # can be detected and how.
3350 cat >conftest.$ac_ext <<_ACEOF
3351/* confdefs.h. */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h. */
3356#include <ac_nonexistent.h>
3357_ACEOF
3358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369 else
3370 ac_cpp_err=
3371 fi
3372else
3373 ac_cpp_err=yes
3374fi
3375if test -z "$ac_cpp_err"; then
3376 # Broken: success on invalid input.
3377continue
3378else
3379 echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 # Passes both tests.
3383ac_preproc_ok=:
3384break
3385fi
3386rm -f conftest.err conftest.$ac_ext
3387
3388done
3389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390rm -f conftest.err conftest.$ac_ext
3391if $ac_preproc_ok; then
3392 break
3393fi
3394
3395 done
3396 ac_cv_prog_CPP=$CPP
3397
3398fi
3399 CPP=$ac_cv_prog_CPP
3400else
3401 ac_cv_prog_CPP=$CPP
3402fi
3403echo "$as_me:$LINENO: result: $CPP" >&5
3404echo "${ECHO_T}$CPP" >&6
3405ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420#ifdef __STDC__
3421# include <limits.h>
3422#else
3423# include <assert.h>
3424#endif
3425 Syntax error
3426_ACEOF
3427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438 else
3439 ac_cpp_err=
3440 fi
3441else
3442 ac_cpp_err=yes
3443fi
3444if test -z "$ac_cpp_err"; then
3445 :
3446else
3447 echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 # Broken: fails on valid input.
3451continue
3452fi
3453rm -f conftest.err conftest.$ac_ext
3454
3455 # OK, works on sane cases. Now check whether non-existent headers
3456 # can be detected and how.
3457 cat >conftest.$ac_ext <<_ACEOF
3458/* confdefs.h. */
3459_ACEOF
3460cat confdefs.h >>conftest.$ac_ext
3461cat >>conftest.$ac_ext <<_ACEOF
3462/* end confdefs.h. */
3463#include <ac_nonexistent.h>
3464_ACEOF
3465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 else
3477 ac_cpp_err=
3478 fi
3479else
3480 ac_cpp_err=yes
3481fi
3482if test -z "$ac_cpp_err"; then
3483 # Broken: success on invalid input.
3484continue
3485else
3486 echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 # Passes both tests.
3490ac_preproc_ok=:
3491break
3492fi
3493rm -f conftest.err conftest.$ac_ext
3494
3495done
3496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497rm -f conftest.err conftest.$ac_ext
3498if $ac_preproc_ok; then
3499 :
3500else
3501 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3502See \`config.log' for more details." >&5
3503echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3504See \`config.log' for more details." >&2;}
3505 { (exit 1); exit 1; }; }
3506fi
3507
3508ac_ext=c
3509ac_cpp='$CPP $CPPFLAGS'
3510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513
3514
3515echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3516echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3517if test "${ac_cv_header_stdc+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520 cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h. */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h. */
3526#include <stdlib.h>
3527#include <stdarg.h>
3528#include <string.h>
3529#include <float.h>
3530
3531int
3532main ()
3533{
3534
3535 ;
3536 return 0;
3537}
3538_ACEOF
3539rm -f conftest.$ac_objext
3540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_cv_header_stdc=yes
3562else
3563 echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566ac_cv_header_stdc=no
3567fi
3568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569
3570if test $ac_cv_header_stdc = yes; then
3571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3572 cat >conftest.$ac_ext <<_ACEOF
3573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h. */
3578#include <string.h>
3579
3580_ACEOF
3581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 $EGREP "memchr" >/dev/null 2>&1; then
3583 :
3584else
3585 ac_cv_header_stdc=no
3586fi
3587rm -f conftest*
3588
3589fi
3590
3591if test $ac_cv_header_stdc = yes; then
3592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3593 cat >conftest.$ac_ext <<_ACEOF
3594/* confdefs.h. */
3595_ACEOF
3596cat confdefs.h >>conftest.$ac_ext
3597cat >>conftest.$ac_ext <<_ACEOF
3598/* end confdefs.h. */
3599#include <stdlib.h>
3600
3601_ACEOF
3602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "free" >/dev/null 2>&1; then
3604 :
3605else
3606 ac_cv_header_stdc=no
3607fi
3608rm -f conftest*
3609
3610fi
3611
3612if test $ac_cv_header_stdc = yes; then
3613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3614 if test "$cross_compiling" = yes; then
3615 :
3616else
3617 cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h. */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h. */
3623#include <ctype.h>
3624#if ((' ' & 0x0FF) == 0x020)
3625# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3626# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3627#else
3628# define ISLOWER(c) \
3629 (('a' <= (c) && (c) <= 'i') \
3630 || ('j' <= (c) && (c) <= 'r') \
3631 || ('s' <= (c) && (c) <= 'z'))
3632# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3633#endif
3634
3635#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3636int
3637main ()
3638{
3639 int i;
3640 for (i = 0; i < 256; i++)
3641 if (XOR (islower (i), ISLOWER (i))
3642 || toupper (i) != TOUPPER (i))
3643 exit(2);
3644 exit (0);
3645}
3646_ACEOF
3647rm -f conftest$ac_exeext
3648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649 (eval $ac_link) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3658 :
3659else
3660 echo "$as_me: program exited with status $ac_status" >&5
3661echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664( exit $ac_status )
3665ac_cv_header_stdc=no
3666fi
3667rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668fi
3669fi
3670fi
3671echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3672echo "${ECHO_T}$ac_cv_header_stdc" >&6
3673if test $ac_cv_header_stdc = yes; then
3674
3675cat >>confdefs.h <<\_ACEOF
3676#define STDC_HEADERS 1
3677_ACEOF
3678
3679fi
3680
3681# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3692 inttypes.h stdint.h unistd.h
3693do
3694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3695echo "$as_me:$LINENO: checking for $ac_header" >&5
3696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3697if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700 cat >conftest.$ac_ext <<_ACEOF
3701/* confdefs.h. */
3702_ACEOF
3703cat confdefs.h >>conftest.$ac_ext
3704cat >>conftest.$ac_ext <<_ACEOF
3705/* end confdefs.h. */
3706$ac_includes_default
3707
3708#include <$ac_header>
3709_ACEOF
3710rm -f conftest.$ac_objext
3711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 eval "$as_ac_Header=yes"
3733else
3734 echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737eval "$as_ac_Header=no"
3738fi
3739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3740fi
3741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3743if test `eval echo '${'$as_ac_Header'}'` = yes; then
3744 cat >>confdefs.h <<_ACEOF
3745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3746_ACEOF
3747
3748fi
3749
3750done
3751
3752
3753
3754for ac_header in dlfcn.h
3755do
3756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3757if eval "test \"\${$as_ac_Header+set}\" = set"; then
3758 echo "$as_me:$LINENO: checking for $ac_header" >&5
3759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3760if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762fi
3763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3765else
3766 # Is the header compilable?
3767echo "$as_me:$LINENO: checking $ac_header usability" >&5
3768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3769cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h. */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h. */
3775$ac_includes_default
3776#include <$ac_header>
3777_ACEOF
3778rm -f conftest.$ac_objext
3779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3780 (eval $ac_compile) 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_c_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_header_compiler=yes
3801else
3802 echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805ac_header_compiler=no
3806fi
3807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3809echo "${ECHO_T}$ac_header_compiler" >&6
3810
3811# Is the header present?
3812echo "$as_me:$LINENO: checking $ac_header presence" >&5
3813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3814cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
3820#include <$ac_header>
3821_ACEOF
3822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null; then
3830 if test -s conftest.err; then
3831 ac_cpp_err=$ac_c_preproc_warn_flag
3832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3833 else
3834 ac_cpp_err=
3835 fi
3836else
3837 ac_cpp_err=yes
3838fi
3839if test -z "$ac_cpp_err"; then
3840 ac_header_preproc=yes
3841else
3842 echo "$as_me: failed program was:" >&5
3843sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 ac_header_preproc=no
3846fi
3847rm -f conftest.err conftest.$ac_ext
3848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3849echo "${ECHO_T}$ac_header_preproc" >&6
3850
3851# So? What about this header?
3852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3853 yes:no: )
3854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3858 ac_header_preproc=yes
3859 ;;
3860 no:yes:* )
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3873 (
3874 cat <<\_ASBOX
3875## ---------------------------------- ##
3876## Report this to rspencer@x10sys.com ##
3877## ---------------------------------- ##
3878_ASBOX
3879 ) |
3880 sed "s/^/$as_me: WARNING: /" >&2
3881 ;;
3882esac
3883echo "$as_me:$LINENO: checking for $ac_header" >&5
3884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3885if eval "test \"\${$as_ac_Header+set}\" = set"; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 eval "$as_ac_Header=\$ac_header_preproc"
3889fi
3890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3892
3893fi
3894if test `eval echo '${'$as_ac_Header'}'` = yes; then
3895 cat >>confdefs.h <<_ACEOF
3896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897_ACEOF
3898
3899fi
3900
3901done
3902
3903ac_ext=cc
3904ac_cpp='$CXXCPP $CPPFLAGS'
3905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3908if test -n "$ac_tool_prefix"; then
3909 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3910 do
3911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3913echo "$as_me:$LINENO: checking for $ac_word" >&5
3914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915if test "${ac_cv_prog_CXX+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918 if test -n "$CXX"; then
3919 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932done
3933done
3934
3935fi
3936fi
3937CXX=$ac_cv_prog_CXX
3938if test -n "$CXX"; then
3939 echo "$as_me:$LINENO: result: $CXX" >&5
3940echo "${ECHO_T}$CXX" >&6
3941else
3942 echo "$as_me:$LINENO: result: no" >&5
3943echo "${ECHO_T}no" >&6
3944fi
3945
3946 test -n "$CXX" && break
3947 done
3948fi
3949if test -z "$CXX"; then
3950 ac_ct_CXX=$CXX
3951 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3952do
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954set dummy $ac_prog; ac_word=$2
3955echo "$as_me:$LINENO: checking for $ac_word" >&5
3956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960 if test -n "$ac_ct_CXX"; then
3961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_ac_ct_CXX="$ac_prog"
3971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975done
3976
3977fi
3978fi
3979ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3980if test -n "$ac_ct_CXX"; then
3981 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3982echo "${ECHO_T}$ac_ct_CXX" >&6
3983else
3984 echo "$as_me:$LINENO: result: no" >&5
3985echo "${ECHO_T}no" >&6
3986fi
3987
3988 test -n "$ac_ct_CXX" && break
3989done
3990test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3991
3992 CXX=$ac_ct_CXX
3993fi
3994
3995
3996# Provide some information about the compiler.
3997echo "$as_me:$LINENO:" \
3998 "checking for C++ compiler version" >&5
3999ac_compiler=`set X $ac_compile; echo $2`
4000{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4001 (eval $ac_compiler --version </dev/null >&5) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }
4005{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4006 (eval $ac_compiler -v </dev/null >&5) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }
4010{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4011 (eval $ac_compiler -V </dev/null >&5) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }
4015
4016echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4017echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4018if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027
4028int
4029main ()
4030{
4031#ifndef __GNUC__
4032 choke me
4033#endif
4034
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext
4040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_cxx_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_compiler_gnu=yes
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066ac_compiler_gnu=no
4067fi
4068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4070
4071fi
4072echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4073echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4074GXX=`test $ac_compiler_gnu = yes && echo yes`
4075ac_test_CXXFLAGS=${CXXFLAGS+set}
4076ac_save_CXXFLAGS=$CXXFLAGS
4077CXXFLAGS="-g"
4078echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4079echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4080if test "${ac_cv_prog_cxx_g+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083 cat >conftest.$ac_ext <<_ACEOF
4084/* confdefs.h. */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h. */
4089
4090int
4091main ()
4092{
4093
4094 ;
4095 return 0;
4096}
4097_ACEOF
4098rm -f conftest.$ac_objext
4099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>conftest.er1
4101 ac_status=$?
4102 grep -v '^ *+' conftest.er1 >conftest.err
4103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_cxx_werror_flag"
4108 || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_prog_cxx_g=yes
4121else
4122 echo "$as_me: failed program was:" >&5
4123sed 's/^/| /' conftest.$ac_ext >&5
4124
4125ac_cv_prog_cxx_g=no
4126fi
4127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4128fi
4129echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4130echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4131if test "$ac_test_CXXFLAGS" = set; then
4132 CXXFLAGS=$ac_save_CXXFLAGS
4133elif test $ac_cv_prog_cxx_g = yes; then
4134 if test "$GXX" = yes; then
4135 CXXFLAGS="-g -O2"
4136 else
4137 CXXFLAGS="-g"
4138 fi
4139else
4140 if test "$GXX" = yes; then
4141 CXXFLAGS="-O2"
4142 else
4143 CXXFLAGS=
4144 fi
4145fi
4146for ac_declaration in \
4147 '' \
4148 'extern "C" void std::exit (int) throw (); using std::exit;' \
4149 'extern "C" void std::exit (int); using std::exit;' \
4150 'extern "C" void exit (int) throw ();' \
4151 'extern "C" void exit (int);' \
4152 'void exit (int);'
4153do
4154 cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
4160$ac_declaration
4161#include <stdlib.h>
4162int
4163main ()
4164{
4165exit (42);
4166 ;
4167 return 0;
4168}
4169_ACEOF
4170rm -f conftest.$ac_objext
4171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_cxx_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 :
4193else
4194 echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197continue
4198fi
4199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4200 cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206$ac_declaration
4207int
4208main ()
4209{
4210exit (42);
4211 ;
4212 return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext
4216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_cxx_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 break
4238else
4239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242fi
4243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4244done
4245rm -f conftest*
4246if test -n "$ac_declaration"; then
4247 echo '#ifdef __cplusplus' >>confdefs.h
4248 echo $ac_declaration >>confdefs.h
4249 echo '#endif' >>confdefs.h
4250fi
4251
4252ac_ext=cc
4253ac_cpp='$CXXCPP $CPPFLAGS'
4254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4257
4258ac_ext=cc
4259ac_cpp='$CXXCPP $CPPFLAGS'
4260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4263echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4264echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4265if test -z "$CXXCPP"; then
4266 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269 # Double quotes because CXXCPP needs to be expanded
4270 for CXXCPP in "$CXX -E" "/lib/cpp"
4271 do
4272 ac_preproc_ok=false
4273for ac_cxx_preproc_warn_flag in '' yes
4274do
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat >conftest.$ac_ext <<_ACEOF
4282/* confdefs.h. */
4283_ACEOF
4284cat confdefs.h >>conftest.$ac_ext
4285cat >>conftest.$ac_ext <<_ACEOF
4286/* end confdefs.h. */
4287#ifdef __STDC__
4288# include <limits.h>
4289#else
4290# include <assert.h>
4291#endif
4292 Syntax error
4293_ACEOF
4294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } >/dev/null; then
4302 if test -s conftest.err; then
4303 ac_cpp_err=$ac_cxx_preproc_warn_flag
4304 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4305 else
4306 ac_cpp_err=
4307 fi
4308else
4309 ac_cpp_err=yes
4310fi
4311if test -z "$ac_cpp_err"; then
4312 :
4313else
4314 echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 # Broken: fails on valid input.
4318continue
4319fi
4320rm -f conftest.err conftest.$ac_ext
4321
4322 # OK, works on sane cases. Now check whether non-existent headers
4323 # can be detected and how.
4324 cat >conftest.$ac_ext <<_ACEOF
4325/* confdefs.h. */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h. */
4330#include <ac_nonexistent.h>
4331_ACEOF
4332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4334 ac_status=$?
4335 grep -v '^ *+' conftest.er1 >conftest.err
4336 rm -f conftest.er1
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } >/dev/null; then
4340 if test -s conftest.err; then
4341 ac_cpp_err=$ac_cxx_preproc_warn_flag
4342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4343 else
4344 ac_cpp_err=
4345 fi
4346else
4347 ac_cpp_err=yes
4348fi
4349if test -z "$ac_cpp_err"; then
4350 # Broken: success on invalid input.
4351continue
4352else
4353 echo "$as_me: failed program was:" >&5
4354sed 's/^/| /' conftest.$ac_ext >&5
4355
4356 # Passes both tests.
4357ac_preproc_ok=:
4358break
4359fi
4360rm -f conftest.err conftest.$ac_ext
4361
4362done
4363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364rm -f conftest.err conftest.$ac_ext
4365if $ac_preproc_ok; then
4366 break
4367fi
4368
4369 done
4370 ac_cv_prog_CXXCPP=$CXXCPP
4371
4372fi
4373 CXXCPP=$ac_cv_prog_CXXCPP
4374else
4375 ac_cv_prog_CXXCPP=$CXXCPP
4376fi
4377echo "$as_me:$LINENO: result: $CXXCPP" >&5
4378echo "${ECHO_T}$CXXCPP" >&6
4379ac_preproc_ok=false
4380for ac_cxx_preproc_warn_flag in '' yes
4381do
4382 # Use a header file that comes with gcc, so configuring glibc
4383 # with a fresh cross-compiler works.
4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385 # <limits.h> exists even on freestanding compilers.
4386 # On the NeXT, cc -E runs the code through the compiler's parser,
4387 # not just through cpp. "Syntax error" is here to catch this case.
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394#ifdef __STDC__
4395# include <limits.h>
4396#else
4397# include <assert.h>
4398#endif
4399 Syntax error
4400_ACEOF
4401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4403 ac_status=$?
4404 grep -v '^ *+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } >/dev/null; then
4409 if test -s conftest.err; then
4410 ac_cpp_err=$ac_cxx_preproc_warn_flag
4411 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4412 else
4413 ac_cpp_err=
4414 fi
4415else
4416 ac_cpp_err=yes
4417fi
4418if test -z "$ac_cpp_err"; then
4419 :
4420else
4421 echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 # Broken: fails on valid input.
4425continue
4426fi
4427rm -f conftest.err conftest.$ac_ext
4428
4429 # OK, works on sane cases. Now check whether non-existent headers
4430 # can be detected and how.
4431 cat >conftest.$ac_ext <<_ACEOF
4432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
4437#include <ac_nonexistent.h>
4438_ACEOF
4439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } >/dev/null; then
4447 if test -s conftest.err; then
4448 ac_cpp_err=$ac_cxx_preproc_warn_flag
4449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4450 else
4451 ac_cpp_err=
4452 fi
4453else
4454 ac_cpp_err=yes
4455fi
4456if test -z "$ac_cpp_err"; then
4457 # Broken: success on invalid input.
4458continue
4459else
4460 echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463 # Passes both tests.
4464ac_preproc_ok=:
4465break
4466fi
4467rm -f conftest.err conftest.$ac_ext
4468
4469done
4470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471rm -f conftest.err conftest.$ac_ext
4472if $ac_preproc_ok; then
4473 :
4474else
4475 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4476See \`config.log' for more details." >&5
4477echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4478See \`config.log' for more details." >&2;}
4479 { (exit 1); exit 1; }; }
4480fi
4481
4482ac_ext=cc
4483ac_cpp='$CXXCPP $CPPFLAGS'
4484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4487
4488
4489ac_ext=f
4490ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4491ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4493if test -n "$ac_tool_prefix"; then
4494 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4495 do
4496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4498echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500if test "${ac_cv_prog_F77+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503 if test -n "$F77"; then
4504 ac_cv_prog_F77="$F77" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518done
4519
4520fi
4521fi
4522F77=$ac_cv_prog_F77
4523if test -n "$F77"; then
4524 echo "$as_me:$LINENO: result: $F77" >&5
4525echo "${ECHO_T}$F77" >&6
4526else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529fi
4530
4531 test -n "$F77" && break
4532 done
4533fi
4534if test -z "$F77"; then
4535 ac_ct_F77=$F77
4536 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4537do
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539set dummy $ac_prog; ac_word=$2
4540echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545 if test -n "$ac_ct_F77"; then
4546 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_ac_ct_F77="$ac_prog"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559done
4560done
4561
4562fi
4563fi
4564ac_ct_F77=$ac_cv_prog_ac_ct_F77
4565if test -n "$ac_ct_F77"; then
4566 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4567echo "${ECHO_T}$ac_ct_F77" >&6
4568else
4569 echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
4572
4573 test -n "$ac_ct_F77" && break
4574done
4575
4576 F77=$ac_ct_F77
4577fi
4578
4579
4580# Provide some information about the compiler.
Reid Spencerbb874262004-12-27 08:51:55 +00004581echo "$as_me:4581:" \
Reid Spencer011f5ca2004-09-15 06:19:53 +00004582 "checking for Fortran 77 compiler version" >&5
4583ac_compiler=`set X $ac_compile; echo $2`
4584{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4585 (eval $ac_compiler --version </dev/null >&5) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }
4589{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4590 (eval $ac_compiler -v </dev/null >&5) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }
4594{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4595 (eval $ac_compiler -V </dev/null >&5) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }
4599rm -f a.out
4600
4601# If we don't use `.F' as extension, the preprocessor is not run on the
4602# input file. (Note that this only needs to work for GNU compilers.)
4603ac_save_ext=$ac_ext
4604ac_ext=F
4605echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4606echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4607if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610 cat >conftest.$ac_ext <<_ACEOF
4611 program main
4612#ifndef __GNUC__
4613 choke me
4614#endif
4615
4616 end
4617_ACEOF
4618rm -f conftest.$ac_objext
4619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>conftest.er1
4621 ac_status=$?
4622 grep -v '^ *+' conftest.er1 >conftest.err
4623 rm -f conftest.er1
4624 cat conftest.err >&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -z "$ac_f77_werror_flag"
4628 || test ! -s conftest.err'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; } &&
4634 { ac_try='test -s conftest.$ac_objext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_compiler_gnu=yes
4641else
4642 echo "$as_me: failed program was:" >&5
4643sed 's/^/| /' conftest.$ac_ext >&5
4644
4645ac_compiler_gnu=no
4646fi
4647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4648ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4649
4650fi
4651echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4652echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4653ac_ext=$ac_save_ext
4654ac_test_FFLAGS=${FFLAGS+set}
4655ac_save_FFLAGS=$FFLAGS
4656FFLAGS=
4657echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4658echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4659if test "${ac_cv_prog_f77_g+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661else
4662 FFLAGS=-g
4663cat >conftest.$ac_ext <<_ACEOF
4664 program main
4665
4666 end
4667_ACEOF
4668rm -f conftest.$ac_objext
4669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>conftest.er1
4671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_f77_werror_flag"
4678 || test ! -s conftest.err'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_prog_f77_g=yes
4691else
4692 echo "$as_me: failed program was:" >&5
4693sed 's/^/| /' conftest.$ac_ext >&5
4694
4695ac_cv_prog_f77_g=no
4696fi
4697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4698
4699fi
4700echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4701echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4702if test "$ac_test_FFLAGS" = set; then
4703 FFLAGS=$ac_save_FFLAGS
4704elif test $ac_cv_prog_f77_g = yes; then
4705 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4706 FFLAGS="-g -O2"
4707 else
4708 FFLAGS="-g"
4709 fi
4710else
4711 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4712 FFLAGS="-O2"
4713 else
4714 FFLAGS=
4715 fi
4716fi
4717
4718G77=`test $ac_compiler_gnu = yes && echo yes`
4719ac_ext=c
4720ac_cpp='$CPP $CPPFLAGS'
4721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724
4725
4726
4727# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4728
4729# find the maximum length of command line arguments
4730echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4731echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4732if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 i=0
4736 testring="ABCD"
4737
4738 case $build_os in
4739 msdosdjgpp*)
4740 # On DJGPP, this test can blow up pretty badly due to problems in libc
4741 # (any single argument exceeding 2000 bytes causes a buffer overrun
4742 # during glob expansion). Even if it were fixed, the result of this
4743 # check would be larger than it should be.
4744 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4745 ;;
4746
4747 gnu*)
4748 # Under GNU Hurd, this test is not required because there is
4749 # no limit to the length of command line arguments.
4750 # Libtool will interpret -1 as no limit whatsoever
4751 lt_cv_sys_max_cmd_len=-1;
4752 ;;
4753
4754 cygwin* | mingw*)
4755 # On Win9x/ME, this test blows up -- it succeeds, but takes
4756 # about 5 minutes as the teststring grows exponentially.
4757 # Worse, since 9x/ME are not pre-emptively multitasking,
4758 # you end up with a "frozen" computer, even though with patience
4759 # the test eventually succeeds (with a max line length of 256k).
4760 # Instead, let's just punt: use the minimum linelength reported by
4761 # all of the supported platforms: 8192 (on NT/2K/XP).
4762 lt_cv_sys_max_cmd_len=8192;
4763 ;;
4764
4765 *)
4766 # If test is not a shell built-in, we'll probably end up computing a
4767 # maximum length that is only half of the actual maximum length, but
4768 # we can't tell.
4769 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4770 = "XX$testring") >/dev/null 2>&1 &&
4771 new_result=`expr "X$testring" : ".*" 2>&1` &&
4772 lt_cv_sys_max_cmd_len=$new_result &&
4773 test $i != 17 # 1/2 MB should be enough
4774 do
4775 i=`expr $i + 1`
4776 testring=$testring$testring
4777 done
4778 testring=
4779 # Add a significant safety factor because C++ compilers can tack on massive
4780 # amounts of additional arguments before passing them to the linker.
4781 # It appears as though 1/2 is a usable value.
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4783 ;;
4784 esac
4785
4786fi
4787
4788if test -n $lt_cv_sys_max_cmd_len ; then
4789 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4790echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4791else
4792 echo "$as_me:$LINENO: result: none" >&5
4793echo "${ECHO_T}none" >&6
4794fi
4795
4796
4797
4798
4799# Check for command to grab the raw symbol name followed by C symbol from nm.
4800echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4801echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4802if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805
4806# These are sane defaults that work on at least a few old systems.
4807# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4808
4809# Character class describing NM global symbol codes.
4810symcode='[BCDEGRST]'
4811
4812# Regexp to match symbols that can be accessed directly from C.
4813sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4814
4815# Transform the above into a raw symbol and a C symbol.
4816symxfrm='\1 \2\3 \3'
4817
4818# Transform an extracted symbol line into a proper C declaration
4819lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4820
4821# Transform an extracted symbol line into symbol name and symbol address
4822lt_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'"
4823
4824# Define system-specific variables.
4825case $host_os in
4826aix*)
4827 symcode='[BCDT]'
4828 ;;
4829cygwin* | mingw* | pw32*)
4830 symcode='[ABCDGISTW]'
4831 ;;
4832hpux*) # Its linker distinguishes data from code symbols
4833 if test "$host_cpu" = ia64; then
4834 symcode='[ABCDEGRST]'
4835 fi
4836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4837 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'"
4838 ;;
4839irix* | nonstopux*)
4840 symcode='[BCDEGRST]'
4841 ;;
4842osf*)
4843 symcode='[BCDEGQRST]'
4844 ;;
4845solaris* | sysv5*)
4846 symcode='[BDT]'
4847 ;;
4848sysv4)
4849 symcode='[DFNSTU]'
4850 ;;
4851esac
4852
4853# Handle CRLF in mingw tool chain
4854opt_cr=
4855case $build_os in
4856mingw*)
4857 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4858 ;;
4859esac
4860
4861# If we're using GNU nm, then use its standard symbol codes.
4862case `$NM -V 2>&1` in
4863*GNU* | *'with BFD'*)
4864 symcode='[ABCDGISTW]' ;;
4865esac
4866
4867# Try without a prefix undercore, then with it.
4868for ac_symprfx in "" "_"; do
4869
4870 # Write the raw and C identifiers.
4871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4872
4873 # Check to see that the pipe works correctly.
4874 pipe_works=no
4875
4876 rm -f conftest*
4877 cat > conftest.$ac_ext <<EOF
4878#ifdef __cplusplus
4879extern "C" {
4880#endif
4881char nm_test_var;
4882void nm_test_func(){}
4883#ifdef __cplusplus
4884}
4885#endif
4886int main(){nm_test_var='a';nm_test_func();return(0);}
4887EOF
4888
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; then
4894 # Now try to grab the symbols.
4895 nlist=conftest.nm
4896 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4897 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && test -s "$nlist"; then
4901 # Try sorting and uniquifying the output.
4902 if sort "$nlist" | uniq > "$nlist"T; then
4903 mv -f "$nlist"T "$nlist"
4904 else
4905 rm -f "$nlist"T
4906 fi
4907
4908 # Make sure that we snagged all the symbols we need.
4909 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4910 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4911 cat <<EOF > conftest.$ac_ext
4912#ifdef __cplusplus
4913extern "C" {
4914#endif
4915
4916EOF
4917 # Now generate the symbol file.
4918 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4919
4920 cat <<EOF >> conftest.$ac_ext
4921#if defined (__STDC__) && __STDC__
4922# define lt_ptr_t void *
4923#else
4924# define lt_ptr_t char *
4925# define const
4926#endif
4927
4928/* The mapping between symbol names and symbols. */
4929const struct {
4930 const char *name;
4931 lt_ptr_t address;
4932}
4933lt_preloaded_symbols[] =
4934{
4935EOF
4936 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4937 cat <<\EOF >> conftest.$ac_ext
4938 {0, (lt_ptr_t) 0}
4939};
4940
4941#ifdef __cplusplus
4942}
4943#endif
4944EOF
4945 # Now try linking the two files.
4946 mv conftest.$ac_objext conftstm.$ac_objext
4947 lt_save_LIBS="$LIBS"
4948 lt_save_CFLAGS="$CFLAGS"
4949 LIBS="conftstm.$ac_objext"
4950 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4952 (eval $ac_link) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4956 pipe_works=yes
4957 fi
4958 LIBS="$lt_save_LIBS"
4959 CFLAGS="$lt_save_CFLAGS"
4960 else
4961 echo "cannot find nm_test_func in $nlist" >&5
4962 fi
4963 else
4964 echo "cannot find nm_test_var in $nlist" >&5
4965 fi
4966 else
4967 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4968 fi
4969 else
4970 echo "$progname: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4972 fi
4973 rm -f conftest* conftst*
4974
4975 # Do not use the global_symbol_pipe unless it works.
4976 if test "$pipe_works" = yes; then
4977 break
4978 else
4979 lt_cv_sys_global_symbol_pipe=
4980 fi
4981done
4982
4983fi
4984
4985if test -z "$lt_cv_sys_global_symbol_pipe"; then
4986 lt_cv_sys_global_symbol_to_cdecl=
4987fi
4988if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4989 echo "$as_me:$LINENO: result: failed" >&5
4990echo "${ECHO_T}failed" >&6
4991else
4992 echo "$as_me:$LINENO: result: ok" >&5
4993echo "${ECHO_T}ok" >&6
4994fi
4995
4996echo "$as_me:$LINENO: checking for objdir" >&5
4997echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4998if test "${lt_cv_objdir+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 rm -f .libs 2>/dev/null
5002mkdir .libs 2>/dev/null
5003if test -d .libs; then
5004 lt_cv_objdir=.libs
5005else
5006 # MS-DOS does not allow filenames that begin with a dot.
5007 lt_cv_objdir=_libs
5008fi
5009rmdir .libs 2>/dev/null
5010fi
5011echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5012echo "${ECHO_T}$lt_cv_objdir" >&6
5013objdir=$lt_cv_objdir
5014
5015
5016
5017
5018
5019case $host_os in
5020aix3*)
5021 # AIX sometimes has problems with the GCC collect2 program. For some
5022 # reason, if we set the COLLECT_NAMES environment variable, the problems
5023 # vanish in a puff of smoke.
5024 if test "X${COLLECT_NAMES+set}" != Xset; then
5025 COLLECT_NAMES=
5026 export COLLECT_NAMES
5027 fi
5028 ;;
5029esac
5030
5031# Sed substitution that helps us do robust quoting. It backslashifies
5032# metacharacters that are still active within double-quoted strings.
5033Xsed='sed -e s/^X//'
5034sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5035
5036# Same as above, but do not quote variable references.
5037double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5038
5039# Sed substitution to delay expansion of an escaped shell variable in a
5040# double_quote_subst'ed string.
5041delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5042
5043# Sed substitution to avoid accidental globbing in evaled expressions
5044no_glob_subst='s/\*/\\\*/g'
5045
5046# Constants:
5047rm="rm -f"
5048
5049# Global variables:
5050default_ofile=mklib
5051can_build_shared=yes
5052
5053# All known linkers require a `.a' archive for static linking (except M$VC,
5054# which needs '.lib').
5055libext=a
5056ltmain="$ac_aux_dir/ltmain.sh"
5057ofile="$default_ofile"
5058with_gnu_ld="$lt_cv_prog_gnu_ld"
5059
5060if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5062set dummy ${ac_tool_prefix}ar; ac_word=$2
5063echo "$as_me:$LINENO: checking for $ac_word" >&5
5064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065if test "${ac_cv_prog_AR+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068 if test -n "$AR"; then
5069 ac_cv_prog_AR="$AR" # Let the user override the test.
5070else
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_AR="${ac_tool_prefix}ar"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082done
5083done
5084
5085fi
5086fi
5087AR=$ac_cv_prog_AR
5088if test -n "$AR"; then
5089 echo "$as_me:$LINENO: result: $AR" >&5
5090echo "${ECHO_T}$AR" >&6
5091else
5092 echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6
5094fi
5095
5096fi
5097if test -z "$ac_cv_prog_AR"; then
5098 ac_ct_AR=$AR
5099 # Extract the first word of "ar", so it can be a program name with args.
5100set dummy ar; ac_word=$2
5101echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106 if test -n "$ac_ct_AR"; then
5107 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_ac_ct_AR="ar"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120done
5121done
5122
5123 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5124fi
5125fi
5126ac_ct_AR=$ac_cv_prog_ac_ct_AR
5127if test -n "$ac_ct_AR"; then
5128 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5129echo "${ECHO_T}$ac_ct_AR" >&6
5130else
5131 echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133fi
5134
5135 AR=$ac_ct_AR
5136else
5137 AR="$ac_cv_prog_AR"
5138fi
5139
5140if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5142set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5143echo "$as_me:$LINENO: checking for $ac_word" >&5
5144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145if test "${ac_cv_prog_RANLIB+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148 if test -n "$RANLIB"; then
5149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163done
5164
5165fi
5166fi
5167RANLIB=$ac_cv_prog_RANLIB
5168if test -n "$RANLIB"; then
5169 echo "$as_me:$LINENO: result: $RANLIB" >&5
5170echo "${ECHO_T}$RANLIB" >&6
5171else
5172 echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174fi
5175
5176fi
5177if test -z "$ac_cv_prog_RANLIB"; then
5178 ac_ct_RANLIB=$RANLIB
5179 # Extract the first word of "ranlib", so it can be a program name with args.
5180set dummy ranlib; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 if test -n "$ac_ct_RANLIB"; then
5187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ac_ct_RANLIB="ranlib"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
5201done
5202
5203 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5204fi
5205fi
5206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207if test -n "$ac_ct_RANLIB"; then
5208 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5209echo "${ECHO_T}$ac_ct_RANLIB" >&6
5210else
5211 echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
5213fi
5214
5215 RANLIB=$ac_ct_RANLIB
5216else
5217 RANLIB="$ac_cv_prog_RANLIB"
5218fi
5219
5220if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5222set dummy ${ac_tool_prefix}strip; ac_word=$2
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_prog_STRIP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228 if test -n "$STRIP"; then
5229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244
5245fi
5246fi
5247STRIP=$ac_cv_prog_STRIP
5248if test -n "$STRIP"; then
5249 echo "$as_me:$LINENO: result: $STRIP" >&5
5250echo "${ECHO_T}$STRIP" >&6
5251else
5252 echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256fi
5257if test -z "$ac_cv_prog_STRIP"; then
5258 ac_ct_STRIP=$STRIP
5259 # Extract the first word of "strip", so it can be a program name with args.
5260set dummy strip; ac_word=$2
5261echo "$as_me:$LINENO: checking for $ac_word" >&5
5262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266 if test -n "$ac_ct_STRIP"; then
5267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5268else
5269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_ac_ct_STRIP="strip"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280done
5281done
5282
5283 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5284fi
5285fi
5286ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5287if test -n "$ac_ct_STRIP"; then
5288 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5289echo "${ECHO_T}$ac_ct_STRIP" >&6
5290else
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293fi
5294
5295 STRIP=$ac_ct_STRIP
5296else
5297 STRIP="$ac_cv_prog_STRIP"
5298fi
5299
5300
5301old_CC="$CC"
5302old_CFLAGS="$CFLAGS"
5303
5304# Set sane defaults for various variables
5305test -z "$AR" && AR=ar
5306test -z "$AR_FLAGS" && AR_FLAGS=cru
5307test -z "$AS" && AS=as
5308test -z "$CC" && CC=cc
5309test -z "$LTCC" && LTCC=$CC
5310test -z "$DLLTOOL" && DLLTOOL=dlltool
5311test -z "$LD" && LD=ld
5312test -z "$LN_S" && LN_S="ln -s"
5313test -z "$MAGIC_CMD" && MAGIC_CMD=file
5314test -z "$NM" && NM=nm
5315test -z "$SED" && SED=sed
5316test -z "$OBJDUMP" && OBJDUMP=objdump
5317test -z "$RANLIB" && RANLIB=:
5318test -z "$STRIP" && STRIP=:
5319test -z "$ac_objext" && ac_objext=o
5320
5321# Determine commands to create old-style static archives.
5322old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5323old_postinstall_cmds='chmod 644 $oldlib'
5324old_postuninstall_cmds=
5325
5326if test -n "$RANLIB"; then
5327 case $host_os in
5328 openbsd*)
5329 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5330 ;;
5331 *)
5332 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5333 ;;
5334 esac
5335 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5336fi
5337
5338# Only perform the check for file, if the check method requires it
5339case $deplibs_check_method in
5340file_magic*)
5341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5342 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5343echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5344if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347 case $MAGIC_CMD in
5348[\\/*] | ?:[\\/]*)
5349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5350 ;;
5351*)
5352 lt_save_MAGIC_CMD="$MAGIC_CMD"
5353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5355 for ac_dir in $ac_dummy; do
5356 IFS="$lt_save_ifs"
5357 test -z "$ac_dir" && ac_dir=.
5358 if test -f $ac_dir/${ac_tool_prefix}file; then
5359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5360 if test -n "$file_magic_test_file"; then
5361 case $deplibs_check_method in
5362 "file_magic "*)
5363 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5366 $EGREP "$file_magic_regex" > /dev/null; then
5367 :
5368 else
5369 cat <<EOF 1>&2
5370
5371*** Warning: the command libtool uses to detect shared libraries,
5372*** $file_magic_cmd, produces output that libtool cannot recognize.
5373*** The result is that libtool may fail to recognize shared libraries
5374*** as such. This will affect the creation of libtool libraries that
5375*** depend on shared libraries, but programs linked with such libtool
5376*** libraries will work regardless of this problem. Nevertheless, you
5377*** may want to report the problem to your system manager and/or to
5378*** bug-libtool@gnu.org
5379
5380EOF
5381 fi ;;
5382 esac
5383 fi
5384 break
5385 fi
5386 done
5387 IFS="$lt_save_ifs"
5388 MAGIC_CMD="$lt_save_MAGIC_CMD"
5389 ;;
5390esac
5391fi
5392
5393MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5394if test -n "$MAGIC_CMD"; then
5395 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5396echo "${ECHO_T}$MAGIC_CMD" >&6
5397else
5398 echo "$as_me:$LINENO: result: no" >&5
5399echo "${ECHO_T}no" >&6
5400fi
5401
5402if test -z "$lt_cv_path_MAGIC_CMD"; then
5403 if test -n "$ac_tool_prefix"; then
5404 echo "$as_me:$LINENO: checking for file" >&5
5405echo $ECHO_N "checking for file... $ECHO_C" >&6
5406if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409 case $MAGIC_CMD in
5410[\\/*] | ?:[\\/]*)
5411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5412 ;;
5413*)
5414 lt_save_MAGIC_CMD="$MAGIC_CMD"
5415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5417 for ac_dir in $ac_dummy; do
5418 IFS="$lt_save_ifs"
5419 test -z "$ac_dir" && ac_dir=.
5420 if test -f $ac_dir/file; then
5421 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5422 if test -n "$file_magic_test_file"; then
5423 case $deplibs_check_method in
5424 "file_magic "*)
5425 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5428 $EGREP "$file_magic_regex" > /dev/null; then
5429 :
5430 else
5431 cat <<EOF 1>&2
5432
5433*** Warning: the command libtool uses to detect shared libraries,
5434*** $file_magic_cmd, produces output that libtool cannot recognize.
5435*** The result is that libtool may fail to recognize shared libraries
5436*** as such. This will affect the creation of libtool libraries that
5437*** depend on shared libraries, but programs linked with such libtool
5438*** libraries will work regardless of this problem. Nevertheless, you
5439*** may want to report the problem to your system manager and/or to
5440*** bug-libtool@gnu.org
5441
5442EOF
5443 fi ;;
5444 esac
5445 fi
5446 break
5447 fi
5448 done
5449 IFS="$lt_save_ifs"
5450 MAGIC_CMD="$lt_save_MAGIC_CMD"
5451 ;;
5452esac
5453fi
5454
5455MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5456if test -n "$MAGIC_CMD"; then
5457 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5458echo "${ECHO_T}$MAGIC_CMD" >&6
5459else
5460 echo "$as_me:$LINENO: result: no" >&5
5461echo "${ECHO_T}no" >&6
5462fi
5463
5464 else
5465 MAGIC_CMD=:
5466 fi
5467fi
5468
5469 fi
5470 ;;
5471esac
5472
5473enable_dlopen=no
5474enable_win32_dll=no
5475
5476# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5477if test "${enable_libtool_lock+set}" = set; then
5478 enableval="$enable_libtool_lock"
5479
5480fi;
5481test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5482
5483
5484# Check whether --with-pic or --without-pic was given.
5485if test "${with_pic+set}" = set; then
5486 withval="$with_pic"
5487 pic_mode="$withval"
5488else
5489 pic_mode=default
5490fi;
5491test -z "$pic_mode" && pic_mode=default
5492
5493# Use C for the default configuration in the libtool script
5494tagname=
5495lt_save_CC="$CC"
5496ac_ext=c
5497ac_cpp='$CPP $CPPFLAGS'
5498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500ac_compiler_gnu=$ac_cv_c_compiler_gnu
5501
5502
5503# Source file extension for C test sources.
5504ac_ext=c
5505
5506# Object file extension for compiled C test sources.
5507objext=o
5508objext=$objext
5509
5510# Code to be used in simple compile tests
5511lt_simple_compile_test_code="int some_variable = 0;\n"
5512
5513# Code to be used in simple link tests
5514lt_simple_link_test_code='int main(){return(0);}\n'
5515
5516
5517# If no C compiler was specified, use CC.
5518LTCC=${LTCC-"$CC"}
5519
5520# Allow CC to be a program name with arguments.
5521compiler=$CC
5522
5523
5524#
5525# Check for any special shared library compilation flags.
5526#
5527lt_prog_cc_shlib=
5528if test "$GCC" = no; then
5529 case $host_os in
5530 sco3.2v5*)
5531 lt_prog_cc_shlib='-belf'
5532 ;;
5533 esac
5534fi
5535if test -n "$lt_prog_cc_shlib"; then
5536 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5537echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5538 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5539 else
5540 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5541echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5542 lt_cv_prog_cc_can_build_shared=no
5543 fi
5544fi
5545
5546
5547#
5548# Check to make sure the static flag actually works.
5549#
5550echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5551echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5552if test "${lt_prog_compiler_static_works+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555 lt_prog_compiler_static_works=no
5556 save_LDFLAGS="$LDFLAGS"
5557 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5558 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5560 # The compiler can only warn and ignore the option if not recognized
5561 # So say no if there are warnings
5562 if test -s conftest.err; then
5563 # Append any errors to the config.log.
5564 cat conftest.err 1>&5
5565 else
5566 lt_prog_compiler_static_works=yes
5567 fi
5568 fi
5569 $rm conftest*
5570 LDFLAGS="$save_LDFLAGS"
5571
5572fi
5573echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5574echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5575
5576if test x"$lt_prog_compiler_static_works" = xyes; then
5577 :
5578else
5579 lt_prog_compiler_static=
5580fi
5581
5582
5583
5584## CAVEAT EMPTOR:
5585## There is no encapsulation within the following macros, do not change
5586## the running order or otherwise move them around unless you know exactly
5587## what you are doing...
5588
5589lt_prog_compiler_no_builtin_flag=
5590
5591if test "$GCC" = yes; then
5592 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5593
5594 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5595echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5596if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599 lt_cv_prog_compiler_rtti_exceptions=no
5600 ac_outfile=conftest.$ac_objext
5601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5602 lt_compiler_flag="-fno-rtti -fno-exceptions"
5603 # Insert the option either (1) after the last *FLAGS variable, or
5604 # (2) before a word containing "conftest.", or (3) at the end.
5605 # Note that $ac_compile itself does not contain backslashes and begins
5606 # with a dollar sign (not a hyphen), so the echo should work correctly.
5607 # The option is referenced via a variable to avoid confusing sed.
5608 lt_compile=`echo "$ac_compile" | $SED \
5609 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5611 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +00005612 (eval echo "\"\$as_me:5612: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +00005613 (eval "$lt_compile" 2>conftest.err)
5614 ac_status=$?
5615 cat conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +00005616 echo "$as_me:5616: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +00005617 if (exit $ac_status) && test -s "$ac_outfile"; then
5618 # The compiler can only warn and ignore the option if not recognized
5619 # So say no if there are warnings
5620 if test ! -s conftest.err; then
5621 lt_cv_prog_compiler_rtti_exceptions=yes
5622 fi
5623 fi
5624 $rm conftest*
5625
5626fi
5627echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5628echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5629
5630if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5631 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5632else
5633 :
5634fi
5635
5636fi
5637
5638lt_prog_compiler_wl=
5639lt_prog_compiler_pic=
5640lt_prog_compiler_static=
5641
5642echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5643echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5644
5645 if test "$GCC" = yes; then
5646 lt_prog_compiler_wl='-Wl,'
5647 lt_prog_compiler_static='-static'
5648
5649 case $host_os in
5650 aix*)
5651 # All AIX code is PIC.
5652 if test "$host_cpu" = ia64; then
5653 # AIX 5 now supports IA64 processor
5654 lt_prog_compiler_static='-Bstatic'
5655 fi
5656 ;;
5657
5658 amigaos*)
5659 # FIXME: we need at least 68020 code to build shared libraries, but
5660 # adding the `-m68020' flag to GCC prevents building anything better,
5661 # like `-m68040'.
5662 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5663 ;;
5664
5665 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5666 # PIC is the default for these OSes.
5667 ;;
5668
5669 mingw* | pw32* | os2*)
5670 # This hack is so that the source file can tell whether it is being
5671 # built for inclusion in a dll (and should export symbols for example).
5672 lt_prog_compiler_pic='-DDLL_EXPORT'
5673 ;;
5674
5675 darwin* | rhapsody*)
5676 # PIC is the default on this platform
5677 # Common symbols not allowed in MH_DYLIB files
5678 lt_prog_compiler_pic='-fno-common'
5679 ;;
5680
5681 msdosdjgpp*)
5682 # Just because we use GCC doesn't mean we suddenly get shared libraries
5683 # on systems that don't support them.
5684 lt_prog_compiler_can_build_shared=no
5685 enable_shared=no
5686 ;;
5687
5688 sysv4*MP*)
5689 if test -d /usr/nec; then
5690 lt_prog_compiler_pic=-Kconform_pic
5691 fi
5692 ;;
5693
5694 hpux*)
5695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5696 # not for PA HP-UX.
5697 case "$host_cpu" in
5698 hppa*64*|ia64*)
5699 # +Z the default
5700 ;;
5701 *)
5702 lt_prog_compiler_pic='-fPIC'
5703 ;;
5704 esac
5705 ;;
5706
5707 *)
5708 lt_prog_compiler_pic='-fPIC'
5709 ;;
5710 esac
5711 else
5712 # PORTME Check for flag to pass linker flags through the system compiler.
5713 case $host_os in
5714 aix*)
5715 lt_prog_compiler_wl='-Wl,'
5716 if test "$host_cpu" = ia64; then
5717 # AIX 5 now supports IA64 processor
5718 lt_prog_compiler_static='-Bstatic'
5719 else
5720 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5721 fi
5722 ;;
5723
5724 mingw* | pw32* | os2*)
5725 # This hack is so that the source file can tell whether it is being
5726 # built for inclusion in a dll (and should export symbols for example).
5727 lt_prog_compiler_pic='-DDLL_EXPORT'
5728 ;;
5729
5730 hpux9* | hpux10* | hpux11*)
5731 lt_prog_compiler_wl='-Wl,'
5732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5733 # not for PA HP-UX.
5734 case "$host_cpu" in
5735 hppa*64*|ia64*)
5736 # +Z the default
5737 ;;
5738 *)
5739 lt_prog_compiler_pic='+Z'
5740 ;;
5741 esac
5742 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5743 lt_prog_compiler_static='${wl}-a ${wl}archive'
5744 ;;
5745
5746 irix5* | irix6* | nonstopux*)
5747 lt_prog_compiler_wl='-Wl,'
5748 # PIC (with -KPIC) is the default.
5749 lt_prog_compiler_static='-non_shared'
5750 ;;
5751
5752 newsos6)
5753 lt_prog_compiler_pic='-KPIC'
5754 lt_prog_compiler_static='-Bstatic'
5755 ;;
5756
5757 linux*)
5758 case $CC in
5759 icc|ecc)
5760 lt_prog_compiler_wl='-Wl,'
5761 lt_prog_compiler_pic='-KPIC'
5762 lt_prog_compiler_static='-static'
5763 ;;
5764 ccc)
5765 lt_prog_compiler_wl='-Wl,'
5766 # All Alpha code is PIC.
5767 lt_prog_compiler_static='-non_shared'
5768 ;;
5769 esac
5770 ;;
5771
5772 osf3* | osf4* | osf5*)
5773 lt_prog_compiler_wl='-Wl,'
5774 # All OSF/1 code is PIC.
5775 lt_prog_compiler_static='-non_shared'
5776 ;;
5777
5778 sco3.2v5*)
5779 lt_prog_compiler_pic='-Kpic'
5780 lt_prog_compiler_static='-dn'
5781 ;;
5782
5783 solaris*)
5784 lt_prog_compiler_wl='-Wl,'
5785 lt_prog_compiler_pic='-KPIC'
5786 lt_prog_compiler_static='-Bstatic'
5787 ;;
5788
5789 sunos4*)
5790 lt_prog_compiler_wl='-Qoption ld '
5791 lt_prog_compiler_pic='-PIC'
5792 lt_prog_compiler_static='-Bstatic'
5793 ;;
5794
5795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5796 lt_prog_compiler_wl='-Wl,'
5797 lt_prog_compiler_pic='-KPIC'
5798 lt_prog_compiler_static='-Bstatic'
5799 ;;
5800
5801 sysv4*MP*)
5802 if test -d /usr/nec ;then
5803 lt_prog_compiler_pic='-Kconform_pic'
5804 lt_prog_compiler_static='-Bstatic'
5805 fi
5806 ;;
5807
5808 uts4*)
5809 lt_prog_compiler_pic='-pic'
5810 lt_prog_compiler_static='-Bstatic'
5811 ;;
5812
5813 *)
5814 lt_prog_compiler_can_build_shared=no
5815 ;;
5816 esac
5817 fi
5818
5819echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5820echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5821
5822#
5823# Check to make sure the PIC flag actually works.
5824#
5825if test -n "$lt_prog_compiler_pic"; then
5826 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5827echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5828if test "${lt_prog_compiler_pic_works+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831 lt_prog_compiler_pic_works=no
5832 ac_outfile=conftest.$ac_objext
5833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5835 # Insert the option either (1) after the last *FLAGS variable, or
5836 # (2) before a word containing "conftest.", or (3) at the end.
5837 # Note that $ac_compile itself does not contain backslashes and begins
5838 # with a dollar sign (not a hyphen), so the echo should work correctly.
5839 # The option is referenced via a variable to avoid confusing sed.
5840 lt_compile=`echo "$ac_compile" | $SED \
5841 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5843 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +00005844 (eval echo "\"\$as_me:5844: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +00005845 (eval "$lt_compile" 2>conftest.err)
5846 ac_status=$?
5847 cat conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +00005848 echo "$as_me:5848: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +00005849 if (exit $ac_status) && test -s "$ac_outfile"; then
5850 # The compiler can only warn and ignore the option if not recognized
5851 # So say no if there are warnings
5852 if test ! -s conftest.err; then
5853 lt_prog_compiler_pic_works=yes
5854 fi
5855 fi
5856 $rm conftest*
5857
5858fi
5859echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5860echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5861
5862if test x"$lt_prog_compiler_pic_works" = xyes; then
5863 case $lt_prog_compiler_pic in
5864 "" | " "*) ;;
5865 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5866 esac
5867else
5868 lt_prog_compiler_pic=
5869 lt_prog_compiler_can_build_shared=no
5870fi
5871
5872fi
5873case "$host_os" in
5874 # For platforms which do not support PIC, -DPIC is meaningless:
5875 *djgpp*)
5876 lt_prog_compiler_pic=
5877 ;;
5878 *)
5879 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5880 ;;
5881esac
5882
5883echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5884echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5885if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888 lt_cv_prog_compiler_c_o=no
5889 $rm -r conftest 2>/dev/null
5890 mkdir conftest
5891 cd conftest
5892 mkdir out
5893 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5894
5895 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5896 # that will create temporary files in the current directory regardless of
5897 # the output directory. Thus, making CWD read-only will cause this test
5898 # to fail, enabling locking or at least warning the user not to do parallel
5899 # builds.
5900 chmod -w .
5901
5902 lt_compiler_flag="-o out/conftest2.$ac_objext"
5903 # Insert the option either (1) after the last *FLAGS variable, or
5904 # (2) before a word containing "conftest.", or (3) at the end.
5905 # Note that $ac_compile itself does not contain backslashes and begins
5906 # with a dollar sign (not a hyphen), so the echo should work correctly.
5907 lt_compile=`echo "$ac_compile" | $SED \
5908 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5910 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +00005911 (eval echo "\"\$as_me:5911: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +00005912 (eval "$lt_compile" 2>out/conftest.err)
5913 ac_status=$?
5914 cat out/conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +00005915 echo "$as_me:5915: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +00005916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5917 then
5918 # The compiler can only warn and ignore the option if not recognized
5919 # So say no if there are warnings
5920 if test ! -s out/conftest.err; then
5921 lt_cv_prog_compiler_c_o=yes
5922 fi
5923 fi
5924 chmod u+w .
5925 $rm conftest* out/*
5926 rmdir out
5927 cd ..
5928 rmdir conftest
5929 $rm conftest*
5930
5931fi
5932echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5933echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5934
5935
5936hard_links="nottested"
5937if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5938 # do not overwrite the value of need_locks provided by the user
5939 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5940echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5941 hard_links=yes
5942 $rm conftest*
5943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5944 touch conftest.a
5945 ln conftest.a conftest.b 2>&5 || hard_links=no
5946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5947 echo "$as_me:$LINENO: result: $hard_links" >&5
5948echo "${ECHO_T}$hard_links" >&6
5949 if test "$hard_links" = no; then
5950 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5951echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5952 need_locks=warn
5953 fi
5954else
5955 need_locks=no
5956fi
5957
5958echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5959echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5960
5961 runpath_var=
5962 allow_undefined_flag=
5963 enable_shared_with_static_runtimes=no
5964 archive_cmds=
5965 archive_expsym_cmds=
5966 old_archive_From_new_cmds=
5967 old_archive_from_expsyms_cmds=
5968 export_dynamic_flag_spec=
5969 whole_archive_flag_spec=
5970 thread_safe_flag_spec=
5971 hardcode_libdir_flag_spec=
5972 hardcode_libdir_flag_spec_ld=
5973 hardcode_libdir_separator=
5974 hardcode_direct=no
5975 hardcode_minus_L=no
5976 hardcode_shlibpath_var=unsupported
5977 link_all_deplibs=unknown
5978 hardcode_automatic=no
5979 module_cmds=
5980 module_expsym_cmds=
5981 always_export_symbols=no
5982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5983 # include_expsyms should be a list of space-separated symbols to be *always*
5984 # included in the symbol list
5985 include_expsyms=
5986 # exclude_expsyms can be an extended regexp of symbols to exclude
5987 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5988 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5989 # as well as any symbol that contains `d'.
5990 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5992 # platforms (ab)use it in PIC code, but their linkers get confused if
5993 # the symbol is explicitly referenced. Since portable code cannot
5994 # rely on this symbol name, it's probably fine to never include it in
5995 # preloaded symbol tables.
5996 extract_expsyms_cmds=
5997
5998 case $host_os in
5999 cygwin* | mingw* | pw32*)
6000 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6001 # When not using gcc, we currently assume that we are using
6002 # Microsoft Visual C++.
6003 if test "$GCC" != yes; then
6004 with_gnu_ld=no
6005 fi
6006 ;;
6007 openbsd*)
6008 with_gnu_ld=no
6009 ;;
6010 esac
6011
6012 ld_shlibs=yes
6013 if test "$with_gnu_ld" = yes; then
6014 # If archive_cmds runs LD, not CC, wlarc should be empty
6015 wlarc='${wl}'
6016
6017 # See if GNU ld supports shared libraries.
6018 case $host_os in
6019 aix3* | aix4* | aix5*)
6020 # On AIX/PPC, the GNU linker is very broken
6021 if test "$host_cpu" != ia64; then
6022 ld_shlibs=no
6023 cat <<EOF 1>&2
6024
6025*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6026*** to be unable to reliably create shared libraries on AIX.
6027*** Therefore, libtool is disabling shared libraries support. If you
6028*** really care for shared libraries, you may want to modify your PATH
6029*** so that a non-GNU linker is found, and then restart.
6030
6031EOF
6032 fi
6033 ;;
6034
6035 amigaos*)
6036 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)'
6037 hardcode_libdir_flag_spec='-L$libdir'
6038 hardcode_minus_L=yes
6039
6040 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6041 # that the semantics of dynamic libraries on AmigaOS, at least up
6042 # to version 4, is to share data among multiple programs linked
6043 # with the same dynamic library. Since this doesn't match the
6044 # behavior of shared libraries on other platforms, we can't use
6045 # them.
6046 ld_shlibs=no
6047 ;;
6048
6049 beos*)
6050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6051 allow_undefined_flag=unsupported
6052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6053 # support --undefined. This deserves some investigation. FIXME
6054 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6055 else
6056 ld_shlibs=no
6057 fi
6058 ;;
6059
6060 cygwin* | mingw* | pw32*)
6061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6062 # as there is no search path for DLLs.
6063 hardcode_libdir_flag_spec='-L$libdir'
6064 allow_undefined_flag=unsupported
6065 always_export_symbols=no
6066 enable_shared_with_static_runtimes=yes
6067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6068
6069 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6071 # If the export-symbols file already is a .def file (1st line
6072 # is EXPORTS), use it as is; otherwise, prepend...
6073 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6074 cp $export_symbols $output_objdir/$soname.def;
6075 else
6076 echo EXPORTS > $output_objdir/$soname.def;
6077 cat $export_symbols >> $output_objdir/$soname.def;
6078 fi~
6079 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6080 else
6081 ld_shlibs=no
6082 fi
6083 ;;
6084
6085 netbsd*)
6086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6087 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6088 wlarc=
6089 else
6090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6092 fi
6093 ;;
6094
6095 solaris* | sysv5*)
6096 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6097 ld_shlibs=no
6098 cat <<EOF 1>&2
6099
6100*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6101*** create shared libraries on Solaris systems. Therefore, libtool
6102*** is disabling shared libraries support. We urge you to upgrade GNU
6103*** binutils to release 2.9.1 or newer. Another option is to modify
6104*** your PATH or compiler configuration so that the native linker is
6105*** used, and then restart.
6106
6107EOF
6108 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6111 else
6112 ld_shlibs=no
6113 fi
6114 ;;
6115
6116 sunos4*)
6117 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6118 wlarc=
6119 hardcode_direct=yes
6120 hardcode_shlibpath_var=no
6121 ;;
6122
6123 *)
6124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6127 else
6128 ld_shlibs=no
6129 fi
6130 ;;
6131 esac
6132
6133 if test "$ld_shlibs" = yes; then
6134 runpath_var=LD_RUN_PATH
6135 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6136 export_dynamic_flag_spec='${wl}--export-dynamic'
6137 # ancient GNU ld didn't support --whole-archive et. al.
6138 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6139 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6140 else
6141 whole_archive_flag_spec=
6142 fi
6143 fi
6144 else
6145 # PORTME fill in a description of your system's linker (not GNU ld)
6146 case $host_os in
6147 aix3*)
6148 allow_undefined_flag=unsupported
6149 always_export_symbols=yes
6150 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'
6151 # Note: this linker hardcodes the directories in LIBPATH if there
6152 # are no directories specified by -L.
6153 hardcode_minus_L=yes
6154 if test "$GCC" = yes && test -z "$link_static_flag"; then
6155 # Neither direct hardcoding nor static linking is supported with a
6156 # broken collect2.
6157 hardcode_direct=unsupported
6158 fi
6159 ;;
6160
6161 aix4* | aix5*)
6162 if test "$host_cpu" = ia64; then
6163 # On IA64, the linker does run time linking by default, so we don't
6164 # have to do anything special.
6165 aix_use_runtimelinking=no
6166 exp_sym_flag='-Bexport'
6167 no_entry_flag=""
6168 else
6169 # If we're using GNU nm, then we don't want the "-C" option.
6170 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6171 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6172 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'
6173 else
6174 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'
6175 fi
6176 aix_use_runtimelinking=no
6177
6178 # Test if we are trying to use run time linking or normal
6179 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6180 # need to do runtime linking.
6181 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6182 for ld_flag in $LDFLAGS; do
6183 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6184 aix_use_runtimelinking=yes
6185 break
6186 fi
6187 done
6188 esac
6189
6190 exp_sym_flag='-bexport'
6191 no_entry_flag='-bnoentry'
6192 fi
6193
6194 # When large executables or shared objects are built, AIX ld can
6195 # have problems creating the table of contents. If linking a library
6196 # or program results in "error TOC overflow" add -mminimal-toc to
6197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6199
6200 archive_cmds=''
6201 hardcode_direct=yes
6202 hardcode_libdir_separator=':'
6203 link_all_deplibs=yes
6204
6205 if test "$GCC" = yes; then
6206 case $host_os in aix4.012|aix4.012.*)
6207 # We only want to do this on AIX 4.2 and lower, the check
6208 # below for broken collect2 doesn't work under 4.3+
6209 collect2name=`${CC} -print-prog-name=collect2`
6210 if test -f "$collect2name" && \
6211 strings "$collect2name" | grep resolve_lib_name >/dev/null
6212 then
6213 # We have reworked collect2
6214 hardcode_direct=yes
6215 else
6216 # We have old collect2
6217 hardcode_direct=unsupported
6218 # It fails to find uninstalled libraries when the uninstalled
6219 # path is not listed in the libpath. Setting hardcode_minus_L
6220 # to unsupported forces relinking
6221 hardcode_minus_L=yes
6222 hardcode_libdir_flag_spec='-L$libdir'
6223 hardcode_libdir_separator=
6224 fi
6225 esac
6226 shared_flag='-shared'
6227 else
6228 # not using gcc
6229 if test "$host_cpu" = ia64; then
6230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6231 # chokes on -Wl,-G. The following line is correct:
6232 shared_flag='-G'
6233 else
6234 if test "$aix_use_runtimelinking" = yes; then
6235 shared_flag='${wl}-G'
6236 else
6237 shared_flag='${wl}-bM:SRE'
6238 fi
6239 fi
6240 fi
6241
6242 # It seems that -bexpall does not export symbols beginning with
6243 # underscore (_), so it is better to generate a list of symbols to export.
6244 always_export_symbols=yes
6245 if test "$aix_use_runtimelinking" = yes; then
6246 # Warning - without using the other runtime loading flags (-brtl),
6247 # -berok will link without error, but may produce a broken library.
6248 allow_undefined_flag='-berok'
6249 # Determine the default libpath from the value encoded in an empty executable.
6250 cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256
6257int
6258main ()
6259{
6260
6261 ;
6262 return 0;
6263}
6264_ACEOF
6265rm -f conftest.$ac_objext conftest$ac_exeext
6266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>conftest.er1
6268 ac_status=$?
6269 grep -v '^ *+' conftest.er1 >conftest.err
6270 rm -f conftest.er1
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -z "$ac_c_werror_flag"
6275 || test ! -s conftest.err'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; } &&
6281 { ac_try='test -s conftest$ac_exeext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287
6288aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6289}'`
6290# Check for a 64-bit object if we didn't find anything.
6291if 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; }
6292}'`; fi
6293else
6294 echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
6297fi
6298rm -f conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6300if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6301
6302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6303 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6304 else
6305 if test "$host_cpu" = ia64; then
6306 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6307 allow_undefined_flag="-z nodefs"
6308 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6309 else
6310 # Determine the default libpath from the value encoded in an empty executable.
6311 cat >conftest.$ac_ext <<_ACEOF
6312/* confdefs.h. */
6313_ACEOF
6314cat confdefs.h >>conftest.$ac_ext
6315cat >>conftest.$ac_ext <<_ACEOF
6316/* end confdefs.h. */
6317
6318int
6319main ()
6320{
6321
6322 ;
6323 return 0;
6324}
6325_ACEOF
6326rm -f conftest.$ac_objext conftest$ac_exeext
6327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328 (eval $ac_link) 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_c_werror_flag"
6336 || test ! -s conftest.err'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try='test -s conftest$ac_exeext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 (eval $ac_try) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348
6349aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6350}'`
6351# Check for a 64-bit object if we didn't find anything.
6352if 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; }
6353}'`; fi
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358fi
6359rm -f conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6361if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6362
6363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6364 # Warning - without using the other run time loading flags,
6365 # -berok will link without error, but may produce a broken library.
6366 no_undefined_flag=' ${wl}-bernotok'
6367 allow_undefined_flag=' ${wl}-berok'
6368 # -bexpall does not export symbols beginning with underscore (_)
6369 always_export_symbols=yes
6370 # Exported symbols can be pulled into shared objects from archives
6371 whole_archive_flag_spec=' '
6372 archive_cmds_need_lc=yes
6373 # This is similar to how AIX traditionally builds it's shared libraries.
6374 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6375 fi
6376 fi
6377 ;;
6378
6379 amigaos*)
6380 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)'
6381 hardcode_libdir_flag_spec='-L$libdir'
6382 hardcode_minus_L=yes
6383 # see comment about different semantics on the GNU ld section
6384 ld_shlibs=no
6385 ;;
6386
6387 bsdi4*)
6388 export_dynamic_flag_spec=-rdynamic
6389 ;;
6390
6391 cygwin* | mingw* | pw32*)
6392 # When not using gcc, we currently assume that we are using
6393 # Microsoft Visual C++.
6394 # hardcode_libdir_flag_spec is actually meaningless, as there is
6395 # no search path for DLLs.
6396 hardcode_libdir_flag_spec=' '
6397 allow_undefined_flag=unsupported
6398 # Tell ltmain to make .lib files, not .a files.
6399 libext=lib
6400 # Tell ltmain to make .dll files, not .so files.
6401 shrext=".dll"
6402 # FIXME: Setting linknames here is a bad hack.
6403 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6404 # The linker will automatically build a .lib file if we build a DLL.
6405 old_archive_From_new_cmds='true'
6406 # FIXME: Should let the user specify the lib program.
6407 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6408 fix_srcfile_path='`cygpath -w "$srcfile"`'
6409 enable_shared_with_static_runtimes=yes
6410 ;;
6411
6412 darwin* | rhapsody*)
6413 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6414 archive_cmds_need_lc=no
6415 case "$host_os" in
6416 rhapsody* | darwin1.[012])
6417 allow_undefined_flag='-undefined suppress'
6418 ;;
6419 *) # Darwin 1.3 on
6420 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6421 ;;
6422 esac
6423 # FIXME: Relying on posixy $() will cause problems for
6424 # cross-compilation, but unfortunately the echo tests do not
6425 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6426 # `"' quotes if we put them in here... so don't!
6427 lt_int_apple_cc_single_mod=no
6428 output_verbose_link_cmd='echo'
6429 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6430 lt_int_apple_cc_single_mod=yes
6431 fi
6432 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6433 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6434 else
6435 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6436 fi
6437 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6439 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6440 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6441 else
6442 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6443 fi
6444 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6445 hardcode_direct=no
6446 hardcode_automatic=yes
6447 hardcode_shlibpath_var=unsupported
6448 whole_archive_flag_spec='-all_load $convenience'
6449 link_all_deplibs=yes
6450 fi
6451 ;;
6452
6453 dgux*)
6454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6455 hardcode_libdir_flag_spec='-L$libdir'
6456 hardcode_shlibpath_var=no
6457 ;;
6458
6459 freebsd1*)
6460 ld_shlibs=no
6461 ;;
6462
6463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6464 # support. Future versions do this automatically, but an explicit c++rt0.o
6465 # does not break anything, and helps significantly (at the cost of a little
6466 # extra space).
6467 freebsd2.2*)
6468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6469 hardcode_libdir_flag_spec='-R$libdir'
6470 hardcode_direct=yes
6471 hardcode_shlibpath_var=no
6472 ;;
6473
6474 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6475 freebsd2*)
6476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6477 hardcode_direct=yes
6478 hardcode_minus_L=yes
6479 hardcode_shlibpath_var=no
6480 ;;
6481
6482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6483 freebsd*)
6484 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6485 hardcode_libdir_flag_spec='-R$libdir'
6486 hardcode_direct=yes
6487 hardcode_shlibpath_var=no
6488 ;;
6489
6490 hpux9*)
6491 if test "$GCC" = yes; then
6492 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'
6493 else
6494 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'
6495 fi
6496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6497 hardcode_libdir_separator=:
6498 hardcode_direct=yes
6499
6500 # hardcode_minus_L: Not really in the search PATH,
6501 # but as the default location of the library.
6502 hardcode_minus_L=yes
6503 export_dynamic_flag_spec='${wl}-E'
6504 ;;
6505
6506 hpux10* | hpux11*)
6507 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6508 case "$host_cpu" in
6509 hppa*64*|ia64*)
6510 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6511 ;;
6512 *)
6513 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6514 ;;
6515 esac
6516 else
6517 case "$host_cpu" in
6518 hppa*64*|ia64*)
6519 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6520 ;;
6521 *)
6522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6523 ;;
6524 esac
6525 fi
6526 if test "$with_gnu_ld" = no; then
6527 case "$host_cpu" in
6528 hppa*64*)
6529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6530 hardcode_libdir_flag_spec_ld='+b $libdir'
6531 hardcode_libdir_separator=:
6532 hardcode_direct=no
6533 hardcode_shlibpath_var=no
6534 ;;
6535 ia64*)
6536 hardcode_libdir_flag_spec='-L$libdir'
6537 hardcode_direct=no
6538 hardcode_shlibpath_var=no
6539
6540 # hardcode_minus_L: Not really in the search PATH,
6541 # but as the default location of the library.
6542 hardcode_minus_L=yes
6543 ;;
6544 *)
6545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6546 hardcode_libdir_separator=:
6547 hardcode_direct=yes
6548 export_dynamic_flag_spec='${wl}-E'
6549
6550 # hardcode_minus_L: Not really in the search PATH,
6551 # but as the default location of the library.
6552 hardcode_minus_L=yes
6553 ;;
6554 esac
6555 fi
6556 ;;
6557
6558 irix5* | irix6* | nonstopux*)
6559 if test "$GCC" = yes; then
6560 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'
6561 else
6562 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'
6563 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6564 fi
6565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6566 hardcode_libdir_separator=:
6567 link_all_deplibs=yes
6568 ;;
6569
6570 netbsd*)
6571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6573 else
6574 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6575 fi
6576 hardcode_libdir_flag_spec='-R$libdir'
6577 hardcode_direct=yes
6578 hardcode_shlibpath_var=no
6579 ;;
6580
6581 newsos6)
6582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6583 hardcode_direct=yes
6584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6585 hardcode_libdir_separator=:
6586 hardcode_shlibpath_var=no
6587 ;;
6588
6589 openbsd*)
6590 hardcode_direct=yes
6591 hardcode_shlibpath_var=no
6592 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6595 export_dynamic_flag_spec='${wl}-E'
6596 else
6597 case $host_os in
6598 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6600 hardcode_libdir_flag_spec='-R$libdir'
6601 ;;
6602 *)
6603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6604 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6605 ;;
6606 esac
6607 fi
6608 ;;
6609
6610 os2*)
6611 hardcode_libdir_flag_spec='-L$libdir'
6612 hardcode_minus_L=yes
6613 allow_undefined_flag=unsupported
6614 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'
6615 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6616 ;;
6617
6618 osf3*)
6619 if test "$GCC" = yes; then
6620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6621 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'
6622 else
6623 allow_undefined_flag=' -expect_unresolved \*'
6624 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'
6625 fi
6626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6627 hardcode_libdir_separator=:
6628 ;;
6629
6630 osf4* | osf5*) # as osf3* with the addition of -msym flag
6631 if test "$GCC" = yes; then
6632 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6633 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'
6634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6635 else
6636 allow_undefined_flag=' -expect_unresolved \*'
6637 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'
6638 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6639 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6640
6641 # Both c and cxx compiler support -rpath directly
6642 hardcode_libdir_flag_spec='-rpath $libdir'
6643 fi
6644 hardcode_libdir_separator=:
6645 ;;
6646
6647 sco3.2v5*)
6648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6649 hardcode_shlibpath_var=no
6650 export_dynamic_flag_spec='${wl}-Bexport'
6651 runpath_var=LD_RUN_PATH
6652 hardcode_runpath_var=yes
6653 ;;
6654
6655 solaris*)
6656 no_undefined_flag=' -z text'
6657 if test "$GCC" = yes; then
6658 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6659 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6660 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6661 else
6662 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6663 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6664 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6665 fi
6666 hardcode_libdir_flag_spec='-R$libdir'
6667 hardcode_shlibpath_var=no
6668 case $host_os in
6669 solaris2.[0-5] | solaris2.[0-5].*) ;;
6670 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6671 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6672 esac
6673 link_all_deplibs=yes
6674 ;;
6675
6676 sunos4*)
6677 if test "x$host_vendor" = xsequent; then
6678 # Use $CC to link under sequent, because it throws in some extra .o
6679 # files that make .init and .fini sections work.
6680 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6681 else
6682 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6683 fi
6684 hardcode_libdir_flag_spec='-L$libdir'
6685 hardcode_direct=yes
6686 hardcode_minus_L=yes
6687 hardcode_shlibpath_var=no
6688 ;;
6689
6690 sysv4)
6691 case $host_vendor in
6692 sni)
6693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6694 hardcode_direct=yes # is this really true???
6695 ;;
6696 siemens)
6697 ## LD is ld it makes a PLAMLIB
6698 ## CC just makes a GrossModule.
6699 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6700 reload_cmds='$CC -r -o $output$reload_objs'
6701 hardcode_direct=no
6702 ;;
6703 motorola)
6704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6705 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6706 ;;
6707 esac
6708 runpath_var='LD_RUN_PATH'
6709 hardcode_shlibpath_var=no
6710 ;;
6711
6712 sysv4.3*)
6713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6714 hardcode_shlibpath_var=no
6715 export_dynamic_flag_spec='-Bexport'
6716 ;;
6717
6718 sysv4*MP*)
6719 if test -d /usr/nec; then
6720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721 hardcode_shlibpath_var=no
6722 runpath_var=LD_RUN_PATH
6723 hardcode_runpath_var=yes
6724 ld_shlibs=yes
6725 fi
6726 ;;
6727
6728 sysv4.2uw2*)
6729 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6730 hardcode_direct=yes
6731 hardcode_minus_L=no
6732 hardcode_shlibpath_var=no
6733 hardcode_runpath_var=yes
6734 runpath_var=LD_RUN_PATH
6735 ;;
6736
6737 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6738 no_undefined_flag='${wl}-z ${wl}text'
6739 if test "$GCC" = yes; then
6740 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6741 else
6742 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6743 fi
6744 runpath_var='LD_RUN_PATH'
6745 hardcode_shlibpath_var=no
6746 ;;
6747
6748 sysv5*)
6749 no_undefined_flag=' -z text'
6750 # $CC -shared without GNU ld will not create a library from C++
6751 # object files and a static libstdc++, better avoid it by now
6752 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6753 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6754 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6755 hardcode_libdir_flag_spec=
6756 hardcode_shlibpath_var=no
6757 runpath_var='LD_RUN_PATH'
6758 ;;
6759
6760 uts4*)
6761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6762 hardcode_libdir_flag_spec='-L$libdir'
6763 hardcode_shlibpath_var=no
6764 ;;
6765
6766 *)
6767 ld_shlibs=no
6768 ;;
6769 esac
6770 fi
6771
6772echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6773echo "${ECHO_T}$ld_shlibs" >&6
6774test "$ld_shlibs" = no && can_build_shared=no
6775
6776variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6777if test "$GCC" = yes; then
6778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6779fi
6780
6781#
6782# Do we need to explicitly link libc?
6783#
6784case "x$archive_cmds_need_lc" in
6785x|xyes)
6786 # Assume -lc should be added
6787 archive_cmds_need_lc=yes
6788
6789 if test "$enable_shared" = yes && test "$GCC" = yes; then
6790 case $archive_cmds in
6791 *'~'*)
6792 # FIXME: we may have to deal with multi-command sequences.
6793 ;;
6794 '$CC '*)
6795 # Test whether the compiler implicitly links with -lc since on some
6796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6797 # to ld, don't add -lc before -lgcc.
6798 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6799echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6800 $rm conftest*
6801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6802
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 (eval $ac_compile) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } 2>conftest.err; then
6808 soname=conftest
6809 lib=conftest
6810 libobjs=conftest.$ac_objext
6811 deplibs=
6812 wl=$lt_prog_compiler_wl
6813 compiler_flags=-v
6814 linker_flags=-v
6815 verstring=
6816 output_objdir=.
6817 libname=conftest
6818 lt_save_allow_undefined_flag=$allow_undefined_flag
6819 allow_undefined_flag=
6820 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6821 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }
6825 then
6826 archive_cmds_need_lc=no
6827 else
6828 archive_cmds_need_lc=yes
6829 fi
6830 allow_undefined_flag=$lt_save_allow_undefined_flag
6831 else
6832 cat conftest.err 1>&5
6833 fi
6834 $rm conftest*
6835 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6836echo "${ECHO_T}$archive_cmds_need_lc" >&6
6837 ;;
6838 esac
6839 fi
6840 ;;
6841esac
6842
6843echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6844echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6845hardcode_action=
6846if test -n "$hardcode_libdir_flag_spec" || \
6847 test -n "$runpath_var " || \
6848 test "X$hardcode_automatic"="Xyes" ; then
6849
6850 # We can hardcode non-existant directories.
6851 if test "$hardcode_direct" != no &&
6852 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6853 # have to relink, otherwise we might link with an installed library
6854 # when we should be linking with a yet-to-be-installed one
6855 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6856 test "$hardcode_minus_L" != no; then
6857 # Linking always hardcodes the temporary library directory.
6858 hardcode_action=relink
6859 else
6860 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6861 hardcode_action=immediate
6862 fi
6863else
6864 # We cannot hardcode anything, or else we can only hardcode existing
6865 # directories.
6866 hardcode_action=unsupported
6867fi
6868echo "$as_me:$LINENO: result: $hardcode_action" >&5
6869echo "${ECHO_T}$hardcode_action" >&6
6870
6871if test "$hardcode_action" = relink; then
6872 # Fast installation is not supported
6873 enable_fast_install=no
6874elif test "$shlibpath_overrides_runpath" = yes ||
6875 test "$enable_shared" = no; then
6876 # Fast installation is not necessary
6877 enable_fast_install=needless
6878fi
6879
6880striplib=
6881old_striplib=
6882echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6883echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6884if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6885 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6886 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6887 echo "$as_me:$LINENO: result: yes" >&5
6888echo "${ECHO_T}yes" >&6
6889else
6890# FIXME - insert some real tests, host_os isn't really good enough
6891 case $host_os in
6892 darwin*)
6893 if test -n "$STRIP" ; then
6894 striplib="$STRIP -x"
6895 echo "$as_me:$LINENO: result: yes" >&5
6896echo "${ECHO_T}yes" >&6
6897 else
6898 echo "$as_me:$LINENO: result: no" >&5
6899echo "${ECHO_T}no" >&6
6900fi
6901 ;;
6902 *)
6903 echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6
6905 ;;
6906 esac
6907fi
6908
6909echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6910echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6911library_names_spec=
6912libname_spec='lib$name'
6913soname_spec=
6914shrext=".so"
6915postinstall_cmds=
6916postuninstall_cmds=
6917finish_cmds=
6918finish_eval=
6919shlibpath_var=
6920shlibpath_overrides_runpath=unknown
6921version_type=none
6922dynamic_linker="$host_os ld.so"
6923sys_lib_dlsearch_path_spec="/lib /usr/lib"
6924if test "$GCC" = yes; then
6925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6926 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6927 # if the path contains ";" then we assume it to be the separator
6928 # otherwise default to the standard path separator (i.e. ":") - it is
6929 # assumed that no part of a normal pathname contains ";" but that should
6930 # okay in the real world where ";" in dirpaths is itself problematic.
6931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6932 else
6933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6934 fi
6935else
6936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6937fi
6938need_lib_prefix=unknown
6939hardcode_into_libs=no
6940
6941# when you set need_version to no, make sure it does not cause -set_version
6942# flags to be left without arguments
6943need_version=unknown
6944
6945case $host_os in
6946aix3*)
6947 version_type=linux
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6949 shlibpath_var=LIBPATH
6950
6951 # AIX 3 has no versioning support, so we append a major version to the name.
6952 soname_spec='${libname}${release}${shared_ext}$major'
6953 ;;
6954
6955aix4* | aix5*)
6956 version_type=linux
6957 need_lib_prefix=no
6958 need_version=no
6959 hardcode_into_libs=yes
6960 if test "$host_cpu" = ia64; then
6961 # AIX 5 supports IA64
6962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6963 shlibpath_var=LD_LIBRARY_PATH
6964 else
6965 # With GCC up to 2.95.x, collect2 would create an import file
6966 # for dependence libraries. The import file would start with
6967 # the line `#! .'. This would cause the generated library to
6968 # depend on `.', always an invalid library. This was fixed in
6969 # development snapshots of GCC prior to 3.0.
6970 case $host_os in
6971 aix4 | aix4.[01] | aix4.[01].*)
6972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6973 echo ' yes '
6974 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6975 :
6976 else
6977 can_build_shared=no
6978 fi
6979 ;;
6980 esac
6981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6982 # soname into executable. Probably we can add versioning support to
6983 # collect2, so additional links can be useful in future.
6984 if test "$aix_use_runtimelinking" = yes; then
6985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6986 # instead of lib<name>.a to let people know that these are not
6987 # typical AIX shared libraries.
6988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6989 else
6990 # We preserve .a as extension for shared libraries through AIX4.2
6991 # and later when we are not doing run time linking.
6992 library_names_spec='${libname}${release}.a $libname.a'
6993 soname_spec='${libname}${release}${shared_ext}$major'
6994 fi
6995 shlibpath_var=LIBPATH
6996 fi
6997 ;;
6998
6999amigaos*)
7000 library_names_spec='$libname.ixlibrary $libname.a'
7001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7002 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'
7003 ;;
7004
7005beos*)
7006 library_names_spec='${libname}${shared_ext}'
7007 dynamic_linker="$host_os ld.so"
7008 shlibpath_var=LIBRARY_PATH
7009 ;;
7010
7011bsdi4*)
7012 version_type=linux
7013 need_version=no
7014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7015 soname_spec='${libname}${release}${shared_ext}$major'
7016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7017 shlibpath_var=LD_LIBRARY_PATH
7018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7020 # the default ld.so.conf also contains /usr/contrib/lib and
7021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7022 # libtool to hard-code these into programs
7023 ;;
7024
7025cygwin* | mingw* | pw32*)
7026 version_type=windows
7027 shrext=".dll"
7028 need_version=no
7029 need_lib_prefix=no
7030
7031 case $GCC,$host_os in
7032 yes,cygwin* | yes,mingw* | yes,pw32*)
7033 library_names_spec='$libname.dll.a'
7034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7035 postinstall_cmds='base_file=`basename \${file}`~
7036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7037 dldir=$destdir/`dirname \$dlpath`~
7038 test -d \$dldir || mkdir -p \$dldir~
7039 $install_prog $dir/$dlname \$dldir/$dlname'
7040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7041 dlpath=$dir/\$dldll~
7042 $rm \$dlpath'
7043 shlibpath_overrides_runpath=yes
7044
7045 case $host_os in
7046 cygwin*)
7047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7048 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7049 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7050 ;;
7051 mingw*)
7052 # MinGW DLLs use traditional 'lib' prefix
7053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7055 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7056 # It is most probably a Windows format PATH printed by
7057 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7058 # path with ; separators, and with drive letters. We can handle the
7059 # drive letters (cygwin fileutils understands them), so leave them,
7060 # especially as we might pass files found there to a mingw objdump,
7061 # which wouldn't understand a cygwinified path. Ahh.
7062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7063 else
7064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7065 fi
7066 ;;
7067 pw32*)
7068 # pw32 DLLs use 'pw' prefix rather than 'lib'
7069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7070 ;;
7071 esac
7072 ;;
7073
7074 *)
7075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7076 ;;
7077 esac
7078 dynamic_linker='Win32 ld.exe'
7079 # FIXME: first we should search . and the directory the executable is in
7080 shlibpath_var=PATH
7081 ;;
7082
7083darwin* | rhapsody*)
7084 dynamic_linker="$host_os dyld"
7085 version_type=darwin
7086 need_lib_prefix=no
7087 need_version=no
7088 # FIXME: Relying on posixy $() will cause problems for
7089 # cross-compilation, but unfortunately the echo tests do not
7090 # yet detect zsh echo's removal of \ escapes.
7091 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7092 soname_spec='${libname}${release}${major}$shared_ext'
7093 shlibpath_overrides_runpath=yes
7094 shlibpath_var=DYLD_LIBRARY_PATH
7095 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7096 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7097 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7098 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"`
7099 fi
7100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7101 ;;
7102
7103dgux*)
7104 version_type=linux
7105 need_lib_prefix=no
7106 need_version=no
7107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7108 soname_spec='${libname}${release}${shared_ext}$major'
7109 shlibpath_var=LD_LIBRARY_PATH
7110 ;;
7111
7112freebsd1*)
7113 dynamic_linker=no
7114 ;;
7115
7116freebsd*)
7117 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7118 version_type=freebsd-$objformat
7119 case $version_type in
7120 freebsd-elf*)
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7122 need_version=no
7123 need_lib_prefix=no
7124 ;;
7125 freebsd-*)
7126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7127 need_version=yes
7128 ;;
7129 esac
7130 shlibpath_var=LD_LIBRARY_PATH
7131 case $host_os in
7132 freebsd2*)
7133 shlibpath_overrides_runpath=yes
7134 ;;
7135 freebsd3.01* | freebsdelf3.01*)
7136 shlibpath_overrides_runpath=yes
7137 hardcode_into_libs=yes
7138 ;;
7139 *) # from 3.2 on
7140 shlibpath_overrides_runpath=no
7141 hardcode_into_libs=yes
7142 ;;
7143 esac
7144 ;;
7145
7146gnu*)
7147 version_type=linux
7148 need_lib_prefix=no
7149 need_version=no
7150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7151 soname_spec='${libname}${release}${shared_ext}$major'
7152 shlibpath_var=LD_LIBRARY_PATH
7153 hardcode_into_libs=yes
7154 ;;
7155
7156hpux9* | hpux10* | hpux11*)
7157 # Give a soname corresponding to the major version so that dld.sl refuses to
7158 # link against other versions.
7159 version_type=sunos
7160 need_lib_prefix=no
7161 need_version=no
7162 case "$host_cpu" in
7163 ia64*)
7164 shrext='.so'
7165 hardcode_into_libs=yes
7166 dynamic_linker="$host_os dld.so"
7167 shlibpath_var=LD_LIBRARY_PATH
7168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7170 soname_spec='${libname}${release}${shared_ext}$major'
7171 if test "X$HPUX_IA64_MODE" = X32; then
7172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7173 else
7174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7175 fi
7176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7177 ;;
7178 hppa*64*)
7179 shrext='.sl'
7180 hardcode_into_libs=yes
7181 dynamic_linker="$host_os dld.sl"
7182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7188 ;;
7189 *)
7190 shrext='.sl'
7191 dynamic_linker="$host_os dld.sl"
7192 shlibpath_var=SHLIB_PATH
7193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7195 soname_spec='${libname}${release}${shared_ext}$major'
7196 ;;
7197 esac
7198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7199 postinstall_cmds='chmod 555 $lib'
7200 ;;
7201
7202irix5* | irix6* | nonstopux*)
7203 case $host_os in
7204 nonstopux*) version_type=nonstopux ;;
7205 *)
7206 if test "$lt_cv_prog_gnu_ld" = yes; then
7207 version_type=linux
7208 else
7209 version_type=irix
7210 fi ;;
7211 esac
7212 need_lib_prefix=no
7213 need_version=no
7214 soname_spec='${libname}${release}${shared_ext}$major'
7215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7216 case $host_os in
7217 irix5* | nonstopux*)
7218 libsuff= shlibsuff=
7219 ;;
7220 *)
7221 case $LD in # libtool.m4 will add one of these switches to LD
7222 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7223 libsuff= shlibsuff= libmagic=32-bit;;
7224 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7225 libsuff=32 shlibsuff=N32 libmagic=N32;;
7226 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7227 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7228 *) libsuff= shlibsuff= libmagic=never-match;;
7229 esac
7230 ;;
7231 esac
7232 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7233 shlibpath_overrides_runpath=no
7234 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7235 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7236 hardcode_into_libs=yes
7237 ;;
7238
7239# No shared lib support for Linux oldld, aout, or coff.
7240linux*oldld* | linux*aout* | linux*coff*)
7241 dynamic_linker=no
7242 ;;
7243
7244# This must be Linux ELF.
7245linux*)
7246 version_type=linux
7247 need_lib_prefix=no
7248 need_version=no
7249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7250 soname_spec='${libname}${release}${shared_ext}$major'
7251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7252 shlibpath_var=LD_LIBRARY_PATH
7253 shlibpath_overrides_runpath=no
7254 # This implies no fast_install, which is unacceptable.
7255 # Some rework will be needed to allow for fast_install
7256 # before this can be enabled.
7257 hardcode_into_libs=yes
7258
7259 # We used to test for /lib/ld.so.1 and disable shared libraries on
7260 # powerpc, because MkLinux only supported shared libraries with the
7261 # GNU dynamic linker. Since this was broken with cross compilers,
7262 # most powerpc-linux boxes support dynamic linking these days and
7263 # people can always --disable-shared, the test was removed, and we
7264 # assume the GNU/Linux dynamic linker is in use.
7265 dynamic_linker='GNU/Linux ld.so'
7266 ;;
7267
7268netbsd*)
7269 version_type=sunos
7270 need_lib_prefix=no
7271 need_version=no
7272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7275 dynamic_linker='NetBSD (a.out) ld.so'
7276 else
7277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7278 soname_spec='${libname}${release}${shared_ext}$major'
7279 dynamic_linker='NetBSD ld.elf_so'
7280 fi
7281 shlibpath_var=LD_LIBRARY_PATH
7282 shlibpath_overrides_runpath=yes
7283 hardcode_into_libs=yes
7284 ;;
7285
7286newsos6)
7287 version_type=linux
7288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7289 shlibpath_var=LD_LIBRARY_PATH
7290 shlibpath_overrides_runpath=yes
7291 ;;
7292
7293nto-qnx)
7294 version_type=linux
7295 need_lib_prefix=no
7296 need_version=no
7297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7298 soname_spec='${libname}${release}${shared_ext}$major'
7299 shlibpath_var=LD_LIBRARY_PATH
7300 shlibpath_overrides_runpath=yes
7301 ;;
7302
7303openbsd*)
7304 version_type=sunos
7305 need_lib_prefix=no
7306 need_version=no
7307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7309 shlibpath_var=LD_LIBRARY_PATH
7310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7311 case $host_os in
7312 openbsd2.[89] | openbsd2.[89].*)
7313 shlibpath_overrides_runpath=no
7314 ;;
7315 *)
7316 shlibpath_overrides_runpath=yes
7317 ;;
7318 esac
7319 else
7320 shlibpath_overrides_runpath=yes
7321 fi
7322 ;;
7323
7324os2*)
7325 libname_spec='$name'
7326 shrext=".dll"
7327 need_lib_prefix=no
7328 library_names_spec='$libname${shared_ext} $libname.a'
7329 dynamic_linker='OS/2 ld.exe'
7330 shlibpath_var=LIBPATH
7331 ;;
7332
7333osf3* | osf4* | osf5*)
7334 version_type=osf
7335 need_lib_prefix=no
7336 need_version=no
7337 soname_spec='${libname}${release}${shared_ext}$major'
7338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7339 shlibpath_var=LD_LIBRARY_PATH
7340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7342 ;;
7343
7344sco3.2v5*)
7345 version_type=osf
7346 soname_spec='${libname}${release}${shared_ext}$major'
7347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7348 shlibpath_var=LD_LIBRARY_PATH
7349 ;;
7350
7351solaris*)
7352 version_type=linux
7353 need_lib_prefix=no
7354 need_version=no
7355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7356 soname_spec='${libname}${release}${shared_ext}$major'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath=yes
7359 hardcode_into_libs=yes
7360 # ldd complains unless libraries are executable
7361 postinstall_cmds='chmod +x $lib'
7362 ;;
7363
7364sunos4*)
7365 version_type=sunos
7366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7368 shlibpath_var=LD_LIBRARY_PATH
7369 shlibpath_overrides_runpath=yes
7370 if test "$with_gnu_ld" = yes; then
7371 need_lib_prefix=no
7372 fi
7373 need_version=yes
7374 ;;
7375
7376sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7377 version_type=linux
7378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379 soname_spec='${libname}${release}${shared_ext}$major'
7380 shlibpath_var=LD_LIBRARY_PATH
7381 case $host_vendor in
7382 sni)
7383 shlibpath_overrides_runpath=no
7384 need_lib_prefix=no
7385 export_dynamic_flag_spec='${wl}-Blargedynsym'
7386 runpath_var=LD_RUN_PATH
7387 ;;
7388 siemens)
7389 need_lib_prefix=no
7390 ;;
7391 motorola)
7392 need_lib_prefix=no
7393 need_version=no
7394 shlibpath_overrides_runpath=no
7395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7396 ;;
7397 esac
7398 ;;
7399
7400sysv4*MP*)
7401 if test -d /usr/nec ;then
7402 version_type=linux
7403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7404 soname_spec='$libname${shared_ext}.$major'
7405 shlibpath_var=LD_LIBRARY_PATH
7406 fi
7407 ;;
7408
7409uts4*)
7410 version_type=linux
7411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7412 soname_spec='${libname}${release}${shared_ext}$major'
7413 shlibpath_var=LD_LIBRARY_PATH
7414 ;;
7415
7416*)
7417 dynamic_linker=no
7418 ;;
7419esac
7420echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7421echo "${ECHO_T}$dynamic_linker" >&6
7422test "$dynamic_linker" = no && can_build_shared=no
7423
7424if test "x$enable_dlopen" != xyes; then
7425 enable_dlopen=unknown
7426 enable_dlopen_self=unknown
7427 enable_dlopen_self_static=unknown
7428else
7429 lt_cv_dlopen=no
7430 lt_cv_dlopen_libs=
7431
7432 case $host_os in
7433 beos*)
7434 lt_cv_dlopen="load_add_on"
7435 lt_cv_dlopen_libs=
7436 lt_cv_dlopen_self=yes
7437 ;;
7438
7439 mingw* | pw32*)
7440 lt_cv_dlopen="LoadLibrary"
7441 lt_cv_dlopen_libs=
7442 ;;
7443
7444 cygwin*)
7445 lt_cv_dlopen="dlopen"
7446 lt_cv_dlopen_libs=
7447 ;;
7448
7449 darwin*)
7450 # if libdl is installed we need to link against it
7451 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7452echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7453if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456 ac_check_lib_save_LIBS=$LIBS
7457LIBS="-ldl $LIBS"
7458cat >conftest.$ac_ext <<_ACEOF
7459/* confdefs.h. */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h. */
7464
7465/* Override any gcc2 internal prototype to avoid an error. */
7466#ifdef __cplusplus
7467extern "C"
7468#endif
7469/* We use char because int might match the return type of a gcc2
7470 builtin and then its argument prototype would still apply. */
7471char dlopen ();
7472int
7473main ()
7474{
7475dlopen ();
7476 ;
7477 return 0;
7478}
7479_ACEOF
7480rm -f conftest.$ac_objext conftest$ac_exeext
7481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -z "$ac_c_werror_flag"
7490 || test ! -s conftest.err'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 (eval $ac_try) 2>&5
7493 ac_status=$?
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; } &&
7496 { ac_try='test -s conftest$ac_exeext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_cv_lib_dl_dlopen=yes
7503else
7504 echo "$as_me: failed program was:" >&5
7505sed 's/^/| /' conftest.$ac_ext >&5
7506
7507ac_cv_lib_dl_dlopen=no
7508fi
7509rm -f conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511LIBS=$ac_check_lib_save_LIBS
7512fi
7513echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7514echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7515if test $ac_cv_lib_dl_dlopen = yes; then
7516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7517else
7518
7519 lt_cv_dlopen="dyld"
7520 lt_cv_dlopen_libs=
7521 lt_cv_dlopen_self=yes
7522
7523fi
7524
7525 ;;
7526
7527 *)
7528 echo "$as_me:$LINENO: checking for shl_load" >&5
7529echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7530if test "${ac_cv_func_shl_load+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533 cat >conftest.$ac_ext <<_ACEOF
7534/* confdefs.h. */
7535_ACEOF
7536cat confdefs.h >>conftest.$ac_ext
7537cat >>conftest.$ac_ext <<_ACEOF
7538/* end confdefs.h. */
7539/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7541#define shl_load innocuous_shl_load
7542
7543/* System header to define __stub macros and hopefully few prototypes,
7544 which can conflict with char shl_load (); below.
7545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7546 <limits.h> exists even on freestanding compilers. */
7547
7548#ifdef __STDC__
7549# include <limits.h>
7550#else
7551# include <assert.h>
7552#endif
7553
7554#undef shl_load
7555
7556/* Override any gcc2 internal prototype to avoid an error. */
7557#ifdef __cplusplus
7558extern "C"
7559{
7560#endif
7561/* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7563char shl_load ();
7564/* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567#if defined (__stub_shl_load) || defined (__stub___shl_load)
7568choke me
7569#else
7570char (*f) () = shl_load;
7571#endif
7572#ifdef __cplusplus
7573}
7574#endif
7575
7576int
7577main ()
7578{
7579return f != shl_load;
7580 ;
7581 return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext conftest$ac_exeext
7585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>conftest.er1
7587 ac_status=$?
7588 grep -v '^ *+' conftest.er1 >conftest.err
7589 rm -f conftest.er1
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_func_shl_load=yes
7607else
7608 echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7611ac_cv_func_shl_load=no
7612fi
7613rm -f conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7615fi
7616echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7617echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7618if test $ac_cv_func_shl_load = yes; then
7619 lt_cv_dlopen="shl_load"
7620else
7621 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7622echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7623if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626 ac_check_lib_save_LIBS=$LIBS
7627LIBS="-ldld $LIBS"
7628cat >conftest.$ac_ext <<_ACEOF
7629/* confdefs.h. */
7630_ACEOF
7631cat confdefs.h >>conftest.$ac_ext
7632cat >>conftest.$ac_ext <<_ACEOF
7633/* end confdefs.h. */
7634
7635/* Override any gcc2 internal prototype to avoid an error. */
7636#ifdef __cplusplus
7637extern "C"
7638#endif
7639/* We use char because int might match the return type of a gcc2
7640 builtin and then its argument prototype would still apply. */
7641char shl_load ();
7642int
7643main ()
7644{
7645shl_load ();
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext conftest$ac_exeext
7651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7652 (eval $ac_link) 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try='test -z "$ac_c_werror_flag"
7660 || test ! -s conftest.err'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 (eval $ac_try) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest$ac_exeext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_cv_lib_dld_shl_load=yes
7673else
7674 echo "$as_me: failed program was:" >&5
7675sed 's/^/| /' conftest.$ac_ext >&5
7676
7677ac_cv_lib_dld_shl_load=no
7678fi
7679rm -f conftest.err conftest.$ac_objext \
7680 conftest$ac_exeext conftest.$ac_ext
7681LIBS=$ac_check_lib_save_LIBS
7682fi
7683echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7684echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7685if test $ac_cv_lib_dld_shl_load = yes; then
7686 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7687else
7688 echo "$as_me:$LINENO: checking for dlopen" >&5
7689echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7690if test "${ac_cv_func_dlopen+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692else
7693 cat >conftest.$ac_ext <<_ACEOF
7694/* confdefs.h. */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
7698/* end confdefs.h. */
7699/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7701#define dlopen innocuous_dlopen
7702
7703/* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char dlopen (); below.
7705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 <limits.h> exists even on freestanding compilers. */
7707
7708#ifdef __STDC__
7709# include <limits.h>
7710#else
7711# include <assert.h>
7712#endif
7713
7714#undef dlopen
7715
7716/* Override any gcc2 internal prototype to avoid an error. */
7717#ifdef __cplusplus
7718extern "C"
7719{
7720#endif
7721/* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7723char dlopen ();
7724/* The GNU C library defines this for functions which it implements
7725 to always fail with ENOSYS. Some functions are actually named
7726 something starting with __ and the normal name is an alias. */
7727#if defined (__stub_dlopen) || defined (__stub___dlopen)
7728choke me
7729#else
7730char (*f) () = dlopen;
7731#endif
7732#ifdef __cplusplus
7733}
7734#endif
7735
7736int
7737main ()
7738{
7739return f != dlopen;
7740 ;
7741 return 0;
7742}
7743_ACEOF
7744rm -f conftest.$ac_objext conftest$ac_exeext
7745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -z "$ac_c_werror_flag"
7754 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 (eval $ac_try) 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_cv_func_dlopen=yes
7767else
7768 echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7771ac_cv_func_dlopen=no
7772fi
7773rm -f conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7775fi
7776echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7777echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7778if test $ac_cv_func_dlopen = yes; then
7779 lt_cv_dlopen="dlopen"
7780else
7781 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7782echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7783if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785else
7786 ac_check_lib_save_LIBS=$LIBS
7787LIBS="-ldl $LIBS"
7788cat >conftest.$ac_ext <<_ACEOF
7789/* confdefs.h. */
7790_ACEOF
7791cat confdefs.h >>conftest.$ac_ext
7792cat >>conftest.$ac_ext <<_ACEOF
7793/* end confdefs.h. */
7794
7795/* Override any gcc2 internal prototype to avoid an error. */
7796#ifdef __cplusplus
7797extern "C"
7798#endif
7799/* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7801char dlopen ();
7802int
7803main ()
7804{
7805dlopen ();
7806 ;
7807 return 0;
7808}
7809_ACEOF
7810rm -f conftest.$ac_objext conftest$ac_exeext
7811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_dl_dlopen=yes
7833else
7834 echo "$as_me: failed program was:" >&5
7835sed 's/^/| /' conftest.$ac_ext >&5
7836
7837ac_cv_lib_dl_dlopen=no
7838fi
7839rm -f conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841LIBS=$ac_check_lib_save_LIBS
7842fi
7843echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7844echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7845if test $ac_cv_lib_dl_dlopen = yes; then
7846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7847else
7848 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7849echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7850if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853 ac_check_lib_save_LIBS=$LIBS
7854LIBS="-lsvld $LIBS"
7855cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
7861
7862/* Override any gcc2 internal prototype to avoid an error. */
7863#ifdef __cplusplus
7864extern "C"
7865#endif
7866/* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7868char dlopen ();
7869int
7870main ()
7871{
7872dlopen ();
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877rm -f conftest.$ac_objext conftest$ac_exeext
7878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879 (eval $ac_link) 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 ac_cv_lib_svld_dlopen=yes
7900else
7901 echo "$as_me: failed program was:" >&5
7902sed 's/^/| /' conftest.$ac_ext >&5
7903
7904ac_cv_lib_svld_dlopen=no
7905fi
7906rm -f conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908LIBS=$ac_check_lib_save_LIBS
7909fi
7910echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7911echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7912if test $ac_cv_lib_svld_dlopen = yes; then
7913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7914else
7915 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7916echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7917if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920 ac_check_lib_save_LIBS=$LIBS
7921LIBS="-ldld $LIBS"
7922cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928
7929/* Override any gcc2 internal prototype to avoid an error. */
7930#ifdef __cplusplus
7931extern "C"
7932#endif
7933/* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935char dld_link ();
7936int
7937main ()
7938{
7939dld_link ();
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext conftest$ac_exeext
7945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 (eval $ac_try) 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_lib_dld_dld_link=yes
7967else
7968 echo "$as_me: failed program was:" >&5
7969sed 's/^/| /' conftest.$ac_ext >&5
7970
7971ac_cv_lib_dld_dld_link=no
7972fi
7973rm -f conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975LIBS=$ac_check_lib_save_LIBS
7976fi
7977echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7978echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7979if test $ac_cv_lib_dld_dld_link = yes; then
7980 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7981fi
7982
7983
7984fi
7985
7986
7987fi
7988
7989
7990fi
7991
7992
7993fi
7994
7995
7996fi
7997
7998 ;;
7999 esac
8000
8001 if test "x$lt_cv_dlopen" != xno; then
8002 enable_dlopen=yes
8003 else
8004 enable_dlopen=no
8005 fi
8006
8007 case $lt_cv_dlopen in
8008 dlopen)
8009 save_CPPFLAGS="$CPPFLAGS"
8010 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8011
8012 save_LDFLAGS="$LDFLAGS"
8013 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8014
8015 save_LIBS="$LIBS"
8016 LIBS="$lt_cv_dlopen_libs $LIBS"
8017
8018 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8019echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8020if test "${lt_cv_dlopen_self+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023 if test "$cross_compiling" = yes; then :
8024 lt_cv_dlopen_self=cross
8025else
8026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8027 lt_status=$lt_dlunknown
8028 cat > conftest.$ac_ext <<EOF
Reid Spencerbb874262004-12-27 08:51:55 +00008029#line 8029 "configure"
Reid Spencer011f5ca2004-09-15 06:19:53 +00008030#include "confdefs.h"
8031
8032#if HAVE_DLFCN_H
8033#include <dlfcn.h>
8034#endif
8035
8036#include <stdio.h>
8037
8038#ifdef RTLD_GLOBAL
8039# define LT_DLGLOBAL RTLD_GLOBAL
8040#else
8041# ifdef DL_GLOBAL
8042# define LT_DLGLOBAL DL_GLOBAL
8043# else
8044# define LT_DLGLOBAL 0
8045# endif
8046#endif
8047
8048/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8049 find out it does not work in some platform. */
8050#ifndef LT_DLLAZY_OR_NOW
8051# ifdef RTLD_LAZY
8052# define LT_DLLAZY_OR_NOW RTLD_LAZY
8053# else
8054# ifdef DL_LAZY
8055# define LT_DLLAZY_OR_NOW DL_LAZY
8056# else
8057# ifdef RTLD_NOW
8058# define LT_DLLAZY_OR_NOW RTLD_NOW
8059# else
8060# ifdef DL_NOW
8061# define LT_DLLAZY_OR_NOW DL_NOW
8062# else
8063# define LT_DLLAZY_OR_NOW 0
8064# endif
8065# endif
8066# endif
8067# endif
8068#endif
8069
8070#ifdef __cplusplus
8071extern "C" void exit (int);
8072#endif
8073
8074void fnord() { int i=42;}
8075int main ()
8076{
8077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8078 int status = $lt_dlunknown;
8079
8080 if (self)
8081 {
8082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8084 /* dlclose (self); */
8085 }
8086
8087 exit (status);
8088}
8089EOF
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8095 (./conftest; exit; ) 2>/dev/null
8096 lt_status=$?
8097 case x$lt_status in
8098 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8099 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8100 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8101 esac
8102 else :
8103 # compilation failed
8104 lt_cv_dlopen_self=no
8105 fi
8106fi
8107rm -fr conftest*
8108
8109
8110fi
8111echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8112echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8113
8114 if test "x$lt_cv_dlopen_self" = xyes; then
8115 LDFLAGS="$LDFLAGS $link_static_flag"
8116 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8117echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8118if test "${lt_cv_dlopen_self_static+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121 if test "$cross_compiling" = yes; then :
8122 lt_cv_dlopen_self_static=cross
8123else
8124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8125 lt_status=$lt_dlunknown
8126 cat > conftest.$ac_ext <<EOF
Reid Spencerbb874262004-12-27 08:51:55 +00008127#line 8127 "configure"
Reid Spencer011f5ca2004-09-15 06:19:53 +00008128#include "confdefs.h"
8129
8130#if HAVE_DLFCN_H
8131#include <dlfcn.h>
8132#endif
8133
8134#include <stdio.h>
8135
8136#ifdef RTLD_GLOBAL
8137# define LT_DLGLOBAL RTLD_GLOBAL
8138#else
8139# ifdef DL_GLOBAL
8140# define LT_DLGLOBAL DL_GLOBAL
8141# else
8142# define LT_DLGLOBAL 0
8143# endif
8144#endif
8145
8146/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8147 find out it does not work in some platform. */
8148#ifndef LT_DLLAZY_OR_NOW
8149# ifdef RTLD_LAZY
8150# define LT_DLLAZY_OR_NOW RTLD_LAZY
8151# else
8152# ifdef DL_LAZY
8153# define LT_DLLAZY_OR_NOW DL_LAZY
8154# else
8155# ifdef RTLD_NOW
8156# define LT_DLLAZY_OR_NOW RTLD_NOW
8157# else
8158# ifdef DL_NOW
8159# define LT_DLLAZY_OR_NOW DL_NOW
8160# else
8161# define LT_DLLAZY_OR_NOW 0
8162# endif
8163# endif
8164# endif
8165# endif
8166#endif
8167
8168#ifdef __cplusplus
8169extern "C" void exit (int);
8170#endif
8171
8172void fnord() { int i=42;}
8173int main ()
8174{
8175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8176 int status = $lt_dlunknown;
8177
8178 if (self)
8179 {
8180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8182 /* dlclose (self); */
8183 }
8184
8185 exit (status);
8186}
8187EOF
8188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189 (eval $ac_link) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8193 (./conftest; exit; ) 2>/dev/null
8194 lt_status=$?
8195 case x$lt_status in
8196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8198 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8199 esac
8200 else :
8201 # compilation failed
8202 lt_cv_dlopen_self_static=no
8203 fi
8204fi
8205rm -fr conftest*
8206
8207
8208fi
8209echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8210echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8211 fi
8212
8213 CPPFLAGS="$save_CPPFLAGS"
8214 LDFLAGS="$save_LDFLAGS"
8215 LIBS="$save_LIBS"
8216 ;;
8217 esac
8218
8219 case $lt_cv_dlopen_self in
8220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8221 *) enable_dlopen_self=unknown ;;
8222 esac
8223
8224 case $lt_cv_dlopen_self_static in
8225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8226 *) enable_dlopen_self_static=unknown ;;
8227 esac
8228fi
8229
8230
8231# Report which librarie types wil actually be built
8232echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8233echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8234echo "$as_me:$LINENO: result: $can_build_shared" >&5
8235echo "${ECHO_T}$can_build_shared" >&6
8236
8237echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8238echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8239test "$can_build_shared" = "no" && enable_shared=no
8240
8241# On AIX, shared libraries and static libraries use the same namespace, and
8242# are all built from PIC.
8243case "$host_os" in
8244aix3*)
8245 test "$enable_shared" = yes && enable_static=no
8246 if test -n "$RANLIB"; then
8247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8248 postinstall_cmds='$RANLIB $lib'
8249 fi
8250 ;;
8251
8252aix4*)
8253 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8254 test "$enable_shared" = yes && enable_static=no
8255 fi
8256 ;;
8257 darwin* | rhapsody*)
8258 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8259 archive_cmds_need_lc=no
8260 case "$host_os" in
8261 rhapsody* | darwin1.[012])
8262 allow_undefined_flag='-undefined suppress'
8263 ;;
8264 *) # Darwin 1.3 on
8265 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8266 ;;
8267 esac
8268 # FIXME: Relying on posixy $() will cause problems for
8269 # cross-compilation, but unfortunately the echo tests do not
8270 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8271 # `"' quotes if we put them in here... so don't!
8272 output_verbose_link_cmd='echo'
8273 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8274 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8275 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8276 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}'
8277 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8278 hardcode_direct=no
8279 hardcode_automatic=yes
8280 hardcode_shlibpath_var=unsupported
8281 whole_archive_flag_spec='-all_load $convenience'
8282 link_all_deplibs=yes
8283 fi
8284 ;;
8285esac
8286echo "$as_me:$LINENO: result: $enable_shared" >&5
8287echo "${ECHO_T}$enable_shared" >&6
8288
8289echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8290echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8291# Make sure either enable_shared or enable_static is yes.
8292test "$enable_shared" = yes || enable_static=yes
8293echo "$as_me:$LINENO: result: $enable_static" >&5
8294echo "${ECHO_T}$enable_static" >&6
8295
8296# The else clause should only fire when bootstrapping the
8297# libtool distribution, otherwise you forgot to ship ltmain.sh
8298# with your package, and you will get complaints that there are
8299# no rules to generate ltmain.sh.
8300if test -f "$ltmain"; then
8301 # See if we are running on zsh, and set the options which allow our commands through
8302 # without removal of \ escapes.
8303 if test -n "${ZSH_VERSION+set}" ; then
8304 setopt NO_GLOB_SUBST
8305 fi
8306 # Now quote all the things that may contain metacharacters while being
8307 # careful not to overquote the AC_SUBSTed values. We take copies of the
8308 # variables and quote the copies for generation of the libtool script.
8309 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8312 deplibs_check_method reload_flag reload_cmds need_locks \
8313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8314 lt_cv_sys_global_symbol_to_c_name_address \
8315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8316 old_postinstall_cmds old_postuninstall_cmds \
8317 compiler \
8318 CC \
8319 LD \
8320 lt_prog_compiler_wl \
8321 lt_prog_compiler_pic \
8322 lt_prog_compiler_static \
8323 lt_prog_compiler_no_builtin_flag \
8324 export_dynamic_flag_spec \
8325 thread_safe_flag_spec \
8326 whole_archive_flag_spec \
8327 enable_shared_with_static_runtimes \
8328 old_archive_cmds \
8329 old_archive_from_new_cmds \
8330 predep_objects \
8331 postdep_objects \
8332 predeps \
8333 postdeps \
8334 compiler_lib_search_path \
8335 archive_cmds \
8336 archive_expsym_cmds \
8337 postinstall_cmds \
8338 postuninstall_cmds \
8339 old_archive_from_expsyms_cmds \
8340 allow_undefined_flag \
8341 no_undefined_flag \
8342 export_symbols_cmds \
8343 hardcode_libdir_flag_spec \
8344 hardcode_libdir_flag_spec_ld \
8345 hardcode_libdir_separator \
8346 hardcode_automatic \
8347 module_cmds \
8348 module_expsym_cmds \
8349 lt_cv_prog_compiler_c_o \
8350 exclude_expsyms \
8351 include_expsyms; do
8352
8353 case $var in
8354 old_archive_cmds | \
8355 old_archive_from_new_cmds | \
8356 archive_cmds | \
8357 archive_expsym_cmds | \
8358 module_cmds | \
8359 module_expsym_cmds | \
8360 old_archive_from_expsyms_cmds | \
8361 export_symbols_cmds | \
8362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8363 postinstall_cmds | postuninstall_cmds | \
8364 old_postinstall_cmds | old_postuninstall_cmds | \
8365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8366 # Double-quote double-evaled strings.
8367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8368 ;;
8369 *)
8370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8371 ;;
8372 esac
8373 done
8374
8375 case $lt_echo in
8376 *'\$0 --fallback-echo"')
8377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8378 ;;
8379 esac
8380
8381cfgfile="${ofile}T"
8382 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8383 $rm -f "$cfgfile"
8384 { echo "$as_me:$LINENO: creating $ofile" >&5
8385echo "$as_me: creating $ofile" >&6;}
8386
8387 cat <<__EOF__ >> "$cfgfile"
8388#! $SHELL
8389
8390# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8391# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8392# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8393#
8394# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8395# Free Software Foundation, Inc.
8396#
8397# This file is part of GNU Libtool:
8398# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8399#
8400# This program is free software; you can redistribute it and/or modify
8401# it under the terms of the GNU General Public License as published by
8402# the Free Software Foundation; either version 2 of the License, or
8403# (at your option) any later version.
8404#
8405# This program is distributed in the hope that it will be useful, but
8406# WITHOUT ANY WARRANTY; without even the implied warranty of
8407# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8408# General Public License for more details.
8409#
8410# You should have received a copy of the GNU General Public License
8411# along with this program; if not, write to the Free Software
8412# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8413#
8414# As a special exception to the GNU General Public License, if you
8415# distribute this file as part of a program that contains a
8416# configuration script generated by Autoconf, you may include it under
8417# the same distribution terms that you use for the rest of that program.
8418
8419# A sed program that does not truncate output.
8420SED=$lt_SED
8421
8422# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8423Xsed="$SED -e s/^X//"
8424
8425# The HP-UX ksh and POSIX shell print the target directory to stdout
8426# if CDPATH is set.
8427if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8428
8429# The names of the tagged configurations supported by this script.
8430available_tags=
8431
8432# ### BEGIN LIBTOOL CONFIG
8433
8434# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8435
8436# Shell to use when invoking shell scripts.
8437SHELL=$lt_SHELL
8438
8439# Whether or not to build shared libraries.
8440build_libtool_libs=$enable_shared
8441
8442# Whether or not to build static libraries.
8443build_old_libs=$enable_static
8444
8445# Whether or not to add -lc for building shared libraries.
8446build_libtool_need_lc=$archive_cmds_need_lc
8447
8448# Whether or not to disallow shared libs when runtime libs are static
8449allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8450
8451# Whether or not to optimize for fast installation.
8452fast_install=$enable_fast_install
8453
8454# The host system.
8455host_alias=$host_alias
8456host=$host
8457
8458# An echo program that does not interpret backslashes.
8459echo=$lt_echo
8460
8461# The archiver.
8462AR=$lt_AR
8463AR_FLAGS=$lt_AR_FLAGS
8464
8465# A C compiler.
8466LTCC=$lt_LTCC
8467
8468# A language-specific compiler.
8469CC=$lt_compiler
8470
8471# Is the compiler the GNU C compiler?
8472with_gcc=$GCC
8473
8474# An ERE matcher.
8475EGREP=$lt_EGREP
8476
8477# The linker used to build libraries.
8478LD=$lt_LD
8479
8480# Whether we need hard or soft links.
8481LN_S=$lt_LN_S
8482
8483# A BSD-compatible nm program.
8484NM=$lt_NM
8485
8486# A symbol stripping program
8487STRIP=$STRIP
8488
8489# Used to examine libraries when file_magic_cmd begins "file"
8490MAGIC_CMD=$MAGIC_CMD
8491
8492# Used on cygwin: DLL creation program.
8493DLLTOOL="$DLLTOOL"
8494
8495# Used on cygwin: object dumper.
8496OBJDUMP="$OBJDUMP"
8497
8498# Used on cygwin: assembler.
8499AS="$AS"
8500
8501# The name of the directory that contains temporary libtool files.
8502objdir=$objdir
8503
8504# How to create reloadable object files.
8505reload_flag=$lt_reload_flag
8506reload_cmds=$lt_reload_cmds
8507
8508# How to pass a linker flag through the compiler.
8509wl=$lt_lt_prog_compiler_wl
8510
8511# Object file suffix (normally "o").
8512objext="$ac_objext"
8513
8514# Old archive suffix (normally "a").
8515libext="$libext"
8516
8517# Shared library suffix (normally ".so").
8518shrext='$shrext'
8519
8520# Executable file suffix (normally "").
8521exeext="$exeext"
8522
8523# Additional compiler flags for building library objects.
8524pic_flag=$lt_lt_prog_compiler_pic
8525pic_mode=$pic_mode
8526
8527# What is the maximum length of a command?
8528max_cmd_len=$lt_cv_sys_max_cmd_len
8529
8530# Does compiler simultaneously support -c and -o options?
8531compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8532
8533# Must we lock files when doing compilation ?
8534need_locks=$lt_need_locks
8535
8536# Do we need the lib prefix for modules?
8537need_lib_prefix=$need_lib_prefix
8538
8539# Do we need a version for libraries?
8540need_version=$need_version
8541
8542# Whether dlopen is supported.
8543dlopen_support=$enable_dlopen
8544
8545# Whether dlopen of programs is supported.
8546dlopen_self=$enable_dlopen_self
8547
8548# Whether dlopen of statically linked programs is supported.
8549dlopen_self_static=$enable_dlopen_self_static
8550
8551# Compiler flag to prevent dynamic linking.
8552link_static_flag=$lt_lt_prog_compiler_static
8553
8554# Compiler flag to turn off builtin functions.
8555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8556
8557# Compiler flag to allow reflexive dlopens.
8558export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8559
8560# Compiler flag to generate shared objects directly from archives.
8561whole_archive_flag_spec=$lt_whole_archive_flag_spec
8562
8563# Compiler flag to generate thread-safe objects.
8564thread_safe_flag_spec=$lt_thread_safe_flag_spec
8565
8566# Library versioning type.
8567version_type=$version_type
8568
8569# Format of library name prefix.
8570libname_spec=$lt_libname_spec
8571
8572# List of archive names. First name is the real one, the rest are links.
8573# The last name is the one that the linker finds with -lNAME.
8574library_names_spec=$lt_library_names_spec
8575
8576# The coded name of the library, if different from the real name.
8577soname_spec=$lt_soname_spec
8578
8579# Commands used to build and install an old-style archive.
8580RANLIB=$lt_RANLIB
8581old_archive_cmds=$lt_old_archive_cmds
8582old_postinstall_cmds=$lt_old_postinstall_cmds
8583old_postuninstall_cmds=$lt_old_postuninstall_cmds
8584
8585# Create an old-style archive from a shared archive.
8586old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8587
8588# Create a temporary old-style archive to link instead of a shared archive.
8589old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8590
8591# Commands used to build and install a shared archive.
8592archive_cmds=$lt_archive_cmds
8593archive_expsym_cmds=$lt_archive_expsym_cmds
8594postinstall_cmds=$lt_postinstall_cmds
8595postuninstall_cmds=$lt_postuninstall_cmds
8596
8597# Commands used to build a loadable module (assumed same as above if empty)
8598module_cmds=$lt_module_cmds
8599module_expsym_cmds=$lt_module_expsym_cmds
8600
8601# Commands to strip libraries.
8602old_striplib=$lt_old_striplib
8603striplib=$lt_striplib
8604
8605# Dependencies to place before the objects being linked to create a
8606# shared library.
8607predep_objects=$lt_predep_objects
8608
8609# Dependencies to place after the objects being linked to create a
8610# shared library.
8611postdep_objects=$lt_postdep_objects
8612
8613# Dependencies to place before the objects being linked to create a
8614# shared library.
8615predeps=$lt_predeps
8616
8617# Dependencies to place after the objects being linked to create a
8618# shared library.
8619postdeps=$lt_postdeps
8620
8621# The library search path used internally by the compiler when linking
8622# a shared library.
8623compiler_lib_search_path=$lt_compiler_lib_search_path
8624
8625# Method to check whether dependent libraries are shared objects.
8626deplibs_check_method=$lt_deplibs_check_method
8627
8628# Command to use when deplibs_check_method == file_magic.
8629file_magic_cmd=$lt_file_magic_cmd
8630
8631# Flag that allows shared libraries with undefined symbols to be built.
8632allow_undefined_flag=$lt_allow_undefined_flag
8633
8634# Flag that forces no undefined symbols.
8635no_undefined_flag=$lt_no_undefined_flag
8636
8637# Commands used to finish a libtool library installation in a directory.
8638finish_cmds=$lt_finish_cmds
8639
8640# Same as above, but a single script fragment to be evaled but not shown.
8641finish_eval=$lt_finish_eval
8642
8643# Take the output of nm and produce a listing of raw symbols and C names.
8644global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8645
8646# Transform the output of nm in a proper C declaration
8647global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8648
8649# Transform the output of nm in a C name address pair
8650global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8651
8652# This is the shared library runtime path variable.
8653runpath_var=$runpath_var
8654
8655# This is the shared library path variable.
8656shlibpath_var=$shlibpath_var
8657
8658# Is shlibpath searched before the hard-coded library search path?
8659shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8660
8661# How to hardcode a shared library path into an executable.
8662hardcode_action=$hardcode_action
8663
8664# Whether we should hardcode library paths into libraries.
8665hardcode_into_libs=$hardcode_into_libs
8666
8667# Flag to hardcode \$libdir into a binary during linking.
8668# This must work even if \$libdir does not exist.
8669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8670
8671# If ld is used when linking, flag to hardcode \$libdir into
8672# a binary during linking. This must work even if \$libdir does
8673# not exist.
8674hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8675
8676# Whether we need a single -rpath flag with a separated argument.
8677hardcode_libdir_separator=$lt_hardcode_libdir_separator
8678
8679# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8680# resulting binary.
8681hardcode_direct=$hardcode_direct
8682
8683# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8684# resulting binary.
8685hardcode_minus_L=$hardcode_minus_L
8686
8687# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8688# the resulting binary.
8689hardcode_shlibpath_var=$hardcode_shlibpath_var
8690
8691# Set to yes if building a shared library automatically hardcodes DIR into the library
8692# and all subsequent libraries and executables linked against it.
8693hardcode_automatic=$hardcode_automatic
8694
8695# Variables whose values should be saved in libtool wrapper scripts and
8696# restored at relink time.
8697variables_saved_for_relink="$variables_saved_for_relink"
8698
8699# Whether libtool must link a program against all its dependency libraries.
8700link_all_deplibs=$link_all_deplibs
8701
8702# Compile-time system search path for libraries
8703sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8704
8705# Run-time system search path for libraries
8706sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8707
8708# Fix the shell variable \$srcfile for the compiler.
8709fix_srcfile_path="$fix_srcfile_path"
8710
8711# Set to yes if exported symbols are required.
8712always_export_symbols=$always_export_symbols
8713
8714# The commands to list exported symbols.
8715export_symbols_cmds=$lt_export_symbols_cmds
8716
8717# The commands to extract the exported symbol list from a shared archive.
8718extract_expsyms_cmds=$lt_extract_expsyms_cmds
8719
8720# Symbols that should not be listed in the preloaded symbols.
8721exclude_expsyms=$lt_exclude_expsyms
8722
8723# Symbols that must always be exported.
8724include_expsyms=$lt_include_expsyms
8725
8726# ### END LIBTOOL CONFIG
8727
8728__EOF__
8729
8730
8731 case $host_os in
8732 aix3*)
8733 cat <<\EOF >> "$cfgfile"
8734
8735# AIX sometimes has problems with the GCC collect2 program. For some
8736# reason, if we set the COLLECT_NAMES environment variable, the problems
8737# vanish in a puff of smoke.
8738if test "X${COLLECT_NAMES+set}" != Xset; then
8739 COLLECT_NAMES=
8740 export COLLECT_NAMES
8741fi
8742EOF
8743 ;;
8744 esac
8745
8746 # We use sed instead of cat because bash on DJGPP gets confused if
8747 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8748 # text mode, it properly converts lines to CR/LF. This bash problem
8749 # is reportedly fixed, but why not run on old versions too?
8750 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8751
8752 mv -f "$cfgfile" "$ofile" || \
8753 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8754 chmod +x "$ofile"
8755
8756else
8757 # If there is no Makefile yet, we rely on a make rule to execute
8758 # `config.status --recheck' to rerun these tests and create the
8759 # libtool script then.
8760 test -f Makefile && make "$ltmain"
8761fi
8762
8763
8764ac_ext=c
8765ac_cpp='$CPP $CPPFLAGS'
8766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8768ac_compiler_gnu=$ac_cv_c_compiler_gnu
8769
8770CC="$lt_save_CC"
8771
8772
8773# Check whether --with-tags or --without-tags was given.
8774if test "${with_tags+set}" = set; then
8775 withval="$with_tags"
8776 tagnames="$withval"
8777fi;
8778
8779if test -f "$ltmain" && test -n "$tagnames"; then
8780 if test ! -f "${ofile}"; then
8781 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8782echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8783 fi
8784
8785 if test -z "$LTCC"; then
8786 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8787 if test -z "$LTCC"; then
8788 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8789echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8790 else
8791 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8792echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8793 fi
8794 fi
8795
8796 # Extract list of available tagged configurations in $ofile.
8797 # Note that this assumes the entire list is on one line.
8798 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8799
8800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8801 for tagname in $tagnames; do
8802 IFS="$lt_save_ifs"
8803 # Check whether tagname contains only valid characters
8804 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8805 "") ;;
8806 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8807echo "$as_me: error: invalid tag name: $tagname" >&2;}
8808 { (exit 1); exit 1; }; }
8809 ;;
8810 esac
8811
8812 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8813 then
8814 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8815echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8816 { (exit 1); exit 1; }; }
8817 fi
8818
8819 # Update the list of available tags.
8820 if test -n "$tagname"; then
8821 echo appending configuration tag \"$tagname\" to $ofile
8822
8823 case $tagname in
8824 CXX)
8825 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8826 ac_ext=cc
8827ac_cpp='$CXXCPP $CPPFLAGS'
8828ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8831
8832
8833
8834
8835archive_cmds_need_lc_CXX=no
8836allow_undefined_flag_CXX=
8837always_export_symbols_CXX=no
8838archive_expsym_cmds_CXX=
8839export_dynamic_flag_spec_CXX=
8840hardcode_direct_CXX=no
8841hardcode_libdir_flag_spec_CXX=
8842hardcode_libdir_flag_spec_ld_CXX=
8843hardcode_libdir_separator_CXX=
8844hardcode_minus_L_CXX=no
8845hardcode_automatic_CXX=no
8846module_cmds_CXX=
8847module_expsym_cmds_CXX=
8848link_all_deplibs_CXX=unknown
8849old_archive_cmds_CXX=$old_archive_cmds
8850no_undefined_flag_CXX=
8851whole_archive_flag_spec_CXX=
8852enable_shared_with_static_runtimes_CXX=no
8853
8854# Dependencies to place before and after the object being linked:
8855predep_objects_CXX=
8856postdep_objects_CXX=
8857predeps_CXX=
8858postdeps_CXX=
8859compiler_lib_search_path_CXX=
8860
8861# Source file extension for C++ test sources.
8862ac_ext=cc
8863
8864# Object file extension for compiled C++ test sources.
8865objext=o
8866objext_CXX=$objext
8867
8868# Code to be used in simple compile tests
8869lt_simple_compile_test_code="int some_variable = 0;\n"
8870
8871# Code to be used in simple link tests
8872lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8873
8874# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8875
8876# If no C compiler was specified, use CC.
8877LTCC=${LTCC-"$CC"}
8878
8879# Allow CC to be a program name with arguments.
8880compiler=$CC
8881
8882
8883# Allow CC to be a program name with arguments.
8884lt_save_CC=$CC
8885lt_save_LD=$LD
8886lt_save_GCC=$GCC
8887GCC=$GXX
8888lt_save_with_gnu_ld=$with_gnu_ld
8889lt_save_path_LD=$lt_cv_path_LD
8890if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8891 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8892else
8893 unset lt_cv_prog_gnu_ld
8894fi
8895if test -n "${lt_cv_path_LDCXX+set}"; then
8896 lt_cv_path_LD=$lt_cv_path_LDCXX
8897else
8898 unset lt_cv_path_LD
8899fi
8900test -z "${LDCXX+set}" || LD=$LDCXX
8901CC=${CXX-"c++"}
8902compiler=$CC
8903compiler_CXX=$CC
8904cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8905
8906# We don't want -fno-exception wen compiling C++ code, so set the
8907# no_builtin_flag separately
8908if test "$GXX" = yes; then
8909 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8910else
8911 lt_prog_compiler_no_builtin_flag_CXX=
8912fi
8913
8914if test "$GXX" = yes; then
8915 # Set up default GNU C++ configuration
8916
8917
8918# Check whether --with-gnu-ld or --without-gnu-ld was given.
8919if test "${with_gnu_ld+set}" = set; then
8920 withval="$with_gnu_ld"
8921 test "$withval" = no || with_gnu_ld=yes
8922else
8923 with_gnu_ld=no
8924fi;
8925ac_prog=ld
8926if test "$GCC" = yes; then
8927 # Check if gcc -print-prog-name=ld gives a path.
8928 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8929echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8930 case $host in
8931 *-*-mingw*)
8932 # gcc leaves a trailing carriage return which upsets mingw
8933 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8934 *)
8935 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8936 esac
8937 case $ac_prog in
8938 # Accept absolute paths.
8939 [\\/]* | ?:[\\/]*)
8940 re_direlt='/[^/][^/]*/\.\./'
8941 # Canonicalize the path of ld
8942 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8943 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8944 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8945 done
8946 test -z "$LD" && LD="$ac_prog"
8947 ;;
8948 "")
8949 # If it fails, then pretend we aren't using GCC.
8950 ac_prog=ld
8951 ;;
8952 *)
8953 # If it is relative, then search for the first ld in PATH.
8954 with_gnu_ld=unknown
8955 ;;
8956 esac
8957elif test "$with_gnu_ld" = yes; then
8958 echo "$as_me:$LINENO: checking for GNU ld" >&5
8959echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8960else
8961 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8962echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8963fi
8964if test "${lt_cv_path_LD+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966else
8967 if test -z "$LD"; then
8968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8969 for ac_dir in $PATH; do
8970 IFS="$lt_save_ifs"
8971 test -z "$ac_dir" && ac_dir=.
8972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8973 lt_cv_path_LD="$ac_dir/$ac_prog"
8974 # Check to see if the program is GNU ld. I'd rather use --version,
8975 # but apparently some GNU ld's only accept -v.
8976 # Break only if it was the GNU/non-GNU ld that we prefer.
8977 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8978 *GNU* | *'with BFD'*)
8979 test "$with_gnu_ld" != no && break
8980 ;;
8981 *)
8982 test "$with_gnu_ld" != yes && break
8983 ;;
8984 esac
8985 fi
8986 done
8987 IFS="$lt_save_ifs"
8988else
8989 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8990fi
8991fi
8992
8993LD="$lt_cv_path_LD"
8994if test -n "$LD"; then
8995 echo "$as_me:$LINENO: result: $LD" >&5
8996echo "${ECHO_T}$LD" >&6
8997else
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
9000fi
9001test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9002echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9003 { (exit 1); exit 1; }; }
9004echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9005echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9006if test "${lt_cv_prog_gnu_ld+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9008else
9009 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9010case `"$LD" -v 2>&1 </dev/null` in
9011*GNU* | *'with BFD'*)
9012 lt_cv_prog_gnu_ld=yes
9013 ;;
9014*)
9015 lt_cv_prog_gnu_ld=no
9016 ;;
9017esac
9018fi
9019echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9020echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9021with_gnu_ld=$lt_cv_prog_gnu_ld
9022
9023
9024
9025 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9026 # archiving commands below assume that GNU ld is being used.
9027 if test "$with_gnu_ld" = yes; then
9028 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 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'
9030
9031 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9033
9034 # If archive_cmds runs LD, not CC, wlarc should be empty
9035 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9036 # investigate it a little bit more. (MM)
9037 wlarc='${wl}'
9038
9039 # ancient GNU ld didn't support --whole-archive et. al.
9040 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9041 grep 'no-whole-archive' > /dev/null; then
9042 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9043 else
9044 whole_archive_flag_spec_CXX=
9045 fi
9046 else
9047 with_gnu_ld=no
9048 wlarc=
9049
9050 # A generic and very simple default shared library creation
9051 # command for GNU C++ for the case where it uses the native
9052 # linker, instead of GNU ld. If possible, this setting should
9053 # overridden to take advantage of the native linker features on
9054 # the platform it is being used on.
9055 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9056 fi
9057
9058 # Commands to make compiler produce verbose output that lists
9059 # what "hidden" libraries, object files and flags are used when
9060 # linking a shared library.
9061 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9062
9063else
9064 GXX=no
9065 with_gnu_ld=no
9066 wlarc=
9067fi
9068
9069# PORTME: fill in a description of your system's C++ link characteristics
9070echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9071echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9072ld_shlibs_CXX=yes
9073case $host_os in
9074 aix3*)
9075 # FIXME: insert proper C++ library support
9076 ld_shlibs_CXX=no
9077 ;;
9078 aix4* | aix5*)
9079 if test "$host_cpu" = ia64; then
9080 # On IA64, the linker does run time linking by default, so we don't
9081 # have to do anything special.
9082 aix_use_runtimelinking=no
9083 exp_sym_flag='-Bexport'
9084 no_entry_flag=""
9085 else
9086 aix_use_runtimelinking=no
9087
9088 # Test if we are trying to use run time linking or normal
9089 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9090 # need to do runtime linking.
9091 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9092 for ld_flag in $LDFLAGS; do
9093 case $ld_flag in
9094 *-brtl*)
9095 aix_use_runtimelinking=yes
9096 break
9097 ;;
9098 esac
9099 done
9100 esac
9101
9102 exp_sym_flag='-bexport'
9103 no_entry_flag='-bnoentry'
9104 fi
9105
9106 # When large executables or shared objects are built, AIX ld can
9107 # have problems creating the table of contents. If linking a library
9108 # or program results in "error TOC overflow" add -mminimal-toc to
9109 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9110 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9111
9112 archive_cmds_CXX=''
9113 hardcode_direct_CXX=yes
9114 hardcode_libdir_separator_CXX=':'
9115 link_all_deplibs_CXX=yes
9116
9117 if test "$GXX" = yes; then
9118 case $host_os in aix4.012|aix4.012.*)
9119 # We only want to do this on AIX 4.2 and lower, the check
9120 # below for broken collect2 doesn't work under 4.3+
9121 collect2name=`${CC} -print-prog-name=collect2`
9122 if test -f "$collect2name" && \
9123 strings "$collect2name" | grep resolve_lib_name >/dev/null
9124 then
9125 # We have reworked collect2
9126 hardcode_direct_CXX=yes
9127 else
9128 # We have old collect2
9129 hardcode_direct_CXX=unsupported
9130 # It fails to find uninstalled libraries when the uninstalled
9131 # path is not listed in the libpath. Setting hardcode_minus_L
9132 # to unsupported forces relinking
9133 hardcode_minus_L_CXX=yes
9134 hardcode_libdir_flag_spec_CXX='-L$libdir'
9135 hardcode_libdir_separator_CXX=
9136 fi
9137 esac
9138 shared_flag='-shared'
9139 else
9140 # not using gcc
9141 if test "$host_cpu" = ia64; then
9142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9143 # chokes on -Wl,-G. The following line is correct:
9144 shared_flag='-G'
9145 else
9146 if test "$aix_use_runtimelinking" = yes; then
9147 shared_flag='${wl}-G'
9148 else
9149 shared_flag='${wl}-bM:SRE'
9150 fi
9151 fi
9152 fi
9153
9154 # It seems that -bexpall does not export symbols beginning with
9155 # underscore (_), so it is better to generate a list of symbols to export.
9156 always_export_symbols_CXX=yes
9157 if test "$aix_use_runtimelinking" = yes; then
9158 # Warning - without using the other runtime loading flags (-brtl),
9159 # -berok will link without error, but may produce a broken library.
9160 allow_undefined_flag_CXX='-berok'
9161 # Determine the default libpath from the value encoded in an empty executable.
9162 cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h. */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h. */
9168
9169int
9170main ()
9171{
9172
9173 ;
9174 return 0;
9175}
9176_ACEOF
9177rm -f conftest.$ac_objext conftest$ac_exeext
9178if { (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_cxx_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199
9200aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9201}'`
9202# Check for a 64-bit object if we didn't find anything.
9203if 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; }
9204}'`; fi
9205else
9206 echo "$as_me: failed program was:" >&5
9207sed 's/^/| /' conftest.$ac_ext >&5
9208
9209fi
9210rm -f conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9213
9214 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9215
9216 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9217 else
9218 if test "$host_cpu" = ia64; then
9219 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9220 allow_undefined_flag_CXX="-z nodefs"
9221 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9222 else
9223 # Determine the default libpath from the value encoded in an empty executable.
9224 cat >conftest.$ac_ext <<_ACEOF
9225/* confdefs.h. */
9226_ACEOF
9227cat confdefs.h >>conftest.$ac_ext
9228cat >>conftest.$ac_ext <<_ACEOF
9229/* end confdefs.h. */
9230
9231int
9232main ()
9233{
9234
9235 ;
9236 return 0;
9237}
9238_ACEOF
9239rm -f conftest.$ac_objext conftest$ac_exeext
9240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_cxx_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261
9262aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9263}'`
9264# Check for a 64-bit object if we didn't find anything.
9265if 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; }
9266}'`; fi
9267else
9268 echo "$as_me: failed program was:" >&5
9269sed 's/^/| /' conftest.$ac_ext >&5
9270
9271fi
9272rm -f conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9275
9276 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9277 # Warning - without using the other run time loading flags,
9278 # -berok will link without error, but may produce a broken library.
9279 no_undefined_flag_CXX=' ${wl}-bernotok'
9280 allow_undefined_flag_CXX=' ${wl}-berok'
9281 # -bexpall does not export symbols beginning with underscore (_)
9282 always_export_symbols_CXX=yes
9283 # Exported symbols can be pulled into shared objects from archives
9284 whole_archive_flag_spec_CXX=' '
9285 archive_cmds_need_lc_CXX=yes
9286 # This is similar to how AIX traditionally builds it's shared libraries.
9287 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9288 fi
9289 fi
9290 ;;
9291 chorus*)
9292 case $cc_basename in
9293 *)
9294 # FIXME: insert proper C++ library support
9295 ld_shlibs_CXX=no
9296 ;;
9297 esac
9298 ;;
9299
9300 cygwin* | mingw* | pw32*)
9301 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9302 # as there is no search path for DLLs.
9303 hardcode_libdir_flag_spec_CXX='-L$libdir'
9304 allow_undefined_flag_CXX=unsupported
9305 always_export_symbols_CXX=no
9306 enable_shared_with_static_runtimes_CXX=yes
9307
9308 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9309 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9310 # If the export-symbols file already is a .def file (1st line
9311 # is EXPORTS), use it as is; otherwise, prepend...
9312 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9313 cp $export_symbols $output_objdir/$soname.def;
9314 else
9315 echo EXPORTS > $output_objdir/$soname.def;
9316 cat $export_symbols >> $output_objdir/$soname.def;
9317 fi~
9318 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9319 else
9320 ld_shlibs_CXX=no
9321 fi
9322 ;;
9323
9324 darwin* | rhapsody*)
9325 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9326 archive_cmds_need_lc_CXX=no
9327 case "$host_os" in
9328 rhapsody* | darwin1.[012])
9329 allow_undefined_flag_CXX='-undefined suppress'
9330 ;;
9331 *) # Darwin 1.3 on
9332 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9333 ;;
9334 esac
9335 lt_int_apple_cc_single_mod=no
9336 output_verbose_link_cmd='echo'
9337 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9338 lt_int_apple_cc_single_mod=yes
9339 fi
9340 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9341 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9342 else
9343 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9344 fi
9345 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9346
9347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9348 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9349 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}'
9350 else
9351 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9352 fi
9353 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9354 hardcode_direct_CXX=no
9355 hardcode_automatic_CXX=yes
9356 hardcode_shlibpath_var_CXX=unsupported
9357 whole_archive_flag_spec_CXX='-all_load $convenience'
9358 link_all_deplibs_CXX=yes
9359 fi
9360 ;;
9361
9362 dgux*)
9363 case $cc_basename in
9364 ec++)
9365 # FIXME: insert proper C++ library support
9366 ld_shlibs_CXX=no
9367 ;;
9368 ghcx)
9369 # Green Hills C++ Compiler
9370 # FIXME: insert proper C++ library support
9371 ld_shlibs_CXX=no
9372 ;;
9373 *)
9374 # FIXME: insert proper C++ library support
9375 ld_shlibs_CXX=no
9376 ;;
9377 esac
9378 ;;
9379 freebsd12*)
9380 # C++ shared libraries reported to be fairly broken before switch to ELF
9381 ld_shlibs_CXX=no
9382 ;;
9383 freebsd-elf*)
9384 archive_cmds_need_lc_CXX=no
9385 ;;
9386 freebsd*)
9387 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9388 # conventions
9389 ld_shlibs_CXX=yes
9390 ;;
9391 gnu*)
9392 ;;
9393 hpux9*)
9394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9395 hardcode_libdir_separator_CXX=:
9396 export_dynamic_flag_spec_CXX='${wl}-E'
9397 hardcode_direct_CXX=yes
9398 hardcode_minus_L_CXX=yes # Not in the search PATH,
9399 # but as the default
9400 # location of the library.
9401
9402 case $cc_basename in
9403 CC)
9404 # FIXME: insert proper C++ library support
9405 ld_shlibs_CXX=no
9406 ;;
9407 aCC)
9408 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'
9409 # Commands to make compiler produce verbose output that lists
9410 # what "hidden" libraries, object files and flags are used when
9411 # linking a shared library.
9412 #
9413 # There doesn't appear to be a way to prevent this compiler from
9414 # explicitly linking system object files so we need to strip them
9415 # from the output so that they don't get included in the library
9416 # dependencies.
9417 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9418 ;;
9419 *)
9420 if test "$GXX" = yes; then
9421 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'
9422 else
9423 # FIXME: insert proper C++ library support
9424 ld_shlibs_CXX=no
9425 fi
9426 ;;
9427 esac
9428 ;;
9429 hpux10*|hpux11*)
9430 if test $with_gnu_ld = no; then
9431 case "$host_cpu" in
9432 hppa*64*)
9433 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9434 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9435 hardcode_libdir_separator_CXX=:
9436 ;;
9437 ia64*)
9438 hardcode_libdir_flag_spec_CXX='-L$libdir'
9439 ;;
9440 *)
9441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9442 hardcode_libdir_separator_CXX=:
9443 export_dynamic_flag_spec_CXX='${wl}-E'
9444 ;;
9445 esac
9446 fi
9447 case "$host_cpu" in
9448 hppa*64*)
9449 hardcode_direct_CXX=no
9450 hardcode_shlibpath_var_CXX=no
9451 ;;
9452 ia64*)
9453 hardcode_direct_CXX=no
9454 hardcode_shlibpath_var_CXX=no
9455 hardcode_minus_L_CXX=yes # Not in the search PATH,
9456 # but as the default
9457 # location of the library.
9458 ;;
9459 *)
9460 hardcode_direct_CXX=yes
9461 hardcode_minus_L_CXX=yes # Not in the search PATH,
9462 # but as the default
9463 # location of the library.
9464 ;;
9465 esac
9466
9467 case $cc_basename in
9468 CC)
9469 # FIXME: insert proper C++ library support
9470 ld_shlibs_CXX=no
9471 ;;
9472 aCC)
9473 case "$host_cpu" in
9474 hppa*64*|ia64*)
9475 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9476 ;;
9477 *)
9478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9479 ;;
9480 esac
9481 # Commands to make compiler produce verbose output that lists
9482 # what "hidden" libraries, object files and flags are used when
9483 # linking a shared library.
9484 #
9485 # There doesn't appear to be a way to prevent this compiler from
9486 # explicitly linking system object files so we need to strip them
9487 # from the output so that they don't get included in the library
9488 # dependencies.
9489 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'
9490 ;;
9491 *)
9492 if test "$GXX" = yes; then
9493 if test $with_gnu_ld = no; then
9494 case "$host_cpu" in
9495 ia64*|hppa*64*)
9496 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9497 ;;
9498 *)
9499 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'
9500 ;;
9501 esac
9502 fi
9503 else
9504 # FIXME: insert proper C++ library support
9505 ld_shlibs_CXX=no
9506 fi
9507 ;;
9508 esac
9509 ;;
9510 irix5* | irix6*)
9511 case $cc_basename in
9512 CC)
9513 # SGI C++
9514 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9515
9516 # Archives containing C++ object files must be created using
9517 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9518 # necessary to make sure instantiated templates are included
9519 # in the archive.
9520 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9521 ;;
9522 *)
9523 if test "$GXX" = yes; then
9524 if test "$with_gnu_ld" = no; then
9525 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9526 else
9527 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'
9528 fi
9529 fi
9530 link_all_deplibs_CXX=yes
9531 ;;
9532 esac
9533 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9534 hardcode_libdir_separator_CXX=:
9535 ;;
9536 linux*)
9537 case $cc_basename in
9538 KCC)
9539 # Kuck and Associates, Inc. (KAI) C++ Compiler
9540
9541 # KCC will only create a shared library if the output file
9542 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9543 # to its proper name (with version) after linking.
9544 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'
9545 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'
9546 # Commands to make compiler produce verbose output that lists
9547 # what "hidden" libraries, object files and flags are used when
9548 # linking a shared library.
9549 #
9550 # There doesn't appear to be a way to prevent this compiler from
9551 # explicitly linking system object files so we need to strip them
9552 # from the output so that they don't get included in the library
9553 # dependencies.
9554 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'
9555
9556 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9558
9559 # Archives containing C++ object files must be created using
9560 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9561 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9562 ;;
9563 icpc)
9564 # Intel C++
9565 with_gnu_ld=yes
9566 archive_cmds_need_lc_CXX=no
9567 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 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'
9569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9570 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9571 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9572 ;;
9573 cxx)
9574 # Compaq C++
9575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 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'
9577
9578 runpath_var=LD_RUN_PATH
9579 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9580 hardcode_libdir_separator_CXX=:
9581
9582 # Commands to make compiler produce verbose output that lists
9583 # what "hidden" libraries, object files and flags are used when
9584 # linking a shared library.
9585 #
9586 # There doesn't appear to be a way to prevent this compiler from
9587 # explicitly linking system object files so we need to strip them
9588 # from the output so that they don't get included in the library
9589 # dependencies.
9590 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'
9591 ;;
9592 esac
9593 ;;
9594 lynxos*)
9595 # FIXME: insert proper C++ library support
9596 ld_shlibs_CXX=no
9597 ;;
9598 m88k*)
9599 # FIXME: insert proper C++ library support
9600 ld_shlibs_CXX=no
9601 ;;
9602 mvs*)
9603 case $cc_basename in
9604 cxx)
9605 # FIXME: insert proper C++ library support
9606 ld_shlibs_CXX=no
9607 ;;
9608 *)
9609 # FIXME: insert proper C++ library support
9610 ld_shlibs_CXX=no
9611 ;;
9612 esac
9613 ;;
9614 netbsd*)
9615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9616 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9617 wlarc=
9618 hardcode_libdir_flag_spec_CXX='-R$libdir'
9619 hardcode_direct_CXX=yes
9620 hardcode_shlibpath_var_CXX=no
9621 fi
9622 # Workaround some broken pre-1.5 toolchains
9623 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9624 ;;
9625 osf3*)
9626 case $cc_basename in
9627 KCC)
9628 # Kuck and Associates, Inc. (KAI) C++ Compiler
9629
9630 # KCC will only create a shared library if the output file
9631 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9632 # to its proper name (with version) after linking.
9633 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'
9634
9635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9636 hardcode_libdir_separator_CXX=:
9637
9638 # Archives containing C++ object files must be created using
9639 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9640 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9641
9642 ;;
9643 RCC)
9644 # Rational C++ 2.4.1
9645 # FIXME: insert proper C++ library support
9646 ld_shlibs_CXX=no
9647 ;;
9648 cxx)
9649 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9650 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9651
9652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9653 hardcode_libdir_separator_CXX=:
9654
9655 # Commands to make compiler produce verbose output that lists
9656 # what "hidden" libraries, object files and flags are used when
9657 # linking a shared library.
9658 #
9659 # There doesn't appear to be a way to prevent this compiler from
9660 # explicitly linking system object files so we need to strip them
9661 # from the output so that they don't get included in the library
9662 # dependencies.
9663 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'
9664 ;;
9665 *)
9666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9668 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9669
9670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9671 hardcode_libdir_separator_CXX=:
9672
9673 # Commands to make compiler produce verbose output that lists
9674 # what "hidden" libraries, object files and flags are used when
9675 # linking a shared library.
9676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9677
9678 else
9679 # FIXME: insert proper C++ library support
9680 ld_shlibs_CXX=no
9681 fi
9682 ;;
9683 esac
9684 ;;
9685 osf4* | osf5*)
9686 case $cc_basename in
9687 KCC)
9688 # Kuck and Associates, Inc. (KAI) C++ Compiler
9689
9690 # KCC will only create a shared library if the output file
9691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9692 # to its proper name (with version) after linking.
9693 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'
9694
9695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9696 hardcode_libdir_separator_CXX=:
9697
9698 # Archives containing C++ object files must be created using
9699 # the KAI C++ compiler.
9700 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9701 ;;
9702 RCC)
9703 # Rational C++ 2.4.1
9704 # FIXME: insert proper C++ library support
9705 ld_shlibs_CXX=no
9706 ;;
9707 cxx)
9708 allow_undefined_flag_CXX=' -expect_unresolved \*'
9709 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9710 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9711 echo "-hidden">> $lib.exp~
9712 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9713 $rm $lib.exp'
9714
9715 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9716 hardcode_libdir_separator_CXX=:
9717
9718 # Commands to make compiler produce verbose output that lists
9719 # what "hidden" libraries, object files and flags are used when
9720 # linking a shared library.
9721 #
9722 # There doesn't appear to be a way to prevent this compiler from
9723 # explicitly linking system object files so we need to strip them
9724 # from the output so that they don't get included in the library
9725 # dependencies.
9726 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'
9727 ;;
9728 *)
9729 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9731 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9732
9733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator_CXX=:
9735
9736 # Commands to make compiler produce verbose output that lists
9737 # what "hidden" libraries, object files and flags are used when
9738 # linking a shared library.
9739 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9740
9741 else
9742 # FIXME: insert proper C++ library support
9743 ld_shlibs_CXX=no
9744 fi
9745 ;;
9746 esac
9747 ;;
9748 psos*)
9749 # FIXME: insert proper C++ library support
9750 ld_shlibs_CXX=no
9751 ;;
9752 sco*)
9753 archive_cmds_need_lc_CXX=no
9754 case $cc_basename in
9755 CC)
9756 # FIXME: insert proper C++ library support
9757 ld_shlibs_CXX=no
9758 ;;
9759 *)
9760 # FIXME: insert proper C++ library support
9761 ld_shlibs_CXX=no
9762 ;;
9763 esac
9764 ;;
9765 sunos4*)
9766 case $cc_basename in
9767 CC)
9768 # Sun C++ 4.x
9769 # FIXME: insert proper C++ library support
9770 ld_shlibs_CXX=no
9771 ;;
9772 lcc)
9773 # Lucid
9774 # FIXME: insert proper C++ library support
9775 ld_shlibs_CXX=no
9776 ;;
9777 *)
9778 # FIXME: insert proper C++ library support
9779 ld_shlibs_CXX=no
9780 ;;
9781 esac
9782 ;;
9783 solaris*)
9784 case $cc_basename in
9785 CC)
9786 # Sun C++ 4.2, 5.x and Centerline C++
9787 no_undefined_flag_CXX=' -zdefs'
9788 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9789 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9790 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9791
9792 hardcode_libdir_flag_spec_CXX='-R$libdir'
9793 hardcode_shlibpath_var_CXX=no
9794 case $host_os in
9795 solaris2.0-5 | solaris2.0-5.*) ;;
9796 *)
9797 # The C++ compiler is used as linker so we must use $wl
9798 # flag to pass the commands to the underlying system
9799 # linker.
9800 # Supported since Solaris 2.6 (maybe 2.5.1?)
9801 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9802 ;;
9803 esac
9804 link_all_deplibs_CXX=yes
9805
9806 # Commands to make compiler produce verbose output that lists
9807 # what "hidden" libraries, object files and flags are used when
9808 # linking a shared library.
9809 #
9810 # There doesn't appear to be a way to prevent this compiler from
9811 # explicitly linking system object files so we need to strip them
9812 # from the output so that they don't get included in the library
9813 # dependencies.
9814 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9815
9816 # Archives containing C++ object files must be created using
9817 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9818 # necessary to make sure instantiated templates are included
9819 # in the archive.
9820 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9821 ;;
9822 gcx)
9823 # Green Hills C++ Compiler
9824 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9825
9826 # The C++ compiler must be used to create the archive.
9827 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9828 ;;
9829 *)
9830 # GNU C++ compiler with Solaris linker
9831 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9832 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9833 if $CC --version | grep -v '^2\.7' > /dev/null; then
9834 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9835 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9836 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9837
9838 # Commands to make compiler produce verbose output that lists
9839 # what "hidden" libraries, object files and flags are used when
9840 # linking a shared library.
9841 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9842 else
9843 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9844 # platform.
9845 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9846 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9847 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9848
9849 # Commands to make compiler produce verbose output that lists
9850 # what "hidden" libraries, object files and flags are used when
9851 # linking a shared library.
9852 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9853 fi
9854
9855 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9856 fi
9857 ;;
9858 esac
9859 ;;
9860 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9861 archive_cmds_need_lc_CXX=no
9862 ;;
9863 tandem*)
9864 case $cc_basename in
9865 NCC)
9866 # NonStop-UX NCC 3.20
9867 # FIXME: insert proper C++ library support
9868 ld_shlibs_CXX=no
9869 ;;
9870 *)
9871 # FIXME: insert proper C++ library support
9872 ld_shlibs_CXX=no
9873 ;;
9874 esac
9875 ;;
9876 vxworks*)
9877 # FIXME: insert proper C++ library support
9878 ld_shlibs_CXX=no
9879 ;;
9880 *)
9881 # FIXME: insert proper C++ library support
9882 ld_shlibs_CXX=no
9883 ;;
9884esac
9885echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9886echo "${ECHO_T}$ld_shlibs_CXX" >&6
9887test "$ld_shlibs_CXX" = no && can_build_shared=no
9888
9889GCC_CXX="$GXX"
9890LD_CXX="$LD"
9891
9892## CAVEAT EMPTOR:
9893## There is no encapsulation within the following macros, do not change
9894## the running order or otherwise move them around unless you know exactly
9895## what you are doing...
9896
9897cat > conftest.$ac_ext <<EOF
9898class Foo
9899{
9900public:
9901 Foo (void) { a = 0; }
9902private:
9903 int a;
9904};
9905EOF
9906
9907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; then
9912 # Parse the compiler output and extract the necessary
9913 # objects, libraries and library flags.
9914
9915 # Sentinel used to keep track of whether or not we are before
9916 # the conftest object file.
9917 pre_test_object_deps_done=no
9918
9919 # The `*' in the case matches for architectures that use `case' in
9920 # $output_verbose_cmd can trigger glob expansion during the loop
9921 # eval without this substitution.
9922 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9923
9924 for p in `eval $output_verbose_link_cmd`; do
9925 case $p in
9926
9927 -L* | -R* | -l*)
9928 # Some compilers place space between "-{L,R}" and the path.
9929 # Remove the space.
9930 if test $p = "-L" \
9931 || test $p = "-R"; then
9932 prev=$p
9933 continue
9934 else
9935 prev=
9936 fi
9937
9938 if test "$pre_test_object_deps_done" = no; then
9939 case $p in
9940 -L* | -R*)
9941 # Internal compiler library paths should come after those
9942 # provided the user. The postdeps already come after the
9943 # user supplied libs so there is no need to process them.
9944 if test -z "$compiler_lib_search_path_CXX"; then
9945 compiler_lib_search_path_CXX="${prev}${p}"
9946 else
9947 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9948 fi
9949 ;;
9950 # The "-l" case would never come before the object being
9951 # linked, so don't bother handling this case.
9952 esac
9953 else
9954 if test -z "$postdeps_CXX"; then
9955 postdeps_CXX="${prev}${p}"
9956 else
9957 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9958 fi
9959 fi
9960 ;;
9961
9962 *.$objext)
9963 # This assumes that the test object file only shows up
9964 # once in the compiler output.
9965 if test "$p" = "conftest.$objext"; then
9966 pre_test_object_deps_done=yes
9967 continue
9968 fi
9969
9970 if test "$pre_test_object_deps_done" = no; then
9971 if test -z "$predep_objects_CXX"; then
9972 predep_objects_CXX="$p"
9973 else
9974 predep_objects_CXX="$predep_objects_CXX $p"
9975 fi
9976 else
9977 if test -z "$postdep_objects_CXX"; then
9978 postdep_objects_CXX="$p"
9979 else
9980 postdep_objects_CXX="$postdep_objects_CXX $p"
9981 fi
9982 fi
9983 ;;
9984
9985 *) ;; # Ignore the rest.
9986
9987 esac
9988 done
9989
9990 # Clean up.
9991 rm -f a.out a.exe
9992else
9993 echo "libtool.m4: error: problem compiling CXX test program"
9994fi
9995
9996$rm -f confest.$objext
9997
9998case " $postdeps_CXX " in
9999*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10000esac
10001
10002lt_prog_compiler_wl_CXX=
10003lt_prog_compiler_pic_CXX=
10004lt_prog_compiler_static_CXX=
10005
10006echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10007echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10008
10009 # C++ specific cases for pic, static, wl, etc.
10010 if test "$GXX" = yes; then
10011 lt_prog_compiler_wl_CXX='-Wl,'
10012 lt_prog_compiler_static_CXX='-static'
10013
10014 case $host_os in
10015 aix*)
10016 # All AIX code is PIC.
10017 if test "$host_cpu" = ia64; then
10018 # AIX 5 now supports IA64 processor
10019 lt_prog_compiler_static_CXX='-Bstatic'
10020 fi
10021 ;;
10022 amigaos*)
10023 # FIXME: we need at least 68020 code to build shared libraries, but
10024 # adding the `-m68020' flag to GCC prevents building anything better,
10025 # like `-m68040'.
10026 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10027 ;;
10028 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10029 # PIC is the default for these OSes.
10030 ;;
10031 mingw* | os2* | pw32*)
10032 # This hack is so that the source file can tell whether it is being
10033 # built for inclusion in a dll (and should export symbols for example).
10034 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10035 ;;
10036 darwin* | rhapsody*)
10037 # PIC is the default on this platform
10038 # Common symbols not allowed in MH_DYLIB files
10039 lt_prog_compiler_pic_CXX='-fno-common'
10040 ;;
10041 *djgpp*)
10042 # DJGPP does not support shared libraries at all
10043 lt_prog_compiler_pic_CXX=
10044 ;;
10045 sysv4*MP*)
10046 if test -d /usr/nec; then
10047 lt_prog_compiler_pic_CXX=-Kconform_pic
10048 fi
10049 ;;
10050 hpux*)
10051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10052 # not for PA HP-UX.
10053 case "$host_cpu" in
10054 hppa*64*|ia64*)
10055 ;;
10056 *)
10057 lt_prog_compiler_pic_CXX='-fPIC'
10058 ;;
10059 esac
10060 ;;
10061 *)
10062 lt_prog_compiler_pic_CXX='-fPIC'
10063 ;;
10064 esac
10065 else
10066 case $host_os in
10067 aix4* | aix5*)
10068 # All AIX code is PIC.
10069 if test "$host_cpu" = ia64; then
10070 # AIX 5 now supports IA64 processor
10071 lt_prog_compiler_static_CXX='-Bstatic'
10072 else
10073 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10074 fi
10075 ;;
10076 chorus*)
10077 case $cc_basename in
10078 cxch68)
10079 # Green Hills C++ Compiler
10080 # _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"
10081 ;;
10082 esac
10083 ;;
10084 dgux*)
10085 case $cc_basename in
10086 ec++)
10087 lt_prog_compiler_pic_CXX='-KPIC'
10088 ;;
10089 ghcx)
10090 # Green Hills C++ Compiler
10091 lt_prog_compiler_pic_CXX='-pic'
10092 ;;
10093 *)
10094 ;;
10095 esac
10096 ;;
10097 freebsd*)
10098 # FreeBSD uses GNU C++
10099 ;;
10100 hpux9* | hpux10* | hpux11*)
10101 case $cc_basename in
10102 CC)
10103 lt_prog_compiler_wl_CXX='-Wl,'
10104 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10105 if test "$host_cpu" != ia64; then
10106 lt_prog_compiler_pic_CXX='+Z'
10107 fi
10108 ;;
10109 aCC)
10110 lt_prog_compiler_wl_CXX='-Wl,'
10111 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10112 case "$host_cpu" in
10113 hppa*64*|ia64*)
10114 # +Z the default
10115 ;;
10116 *)
10117 lt_prog_compiler_pic_CXX='+Z'
10118 ;;
10119 esac
10120 ;;
10121 *)
10122 ;;
10123 esac
10124 ;;
10125 irix5* | irix6* | nonstopux*)
10126 case $cc_basename in
10127 CC)
10128 lt_prog_compiler_wl_CXX='-Wl,'
10129 lt_prog_compiler_static_CXX='-non_shared'
10130 # CC pic flag -KPIC is the default.
10131 ;;
10132 *)
10133 ;;
10134 esac
10135 ;;
10136 linux*)
10137 case $cc_basename in
10138 KCC)
10139 # KAI C++ Compiler
10140 lt_prog_compiler_wl_CXX='--backend -Wl,'
10141 lt_prog_compiler_pic_CXX='-fPIC'
10142 ;;
10143 icpc)
10144 # Intel C++
10145 lt_prog_compiler_wl_CXX='-Wl,'
10146 lt_prog_compiler_pic_CXX='-KPIC'
10147 lt_prog_compiler_static_CXX='-static'
10148 ;;
10149 cxx)
10150 # Compaq C++
10151 # Make sure the PIC flag is empty. It appears that all Alpha
10152 # Linux and Compaq Tru64 Unix objects are PIC.
10153 lt_prog_compiler_pic_CXX=
10154 lt_prog_compiler_static_CXX='-non_shared'
10155 ;;
10156 *)
10157 ;;
10158 esac
10159 ;;
10160 lynxos*)
10161 ;;
10162 m88k*)
10163 ;;
10164 mvs*)
10165 case $cc_basename in
10166 cxx)
10167 lt_prog_compiler_pic_CXX='-W c,exportall'
10168 ;;
10169 *)
10170 ;;
10171 esac
10172 ;;
10173 netbsd*)
10174 ;;
10175 osf3* | osf4* | osf5*)
10176 case $cc_basename in
10177 KCC)
10178 lt_prog_compiler_wl_CXX='--backend -Wl,'
10179 ;;
10180 RCC)
10181 # Rational C++ 2.4.1
10182 lt_prog_compiler_pic_CXX='-pic'
10183 ;;
10184 cxx)
10185 # Digital/Compaq C++
10186 lt_prog_compiler_wl_CXX='-Wl,'
10187 # Make sure the PIC flag is empty. It appears that all Alpha
10188 # Linux and Compaq Tru64 Unix objects are PIC.
10189 lt_prog_compiler_pic_CXX=
10190 lt_prog_compiler_static_CXX='-non_shared'
10191 ;;
10192 *)
10193 ;;
10194 esac
10195 ;;
10196 psos*)
10197 ;;
10198 sco*)
10199 case $cc_basename in
10200 CC)
10201 lt_prog_compiler_pic_CXX='-fPIC'
10202 ;;
10203 *)
10204 ;;
10205 esac
10206 ;;
10207 solaris*)
10208 case $cc_basename in
10209 CC)
10210 # Sun C++ 4.2, 5.x and Centerline C++
10211 lt_prog_compiler_pic_CXX='-KPIC'
10212 lt_prog_compiler_static_CXX='-Bstatic'
10213 lt_prog_compiler_wl_CXX='-Qoption ld '
10214 ;;
10215 gcx)
10216 # Green Hills C++ Compiler
10217 lt_prog_compiler_pic_CXX='-PIC'
10218 ;;
10219 *)
10220 ;;
10221 esac
10222 ;;
10223 sunos4*)
10224 case $cc_basename in
10225 CC)
10226 # Sun C++ 4.x
10227 lt_prog_compiler_pic_CXX='-pic'
10228 lt_prog_compiler_static_CXX='-Bstatic'
10229 ;;
10230 lcc)
10231 # Lucid
10232 lt_prog_compiler_pic_CXX='-pic'
10233 ;;
10234 *)
10235 ;;
10236 esac
10237 ;;
10238 tandem*)
10239 case $cc_basename in
10240 NCC)
10241 # NonStop-UX NCC 3.20
10242 lt_prog_compiler_pic_CXX='-KPIC'
10243 ;;
10244 *)
10245 ;;
10246 esac
10247 ;;
10248 unixware*)
10249 ;;
10250 vxworks*)
10251 ;;
10252 *)
10253 lt_prog_compiler_can_build_shared_CXX=no
10254 ;;
10255 esac
10256 fi
10257
10258echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10259echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10260
10261#
10262# Check to make sure the PIC flag actually works.
10263#
10264if test -n "$lt_prog_compiler_pic_CXX"; then
10265 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10266echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10267if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270 lt_prog_compiler_pic_works_CXX=no
10271 ac_outfile=conftest.$ac_objext
10272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10273 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10274 # Insert the option either (1) after the last *FLAGS variable, or
10275 # (2) before a word containing "conftest.", or (3) at the end.
10276 # Note that $ac_compile itself does not contain backslashes and begins
10277 # with a dollar sign (not a hyphen), so the echo should work correctly.
10278 # The option is referenced via a variable to avoid confusing sed.
10279 lt_compile=`echo "$ac_compile" | $SED \
10280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10282 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +000010283 (eval echo "\"\$as_me:10283: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +000010284 (eval "$lt_compile" 2>conftest.err)
10285 ac_status=$?
10286 cat conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +000010287 echo "$as_me:10287: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +000010288 if (exit $ac_status) && test -s "$ac_outfile"; then
10289 # The compiler can only warn and ignore the option if not recognized
10290 # So say no if there are warnings
10291 if test ! -s conftest.err; then
10292 lt_prog_compiler_pic_works_CXX=yes
10293 fi
10294 fi
10295 $rm conftest*
10296
10297fi
10298echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10299echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10300
10301if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10302 case $lt_prog_compiler_pic_CXX in
10303 "" | " "*) ;;
10304 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10305 esac
10306else
10307 lt_prog_compiler_pic_CXX=
10308 lt_prog_compiler_can_build_shared_CXX=no
10309fi
10310
10311fi
10312case "$host_os" in
10313 # For platforms which do not support PIC, -DPIC is meaningless:
10314 *djgpp*)
10315 lt_prog_compiler_pic_CXX=
10316 ;;
10317 *)
10318 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10319 ;;
10320esac
10321
10322echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10323echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10324if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326else
10327 lt_cv_prog_compiler_c_o_CXX=no
10328 $rm -r conftest 2>/dev/null
10329 mkdir conftest
10330 cd conftest
10331 mkdir out
10332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10333
10334 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10335 # that will create temporary files in the current directory regardless of
10336 # the output directory. Thus, making CWD read-only will cause this test
10337 # to fail, enabling locking or at least warning the user not to do parallel
10338 # builds.
10339 chmod -w .
10340
10341 lt_compiler_flag="-o out/conftest2.$ac_objext"
10342 # Insert the option either (1) after the last *FLAGS variable, or
10343 # (2) before a word containing "conftest.", or (3) at the end.
10344 # Note that $ac_compile itself does not contain backslashes and begins
10345 # with a dollar sign (not a hyphen), so the echo should work correctly.
10346 lt_compile=`echo "$ac_compile" | $SED \
10347 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10349 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +000010350 (eval echo "\"\$as_me:10350: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +000010351 (eval "$lt_compile" 2>out/conftest.err)
10352 ac_status=$?
10353 cat out/conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +000010354 echo "$as_me:10354: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +000010355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10356 then
10357 # The compiler can only warn and ignore the option if not recognized
10358 # So say no if there are warnings
10359 if test ! -s out/conftest.err; then
10360 lt_cv_prog_compiler_c_o_CXX=yes
10361 fi
10362 fi
10363 chmod u+w .
10364 $rm conftest* out/*
10365 rmdir out
10366 cd ..
10367 rmdir conftest
10368 $rm conftest*
10369
10370fi
10371echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10372echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10373
10374
10375hard_links="nottested"
10376if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10377 # do not overwrite the value of need_locks provided by the user
10378 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10379echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10380 hard_links=yes
10381 $rm conftest*
10382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10383 touch conftest.a
10384 ln conftest.a conftest.b 2>&5 || hard_links=no
10385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10386 echo "$as_me:$LINENO: result: $hard_links" >&5
10387echo "${ECHO_T}$hard_links" >&6
10388 if test "$hard_links" = no; then
10389 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10390echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10391 need_locks=warn
10392 fi
10393else
10394 need_locks=no
10395fi
10396
10397echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10398echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10399
10400 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10401 case $host_os in
10402 aix4* | aix5*)
10403 # If we're using GNU nm, then we don't want the "-C" option.
10404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10405 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10406 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'
10407 else
10408 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'
10409 fi
10410 ;;
10411 pw32*)
10412 export_symbols_cmds_CXX="$ltdll_cmds"
10413 ;;
10414 cygwin* | mingw*)
10415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10416 ;;
10417 *)
10418 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10419 ;;
10420 esac
10421
10422echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10423echo "${ECHO_T}$ld_shlibs_CXX" >&6
10424test "$ld_shlibs_CXX" = no && can_build_shared=no
10425
10426variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10427if test "$GCC" = yes; then
10428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10429fi
10430
10431#
10432# Do we need to explicitly link libc?
10433#
10434case "x$archive_cmds_need_lc_CXX" in
10435x|xyes)
10436 # Assume -lc should be added
10437 archive_cmds_need_lc_CXX=yes
10438
10439 if test "$enable_shared" = yes && test "$GCC" = yes; then
10440 case $archive_cmds_CXX in
10441 *'~'*)
10442 # FIXME: we may have to deal with multi-command sequences.
10443 ;;
10444 '$CC '*)
10445 # Test whether the compiler implicitly links with -lc since on some
10446 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10447 # to ld, don't add -lc before -lgcc.
10448 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10449echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10450 $rm conftest*
10451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10452
10453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454 (eval $ac_compile) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } 2>conftest.err; then
10458 soname=conftest
10459 lib=conftest
10460 libobjs=conftest.$ac_objext
10461 deplibs=
10462 wl=$lt_prog_compiler_wl_CXX
10463 compiler_flags=-v
10464 linker_flags=-v
10465 verstring=
10466 output_objdir=.
10467 libname=conftest
10468 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10469 allow_undefined_flag_CXX=
10470 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10471 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }
10475 then
10476 archive_cmds_need_lc_CXX=no
10477 else
10478 archive_cmds_need_lc_CXX=yes
10479 fi
10480 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10481 else
10482 cat conftest.err 1>&5
10483 fi
10484 $rm conftest*
10485 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10486echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10487 ;;
10488 esac
10489 fi
10490 ;;
10491esac
10492
10493echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10494echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10495hardcode_action_CXX=
10496if test -n "$hardcode_libdir_flag_spec_CXX" || \
10497 test -n "$runpath_var CXX" || \
10498 test "X$hardcode_automatic_CXX"="Xyes" ; then
10499
10500 # We can hardcode non-existant directories.
10501 if test "$hardcode_direct_CXX" != no &&
10502 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10503 # have to relink, otherwise we might link with an installed library
10504 # when we should be linking with a yet-to-be-installed one
10505 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10506 test "$hardcode_minus_L_CXX" != no; then
10507 # Linking always hardcodes the temporary library directory.
10508 hardcode_action_CXX=relink
10509 else
10510 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10511 hardcode_action_CXX=immediate
10512 fi
10513else
10514 # We cannot hardcode anything, or else we can only hardcode existing
10515 # directories.
10516 hardcode_action_CXX=unsupported
10517fi
10518echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10519echo "${ECHO_T}$hardcode_action_CXX" >&6
10520
10521if test "$hardcode_action_CXX" = relink; then
10522 # Fast installation is not supported
10523 enable_fast_install=no
10524elif test "$shlibpath_overrides_runpath" = yes ||
10525 test "$enable_shared" = no; then
10526 # Fast installation is not necessary
10527 enable_fast_install=needless
10528fi
10529
10530striplib=
10531old_striplib=
10532echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10533echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10534if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10535 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10536 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10537 echo "$as_me:$LINENO: result: yes" >&5
10538echo "${ECHO_T}yes" >&6
10539else
10540# FIXME - insert some real tests, host_os isn't really good enough
10541 case $host_os in
10542 darwin*)
10543 if test -n "$STRIP" ; then
10544 striplib="$STRIP -x"
10545 echo "$as_me:$LINENO: result: yes" >&5
10546echo "${ECHO_T}yes" >&6
10547 else
10548 echo "$as_me:$LINENO: result: no" >&5
10549echo "${ECHO_T}no" >&6
10550fi
10551 ;;
10552 *)
10553 echo "$as_me:$LINENO: result: no" >&5
10554echo "${ECHO_T}no" >&6
10555 ;;
10556 esac
10557fi
10558
10559echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10560echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10561library_names_spec=
10562libname_spec='lib$name'
10563soname_spec=
10564shrext=".so"
10565postinstall_cmds=
10566postuninstall_cmds=
10567finish_cmds=
10568finish_eval=
10569shlibpath_var=
10570shlibpath_overrides_runpath=unknown
10571version_type=none
10572dynamic_linker="$host_os ld.so"
10573sys_lib_dlsearch_path_spec="/lib /usr/lib"
10574if test "$GCC" = yes; then
10575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10576 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10577 # if the path contains ";" then we assume it to be the separator
10578 # otherwise default to the standard path separator (i.e. ":") - it is
10579 # assumed that no part of a normal pathname contains ";" but that should
10580 # okay in the real world where ";" in dirpaths is itself problematic.
10581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10582 else
10583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10584 fi
10585else
10586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10587fi
10588need_lib_prefix=unknown
10589hardcode_into_libs=no
10590
10591# when you set need_version to no, make sure it does not cause -set_version
10592# flags to be left without arguments
10593need_version=unknown
10594
10595case $host_os in
10596aix3*)
10597 version_type=linux
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10599 shlibpath_var=LIBPATH
10600
10601 # AIX 3 has no versioning support, so we append a major version to the name.
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 ;;
10604
10605aix4* | aix5*)
10606 version_type=linux
10607 need_lib_prefix=no
10608 need_version=no
10609 hardcode_into_libs=yes
10610 if test "$host_cpu" = ia64; then
10611 # AIX 5 supports IA64
10612 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 else
10615 # With GCC up to 2.95.x, collect2 would create an import file
10616 # for dependence libraries. The import file would start with
10617 # the line `#! .'. This would cause the generated library to
10618 # depend on `.', always an invalid library. This was fixed in
10619 # development snapshots of GCC prior to 3.0.
10620 case $host_os in
10621 aix4 | aix4.[01] | aix4.[01].*)
10622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10623 echo ' yes '
10624 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10625 :
10626 else
10627 can_build_shared=no
10628 fi
10629 ;;
10630 esac
10631 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10632 # soname into executable. Probably we can add versioning support to
10633 # collect2, so additional links can be useful in future.
10634 if test "$aix_use_runtimelinking" = yes; then
10635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10636 # instead of lib<name>.a to let people know that these are not
10637 # typical AIX shared libraries.
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 else
10640 # We preserve .a as extension for shared libraries through AIX4.2
10641 # and later when we are not doing run time linking.
10642 library_names_spec='${libname}${release}.a $libname.a'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 fi
10645 shlibpath_var=LIBPATH
10646 fi
10647 ;;
10648
10649amigaos*)
10650 library_names_spec='$libname.ixlibrary $libname.a'
10651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10652 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'
10653 ;;
10654
10655beos*)
10656 library_names_spec='${libname}${shared_ext}'
10657 dynamic_linker="$host_os ld.so"
10658 shlibpath_var=LIBRARY_PATH
10659 ;;
10660
10661bsdi4*)
10662 version_type=linux
10663 need_version=no
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10670 # the default ld.so.conf also contains /usr/contrib/lib and
10671 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10672 # libtool to hard-code these into programs
10673 ;;
10674
10675cygwin* | mingw* | pw32*)
10676 version_type=windows
10677 shrext=".dll"
10678 need_version=no
10679 need_lib_prefix=no
10680
10681 case $GCC,$host_os in
10682 yes,cygwin* | yes,mingw* | yes,pw32*)
10683 library_names_spec='$libname.dll.a'
10684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10685 postinstall_cmds='base_file=`basename \${file}`~
10686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10687 dldir=$destdir/`dirname \$dlpath`~
10688 test -d \$dldir || mkdir -p \$dldir~
10689 $install_prog $dir/$dlname \$dldir/$dlname'
10690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10691 dlpath=$dir/\$dldll~
10692 $rm \$dlpath'
10693 shlibpath_overrides_runpath=yes
10694
10695 case $host_os in
10696 cygwin*)
10697 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10698 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10699 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10700 ;;
10701 mingw*)
10702 # MinGW DLLs use traditional 'lib' prefix
10703 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10705 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10706 # It is most probably a Windows format PATH printed by
10707 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10708 # path with ; separators, and with drive letters. We can handle the
10709 # drive letters (cygwin fileutils understands them), so leave them,
10710 # especially as we might pass files found there to a mingw objdump,
10711 # which wouldn't understand a cygwinified path. Ahh.
10712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713 else
10714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10715 fi
10716 ;;
10717 pw32*)
10718 # pw32 DLLs use 'pw' prefix rather than 'lib'
10719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10720 ;;
10721 esac
10722 ;;
10723
10724 *)
10725 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10726 ;;
10727 esac
10728 dynamic_linker='Win32 ld.exe'
10729 # FIXME: first we should search . and the directory the executable is in
10730 shlibpath_var=PATH
10731 ;;
10732
10733darwin* | rhapsody*)
10734 dynamic_linker="$host_os dyld"
10735 version_type=darwin
10736 need_lib_prefix=no
10737 need_version=no
10738 # FIXME: Relying on posixy $() will cause problems for
10739 # cross-compilation, but unfortunately the echo tests do not
10740 # yet detect zsh echo's removal of \ escapes.
10741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10742 soname_spec='${libname}${release}${major}$shared_ext'
10743 shlibpath_overrides_runpath=yes
10744 shlibpath_var=DYLD_LIBRARY_PATH
10745 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10747 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10748 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"`
10749 fi
10750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10751 ;;
10752
10753dgux*)
10754 version_type=linux
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 ;;
10761
10762freebsd1*)
10763 dynamic_linker=no
10764 ;;
10765
10766freebsd*)
10767 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10768 version_type=freebsd-$objformat
10769 case $version_type in
10770 freebsd-elf*)
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10772 need_version=no
10773 need_lib_prefix=no
10774 ;;
10775 freebsd-*)
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10777 need_version=yes
10778 ;;
10779 esac
10780 shlibpath_var=LD_LIBRARY_PATH
10781 case $host_os in
10782 freebsd2*)
10783 shlibpath_overrides_runpath=yes
10784 ;;
10785 freebsd3.01* | freebsdelf3.01*)
10786 shlibpath_overrides_runpath=yes
10787 hardcode_into_libs=yes
10788 ;;
10789 *) # from 3.2 on
10790 shlibpath_overrides_runpath=no
10791 hardcode_into_libs=yes
10792 ;;
10793 esac
10794 ;;
10795
10796gnu*)
10797 version_type=linux
10798 need_lib_prefix=no
10799 need_version=no
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 hardcode_into_libs=yes
10804 ;;
10805
10806hpux9* | hpux10* | hpux11*)
10807 # Give a soname corresponding to the major version so that dld.sl refuses to
10808 # link against other versions.
10809 version_type=sunos
10810 need_lib_prefix=no
10811 need_version=no
10812 case "$host_cpu" in
10813 ia64*)
10814 shrext='.so'
10815 hardcode_into_libs=yes
10816 dynamic_linker="$host_os dld.so"
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 if test "X$HPUX_IA64_MODE" = X32; then
10822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10823 else
10824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10825 fi
10826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10827 ;;
10828 hppa*64*)
10829 shrext='.sl'
10830 hardcode_into_libs=yes
10831 dynamic_linker="$host_os dld.sl"
10832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10838 ;;
10839 *)
10840 shrext='.sl'
10841 dynamic_linker="$host_os dld.sl"
10842 shlibpath_var=SHLIB_PATH
10843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 ;;
10847 esac
10848 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10849 postinstall_cmds='chmod 555 $lib'
10850 ;;
10851
10852irix5* | irix6* | nonstopux*)
10853 case $host_os in
10854 nonstopux*) version_type=nonstopux ;;
10855 *)
10856 if test "$lt_cv_prog_gnu_ld" = yes; then
10857 version_type=linux
10858 else
10859 version_type=irix
10860 fi ;;
10861 esac
10862 need_lib_prefix=no
10863 need_version=no
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10866 case $host_os in
10867 irix5* | nonstopux*)
10868 libsuff= shlibsuff=
10869 ;;
10870 *)
10871 case $LD in # libtool.m4 will add one of these switches to LD
10872 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10873 libsuff= shlibsuff= libmagic=32-bit;;
10874 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10875 libsuff=32 shlibsuff=N32 libmagic=N32;;
10876 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10877 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10878 *) libsuff= shlibsuff= libmagic=never-match;;
10879 esac
10880 ;;
10881 esac
10882 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10883 shlibpath_overrides_runpath=no
10884 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10885 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10886 hardcode_into_libs=yes
10887 ;;
10888
10889# No shared lib support for Linux oldld, aout, or coff.
10890linux*oldld* | linux*aout* | linux*coff*)
10891 dynamic_linker=no
10892 ;;
10893
10894# This must be Linux ELF.
10895linux*)
10896 version_type=linux
10897 need_lib_prefix=no
10898 need_version=no
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=no
10904 # This implies no fast_install, which is unacceptable.
10905 # Some rework will be needed to allow for fast_install
10906 # before this can be enabled.
10907 hardcode_into_libs=yes
10908
10909 # We used to test for /lib/ld.so.1 and disable shared libraries on
10910 # powerpc, because MkLinux only supported shared libraries with the
10911 # GNU dynamic linker. Since this was broken with cross compilers,
10912 # most powerpc-linux boxes support dynamic linking these days and
10913 # people can always --disable-shared, the test was removed, and we
10914 # assume the GNU/Linux dynamic linker is in use.
10915 dynamic_linker='GNU/Linux ld.so'
10916 ;;
10917
10918netbsd*)
10919 version_type=sunos
10920 need_lib_prefix=no
10921 need_version=no
10922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925 dynamic_linker='NetBSD (a.out) ld.so'
10926 else
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 dynamic_linker='NetBSD ld.elf_so'
10930 fi
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes
10933 hardcode_into_libs=yes
10934 ;;
10935
10936newsos6)
10937 version_type=linux
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes
10941 ;;
10942
10943nto-qnx)
10944 version_type=linux
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=yes
10951 ;;
10952
10953openbsd*)
10954 version_type=sunos
10955 need_lib_prefix=no
10956 need_version=no
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10961 case $host_os in
10962 openbsd2.[89] | openbsd2.[89].*)
10963 shlibpath_overrides_runpath=no
10964 ;;
10965 *)
10966 shlibpath_overrides_runpath=yes
10967 ;;
10968 esac
10969 else
10970 shlibpath_overrides_runpath=yes
10971 fi
10972 ;;
10973
10974os2*)
10975 libname_spec='$name'
10976 shrext=".dll"
10977 need_lib_prefix=no
10978 library_names_spec='$libname${shared_ext} $libname.a'
10979 dynamic_linker='OS/2 ld.exe'
10980 shlibpath_var=LIBPATH
10981 ;;
10982
10983osf3* | osf4* | osf5*)
10984 version_type=osf
10985 need_lib_prefix=no
10986 need_version=no
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10992 ;;
10993
10994sco3.2v5*)
10995 version_type=osf
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 ;;
11000
11001solaris*)
11002 version_type=linux
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 shlibpath_var=LD_LIBRARY_PATH
11008 shlibpath_overrides_runpath=yes
11009 hardcode_into_libs=yes
11010 # ldd complains unless libraries are executable
11011 postinstall_cmds='chmod +x $lib'
11012 ;;
11013
11014sunos4*)
11015 version_type=sunos
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 if test "$with_gnu_ld" = yes; then
11021 need_lib_prefix=no
11022 fi
11023 need_version=yes
11024 ;;
11025
11026sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11027 version_type=linux
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 case $host_vendor in
11032 sni)
11033 shlibpath_overrides_runpath=no
11034 need_lib_prefix=no
11035 export_dynamic_flag_spec='${wl}-Blargedynsym'
11036 runpath_var=LD_RUN_PATH
11037 ;;
11038 siemens)
11039 need_lib_prefix=no
11040 ;;
11041 motorola)
11042 need_lib_prefix=no
11043 need_version=no
11044 shlibpath_overrides_runpath=no
11045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11046 ;;
11047 esac
11048 ;;
11049
11050sysv4*MP*)
11051 if test -d /usr/nec ;then
11052 version_type=linux
11053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11054 soname_spec='$libname${shared_ext}.$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 fi
11057 ;;
11058
11059uts4*)
11060 version_type=linux
11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 ;;
11065
11066*)
11067 dynamic_linker=no
11068 ;;
11069esac
11070echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11071echo "${ECHO_T}$dynamic_linker" >&6
11072test "$dynamic_linker" = no && can_build_shared=no
11073
11074if test "x$enable_dlopen" != xyes; then
11075 enable_dlopen=unknown
11076 enable_dlopen_self=unknown
11077 enable_dlopen_self_static=unknown
11078else
11079 lt_cv_dlopen=no
11080 lt_cv_dlopen_libs=
11081
11082 case $host_os in
11083 beos*)
11084 lt_cv_dlopen="load_add_on"
11085 lt_cv_dlopen_libs=
11086 lt_cv_dlopen_self=yes
11087 ;;
11088
11089 mingw* | pw32*)
11090 lt_cv_dlopen="LoadLibrary"
11091 lt_cv_dlopen_libs=
11092 ;;
11093
11094 cygwin*)
11095 lt_cv_dlopen="dlopen"
11096 lt_cv_dlopen_libs=
11097 ;;
11098
11099 darwin*)
11100 # if libdl is installed we need to link against it
11101 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11102echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11103if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11105else
11106 ac_check_lib_save_LIBS=$LIBS
11107LIBS="-ldl $LIBS"
11108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114
11115/* Override any gcc2 internal prototype to avoid an error. */
11116#ifdef __cplusplus
11117extern "C"
11118#endif
11119/* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11121char dlopen ();
11122int
11123main ()
11124{
11125dlopen ();
11126 ;
11127 return 0;
11128}
11129_ACEOF
11130rm -f conftest.$ac_objext conftest$ac_exeext
11131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_cxx_werror_flag"
11140 || test ! -s conftest.err'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_lib_dl_dlopen=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157ac_cv_lib_dl_dlopen=no
11158fi
11159rm -f conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161LIBS=$ac_check_lib_save_LIBS
11162fi
11163echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11164echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11165if test $ac_cv_lib_dl_dlopen = yes; then
11166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11167else
11168
11169 lt_cv_dlopen="dyld"
11170 lt_cv_dlopen_libs=
11171 lt_cv_dlopen_self=yes
11172
11173fi
11174
11175 ;;
11176
11177 *)
11178 echo "$as_me:$LINENO: checking for shl_load" >&5
11179echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11180if test "${ac_cv_func_shl_load+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182else
11183 cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11191#define shl_load innocuous_shl_load
11192
11193/* System header to define __stub macros and hopefully few prototypes,
11194 which can conflict with char shl_load (); below.
11195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11196 <limits.h> exists even on freestanding compilers. */
11197
11198#ifdef __STDC__
11199# include <limits.h>
11200#else
11201# include <assert.h>
11202#endif
11203
11204#undef shl_load
11205
11206/* Override any gcc2 internal prototype to avoid an error. */
11207#ifdef __cplusplus
11208extern "C"
11209{
11210#endif
11211/* We use char because int might match the return type of a gcc2
11212 builtin and then its argument prototype would still apply. */
11213char shl_load ();
11214/* The GNU C library defines this for functions which it implements
11215 to always fail with ENOSYS. Some functions are actually named
11216 something starting with __ and the normal name is an alias. */
11217#if defined (__stub_shl_load) || defined (__stub___shl_load)
11218choke me
11219#else
11220char (*f) () = shl_load;
11221#endif
11222#ifdef __cplusplus
11223}
11224#endif
11225
11226int
11227main ()
11228{
11229return f != shl_load;
11230 ;
11231 return 0;
11232}
11233_ACEOF
11234rm -f conftest.$ac_objext conftest$ac_exeext
11235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_cxx_werror_flag"
11244 || test ! -s conftest.err'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; } &&
11250 { ac_try='test -s conftest$ac_exeext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_func_shl_load=yes
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261ac_cv_func_shl_load=no
11262fi
11263rm -f conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265fi
11266echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11267echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11268if test $ac_cv_func_shl_load = yes; then
11269 lt_cv_dlopen="shl_load"
11270else
11271 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11272echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11273if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275else
11276 ac_check_lib_save_LIBS=$LIBS
11277LIBS="-ldld $LIBS"
11278cat >conftest.$ac_ext <<_ACEOF
11279/* confdefs.h. */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h. */
11284
11285/* Override any gcc2 internal prototype to avoid an error. */
11286#ifdef __cplusplus
11287extern "C"
11288#endif
11289/* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11291char shl_load ();
11292int
11293main ()
11294{
11295shl_load ();
11296 ;
11297 return 0;
11298}
11299_ACEOF
11300rm -f conftest.$ac_objext conftest$ac_exeext
11301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302 (eval $ac_link) 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_cxx_werror_flag"
11310 || test ! -s conftest.err'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest$ac_exeext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_cv_lib_dld_shl_load=yes
11323else
11324 echo "$as_me: failed program was:" >&5
11325sed 's/^/| /' conftest.$ac_ext >&5
11326
11327ac_cv_lib_dld_shl_load=no
11328fi
11329rm -f conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331LIBS=$ac_check_lib_save_LIBS
11332fi
11333echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11334echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11335if test $ac_cv_lib_dld_shl_load = yes; then
11336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11337else
11338 echo "$as_me:$LINENO: checking for dlopen" >&5
11339echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11340if test "${ac_cv_func_dlopen+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342else
11343 cat >conftest.$ac_ext <<_ACEOF
11344/* confdefs.h. */
11345_ACEOF
11346cat confdefs.h >>conftest.$ac_ext
11347cat >>conftest.$ac_ext <<_ACEOF
11348/* end confdefs.h. */
11349/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11351#define dlopen innocuous_dlopen
11352
11353/* System header to define __stub macros and hopefully few prototypes,
11354 which can conflict with char dlopen (); below.
11355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11356 <limits.h> exists even on freestanding compilers. */
11357
11358#ifdef __STDC__
11359# include <limits.h>
11360#else
11361# include <assert.h>
11362#endif
11363
11364#undef dlopen
11365
11366/* Override any gcc2 internal prototype to avoid an error. */
11367#ifdef __cplusplus
11368extern "C"
11369{
11370#endif
11371/* We use char because int might match the return type of a gcc2
11372 builtin and then its argument prototype would still apply. */
11373char dlopen ();
11374/* The GNU C library defines this for functions which it implements
11375 to always fail with ENOSYS. Some functions are actually named
11376 something starting with __ and the normal name is an alias. */
11377#if defined (__stub_dlopen) || defined (__stub___dlopen)
11378choke me
11379#else
11380char (*f) () = dlopen;
11381#endif
11382#ifdef __cplusplus
11383}
11384#endif
11385
11386int
11387main ()
11388{
11389return f != dlopen;
11390 ;
11391 return 0;
11392}
11393_ACEOF
11394rm -f conftest.$ac_objext conftest$ac_exeext
11395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_cxx_werror_flag"
11404 || test ! -s conftest.err'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest$ac_exeext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_cv_func_dlopen=yes
11417else
11418 echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421ac_cv_func_dlopen=no
11422fi
11423rm -f conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425fi
11426echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11427echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11428if test $ac_cv_func_dlopen = yes; then
11429 lt_cv_dlopen="dlopen"
11430else
11431 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11432echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11433if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 ac_check_lib_save_LIBS=$LIBS
11437LIBS="-ldl $LIBS"
11438cat >conftest.$ac_ext <<_ACEOF
11439/* confdefs.h. */
11440_ACEOF
11441cat confdefs.h >>conftest.$ac_ext
11442cat >>conftest.$ac_ext <<_ACEOF
11443/* end confdefs.h. */
11444
11445/* Override any gcc2 internal prototype to avoid an error. */
11446#ifdef __cplusplus
11447extern "C"
11448#endif
11449/* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11451char dlopen ();
11452int
11453main ()
11454{
11455dlopen ();
11456 ;
11457 return 0;
11458}
11459_ACEOF
11460rm -f conftest.$ac_objext conftest$ac_exeext
11461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462 (eval $ac_link) 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try='test -z "$ac_cxx_werror_flag"
11470 || test ! -s conftest.err'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest$ac_exeext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_lib_dl_dlopen=yes
11483else
11484 echo "$as_me: failed program was:" >&5
11485sed 's/^/| /' conftest.$ac_ext >&5
11486
11487ac_cv_lib_dl_dlopen=no
11488fi
11489rm -f conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491LIBS=$ac_check_lib_save_LIBS
11492fi
11493echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11494echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11495if test $ac_cv_lib_dl_dlopen = yes; then
11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11497else
11498 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11499echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11500if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502else
11503 ac_check_lib_save_LIBS=$LIBS
11504LIBS="-lsvld $LIBS"
11505cat >conftest.$ac_ext <<_ACEOF
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
11511
11512/* Override any gcc2 internal prototype to avoid an error. */
11513#ifdef __cplusplus
11514extern "C"
11515#endif
11516/* We use char because int might match the return type of a gcc2
11517 builtin and then its argument prototype would still apply. */
11518char dlopen ();
11519int
11520main ()
11521{
11522dlopen ();
11523 ;
11524 return 0;
11525}
11526_ACEOF
11527rm -f conftest.$ac_objext conftest$ac_exeext
11528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11529 (eval $ac_link) 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_cxx_werror_flag"
11537 || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest$ac_exeext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_lib_svld_dlopen=yes
11550else
11551 echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554ac_cv_lib_svld_dlopen=no
11555fi
11556rm -f conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558LIBS=$ac_check_lib_save_LIBS
11559fi
11560echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11561echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11562if test $ac_cv_lib_svld_dlopen = yes; then
11563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11564else
11565 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11566echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11567if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570 ac_check_lib_save_LIBS=$LIBS
11571LIBS="-ldld $LIBS"
11572cat >conftest.$ac_ext <<_ACEOF
11573/* confdefs.h. */
11574_ACEOF
11575cat confdefs.h >>conftest.$ac_ext
11576cat >>conftest.$ac_ext <<_ACEOF
11577/* end confdefs.h. */
11578
11579/* Override any gcc2 internal prototype to avoid an error. */
11580#ifdef __cplusplus
11581extern "C"
11582#endif
11583/* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11585char dld_link ();
11586int
11587main ()
11588{
11589dld_link ();
11590 ;
11591 return 0;
11592}
11593_ACEOF
11594rm -f conftest.$ac_objext conftest$ac_exeext
11595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11596 (eval $ac_link) 2>conftest.er1
11597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } &&
11603 { ac_try='test -z "$ac_cxx_werror_flag"
11604 || test ! -s conftest.err'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest$ac_exeext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_lib_dld_dld_link=yes
11617else
11618 echo "$as_me: failed program was:" >&5
11619sed 's/^/| /' conftest.$ac_ext >&5
11620
11621ac_cv_lib_dld_dld_link=no
11622fi
11623rm -f conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11628echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11629if test $ac_cv_lib_dld_dld_link = yes; then
11630 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11631fi
11632
11633
11634fi
11635
11636
11637fi
11638
11639
11640fi
11641
11642
11643fi
11644
11645
11646fi
11647
11648 ;;
11649 esac
11650
11651 if test "x$lt_cv_dlopen" != xno; then
11652 enable_dlopen=yes
11653 else
11654 enable_dlopen=no
11655 fi
11656
11657 case $lt_cv_dlopen in
11658 dlopen)
11659 save_CPPFLAGS="$CPPFLAGS"
11660 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11661
11662 save_LDFLAGS="$LDFLAGS"
11663 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11664
11665 save_LIBS="$LIBS"
11666 LIBS="$lt_cv_dlopen_libs $LIBS"
11667
11668 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11669echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11670if test "${lt_cv_dlopen_self+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672else
11673 if test "$cross_compiling" = yes; then :
11674 lt_cv_dlopen_self=cross
11675else
11676 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11677 lt_status=$lt_dlunknown
11678 cat > conftest.$ac_ext <<EOF
Reid Spencerbb874262004-12-27 08:51:55 +000011679#line 11679 "configure"
Reid Spencer011f5ca2004-09-15 06:19:53 +000011680#include "confdefs.h"
11681
11682#if HAVE_DLFCN_H
11683#include <dlfcn.h>
11684#endif
11685
11686#include <stdio.h>
11687
11688#ifdef RTLD_GLOBAL
11689# define LT_DLGLOBAL RTLD_GLOBAL
11690#else
11691# ifdef DL_GLOBAL
11692# define LT_DLGLOBAL DL_GLOBAL
11693# else
11694# define LT_DLGLOBAL 0
11695# endif
11696#endif
11697
11698/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11699 find out it does not work in some platform. */
11700#ifndef LT_DLLAZY_OR_NOW
11701# ifdef RTLD_LAZY
11702# define LT_DLLAZY_OR_NOW RTLD_LAZY
11703# else
11704# ifdef DL_LAZY
11705# define LT_DLLAZY_OR_NOW DL_LAZY
11706# else
11707# ifdef RTLD_NOW
11708# define LT_DLLAZY_OR_NOW RTLD_NOW
11709# else
11710# ifdef DL_NOW
11711# define LT_DLLAZY_OR_NOW DL_NOW
11712# else
11713# define LT_DLLAZY_OR_NOW 0
11714# endif
11715# endif
11716# endif
11717# endif
11718#endif
11719
11720#ifdef __cplusplus
11721extern "C" void exit (int);
11722#endif
11723
11724void fnord() { int i=42;}
11725int main ()
11726{
11727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11728 int status = $lt_dlunknown;
11729
11730 if (self)
11731 {
11732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11733 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11734 /* dlclose (self); */
11735 }
11736
11737 exit (status);
11738}
11739EOF
11740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11741 (eval $ac_link) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11745 (./conftest; exit; ) 2>/dev/null
11746 lt_status=$?
11747 case x$lt_status in
11748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11750 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11751 esac
11752 else :
11753 # compilation failed
11754 lt_cv_dlopen_self=no
11755 fi
11756fi
11757rm -fr conftest*
11758
11759
11760fi
11761echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11762echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11763
11764 if test "x$lt_cv_dlopen_self" = xyes; then
11765 LDFLAGS="$LDFLAGS $link_static_flag"
11766 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11767echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11768if test "${lt_cv_dlopen_self_static+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770else
11771 if test "$cross_compiling" = yes; then :
11772 lt_cv_dlopen_self_static=cross
11773else
11774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11775 lt_status=$lt_dlunknown
11776 cat > conftest.$ac_ext <<EOF
Reid Spencerbb874262004-12-27 08:51:55 +000011777#line 11777 "configure"
Reid Spencer011f5ca2004-09-15 06:19:53 +000011778#include "confdefs.h"
11779
11780#if HAVE_DLFCN_H
11781#include <dlfcn.h>
11782#endif
11783
11784#include <stdio.h>
11785
11786#ifdef RTLD_GLOBAL
11787# define LT_DLGLOBAL RTLD_GLOBAL
11788#else
11789# ifdef DL_GLOBAL
11790# define LT_DLGLOBAL DL_GLOBAL
11791# else
11792# define LT_DLGLOBAL 0
11793# endif
11794#endif
11795
11796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11797 find out it does not work in some platform. */
11798#ifndef LT_DLLAZY_OR_NOW
11799# ifdef RTLD_LAZY
11800# define LT_DLLAZY_OR_NOW RTLD_LAZY
11801# else
11802# ifdef DL_LAZY
11803# define LT_DLLAZY_OR_NOW DL_LAZY
11804# else
11805# ifdef RTLD_NOW
11806# define LT_DLLAZY_OR_NOW RTLD_NOW
11807# else
11808# ifdef DL_NOW
11809# define LT_DLLAZY_OR_NOW DL_NOW
11810# else
11811# define LT_DLLAZY_OR_NOW 0
11812# endif
11813# endif
11814# endif
11815# endif
11816#endif
11817
11818#ifdef __cplusplus
11819extern "C" void exit (int);
11820#endif
11821
11822void fnord() { int i=42;}
11823int main ()
11824{
11825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11826 int status = $lt_dlunknown;
11827
11828 if (self)
11829 {
11830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11831 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11832 /* dlclose (self); */
11833 }
11834
11835 exit (status);
11836}
11837EOF
11838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11839 (eval $ac_link) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11843 (./conftest; exit; ) 2>/dev/null
11844 lt_status=$?
11845 case x$lt_status in
11846 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11847 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11848 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11849 esac
11850 else :
11851 # compilation failed
11852 lt_cv_dlopen_self_static=no
11853 fi
11854fi
11855rm -fr conftest*
11856
11857
11858fi
11859echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11860echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11861 fi
11862
11863 CPPFLAGS="$save_CPPFLAGS"
11864 LDFLAGS="$save_LDFLAGS"
11865 LIBS="$save_LIBS"
11866 ;;
11867 esac
11868
11869 case $lt_cv_dlopen_self in
11870 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11871 *) enable_dlopen_self=unknown ;;
11872 esac
11873
11874 case $lt_cv_dlopen_self_static in
11875 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11876 *) enable_dlopen_self_static=unknown ;;
11877 esac
11878fi
11879
11880
11881# The else clause should only fire when bootstrapping the
11882# libtool distribution, otherwise you forgot to ship ltmain.sh
11883# with your package, and you will get complaints that there are
11884# no rules to generate ltmain.sh.
11885if test -f "$ltmain"; then
11886 # See if we are running on zsh, and set the options which allow our commands through
11887 # without removal of \ escapes.
11888 if test -n "${ZSH_VERSION+set}" ; then
11889 setopt NO_GLOB_SUBST
11890 fi
11891 # Now quote all the things that may contain metacharacters while being
11892 # careful not to overquote the AC_SUBSTed values. We take copies of the
11893 # variables and quote the copies for generation of the libtool script.
11894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11895 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11896 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11897 deplibs_check_method reload_flag reload_cmds need_locks \
11898 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11899 lt_cv_sys_global_symbol_to_c_name_address \
11900 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11901 old_postinstall_cmds old_postuninstall_cmds \
11902 compiler_CXX \
11903 CC_CXX \
11904 LD_CXX \
11905 lt_prog_compiler_wl_CXX \
11906 lt_prog_compiler_pic_CXX \
11907 lt_prog_compiler_static_CXX \
11908 lt_prog_compiler_no_builtin_flag_CXX \
11909 export_dynamic_flag_spec_CXX \
11910 thread_safe_flag_spec_CXX \
11911 whole_archive_flag_spec_CXX \
11912 enable_shared_with_static_runtimes_CXX \
11913 old_archive_cmds_CXX \
11914 old_archive_from_new_cmds_CXX \
11915 predep_objects_CXX \
11916 postdep_objects_CXX \
11917 predeps_CXX \
11918 postdeps_CXX \
11919 compiler_lib_search_path_CXX \
11920 archive_cmds_CXX \
11921 archive_expsym_cmds_CXX \
11922 postinstall_cmds_CXX \
11923 postuninstall_cmds_CXX \
11924 old_archive_from_expsyms_cmds_CXX \
11925 allow_undefined_flag_CXX \
11926 no_undefined_flag_CXX \
11927 export_symbols_cmds_CXX \
11928 hardcode_libdir_flag_spec_CXX \
11929 hardcode_libdir_flag_spec_ld_CXX \
11930 hardcode_libdir_separator_CXX \
11931 hardcode_automatic_CXX \
11932 module_cmds_CXX \
11933 module_expsym_cmds_CXX \
11934 lt_cv_prog_compiler_c_o_CXX \
11935 exclude_expsyms_CXX \
11936 include_expsyms_CXX; do
11937
11938 case $var in
11939 old_archive_cmds_CXX | \
11940 old_archive_from_new_cmds_CXX | \
11941 archive_cmds_CXX | \
11942 archive_expsym_cmds_CXX | \
11943 module_cmds_CXX | \
11944 module_expsym_cmds_CXX | \
11945 old_archive_from_expsyms_cmds_CXX | \
11946 export_symbols_cmds_CXX | \
11947 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11948 postinstall_cmds | postuninstall_cmds | \
11949 old_postinstall_cmds | old_postuninstall_cmds | \
11950 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11951 # Double-quote double-evaled strings.
11952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11953 ;;
11954 *)
11955 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11956 ;;
11957 esac
11958 done
11959
11960 case $lt_echo in
11961 *'\$0 --fallback-echo"')
11962 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11963 ;;
11964 esac
11965
11966cfgfile="$ofile"
11967
11968 cat <<__EOF__ >> "$cfgfile"
11969# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11970
11971# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11972
11973# Shell to use when invoking shell scripts.
11974SHELL=$lt_SHELL
11975
11976# Whether or not to build shared libraries.
11977build_libtool_libs=$enable_shared
11978
11979# Whether or not to build static libraries.
11980build_old_libs=$enable_static
11981
11982# Whether or not to add -lc for building shared libraries.
11983build_libtool_need_lc=$archive_cmds_need_lc_CXX
11984
11985# Whether or not to disallow shared libs when runtime libs are static
11986allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11987
11988# Whether or not to optimize for fast installation.
11989fast_install=$enable_fast_install
11990
11991# The host system.
11992host_alias=$host_alias
11993host=$host
11994
11995# An echo program that does not interpret backslashes.
11996echo=$lt_echo
11997
11998# The archiver.
11999AR=$lt_AR
12000AR_FLAGS=$lt_AR_FLAGS
12001
12002# A C compiler.
12003LTCC=$lt_LTCC
12004
12005# A language-specific compiler.
12006CC=$lt_compiler_CXX
12007
12008# Is the compiler the GNU C compiler?
12009with_gcc=$GCC_CXX
12010
12011# An ERE matcher.
12012EGREP=$lt_EGREP
12013
12014# The linker used to build libraries.
12015LD=$lt_LD_CXX
12016
12017# Whether we need hard or soft links.
12018LN_S=$lt_LN_S
12019
12020# A BSD-compatible nm program.
12021NM=$lt_NM
12022
12023# A symbol stripping program
12024STRIP=$STRIP
12025
12026# Used to examine libraries when file_magic_cmd begins "file"
12027MAGIC_CMD=$MAGIC_CMD
12028
12029# Used on cygwin: DLL creation program.
12030DLLTOOL="$DLLTOOL"
12031
12032# Used on cygwin: object dumper.
12033OBJDUMP="$OBJDUMP"
12034
12035# Used on cygwin: assembler.
12036AS="$AS"
12037
12038# The name of the directory that contains temporary libtool files.
12039objdir=$objdir
12040
12041# How to create reloadable object files.
12042reload_flag=$lt_reload_flag
12043reload_cmds=$lt_reload_cmds
12044
12045# How to pass a linker flag through the compiler.
12046wl=$lt_lt_prog_compiler_wl_CXX
12047
12048# Object file suffix (normally "o").
12049objext="$ac_objext"
12050
12051# Old archive suffix (normally "a").
12052libext="$libext"
12053
12054# Shared library suffix (normally ".so").
12055shrext='$shrext'
12056
12057# Executable file suffix (normally "").
12058exeext="$exeext"
12059
12060# Additional compiler flags for building library objects.
12061pic_flag=$lt_lt_prog_compiler_pic_CXX
12062pic_mode=$pic_mode
12063
12064# What is the maximum length of a command?
12065max_cmd_len=$lt_cv_sys_max_cmd_len
12066
12067# Does compiler simultaneously support -c and -o options?
12068compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12069
12070# Must we lock files when doing compilation ?
12071need_locks=$lt_need_locks
12072
12073# Do we need the lib prefix for modules?
12074need_lib_prefix=$need_lib_prefix
12075
12076# Do we need a version for libraries?
12077need_version=$need_version
12078
12079# Whether dlopen is supported.
12080dlopen_support=$enable_dlopen
12081
12082# Whether dlopen of programs is supported.
12083dlopen_self=$enable_dlopen_self
12084
12085# Whether dlopen of statically linked programs is supported.
12086dlopen_self_static=$enable_dlopen_self_static
12087
12088# Compiler flag to prevent dynamic linking.
12089link_static_flag=$lt_lt_prog_compiler_static_CXX
12090
12091# Compiler flag to turn off builtin functions.
12092no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12093
12094# Compiler flag to allow reflexive dlopens.
12095export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12096
12097# Compiler flag to generate shared objects directly from archives.
12098whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12099
12100# Compiler flag to generate thread-safe objects.
12101thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12102
12103# Library versioning type.
12104version_type=$version_type
12105
12106# Format of library name prefix.
12107libname_spec=$lt_libname_spec
12108
12109# List of archive names. First name is the real one, the rest are links.
12110# The last name is the one that the linker finds with -lNAME.
12111library_names_spec=$lt_library_names_spec
12112
12113# The coded name of the library, if different from the real name.
12114soname_spec=$lt_soname_spec
12115
12116# Commands used to build and install an old-style archive.
12117RANLIB=$lt_RANLIB
12118old_archive_cmds=$lt_old_archive_cmds_CXX
12119old_postinstall_cmds=$lt_old_postinstall_cmds
12120old_postuninstall_cmds=$lt_old_postuninstall_cmds
12121
12122# Create an old-style archive from a shared archive.
12123old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12124
12125# Create a temporary old-style archive to link instead of a shared archive.
12126old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12127
12128# Commands used to build and install a shared archive.
12129archive_cmds=$lt_archive_cmds_CXX
12130archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12131postinstall_cmds=$lt_postinstall_cmds
12132postuninstall_cmds=$lt_postuninstall_cmds
12133
12134# Commands used to build a loadable module (assumed same as above if empty)
12135module_cmds=$lt_module_cmds_CXX
12136module_expsym_cmds=$lt_module_expsym_cmds_CXX
12137
12138# Commands to strip libraries.
12139old_striplib=$lt_old_striplib
12140striplib=$lt_striplib
12141
12142# Dependencies to place before the objects being linked to create a
12143# shared library.
12144predep_objects=$lt_predep_objects_CXX
12145
12146# Dependencies to place after the objects being linked to create a
12147# shared library.
12148postdep_objects=$lt_postdep_objects_CXX
12149
12150# Dependencies to place before the objects being linked to create a
12151# shared library.
12152predeps=$lt_predeps_CXX
12153
12154# Dependencies to place after the objects being linked to create a
12155# shared library.
12156postdeps=$lt_postdeps_CXX
12157
12158# The library search path used internally by the compiler when linking
12159# a shared library.
12160compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12161
12162# Method to check whether dependent libraries are shared objects.
12163deplibs_check_method=$lt_deplibs_check_method
12164
12165# Command to use when deplibs_check_method == file_magic.
12166file_magic_cmd=$lt_file_magic_cmd
12167
12168# Flag that allows shared libraries with undefined symbols to be built.
12169allow_undefined_flag=$lt_allow_undefined_flag_CXX
12170
12171# Flag that forces no undefined symbols.
12172no_undefined_flag=$lt_no_undefined_flag_CXX
12173
12174# Commands used to finish a libtool library installation in a directory.
12175finish_cmds=$lt_finish_cmds
12176
12177# Same as above, but a single script fragment to be evaled but not shown.
12178finish_eval=$lt_finish_eval
12179
12180# Take the output of nm and produce a listing of raw symbols and C names.
12181global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12182
12183# Transform the output of nm in a proper C declaration
12184global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12185
12186# Transform the output of nm in a C name address pair
12187global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12188
12189# This is the shared library runtime path variable.
12190runpath_var=$runpath_var
12191
12192# This is the shared library path variable.
12193shlibpath_var=$shlibpath_var
12194
12195# Is shlibpath searched before the hard-coded library search path?
12196shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12197
12198# How to hardcode a shared library path into an executable.
12199hardcode_action=$hardcode_action_CXX
12200
12201# Whether we should hardcode library paths into libraries.
12202hardcode_into_libs=$hardcode_into_libs
12203
12204# Flag to hardcode \$libdir into a binary during linking.
12205# This must work even if \$libdir does not exist.
12206hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12207
12208# If ld is used when linking, flag to hardcode \$libdir into
12209# a binary during linking. This must work even if \$libdir does
12210# not exist.
12211hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12212
12213# Whether we need a single -rpath flag with a separated argument.
12214hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12215
12216# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12217# resulting binary.
12218hardcode_direct=$hardcode_direct_CXX
12219
12220# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12221# resulting binary.
12222hardcode_minus_L=$hardcode_minus_L_CXX
12223
12224# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12225# the resulting binary.
12226hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12227
12228# Set to yes if building a shared library automatically hardcodes DIR into the library
12229# and all subsequent libraries and executables linked against it.
12230hardcode_automatic=$hardcode_automatic_CXX
12231
12232# Variables whose values should be saved in libtool wrapper scripts and
12233# restored at relink time.
12234variables_saved_for_relink="$variables_saved_for_relink"
12235
12236# Whether libtool must link a program against all its dependency libraries.
12237link_all_deplibs=$link_all_deplibs_CXX
12238
12239# Compile-time system search path for libraries
12240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12241
12242# Run-time system search path for libraries
12243sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12244
12245# Fix the shell variable \$srcfile for the compiler.
12246fix_srcfile_path="$fix_srcfile_path_CXX"
12247
12248# Set to yes if exported symbols are required.
12249always_export_symbols=$always_export_symbols_CXX
12250
12251# The commands to list exported symbols.
12252export_symbols_cmds=$lt_export_symbols_cmds_CXX
12253
12254# The commands to extract the exported symbol list from a shared archive.
12255extract_expsyms_cmds=$lt_extract_expsyms_cmds
12256
12257# Symbols that should not be listed in the preloaded symbols.
12258exclude_expsyms=$lt_exclude_expsyms_CXX
12259
12260# Symbols that must always be exported.
12261include_expsyms=$lt_include_expsyms_CXX
12262
12263# ### END LIBTOOL TAG CONFIG: $tagname
12264
12265__EOF__
12266
12267
12268else
12269 # If there is no Makefile yet, we rely on a make rule to execute
12270 # `config.status --recheck' to rerun these tests and create the
12271 # libtool script then.
12272 test -f Makefile && make "$ltmain"
12273fi
12274
12275
12276ac_ext=c
12277ac_cpp='$CPP $CPPFLAGS'
12278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12280ac_compiler_gnu=$ac_cv_c_compiler_gnu
12281
12282CC=$lt_save_CC
12283LDCXX=$LD
12284LD=$lt_save_LD
12285GCC=$lt_save_GCC
12286with_gnu_ldcxx=$with_gnu_ld
12287with_gnu_ld=$lt_save_with_gnu_ld
12288lt_cv_path_LDCXX=$lt_cv_path_LD
12289lt_cv_path_LD=$lt_save_path_LD
12290lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12291lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12292
12293 else
12294 tagname=""
12295 fi
12296 ;;
12297
12298 F77)
12299 if test -n "$F77" && test "X$F77" != "Xno"; then
12300
12301ac_ext=f
12302ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12303ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12305
12306
12307archive_cmds_need_lc_F77=no
12308allow_undefined_flag_F77=
12309always_export_symbols_F77=no
12310archive_expsym_cmds_F77=
12311export_dynamic_flag_spec_F77=
12312hardcode_direct_F77=no
12313hardcode_libdir_flag_spec_F77=
12314hardcode_libdir_flag_spec_ld_F77=
12315hardcode_libdir_separator_F77=
12316hardcode_minus_L_F77=no
12317hardcode_automatic_F77=no
12318module_cmds_F77=
12319module_expsym_cmds_F77=
12320link_all_deplibs_F77=unknown
12321old_archive_cmds_F77=$old_archive_cmds
12322no_undefined_flag_F77=
12323whole_archive_flag_spec_F77=
12324enable_shared_with_static_runtimes_F77=no
12325
12326# Source file extension for f77 test sources.
12327ac_ext=f
12328
12329# Object file extension for compiled f77 test sources.
12330objext=o
12331objext_F77=$objext
12332
12333# Code to be used in simple compile tests
12334lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12335
12336# Code to be used in simple link tests
12337lt_simple_link_test_code=" program t\n end\n"
12338
12339# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12340
12341# If no C compiler was specified, use CC.
12342LTCC=${LTCC-"$CC"}
12343
12344# Allow CC to be a program name with arguments.
12345compiler=$CC
12346
12347
12348# Allow CC to be a program name with arguments.
12349lt_save_CC="$CC"
12350CC=${F77-"f77"}
12351compiler=$CC
12352compiler_F77=$CC
12353cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12354
12355echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12356echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12357echo "$as_me:$LINENO: result: $can_build_shared" >&5
12358echo "${ECHO_T}$can_build_shared" >&6
12359
12360echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12361echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12362test "$can_build_shared" = "no" && enable_shared=no
12363
12364# On AIX, shared libraries and static libraries use the same namespace, and
12365# are all built from PIC.
12366case "$host_os" in
12367aix3*)
12368 test "$enable_shared" = yes && enable_static=no
12369 if test -n "$RANLIB"; then
12370 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12371 postinstall_cmds='$RANLIB $lib'
12372 fi
12373 ;;
12374aix4*)
12375 test "$enable_shared" = yes && enable_static=no
12376 ;;
12377esac
12378echo "$as_me:$LINENO: result: $enable_shared" >&5
12379echo "${ECHO_T}$enable_shared" >&6
12380
12381echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12382echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12383# Make sure either enable_shared or enable_static is yes.
12384test "$enable_shared" = yes || enable_static=yes
12385echo "$as_me:$LINENO: result: $enable_static" >&5
12386echo "${ECHO_T}$enable_static" >&6
12387
12388test "$ld_shlibs_F77" = no && can_build_shared=no
12389
12390GCC_F77="$G77"
12391LD_F77="$LD"
12392
12393lt_prog_compiler_wl_F77=
12394lt_prog_compiler_pic_F77=
12395lt_prog_compiler_static_F77=
12396
12397echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12398echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12399
12400 if test "$GCC" = yes; then
12401 lt_prog_compiler_wl_F77='-Wl,'
12402 lt_prog_compiler_static_F77='-static'
12403
12404 case $host_os in
12405 aix*)
12406 # All AIX code is PIC.
12407 if test "$host_cpu" = ia64; then
12408 # AIX 5 now supports IA64 processor
12409 lt_prog_compiler_static_F77='-Bstatic'
12410 fi
12411 ;;
12412
12413 amigaos*)
12414 # FIXME: we need at least 68020 code to build shared libraries, but
12415 # adding the `-m68020' flag to GCC prevents building anything better,
12416 # like `-m68040'.
12417 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12418 ;;
12419
12420 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12421 # PIC is the default for these OSes.
12422 ;;
12423
12424 mingw* | pw32* | os2*)
12425 # This hack is so that the source file can tell whether it is being
12426 # built for inclusion in a dll (and should export symbols for example).
12427 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12428 ;;
12429
12430 darwin* | rhapsody*)
12431 # PIC is the default on this platform
12432 # Common symbols not allowed in MH_DYLIB files
12433 lt_prog_compiler_pic_F77='-fno-common'
12434 ;;
12435
12436 msdosdjgpp*)
12437 # Just because we use GCC doesn't mean we suddenly get shared libraries
12438 # on systems that don't support them.
12439 lt_prog_compiler_can_build_shared_F77=no
12440 enable_shared=no
12441 ;;
12442
12443 sysv4*MP*)
12444 if test -d /usr/nec; then
12445 lt_prog_compiler_pic_F77=-Kconform_pic
12446 fi
12447 ;;
12448
12449 hpux*)
12450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12451 # not for PA HP-UX.
12452 case "$host_cpu" in
12453 hppa*64*|ia64*)
12454 # +Z the default
12455 ;;
12456 *)
12457 lt_prog_compiler_pic_F77='-fPIC'
12458 ;;
12459 esac
12460 ;;
12461
12462 *)
12463 lt_prog_compiler_pic_F77='-fPIC'
12464 ;;
12465 esac
12466 else
12467 # PORTME Check for flag to pass linker flags through the system compiler.
12468 case $host_os in
12469 aix*)
12470 lt_prog_compiler_wl_F77='-Wl,'
12471 if test "$host_cpu" = ia64; then
12472 # AIX 5 now supports IA64 processor
12473 lt_prog_compiler_static_F77='-Bstatic'
12474 else
12475 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12476 fi
12477 ;;
12478
12479 mingw* | pw32* | os2*)
12480 # This hack is so that the source file can tell whether it is being
12481 # built for inclusion in a dll (and should export symbols for example).
12482 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12483 ;;
12484
12485 hpux9* | hpux10* | hpux11*)
12486 lt_prog_compiler_wl_F77='-Wl,'
12487 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12488 # not for PA HP-UX.
12489 case "$host_cpu" in
12490 hppa*64*|ia64*)
12491 # +Z the default
12492 ;;
12493 *)
12494 lt_prog_compiler_pic_F77='+Z'
12495 ;;
12496 esac
12497 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12498 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12499 ;;
12500
12501 irix5* | irix6* | nonstopux*)
12502 lt_prog_compiler_wl_F77='-Wl,'
12503 # PIC (with -KPIC) is the default.
12504 lt_prog_compiler_static_F77='-non_shared'
12505 ;;
12506
12507 newsos6)
12508 lt_prog_compiler_pic_F77='-KPIC'
12509 lt_prog_compiler_static_F77='-Bstatic'
12510 ;;
12511
12512 linux*)
12513 case $CC in
12514 icc|ecc)
12515 lt_prog_compiler_wl_F77='-Wl,'
12516 lt_prog_compiler_pic_F77='-KPIC'
12517 lt_prog_compiler_static_F77='-static'
12518 ;;
12519 ccc)
12520 lt_prog_compiler_wl_F77='-Wl,'
12521 # All Alpha code is PIC.
12522 lt_prog_compiler_static_F77='-non_shared'
12523 ;;
12524 esac
12525 ;;
12526
12527 osf3* | osf4* | osf5*)
12528 lt_prog_compiler_wl_F77='-Wl,'
12529 # All OSF/1 code is PIC.
12530 lt_prog_compiler_static_F77='-non_shared'
12531 ;;
12532
12533 sco3.2v5*)
12534 lt_prog_compiler_pic_F77='-Kpic'
12535 lt_prog_compiler_static_F77='-dn'
12536 ;;
12537
12538 solaris*)
12539 lt_prog_compiler_wl_F77='-Wl,'
12540 lt_prog_compiler_pic_F77='-KPIC'
12541 lt_prog_compiler_static_F77='-Bstatic'
12542 ;;
12543
12544 sunos4*)
12545 lt_prog_compiler_wl_F77='-Qoption ld '
12546 lt_prog_compiler_pic_F77='-PIC'
12547 lt_prog_compiler_static_F77='-Bstatic'
12548 ;;
12549
12550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12551 lt_prog_compiler_wl_F77='-Wl,'
12552 lt_prog_compiler_pic_F77='-KPIC'
12553 lt_prog_compiler_static_F77='-Bstatic'
12554 ;;
12555
12556 sysv4*MP*)
12557 if test -d /usr/nec ;then
12558 lt_prog_compiler_pic_F77='-Kconform_pic'
12559 lt_prog_compiler_static_F77='-Bstatic'
12560 fi
12561 ;;
12562
12563 uts4*)
12564 lt_prog_compiler_pic_F77='-pic'
12565 lt_prog_compiler_static_F77='-Bstatic'
12566 ;;
12567
12568 *)
12569 lt_prog_compiler_can_build_shared_F77=no
12570 ;;
12571 esac
12572 fi
12573
12574echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12575echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12576
12577#
12578# Check to make sure the PIC flag actually works.
12579#
12580if test -n "$lt_prog_compiler_pic_F77"; then
12581 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12582echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12583if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585else
12586 lt_prog_compiler_pic_works_F77=no
12587 ac_outfile=conftest.$ac_objext
12588 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12589 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12590 # Insert the option either (1) after the last *FLAGS variable, or
12591 # (2) before a word containing "conftest.", or (3) at the end.
12592 # Note that $ac_compile itself does not contain backslashes and begins
12593 # with a dollar sign (not a hyphen), so the echo should work correctly.
12594 # The option is referenced via a variable to avoid confusing sed.
12595 lt_compile=`echo "$ac_compile" | $SED \
12596 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12598 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +000012599 (eval echo "\"\$as_me:12599: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +000012600 (eval "$lt_compile" 2>conftest.err)
12601 ac_status=$?
12602 cat conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +000012603 echo "$as_me:12603: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +000012604 if (exit $ac_status) && test -s "$ac_outfile"; then
12605 # The compiler can only warn and ignore the option if not recognized
12606 # So say no if there are warnings
12607 if test ! -s conftest.err; then
12608 lt_prog_compiler_pic_works_F77=yes
12609 fi
12610 fi
12611 $rm conftest*
12612
12613fi
12614echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12615echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12616
12617if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12618 case $lt_prog_compiler_pic_F77 in
12619 "" | " "*) ;;
12620 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12621 esac
12622else
12623 lt_prog_compiler_pic_F77=
12624 lt_prog_compiler_can_build_shared_F77=no
12625fi
12626
12627fi
12628case "$host_os" in
12629 # For platforms which do not support PIC, -DPIC is meaningless:
12630 *djgpp*)
12631 lt_prog_compiler_pic_F77=
12632 ;;
12633 *)
12634 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12635 ;;
12636esac
12637
12638echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12639echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12640if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 lt_cv_prog_compiler_c_o_F77=no
12644 $rm -r conftest 2>/dev/null
12645 mkdir conftest
12646 cd conftest
12647 mkdir out
12648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12649
12650 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12651 # that will create temporary files in the current directory regardless of
12652 # the output directory. Thus, making CWD read-only will cause this test
12653 # to fail, enabling locking or at least warning the user not to do parallel
12654 # builds.
12655 chmod -w .
12656
12657 lt_compiler_flag="-o out/conftest2.$ac_objext"
12658 # Insert the option either (1) after the last *FLAGS variable, or
12659 # (2) before a word containing "conftest.", or (3) at the end.
12660 # Note that $ac_compile itself does not contain backslashes and begins
12661 # with a dollar sign (not a hyphen), so the echo should work correctly.
12662 lt_compile=`echo "$ac_compile" | $SED \
12663 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12665 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +000012666 (eval echo "\"\$as_me:12666: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +000012667 (eval "$lt_compile" 2>out/conftest.err)
12668 ac_status=$?
12669 cat out/conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +000012670 echo "$as_me:12670: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +000012671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12672 then
12673 # The compiler can only warn and ignore the option if not recognized
12674 # So say no if there are warnings
12675 if test ! -s out/conftest.err; then
12676 lt_cv_prog_compiler_c_o_F77=yes
12677 fi
12678 fi
12679 chmod u+w .
12680 $rm conftest* out/*
12681 rmdir out
12682 cd ..
12683 rmdir conftest
12684 $rm conftest*
12685
12686fi
12687echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12688echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12689
12690
12691hard_links="nottested"
12692if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12693 # do not overwrite the value of need_locks provided by the user
12694 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12695echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12696 hard_links=yes
12697 $rm conftest*
12698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12699 touch conftest.a
12700 ln conftest.a conftest.b 2>&5 || hard_links=no
12701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12702 echo "$as_me:$LINENO: result: $hard_links" >&5
12703echo "${ECHO_T}$hard_links" >&6
12704 if test "$hard_links" = no; then
12705 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12706echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12707 need_locks=warn
12708 fi
12709else
12710 need_locks=no
12711fi
12712
12713echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12714echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12715
12716 runpath_var=
12717 allow_undefined_flag_F77=
12718 enable_shared_with_static_runtimes_F77=no
12719 archive_cmds_F77=
12720 archive_expsym_cmds_F77=
12721 old_archive_From_new_cmds_F77=
12722 old_archive_from_expsyms_cmds_F77=
12723 export_dynamic_flag_spec_F77=
12724 whole_archive_flag_spec_F77=
12725 thread_safe_flag_spec_F77=
12726 hardcode_libdir_flag_spec_F77=
12727 hardcode_libdir_flag_spec_ld_F77=
12728 hardcode_libdir_separator_F77=
12729 hardcode_direct_F77=no
12730 hardcode_minus_L_F77=no
12731 hardcode_shlibpath_var_F77=unsupported
12732 link_all_deplibs_F77=unknown
12733 hardcode_automatic_F77=no
12734 module_cmds_F77=
12735 module_expsym_cmds_F77=
12736 always_export_symbols_F77=no
12737 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12738 # include_expsyms should be a list of space-separated symbols to be *always*
12739 # included in the symbol list
12740 include_expsyms_F77=
12741 # exclude_expsyms can be an extended regexp of symbols to exclude
12742 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12743 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12744 # as well as any symbol that contains `d'.
12745 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12746 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12747 # platforms (ab)use it in PIC code, but their linkers get confused if
12748 # the symbol is explicitly referenced. Since portable code cannot
12749 # rely on this symbol name, it's probably fine to never include it in
12750 # preloaded symbol tables.
12751 extract_expsyms_cmds=
12752
12753 case $host_os in
12754 cygwin* | mingw* | pw32*)
12755 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12756 # When not using gcc, we currently assume that we are using
12757 # Microsoft Visual C++.
12758 if test "$GCC" != yes; then
12759 with_gnu_ld=no
12760 fi
12761 ;;
12762 openbsd*)
12763 with_gnu_ld=no
12764 ;;
12765 esac
12766
12767 ld_shlibs_F77=yes
12768 if test "$with_gnu_ld" = yes; then
12769 # If archive_cmds runs LD, not CC, wlarc should be empty
12770 wlarc='${wl}'
12771
12772 # See if GNU ld supports shared libraries.
12773 case $host_os in
12774 aix3* | aix4* | aix5*)
12775 # On AIX/PPC, the GNU linker is very broken
12776 if test "$host_cpu" != ia64; then
12777 ld_shlibs_F77=no
12778 cat <<EOF 1>&2
12779
12780*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12781*** to be unable to reliably create shared libraries on AIX.
12782*** Therefore, libtool is disabling shared libraries support. If you
12783*** really care for shared libraries, you may want to modify your PATH
12784*** so that a non-GNU linker is found, and then restart.
12785
12786EOF
12787 fi
12788 ;;
12789
12790 amigaos*)
12791 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)'
12792 hardcode_libdir_flag_spec_F77='-L$libdir'
12793 hardcode_minus_L_F77=yes
12794
12795 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12796 # that the semantics of dynamic libraries on AmigaOS, at least up
12797 # to version 4, is to share data among multiple programs linked
12798 # with the same dynamic library. Since this doesn't match the
12799 # behavior of shared libraries on other platforms, we can't use
12800 # them.
12801 ld_shlibs_F77=no
12802 ;;
12803
12804 beos*)
12805 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12806 allow_undefined_flag_F77=unsupported
12807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12808 # support --undefined. This deserves some investigation. FIXME
12809 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12810 else
12811 ld_shlibs_F77=no
12812 fi
12813 ;;
12814
12815 cygwin* | mingw* | pw32*)
12816 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12817 # as there is no search path for DLLs.
12818 hardcode_libdir_flag_spec_F77='-L$libdir'
12819 allow_undefined_flag_F77=unsupported
12820 always_export_symbols_F77=no
12821 enable_shared_with_static_runtimes_F77=yes
12822 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12823
12824 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12825 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12826 # If the export-symbols file already is a .def file (1st line
12827 # is EXPORTS), use it as is; otherwise, prepend...
12828 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12829 cp $export_symbols $output_objdir/$soname.def;
12830 else
12831 echo EXPORTS > $output_objdir/$soname.def;
12832 cat $export_symbols >> $output_objdir/$soname.def;
12833 fi~
12834 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12835 else
12836 ld_shlibs=no
12837 fi
12838 ;;
12839
12840 netbsd*)
12841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12842 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12843 wlarc=
12844 else
12845 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12847 fi
12848 ;;
12849
12850 solaris* | sysv5*)
12851 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12852 ld_shlibs_F77=no
12853 cat <<EOF 1>&2
12854
12855*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12856*** create shared libraries on Solaris systems. Therefore, libtool
12857*** is disabling shared libraries support. We urge you to upgrade GNU
12858*** binutils to release 2.9.1 or newer. Another option is to modify
12859*** your PATH or compiler configuration so that the native linker is
12860*** used, and then restart.
12861
12862EOF
12863 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12864 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12865 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12866 else
12867 ld_shlibs_F77=no
12868 fi
12869 ;;
12870
12871 sunos4*)
12872 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12873 wlarc=
12874 hardcode_direct_F77=yes
12875 hardcode_shlibpath_var_F77=no
12876 ;;
12877
12878 *)
12879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12882 else
12883 ld_shlibs_F77=no
12884 fi
12885 ;;
12886 esac
12887
12888 if test "$ld_shlibs_F77" = yes; then
12889 runpath_var=LD_RUN_PATH
12890 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12891 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12892 # ancient GNU ld didn't support --whole-archive et. al.
12893 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12894 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12895 else
12896 whole_archive_flag_spec_F77=
12897 fi
12898 fi
12899 else
12900 # PORTME fill in a description of your system's linker (not GNU ld)
12901 case $host_os in
12902 aix3*)
12903 allow_undefined_flag_F77=unsupported
12904 always_export_symbols_F77=yes
12905 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'
12906 # Note: this linker hardcodes the directories in LIBPATH if there
12907 # are no directories specified by -L.
12908 hardcode_minus_L_F77=yes
12909 if test "$GCC" = yes && test -z "$link_static_flag"; then
12910 # Neither direct hardcoding nor static linking is supported with a
12911 # broken collect2.
12912 hardcode_direct_F77=unsupported
12913 fi
12914 ;;
12915
12916 aix4* | aix5*)
12917 if test "$host_cpu" = ia64; then
12918 # On IA64, the linker does run time linking by default, so we don't
12919 # have to do anything special.
12920 aix_use_runtimelinking=no
12921 exp_sym_flag='-Bexport'
12922 no_entry_flag=""
12923 else
12924 # If we're using GNU nm, then we don't want the "-C" option.
12925 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12926 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12927 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'
12928 else
12929 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'
12930 fi
12931 aix_use_runtimelinking=no
12932
12933 # Test if we are trying to use run time linking or normal
12934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12935 # need to do runtime linking.
12936 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12937 for ld_flag in $LDFLAGS; do
12938 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12939 aix_use_runtimelinking=yes
12940 break
12941 fi
12942 done
12943 esac
12944
12945 exp_sym_flag='-bexport'
12946 no_entry_flag='-bnoentry'
12947 fi
12948
12949 # When large executables or shared objects are built, AIX ld can
12950 # have problems creating the table of contents. If linking a library
12951 # or program results in "error TOC overflow" add -mminimal-toc to
12952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12954
12955 archive_cmds_F77=''
12956 hardcode_direct_F77=yes
12957 hardcode_libdir_separator_F77=':'
12958 link_all_deplibs_F77=yes
12959
12960 if test "$GCC" = yes; then
12961 case $host_os in aix4.012|aix4.012.*)
12962 # We only want to do this on AIX 4.2 and lower, the check
12963 # below for broken collect2 doesn't work under 4.3+
12964 collect2name=`${CC} -print-prog-name=collect2`
12965 if test -f "$collect2name" && \
12966 strings "$collect2name" | grep resolve_lib_name >/dev/null
12967 then
12968 # We have reworked collect2
12969 hardcode_direct_F77=yes
12970 else
12971 # We have old collect2
12972 hardcode_direct_F77=unsupported
12973 # It fails to find uninstalled libraries when the uninstalled
12974 # path is not listed in the libpath. Setting hardcode_minus_L
12975 # to unsupported forces relinking
12976 hardcode_minus_L_F77=yes
12977 hardcode_libdir_flag_spec_F77='-L$libdir'
12978 hardcode_libdir_separator_F77=
12979 fi
12980 esac
12981 shared_flag='-shared'
12982 else
12983 # not using gcc
12984 if test "$host_cpu" = ia64; then
12985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12986 # chokes on -Wl,-G. The following line is correct:
12987 shared_flag='-G'
12988 else
12989 if test "$aix_use_runtimelinking" = yes; then
12990 shared_flag='${wl}-G'
12991 else
12992 shared_flag='${wl}-bM:SRE'
12993 fi
12994 fi
12995 fi
12996
12997 # It seems that -bexpall does not export symbols beginning with
12998 # underscore (_), so it is better to generate a list of symbols to export.
12999 always_export_symbols_F77=yes
13000 if test "$aix_use_runtimelinking" = yes; then
13001 # Warning - without using the other runtime loading flags (-brtl),
13002 # -berok will link without error, but may produce a broken library.
13003 allow_undefined_flag_F77='-berok'
13004 # Determine the default libpath from the value encoded in an empty executable.
13005 cat >conftest.$ac_ext <<_ACEOF
13006 program main
13007
13008 end
13009_ACEOF
13010rm -f conftest.$ac_objext conftest$ac_exeext
13011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13012 (eval $ac_link) 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_f77_werror_flag"
13020 || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest$ac_exeext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032
13033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13034}'`
13035# Check for a 64-bit object if we didn't find anything.
13036if 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; }
13037}'`; fi
13038else
13039 echo "$as_me: failed program was:" >&5
13040sed 's/^/| /' conftest.$ac_ext >&5
13041
13042fi
13043rm -f conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13046
13047 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13048 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13049 else
13050 if test "$host_cpu" = ia64; then
13051 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13052 allow_undefined_flag_F77="-z nodefs"
13053 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13054 else
13055 # Determine the default libpath from the value encoded in an empty executable.
13056 cat >conftest.$ac_ext <<_ACEOF
13057 program main
13058
13059 end
13060_ACEOF
13061rm -f conftest.$ac_objext conftest$ac_exeext
13062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063 (eval $ac_link) 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_f77_werror_flag"
13071 || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083
13084aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13085}'`
13086# Check for a 64-bit object if we didn't find anything.
13087if 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; }
13088}'`; fi
13089else
13090 echo "$as_me: failed program was:" >&5
13091sed 's/^/| /' conftest.$ac_ext >&5
13092
13093fi
13094rm -f conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13097
13098 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13099 # Warning - without using the other run time loading flags,
13100 # -berok will link without error, but may produce a broken library.
13101 no_undefined_flag_F77=' ${wl}-bernotok'
13102 allow_undefined_flag_F77=' ${wl}-berok'
13103 # -bexpall does not export symbols beginning with underscore (_)
13104 always_export_symbols_F77=yes
13105 # Exported symbols can be pulled into shared objects from archives
13106 whole_archive_flag_spec_F77=' '
13107 archive_cmds_need_lc_F77=yes
13108 # This is similar to how AIX traditionally builds it's shared libraries.
13109 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13110 fi
13111 fi
13112 ;;
13113
13114 amigaos*)
13115 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)'
13116 hardcode_libdir_flag_spec_F77='-L$libdir'
13117 hardcode_minus_L_F77=yes
13118 # see comment about different semantics on the GNU ld section
13119 ld_shlibs_F77=no
13120 ;;
13121
13122 bsdi4*)
13123 export_dynamic_flag_spec_F77=-rdynamic
13124 ;;
13125
13126 cygwin* | mingw* | pw32*)
13127 # When not using gcc, we currently assume that we are using
13128 # Microsoft Visual C++.
13129 # hardcode_libdir_flag_spec is actually meaningless, as there is
13130 # no search path for DLLs.
13131 hardcode_libdir_flag_spec_F77=' '
13132 allow_undefined_flag_F77=unsupported
13133 # Tell ltmain to make .lib files, not .a files.
13134 libext=lib
13135 # Tell ltmain to make .dll files, not .so files.
13136 shrext=".dll"
13137 # FIXME: Setting linknames here is a bad hack.
13138 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13139 # The linker will automatically build a .lib file if we build a DLL.
13140 old_archive_From_new_cmds_F77='true'
13141 # FIXME: Should let the user specify the lib program.
13142 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13143 fix_srcfile_path='`cygpath -w "$srcfile"`'
13144 enable_shared_with_static_runtimes_F77=yes
13145 ;;
13146
13147 darwin* | rhapsody*)
13148 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13149 archive_cmds_need_lc_F77=no
13150 case "$host_os" in
13151 rhapsody* | darwin1.[012])
13152 allow_undefined_flag_F77='-undefined suppress'
13153 ;;
13154 *) # Darwin 1.3 on
13155 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13156 ;;
13157 esac
13158 # FIXME: Relying on posixy $() will cause problems for
13159 # cross-compilation, but unfortunately the echo tests do not
13160 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13161 # `"' quotes if we put them in here... so don't!
13162 lt_int_apple_cc_single_mod=no
13163 output_verbose_link_cmd='echo'
13164 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13165 lt_int_apple_cc_single_mod=yes
13166 fi
13167 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13168 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13169 else
13170 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13171 fi
13172 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13173 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13174 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13175 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13176 else
13177 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13178 fi
13179 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13180 hardcode_direct_F77=no
13181 hardcode_automatic_F77=yes
13182 hardcode_shlibpath_var_F77=unsupported
13183 whole_archive_flag_spec_F77='-all_load $convenience'
13184 link_all_deplibs_F77=yes
13185 fi
13186 ;;
13187
13188 dgux*)
13189 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13190 hardcode_libdir_flag_spec_F77='-L$libdir'
13191 hardcode_shlibpath_var_F77=no
13192 ;;
13193
13194 freebsd1*)
13195 ld_shlibs_F77=no
13196 ;;
13197
13198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13199 # support. Future versions do this automatically, but an explicit c++rt0.o
13200 # does not break anything, and helps significantly (at the cost of a little
13201 # extra space).
13202 freebsd2.2*)
13203 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13204 hardcode_libdir_flag_spec_F77='-R$libdir'
13205 hardcode_direct_F77=yes
13206 hardcode_shlibpath_var_F77=no
13207 ;;
13208
13209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13210 freebsd2*)
13211 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13212 hardcode_direct_F77=yes
13213 hardcode_minus_L_F77=yes
13214 hardcode_shlibpath_var_F77=no
13215 ;;
13216
13217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13218 freebsd*)
13219 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13220 hardcode_libdir_flag_spec_F77='-R$libdir'
13221 hardcode_direct_F77=yes
13222 hardcode_shlibpath_var_F77=no
13223 ;;
13224
13225 hpux9*)
13226 if test "$GCC" = yes; then
13227 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'
13228 else
13229 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'
13230 fi
13231 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13232 hardcode_libdir_separator_F77=:
13233 hardcode_direct_F77=yes
13234
13235 # hardcode_minus_L: Not really in the search PATH,
13236 # but as the default location of the library.
13237 hardcode_minus_L_F77=yes
13238 export_dynamic_flag_spec_F77='${wl}-E'
13239 ;;
13240
13241 hpux10* | hpux11*)
13242 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13243 case "$host_cpu" in
13244 hppa*64*|ia64*)
13245 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13246 ;;
13247 *)
13248 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13249 ;;
13250 esac
13251 else
13252 case "$host_cpu" in
13253 hppa*64*|ia64*)
13254 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13255 ;;
13256 *)
13257 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13258 ;;
13259 esac
13260 fi
13261 if test "$with_gnu_ld" = no; then
13262 case "$host_cpu" in
13263 hppa*64*)
13264 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13265 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13266 hardcode_libdir_separator_F77=:
13267 hardcode_direct_F77=no
13268 hardcode_shlibpath_var_F77=no
13269 ;;
13270 ia64*)
13271 hardcode_libdir_flag_spec_F77='-L$libdir'
13272 hardcode_direct_F77=no
13273 hardcode_shlibpath_var_F77=no
13274
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L_F77=yes
13278 ;;
13279 *)
13280 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13281 hardcode_libdir_separator_F77=:
13282 hardcode_direct_F77=yes
13283 export_dynamic_flag_spec_F77='${wl}-E'
13284
13285 # hardcode_minus_L: Not really in the search PATH,
13286 # but as the default location of the library.
13287 hardcode_minus_L_F77=yes
13288 ;;
13289 esac
13290 fi
13291 ;;
13292
13293 irix5* | irix6* | nonstopux*)
13294 if test "$GCC" = yes; then
13295 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'
13296 else
13297 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'
13298 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13299 fi
13300 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13301 hardcode_libdir_separator_F77=:
13302 link_all_deplibs_F77=yes
13303 ;;
13304
13305 netbsd*)
13306 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13307 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13308 else
13309 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13310 fi
13311 hardcode_libdir_flag_spec_F77='-R$libdir'
13312 hardcode_direct_F77=yes
13313 hardcode_shlibpath_var_F77=no
13314 ;;
13315
13316 newsos6)
13317 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13318 hardcode_direct_F77=yes
13319 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13320 hardcode_libdir_separator_F77=:
13321 hardcode_shlibpath_var_F77=no
13322 ;;
13323
13324 openbsd*)
13325 hardcode_direct_F77=yes
13326 hardcode_shlibpath_var_F77=no
13327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13328 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13329 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13330 export_dynamic_flag_spec_F77='${wl}-E'
13331 else
13332 case $host_os in
13333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13334 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13335 hardcode_libdir_flag_spec_F77='-R$libdir'
13336 ;;
13337 *)
13338 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13339 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13340 ;;
13341 esac
13342 fi
13343 ;;
13344
13345 os2*)
13346 hardcode_libdir_flag_spec_F77='-L$libdir'
13347 hardcode_minus_L_F77=yes
13348 allow_undefined_flag_F77=unsupported
13349 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'
13350 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13351 ;;
13352
13353 osf3*)
13354 if test "$GCC" = yes; then
13355 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13356 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'
13357 else
13358 allow_undefined_flag_F77=' -expect_unresolved \*'
13359 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'
13360 fi
13361 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13362 hardcode_libdir_separator_F77=:
13363 ;;
13364
13365 osf4* | osf5*) # as osf3* with the addition of -msym flag
13366 if test "$GCC" = yes; then
13367 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13368 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'
13369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13370 else
13371 allow_undefined_flag_F77=' -expect_unresolved \*'
13372 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'
13373 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~
13374 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13375
13376 # Both c and cxx compiler support -rpath directly
13377 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13378 fi
13379 hardcode_libdir_separator_F77=:
13380 ;;
13381
13382 sco3.2v5*)
13383 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13384 hardcode_shlibpath_var_F77=no
13385 export_dynamic_flag_spec_F77='${wl}-Bexport'
13386 runpath_var=LD_RUN_PATH
13387 hardcode_runpath_var=yes
13388 ;;
13389
13390 solaris*)
13391 no_undefined_flag_F77=' -z text'
13392 if test "$GCC" = yes; then
13393 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13394 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13395 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13396 else
13397 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13398 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13400 fi
13401 hardcode_libdir_flag_spec_F77='-R$libdir'
13402 hardcode_shlibpath_var_F77=no
13403 case $host_os in
13404 solaris2.[0-5] | solaris2.[0-5].*) ;;
13405 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13406 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13407 esac
13408 link_all_deplibs_F77=yes
13409 ;;
13410
13411 sunos4*)
13412 if test "x$host_vendor" = xsequent; then
13413 # Use $CC to link under sequent, because it throws in some extra .o
13414 # files that make .init and .fini sections work.
13415 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13416 else
13417 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13418 fi
13419 hardcode_libdir_flag_spec_F77='-L$libdir'
13420 hardcode_direct_F77=yes
13421 hardcode_minus_L_F77=yes
13422 hardcode_shlibpath_var_F77=no
13423 ;;
13424
13425 sysv4)
13426 case $host_vendor in
13427 sni)
13428 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429 hardcode_direct_F77=yes # is this really true???
13430 ;;
13431 siemens)
13432 ## LD is ld it makes a PLAMLIB
13433 ## CC just makes a GrossModule.
13434 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13435 reload_cmds_F77='$CC -r -o $output$reload_objs'
13436 hardcode_direct_F77=no
13437 ;;
13438 motorola)
13439 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13440 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13441 ;;
13442 esac
13443 runpath_var='LD_RUN_PATH'
13444 hardcode_shlibpath_var_F77=no
13445 ;;
13446
13447 sysv4.3*)
13448 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449 hardcode_shlibpath_var_F77=no
13450 export_dynamic_flag_spec_F77='-Bexport'
13451 ;;
13452
13453 sysv4*MP*)
13454 if test -d /usr/nec; then
13455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_shlibpath_var_F77=no
13457 runpath_var=LD_RUN_PATH
13458 hardcode_runpath_var=yes
13459 ld_shlibs_F77=yes
13460 fi
13461 ;;
13462
13463 sysv4.2uw2*)
13464 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_direct_F77=yes
13466 hardcode_minus_L_F77=no
13467 hardcode_shlibpath_var_F77=no
13468 hardcode_runpath_var=yes
13469 runpath_var=LD_RUN_PATH
13470 ;;
13471
13472 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13473 no_undefined_flag_F77='${wl}-z ${wl}text'
13474 if test "$GCC" = yes; then
13475 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13476 else
13477 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13478 fi
13479 runpath_var='LD_RUN_PATH'
13480 hardcode_shlibpath_var_F77=no
13481 ;;
13482
13483 sysv5*)
13484 no_undefined_flag_F77=' -z text'
13485 # $CC -shared without GNU ld will not create a library from C++
13486 # object files and a static libstdc++, better avoid it by now
13487 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13488 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13490 hardcode_libdir_flag_spec_F77=
13491 hardcode_shlibpath_var_F77=no
13492 runpath_var='LD_RUN_PATH'
13493 ;;
13494
13495 uts4*)
13496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497 hardcode_libdir_flag_spec_F77='-L$libdir'
13498 hardcode_shlibpath_var_F77=no
13499 ;;
13500
13501 *)
13502 ld_shlibs_F77=no
13503 ;;
13504 esac
13505 fi
13506
13507echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13508echo "${ECHO_T}$ld_shlibs_F77" >&6
13509test "$ld_shlibs_F77" = no && can_build_shared=no
13510
13511variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13512if test "$GCC" = yes; then
13513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13514fi
13515
13516#
13517# Do we need to explicitly link libc?
13518#
13519case "x$archive_cmds_need_lc_F77" in
13520x|xyes)
13521 # Assume -lc should be added
13522 archive_cmds_need_lc_F77=yes
13523
13524 if test "$enable_shared" = yes && test "$GCC" = yes; then
13525 case $archive_cmds_F77 in
13526 *'~'*)
13527 # FIXME: we may have to deal with multi-command sequences.
13528 ;;
13529 '$CC '*)
13530 # Test whether the compiler implicitly links with -lc since on some
13531 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13532 # to ld, don't add -lc before -lgcc.
13533 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13534echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13535 $rm conftest*
13536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13537
13538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539 (eval $ac_compile) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } 2>conftest.err; then
13543 soname=conftest
13544 lib=conftest
13545 libobjs=conftest.$ac_objext
13546 deplibs=
13547 wl=$lt_prog_compiler_wl_F77
13548 compiler_flags=-v
13549 linker_flags=-v
13550 verstring=
13551 output_objdir=.
13552 libname=conftest
13553 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13554 allow_undefined_flag_F77=
13555 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13556 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }
13560 then
13561 archive_cmds_need_lc_F77=no
13562 else
13563 archive_cmds_need_lc_F77=yes
13564 fi
13565 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13566 else
13567 cat conftest.err 1>&5
13568 fi
13569 $rm conftest*
13570 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13571echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13572 ;;
13573 esac
13574 fi
13575 ;;
13576esac
13577
13578echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13579echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13580hardcode_action_F77=
13581if test -n "$hardcode_libdir_flag_spec_F77" || \
13582 test -n "$runpath_var F77" || \
13583 test "X$hardcode_automatic_F77"="Xyes" ; then
13584
13585 # We can hardcode non-existant directories.
13586 if test "$hardcode_direct_F77" != no &&
13587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13588 # have to relink, otherwise we might link with an installed library
13589 # when we should be linking with a yet-to-be-installed one
13590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13591 test "$hardcode_minus_L_F77" != no; then
13592 # Linking always hardcodes the temporary library directory.
13593 hardcode_action_F77=relink
13594 else
13595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13596 hardcode_action_F77=immediate
13597 fi
13598else
13599 # We cannot hardcode anything, or else we can only hardcode existing
13600 # directories.
13601 hardcode_action_F77=unsupported
13602fi
13603echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13604echo "${ECHO_T}$hardcode_action_F77" >&6
13605
13606if test "$hardcode_action_F77" = relink; then
13607 # Fast installation is not supported
13608 enable_fast_install=no
13609elif test "$shlibpath_overrides_runpath" = yes ||
13610 test "$enable_shared" = no; then
13611 # Fast installation is not necessary
13612 enable_fast_install=needless
13613fi
13614
13615striplib=
13616old_striplib=
13617echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13618echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13619if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13622 echo "$as_me:$LINENO: result: yes" >&5
13623echo "${ECHO_T}yes" >&6
13624else
13625# FIXME - insert some real tests, host_os isn't really good enough
13626 case $host_os in
13627 darwin*)
13628 if test -n "$STRIP" ; then
13629 striplib="$STRIP -x"
13630 echo "$as_me:$LINENO: result: yes" >&5
13631echo "${ECHO_T}yes" >&6
13632 else
13633 echo "$as_me:$LINENO: result: no" >&5
13634echo "${ECHO_T}no" >&6
13635fi
13636 ;;
13637 *)
13638 echo "$as_me:$LINENO: result: no" >&5
13639echo "${ECHO_T}no" >&6
13640 ;;
13641 esac
13642fi
13643
13644echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13645echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13646library_names_spec=
13647libname_spec='lib$name'
13648soname_spec=
13649shrext=".so"
13650postinstall_cmds=
13651postuninstall_cmds=
13652finish_cmds=
13653finish_eval=
13654shlibpath_var=
13655shlibpath_overrides_runpath=unknown
13656version_type=none
13657dynamic_linker="$host_os ld.so"
13658sys_lib_dlsearch_path_spec="/lib /usr/lib"
13659if test "$GCC" = yes; then
13660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13661 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13662 # if the path contains ";" then we assume it to be the separator
13663 # otherwise default to the standard path separator (i.e. ":") - it is
13664 # assumed that no part of a normal pathname contains ";" but that should
13665 # okay in the real world where ";" in dirpaths is itself problematic.
13666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13667 else
13668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13669 fi
13670else
13671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13672fi
13673need_lib_prefix=unknown
13674hardcode_into_libs=no
13675
13676# when you set need_version to no, make sure it does not cause -set_version
13677# flags to be left without arguments
13678need_version=unknown
13679
13680case $host_os in
13681aix3*)
13682 version_type=linux
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13684 shlibpath_var=LIBPATH
13685
13686 # AIX 3 has no versioning support, so we append a major version to the name.
13687 soname_spec='${libname}${release}${shared_ext}$major'
13688 ;;
13689
13690aix4* | aix5*)
13691 version_type=linux
13692 need_lib_prefix=no
13693 need_version=no
13694 hardcode_into_libs=yes
13695 if test "$host_cpu" = ia64; then
13696 # AIX 5 supports IA64
13697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13698 shlibpath_var=LD_LIBRARY_PATH
13699 else
13700 # With GCC up to 2.95.x, collect2 would create an import file
13701 # for dependence libraries. The import file would start with
13702 # the line `#! .'. This would cause the generated library to
13703 # depend on `.', always an invalid library. This was fixed in
13704 # development snapshots of GCC prior to 3.0.
13705 case $host_os in
13706 aix4 | aix4.[01] | aix4.[01].*)
13707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13708 echo ' yes '
13709 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13710 :
13711 else
13712 can_build_shared=no
13713 fi
13714 ;;
13715 esac
13716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13717 # soname into executable. Probably we can add versioning support to
13718 # collect2, so additional links can be useful in future.
13719 if test "$aix_use_runtimelinking" = yes; then
13720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13721 # instead of lib<name>.a to let people know that these are not
13722 # typical AIX shared libraries.
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724 else
13725 # We preserve .a as extension for shared libraries through AIX4.2
13726 # and later when we are not doing run time linking.
13727 library_names_spec='${libname}${release}.a $libname.a'
13728 soname_spec='${libname}${release}${shared_ext}$major'
13729 fi
13730 shlibpath_var=LIBPATH
13731 fi
13732 ;;
13733
13734amigaos*)
13735 library_names_spec='$libname.ixlibrary $libname.a'
13736 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13737 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'
13738 ;;
13739
13740beos*)
13741 library_names_spec='${libname}${shared_ext}'
13742 dynamic_linker="$host_os ld.so"
13743 shlibpath_var=LIBRARY_PATH
13744 ;;
13745
13746bsdi4*)
13747 version_type=linux
13748 need_version=no
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13752 shlibpath_var=LD_LIBRARY_PATH
13753 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13754 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13755 # the default ld.so.conf also contains /usr/contrib/lib and
13756 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13757 # libtool to hard-code these into programs
13758 ;;
13759
13760cygwin* | mingw* | pw32*)
13761 version_type=windows
13762 shrext=".dll"
13763 need_version=no
13764 need_lib_prefix=no
13765
13766 case $GCC,$host_os in
13767 yes,cygwin* | yes,mingw* | yes,pw32*)
13768 library_names_spec='$libname.dll.a'
13769 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13770 postinstall_cmds='base_file=`basename \${file}`~
13771 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13772 dldir=$destdir/`dirname \$dlpath`~
13773 test -d \$dldir || mkdir -p \$dldir~
13774 $install_prog $dir/$dlname \$dldir/$dlname'
13775 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13776 dlpath=$dir/\$dldll~
13777 $rm \$dlpath'
13778 shlibpath_overrides_runpath=yes
13779
13780 case $host_os in
13781 cygwin*)
13782 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13783 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13784 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13785 ;;
13786 mingw*)
13787 # MinGW DLLs use traditional 'lib' prefix
13788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13790 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13791 # It is most probably a Windows format PATH printed by
13792 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13793 # path with ; separators, and with drive letters. We can handle the
13794 # drive letters (cygwin fileutils understands them), so leave them,
13795 # especially as we might pass files found there to a mingw objdump,
13796 # which wouldn't understand a cygwinified path. Ahh.
13797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13798 else
13799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13800 fi
13801 ;;
13802 pw32*)
13803 # pw32 DLLs use 'pw' prefix rather than 'lib'
13804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13805 ;;
13806 esac
13807 ;;
13808
13809 *)
13810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13811 ;;
13812 esac
13813 dynamic_linker='Win32 ld.exe'
13814 # FIXME: first we should search . and the directory the executable is in
13815 shlibpath_var=PATH
13816 ;;
13817
13818darwin* | rhapsody*)
13819 dynamic_linker="$host_os dyld"
13820 version_type=darwin
13821 need_lib_prefix=no
13822 need_version=no
13823 # FIXME: Relying on posixy $() will cause problems for
13824 # cross-compilation, but unfortunately the echo tests do not
13825 # yet detect zsh echo's removal of \ escapes.
13826 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13827 soname_spec='${libname}${release}${major}$shared_ext'
13828 shlibpath_overrides_runpath=yes
13829 shlibpath_var=DYLD_LIBRARY_PATH
13830 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13831 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13832 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13833 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"`
13834 fi
13835 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13836 ;;
13837
13838dgux*)
13839 version_type=linux
13840 need_lib_prefix=no
13841 need_version=no
13842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13843 soname_spec='${libname}${release}${shared_ext}$major'
13844 shlibpath_var=LD_LIBRARY_PATH
13845 ;;
13846
13847freebsd1*)
13848 dynamic_linker=no
13849 ;;
13850
13851freebsd*)
13852 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13853 version_type=freebsd-$objformat
13854 case $version_type in
13855 freebsd-elf*)
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13857 need_version=no
13858 need_lib_prefix=no
13859 ;;
13860 freebsd-*)
13861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13862 need_version=yes
13863 ;;
13864 esac
13865 shlibpath_var=LD_LIBRARY_PATH
13866 case $host_os in
13867 freebsd2*)
13868 shlibpath_overrides_runpath=yes
13869 ;;
13870 freebsd3.01* | freebsdelf3.01*)
13871 shlibpath_overrides_runpath=yes
13872 hardcode_into_libs=yes
13873 ;;
13874 *) # from 3.2 on
13875 shlibpath_overrides_runpath=no
13876 hardcode_into_libs=yes
13877 ;;
13878 esac
13879 ;;
13880
13881gnu*)
13882 version_type=linux
13883 need_lib_prefix=no
13884 need_version=no
13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13886 soname_spec='${libname}${release}${shared_ext}$major'
13887 shlibpath_var=LD_LIBRARY_PATH
13888 hardcode_into_libs=yes
13889 ;;
13890
13891hpux9* | hpux10* | hpux11*)
13892 # Give a soname corresponding to the major version so that dld.sl refuses to
13893 # link against other versions.
13894 version_type=sunos
13895 need_lib_prefix=no
13896 need_version=no
13897 case "$host_cpu" in
13898 ia64*)
13899 shrext='.so'
13900 hardcode_into_libs=yes
13901 dynamic_linker="$host_os dld.so"
13902 shlibpath_var=LD_LIBRARY_PATH
13903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13905 soname_spec='${libname}${release}${shared_ext}$major'
13906 if test "X$HPUX_IA64_MODE" = X32; then
13907 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13908 else
13909 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13910 fi
13911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13912 ;;
13913 hppa*64*)
13914 shrext='.sl'
13915 hardcode_into_libs=yes
13916 dynamic_linker="$host_os dld.sl"
13917 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13923 ;;
13924 *)
13925 shrext='.sl'
13926 dynamic_linker="$host_os dld.sl"
13927 shlibpath_var=SHLIB_PATH
13928 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13930 soname_spec='${libname}${release}${shared_ext}$major'
13931 ;;
13932 esac
13933 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13934 postinstall_cmds='chmod 555 $lib'
13935 ;;
13936
13937irix5* | irix6* | nonstopux*)
13938 case $host_os in
13939 nonstopux*) version_type=nonstopux ;;
13940 *)
13941 if test "$lt_cv_prog_gnu_ld" = yes; then
13942 version_type=linux
13943 else
13944 version_type=irix
13945 fi ;;
13946 esac
13947 need_lib_prefix=no
13948 need_version=no
13949 soname_spec='${libname}${release}${shared_ext}$major'
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13951 case $host_os in
13952 irix5* | nonstopux*)
13953 libsuff= shlibsuff=
13954 ;;
13955 *)
13956 case $LD in # libtool.m4 will add one of these switches to LD
13957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13958 libsuff= shlibsuff= libmagic=32-bit;;
13959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13960 libsuff=32 shlibsuff=N32 libmagic=N32;;
13961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13963 *) libsuff= shlibsuff= libmagic=never-match;;
13964 esac
13965 ;;
13966 esac
13967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13968 shlibpath_overrides_runpath=no
13969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13971 hardcode_into_libs=yes
13972 ;;
13973
13974# No shared lib support for Linux oldld, aout, or coff.
13975linux*oldld* | linux*aout* | linux*coff*)
13976 dynamic_linker=no
13977 ;;
13978
13979# This must be Linux ELF.
13980linux*)
13981 version_type=linux
13982 need_lib_prefix=no
13983 need_version=no
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13987 shlibpath_var=LD_LIBRARY_PATH
13988 shlibpath_overrides_runpath=no
13989 # This implies no fast_install, which is unacceptable.
13990 # Some rework will be needed to allow for fast_install
13991 # before this can be enabled.
13992 hardcode_into_libs=yes
13993
13994 # We used to test for /lib/ld.so.1 and disable shared libraries on
13995 # powerpc, because MkLinux only supported shared libraries with the
13996 # GNU dynamic linker. Since this was broken with cross compilers,
13997 # most powerpc-linux boxes support dynamic linking these days and
13998 # people can always --disable-shared, the test was removed, and we
13999 # assume the GNU/Linux dynamic linker is in use.
14000 dynamic_linker='GNU/Linux ld.so'
14001 ;;
14002
14003netbsd*)
14004 version_type=sunos
14005 need_lib_prefix=no
14006 need_version=no
14007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14010 dynamic_linker='NetBSD (a.out) ld.so'
14011 else
14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14013 soname_spec='${libname}${release}${shared_ext}$major'
14014 dynamic_linker='NetBSD ld.elf_so'
14015 fi
14016 shlibpath_var=LD_LIBRARY_PATH
14017 shlibpath_overrides_runpath=yes
14018 hardcode_into_libs=yes
14019 ;;
14020
14021newsos6)
14022 version_type=linux
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024 shlibpath_var=LD_LIBRARY_PATH
14025 shlibpath_overrides_runpath=yes
14026 ;;
14027
14028nto-qnx)
14029 version_type=linux
14030 need_lib_prefix=no
14031 need_version=no
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033 soname_spec='${libname}${release}${shared_ext}$major'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 shlibpath_overrides_runpath=yes
14036 ;;
14037
14038openbsd*)
14039 version_type=sunos
14040 need_lib_prefix=no
14041 need_version=no
14042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14044 shlibpath_var=LD_LIBRARY_PATH
14045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14046 case $host_os in
14047 openbsd2.[89] | openbsd2.[89].*)
14048 shlibpath_overrides_runpath=no
14049 ;;
14050 *)
14051 shlibpath_overrides_runpath=yes
14052 ;;
14053 esac
14054 else
14055 shlibpath_overrides_runpath=yes
14056 fi
14057 ;;
14058
14059os2*)
14060 libname_spec='$name'
14061 shrext=".dll"
14062 need_lib_prefix=no
14063 library_names_spec='$libname${shared_ext} $libname.a'
14064 dynamic_linker='OS/2 ld.exe'
14065 shlibpath_var=LIBPATH
14066 ;;
14067
14068osf3* | osf4* | osf5*)
14069 version_type=osf
14070 need_lib_prefix=no
14071 need_version=no
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14076 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14077 ;;
14078
14079sco3.2v5*)
14080 version_type=osf
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 shlibpath_var=LD_LIBRARY_PATH
14084 ;;
14085
14086solaris*)
14087 version_type=linux
14088 need_lib_prefix=no
14089 need_version=no
14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091 soname_spec='${libname}${release}${shared_ext}$major'
14092 shlibpath_var=LD_LIBRARY_PATH
14093 shlibpath_overrides_runpath=yes
14094 hardcode_into_libs=yes
14095 # ldd complains unless libraries are executable
14096 postinstall_cmds='chmod +x $lib'
14097 ;;
14098
14099sunos4*)
14100 version_type=sunos
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 shlibpath_overrides_runpath=yes
14105 if test "$with_gnu_ld" = yes; then
14106 need_lib_prefix=no
14107 fi
14108 need_version=yes
14109 ;;
14110
14111sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14112 version_type=linux
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114 soname_spec='${libname}${release}${shared_ext}$major'
14115 shlibpath_var=LD_LIBRARY_PATH
14116 case $host_vendor in
14117 sni)
14118 shlibpath_overrides_runpath=no
14119 need_lib_prefix=no
14120 export_dynamic_flag_spec='${wl}-Blargedynsym'
14121 runpath_var=LD_RUN_PATH
14122 ;;
14123 siemens)
14124 need_lib_prefix=no
14125 ;;
14126 motorola)
14127 need_lib_prefix=no
14128 need_version=no
14129 shlibpath_overrides_runpath=no
14130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14131 ;;
14132 esac
14133 ;;
14134
14135sysv4*MP*)
14136 if test -d /usr/nec ;then
14137 version_type=linux
14138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14139 soname_spec='$libname${shared_ext}.$major'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 fi
14142 ;;
14143
14144uts4*)
14145 version_type=linux
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14147 soname_spec='${libname}${release}${shared_ext}$major'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 ;;
14150
14151*)
14152 dynamic_linker=no
14153 ;;
14154esac
14155echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14156echo "${ECHO_T}$dynamic_linker" >&6
14157test "$dynamic_linker" = no && can_build_shared=no
14158
14159
14160# The else clause should only fire when bootstrapping the
14161# libtool distribution, otherwise you forgot to ship ltmain.sh
14162# with your package, and you will get complaints that there are
14163# no rules to generate ltmain.sh.
14164if test -f "$ltmain"; then
14165 # See if we are running on zsh, and set the options which allow our commands through
14166 # without removal of \ escapes.
14167 if test -n "${ZSH_VERSION+set}" ; then
14168 setopt NO_GLOB_SUBST
14169 fi
14170 # Now quote all the things that may contain metacharacters while being
14171 # careful not to overquote the AC_SUBSTed values. We take copies of the
14172 # variables and quote the copies for generation of the libtool script.
14173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14176 deplibs_check_method reload_flag reload_cmds need_locks \
14177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14178 lt_cv_sys_global_symbol_to_c_name_address \
14179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14180 old_postinstall_cmds old_postuninstall_cmds \
14181 compiler_F77 \
14182 CC_F77 \
14183 LD_F77 \
14184 lt_prog_compiler_wl_F77 \
14185 lt_prog_compiler_pic_F77 \
14186 lt_prog_compiler_static_F77 \
14187 lt_prog_compiler_no_builtin_flag_F77 \
14188 export_dynamic_flag_spec_F77 \
14189 thread_safe_flag_spec_F77 \
14190 whole_archive_flag_spec_F77 \
14191 enable_shared_with_static_runtimes_F77 \
14192 old_archive_cmds_F77 \
14193 old_archive_from_new_cmds_F77 \
14194 predep_objects_F77 \
14195 postdep_objects_F77 \
14196 predeps_F77 \
14197 postdeps_F77 \
14198 compiler_lib_search_path_F77 \
14199 archive_cmds_F77 \
14200 archive_expsym_cmds_F77 \
14201 postinstall_cmds_F77 \
14202 postuninstall_cmds_F77 \
14203 old_archive_from_expsyms_cmds_F77 \
14204 allow_undefined_flag_F77 \
14205 no_undefined_flag_F77 \
14206 export_symbols_cmds_F77 \
14207 hardcode_libdir_flag_spec_F77 \
14208 hardcode_libdir_flag_spec_ld_F77 \
14209 hardcode_libdir_separator_F77 \
14210 hardcode_automatic_F77 \
14211 module_cmds_F77 \
14212 module_expsym_cmds_F77 \
14213 lt_cv_prog_compiler_c_o_F77 \
14214 exclude_expsyms_F77 \
14215 include_expsyms_F77; do
14216
14217 case $var in
14218 old_archive_cmds_F77 | \
14219 old_archive_from_new_cmds_F77 | \
14220 archive_cmds_F77 | \
14221 archive_expsym_cmds_F77 | \
14222 module_cmds_F77 | \
14223 module_expsym_cmds_F77 | \
14224 old_archive_from_expsyms_cmds_F77 | \
14225 export_symbols_cmds_F77 | \
14226 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14227 postinstall_cmds | postuninstall_cmds | \
14228 old_postinstall_cmds | old_postuninstall_cmds | \
14229 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14230 # Double-quote double-evaled strings.
14231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14232 ;;
14233 *)
14234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14235 ;;
14236 esac
14237 done
14238
14239 case $lt_echo in
14240 *'\$0 --fallback-echo"')
14241 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14242 ;;
14243 esac
14244
14245cfgfile="$ofile"
14246
14247 cat <<__EOF__ >> "$cfgfile"
14248# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14249
14250# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14251
14252# Shell to use when invoking shell scripts.
14253SHELL=$lt_SHELL
14254
14255# Whether or not to build shared libraries.
14256build_libtool_libs=$enable_shared
14257
14258# Whether or not to build static libraries.
14259build_old_libs=$enable_static
14260
14261# Whether or not to add -lc for building shared libraries.
14262build_libtool_need_lc=$archive_cmds_need_lc_F77
14263
14264# Whether or not to disallow shared libs when runtime libs are static
14265allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14266
14267# Whether or not to optimize for fast installation.
14268fast_install=$enable_fast_install
14269
14270# The host system.
14271host_alias=$host_alias
14272host=$host
14273
14274# An echo program that does not interpret backslashes.
14275echo=$lt_echo
14276
14277# The archiver.
14278AR=$lt_AR
14279AR_FLAGS=$lt_AR_FLAGS
14280
14281# A C compiler.
14282LTCC=$lt_LTCC
14283
14284# A language-specific compiler.
14285CC=$lt_compiler_F77
14286
14287# Is the compiler the GNU C compiler?
14288with_gcc=$GCC_F77
14289
14290# An ERE matcher.
14291EGREP=$lt_EGREP
14292
14293# The linker used to build libraries.
14294LD=$lt_LD_F77
14295
14296# Whether we need hard or soft links.
14297LN_S=$lt_LN_S
14298
14299# A BSD-compatible nm program.
14300NM=$lt_NM
14301
14302# A symbol stripping program
14303STRIP=$STRIP
14304
14305# Used to examine libraries when file_magic_cmd begins "file"
14306MAGIC_CMD=$MAGIC_CMD
14307
14308# Used on cygwin: DLL creation program.
14309DLLTOOL="$DLLTOOL"
14310
14311# Used on cygwin: object dumper.
14312OBJDUMP="$OBJDUMP"
14313
14314# Used on cygwin: assembler.
14315AS="$AS"
14316
14317# The name of the directory that contains temporary libtool files.
14318objdir=$objdir
14319
14320# How to create reloadable object files.
14321reload_flag=$lt_reload_flag
14322reload_cmds=$lt_reload_cmds
14323
14324# How to pass a linker flag through the compiler.
14325wl=$lt_lt_prog_compiler_wl_F77
14326
14327# Object file suffix (normally "o").
14328objext="$ac_objext"
14329
14330# Old archive suffix (normally "a").
14331libext="$libext"
14332
14333# Shared library suffix (normally ".so").
14334shrext='$shrext'
14335
14336# Executable file suffix (normally "").
14337exeext="$exeext"
14338
14339# Additional compiler flags for building library objects.
14340pic_flag=$lt_lt_prog_compiler_pic_F77
14341pic_mode=$pic_mode
14342
14343# What is the maximum length of a command?
14344max_cmd_len=$lt_cv_sys_max_cmd_len
14345
14346# Does compiler simultaneously support -c and -o options?
14347compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14348
14349# Must we lock files when doing compilation ?
14350need_locks=$lt_need_locks
14351
14352# Do we need the lib prefix for modules?
14353need_lib_prefix=$need_lib_prefix
14354
14355# Do we need a version for libraries?
14356need_version=$need_version
14357
14358# Whether dlopen is supported.
14359dlopen_support=$enable_dlopen
14360
14361# Whether dlopen of programs is supported.
14362dlopen_self=$enable_dlopen_self
14363
14364# Whether dlopen of statically linked programs is supported.
14365dlopen_self_static=$enable_dlopen_self_static
14366
14367# Compiler flag to prevent dynamic linking.
14368link_static_flag=$lt_lt_prog_compiler_static_F77
14369
14370# Compiler flag to turn off builtin functions.
14371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14372
14373# Compiler flag to allow reflexive dlopens.
14374export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14375
14376# Compiler flag to generate shared objects directly from archives.
14377whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14378
14379# Compiler flag to generate thread-safe objects.
14380thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14381
14382# Library versioning type.
14383version_type=$version_type
14384
14385# Format of library name prefix.
14386libname_spec=$lt_libname_spec
14387
14388# List of archive names. First name is the real one, the rest are links.
14389# The last name is the one that the linker finds with -lNAME.
14390library_names_spec=$lt_library_names_spec
14391
14392# The coded name of the library, if different from the real name.
14393soname_spec=$lt_soname_spec
14394
14395# Commands used to build and install an old-style archive.
14396RANLIB=$lt_RANLIB
14397old_archive_cmds=$lt_old_archive_cmds_F77
14398old_postinstall_cmds=$lt_old_postinstall_cmds
14399old_postuninstall_cmds=$lt_old_postuninstall_cmds
14400
14401# Create an old-style archive from a shared archive.
14402old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14403
14404# Create a temporary old-style archive to link instead of a shared archive.
14405old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14406
14407# Commands used to build and install a shared archive.
14408archive_cmds=$lt_archive_cmds_F77
14409archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14410postinstall_cmds=$lt_postinstall_cmds
14411postuninstall_cmds=$lt_postuninstall_cmds
14412
14413# Commands used to build a loadable module (assumed same as above if empty)
14414module_cmds=$lt_module_cmds_F77
14415module_expsym_cmds=$lt_module_expsym_cmds_F77
14416
14417# Commands to strip libraries.
14418old_striplib=$lt_old_striplib
14419striplib=$lt_striplib
14420
14421# Dependencies to place before the objects being linked to create a
14422# shared library.
14423predep_objects=$lt_predep_objects_F77
14424
14425# Dependencies to place after the objects being linked to create a
14426# shared library.
14427postdep_objects=$lt_postdep_objects_F77
14428
14429# Dependencies to place before the objects being linked to create a
14430# shared library.
14431predeps=$lt_predeps_F77
14432
14433# Dependencies to place after the objects being linked to create a
14434# shared library.
14435postdeps=$lt_postdeps_F77
14436
14437# The library search path used internally by the compiler when linking
14438# a shared library.
14439compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14440
14441# Method to check whether dependent libraries are shared objects.
14442deplibs_check_method=$lt_deplibs_check_method
14443
14444# Command to use when deplibs_check_method == file_magic.
14445file_magic_cmd=$lt_file_magic_cmd
14446
14447# Flag that allows shared libraries with undefined symbols to be built.
14448allow_undefined_flag=$lt_allow_undefined_flag_F77
14449
14450# Flag that forces no undefined symbols.
14451no_undefined_flag=$lt_no_undefined_flag_F77
14452
14453# Commands used to finish a libtool library installation in a directory.
14454finish_cmds=$lt_finish_cmds
14455
14456# Same as above, but a single script fragment to be evaled but not shown.
14457finish_eval=$lt_finish_eval
14458
14459# Take the output of nm and produce a listing of raw symbols and C names.
14460global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14461
14462# Transform the output of nm in a proper C declaration
14463global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14464
14465# Transform the output of nm in a C name address pair
14466global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14467
14468# This is the shared library runtime path variable.
14469runpath_var=$runpath_var
14470
14471# This is the shared library path variable.
14472shlibpath_var=$shlibpath_var
14473
14474# Is shlibpath searched before the hard-coded library search path?
14475shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14476
14477# How to hardcode a shared library path into an executable.
14478hardcode_action=$hardcode_action_F77
14479
14480# Whether we should hardcode library paths into libraries.
14481hardcode_into_libs=$hardcode_into_libs
14482
14483# Flag to hardcode \$libdir into a binary during linking.
14484# This must work even if \$libdir does not exist.
14485hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14486
14487# If ld is used when linking, flag to hardcode \$libdir into
14488# a binary during linking. This must work even if \$libdir does
14489# not exist.
14490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14491
14492# Whether we need a single -rpath flag with a separated argument.
14493hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14494
14495# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14496# resulting binary.
14497hardcode_direct=$hardcode_direct_F77
14498
14499# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14500# resulting binary.
14501hardcode_minus_L=$hardcode_minus_L_F77
14502
14503# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14504# the resulting binary.
14505hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14506
14507# Set to yes if building a shared library automatically hardcodes DIR into the library
14508# and all subsequent libraries and executables linked against it.
14509hardcode_automatic=$hardcode_automatic_F77
14510
14511# Variables whose values should be saved in libtool wrapper scripts and
14512# restored at relink time.
14513variables_saved_for_relink="$variables_saved_for_relink"
14514
14515# Whether libtool must link a program against all its dependency libraries.
14516link_all_deplibs=$link_all_deplibs_F77
14517
14518# Compile-time system search path for libraries
14519sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14520
14521# Run-time system search path for libraries
14522sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14523
14524# Fix the shell variable \$srcfile for the compiler.
14525fix_srcfile_path="$fix_srcfile_path_F77"
14526
14527# Set to yes if exported symbols are required.
14528always_export_symbols=$always_export_symbols_F77
14529
14530# The commands to list exported symbols.
14531export_symbols_cmds=$lt_export_symbols_cmds_F77
14532
14533# The commands to extract the exported symbol list from a shared archive.
14534extract_expsyms_cmds=$lt_extract_expsyms_cmds
14535
14536# Symbols that should not be listed in the preloaded symbols.
14537exclude_expsyms=$lt_exclude_expsyms_F77
14538
14539# Symbols that must always be exported.
14540include_expsyms=$lt_include_expsyms_F77
14541
14542# ### END LIBTOOL TAG CONFIG: $tagname
14543
14544__EOF__
14545
14546
14547else
14548 # If there is no Makefile yet, we rely on a make rule to execute
14549 # `config.status --recheck' to rerun these tests and create the
14550 # libtool script then.
14551 test -f Makefile && make "$ltmain"
14552fi
14553
14554
14555ac_ext=c
14556ac_cpp='$CPP $CPPFLAGS'
14557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14559ac_compiler_gnu=$ac_cv_c_compiler_gnu
14560
14561CC="$lt_save_CC"
14562
14563 else
14564 tagname=""
14565 fi
14566 ;;
14567
14568 GCJ)
14569 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14570
14571
14572
14573# Source file extension for Java test sources.
14574ac_ext=java
14575
14576# Object file extension for compiled Java test sources.
14577objext=o
14578objext_GCJ=$objext
14579
14580# Code to be used in simple compile tests
14581lt_simple_compile_test_code="class foo {}\n"
14582
14583# Code to be used in simple link tests
14584lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14585
14586# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14587
14588# If no C compiler was specified, use CC.
14589LTCC=${LTCC-"$CC"}
14590
14591# Allow CC to be a program name with arguments.
14592compiler=$CC
14593
14594
14595# Allow CC to be a program name with arguments.
14596lt_save_CC="$CC"
14597CC=${GCJ-"gcj"}
14598compiler=$CC
14599compiler_GCJ=$CC
14600
14601# GCJ did not exist at the time GCC didn't implicitly link libc in.
14602archive_cmds_need_lc_GCJ=no
14603
14604## CAVEAT EMPTOR:
14605## There is no encapsulation within the following macros, do not change
14606## the running order or otherwise move them around unless you know exactly
14607## what you are doing...
14608
14609lt_prog_compiler_no_builtin_flag_GCJ=
14610
14611if test "$GCC" = yes; then
14612 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14613
14614 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14615echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14616if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618else
14619 lt_cv_prog_compiler_rtti_exceptions=no
14620 ac_outfile=conftest.$ac_objext
14621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14622 lt_compiler_flag="-fno-rtti -fno-exceptions"
14623 # Insert the option either (1) after the last *FLAGS variable, or
14624 # (2) before a word containing "conftest.", or (3) at the end.
14625 # Note that $ac_compile itself does not contain backslashes and begins
14626 # with a dollar sign (not a hyphen), so the echo should work correctly.
14627 # The option is referenced via a variable to avoid confusing sed.
14628 lt_compile=`echo "$ac_compile" | $SED \
14629 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +000014632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +000014633 (eval "$lt_compile" 2>conftest.err)
14634 ac_status=$?
14635 cat conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +000014636 echo "$as_me:14636: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +000014637 if (exit $ac_status) && test -s "$ac_outfile"; then
14638 # The compiler can only warn and ignore the option if not recognized
14639 # So say no if there are warnings
14640 if test ! -s conftest.err; then
14641 lt_cv_prog_compiler_rtti_exceptions=yes
14642 fi
14643 fi
14644 $rm conftest*
14645
14646fi
14647echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14648echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14649
14650if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14651 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14652else
14653 :
14654fi
14655
14656fi
14657
14658lt_prog_compiler_wl_GCJ=
14659lt_prog_compiler_pic_GCJ=
14660lt_prog_compiler_static_GCJ=
14661
14662echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14663echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14664
14665 if test "$GCC" = yes; then
14666 lt_prog_compiler_wl_GCJ='-Wl,'
14667 lt_prog_compiler_static_GCJ='-static'
14668
14669 case $host_os in
14670 aix*)
14671 # All AIX code is PIC.
14672 if test "$host_cpu" = ia64; then
14673 # AIX 5 now supports IA64 processor
14674 lt_prog_compiler_static_GCJ='-Bstatic'
14675 fi
14676 ;;
14677
14678 amigaos*)
14679 # FIXME: we need at least 68020 code to build shared libraries, but
14680 # adding the `-m68020' flag to GCC prevents building anything better,
14681 # like `-m68040'.
14682 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14683 ;;
14684
14685 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14686 # PIC is the default for these OSes.
14687 ;;
14688
14689 mingw* | pw32* | os2*)
14690 # This hack is so that the source file can tell whether it is being
14691 # built for inclusion in a dll (and should export symbols for example).
14692 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14693 ;;
14694
14695 darwin* | rhapsody*)
14696 # PIC is the default on this platform
14697 # Common symbols not allowed in MH_DYLIB files
14698 lt_prog_compiler_pic_GCJ='-fno-common'
14699 ;;
14700
14701 msdosdjgpp*)
14702 # Just because we use GCC doesn't mean we suddenly get shared libraries
14703 # on systems that don't support them.
14704 lt_prog_compiler_can_build_shared_GCJ=no
14705 enable_shared=no
14706 ;;
14707
14708 sysv4*MP*)
14709 if test -d /usr/nec; then
14710 lt_prog_compiler_pic_GCJ=-Kconform_pic
14711 fi
14712 ;;
14713
14714 hpux*)
14715 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14716 # not for PA HP-UX.
14717 case "$host_cpu" in
14718 hppa*64*|ia64*)
14719 # +Z the default
14720 ;;
14721 *)
14722 lt_prog_compiler_pic_GCJ='-fPIC'
14723 ;;
14724 esac
14725 ;;
14726
14727 *)
14728 lt_prog_compiler_pic_GCJ='-fPIC'
14729 ;;
14730 esac
14731 else
14732 # PORTME Check for flag to pass linker flags through the system compiler.
14733 case $host_os in
14734 aix*)
14735 lt_prog_compiler_wl_GCJ='-Wl,'
14736 if test "$host_cpu" = ia64; then
14737 # AIX 5 now supports IA64 processor
14738 lt_prog_compiler_static_GCJ='-Bstatic'
14739 else
14740 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14741 fi
14742 ;;
14743
14744 mingw* | pw32* | os2*)
14745 # This hack is so that the source file can tell whether it is being
14746 # built for inclusion in a dll (and should export symbols for example).
14747 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14748 ;;
14749
14750 hpux9* | hpux10* | hpux11*)
14751 lt_prog_compiler_wl_GCJ='-Wl,'
14752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14753 # not for PA HP-UX.
14754 case "$host_cpu" in
14755 hppa*64*|ia64*)
14756 # +Z the default
14757 ;;
14758 *)
14759 lt_prog_compiler_pic_GCJ='+Z'
14760 ;;
14761 esac
14762 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14763 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14764 ;;
14765
14766 irix5* | irix6* | nonstopux*)
14767 lt_prog_compiler_wl_GCJ='-Wl,'
14768 # PIC (with -KPIC) is the default.
14769 lt_prog_compiler_static_GCJ='-non_shared'
14770 ;;
14771
14772 newsos6)
14773 lt_prog_compiler_pic_GCJ='-KPIC'
14774 lt_prog_compiler_static_GCJ='-Bstatic'
14775 ;;
14776
14777 linux*)
14778 case $CC in
14779 icc|ecc)
14780 lt_prog_compiler_wl_GCJ='-Wl,'
14781 lt_prog_compiler_pic_GCJ='-KPIC'
14782 lt_prog_compiler_static_GCJ='-static'
14783 ;;
14784 ccc)
14785 lt_prog_compiler_wl_GCJ='-Wl,'
14786 # All Alpha code is PIC.
14787 lt_prog_compiler_static_GCJ='-non_shared'
14788 ;;
14789 esac
14790 ;;
14791
14792 osf3* | osf4* | osf5*)
14793 lt_prog_compiler_wl_GCJ='-Wl,'
14794 # All OSF/1 code is PIC.
14795 lt_prog_compiler_static_GCJ='-non_shared'
14796 ;;
14797
14798 sco3.2v5*)
14799 lt_prog_compiler_pic_GCJ='-Kpic'
14800 lt_prog_compiler_static_GCJ='-dn'
14801 ;;
14802
14803 solaris*)
14804 lt_prog_compiler_wl_GCJ='-Wl,'
14805 lt_prog_compiler_pic_GCJ='-KPIC'
14806 lt_prog_compiler_static_GCJ='-Bstatic'
14807 ;;
14808
14809 sunos4*)
14810 lt_prog_compiler_wl_GCJ='-Qoption ld '
14811 lt_prog_compiler_pic_GCJ='-PIC'
14812 lt_prog_compiler_static_GCJ='-Bstatic'
14813 ;;
14814
14815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14816 lt_prog_compiler_wl_GCJ='-Wl,'
14817 lt_prog_compiler_pic_GCJ='-KPIC'
14818 lt_prog_compiler_static_GCJ='-Bstatic'
14819 ;;
14820
14821 sysv4*MP*)
14822 if test -d /usr/nec ;then
14823 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14824 lt_prog_compiler_static_GCJ='-Bstatic'
14825 fi
14826 ;;
14827
14828 uts4*)
14829 lt_prog_compiler_pic_GCJ='-pic'
14830 lt_prog_compiler_static_GCJ='-Bstatic'
14831 ;;
14832
14833 *)
14834 lt_prog_compiler_can_build_shared_GCJ=no
14835 ;;
14836 esac
14837 fi
14838
14839echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14840echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14841
14842#
14843# Check to make sure the PIC flag actually works.
14844#
14845if test -n "$lt_prog_compiler_pic_GCJ"; then
14846 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14847echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14848if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850else
14851 lt_prog_compiler_pic_works_GCJ=no
14852 ac_outfile=conftest.$ac_objext
14853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14854 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14855 # Insert the option either (1) after the last *FLAGS variable, or
14856 # (2) before a word containing "conftest.", or (3) at the end.
14857 # Note that $ac_compile itself does not contain backslashes and begins
14858 # with a dollar sign (not a hyphen), so the echo should work correctly.
14859 # The option is referenced via a variable to avoid confusing sed.
14860 lt_compile=`echo "$ac_compile" | $SED \
14861 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14863 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +000014864 (eval echo "\"\$as_me:14864: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +000014865 (eval "$lt_compile" 2>conftest.err)
14866 ac_status=$?
14867 cat conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +000014868 echo "$as_me:14868: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +000014869 if (exit $ac_status) && test -s "$ac_outfile"; then
14870 # The compiler can only warn and ignore the option if not recognized
14871 # So say no if there are warnings
14872 if test ! -s conftest.err; then
14873 lt_prog_compiler_pic_works_GCJ=yes
14874 fi
14875 fi
14876 $rm conftest*
14877
14878fi
14879echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14880echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14881
14882if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14883 case $lt_prog_compiler_pic_GCJ in
14884 "" | " "*) ;;
14885 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14886 esac
14887else
14888 lt_prog_compiler_pic_GCJ=
14889 lt_prog_compiler_can_build_shared_GCJ=no
14890fi
14891
14892fi
14893case "$host_os" in
14894 # For platforms which do not support PIC, -DPIC is meaningless:
14895 *djgpp*)
14896 lt_prog_compiler_pic_GCJ=
14897 ;;
14898 *)
14899 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14900 ;;
14901esac
14902
14903echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14904echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14905if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14907else
14908 lt_cv_prog_compiler_c_o_GCJ=no
14909 $rm -r conftest 2>/dev/null
14910 mkdir conftest
14911 cd conftest
14912 mkdir out
14913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14914
14915 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14916 # that will create temporary files in the current directory regardless of
14917 # the output directory. Thus, making CWD read-only will cause this test
14918 # to fail, enabling locking or at least warning the user not to do parallel
14919 # builds.
14920 chmod -w .
14921
14922 lt_compiler_flag="-o out/conftest2.$ac_objext"
14923 # Insert the option either (1) after the last *FLAGS variable, or
14924 # (2) before a word containing "conftest.", or (3) at the end.
14925 # Note that $ac_compile itself does not contain backslashes and begins
14926 # with a dollar sign (not a hyphen), so the echo should work correctly.
14927 lt_compile=`echo "$ac_compile" | $SED \
14928 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14930 -e 's:$: $lt_compiler_flag:'`
Reid Spencerbb874262004-12-27 08:51:55 +000014931 (eval echo "\"\$as_me:14931: $lt_compile\"" >&5)
Reid Spencer011f5ca2004-09-15 06:19:53 +000014932 (eval "$lt_compile" 2>out/conftest.err)
14933 ac_status=$?
14934 cat out/conftest.err >&5
Reid Spencerbb874262004-12-27 08:51:55 +000014935 echo "$as_me:14935: \$? = $ac_status" >&5
Reid Spencer011f5ca2004-09-15 06:19:53 +000014936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14937 then
14938 # The compiler can only warn and ignore the option if not recognized
14939 # So say no if there are warnings
14940 if test ! -s out/conftest.err; then
14941 lt_cv_prog_compiler_c_o_GCJ=yes
14942 fi
14943 fi
14944 chmod u+w .
14945 $rm conftest* out/*
14946 rmdir out
14947 cd ..
14948 rmdir conftest
14949 $rm conftest*
14950
14951fi
14952echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14953echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14954
14955
14956hard_links="nottested"
14957if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14958 # do not overwrite the value of need_locks provided by the user
14959 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14960echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14961 hard_links=yes
14962 $rm conftest*
14963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14964 touch conftest.a
14965 ln conftest.a conftest.b 2>&5 || hard_links=no
14966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14967 echo "$as_me:$LINENO: result: $hard_links" >&5
14968echo "${ECHO_T}$hard_links" >&6
14969 if test "$hard_links" = no; then
14970 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14971echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14972 need_locks=warn
14973 fi
14974else
14975 need_locks=no
14976fi
14977
14978echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14979echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14980
14981 runpath_var=
14982 allow_undefined_flag_GCJ=
14983 enable_shared_with_static_runtimes_GCJ=no
14984 archive_cmds_GCJ=
14985 archive_expsym_cmds_GCJ=
14986 old_archive_From_new_cmds_GCJ=
14987 old_archive_from_expsyms_cmds_GCJ=
14988 export_dynamic_flag_spec_GCJ=
14989 whole_archive_flag_spec_GCJ=
14990 thread_safe_flag_spec_GCJ=
14991 hardcode_libdir_flag_spec_GCJ=
14992 hardcode_libdir_flag_spec_ld_GCJ=
14993 hardcode_libdir_separator_GCJ=
14994 hardcode_direct_GCJ=no
14995 hardcode_minus_L_GCJ=no
14996 hardcode_shlibpath_var_GCJ=unsupported
14997 link_all_deplibs_GCJ=unknown
14998 hardcode_automatic_GCJ=no
14999 module_cmds_GCJ=
15000 module_expsym_cmds_GCJ=
15001 always_export_symbols_GCJ=no
15002 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15003 # include_expsyms should be a list of space-separated symbols to be *always*
15004 # included in the symbol list
15005 include_expsyms_GCJ=
15006 # exclude_expsyms can be an extended regexp of symbols to exclude
15007 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15008 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15009 # as well as any symbol that contains `d'.
15010 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15011 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15012 # platforms (ab)use it in PIC code, but their linkers get confused if
15013 # the symbol is explicitly referenced. Since portable code cannot
15014 # rely on this symbol name, it's probably fine to never include it in
15015 # preloaded symbol tables.
15016 extract_expsyms_cmds=
15017
15018 case $host_os in
15019 cygwin* | mingw* | pw32*)
15020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15021 # When not using gcc, we currently assume that we are using
15022 # Microsoft Visual C++.
15023 if test "$GCC" != yes; then
15024 with_gnu_ld=no
15025 fi
15026 ;;
15027 openbsd*)
15028 with_gnu_ld=no
15029 ;;
15030 esac
15031
15032 ld_shlibs_GCJ=yes
15033 if test "$with_gnu_ld" = yes; then
15034 # If archive_cmds runs LD, not CC, wlarc should be empty
15035 wlarc='${wl}'
15036
15037 # See if GNU ld supports shared libraries.
15038 case $host_os in
15039 aix3* | aix4* | aix5*)
15040 # On AIX/PPC, the GNU linker is very broken
15041 if test "$host_cpu" != ia64; then
15042 ld_shlibs_GCJ=no
15043 cat <<EOF 1>&2
15044
15045*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15046*** to be unable to reliably create shared libraries on AIX.
15047*** Therefore, libtool is disabling shared libraries support. If you
15048*** really care for shared libraries, you may want to modify your PATH
15049*** so that a non-GNU linker is found, and then restart.
15050
15051EOF
15052 fi
15053 ;;
15054
15055 amigaos*)
15056 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)'
15057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15058 hardcode_minus_L_GCJ=yes
15059
15060 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15061 # that the semantics of dynamic libraries on AmigaOS, at least up
15062 # to version 4, is to share data among multiple programs linked
15063 # with the same dynamic library. Since this doesn't match the
15064 # behavior of shared libraries on other platforms, we can't use
15065 # them.
15066 ld_shlibs_GCJ=no
15067 ;;
15068
15069 beos*)
15070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071 allow_undefined_flag_GCJ=unsupported
15072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15073 # support --undefined. This deserves some investigation. FIXME
15074 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15075 else
15076 ld_shlibs_GCJ=no
15077 fi
15078 ;;
15079
15080 cygwin* | mingw* | pw32*)
15081 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15082 # as there is no search path for DLLs.
15083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15084 allow_undefined_flag_GCJ=unsupported
15085 always_export_symbols_GCJ=no
15086 enable_shared_with_static_runtimes_GCJ=yes
15087 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15088
15089 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15090 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15091 # If the export-symbols file already is a .def file (1st line
15092 # is EXPORTS), use it as is; otherwise, prepend...
15093 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15094 cp $export_symbols $output_objdir/$soname.def;
15095 else
15096 echo EXPORTS > $output_objdir/$soname.def;
15097 cat $export_symbols >> $output_objdir/$soname.def;
15098 fi~
15099 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15100 else
15101 ld_shlibs=no
15102 fi
15103 ;;
15104
15105 netbsd*)
15106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15107 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15108 wlarc=
15109 else
15110 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15111 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15112 fi
15113 ;;
15114
15115 solaris* | sysv5*)
15116 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15117 ld_shlibs_GCJ=no
15118 cat <<EOF 1>&2
15119
15120*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15121*** create shared libraries on Solaris systems. Therefore, libtool
15122*** is disabling shared libraries support. We urge you to upgrade GNU
15123*** binutils to release 2.9.1 or newer. Another option is to modify
15124*** your PATH or compiler configuration so that the native linker is
15125*** used, and then restart.
15126
15127EOF
15128 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15130 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15131 else
15132 ld_shlibs_GCJ=no
15133 fi
15134 ;;
15135
15136 sunos4*)
15137 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15138 wlarc=
15139 hardcode_direct_GCJ=yes
15140 hardcode_shlibpath_var_GCJ=no
15141 ;;
15142
15143 *)
15144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15145 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15146 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15147 else
15148 ld_shlibs_GCJ=no
15149 fi
15150 ;;
15151 esac
15152
15153 if test "$ld_shlibs_GCJ" = yes; then
15154 runpath_var=LD_RUN_PATH
15155 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15156 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15157 # ancient GNU ld didn't support --whole-archive et. al.
15158 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15159 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15160 else
15161 whole_archive_flag_spec_GCJ=
15162 fi
15163 fi
15164 else
15165 # PORTME fill in a description of your system's linker (not GNU ld)
15166 case $host_os in
15167 aix3*)
15168 allow_undefined_flag_GCJ=unsupported
15169 always_export_symbols_GCJ=yes
15170 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'
15171 # Note: this linker hardcodes the directories in LIBPATH if there
15172 # are no directories specified by -L.
15173 hardcode_minus_L_GCJ=yes
15174 if test "$GCC" = yes && test -z "$link_static_flag"; then
15175 # Neither direct hardcoding nor static linking is supported with a
15176 # broken collect2.
15177 hardcode_direct_GCJ=unsupported
15178 fi
15179 ;;
15180
15181 aix4* | aix5*)
15182 if test "$host_cpu" = ia64; then
15183 # On IA64, the linker does run time linking by default, so we don't
15184 # have to do anything special.
15185 aix_use_runtimelinking=no
15186 exp_sym_flag='-Bexport'
15187 no_entry_flag=""
15188 else
15189 # If we're using GNU nm, then we don't want the "-C" option.
15190 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15191 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15192 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'
15193 else
15194 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'
15195 fi
15196 aix_use_runtimelinking=no
15197
15198 # Test if we are trying to use run time linking or normal
15199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15200 # need to do runtime linking.
15201 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15202 for ld_flag in $LDFLAGS; do
15203 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15204 aix_use_runtimelinking=yes
15205 break
15206 fi
15207 done
15208 esac
15209
15210 exp_sym_flag='-bexport'
15211 no_entry_flag='-bnoentry'
15212 fi
15213
15214 # When large executables or shared objects are built, AIX ld can
15215 # have problems creating the table of contents. If linking a library
15216 # or program results in "error TOC overflow" add -mminimal-toc to
15217 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15218 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15219
15220 archive_cmds_GCJ=''
15221 hardcode_direct_GCJ=yes
15222 hardcode_libdir_separator_GCJ=':'
15223 link_all_deplibs_GCJ=yes
15224
15225 if test "$GCC" = yes; then
15226 case $host_os in aix4.012|aix4.012.*)
15227 # We only want to do this on AIX 4.2 and lower, the check
15228 # below for broken collect2 doesn't work under 4.3+
15229 collect2name=`${CC} -print-prog-name=collect2`
15230 if test -f "$collect2name" && \
15231 strings "$collect2name" | grep resolve_lib_name >/dev/null
15232 then
15233 # We have reworked collect2
15234 hardcode_direct_GCJ=yes
15235 else
15236 # We have old collect2
15237 hardcode_direct_GCJ=unsupported
15238 # It fails to find uninstalled libraries when the uninstalled
15239 # path is not listed in the libpath. Setting hardcode_minus_L
15240 # to unsupported forces relinking
15241 hardcode_minus_L_GCJ=yes
15242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15243 hardcode_libdir_separator_GCJ=
15244 fi
15245 esac
15246 shared_flag='-shared'
15247 else
15248 # not using gcc
15249 if test "$host_cpu" = ia64; then
15250 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15251 # chokes on -Wl,-G. The following line is correct:
15252 shared_flag='-G'
15253 else
15254 if test "$aix_use_runtimelinking" = yes; then
15255 shared_flag='${wl}-G'
15256 else
15257 shared_flag='${wl}-bM:SRE'
15258 fi
15259 fi
15260 fi
15261
15262 # It seems that -bexpall does not export symbols beginning with
15263 # underscore (_), so it is better to generate a list of symbols to export.
15264 always_export_symbols_GCJ=yes
15265 if test "$aix_use_runtimelinking" = yes; then
15266 # Warning - without using the other runtime loading flags (-brtl),
15267 # -berok will link without error, but may produce a broken library.
15268 allow_undefined_flag_GCJ='-berok'
15269 # Determine the default libpath from the value encoded in an empty executable.
15270 cat >conftest.$ac_ext <<_ACEOF
15271/* confdefs.h. */
15272_ACEOF
15273cat confdefs.h >>conftest.$ac_ext
15274cat >>conftest.$ac_ext <<_ACEOF
15275/* end confdefs.h. */
15276
15277int
15278main ()
15279{
15280
15281 ;
15282 return 0;
15283}
15284_ACEOF
15285rm -f conftest.$ac_objext conftest$ac_exeext
15286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15287 (eval $ac_link) 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag"
15295 || test ! -s conftest.err'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest$ac_exeext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307
15308aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15309}'`
15310# Check for a 64-bit object if we didn't find anything.
15311if 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; }
15312}'`; fi
15313else
15314 echo "$as_me: failed program was:" >&5
15315sed 's/^/| /' conftest.$ac_ext >&5
15316
15317fi
15318rm -f conftest.err conftest.$ac_objext \
15319 conftest$ac_exeext conftest.$ac_ext
15320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15321
15322 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15323 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15324 else
15325 if test "$host_cpu" = ia64; then
15326 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15327 allow_undefined_flag_GCJ="-z nodefs"
15328 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15329 else
15330 # Determine the default libpath from the value encoded in an empty executable.
15331 cat >conftest.$ac_ext <<_ACEOF
15332/* confdefs.h. */
15333_ACEOF
15334cat confdefs.h >>conftest.$ac_ext
15335cat >>conftest.$ac_ext <<_ACEOF
15336/* end confdefs.h. */
15337
15338int
15339main ()
15340{
15341
15342 ;
15343 return 0;
15344}
15345_ACEOF
15346rm -f conftest.$ac_objext conftest$ac_exeext
15347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348 (eval $ac_link) 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } &&
15355 { ac_try='test -z "$ac_c_werror_flag"
15356 || test ! -s conftest.err'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; } &&
15362 { ac_try='test -s conftest$ac_exeext'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15368
15369aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15370}'`
15371# Check for a 64-bit object if we didn't find anything.
15372if 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; }
15373}'`; fi
15374else
15375 echo "$as_me: failed program was:" >&5
15376sed 's/^/| /' conftest.$ac_ext >&5
15377
15378fi
15379rm -f conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15382
15383 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15384 # Warning - without using the other run time loading flags,
15385 # -berok will link without error, but may produce a broken library.
15386 no_undefined_flag_GCJ=' ${wl}-bernotok'
15387 allow_undefined_flag_GCJ=' ${wl}-berok'
15388 # -bexpall does not export symbols beginning with underscore (_)
15389 always_export_symbols_GCJ=yes
15390 # Exported symbols can be pulled into shared objects from archives
15391 whole_archive_flag_spec_GCJ=' '
15392 archive_cmds_need_lc_GCJ=yes
15393 # This is similar to how AIX traditionally builds it's shared libraries.
15394 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15395 fi
15396 fi
15397 ;;
15398
15399 amigaos*)
15400 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)'
15401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15402 hardcode_minus_L_GCJ=yes
15403 # see comment about different semantics on the GNU ld section
15404 ld_shlibs_GCJ=no
15405 ;;
15406
15407 bsdi4*)
15408 export_dynamic_flag_spec_GCJ=-rdynamic
15409 ;;
15410
15411 cygwin* | mingw* | pw32*)
15412 # When not using gcc, we currently assume that we are using
15413 # Microsoft Visual C++.
15414 # hardcode_libdir_flag_spec is actually meaningless, as there is
15415 # no search path for DLLs.
15416 hardcode_libdir_flag_spec_GCJ=' '
15417 allow_undefined_flag_GCJ=unsupported
15418 # Tell ltmain to make .lib files, not .a files.
15419 libext=lib
15420 # Tell ltmain to make .dll files, not .so files.
15421 shrext=".dll"
15422 # FIXME: Setting linknames here is a bad hack.
15423 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15424 # The linker will automatically build a .lib file if we build a DLL.
15425 old_archive_From_new_cmds_GCJ='true'
15426 # FIXME: Should let the user specify the lib program.
15427 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15428 fix_srcfile_path='`cygpath -w "$srcfile"`'
15429 enable_shared_with_static_runtimes_GCJ=yes
15430 ;;
15431
15432 darwin* | rhapsody*)
15433 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15434 archive_cmds_need_lc_GCJ=no
15435 case "$host_os" in
15436 rhapsody* | darwin1.[012])
15437 allow_undefined_flag_GCJ='-undefined suppress'
15438 ;;
15439 *) # Darwin 1.3 on
15440 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15441 ;;
15442 esac
15443 # FIXME: Relying on posixy $() will cause problems for
15444 # cross-compilation, but unfortunately the echo tests do not
15445 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15446 # `"' quotes if we put them in here... so don't!
15447 lt_int_apple_cc_single_mod=no
15448 output_verbose_link_cmd='echo'
15449 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15450 lt_int_apple_cc_single_mod=yes
15451 fi
15452 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15453 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15454 else
15455 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15456 fi
15457 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15458 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15459 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15460 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15461 else
15462 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15463 fi
15464 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15465 hardcode_direct_GCJ=no
15466 hardcode_automatic_GCJ=yes
15467 hardcode_shlibpath_var_GCJ=unsupported
15468 whole_archive_flag_spec_GCJ='-all_load $convenience'
15469 link_all_deplibs_GCJ=yes
15470 fi
15471 ;;
15472
15473 dgux*)
15474 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15475 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15476 hardcode_shlibpath_var_GCJ=no
15477 ;;
15478
15479 freebsd1*)
15480 ld_shlibs_GCJ=no
15481 ;;
15482
15483 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15484 # support. Future versions do this automatically, but an explicit c++rt0.o
15485 # does not break anything, and helps significantly (at the cost of a little
15486 # extra space).
15487 freebsd2.2*)
15488 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15489 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15490 hardcode_direct_GCJ=yes
15491 hardcode_shlibpath_var_GCJ=no
15492 ;;
15493
15494 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15495 freebsd2*)
15496 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_direct_GCJ=yes
15498 hardcode_minus_L_GCJ=yes
15499 hardcode_shlibpath_var_GCJ=no
15500 ;;
15501
15502 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15503 freebsd*)
15504 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15505 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15506 hardcode_direct_GCJ=yes
15507 hardcode_shlibpath_var_GCJ=no
15508 ;;
15509
15510 hpux9*)
15511 if test "$GCC" = yes; then
15512 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'
15513 else
15514 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'
15515 fi
15516 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15517 hardcode_libdir_separator_GCJ=:
15518 hardcode_direct_GCJ=yes
15519
15520 # hardcode_minus_L: Not really in the search PATH,
15521 # but as the default location of the library.
15522 hardcode_minus_L_GCJ=yes
15523 export_dynamic_flag_spec_GCJ='${wl}-E'
15524 ;;
15525
15526 hpux10* | hpux11*)
15527 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15528 case "$host_cpu" in
15529 hppa*64*|ia64*)
15530 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15531 ;;
15532 *)
15533 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15534 ;;
15535 esac
15536 else
15537 case "$host_cpu" in
15538 hppa*64*|ia64*)
15539 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15540 ;;
15541 *)
15542 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15543 ;;
15544 esac
15545 fi
15546 if test "$with_gnu_ld" = no; then
15547 case "$host_cpu" in
15548 hppa*64*)
15549 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15550 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15551 hardcode_libdir_separator_GCJ=:
15552 hardcode_direct_GCJ=no
15553 hardcode_shlibpath_var_GCJ=no
15554 ;;
15555 ia64*)
15556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15557 hardcode_direct_GCJ=no
15558 hardcode_shlibpath_var_GCJ=no
15559
15560 # hardcode_minus_L: Not really in the search PATH,
15561 # but as the default location of the library.
15562 hardcode_minus_L_GCJ=yes
15563 ;;
15564 *)
15565 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15566 hardcode_libdir_separator_GCJ=:
15567 hardcode_direct_GCJ=yes
15568 export_dynamic_flag_spec_GCJ='${wl}-E'
15569
15570 # hardcode_minus_L: Not really in the search PATH,
15571 # but as the default location of the library.
15572 hardcode_minus_L_GCJ=yes
15573 ;;
15574 esac
15575 fi
15576 ;;
15577
15578 irix5* | irix6* | nonstopux*)
15579 if test "$GCC" = yes; then
15580 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'
15581 else
15582 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'
15583 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15584 fi
15585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15586 hardcode_libdir_separator_GCJ=:
15587 link_all_deplibs_GCJ=yes
15588 ;;
15589
15590 netbsd*)
15591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15592 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15593 else
15594 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15595 fi
15596 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15597 hardcode_direct_GCJ=yes
15598 hardcode_shlibpath_var_GCJ=no
15599 ;;
15600
15601 newsos6)
15602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603 hardcode_direct_GCJ=yes
15604 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15605 hardcode_libdir_separator_GCJ=:
15606 hardcode_shlibpath_var_GCJ=no
15607 ;;
15608
15609 openbsd*)
15610 hardcode_direct_GCJ=yes
15611 hardcode_shlibpath_var_GCJ=no
15612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15613 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15615 export_dynamic_flag_spec_GCJ='${wl}-E'
15616 else
15617 case $host_os in
15618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15619 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15620 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15621 ;;
15622 *)
15623 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15624 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15625 ;;
15626 esac
15627 fi
15628 ;;
15629
15630 os2*)
15631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15632 hardcode_minus_L_GCJ=yes
15633 allow_undefined_flag_GCJ=unsupported
15634 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'
15635 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15636 ;;
15637
15638 osf3*)
15639 if test "$GCC" = yes; then
15640 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15641 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'
15642 else
15643 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15644 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'
15645 fi
15646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15647 hardcode_libdir_separator_GCJ=:
15648 ;;
15649
15650 osf4* | osf5*) # as osf3* with the addition of -msym flag
15651 if test "$GCC" = yes; then
15652 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15653 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'
15654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15655 else
15656 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15657 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'
15658 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~
15659 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15660
15661 # Both c and cxx compiler support -rpath directly
15662 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15663 fi
15664 hardcode_libdir_separator_GCJ=:
15665 ;;
15666
15667 sco3.2v5*)
15668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15669 hardcode_shlibpath_var_GCJ=no
15670 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15671 runpath_var=LD_RUN_PATH
15672 hardcode_runpath_var=yes
15673 ;;
15674
15675 solaris*)
15676 no_undefined_flag_GCJ=' -z text'
15677 if test "$GCC" = yes; then
15678 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15679 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15680 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15681 else
15682 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15684 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15685 fi
15686 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15687 hardcode_shlibpath_var_GCJ=no
15688 case $host_os in
15689 solaris2.[0-5] | solaris2.[0-5].*) ;;
15690 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15691 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15692 esac
15693 link_all_deplibs_GCJ=yes
15694 ;;
15695
15696 sunos4*)
15697 if test "x$host_vendor" = xsequent; then
15698 # Use $CC to link under sequent, because it throws in some extra .o
15699 # files that make .init and .fini sections work.
15700 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15701 else
15702 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15703 fi
15704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15705 hardcode_direct_GCJ=yes
15706 hardcode_minus_L_GCJ=yes
15707 hardcode_shlibpath_var_GCJ=no
15708 ;;
15709
15710 sysv4)
15711 case $host_vendor in
15712 sni)
15713 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 hardcode_direct_GCJ=yes # is this really true???
15715 ;;
15716 siemens)
15717 ## LD is ld it makes a PLAMLIB
15718 ## CC just makes a GrossModule.
15719 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15720 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15721 hardcode_direct_GCJ=no
15722 ;;
15723 motorola)
15724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15726 ;;
15727 esac
15728 runpath_var='LD_RUN_PATH'
15729 hardcode_shlibpath_var_GCJ=no
15730 ;;
15731
15732 sysv4.3*)
15733 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734 hardcode_shlibpath_var_GCJ=no
15735 export_dynamic_flag_spec_GCJ='-Bexport'
15736 ;;
15737
15738 sysv4*MP*)
15739 if test -d /usr/nec; then
15740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_shlibpath_var_GCJ=no
15742 runpath_var=LD_RUN_PATH
15743 hardcode_runpath_var=yes
15744 ld_shlibs_GCJ=yes
15745 fi
15746 ;;
15747
15748 sysv4.2uw2*)
15749 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15750 hardcode_direct_GCJ=yes
15751 hardcode_minus_L_GCJ=no
15752 hardcode_shlibpath_var_GCJ=no
15753 hardcode_runpath_var=yes
15754 runpath_var=LD_RUN_PATH
15755 ;;
15756
15757 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15758 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15759 if test "$GCC" = yes; then
15760 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15761 else
15762 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763 fi
15764 runpath_var='LD_RUN_PATH'
15765 hardcode_shlibpath_var_GCJ=no
15766 ;;
15767
15768 sysv5*)
15769 no_undefined_flag_GCJ=' -z text'
15770 # $CC -shared without GNU ld will not create a library from C++
15771 # object files and a static libstdc++, better avoid it by now
15772 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15773 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15774 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15775 hardcode_libdir_flag_spec_GCJ=
15776 hardcode_shlibpath_var_GCJ=no
15777 runpath_var='LD_RUN_PATH'
15778 ;;
15779
15780 uts4*)
15781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783 hardcode_shlibpath_var_GCJ=no
15784 ;;
15785
15786 *)
15787 ld_shlibs_GCJ=no
15788 ;;
15789 esac
15790 fi
15791
15792echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15793echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15794test "$ld_shlibs_GCJ" = no && can_build_shared=no
15795
15796variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15797if test "$GCC" = yes; then
15798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15799fi
15800
15801#
15802# Do we need to explicitly link libc?
15803#
15804case "x$archive_cmds_need_lc_GCJ" in
15805x|xyes)
15806 # Assume -lc should be added
15807 archive_cmds_need_lc_GCJ=yes
15808
15809 if test "$enable_shared" = yes && test "$GCC" = yes; then
15810 case $archive_cmds_GCJ in
15811 *'~'*)
15812 # FIXME: we may have to deal with multi-command sequences.
15813 ;;
15814 '$CC '*)
15815 # Test whether the compiler implicitly links with -lc since on some
15816 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15817 # to ld, don't add -lc before -lgcc.
15818 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15819echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15820 $rm conftest*
15821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15822
15823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824 (eval $ac_compile) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } 2>conftest.err; then
15828 soname=conftest
15829 lib=conftest
15830 libobjs=conftest.$ac_objext
15831 deplibs=
15832 wl=$lt_prog_compiler_wl_GCJ
15833 compiler_flags=-v
15834 linker_flags=-v
15835 verstring=
15836 output_objdir=.
15837 libname=conftest
15838 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15839 allow_undefined_flag_GCJ=
15840 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15841 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }
15845 then
15846 archive_cmds_need_lc_GCJ=no
15847 else
15848 archive_cmds_need_lc_GCJ=yes
15849 fi
15850 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15851 else
15852 cat conftest.err 1>&5
15853 fi
15854 $rm conftest*
15855 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15856echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15857 ;;
15858 esac
15859 fi
15860 ;;
15861esac
15862
15863echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15864echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15865hardcode_action_GCJ=
15866if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15867 test -n "$runpath_var GCJ" || \
15868 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15869
15870 # We can hardcode non-existant directories.
15871 if test "$hardcode_direct_GCJ" != no &&
15872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15873 # have to relink, otherwise we might link with an installed library
15874 # when we should be linking with a yet-to-be-installed one
15875 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15876 test "$hardcode_minus_L_GCJ" != no; then
15877 # Linking always hardcodes the temporary library directory.
15878 hardcode_action_GCJ=relink
15879 else
15880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15881 hardcode_action_GCJ=immediate
15882 fi
15883else
15884 # We cannot hardcode anything, or else we can only hardcode existing
15885 # directories.
15886 hardcode_action_GCJ=unsupported
15887fi
15888echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15889echo "${ECHO_T}$hardcode_action_GCJ" >&6
15890
15891if test "$hardcode_action_GCJ" = relink; then
15892 # Fast installation is not supported
15893 enable_fast_install=no
15894elif test "$shlibpath_overrides_runpath" = yes ||
15895 test "$enable_shared" = no; then
15896 # Fast installation is not necessary
15897 enable_fast_install=needless
15898fi
15899
15900striplib=
15901old_striplib=
15902echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15903echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15904if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15906 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15907 echo "$as_me:$LINENO: result: yes" >&5
15908echo "${ECHO_T}yes" >&6
15909else
15910# FIXME - insert some real tests, host_os isn't really good enough
15911 case $host_os in
15912 darwin*)
15913 if test -n "$STRIP" ; then
15914 striplib="$STRIP -x"
15915 echo "$as_me:$LINENO: result: yes" >&5
15916echo "${ECHO_T}yes" >&6
15917 else
15918 echo "$as_me:$LINENO: result: no" >&5
15919echo "${ECHO_T}no" >&6
15920fi
15921 ;;
15922 *)
15923 echo "$as_me:$LINENO: result: no" >&5
15924echo "${ECHO_T}no" >&6
15925 ;;
15926 esac
15927fi
15928
15929echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15930echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15931library_names_spec=
15932libname_spec='lib$name'
15933soname_spec=
15934shrext=".so"
15935postinstall_cmds=
15936postuninstall_cmds=
15937finish_cmds=
15938finish_eval=
15939shlibpath_var=
15940shlibpath_overrides_runpath=unknown
15941version_type=none
15942dynamic_linker="$host_os ld.so"
15943sys_lib_dlsearch_path_spec="/lib /usr/lib"
15944if test "$GCC" = yes; then
15945 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15946 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15947 # if the path contains ";" then we assume it to be the separator
15948 # otherwise default to the standard path separator (i.e. ":") - it is
15949 # assumed that no part of a normal pathname contains ";" but that should
15950 # okay in the real world where ";" in dirpaths is itself problematic.
15951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15952 else
15953 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15954 fi
15955else
15956 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15957fi
15958need_lib_prefix=unknown
15959hardcode_into_libs=no
15960
15961# when you set need_version to no, make sure it does not cause -set_version
15962# flags to be left without arguments
15963need_version=unknown
15964
15965case $host_os in
15966aix3*)
15967 version_type=linux
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15969 shlibpath_var=LIBPATH
15970
15971 # AIX 3 has no versioning support, so we append a major version to the name.
15972 soname_spec='${libname}${release}${shared_ext}$major'
15973 ;;
15974
15975aix4* | aix5*)
15976 version_type=linux
15977 need_lib_prefix=no
15978 need_version=no
15979 hardcode_into_libs=yes
15980 if test "$host_cpu" = ia64; then
15981 # AIX 5 supports IA64
15982 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15983 shlibpath_var=LD_LIBRARY_PATH
15984 else
15985 # With GCC up to 2.95.x, collect2 would create an import file
15986 # for dependence libraries. The import file would start with
15987 # the line `#! .'. This would cause the generated library to
15988 # depend on `.', always an invalid library. This was fixed in
15989 # development snapshots of GCC prior to 3.0.
15990 case $host_os in
15991 aix4 | aix4.[01] | aix4.[01].*)
15992 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15993 echo ' yes '
15994 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15995 :
15996 else
15997 can_build_shared=no
15998 fi
15999 ;;
16000 esac
16001 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16002 # soname into executable. Probably we can add versioning support to
16003 # collect2, so additional links can be useful in future.
16004 if test "$aix_use_runtimelinking" = yes; then
16005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16006 # instead of lib<name>.a to let people know that these are not
16007 # typical AIX shared libraries.
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 else
16010 # We preserve .a as extension for shared libraries through AIX4.2
16011 # and later when we are not doing run time linking.
16012 library_names_spec='${libname}${release}.a $libname.a'
16013 soname_spec='${libname}${release}${shared_ext}$major'
16014 fi
16015 shlibpath_var=LIBPATH
16016 fi
16017 ;;
16018
16019amigaos*)
16020 library_names_spec='$libname.ixlibrary $libname.a'
16021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16022 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'
16023 ;;
16024
16025beos*)
16026 library_names_spec='${libname}${shared_ext}'
16027 dynamic_linker="$host_os ld.so"
16028 shlibpath_var=LIBRARY_PATH
16029 ;;
16030
16031bsdi4*)
16032 version_type=linux
16033 need_version=no
16034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035 soname_spec='${libname}${release}${shared_ext}$major'
16036 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16039 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16040 # the default ld.so.conf also contains /usr/contrib/lib and
16041 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16042 # libtool to hard-code these into programs
16043 ;;
16044
16045cygwin* | mingw* | pw32*)
16046 version_type=windows
16047 shrext=".dll"
16048 need_version=no
16049 need_lib_prefix=no
16050
16051 case $GCC,$host_os in
16052 yes,cygwin* | yes,mingw* | yes,pw32*)
16053 library_names_spec='$libname.dll.a'
16054 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16055 postinstall_cmds='base_file=`basename \${file}`~
16056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16057 dldir=$destdir/`dirname \$dlpath`~
16058 test -d \$dldir || mkdir -p \$dldir~
16059 $install_prog $dir/$dlname \$dldir/$dlname'
16060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16061 dlpath=$dir/\$dldll~
16062 $rm \$dlpath'
16063 shlibpath_overrides_runpath=yes
16064
16065 case $host_os in
16066 cygwin*)
16067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16069 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16070 ;;
16071 mingw*)
16072 # MinGW DLLs use traditional 'lib' prefix
16073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16076 # It is most probably a Windows format PATH printed by
16077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16078 # path with ; separators, and with drive letters. We can handle the
16079 # drive letters (cygwin fileutils understands them), so leave them,
16080 # especially as we might pass files found there to a mingw objdump,
16081 # which wouldn't understand a cygwinified path. Ahh.
16082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16083 else
16084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16085 fi
16086 ;;
16087 pw32*)
16088 # pw32 DLLs use 'pw' prefix rather than 'lib'
16089 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16090 ;;
16091 esac
16092 ;;
16093
16094 *)
16095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16096 ;;
16097 esac
16098 dynamic_linker='Win32 ld.exe'
16099 # FIXME: first we should search . and the directory the executable is in
16100 shlibpath_var=PATH
16101 ;;
16102
16103darwin* | rhapsody*)
16104 dynamic_linker="$host_os dyld"
16105 version_type=darwin
16106 need_lib_prefix=no
16107 need_version=no
16108 # FIXME: Relying on posixy $() will cause problems for
16109 # cross-compilation, but unfortunately the echo tests do not
16110 # yet detect zsh echo's removal of \ escapes.
16111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16112 soname_spec='${libname}${release}${major}$shared_ext'
16113 shlibpath_overrides_runpath=yes
16114 shlibpath_var=DYLD_LIBRARY_PATH
16115 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16116 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16117 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16118 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"`
16119 fi
16120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16121 ;;
16122
16123dgux*)
16124 version_type=linux
16125 need_lib_prefix=no
16126 need_version=no
16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 ;;
16131
16132freebsd1*)
16133 dynamic_linker=no
16134 ;;
16135
16136freebsd*)
16137 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16138 version_type=freebsd-$objformat
16139 case $version_type in
16140 freebsd-elf*)
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16142 need_version=no
16143 need_lib_prefix=no
16144 ;;
16145 freebsd-*)
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16147 need_version=yes
16148 ;;
16149 esac
16150 shlibpath_var=LD_LIBRARY_PATH
16151 case $host_os in
16152 freebsd2*)
16153 shlibpath_overrides_runpath=yes
16154 ;;
16155 freebsd3.01* | freebsdelf3.01*)
16156 shlibpath_overrides_runpath=yes
16157 hardcode_into_libs=yes
16158 ;;
16159 *) # from 3.2 on
16160 shlibpath_overrides_runpath=no
16161 hardcode_into_libs=yes
16162 ;;
16163 esac
16164 ;;
16165
16166gnu*)
16167 version_type=linux
16168 need_lib_prefix=no
16169 need_version=no
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LD_LIBRARY_PATH
16173 hardcode_into_libs=yes
16174 ;;
16175
16176hpux9* | hpux10* | hpux11*)
16177 # Give a soname corresponding to the major version so that dld.sl refuses to
16178 # link against other versions.
16179 version_type=sunos
16180 need_lib_prefix=no
16181 need_version=no
16182 case "$host_cpu" in
16183 ia64*)
16184 shrext='.so'
16185 hardcode_into_libs=yes
16186 dynamic_linker="$host_os dld.so"
16187 shlibpath_var=LD_LIBRARY_PATH
16188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 if test "X$HPUX_IA64_MODE" = X32; then
16192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16193 else
16194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16195 fi
16196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16197 ;;
16198 hppa*64*)
16199 shrext='.sl'
16200 hardcode_into_libs=yes
16201 dynamic_linker="$host_os dld.sl"
16202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16205 soname_spec='${libname}${release}${shared_ext}$major'
16206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16208 ;;
16209 *)
16210 shrext='.sl'
16211 dynamic_linker="$host_os dld.sl"
16212 shlibpath_var=SHLIB_PATH
16213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 ;;
16217 esac
16218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16219 postinstall_cmds='chmod 555 $lib'
16220 ;;
16221
16222irix5* | irix6* | nonstopux*)
16223 case $host_os in
16224 nonstopux*) version_type=nonstopux ;;
16225 *)
16226 if test "$lt_cv_prog_gnu_ld" = yes; then
16227 version_type=linux
16228 else
16229 version_type=irix
16230 fi ;;
16231 esac
16232 need_lib_prefix=no
16233 need_version=no
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16236 case $host_os in
16237 irix5* | nonstopux*)
16238 libsuff= shlibsuff=
16239 ;;
16240 *)
16241 case $LD in # libtool.m4 will add one of these switches to LD
16242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16243 libsuff= shlibsuff= libmagic=32-bit;;
16244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16245 libsuff=32 shlibsuff=N32 libmagic=N32;;
16246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16248 *) libsuff= shlibsuff= libmagic=never-match;;
16249 esac
16250 ;;
16251 esac
16252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16253 shlibpath_overrides_runpath=no
16254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16256 hardcode_into_libs=yes
16257 ;;
16258
16259# No shared lib support for Linux oldld, aout, or coff.
16260linux*oldld* | linux*aout* | linux*coff*)
16261 dynamic_linker=no
16262 ;;
16263
16264# This must be Linux ELF.
16265linux*)
16266 version_type=linux
16267 need_lib_prefix=no
16268 need_version=no
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 shlibpath_overrides_runpath=no
16274 # This implies no fast_install, which is unacceptable.
16275 # Some rework will be needed to allow for fast_install
16276 # before this can be enabled.
16277 hardcode_into_libs=yes
16278
16279 # We used to test for /lib/ld.so.1 and disable shared libraries on
16280 # powerpc, because MkLinux only supported shared libraries with the
16281 # GNU dynamic linker. Since this was broken with cross compilers,
16282 # most powerpc-linux boxes support dynamic linking these days and
16283 # people can always --disable-shared, the test was removed, and we
16284 # assume the GNU/Linux dynamic linker is in use.
16285 dynamic_linker='GNU/Linux ld.so'
16286 ;;
16287
16288netbsd*)
16289 version_type=sunos
16290 need_lib_prefix=no
16291 need_version=no
16292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16295 dynamic_linker='NetBSD (a.out) ld.so'
16296 else
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 dynamic_linker='NetBSD ld.elf_so'
16300 fi
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=yes
16303 hardcode_into_libs=yes
16304 ;;
16305
16306newsos6)
16307 version_type=linux
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 shlibpath_var=LD_LIBRARY_PATH
16310 shlibpath_overrides_runpath=yes
16311 ;;
16312
16313nto-qnx)
16314 version_type=linux
16315 need_lib_prefix=no
16316 need_version=no
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 shlibpath_var=LD_LIBRARY_PATH
16320 shlibpath_overrides_runpath=yes
16321 ;;
16322
16323openbsd*)
16324 version_type=sunos
16325 need_lib_prefix=no
16326 need_version=no
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16331 case $host_os in
16332 openbsd2.[89] | openbsd2.[89].*)
16333 shlibpath_overrides_runpath=no
16334 ;;
16335 *)
16336 shlibpath_overrides_runpath=yes
16337 ;;
16338 esac
16339 else
16340 shlibpath_overrides_runpath=yes
16341 fi
16342 ;;
16343
16344os2*)
16345 libname_spec='$name'
16346 shrext=".dll"
16347 need_lib_prefix=no
16348 library_names_spec='$libname${shared_ext} $libname.a'
16349 dynamic_linker='OS/2 ld.exe'
16350 shlibpath_var=LIBPATH
16351 ;;
16352
16353osf3* | osf4* | osf5*)
16354 version_type=osf
16355 need_lib_prefix=no
16356 need_version=no
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16362 ;;
16363
16364sco3.2v5*)
16365 version_type=osf
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 ;;
16370
16371solaris*)
16372 version_type=linux
16373 need_lib_prefix=no
16374 need_version=no
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376 soname_spec='${libname}${release}${shared_ext}$major'
16377 shlibpath_var=LD_LIBRARY_PATH
16378 shlibpath_overrides_runpath=yes
16379 hardcode_into_libs=yes
16380 # ldd complains unless libraries are executable
16381 postinstall_cmds='chmod +x $lib'
16382 ;;
16383
16384sunos4*)
16385 version_type=sunos
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 if test "$with_gnu_ld" = yes; then
16391 need_lib_prefix=no
16392 fi
16393 need_version=yes
16394 ;;
16395
16396sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16397 version_type=linux
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 case $host_vendor in
16402 sni)
16403 shlibpath_overrides_runpath=no
16404 need_lib_prefix=no
16405 export_dynamic_flag_spec='${wl}-Blargedynsym'
16406 runpath_var=LD_RUN_PATH
16407 ;;
16408 siemens)
16409 need_lib_prefix=no
16410 ;;
16411 motorola)
16412 need_lib_prefix=no
16413 need_version=no
16414 shlibpath_overrides_runpath=no
16415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16416 ;;
16417 esac
16418 ;;
16419
16420sysv4*MP*)
16421 if test -d /usr/nec ;then
16422 version_type=linux
16423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16424 soname_spec='$libname${shared_ext}.$major'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 fi
16427 ;;
16428
16429uts4*)
16430 version_type=linux
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 soname_spec='${libname}${release}${shared_ext}$major'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 ;;
16435
16436*)
16437 dynamic_linker=no
16438 ;;
16439esac
16440echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16441echo "${ECHO_T}$dynamic_linker" >&6
16442test "$dynamic_linker" = no && can_build_shared=no
16443
16444if test "x$enable_dlopen" != xyes; then
16445 enable_dlopen=unknown
16446 enable_dlopen_self=unknown
16447 enable_dlopen_self_static=unknown
16448else
16449 lt_cv_dlopen=no
16450 lt_cv_dlopen_libs=
16451
16452 case $host_os in
16453 beos*)
16454 lt_cv_dlopen="load_add_on"
16455 lt_cv_dlopen_libs=
16456 lt_cv_dlopen_self=yes
16457 ;;
16458
16459 mingw* | pw32*)
16460 lt_cv_dlopen="LoadLibrary"
16461 lt_cv_dlopen_libs=
16462 ;;
16463
16464 cygwin*)
16465 lt_cv_dlopen="dlopen"
16466 lt_cv_dlopen_libs=
16467 ;;
16468
16469 darwin*)
16470 # if libdl is installed we need to link against it
16471 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16472echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16473if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475else
16476 ac_check_lib_save_LIBS=$LIBS
16477LIBS="-ldl $LIBS"
16478cat >conftest.$ac_ext <<_ACEOF
16479/* confdefs.h. */
16480_ACEOF
16481cat confdefs.h >>conftest.$ac_ext
16482cat >>conftest.$ac_ext <<_ACEOF
16483/* end confdefs.h. */
16484
16485/* Override any gcc2 internal prototype to avoid an error. */
16486#ifdef __cplusplus
16487extern "C"
16488#endif
16489/* We use char because int might match the return type of a gcc2
16490 builtin and then its argument prototype would still apply. */
16491char dlopen ();
16492int
16493main ()
16494{
16495dlopen ();
16496 ;
16497 return 0;
16498}
16499_ACEOF
16500rm -f conftest.$ac_objext conftest$ac_exeext
16501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502 (eval $ac_link) 2>conftest.er1
16503 ac_status=$?
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -z "$ac_c_werror_flag"
16510 || test ! -s conftest.err'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } &&
16516 { ac_try='test -s conftest$ac_exeext'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; }; then
16522 ac_cv_lib_dl_dlopen=yes
16523else
16524 echo "$as_me: failed program was:" >&5
16525sed 's/^/| /' conftest.$ac_ext >&5
16526
16527ac_cv_lib_dl_dlopen=no
16528fi
16529rm -f conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16531LIBS=$ac_check_lib_save_LIBS
16532fi
16533echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16534echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16535if test $ac_cv_lib_dl_dlopen = yes; then
16536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16537else
16538
16539 lt_cv_dlopen="dyld"
16540 lt_cv_dlopen_libs=
16541 lt_cv_dlopen_self=yes
16542
16543fi
16544
16545 ;;
16546
16547 *)
16548 echo "$as_me:$LINENO: checking for shl_load" >&5
16549echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16550if test "${ac_cv_func_shl_load+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552else
16553 cat >conftest.$ac_ext <<_ACEOF
16554/* confdefs.h. */
16555_ACEOF
16556cat confdefs.h >>conftest.$ac_ext
16557cat >>conftest.$ac_ext <<_ACEOF
16558/* end confdefs.h. */
16559/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16561#define shl_load innocuous_shl_load
16562
16563/* System header to define __stub macros and hopefully few prototypes,
16564 which can conflict with char shl_load (); below.
16565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566 <limits.h> exists even on freestanding compilers. */
16567
16568#ifdef __STDC__
16569# include <limits.h>
16570#else
16571# include <assert.h>
16572#endif
16573
16574#undef shl_load
16575
16576/* Override any gcc2 internal prototype to avoid an error. */
16577#ifdef __cplusplus
16578extern "C"
16579{
16580#endif
16581/* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16583char shl_load ();
16584/* The GNU C library defines this for functions which it implements
16585 to always fail with ENOSYS. Some functions are actually named
16586 something starting with __ and the normal name is an alias. */
16587#if defined (__stub_shl_load) || defined (__stub___shl_load)
16588choke me
16589#else
16590char (*f) () = shl_load;
16591#endif
16592#ifdef __cplusplus
16593}
16594#endif
16595
16596int
16597main ()
16598{
16599return f != shl_load;
16600 ;
16601 return 0;
16602}
16603_ACEOF
16604rm -f conftest.$ac_objext conftest$ac_exeext
16605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } &&
16613 { ac_try='test -z "$ac_c_werror_flag"
16614 || test ! -s conftest.err'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_func_shl_load=yes
16627else
16628 echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631ac_cv_func_shl_load=no
16632fi
16633rm -f conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635fi
16636echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16637echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16638if test $ac_cv_func_shl_load = yes; then
16639 lt_cv_dlopen="shl_load"
16640else
16641 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16642echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16643if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645else
16646 ac_check_lib_save_LIBS=$LIBS
16647LIBS="-ldld $LIBS"
16648cat >conftest.$ac_ext <<_ACEOF
16649/* confdefs.h. */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
16653/* end confdefs.h. */
16654
16655/* Override any gcc2 internal prototype to avoid an error. */
16656#ifdef __cplusplus
16657extern "C"
16658#endif
16659/* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16661char shl_load ();
16662int
16663main ()
16664{
16665shl_load ();
16666 ;
16667 return 0;
16668}
16669_ACEOF
16670rm -f conftest.$ac_objext conftest$ac_exeext
16671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag"
16680 || test ! -s conftest.err'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest$ac_exeext'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_lib_dld_shl_load=yes
16693else
16694 echo "$as_me: failed program was:" >&5
16695sed 's/^/| /' conftest.$ac_ext >&5
16696
16697ac_cv_lib_dld_shl_load=no
16698fi
16699rm -f conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701LIBS=$ac_check_lib_save_LIBS
16702fi
16703echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16704echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16705if test $ac_cv_lib_dld_shl_load = yes; then
16706 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16707else
16708 echo "$as_me:$LINENO: checking for dlopen" >&5
16709echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16710if test "${ac_cv_func_dlopen+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16712else
16713 cat >conftest.$ac_ext <<_ACEOF
16714/* confdefs.h. */
16715_ACEOF
16716cat confdefs.h >>conftest.$ac_ext
16717cat >>conftest.$ac_ext <<_ACEOF
16718/* end confdefs.h. */
16719/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16721#define dlopen innocuous_dlopen
16722
16723/* System header to define __stub macros and hopefully few prototypes,
16724 which can conflict with char dlopen (); below.
16725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726 <limits.h> exists even on freestanding compilers. */
16727
16728#ifdef __STDC__
16729# include <limits.h>
16730#else
16731# include <assert.h>
16732#endif
16733
16734#undef dlopen
16735
16736/* Override any gcc2 internal prototype to avoid an error. */
16737#ifdef __cplusplus
16738extern "C"
16739{
16740#endif
16741/* We use char because int might match the return type of a gcc2
16742 builtin and then its argument prototype would still apply. */
16743char dlopen ();
16744/* The GNU C library defines this for functions which it implements
16745 to always fail with ENOSYS. Some functions are actually named
16746 something starting with __ and the normal name is an alias. */
16747#if defined (__stub_dlopen) || defined (__stub___dlopen)
16748choke me
16749#else
16750char (*f) () = dlopen;
16751#endif
16752#ifdef __cplusplus
16753}
16754#endif
16755
16756int
16757main ()
16758{
16759return f != dlopen;
16760 ;
16761 return 0;
16762}
16763_ACEOF
16764rm -f conftest.$ac_objext conftest$ac_exeext
16765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16766 (eval $ac_link) 2>conftest.er1
16767 ac_status=$?
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try='test -z "$ac_c_werror_flag"
16774 || test ! -s conftest.err'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest$ac_exeext'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_func_dlopen=yes
16787else
16788 echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
16791ac_cv_func_dlopen=no
16792fi
16793rm -f conftest.err conftest.$ac_objext \
16794 conftest$ac_exeext conftest.$ac_ext
16795fi
16796echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16797echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16798if test $ac_cv_func_dlopen = yes; then
16799 lt_cv_dlopen="dlopen"
16800else
16801 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16802echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16803if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16805else
16806 ac_check_lib_save_LIBS=$LIBS
16807LIBS="-ldl $LIBS"
16808cat >conftest.$ac_ext <<_ACEOF
16809/* confdefs.h. */
16810_ACEOF
16811cat confdefs.h >>conftest.$ac_ext
16812cat >>conftest.$ac_ext <<_ACEOF
16813/* end confdefs.h. */
16814
16815/* Override any gcc2 internal prototype to avoid an error. */
16816#ifdef __cplusplus
16817extern "C"
16818#endif
16819/* We use char because int might match the return type of a gcc2
16820 builtin and then its argument prototype would still apply. */
16821char dlopen ();
16822int
16823main ()
16824{
16825dlopen ();
16826 ;
16827 return 0;
16828}
16829_ACEOF
16830rm -f conftest.$ac_objext conftest$ac_exeext
16831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16832 (eval $ac_link) 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try='test -z "$ac_c_werror_flag"
16840 || test ! -s conftest.err'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest$ac_exeext'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_lib_dl_dlopen=yes
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857ac_cv_lib_dl_dlopen=no
16858fi
16859rm -f conftest.err conftest.$ac_objext \
16860 conftest$ac_exeext conftest.$ac_ext
16861LIBS=$ac_check_lib_save_LIBS
16862fi
16863echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16864echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16865if test $ac_cv_lib_dl_dlopen = yes; then
16866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16867else
16868 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16869echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16870if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873 ac_check_lib_save_LIBS=$LIBS
16874LIBS="-lsvld $LIBS"
16875cat >conftest.$ac_ext <<_ACEOF
16876/* confdefs.h. */
16877_ACEOF
16878cat confdefs.h >>conftest.$ac_ext
16879cat >>conftest.$ac_ext <<_ACEOF
16880/* end confdefs.h. */
16881
16882/* Override any gcc2 internal prototype to avoid an error. */
16883#ifdef __cplusplus
16884extern "C"
16885#endif
16886/* We use char because int might match the return type of a gcc2
16887 builtin and then its argument prototype would still apply. */
16888char dlopen ();
16889int
16890main ()
16891{
16892dlopen ();
16893 ;
16894 return 0;
16895}
16896_ACEOF
16897rm -f conftest.$ac_objext conftest$ac_exeext
16898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16899 (eval $ac_link) 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag"
16907 || test ! -s conftest.err'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_lib_svld_dlopen=yes
16920else
16921 echo "$as_me: failed program was:" >&5
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
16924ac_cv_lib_svld_dlopen=no
16925fi
16926rm -f conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16928LIBS=$ac_check_lib_save_LIBS
16929fi
16930echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16931echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16932if test $ac_cv_lib_svld_dlopen = yes; then
16933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16934else
16935 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16936echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16937if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 ac_check_lib_save_LIBS=$LIBS
16941LIBS="-ldld $LIBS"
16942cat >conftest.$ac_ext <<_ACEOF
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948
16949/* Override any gcc2 internal prototype to avoid an error. */
16950#ifdef __cplusplus
16951extern "C"
16952#endif
16953/* We use char because int might match the return type of a gcc2
16954 builtin and then its argument prototype would still apply. */
16955char dld_link ();
16956int
16957main ()
16958{
16959dld_link ();
16960 ;
16961 return 0;
16962}
16963_ACEOF
16964rm -f conftest.$ac_objext conftest$ac_exeext
16965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966 (eval $ac_link) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try='test -z "$ac_c_werror_flag"
16974 || test ! -s conftest.err'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_lib_dld_dld_link=yes
16987else
16988 echo "$as_me: failed program was:" >&5
16989sed 's/^/| /' conftest.$ac_ext >&5
16990
16991ac_cv_lib_dld_dld_link=no
16992fi
16993rm -f conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16995LIBS=$ac_check_lib_save_LIBS
16996fi
16997echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16998echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16999if test $ac_cv_lib_dld_dld_link = yes; then
17000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17001fi
17002
17003
17004fi
17005
17006
17007fi
17008
17009
17010fi
17011
17012
17013fi
17014
17015
17016fi
17017
17018 ;;
17019 esac
17020
17021 if test "x$lt_cv_dlopen" != xno; then
17022 enable_dlopen=yes
17023 else
17024 enable_dlopen=no
17025 fi
17026
17027 case $lt_cv_dlopen in
17028 dlopen)
17029 save_CPPFLAGS="$CPPFLAGS"
17030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17031
17032 save_LDFLAGS="$LDFLAGS"
17033 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17034
17035 save_LIBS="$LIBS"
17036 LIBS="$lt_cv_dlopen_libs $LIBS"
17037
17038 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17039echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17040if test "${lt_cv_dlopen_self+set}" = set; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042else
17043 if test "$cross_compiling" = yes; then :
17044 lt_cv_dlopen_self=cross
17045else
17046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17047 lt_status=$lt_dlunknown
17048 cat > conftest.$ac_ext <<EOF
Reid Spencerbb874262004-12-27 08:51:55 +000017049#line 17049 "configure"
Reid Spencer011f5ca2004-09-15 06:19:53 +000017050#include "confdefs.h"
17051
17052#if HAVE_DLFCN_H
17053#include <dlfcn.h>
17054#endif
17055
17056#include <stdio.h>
17057
17058#ifdef RTLD_GLOBAL
17059# define LT_DLGLOBAL RTLD_GLOBAL
17060#else
17061# ifdef DL_GLOBAL
17062# define LT_DLGLOBAL DL_GLOBAL
17063# else
17064# define LT_DLGLOBAL 0
17065# endif
17066#endif
17067
17068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17069 find out it does not work in some platform. */
17070#ifndef LT_DLLAZY_OR_NOW
17071# ifdef RTLD_LAZY
17072# define LT_DLLAZY_OR_NOW RTLD_LAZY
17073# else
17074# ifdef DL_LAZY
17075# define LT_DLLAZY_OR_NOW DL_LAZY
17076# else
17077# ifdef RTLD_NOW
17078# define LT_DLLAZY_OR_NOW RTLD_NOW
17079# else
17080# ifdef DL_NOW
17081# define LT_DLLAZY_OR_NOW DL_NOW
17082# else
17083# define LT_DLLAZY_OR_NOW 0
17084# endif
17085# endif
17086# endif
17087# endif
17088#endif
17089
17090#ifdef __cplusplus
17091extern "C" void exit (int);
17092#endif
17093
17094void fnord() { int i=42;}
17095int main ()
17096{
17097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17098 int status = $lt_dlunknown;
17099
17100 if (self)
17101 {
17102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17104 /* dlclose (self); */
17105 }
17106
17107 exit (status);
17108}
17109EOF
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111 (eval $ac_link) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17115 (./conftest; exit; ) 2>/dev/null
17116 lt_status=$?
17117 case x$lt_status in
17118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17120 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17121 esac
17122 else :
17123 # compilation failed
17124 lt_cv_dlopen_self=no
17125 fi
17126fi
17127rm -fr conftest*
17128
17129
17130fi
17131echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17132echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17133
17134 if test "x$lt_cv_dlopen_self" = xyes; then
17135 LDFLAGS="$LDFLAGS $link_static_flag"
17136 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17137echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17138if test "${lt_cv_dlopen_self_static+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140else
17141 if test "$cross_compiling" = yes; then :
17142 lt_cv_dlopen_self_static=cross
17143else
17144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17145 lt_status=$lt_dlunknown
17146 cat > conftest.$ac_ext <<EOF
Reid Spencerbb874262004-12-27 08:51:55 +000017147#line 17147 "configure"
Reid Spencer011f5ca2004-09-15 06:19:53 +000017148#include "confdefs.h"
17149
17150#if HAVE_DLFCN_H
17151#include <dlfcn.h>
17152#endif
17153
17154#include <stdio.h>
17155
17156#ifdef RTLD_GLOBAL
17157# define LT_DLGLOBAL RTLD_GLOBAL
17158#else
17159# ifdef DL_GLOBAL
17160# define LT_DLGLOBAL DL_GLOBAL
17161# else
17162# define LT_DLGLOBAL 0
17163# endif
17164#endif
17165
17166/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17167 find out it does not work in some platform. */
17168#ifndef LT_DLLAZY_OR_NOW
17169# ifdef RTLD_LAZY
17170# define LT_DLLAZY_OR_NOW RTLD_LAZY
17171# else
17172# ifdef DL_LAZY
17173# define LT_DLLAZY_OR_NOW DL_LAZY
17174# else
17175# ifdef RTLD_NOW
17176# define LT_DLLAZY_OR_NOW RTLD_NOW
17177# else
17178# ifdef DL_NOW
17179# define LT_DLLAZY_OR_NOW DL_NOW
17180# else
17181# define LT_DLLAZY_OR_NOW 0
17182# endif
17183# endif
17184# endif
17185# endif
17186#endif
17187
17188#ifdef __cplusplus
17189extern "C" void exit (int);
17190#endif
17191
17192void fnord() { int i=42;}
17193int main ()
17194{
17195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17196 int status = $lt_dlunknown;
17197
17198 if (self)
17199 {
17200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17201 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17202 /* dlclose (self); */
17203 }
17204
17205 exit (status);
17206}
17207EOF
17208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17213 (./conftest; exit; ) 2>/dev/null
17214 lt_status=$?
17215 case x$lt_status in
17216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17218 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17219 esac
17220 else :
17221 # compilation failed
17222 lt_cv_dlopen_self_static=no
17223 fi
17224fi
17225rm -fr conftest*
17226
17227
17228fi
17229echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17230echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17231 fi
17232
17233 CPPFLAGS="$save_CPPFLAGS"
17234 LDFLAGS="$save_LDFLAGS"
17235 LIBS="$save_LIBS"
17236 ;;
17237 esac
17238
17239 case $lt_cv_dlopen_self in
17240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17241 *) enable_dlopen_self=unknown ;;
17242 esac
17243
17244 case $lt_cv_dlopen_self_static in
17245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17246 *) enable_dlopen_self_static=unknown ;;
17247 esac
17248fi
17249
17250
17251# The else clause should only fire when bootstrapping the
17252# libtool distribution, otherwise you forgot to ship ltmain.sh
17253# with your package, and you will get complaints that there are
17254# no rules to generate ltmain.sh.
17255if test -f "$ltmain"; then
17256 # See if we are running on zsh, and set the options which allow our commands through
17257 # without removal of \ escapes.
17258 if test -n "${ZSH_VERSION+set}" ; then
17259 setopt NO_GLOB_SUBST
17260 fi
17261 # Now quote all the things that may contain metacharacters while being
17262 # careful not to overquote the AC_SUBSTed values. We take copies of the
17263 # variables and quote the copies for generation of the libtool script.
17264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17265 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17266 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17267 deplibs_check_method reload_flag reload_cmds need_locks \
17268 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17269 lt_cv_sys_global_symbol_to_c_name_address \
17270 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17271 old_postinstall_cmds old_postuninstall_cmds \
17272 compiler_GCJ \
17273 CC_GCJ \
17274 LD_GCJ \
17275 lt_prog_compiler_wl_GCJ \
17276 lt_prog_compiler_pic_GCJ \
17277 lt_prog_compiler_static_GCJ \
17278 lt_prog_compiler_no_builtin_flag_GCJ \
17279 export_dynamic_flag_spec_GCJ \
17280 thread_safe_flag_spec_GCJ \
17281 whole_archive_flag_spec_GCJ \
17282 enable_shared_with_static_runtimes_GCJ \
17283 old_archive_cmds_GCJ \
17284 old_archive_from_new_cmds_GCJ \
17285 predep_objects_GCJ \
17286 postdep_objects_GCJ \
17287 predeps_GCJ \
17288 postdeps_GCJ \
17289 compiler_lib_search_path_GCJ \
17290 archive_cmds_GCJ \
17291 archive_expsym_cmds_GCJ \
17292 postinstall_cmds_GCJ \
17293 postuninstall_cmds_GCJ \
17294 old_archive_from_expsyms_cmds_GCJ \
17295 allow_undefined_flag_GCJ \
17296 no_undefined_flag_GCJ \
17297 export_symbols_cmds_GCJ \
17298 hardcode_libdir_flag_spec_GCJ \
17299 hardcode_libdir_flag_spec_ld_GCJ \
17300 hardcode_libdir_separator_GCJ \
17301 hardcode_automatic_GCJ \
17302 module_cmds_GCJ \
17303 module_expsym_cmds_GCJ \
17304 lt_cv_prog_compiler_c_o_GCJ \
17305 exclude_expsyms_GCJ \
17306 include_expsyms_GCJ; do
17307
17308 case $var in
17309 old_archive_cmds_GCJ | \
17310 old_archive_from_new_cmds_GCJ | \
17311 archive_cmds_GCJ | \
17312 archive_expsym_cmds_GCJ | \
17313 module_cmds_GCJ | \
17314 module_expsym_cmds_GCJ | \
17315 old_archive_from_expsyms_cmds_GCJ | \
17316 export_symbols_cmds_GCJ | \
17317 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17318 postinstall_cmds | postuninstall_cmds | \
17319 old_postinstall_cmds | old_postuninstall_cmds | \
17320 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17321 # Double-quote double-evaled strings.
17322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17323 ;;
17324 *)
17325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17326 ;;
17327 esac
17328 done
17329
17330 case $lt_echo in
17331 *'\$0 --fallback-echo"')
17332 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17333 ;;
17334 esac
17335
17336cfgfile="$ofile"
17337
17338 cat <<__EOF__ >> "$cfgfile"
17339# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17340
17341# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17342
17343# Shell to use when invoking shell scripts.
17344SHELL=$lt_SHELL
17345
17346# Whether or not to build shared libraries.
17347build_libtool_libs=$enable_shared
17348
17349# Whether or not to build static libraries.
17350build_old_libs=$enable_static
17351
17352# Whether or not to add -lc for building shared libraries.
17353build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17354
17355# Whether or not to disallow shared libs when runtime libs are static
17356allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17357
17358# Whether or not to optimize for fast installation.
17359fast_install=$enable_fast_install
17360
17361# The host system.
17362host_alias=$host_alias
17363host=$host
17364
17365# An echo program that does not interpret backslashes.
17366echo=$lt_echo
17367
17368# The archiver.
17369AR=$lt_AR
17370AR_FLAGS=$lt_AR_FLAGS
17371
17372# A C compiler.
17373LTCC=$lt_LTCC
17374
17375# A language-specific compiler.
17376CC=$lt_compiler_GCJ
17377
17378# Is the compiler the GNU C compiler?
17379with_gcc=$GCC_GCJ
17380
17381# An ERE matcher.
17382EGREP=$lt_EGREP
17383
17384# The linker used to build libraries.
17385LD=$lt_LD_GCJ
17386
17387# Whether we need hard or soft links.
17388LN_S=$lt_LN_S
17389
17390# A BSD-compatible nm program.
17391NM=$lt_NM
17392
17393# A symbol stripping program
17394STRIP=$STRIP
17395
17396# Used to examine libraries when file_magic_cmd begins "file"
17397MAGIC_CMD=$MAGIC_CMD
17398
17399# Used on cygwin: DLL creation program.
17400DLLTOOL="$DLLTOOL"
17401
17402# Used on cygwin: object dumper.
17403OBJDUMP="$OBJDUMP"
17404
17405# Used on cygwin: assembler.
17406AS="$AS"
17407
17408# The name of the directory that contains temporary libtool files.
17409objdir=$objdir
17410
17411# How to create reloadable object files.
17412reload_flag=$lt_reload_flag
17413reload_cmds=$lt_reload_cmds
17414
17415# How to pass a linker flag through the compiler.
17416wl=$lt_lt_prog_compiler_wl_GCJ
17417
17418# Object file suffix (normally "o").
17419objext="$ac_objext"
17420
17421# Old archive suffix (normally "a").
17422libext="$libext"
17423
17424# Shared library suffix (normally ".so").
17425shrext='$shrext'
17426
17427# Executable file suffix (normally "").
17428exeext="$exeext"
17429
17430# Additional compiler flags for building library objects.
17431pic_flag=$lt_lt_prog_compiler_pic_GCJ
17432pic_mode=$pic_mode
17433
17434# What is the maximum length of a command?
17435max_cmd_len=$lt_cv_sys_max_cmd_len
17436
17437# Does compiler simultaneously support -c and -o options?
17438compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17439
17440# Must we lock files when doing compilation ?
17441need_locks=$lt_need_locks
17442
17443# Do we need the lib prefix for modules?
17444need_lib_prefix=$need_lib_prefix
17445
17446# Do we need a version for libraries?
17447need_version=$need_version
17448
17449# Whether dlopen is supported.
17450dlopen_support=$enable_dlopen
17451
17452# Whether dlopen of programs is supported.
17453dlopen_self=$enable_dlopen_self
17454
17455# Whether dlopen of statically linked programs is supported.
17456dlopen_self_static=$enable_dlopen_self_static
17457
17458# Compiler flag to prevent dynamic linking.
17459link_static_flag=$lt_lt_prog_compiler_static_GCJ
17460
17461# Compiler flag to turn off builtin functions.
17462no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17463
17464# Compiler flag to allow reflexive dlopens.
17465export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17466
17467# Compiler flag to generate shared objects directly from archives.
17468whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17469
17470# Compiler flag to generate thread-safe objects.
17471thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17472
17473# Library versioning type.
17474version_type=$version_type
17475
17476# Format of library name prefix.
17477libname_spec=$lt_libname_spec
17478
17479# List of archive names. First name is the real one, the rest are links.
17480# The last name is the one that the linker finds with -lNAME.
17481library_names_spec=$lt_library_names_spec
17482
17483# The coded name of the library, if different from the real name.
17484soname_spec=$lt_soname_spec
17485
17486# Commands used to build and install an old-style archive.
17487RANLIB=$lt_RANLIB
17488old_archive_cmds=$lt_old_archive_cmds_GCJ
17489old_postinstall_cmds=$lt_old_postinstall_cmds
17490old_postuninstall_cmds=$lt_old_postuninstall_cmds
17491
17492# Create an old-style archive from a shared archive.
17493old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17494
17495# Create a temporary old-style archive to link instead of a shared archive.
17496old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17497
17498# Commands used to build and install a shared archive.
17499archive_cmds=$lt_archive_cmds_GCJ
17500archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17501postinstall_cmds=$lt_postinstall_cmds
17502postuninstall_cmds=$lt_postuninstall_cmds
17503
17504# Commands used to build a loadable module (assumed same as above if empty)
17505module_cmds=$lt_module_cmds_GCJ
17506module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17507
17508# Commands to strip libraries.
17509old_striplib=$lt_old_striplib
17510striplib=$lt_striplib
17511
17512# Dependencies to place before the objects being linked to create a
17513# shared library.
17514predep_objects=$lt_predep_objects_GCJ
17515
17516# Dependencies to place after the objects being linked to create a
17517# shared library.
17518postdep_objects=$lt_postdep_objects_GCJ
17519
17520# Dependencies to place before the objects being linked to create a
17521# shared library.
17522predeps=$lt_predeps_GCJ
17523
17524# Dependencies to place after the objects being linked to create a
17525# shared library.
17526postdeps=$lt_postdeps_GCJ
17527
17528# The library search path used internally by the compiler when linking
17529# a shared library.
17530compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17531
17532# Method to check whether dependent libraries are shared objects.
17533deplibs_check_method=$lt_deplibs_check_method
17534
17535# Command to use when deplibs_check_method == file_magic.
17536file_magic_cmd=$lt_file_magic_cmd
17537
17538# Flag that allows shared libraries with undefined symbols to be built.
17539allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17540
17541# Flag that forces no undefined symbols.
17542no_undefined_flag=$lt_no_undefined_flag_GCJ
17543
17544# Commands used to finish a libtool library installation in a directory.
17545finish_cmds=$lt_finish_cmds
17546
17547# Same as above, but a single script fragment to be evaled but not shown.
17548finish_eval=$lt_finish_eval
17549
17550# Take the output of nm and produce a listing of raw symbols and C names.
17551global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17552
17553# Transform the output of nm in a proper C declaration
17554global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17555
17556# Transform the output of nm in a C name address pair
17557global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17558
17559# This is the shared library runtime path variable.
17560runpath_var=$runpath_var
17561
17562# This is the shared library path variable.
17563shlibpath_var=$shlibpath_var
17564
17565# Is shlibpath searched before the hard-coded library search path?
17566shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17567
17568# How to hardcode a shared library path into an executable.
17569hardcode_action=$hardcode_action_GCJ
17570
17571# Whether we should hardcode library paths into libraries.
17572hardcode_into_libs=$hardcode_into_libs
17573
17574# Flag to hardcode \$libdir into a binary during linking.
17575# This must work even if \$libdir does not exist.
17576hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17577
17578# If ld is used when linking, flag to hardcode \$libdir into
17579# a binary during linking. This must work even if \$libdir does
17580# not exist.
17581hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17582
17583# Whether we need a single -rpath flag with a separated argument.
17584hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17585
17586# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17587# resulting binary.
17588hardcode_direct=$hardcode_direct_GCJ
17589
17590# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17591# resulting binary.
17592hardcode_minus_L=$hardcode_minus_L_GCJ
17593
17594# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17595# the resulting binary.
17596hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17597
17598# Set to yes if building a shared library automatically hardcodes DIR into the library
17599# and all subsequent libraries and executables linked against it.
17600hardcode_automatic=$hardcode_automatic_GCJ
17601
17602# Variables whose values should be saved in libtool wrapper scripts and
17603# restored at relink time.
17604variables_saved_for_relink="$variables_saved_for_relink"
17605
17606# Whether libtool must link a program against all its dependency libraries.
17607link_all_deplibs=$link_all_deplibs_GCJ
17608
17609# Compile-time system search path for libraries
17610sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17611
17612# Run-time system search path for libraries
17613sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17614
17615# Fix the shell variable \$srcfile for the compiler.
17616fix_srcfile_path="$fix_srcfile_path_GCJ"
17617
17618# Set to yes if exported symbols are required.
17619always_export_symbols=$always_export_symbols_GCJ
17620
17621# The commands to list exported symbols.
17622export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17623
17624# The commands to extract the exported symbol list from a shared archive.
17625extract_expsyms_cmds=$lt_extract_expsyms_cmds
17626
17627# Symbols that should not be listed in the preloaded symbols.
17628exclude_expsyms=$lt_exclude_expsyms_GCJ
17629
17630# Symbols that must always be exported.
17631include_expsyms=$lt_include_expsyms_GCJ
17632
17633# ### END LIBTOOL TAG CONFIG: $tagname
17634
17635__EOF__
17636
17637
17638else
17639 # If there is no Makefile yet, we rely on a make rule to execute
17640 # `config.status --recheck' to rerun these tests and create the
17641 # libtool script then.
17642 test -f Makefile && make "$ltmain"
17643fi
17644
17645
17646ac_ext=c
17647ac_cpp='$CPP $CPPFLAGS'
17648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17650ac_compiler_gnu=$ac_cv_c_compiler_gnu
17651
17652CC="$lt_save_CC"
17653
17654 else
17655 tagname=""
17656 fi
17657 ;;
17658
17659 RC)
17660
17661
17662
17663# Source file extension for RC test sources.
17664ac_ext=rc
17665
17666# Object file extension for compiled RC test sources.
17667objext=o
17668objext_RC=$objext
17669
17670# Code to be used in simple compile tests
17671lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17672
17673# Code to be used in simple link tests
17674lt_simple_link_test_code="$lt_simple_compile_test_code"
17675
17676# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17677
17678# If no C compiler was specified, use CC.
17679LTCC=${LTCC-"$CC"}
17680
17681# Allow CC to be a program name with arguments.
17682compiler=$CC
17683
17684
17685# Allow CC to be a program name with arguments.
17686lt_save_CC="$CC"
17687CC=${RC-"windres"}
17688compiler=$CC
17689compiler_RC=$CC
17690lt_cv_prog_compiler_c_o_RC=yes
17691
17692# The else clause should only fire when bootstrapping the
17693# libtool distribution, otherwise you forgot to ship ltmain.sh
17694# with your package, and you will get complaints that there are
17695# no rules to generate ltmain.sh.
17696if test -f "$ltmain"; then
17697 # See if we are running on zsh, and set the options which allow our commands through
17698 # without removal of \ escapes.
17699 if test -n "${ZSH_VERSION+set}" ; then
17700 setopt NO_GLOB_SUBST
17701 fi
17702 # Now quote all the things that may contain metacharacters while being
17703 # careful not to overquote the AC_SUBSTed values. We take copies of the
17704 # variables and quote the copies for generation of the libtool script.
17705 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17706 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17707 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17708 deplibs_check_method reload_flag reload_cmds need_locks \
17709 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17710 lt_cv_sys_global_symbol_to_c_name_address \
17711 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17712 old_postinstall_cmds old_postuninstall_cmds \
17713 compiler_RC \
17714 CC_RC \
17715 LD_RC \
17716 lt_prog_compiler_wl_RC \
17717 lt_prog_compiler_pic_RC \
17718 lt_prog_compiler_static_RC \
17719 lt_prog_compiler_no_builtin_flag_RC \
17720 export_dynamic_flag_spec_RC \
17721 thread_safe_flag_spec_RC \
17722 whole_archive_flag_spec_RC \
17723 enable_shared_with_static_runtimes_RC \
17724 old_archive_cmds_RC \
17725 old_archive_from_new_cmds_RC \
17726 predep_objects_RC \
17727 postdep_objects_RC \
17728 predeps_RC \
17729 postdeps_RC \
17730 compiler_lib_search_path_RC \
17731 archive_cmds_RC \
17732 archive_expsym_cmds_RC \
17733 postinstall_cmds_RC \
17734 postuninstall_cmds_RC \
17735 old_archive_from_expsyms_cmds_RC \
17736 allow_undefined_flag_RC \
17737 no_undefined_flag_RC \
17738 export_symbols_cmds_RC \
17739 hardcode_libdir_flag_spec_RC \
17740 hardcode_libdir_flag_spec_ld_RC \
17741 hardcode_libdir_separator_RC \
17742 hardcode_automatic_RC \
17743 module_cmds_RC \
17744 module_expsym_cmds_RC \
17745 lt_cv_prog_compiler_c_o_RC \
17746 exclude_expsyms_RC \
17747 include_expsyms_RC; do
17748
17749 case $var in
17750 old_archive_cmds_RC | \
17751 old_archive_from_new_cmds_RC | \
17752 archive_cmds_RC | \
17753 archive_expsym_cmds_RC | \
17754 module_cmds_RC | \
17755 module_expsym_cmds_RC | \
17756 old_archive_from_expsyms_cmds_RC | \
17757 export_symbols_cmds_RC | \
17758 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17759 postinstall_cmds | postuninstall_cmds | \
17760 old_postinstall_cmds | old_postuninstall_cmds | \
17761 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17762 # Double-quote double-evaled strings.
17763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17764 ;;
17765 *)
17766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17767 ;;
17768 esac
17769 done
17770
17771 case $lt_echo in
17772 *'\$0 --fallback-echo"')
17773 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17774 ;;
17775 esac
17776
17777cfgfile="$ofile"
17778
17779 cat <<__EOF__ >> "$cfgfile"
17780# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17781
17782# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17783
17784# Shell to use when invoking shell scripts.
17785SHELL=$lt_SHELL
17786
17787# Whether or not to build shared libraries.
17788build_libtool_libs=$enable_shared
17789
17790# Whether or not to build static libraries.
17791build_old_libs=$enable_static
17792
17793# Whether or not to add -lc for building shared libraries.
17794build_libtool_need_lc=$archive_cmds_need_lc_RC
17795
17796# Whether or not to disallow shared libs when runtime libs are static
17797allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17798
17799# Whether or not to optimize for fast installation.
17800fast_install=$enable_fast_install
17801
17802# The host system.
17803host_alias=$host_alias
17804host=$host
17805
17806# An echo program that does not interpret backslashes.
17807echo=$lt_echo
17808
17809# The archiver.
17810AR=$lt_AR
17811AR_FLAGS=$lt_AR_FLAGS
17812
17813# A C compiler.
17814LTCC=$lt_LTCC
17815
17816# A language-specific compiler.
17817CC=$lt_compiler_RC
17818
17819# Is the compiler the GNU C compiler?
17820with_gcc=$GCC_RC
17821
17822# An ERE matcher.
17823EGREP=$lt_EGREP
17824
17825# The linker used to build libraries.
17826LD=$lt_LD_RC
17827
17828# Whether we need hard or soft links.
17829LN_S=$lt_LN_S
17830
17831# A BSD-compatible nm program.
17832NM=$lt_NM
17833
17834# A symbol stripping program
17835STRIP=$STRIP
17836
17837# Used to examine libraries when file_magic_cmd begins "file"
17838MAGIC_CMD=$MAGIC_CMD
17839
17840# Used on cygwin: DLL creation program.
17841DLLTOOL="$DLLTOOL"
17842
17843# Used on cygwin: object dumper.
17844OBJDUMP="$OBJDUMP"
17845
17846# Used on cygwin: assembler.
17847AS="$AS"
17848
17849# The name of the directory that contains temporary libtool files.
17850objdir=$objdir
17851
17852# How to create reloadable object files.
17853reload_flag=$lt_reload_flag
17854reload_cmds=$lt_reload_cmds
17855
17856# How to pass a linker flag through the compiler.
17857wl=$lt_lt_prog_compiler_wl_RC
17858
17859# Object file suffix (normally "o").
17860objext="$ac_objext"
17861
17862# Old archive suffix (normally "a").
17863libext="$libext"
17864
17865# Shared library suffix (normally ".so").
17866shrext='$shrext'
17867
17868# Executable file suffix (normally "").
17869exeext="$exeext"
17870
17871# Additional compiler flags for building library objects.
17872pic_flag=$lt_lt_prog_compiler_pic_RC
17873pic_mode=$pic_mode
17874
17875# What is the maximum length of a command?
17876max_cmd_len=$lt_cv_sys_max_cmd_len
17877
17878# Does compiler simultaneously support -c and -o options?
17879compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17880
17881# Must we lock files when doing compilation ?
17882need_locks=$lt_need_locks
17883
17884# Do we need the lib prefix for modules?
17885need_lib_prefix=$need_lib_prefix
17886
17887# Do we need a version for libraries?
17888need_version=$need_version
17889
17890# Whether dlopen is supported.
17891dlopen_support=$enable_dlopen
17892
17893# Whether dlopen of programs is supported.
17894dlopen_self=$enable_dlopen_self
17895
17896# Whether dlopen of statically linked programs is supported.
17897dlopen_self_static=$enable_dlopen_self_static
17898
17899# Compiler flag to prevent dynamic linking.
17900link_static_flag=$lt_lt_prog_compiler_static_RC
17901
17902# Compiler flag to turn off builtin functions.
17903no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17904
17905# Compiler flag to allow reflexive dlopens.
17906export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17907
17908# Compiler flag to generate shared objects directly from archives.
17909whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17910
17911# Compiler flag to generate thread-safe objects.
17912thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17913
17914# Library versioning type.
17915version_type=$version_type
17916
17917# Format of library name prefix.
17918libname_spec=$lt_libname_spec
17919
17920# List of archive names. First name is the real one, the rest are links.
17921# The last name is the one that the linker finds with -lNAME.
17922library_names_spec=$lt_library_names_spec
17923
17924# The coded name of the library, if different from the real name.
17925soname_spec=$lt_soname_spec
17926
17927# Commands used to build and install an old-style archive.
17928RANLIB=$lt_RANLIB
17929old_archive_cmds=$lt_old_archive_cmds_RC
17930old_postinstall_cmds=$lt_old_postinstall_cmds
17931old_postuninstall_cmds=$lt_old_postuninstall_cmds
17932
17933# Create an old-style archive from a shared archive.
17934old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17935
17936# Create a temporary old-style archive to link instead of a shared archive.
17937old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17938
17939# Commands used to build and install a shared archive.
17940archive_cmds=$lt_archive_cmds_RC
17941archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17942postinstall_cmds=$lt_postinstall_cmds
17943postuninstall_cmds=$lt_postuninstall_cmds
17944
17945# Commands used to build a loadable module (assumed same as above if empty)
17946module_cmds=$lt_module_cmds_RC
17947module_expsym_cmds=$lt_module_expsym_cmds_RC
17948
17949# Commands to strip libraries.
17950old_striplib=$lt_old_striplib
17951striplib=$lt_striplib
17952
17953# Dependencies to place before the objects being linked to create a
17954# shared library.
17955predep_objects=$lt_predep_objects_RC
17956
17957# Dependencies to place after the objects being linked to create a
17958# shared library.
17959postdep_objects=$lt_postdep_objects_RC
17960
17961# Dependencies to place before the objects being linked to create a
17962# shared library.
17963predeps=$lt_predeps_RC
17964
17965# Dependencies to place after the objects being linked to create a
17966# shared library.
17967postdeps=$lt_postdeps_RC
17968
17969# The library search path used internally by the compiler when linking
17970# a shared library.
17971compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17972
17973# Method to check whether dependent libraries are shared objects.
17974deplibs_check_method=$lt_deplibs_check_method
17975
17976# Command to use when deplibs_check_method == file_magic.
17977file_magic_cmd=$lt_file_magic_cmd
17978
17979# Flag that allows shared libraries with undefined symbols to be built.
17980allow_undefined_flag=$lt_allow_undefined_flag_RC
17981
17982# Flag that forces no undefined symbols.
17983no_undefined_flag=$lt_no_undefined_flag_RC
17984
17985# Commands used to finish a libtool library installation in a directory.
17986finish_cmds=$lt_finish_cmds
17987
17988# Same as above, but a single script fragment to be evaled but not shown.
17989finish_eval=$lt_finish_eval
17990
17991# Take the output of nm and produce a listing of raw symbols and C names.
17992global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17993
17994# Transform the output of nm in a proper C declaration
17995global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17996
17997# Transform the output of nm in a C name address pair
17998global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17999
18000# This is the shared library runtime path variable.
18001runpath_var=$runpath_var
18002
18003# This is the shared library path variable.
18004shlibpath_var=$shlibpath_var
18005
18006# Is shlibpath searched before the hard-coded library search path?
18007shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18008
18009# How to hardcode a shared library path into an executable.
18010hardcode_action=$hardcode_action_RC
18011
18012# Whether we should hardcode library paths into libraries.
18013hardcode_into_libs=$hardcode_into_libs
18014
18015# Flag to hardcode \$libdir into a binary during linking.
18016# This must work even if \$libdir does not exist.
18017hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18018
18019# If ld is used when linking, flag to hardcode \$libdir into
18020# a binary during linking. This must work even if \$libdir does
18021# not exist.
18022hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18023
18024# Whether we need a single -rpath flag with a separated argument.
18025hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18026
18027# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18028# resulting binary.
18029hardcode_direct=$hardcode_direct_RC
18030
18031# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18032# resulting binary.
18033hardcode_minus_L=$hardcode_minus_L_RC
18034
18035# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18036# the resulting binary.
18037hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18038
18039# Set to yes if building a shared library automatically hardcodes DIR into the library
18040# and all subsequent libraries and executables linked against it.
18041hardcode_automatic=$hardcode_automatic_RC
18042
18043# Variables whose values should be saved in libtool wrapper scripts and
18044# restored at relink time.
18045variables_saved_for_relink="$variables_saved_for_relink"
18046
18047# Whether libtool must link a program against all its dependency libraries.
18048link_all_deplibs=$link_all_deplibs_RC
18049
18050# Compile-time system search path for libraries
18051sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18052
18053# Run-time system search path for libraries
18054sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18055
18056# Fix the shell variable \$srcfile for the compiler.
18057fix_srcfile_path="$fix_srcfile_path_RC"
18058
18059# Set to yes if exported symbols are required.
18060always_export_symbols=$always_export_symbols_RC
18061
18062# The commands to list exported symbols.
18063export_symbols_cmds=$lt_export_symbols_cmds_RC
18064
18065# The commands to extract the exported symbol list from a shared archive.
18066extract_expsyms_cmds=$lt_extract_expsyms_cmds
18067
18068# Symbols that should not be listed in the preloaded symbols.
18069exclude_expsyms=$lt_exclude_expsyms_RC
18070
18071# Symbols that must always be exported.
18072include_expsyms=$lt_include_expsyms_RC
18073
18074# ### END LIBTOOL TAG CONFIG: $tagname
18075
18076__EOF__
18077
18078
18079else
18080 # If there is no Makefile yet, we rely on a make rule to execute
18081 # `config.status --recheck' to rerun these tests and create the
18082 # libtool script then.
18083 test -f Makefile && make "$ltmain"
18084fi
18085
18086
18087ac_ext=c
18088ac_cpp='$CPP $CPPFLAGS'
18089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18091ac_compiler_gnu=$ac_cv_c_compiler_gnu
18092
18093CC="$lt_save_CC"
18094
18095 ;;
18096
18097 *)
18098 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18099echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18100 { (exit 1); exit 1; }; }
18101 ;;
18102 esac
18103
18104 # Append the new tag name to the list of available tags.
18105 if test -n "$tagname" ; then
18106 available_tags="$available_tags $tagname"
18107 fi
18108 fi
18109 done
18110 IFS="$lt_save_ifs"
18111
18112 # Now substitute the updated list of available tags.
18113 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18114 mv "${ofile}T" "$ofile"
18115 chmod +x "$ofile"
18116 else
18117 rm -f "${ofile}T"
18118 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18119echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18120 { (exit 1); exit 1; }; }
18121 fi
18122fi
18123
18124
18125
18126# This can be used to rebuild libtool when needed
18127LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18128
18129# Always use our own libtool.
18130LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18131
18132# Prevent multiple expansion
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153echo "$as_me:$LINENO: checking for shared library suffix" >&5
18154echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
18155eval "SHLIBEXT=$shrext"
18156echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
18157echo "${ECHO_T}$SHLIBEXT" >&6
18158SHLIBEXT=$SHLIBEXT
18159
18160
18161cat >>confdefs.h <<_ACEOF
18162#define SHLIBEXT "$SHLIBEXT"
18163_ACEOF
18164
Reid Spencer820dab72004-09-04 19:48:50 +000018165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175# Check whether --with-llvmsrc or --without-llvmsrc was given.
18176if test "${with_llvmsrc+set}" = set; then
18177 withval="$with_llvmsrc"
18178 LLVM_SRC=$withval
18179
18180else
18181 LLVM_SRC=`cd ${srcdir}/../..; pwd`
18182
18183fi;
18184
18185
18186# Check whether --with-llvmobj or --without-llvmobj was given.
18187if test "${with_llvmobj+set}" = set; then
18188 withval="$with_llvmobj"
18189 LLVM_OBJ=$withval
18190
18191else
18192 LLVM_OBJ=`cd ../..; pwd`
18193
18194fi;
18195
Reid Spencer820dab72004-09-04 19:48:50 +000018196cat >confcache <<\_ACEOF
18197# This file is a shell script that caches the results of configure
18198# tests run on this system so they can be shared between configure
18199# scripts and configure runs, see configure's option --config-cache.
18200# It is not useful on other systems. If it contains results you don't
18201# want to keep, you may remove or edit it.
18202#
18203# config.status only pays attention to the cache file if you give it
18204# the --recheck option to rerun configure.
18205#
18206# `ac_cv_env_foo' variables (set or unset) will be overridden when
18207# loading this file, other *unset* `ac_cv_foo' will be assigned the
18208# following values.
18209
18210_ACEOF
18211
18212# The following way of writing the cache mishandles newlines in values,
18213# but we know of no workaround that is simple, portable, and efficient.
18214# So, don't put newlines in cache variables' values.
18215# Ultrix sh set writes to stderr and can't be redirected directly,
18216# and sets the high bit in the cache file unless we assign to the vars.
18217{
18218 (set) 2>&1 |
18219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18220 *ac_space=\ *)
18221 # `set' does not quote correctly, so add quotes (double-quote
18222 # substitution turns \\\\ into \\, and sed turns \\ into \).
18223 sed -n \
18224 "s/'/'\\\\''/g;
18225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18226 ;;
18227 *)
18228 # `set' quotes correctly as required by POSIX, so do not add quotes.
18229 sed -n \
18230 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18231 ;;
18232 esac;
18233} |
18234 sed '
18235 t clear
18236 : clear
18237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18238 t end
18239 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18240 : end' >>confcache
18241if diff $cache_file confcache >/dev/null 2>&1; then :; else
18242 if test -w $cache_file; then
18243 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18244 cat confcache >$cache_file
18245 else
18246 echo "not updating unwritable cache $cache_file"
18247 fi
18248fi
18249rm -f confcache
18250
18251test "x$prefix" = xNONE && prefix=$ac_default_prefix
18252# Let make expand exec_prefix.
18253test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18254
18255# VPATH may cause trouble with some makes, so we remove $(srcdir),
18256# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18257# trailing colons and then remove the whole line if VPATH becomes empty
18258# (actually we leave an empty line to preserve line numbers).
18259if test "x$srcdir" = x.; then
18260 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18261s/:*\$(srcdir):*/:/;
18262s/:*\${srcdir}:*/:/;
18263s/:*@srcdir@:*/:/;
18264s/^\([^=]*=[ ]*\):*/\1/;
18265s/:*$//;
18266s/^[^=]*=[ ]*$//;
18267}'
18268fi
18269
18270# Transform confdefs.h into DEFS.
18271# Protect against shell expansion while executing Makefile rules.
18272# Protect against Makefile macro expansion.
18273#
18274# If the first sed substitution is executed (which looks for macros that
18275# take arguments), then we branch to the quote section. Otherwise,
18276# look for a macro that doesn't take arguments.
18277cat >confdef2opt.sed <<\_ACEOF
18278t clear
18279: clear
18280s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
18281t quote
18282s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
18283t quote
18284d
18285: quote
18286s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
18287s,\[,\\&,g
18288s,\],\\&,g
18289s,\$,$$,g
18290p
18291_ACEOF
18292# We use echo to avoid assuming a particular line-breaking character.
18293# The extra dot is to prevent the shell from consuming trailing
18294# line-breaks from the sub-command output. A line-break within
18295# single-quotes doesn't work because, if this script is created in a
18296# platform that uses two characters for line-breaks (e.g., DOS), tr
18297# would break.
18298ac_LF_and_DOT=`echo; echo .`
18299DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
18300rm -f confdef2opt.sed
18301
18302
18303ac_libobjs=
18304ac_ltlibobjs=
18305for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18306 # 1. Remove the extension, and $U if already installed.
18307 ac_i=`echo "$ac_i" |
18308 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18309 # 2. Add them.
18310 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18311 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18312done
18313LIBOBJS=$ac_libobjs
18314
18315LTLIBOBJS=$ac_ltlibobjs
18316
18317
18318
18319: ${CONFIG_STATUS=./config.status}
18320ac_clean_files_save=$ac_clean_files
18321ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18322{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18323echo "$as_me: creating $CONFIG_STATUS" >&6;}
18324cat >$CONFIG_STATUS <<_ACEOF
18325#! $SHELL
18326# Generated by $as_me.
18327# Run this file to recreate the current configuration.
18328# Compiler output produced by configure, useful for debugging
18329# configure, is in config.log if it exists.
18330
18331debug=false
18332ac_cs_recheck=false
18333ac_cs_silent=false
18334SHELL=\${CONFIG_SHELL-$SHELL}
18335_ACEOF
18336
18337cat >>$CONFIG_STATUS <<\_ACEOF
18338## --------------------- ##
18339## M4sh Initialization. ##
18340## --------------------- ##
18341
18342# Be Bourne compatible
18343if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18344 emulate sh
18345 NULLCMD=:
18346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18347 # is contrary to our usage. Disable this feature.
18348 alias -g '${1+"$@"}'='"$@"'
18349elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18350 set -o posix
18351fi
18352DUALCASE=1; export DUALCASE # for MKS sh
18353
18354# Support unset when possible.
18355if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18356 as_unset=unset
18357else
18358 as_unset=false
18359fi
18360
18361
18362# Work around bugs in pre-3.0 UWIN ksh.
18363$as_unset ENV MAIL MAILPATH
18364PS1='$ '
18365PS2='> '
18366PS4='+ '
18367
18368# NLS nuisances.
18369for as_var in \
18370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18372 LC_TELEPHONE LC_TIME
18373do
18374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18375 eval $as_var=C; export $as_var
18376 else
18377 $as_unset $as_var
18378 fi
18379done
18380
18381# Required to use basename.
18382if expr a : '\(a\)' >/dev/null 2>&1; then
18383 as_expr=expr
18384else
18385 as_expr=false
18386fi
18387
18388if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18389 as_basename=basename
18390else
18391 as_basename=false
18392fi
18393
18394
18395# Name of the executable.
18396as_me=`$as_basename "$0" ||
18397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18398 X"$0" : 'X\(//\)$' \| \
18399 X"$0" : 'X\(/\)$' \| \
18400 . : '\(.\)' 2>/dev/null ||
18401echo X/"$0" |
18402 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18403 /^X\/\(\/\/\)$/{ s//\1/; q; }
18404 /^X\/\(\/\).*/{ s//\1/; q; }
18405 s/.*/./; q'`
18406
18407
18408# PATH needs CR, and LINENO needs CR and PATH.
18409# Avoid depending upon Character Ranges.
18410as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18411as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18412as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18413as_cr_digits='0123456789'
18414as_cr_alnum=$as_cr_Letters$as_cr_digits
18415
18416# The user is always right.
18417if test "${PATH_SEPARATOR+set}" != set; then
18418 echo "#! /bin/sh" >conf$$.sh
18419 echo "exit 0" >>conf$$.sh
18420 chmod +x conf$$.sh
18421 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18422 PATH_SEPARATOR=';'
18423 else
18424 PATH_SEPARATOR=:
18425 fi
18426 rm -f conf$$.sh
18427fi
18428
18429
18430 as_lineno_1=$LINENO
18431 as_lineno_2=$LINENO
18432 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18433 test "x$as_lineno_1" != "x$as_lineno_2" &&
18434 test "x$as_lineno_3" = "x$as_lineno_2" || {
18435 # Find who we are. Look in the path if we contain no path at all
18436 # relative or not.
18437 case $0 in
18438 *[\\/]* ) as_myself=$0 ;;
18439 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18440for as_dir in $PATH
18441do
18442 IFS=$as_save_IFS
18443 test -z "$as_dir" && as_dir=.
18444 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18445done
18446
18447 ;;
18448 esac
18449 # We did not find ourselves, most probably we were run as `sh COMMAND'
18450 # in which case we are not to be found in the path.
18451 if test "x$as_myself" = x; then
18452 as_myself=$0
18453 fi
18454 if test ! -f "$as_myself"; then
18455 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18456echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18457 { (exit 1); exit 1; }; }
18458 fi
18459 case $CONFIG_SHELL in
18460 '')
18461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18462for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18463do
18464 IFS=$as_save_IFS
18465 test -z "$as_dir" && as_dir=.
18466 for as_base in sh bash ksh sh5; do
18467 case $as_dir in
18468 /*)
18469 if ("$as_dir/$as_base" -c '
18470 as_lineno_1=$LINENO
18471 as_lineno_2=$LINENO
18472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18473 test "x$as_lineno_1" != "x$as_lineno_2" &&
18474 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18475 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18476 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18477 CONFIG_SHELL=$as_dir/$as_base
18478 export CONFIG_SHELL
18479 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18480 fi;;
18481 esac
18482 done
18483done
18484;;
18485 esac
18486
18487 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18488 # uniformly replaced by the line number. The first 'sed' inserts a
18489 # line-number line before each line; the second 'sed' does the real
18490 # work. The second script uses 'N' to pair each line-number line
18491 # with the numbered line, and appends trailing '-' during
18492 # substitution so that $LINENO is not a special case at line end.
18493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18494 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18495 sed '=' <$as_myself |
18496 sed '
18497 N
18498 s,$,-,
18499 : loop
18500 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18501 t loop
18502 s,-$,,
18503 s,^['$as_cr_digits']*\n,,
18504 ' >$as_me.lineno &&
18505 chmod +x $as_me.lineno ||
18506 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18507echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18508 { (exit 1); exit 1; }; }
18509
18510 # Don't try to exec as it changes $[0], causing all sort of problems
18511 # (the dirname of $[0] is not the place where we might find the
18512 # original and so on. Autoconf is especially sensible to this).
18513 . ./$as_me.lineno
18514 # Exit status is that of the last command.
18515 exit
18516}
18517
18518
18519case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18520 *c*,-n*) ECHO_N= ECHO_C='
18521' ECHO_T=' ' ;;
18522 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18523 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18524esac
18525
18526if expr a : '\(a\)' >/dev/null 2>&1; then
18527 as_expr=expr
18528else
18529 as_expr=false
18530fi
18531
18532rm -f conf$$ conf$$.exe conf$$.file
18533echo >conf$$.file
18534if ln -s conf$$.file conf$$ 2>/dev/null; then
18535 # We could just check for DJGPP; but this test a) works b) is more generic
18536 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18537 if test -f conf$$.exe; then
18538 # Don't use ln at all; we don't have any links
18539 as_ln_s='cp -p'
18540 else
18541 as_ln_s='ln -s'
18542 fi
18543elif ln conf$$.file conf$$ 2>/dev/null; then
18544 as_ln_s=ln
18545else
18546 as_ln_s='cp -p'
18547fi
18548rm -f conf$$ conf$$.exe conf$$.file
18549
18550if mkdir -p . 2>/dev/null; then
18551 as_mkdir_p=:
18552else
18553 test -d ./-p && rmdir ./-p
18554 as_mkdir_p=false
18555fi
18556
18557as_executable_p="test -f"
18558
18559# Sed expression to map a string onto a valid CPP name.
18560as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18561
18562# Sed expression to map a string onto a valid variable name.
18563as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18564
18565
18566# IFS
18567# We need space, tab and new line, in precisely that order.
18568as_nl='
18569'
18570IFS=" $as_nl"
18571
18572# CDPATH.
18573$as_unset CDPATH
18574
18575exec 6>&1
18576
18577# Open the log real soon, to keep \$[0] and so on meaningful, and to
18578# report actual input values of CONFIG_FILES etc. instead of their
18579# values after options handling. Logging --version etc. is OK.
18580exec 5>>config.log
18581{
18582 echo
18583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18584## Running $as_me. ##
18585_ASBOX
18586} >&5
18587cat >&5 <<_CSEOF
18588
18589This file was extended by [Stacker] $as_me [1.0], which was
18590generated by GNU Autoconf 2.59. Invocation command line was
18591
18592 CONFIG_FILES = $CONFIG_FILES
18593 CONFIG_HEADERS = $CONFIG_HEADERS
18594 CONFIG_LINKS = $CONFIG_LINKS
18595 CONFIG_COMMANDS = $CONFIG_COMMANDS
18596 $ $0 $@
18597
18598_CSEOF
18599echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18600echo >&5
18601_ACEOF
18602
18603# Files that config.status was made for.
18604if test -n "$ac_config_files"; then
18605 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18606fi
18607
18608if test -n "$ac_config_headers"; then
18609 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18610fi
18611
18612if test -n "$ac_config_links"; then
18613 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18614fi
18615
18616if test -n "$ac_config_commands"; then
18617 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18618fi
18619
18620cat >>$CONFIG_STATUS <<\_ACEOF
18621
18622ac_cs_usage="\
18623\`$as_me' instantiates files from templates according to the
18624current configuration.
18625
18626Usage: $0 [OPTIONS] [FILE]...
18627
18628 -h, --help print this help, then exit
18629 -V, --version print version number, then exit
18630 -q, --quiet do not print progress messages
18631 -d, --debug don't remove temporary files
18632 --recheck update $as_me by reconfiguring in the same conditions
18633 --file=FILE[:TEMPLATE]
18634 instantiate the configuration file FILE
18635
18636Configuration files:
18637$config_files
18638
18639Configuration commands:
18640$config_commands
18641
18642Report bugs to <bug-autoconf@gnu.org>."
18643_ACEOF
18644
18645cat >>$CONFIG_STATUS <<_ACEOF
18646ac_cs_version="\\
18647[Stacker] config.status [1.0]
18648configured by $0, generated by GNU Autoconf 2.59,
18649 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18650
18651Copyright (C) 2003 Free Software Foundation, Inc.
18652This config.status script is free software; the Free Software Foundation
18653gives unlimited permission to copy, distribute and modify it."
18654srcdir=$srcdir
18655_ACEOF
18656
18657cat >>$CONFIG_STATUS <<\_ACEOF
18658# If no file are specified by the user, then we need to provide default
18659# value. By we need to know if files were specified by the user.
18660ac_need_defaults=:
18661while test $# != 0
18662do
18663 case $1 in
18664 --*=*)
18665 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18666 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18667 ac_shift=:
18668 ;;
18669 -*)
18670 ac_option=$1
18671 ac_optarg=$2
18672 ac_shift=shift
18673 ;;
18674 *) # This is not an option, so the user has probably given explicit
18675 # arguments.
18676 ac_option=$1
18677 ac_need_defaults=false;;
18678 esac
18679
18680 case $ac_option in
18681 # Handling of the options.
18682_ACEOF
18683cat >>$CONFIG_STATUS <<\_ACEOF
18684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18685 ac_cs_recheck=: ;;
18686 --version | --vers* | -V )
18687 echo "$ac_cs_version"; exit 0 ;;
18688 --he | --h)
18689 # Conflict between --help and --header
18690 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18691Try \`$0 --help' for more information." >&5
18692echo "$as_me: error: ambiguous option: $1
18693Try \`$0 --help' for more information." >&2;}
18694 { (exit 1); exit 1; }; };;
18695 --help | --hel | -h )
18696 echo "$ac_cs_usage"; exit 0 ;;
18697 --debug | --d* | -d )
18698 debug=: ;;
18699 --file | --fil | --fi | --f )
18700 $ac_shift
18701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18702 ac_need_defaults=false;;
18703 --header | --heade | --head | --hea )
18704 $ac_shift
18705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18706 ac_need_defaults=false;;
18707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18709 ac_cs_silent=: ;;
18710
18711 # This is an error.
18712 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18713Try \`$0 --help' for more information." >&5
18714echo "$as_me: error: unrecognized option: $1
18715Try \`$0 --help' for more information." >&2;}
18716 { (exit 1); exit 1; }; } ;;
18717
18718 *) ac_config_targets="$ac_config_targets $1" ;;
18719
18720 esac
18721 shift
18722done
18723
18724ac_configure_extra_args=
18725
18726if $ac_cs_silent; then
18727 exec 6>/dev/null
18728 ac_configure_extra_args="$ac_configure_extra_args --silent"
18729fi
18730
18731_ACEOF
18732cat >>$CONFIG_STATUS <<_ACEOF
18733if \$ac_cs_recheck; then
18734 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18735 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18736fi
18737
18738_ACEOF
18739
18740cat >>$CONFIG_STATUS <<_ACEOF
18741#
18742# INIT-COMMANDS section.
18743#
18744
18745${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
18746${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
18747${srcdir}/autoconf/mkinstalldirs `dirname lib/compiler/Makefile`
18748${srcdir}/autoconf/mkinstalldirs `dirname lib/runtime/Makefile`
Reid Spencere07d9aa2004-09-05 16:42:30 +000018749${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
Reid Spencer820dab72004-09-04 19:48:50 +000018750${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
18751${srcdir}/autoconf/mkinstalldirs `dirname tools/stkrc/Makefile`
18752
18753_ACEOF
18754
18755
18756
18757cat >>$CONFIG_STATUS <<\_ACEOF
18758for ac_config_target in $ac_config_targets
18759do
18760 case "$ac_config_target" in
18761 # Handling of arguments.
18762 "Makefile.common" ) CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
18763 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18764 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18765 "lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/compiler/Makefile" ;;
18766 "lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/runtime/Makefile" ;;
Reid Spencere07d9aa2004-09-05 16:42:30 +000018767 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
Reid Spencer820dab72004-09-04 19:48:50 +000018768 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18769 "tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/stkrc/Makefile" ;;
18770 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18771echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18772 { (exit 1); exit 1; }; };;
18773 esac
18774done
18775
18776# If the user did not use the arguments to specify the items to instantiate,
18777# then the envvar interface is used. Set only those that are not.
18778# We use the long form for the default assignment because of an extremely
18779# bizarre bug on SunOS 4.1.3.
18780if $ac_need_defaults; then
18781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18783fi
18784
18785# Have a temporary directory for convenience. Make it in the build tree
18786# simply because there is no reason to put it here, and in addition,
18787# creating and moving files from /tmp can sometimes cause problems.
18788# Create a temporary directory, and hook for its removal unless debugging.
18789$debug ||
18790{
18791 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18792 trap '{ (exit 1); exit 1; }' 1 2 13 15
18793}
18794
18795# Create a (secure) tmp directory for tmp files.
18796
18797{
18798 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18799 test -n "$tmp" && test -d "$tmp"
18800} ||
18801{
18802 tmp=./confstat$$-$RANDOM
18803 (umask 077 && mkdir $tmp)
18804} ||
18805{
18806 echo "$me: cannot create a temporary directory in ." >&2
18807 { (exit 1); exit 1; }
18808}
18809
18810_ACEOF
18811
18812cat >>$CONFIG_STATUS <<_ACEOF
18813
18814#
18815# CONFIG_FILES section.
18816#
18817
18818# No need to generate the scripts if there are no CONFIG_FILES.
18819# This happens for instance when ./config.status config.h
18820if test -n "\$CONFIG_FILES"; then
18821 # Protect against being on the right side of a sed subst in config.status.
18822 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18823 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18824s,@SHELL@,$SHELL,;t t
18825s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18826s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18827s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18828s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18829s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18830s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18831s,@exec_prefix@,$exec_prefix,;t t
18832s,@prefix@,$prefix,;t t
18833s,@program_transform_name@,$program_transform_name,;t t
18834s,@bindir@,$bindir,;t t
18835s,@sbindir@,$sbindir,;t t
18836s,@libexecdir@,$libexecdir,;t t
18837s,@datadir@,$datadir,;t t
18838s,@sysconfdir@,$sysconfdir,;t t
18839s,@sharedstatedir@,$sharedstatedir,;t t
18840s,@localstatedir@,$localstatedir,;t t
18841s,@libdir@,$libdir,;t t
18842s,@includedir@,$includedir,;t t
18843s,@oldincludedir@,$oldincludedir,;t t
18844s,@infodir@,$infodir,;t t
18845s,@mandir@,$mandir,;t t
18846s,@build_alias@,$build_alias,;t t
18847s,@host_alias@,$host_alias,;t t
18848s,@target_alias@,$target_alias,;t t
18849s,@DEFS@,$DEFS,;t t
18850s,@ECHO_C@,$ECHO_C,;t t
18851s,@ECHO_N@,$ECHO_N,;t t
18852s,@ECHO_T@,$ECHO_T,;t t
18853s,@LIBS@,$LIBS,;t t
Reid Spencer011f5ca2004-09-15 06:19:53 +000018854s,@build@,$build,;t t
18855s,@build_cpu@,$build_cpu,;t t
18856s,@build_vendor@,$build_vendor,;t t
18857s,@build_os@,$build_os,;t t
18858s,@host@,$host,;t t
18859s,@host_cpu@,$host_cpu,;t t
18860s,@host_vendor@,$host_vendor,;t t
18861s,@host_os@,$host_os,;t t
18862s,@CC@,$CC,;t t
18863s,@CFLAGS@,$CFLAGS,;t t
18864s,@LDFLAGS@,$LDFLAGS,;t t
18865s,@CPPFLAGS@,$CPPFLAGS,;t t
18866s,@ac_ct_CC@,$ac_ct_CC,;t t
18867s,@EXEEXT@,$EXEEXT,;t t
18868s,@OBJEXT@,$OBJEXT,;t t
18869s,@EGREP@,$EGREP,;t t
18870s,@LN_S@,$LN_S,;t t
18871s,@ECHO@,$ECHO,;t t
18872s,@AR@,$AR,;t t
18873s,@ac_ct_AR@,$ac_ct_AR,;t t
18874s,@RANLIB@,$RANLIB,;t t
18875s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18876s,@STRIP@,$STRIP,;t t
18877s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18878s,@CPP@,$CPP,;t t
18879s,@CXX@,$CXX,;t t
18880s,@CXXFLAGS@,$CXXFLAGS,;t t
18881s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18882s,@CXXCPP@,$CXXCPP,;t t
18883s,@F77@,$F77,;t t
18884s,@FFLAGS@,$FFLAGS,;t t
18885s,@ac_ct_F77@,$ac_ct_F77,;t t
18886s,@LIBTOOL@,$LIBTOOL,;t t
18887s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencer820dab72004-09-04 19:48:50 +000018888s,@LLVM_SRC@,$LLVM_SRC,;t t
18889s,@LLVM_OBJ@,$LLVM_OBJ,;t t
18890s,@LIBOBJS@,$LIBOBJS,;t t
18891s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18892CEOF
18893
18894_ACEOF
18895
18896 cat >>$CONFIG_STATUS <<\_ACEOF
18897 # Split the substitutions into bite-sized pieces for seds with
18898 # small command number limits, like on Digital OSF/1 and HP-UX.
18899 ac_max_sed_lines=48
18900 ac_sed_frag=1 # Number of current file.
18901 ac_beg=1 # First line for current file.
18902 ac_end=$ac_max_sed_lines # Line after last line for current file.
18903 ac_more_lines=:
18904 ac_sed_cmds=
18905 while $ac_more_lines; do
18906 if test $ac_beg -gt 1; then
18907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18908 else
18909 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18910 fi
18911 if test ! -s $tmp/subs.frag; then
18912 ac_more_lines=false
18913 else
18914 # The purpose of the label and of the branching condition is to
18915 # speed up the sed processing (if there are no `@' at all, there
18916 # is no need to browse any of the substitutions).
18917 # These are the two extra sed commands mentioned above.
18918 (echo ':t
18919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18920 if test -z "$ac_sed_cmds"; then
18921 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18922 else
18923 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18924 fi
18925 ac_sed_frag=`expr $ac_sed_frag + 1`
18926 ac_beg=$ac_end
18927 ac_end=`expr $ac_end + $ac_max_sed_lines`
18928 fi
18929 done
18930 if test -z "$ac_sed_cmds"; then
18931 ac_sed_cmds=cat
18932 fi
18933fi # test -n "$CONFIG_FILES"
18934
18935_ACEOF
18936cat >>$CONFIG_STATUS <<\_ACEOF
18937for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18939 case $ac_file in
18940 - | *:- | *:-:* ) # input from stdin
18941 cat >$tmp/stdin
18942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18946 * ) ac_file_in=$ac_file.in ;;
18947 esac
18948
18949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18951$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18952 X"$ac_file" : 'X\(//\)[^/]' \| \
18953 X"$ac_file" : 'X\(//\)$' \| \
18954 X"$ac_file" : 'X\(/\)' \| \
18955 . : '\(.\)' 2>/dev/null ||
18956echo X"$ac_file" |
18957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18959 /^X\(\/\/\)$/{ s//\1/; q; }
18960 /^X\(\/\).*/{ s//\1/; q; }
18961 s/.*/./; q'`
18962 { if $as_mkdir_p; then
18963 mkdir -p "$ac_dir"
18964 else
18965 as_dir="$ac_dir"
18966 as_dirs=
18967 while test ! -d "$as_dir"; do
18968 as_dirs="$as_dir $as_dirs"
18969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18971 X"$as_dir" : 'X\(//\)[^/]' \| \
18972 X"$as_dir" : 'X\(//\)$' \| \
18973 X"$as_dir" : 'X\(/\)' \| \
18974 . : '\(.\)' 2>/dev/null ||
18975echo X"$as_dir" |
18976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18978 /^X\(\/\/\)$/{ s//\1/; q; }
18979 /^X\(\/\).*/{ s//\1/; q; }
18980 s/.*/./; q'`
18981 done
18982 test ! -n "$as_dirs" || mkdir $as_dirs
18983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18984echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18985 { (exit 1); exit 1; }; }; }
18986
18987 ac_builddir=.
18988
18989if test "$ac_dir" != .; then
18990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18991 # A "../" for each directory in $ac_dir_suffix.
18992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18993else
18994 ac_dir_suffix= ac_top_builddir=
18995fi
18996
18997case $srcdir in
18998 .) # No --srcdir option. We are building in place.
18999 ac_srcdir=.
19000 if test -z "$ac_top_builddir"; then
19001 ac_top_srcdir=.
19002 else
19003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19004 fi ;;
19005 [\\/]* | ?:[\\/]* ) # Absolute path.
19006 ac_srcdir=$srcdir$ac_dir_suffix;
19007 ac_top_srcdir=$srcdir ;;
19008 *) # Relative path.
19009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19011esac
19012
19013# Do not use `cd foo && pwd` to compute absolute paths, because
19014# the directories may not exist.
19015case `pwd` in
19016.) ac_abs_builddir="$ac_dir";;
19017*)
19018 case "$ac_dir" in
19019 .) ac_abs_builddir=`pwd`;;
19020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19022 esac;;
19023esac
19024case $ac_abs_builddir in
19025.) ac_abs_top_builddir=${ac_top_builddir}.;;
19026*)
19027 case ${ac_top_builddir}. in
19028 .) ac_abs_top_builddir=$ac_abs_builddir;;
19029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19031 esac;;
19032esac
19033case $ac_abs_builddir in
19034.) ac_abs_srcdir=$ac_srcdir;;
19035*)
19036 case $ac_srcdir in
19037 .) ac_abs_srcdir=$ac_abs_builddir;;
19038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19040 esac;;
19041esac
19042case $ac_abs_builddir in
19043.) ac_abs_top_srcdir=$ac_top_srcdir;;
19044*)
19045 case $ac_top_srcdir in
19046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19049 esac;;
19050esac
19051
19052
19053
19054 if test x"$ac_file" != x-; then
19055 { echo "$as_me:$LINENO: creating $ac_file" >&5
19056echo "$as_me: creating $ac_file" >&6;}
19057 rm -f "$ac_file"
19058 fi
19059 # Let's still pretend it is `configure' which instantiates (i.e., don't
19060 # use $as_me), people would be surprised to read:
19061 # /* config.h. Generated by config.status. */
19062 if test x"$ac_file" = x-; then
19063 configure_input=
19064 else
19065 configure_input="$ac_file. "
19066 fi
19067 configure_input=$configure_input"Generated from `echo $ac_file_in |
19068 sed 's,.*/,,'` by configure."
19069
19070 # First look for the input files in the build tree, otherwise in the
19071 # src tree.
19072 ac_file_inputs=`IFS=:
19073 for f in $ac_file_in; do
19074 case $f in
19075 -) echo $tmp/stdin ;;
19076 [\\/$]*)
19077 # Absolute (can't be DOS-style, as IFS=:)
19078 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19079echo "$as_me: error: cannot find input file: $f" >&2;}
19080 { (exit 1); exit 1; }; }
19081 echo "$f";;
19082 *) # Relative
19083 if test -f "$f"; then
19084 # Build tree
19085 echo "$f"
19086 elif test -f "$srcdir/$f"; then
19087 # Source tree
19088 echo "$srcdir/$f"
19089 else
19090 # /dev/null tree
19091 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19092echo "$as_me: error: cannot find input file: $f" >&2;}
19093 { (exit 1); exit 1; }; }
19094 fi;;
19095 esac
19096 done` || { (exit 1); exit 1; }
19097_ACEOF
19098cat >>$CONFIG_STATUS <<_ACEOF
19099 sed "$ac_vpsub
19100$extrasub
19101_ACEOF
19102cat >>$CONFIG_STATUS <<\_ACEOF
19103:t
19104/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19105s,@configure_input@,$configure_input,;t t
19106s,@srcdir@,$ac_srcdir,;t t
19107s,@abs_srcdir@,$ac_abs_srcdir,;t t
19108s,@top_srcdir@,$ac_top_srcdir,;t t
19109s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19110s,@builddir@,$ac_builddir,;t t
19111s,@abs_builddir@,$ac_abs_builddir,;t t
19112s,@top_builddir@,$ac_top_builddir,;t t
19113s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19114" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19115 rm -f $tmp/stdin
19116 if test x"$ac_file" != x-; then
19117 mv $tmp/out $ac_file
19118 else
19119 cat $tmp/out
19120 rm -f $tmp/out
19121 fi
19122
19123done
19124_ACEOF
19125cat >>$CONFIG_STATUS <<\_ACEOF
19126
19127#
19128# CONFIG_COMMANDS section.
19129#
19130for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19131 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19132 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19133 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19134$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19135 X"$ac_dest" : 'X\(//\)[^/]' \| \
19136 X"$ac_dest" : 'X\(//\)$' \| \
19137 X"$ac_dest" : 'X\(/\)' \| \
19138 . : '\(.\)' 2>/dev/null ||
19139echo X"$ac_dest" |
19140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19142 /^X\(\/\/\)$/{ s//\1/; q; }
19143 /^X\(\/\).*/{ s//\1/; q; }
19144 s/.*/./; q'`
19145 { if $as_mkdir_p; then
19146 mkdir -p "$ac_dir"
19147 else
19148 as_dir="$ac_dir"
19149 as_dirs=
19150 while test ! -d "$as_dir"; do
19151 as_dirs="$as_dir $as_dirs"
19152 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19154 X"$as_dir" : 'X\(//\)[^/]' \| \
19155 X"$as_dir" : 'X\(//\)$' \| \
19156 X"$as_dir" : 'X\(/\)' \| \
19157 . : '\(.\)' 2>/dev/null ||
19158echo X"$as_dir" |
19159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19161 /^X\(\/\/\)$/{ s//\1/; q; }
19162 /^X\(\/\).*/{ s//\1/; q; }
19163 s/.*/./; q'`
19164 done
19165 test ! -n "$as_dirs" || mkdir $as_dirs
19166 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19167echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19168 { (exit 1); exit 1; }; }; }
19169
19170 ac_builddir=.
19171
19172if test "$ac_dir" != .; then
19173 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19174 # A "../" for each directory in $ac_dir_suffix.
19175 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19176else
19177 ac_dir_suffix= ac_top_builddir=
19178fi
19179
19180case $srcdir in
19181 .) # No --srcdir option. We are building in place.
19182 ac_srcdir=.
19183 if test -z "$ac_top_builddir"; then
19184 ac_top_srcdir=.
19185 else
19186 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19187 fi ;;
19188 [\\/]* | ?:[\\/]* ) # Absolute path.
19189 ac_srcdir=$srcdir$ac_dir_suffix;
19190 ac_top_srcdir=$srcdir ;;
19191 *) # Relative path.
19192 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19193 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19194esac
19195
19196# Do not use `cd foo && pwd` to compute absolute paths, because
19197# the directories may not exist.
19198case `pwd` in
19199.) ac_abs_builddir="$ac_dir";;
19200*)
19201 case "$ac_dir" in
19202 .) ac_abs_builddir=`pwd`;;
19203 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19204 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19205 esac;;
19206esac
19207case $ac_abs_builddir in
19208.) ac_abs_top_builddir=${ac_top_builddir}.;;
19209*)
19210 case ${ac_top_builddir}. in
19211 .) ac_abs_top_builddir=$ac_abs_builddir;;
19212 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19213 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19214 esac;;
19215esac
19216case $ac_abs_builddir in
19217.) ac_abs_srcdir=$ac_srcdir;;
19218*)
19219 case $ac_srcdir in
19220 .) ac_abs_srcdir=$ac_abs_builddir;;
19221 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19222 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19223 esac;;
19224esac
19225case $ac_abs_builddir in
19226.) ac_abs_top_srcdir=$ac_top_srcdir;;
19227*)
19228 case $ac_top_srcdir in
19229 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19230 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19231 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19232 esac;;
19233esac
19234
19235
19236 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19237echo "$as_me: executing $ac_dest commands" >&6;}
19238 case $ac_dest in
19239 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
19240 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
19241 lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/compiler/Makefile lib/compiler/Makefile ;;
19242 lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/runtime/Makefile lib/runtime/Makefile ;;
Reid Spencere07d9aa2004-09-05 16:42:30 +000019243 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer820dab72004-09-04 19:48:50 +000019244 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
19245 tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/stkrc/Makefile tools/stkrc/Makefile ;;
19246 esac
19247done
19248_ACEOF
19249
19250cat >>$CONFIG_STATUS <<\_ACEOF
19251
19252{ (exit 0); exit 0; }
19253_ACEOF
19254chmod +x $CONFIG_STATUS
19255ac_clean_files=$ac_clean_files_save
19256
19257
19258# configure is writing to config.log, and then calls config.status.
19259# config.status does its own redirection, appending to config.log.
19260# Unfortunately, on DOS this fails, as config.log is still kept open
19261# by configure, so config.status won't be able to write to it; its
19262# output is simply discarded. So we exec the FD to /dev/null,
19263# effectively closing config.log, so it can be properly (re)opened and
19264# appended to by config.status. When coming back to configure, we
19265# need to make the FD available again.
19266if test "$no_create" != yes; then
19267 ac_cs_success=:
19268 ac_config_status_args=
19269 test "$silent" = yes &&
19270 ac_config_status_args="$ac_config_status_args --quiet"
19271 exec 5>/dev/null
19272 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19273 exec 5>>config.log
19274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19275 # would make configure fail if this is the last instruction.
19276 $ac_cs_success || { (exit 1); exit 1; }
19277fi
19278