blob: a87209310012e1612ae6087e6af029a5c4bc4984 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for airbag 0.1.
4#
5# Report bugs to <opensource@google.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
246
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.
mmentovai3261e8b2006-09-06 02:56:44 +0000283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +0000284
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, ...
mmentovai3261e8b2006-09-06 02:56:44 +0000290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
brynercb91a2f2006-08-25 21:14:45 +0000292 (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=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# 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='airbag'
425PACKAGE_TARNAME='airbag'
426PACKAGE_VERSION='0.1'
427PACKAGE_STRING='airbag 0.1'
428PACKAGE_BUGREPORT='opensource@google.com'
429
430ac_unique_file="README"
431# 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
mmentovai425d2562006-08-30 20:05:05 +0000468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE F77 FFLAGS ac_ct_F77 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP LIBTOOL LIBTOOL_DEPS LIBOBJS LTLIBOBJS'
brynercb91a2f2006-08-25 21:14:45 +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
909ac_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
brynercb91a2f2006-08-25 21:14:45 +0000941
942#
943# Report the --help message.
944#
945if test "$ac_init_help" = "long"; then
946 # Omit some internal or obsolete options to make the list less imposing.
947 # This message is too long to be a string in the A/UX 3.1 sh.
948 cat <<_ACEOF
949\`configure' configures airbag 0.1 to adapt to many kinds of systems.
950
951Usage: $0 [OPTION]... [VAR=VALUE]...
952
953To assign environment variables (e.g., CC, CFLAGS...), specify them as
954VAR=VALUE. See below for descriptions of some of the useful variables.
955
956Defaults for the options are specified in brackets.
957
958Configuration:
959 -h, --help display this help and exit
960 --help=short display options specific to this package
961 --help=recursive display the short help of all the included packages
962 -V, --version display version information and exit
963 -q, --quiet, --silent do not print \`checking...' messages
964 --cache-file=FILE cache test results in FILE [disabled]
965 -C, --config-cache alias for \`--cache-file=config.cache'
966 -n, --no-create do not create output files
967 --srcdir=DIR find the sources in DIR [configure dir or \`..']
968
969_ACEOF
970
971 cat <<_ACEOF
972Installation directories:
973 --prefix=PREFIX install architecture-independent files in PREFIX
974 [$ac_default_prefix]
975 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
976 [PREFIX]
977
978By default, \`make install' will install all the files in
979\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981for instance \`--prefix=\$HOME'.
982
983For better control, use the options below.
984
985Fine tuning of the installation directories:
986 --bindir=DIR user executables [EPREFIX/bin]
987 --sbindir=DIR system admin executables [EPREFIX/sbin]
988 --libexecdir=DIR program executables [EPREFIX/libexec]
989 --datadir=DIR read-only architecture-independent data [PREFIX/share]
990 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
991 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
993 --libdir=DIR object code libraries [EPREFIX/lib]
994 --includedir=DIR C header files [PREFIX/include]
995 --oldincludedir=DIR C header files for non-gcc [/usr/include]
996 --infodir=DIR info documentation [PREFIX/info]
997 --mandir=DIR man documentation [PREFIX/man]
998_ACEOF
999
1000 cat <<\_ACEOF
1001
1002Program names:
1003 --program-prefix=PREFIX prepend PREFIX to installed program names
1004 --program-suffix=SUFFIX append SUFFIX to installed program names
1005 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1006
1007System types:
1008 --build=BUILD configure for building on BUILD [guessed]
1009 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010_ACEOF
1011fi
1012
1013if test -n "$ac_init_help"; then
1014 case $ac_init_help in
1015 short | recursive ) echo "Configuration of airbag 0.1:";;
1016 esac
1017 cat <<\_ACEOF
1018
1019Optional Features:
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --disable-dependency-tracking speeds up one-time build
1023 --enable-dependency-tracking do not reject slow dependency extractors
1024 --enable-shared[=PKGS]
1025 build shared libraries [default=yes]
1026 --enable-static[=PKGS]
1027 build static libraries [default=yes]
1028 --enable-fast-install[=PKGS]
1029 optimize for fast installation [default=yes]
1030 --disable-libtool-lock avoid locking (might break parallel builds)
brynercb91a2f2006-08-25 21:14:45 +00001031
1032Optional Packages:
1033 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1034 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1035 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1036 --with-pic try to use only PIC/non-PIC objects [default=use
1037 both]
1038 --with-tags[=TAGS]
1039 include additional configurations [automatic]
1040
1041Some influential environment variables:
1042 CC C compiler command
1043 CFLAGS C compiler flags
1044 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1045 nonstandard directory <lib dir>
1046 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047 headers in a nonstandard directory <include dir>
1048 CPP C preprocessor
1049 CXX C++ compiler command
1050 CXXFLAGS C++ compiler flags
1051 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001052
1053Use these variables to override the choices made by `configure' or to help
1054it to find libraries and programs with nonstandard names/locations.
1055
1056Report bugs to <opensource@google.com>.
1057_ACEOF
1058fi
1059
1060if test "$ac_init_help" = "recursive"; then
1061 # If there are subdirs, report their specific --help.
1062 ac_popdir=`pwd`
1063 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1064 test -d $ac_dir || continue
1065 ac_builddir=.
1066
1067if test "$ac_dir" != .; then
1068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1069 # A "../" for each directory in $ac_dir_suffix.
1070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1071else
1072 ac_dir_suffix= ac_top_builddir=
1073fi
1074
1075case $srcdir in
1076 .) # No --srcdir option. We are building in place.
1077 ac_srcdir=.
1078 if test -z "$ac_top_builddir"; then
1079 ac_top_srcdir=.
1080 else
1081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1082 fi ;;
1083 [\\/]* | ?:[\\/]* ) # Absolute path.
1084 ac_srcdir=$srcdir$ac_dir_suffix;
1085 ac_top_srcdir=$srcdir ;;
1086 *) # Relative path.
1087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1088 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1089esac
1090
1091# Do not use `cd foo && pwd` to compute absolute paths, because
1092# the directories may not exist.
1093case `pwd` in
1094.) ac_abs_builddir="$ac_dir";;
1095*)
1096 case "$ac_dir" in
1097 .) ac_abs_builddir=`pwd`;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1099 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1100 esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_top_builddir=${ac_top_builddir}.;;
1104*)
1105 case ${ac_top_builddir}. in
1106 .) ac_abs_top_builddir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1109 esac;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_srcdir=$ac_srcdir;;
1113*)
1114 case $ac_srcdir in
1115 .) ac_abs_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1118 esac;;
1119esac
1120case $ac_abs_builddir in
1121.) ac_abs_top_srcdir=$ac_top_srcdir;;
1122*)
1123 case $ac_top_srcdir in
1124 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1127 esac;;
1128esac
1129
1130 cd $ac_dir
1131 # Check for guested configure; otherwise get Cygnus style configure.
1132 if test -f $ac_srcdir/configure.gnu; then
1133 echo
1134 $SHELL $ac_srcdir/configure.gnu --help=recursive
1135 elif test -f $ac_srcdir/configure; then
1136 echo
1137 $SHELL $ac_srcdir/configure --help=recursive
1138 elif test -f $ac_srcdir/configure.ac ||
1139 test -f $ac_srcdir/configure.in; then
1140 echo
1141 $ac_configure --help
1142 else
1143 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1144 fi
mmentovai3261e8b2006-09-06 02:56:44 +00001145 cd $ac_popdir
brynercb91a2f2006-08-25 21:14:45 +00001146 done
1147fi
1148
1149test -n "$ac_init_help" && exit 0
1150if $ac_init_version; then
1151 cat <<\_ACEOF
1152airbag configure 0.1
1153generated by GNU Autoconf 2.59
1154
1155Copyright (C) 2003 Free Software Foundation, Inc.
1156This configure script is free software; the Free Software Foundation
1157gives unlimited permission to copy, distribute and modify it.
1158_ACEOF
1159 exit 0
1160fi
1161exec 5>config.log
1162cat >&5 <<_ACEOF
1163This file contains any messages produced by compilers while
1164running configure, to aid debugging if configure makes a mistake.
1165
1166It was created by airbag $as_me 0.1, which was
1167generated by GNU Autoconf 2.59. Invocation command line was
1168
1169 $ $0 $@
1170
1171_ACEOF
1172{
1173cat <<_ASUNAME
1174## --------- ##
1175## Platform. ##
1176## --------- ##
1177
1178hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1179uname -m = `(uname -m) 2>/dev/null || echo unknown`
1180uname -r = `(uname -r) 2>/dev/null || echo unknown`
1181uname -s = `(uname -s) 2>/dev/null || echo unknown`
1182uname -v = `(uname -v) 2>/dev/null || echo unknown`
1183
1184/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1185/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1186
1187/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1188/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1189/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1190hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1191/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1192/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1193/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1194
1195_ASUNAME
1196
1197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1198for as_dir in $PATH
1199do
1200 IFS=$as_save_IFS
1201 test -z "$as_dir" && as_dir=.
1202 echo "PATH: $as_dir"
1203done
1204
1205} >&5
1206
1207cat >&5 <<_ACEOF
1208
1209
1210## ----------- ##
1211## Core tests. ##
1212## ----------- ##
1213
1214_ACEOF
1215
1216
1217# Keep a trace of the command line.
1218# Strip out --no-create and --no-recursion so they do not pile up.
1219# Strip out --silent because we don't want to record it for future runs.
1220# Also quote any args containing shell meta-characters.
1221# Make two passes to allow for proper duplicate-argument suppression.
1222ac_configure_args=
1223ac_configure_args0=
1224ac_configure_args1=
1225ac_sep=
1226ac_must_keep_next=false
1227for ac_pass in 1 2
1228do
1229 for ac_arg
1230 do
1231 case $ac_arg in
1232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 continue ;;
1236 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1237 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1238 esac
1239 case $ac_pass in
1240 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1241 2)
1242 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1243 if test $ac_must_keep_next = true; then
1244 ac_must_keep_next=false # Got value, back to normal.
1245 else
1246 case $ac_arg in
1247 *=* | --config-cache | -C | -disable-* | --disable-* \
1248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1250 | -with-* | --with-* | -without-* | --without-* | --x)
1251 case "$ac_configure_args0 " in
1252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1253 esac
1254 ;;
1255 -* ) ac_must_keep_next=true ;;
1256 esac
1257 fi
1258 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1259 # Get rid of the leading space.
1260 ac_sep=" "
1261 ;;
1262 esac
1263 done
1264done
1265$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1266$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1267
1268# When interrupted or exit'd, cleanup temporary files, and complete
1269# config.log. We remove comments because anyway the quotes in there
1270# would cause problems or look ugly.
1271# WARNING: Be sure not to use single quotes in there, as some shells,
1272# such as our DU 5.0 friend, will then `close' the trap.
1273trap 'exit_status=$?
1274 # Save into config.log some information that might help in debugging.
1275 {
1276 echo
1277
1278 cat <<\_ASBOX
1279## ---------------- ##
1280## Cache variables. ##
1281## ---------------- ##
1282_ASBOX
1283 echo
1284 # The following way of writing the cache mishandles newlines in values,
1285{
1286 (set) 2>&1 |
1287 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1288 *ac_space=\ *)
1289 sed -n \
1290 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1292 ;;
1293 *)
1294 sed -n \
1295 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1296 ;;
1297 esac;
1298}
1299 echo
1300
1301 cat <<\_ASBOX
1302## ----------------- ##
1303## Output variables. ##
1304## ----------------- ##
1305_ASBOX
1306 echo
1307 for ac_var in $ac_subst_vars
1308 do
1309 eval ac_val=$`echo $ac_var`
1310 echo "$ac_var='"'"'$ac_val'"'"'"
1311 done | sort
1312 echo
1313
1314 if test -n "$ac_subst_files"; then
1315 cat <<\_ASBOX
1316## ------------- ##
1317## Output files. ##
1318## ------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_files
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327 fi
1328
1329 if test -s confdefs.h; then
1330 cat <<\_ASBOX
1331## ----------- ##
1332## confdefs.h. ##
1333## ----------- ##
1334_ASBOX
1335 echo
1336 sed "/^$/d" confdefs.h | sort
1337 echo
1338 fi
1339 test "$ac_signal" != 0 &&
1340 echo "$as_me: caught signal $ac_signal"
1341 echo "$as_me: exit $exit_status"
1342 } >&5
1343 rm -f core *.core &&
1344 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1345 exit $exit_status
1346 ' 0
1347for ac_signal in 1 2 13 15; do
1348 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1349done
1350ac_signal=0
1351
1352# confdefs.h avoids OS command line length limits that DEFS can exceed.
1353rm -rf conftest* confdefs.h
1354# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1355echo >confdefs.h
1356
1357# Predefined preprocessor variables.
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_NAME "$PACKAGE_NAME"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_VERSION "$PACKAGE_VERSION"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_STRING "$PACKAGE_STRING"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1381_ACEOF
1382
1383
1384# Let the site file select an alternate cache file if it wants to.
1385# Prefer explicitly selected file to automatically selected ones.
1386if test -z "$CONFIG_SITE"; then
1387 if test "x$prefix" != xNONE; then
1388 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1389 else
1390 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1391 fi
1392fi
1393for ac_site_file in $CONFIG_SITE; do
1394 if test -r "$ac_site_file"; then
1395 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1396echo "$as_me: loading site script $ac_site_file" >&6;}
1397 sed 's/^/| /' "$ac_site_file" >&5
1398 . "$ac_site_file"
1399 fi
1400done
1401
1402if test -r "$cache_file"; then
1403 # Some versions of bash will fail to source /dev/null (special
1404 # files actually), so we avoid doing that.
1405 if test -f "$cache_file"; then
1406 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1407echo "$as_me: loading cache $cache_file" >&6;}
1408 case $cache_file in
1409 [\\/]* | ?:[\\/]* ) . $cache_file;;
1410 *) . ./$cache_file;;
1411 esac
1412 fi
1413else
1414 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1415echo "$as_me: creating cache $cache_file" >&6;}
1416 >$cache_file
1417fi
1418
1419# Check that the precious variables saved in the cache have kept the same
1420# value.
1421ac_cache_corrupted=false
1422for ac_var in `(set) 2>&1 |
1423 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1425 eval ac_new_set=\$ac_env_${ac_var}_set
1426 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1427 eval ac_new_val="\$ac_env_${ac_var}_value"
1428 case $ac_old_set,$ac_new_set in
1429 set,)
1430 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1431echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1432 ac_cache_corrupted=: ;;
1433 ,set)
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1435echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,);;
1438 *)
1439 if test "x$ac_old_val" != "x$ac_new_val"; then
1440 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1441echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1442 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1443echo "$as_me: former value: $ac_old_val" >&2;}
1444 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1445echo "$as_me: current value: $ac_new_val" >&2;}
1446 ac_cache_corrupted=:
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1460 fi
1461done
1462if $ac_cache_corrupted; then
1463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1465 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1466echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
1468fi
1469
1470ac_ext=c
1471ac_cpp='$CPP $CPPFLAGS'
1472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
brynercb91a2f2006-08-25 21:14:45 +00001502
brynercb91a2f2006-08-25 21:14:45 +00001503ac_aux_dir=
mmentovai425d2562006-08-30 20:05:05 +00001504for ac_dir in autotools $srcdir/autotools; do
brynercb91a2f2006-08-25 21:14:45 +00001505 if test -f $ac_dir/install-sh; then
1506 ac_aux_dir=$ac_dir
1507 ac_install_sh="$ac_aux_dir/install-sh -c"
1508 break
1509 elif test -f $ac_dir/install.sh; then
1510 ac_aux_dir=$ac_dir
1511 ac_install_sh="$ac_aux_dir/install.sh -c"
1512 break
1513 elif test -f $ac_dir/shtool; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/shtool install -c"
1516 break
1517 fi
1518done
1519if test -z "$ac_aux_dir"; then
mmentovai425d2562006-08-30 20:05:05 +00001520 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&5
1521echo "$as_me: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001522 { (exit 1); exit 1; }; }
1523fi
1524ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1525ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1526ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1527
mmentovai425d2562006-08-30 20:05:05 +00001528
1529am__api_version="1.9"
brynercb91a2f2006-08-25 21:14:45 +00001530# Find a good install program. We prefer a C program (faster),
1531# so one script is as good as another. But avoid the broken or
1532# incompatible versions:
1533# SysV /etc/install, /usr/sbin/install
1534# SunOS /usr/etc/install
1535# IRIX /sbin/install
1536# AIX /bin/install
1537# AmigaOS /C/install, which installs bootblocks on floppy discs
1538# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1539# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1540# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1541# OS/2's system install, which has a completely different semantic
1542# ./install, which can be erroneously created by make from ./install.sh.
1543echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1544echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1545if test -z "$INSTALL"; then
1546if test "${ac_cv_path_install+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 # Account for people who put trailing slashes in PATH elements.
1555case $as_dir/ in
1556 ./ | .// | /cC/* | \
1557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1558 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1559 /usr/ucb/* ) ;;
1560 *)
1561 # OSF1 and SCO ODT 3.0 have their own names for install.
1562 # Don't use installbsd from OSF since it installs stuff as root
1563 # by default.
1564 for ac_prog in ginstall scoinst install; do
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1567 if test $ac_prog = install &&
1568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569 # AIX install. It has an incompatible calling convention.
1570 :
1571 elif test $ac_prog = install &&
1572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573 # program-specific install script used by HP pwplus--don't use.
1574 :
1575 else
1576 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1577 break 3
1578 fi
1579 fi
1580 done
1581 done
1582 ;;
1583esac
1584done
1585
1586
1587fi
1588 if test "${ac_cv_path_install+set}" = set; then
1589 INSTALL=$ac_cv_path_install
1590 else
1591 # As a last resort, use the slow shell script. We don't cache a
1592 # path for INSTALL within a source directory, because that will
1593 # break other packages using the cache if that directory is
1594 # removed, or if the path is relative.
1595 INSTALL=$ac_install_sh
1596 fi
1597fi
1598echo "$as_me:$LINENO: result: $INSTALL" >&5
1599echo "${ECHO_T}$INSTALL" >&6
1600
1601# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1602# It thinks the first close brace ends the variable substitution.
1603test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1604
1605test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1606
1607test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1608
1609echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1610echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1611# Just in case
1612sleep 1
1613echo timestamp > conftest.file
1614# Do `set' in a subshell so we don't clobber the current shell's
1615# arguments. Must try -L first in case configure is actually a
1616# symlink; some systems play weird games with the mod time of symlinks
1617# (eg FreeBSD returns the mod time of the symlink's containing
1618# directory).
1619if (
1620 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1621 if test "$*" = "X"; then
1622 # -L didn't work.
1623 set X `ls -t $srcdir/configure conftest.file`
1624 fi
1625 rm -f conftest.file
1626 if test "$*" != "X $srcdir/configure conftest.file" \
1627 && test "$*" != "X conftest.file $srcdir/configure"; then
1628
1629 # If neither matched, then we have a broken ls. This can happen
1630 # if, for instance, CONFIG_SHELL is bash and it inherits a
1631 # broken ls alias from the environment. This has actually
1632 # happened. Such a system could not be considered "sane".
1633 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1634alias in your environment" >&5
1635echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1636alias in your environment" >&2;}
1637 { (exit 1); exit 1; }; }
1638 fi
1639
1640 test "$2" = conftest.file
1641 )
1642then
1643 # Ok.
1644 :
1645else
1646 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1647Check your system clock" >&5
1648echo "$as_me: error: newly created file is older than distributed files!
1649Check your system clock" >&2;}
1650 { (exit 1); exit 1; }; }
1651fi
1652echo "$as_me:$LINENO: result: yes" >&5
1653echo "${ECHO_T}yes" >&6
1654test "$program_prefix" != NONE &&
1655 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1656# Use a double $ so make ignores it.
1657test "$program_suffix" != NONE &&
1658 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1659# Double any \ or $. echo might interpret backslashes.
1660# By default was `s,x,x', remove it if useless.
1661cat <<\_ACEOF >conftest.sed
1662s/[\\$]/&&/g;s/;s,x,x,$//
1663_ACEOF
1664program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1665rm conftest.sed
1666
1667# expand $ac_aux_dir to an absolute path
1668am_aux_dir=`cd $ac_aux_dir && pwd`
1669
1670test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1671# Use eval to expand $SHELL
1672if eval "$MISSING --run true"; then
1673 am_missing_run="$MISSING --run "
1674else
1675 am_missing_run=
1676 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1677echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1678fi
1679
1680if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1681 # We used to keeping the `.' as first argument, in order to
1682 # allow $(mkdir_p) to be used without argument. As in
1683 # $(mkdir_p) $(somedir)
1684 # where $(somedir) is conditionally defined. However this is wrong
1685 # for two reasons:
1686 # 1. if the package is installed by a user who cannot write `.'
1687 # make install will fail,
1688 # 2. the above comment should most certainly read
1689 # $(mkdir_p) $(DESTDIR)$(somedir)
1690 # so it does not work when $(somedir) is undefined and
1691 # $(DESTDIR) is not.
1692 # To support the latter case, we have to write
1693 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1694 # so the `.' trick is pointless.
1695 mkdir_p='mkdir -p --'
1696else
1697 # On NextStep and OpenStep, the `mkdir' command does not
1698 # recognize any option. It will interpret all options as
1699 # directories to create, and then abort because `.' already
1700 # exists.
1701 for d in ./-p ./--version;
1702 do
1703 test -d $d && rmdir $d
1704 done
1705 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1706 if test -f "$ac_aux_dir/mkinstalldirs"; then
1707 mkdir_p='$(mkinstalldirs)'
1708 else
1709 mkdir_p='$(install_sh) -d'
1710 fi
1711fi
1712
1713for ac_prog in gawk mawk nawk awk
1714do
1715 # Extract the first word of "$ac_prog", so it can be a program name with args.
1716set dummy $ac_prog; ac_word=$2
1717echo "$as_me:$LINENO: checking for $ac_word" >&5
1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719if test "${ac_cv_prog_AWK+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722 if test -n "$AWK"; then
1723 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1724else
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_AWK="$ac_prog"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 break 2
1735 fi
1736done
1737done
1738
1739fi
1740fi
1741AWK=$ac_cv_prog_AWK
1742if test -n "$AWK"; then
1743 echo "$as_me:$LINENO: result: $AWK" >&5
1744echo "${ECHO_T}$AWK" >&6
1745else
1746 echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6
1748fi
1749
1750 test -n "$AWK" && break
1751done
1752
1753echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1754echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1755set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1756if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759 cat >conftest.make <<\_ACEOF
1760all:
1761 @echo 'ac_maketemp="$(MAKE)"'
1762_ACEOF
1763# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1764eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1765if test -n "$ac_maketemp"; then
1766 eval ac_cv_prog_make_${ac_make}_set=yes
1767else
1768 eval ac_cv_prog_make_${ac_make}_set=no
1769fi
1770rm -f conftest.make
1771fi
1772if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1773 echo "$as_me:$LINENO: result: yes" >&5
1774echo "${ECHO_T}yes" >&6
1775 SET_MAKE=
1776else
1777 echo "$as_me:$LINENO: result: no" >&5
1778echo "${ECHO_T}no" >&6
1779 SET_MAKE="MAKE=${MAKE-make}"
1780fi
1781
1782rm -rf .tst 2>/dev/null
1783mkdir .tst 2>/dev/null
1784if test -d .tst; then
1785 am__leading_dot=.
1786else
1787 am__leading_dot=_
1788fi
1789rmdir .tst 2>/dev/null
1790
1791# test to see if srcdir already configured
1792if test "`cd $srcdir && pwd`" != "`pwd`" &&
1793 test -f $srcdir/config.status; then
1794 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1795echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1796 { (exit 1); exit 1; }; }
1797fi
1798
1799# test whether we have cygpath
1800if test -z "$CYGPATH_W"; then
1801 if (cygpath --version) >/dev/null 2>/dev/null; then
1802 CYGPATH_W='cygpath -w'
1803 else
1804 CYGPATH_W=echo
1805 fi
1806fi
1807
1808
1809# Define the identity of the package.
1810 PACKAGE='airbag'
1811 VERSION='0.1'
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE "$PACKAGE"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define VERSION "$VERSION"
1821_ACEOF
1822
1823# Some tools Automake needs.
1824
1825ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1826
1827
1828AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1829
1830
1831AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1832
1833
1834AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1835
1836
1837MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1838
1839install_sh=${install_sh-"$am_aux_dir/install-sh"}
1840
1841# Installed binaries are usually stripped using `strip' when the user
1842# run `make install-strip'. However `strip' might not be the right
1843# tool to use in cross-compilation environments, therefore Automake
1844# will honor the `STRIP' environment variable to overrule this program.
1845if test "$cross_compiling" != no; then
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1848set dummy ${ac_tool_prefix}strip; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_STRIP+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854 if test -n "$STRIP"; then
1855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
1869done
1870
1871fi
1872fi
1873STRIP=$ac_cv_prog_STRIP
1874if test -n "$STRIP"; then
1875 echo "$as_me:$LINENO: result: $STRIP" >&5
1876echo "${ECHO_T}$STRIP" >&6
1877else
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882fi
1883if test -z "$ac_cv_prog_STRIP"; then
1884 ac_ct_STRIP=$STRIP
1885 # Extract the first word of "strip", so it can be a program name with args.
1886set dummy strip; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892 if test -n "$ac_ct_STRIP"; then
1893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_STRIP="strip"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1905 fi
1906done
1907done
1908
1909 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1910fi
1911fi
1912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1913if test -n "$ac_ct_STRIP"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1915echo "${ECHO_T}$ac_ct_STRIP" >&6
1916else
1917 echo "$as_me:$LINENO: result: no" >&5
1918echo "${ECHO_T}no" >&6
1919fi
1920
1921 STRIP=$ac_ct_STRIP
1922else
1923 STRIP="$ac_cv_prog_STRIP"
1924fi
1925
1926fi
1927INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1928
1929# We need awk for the "check" target. The system "awk" is bad on
1930# some platforms.
1931# Always define AMTAR for backward compatibility.
1932
1933AMTAR=${AMTAR-"${am_missing_run}tar"}
1934
1935am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1936
1937
1938
1939
1940
1941 ac_config_headers="$ac_config_headers src/config.h"
1942
1943
brynercb91a2f2006-08-25 21:14:45 +00001944ac_ext=c
1945ac_cpp='$CPP $CPPFLAGS'
1946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949if test -n "$ac_tool_prefix"; then
1950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1951set dummy ${ac_tool_prefix}gcc; ac_word=$2
1952echo "$as_me:$LINENO: checking for $ac_word" >&5
1953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1959else
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1970 fi
1971done
1972done
1973
1974fi
1975fi
1976CC=$ac_cv_prog_CC
1977if test -n "$CC"; then
1978 echo "$as_me:$LINENO: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6
1980else
1981 echo "$as_me:$LINENO: result: no" >&5
1982echo "${ECHO_T}no" >&6
1983fi
1984
1985fi
1986if test -z "$ac_cv_prog_CC"; then
1987 ac_ct_CC=$CC
1988 # Extract the first word of "gcc", so it can be a program name with args.
1989set dummy gcc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995 if test -n "$ac_ct_CC"; then
1996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997else
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005 ac_cv_prog_ac_ct_CC="gcc"
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 break 2
2008 fi
2009done
2010done
2011
2012fi
2013fi
2014ac_ct_CC=$ac_cv_prog_ac_ct_CC
2015if test -n "$ac_ct_CC"; then
2016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2017echo "${ECHO_T}$ac_ct_CC" >&6
2018else
2019 echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023 CC=$ac_ct_CC
2024else
2025 CC="$ac_cv_prog_CC"
2026fi
2027
2028if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2031set dummy ${ac_tool_prefix}cc; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_CC="${ac_tool_prefix}cc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2050 fi
2051done
2052done
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058 echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
2060else
2061 echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065fi
2066if test -z "$ac_cv_prog_CC"; then
2067 ac_ct_CC=$CC
2068 # Extract the first word of "cc", so it can be a program name with args.
2069set dummy cc; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085 ac_cv_prog_ac_ct_CC="cc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2088 fi
2089done
2090done
2091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6
2098else
2099 echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103 CC=$ac_ct_CC
2104else
2105 CC="$ac_cv_prog_CC"
2106fi
2107
2108fi
2109if test -z "$CC"; then
2110 # Extract the first word of "cc", so it can be a program name with args.
2111set dummy cc; ac_word=$2
2112echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119else
2120 ac_prog_rejected=no
2121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122for as_dir in $PATH
2123do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2129 ac_prog_rejected=yes
2130 continue
2131 fi
2132 ac_cv_prog_CC="cc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2135 fi
2136done
2137done
2138
2139if test $ac_prog_rejected = yes; then
2140 # We found a bogon in the path, so make sure we never use it.
2141 set dummy $ac_cv_prog_CC
2142 shift
2143 if test $# != 0; then
2144 # We chose a different compiler from the bogus one.
2145 # However, it has the same basename, so the bogon will be chosen
2146 # first if we set CC to just the basename; use the full file name.
2147 shift
2148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2149 fi
2150fi
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
2155 echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6
2157else
2158 echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6
2160fi
2161
2162fi
2163if test -z "$CC"; then
2164 if test -n "$ac_tool_prefix"; then
2165 for ac_prog in cl
2166 do
2167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176else
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2187 fi
2188done
2189done
2190
2191fi
2192fi
2193CC=$ac_cv_prog_CC
2194if test -n "$CC"; then
2195 echo "$as_me:$LINENO: result: $CC" >&5
2196echo "${ECHO_T}$CC" >&6
2197else
2198 echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6
2200fi
2201
2202 test -n "$CC" && break
2203 done
2204fi
2205if test -z "$CC"; then
2206 ac_ct_CC=$CC
2207 for ac_prog in cl
2208do
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210set dummy $ac_prog; ac_word=$2
2211echo "$as_me:$LINENO: checking for $ac_word" >&5
2212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216 if test -n "$ac_ct_CC"; then
2217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2218else
2219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220for as_dir in $PATH
2221do
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226 ac_cv_prog_ac_ct_CC="$ac_prog"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2229 fi
2230done
2231done
2232
2233fi
2234fi
2235ac_ct_CC=$ac_cv_prog_ac_ct_CC
2236if test -n "$ac_ct_CC"; then
2237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238echo "${ECHO_T}$ac_ct_CC" >&6
2239else
2240 echo "$as_me:$LINENO: result: no" >&5
2241echo "${ECHO_T}no" >&6
2242fi
2243
2244 test -n "$ac_ct_CC" && break
2245done
2246
2247 CC=$ac_ct_CC
2248fi
2249
2250fi
2251
2252
2253test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: no acceptable C compiler found in \$PATH
2256See \`config.log' for more details." >&2;}
2257 { (exit 1); exit 1; }; }
2258
2259# Provide some information about the compiler.
2260echo "$as_me:$LINENO:" \
2261 "checking for C compiler version" >&5
2262ac_compiler=`set X $ac_compile; echo $2`
2263{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2264 (eval $ac_compiler --version </dev/null >&5) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2269 (eval $ac_compiler -v </dev/null >&5) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2273{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2274 (eval $ac_compiler -V </dev/null >&5) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2278
2279cat >conftest.$ac_ext <<_ACEOF
2280/* confdefs.h. */
2281_ACEOF
2282cat confdefs.h >>conftest.$ac_ext
2283cat >>conftest.$ac_ext <<_ACEOF
2284/* end confdefs.h. */
2285
2286int
2287main ()
2288{
2289
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294ac_clean_files_save=$ac_clean_files
2295ac_clean_files="$ac_clean_files a.out a.exe b.out"
2296# Try to create an executable without -o first, disregard a.out.
2297# It will help us diagnose broken compilers, and finding out an intuition
2298# of exeext.
2299echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2300echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2301ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2302if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2303 (eval $ac_link_default) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; then
2307 # Find the output, starting from the most likely. This scheme is
2308# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2309# resort.
2310
2311# Be careful to initialize this variable, since it used to be cached.
2312# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2313ac_cv_exeext=
2314# b.out is created by i960 compilers.
2315for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2316do
2317 test -f "$ac_file" || continue
2318 case $ac_file in
2319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2320 ;;
2321 conftest.$ac_ext )
2322 # This is the source file.
2323 ;;
2324 [ab].out )
2325 # We found the default executable, but exeext='' is most
2326 # certainly right.
2327 break;;
2328 *.* )
2329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2330 # FIXME: I believe we export ac_cv_exeext for Libtool,
2331 # but it would be cool to find out if it's true. Does anybody
2332 # maintain Libtool? --akim.
2333 export ac_cv_exeext
2334 break;;
2335 * )
2336 break;;
2337 esac
2338done
2339else
2340 echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2344See \`config.log' for more details." >&5
2345echo "$as_me: error: C compiler cannot create executables
2346See \`config.log' for more details." >&2;}
2347 { (exit 77); exit 77; }; }
2348fi
2349
2350ac_exeext=$ac_cv_exeext
2351echo "$as_me:$LINENO: result: $ac_file" >&5
2352echo "${ECHO_T}$ac_file" >&6
2353
2354# Check the compiler produces executables we can run. If not, either
2355# the compiler is broken, or we cross compile.
2356echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2357echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2358# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2359# If not cross compiling, check that we can run a simple program.
2360if test "$cross_compiling" != yes; then
2361 if { ac_try='./$ac_file'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 cross_compiling=no
2368 else
2369 if test "$cross_compiling" = maybe; then
2370 cross_compiling=yes
2371 else
2372 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2373If you meant to cross compile, use \`--host'.
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: cannot run C compiled programs.
2376If you meant to cross compile, use \`--host'.
2377See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2379 fi
2380 fi
2381fi
2382echo "$as_me:$LINENO: result: yes" >&5
2383echo "${ECHO_T}yes" >&6
2384
2385rm -f a.out a.exe conftest$ac_cv_exeext b.out
2386ac_clean_files=$ac_clean_files_save
2387# Check the compiler produces executables we can run. If not, either
2388# the compiler is broken, or we cross compile.
2389echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2390echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2391echo "$as_me:$LINENO: result: $cross_compiling" >&5
2392echo "${ECHO_T}$cross_compiling" >&6
2393
2394echo "$as_me:$LINENO: checking for suffix of executables" >&5
2395echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; then
2401 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2402# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2403# work properly (i.e., refer to `conftest.exe'), while it won't with
2404# `rm'.
2405for ac_file in conftest.exe conftest conftest.*; do
2406 test -f "$ac_file" || continue
2407 case $ac_file in
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2409 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 export ac_cv_exeext
2411 break;;
2412 * ) break;;
2413 esac
2414done
2415else
2416 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2417See \`config.log' for more details." >&5
2418echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2419See \`config.log' for more details." >&2;}
2420 { (exit 1); exit 1; }; }
2421fi
2422
2423rm -f conftest$ac_cv_exeext
2424echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2425echo "${ECHO_T}$ac_cv_exeext" >&6
2426
2427rm -f conftest.$ac_ext
2428EXEEXT=$ac_cv_exeext
2429ac_exeext=$EXEEXT
2430echo "$as_me:$LINENO: checking for suffix of object files" >&5
2431echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2432if test "${ac_cv_objext+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435 cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h. */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h. */
2441
2442int
2443main ()
2444{
2445
2446 ;
2447 return 0;
2448}
2449_ACEOF
2450rm -f conftest.o conftest.obj
2451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2457 case $ac_file in
2458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2460 break;;
2461 esac
2462done
2463else
2464 echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2468See \`config.log' for more details." >&5
2469echo "$as_me: error: cannot compute suffix of object files: cannot compile
2470See \`config.log' for more details." >&2;}
2471 { (exit 1); exit 1; }; }
2472fi
2473
2474rm -f conftest.$ac_cv_objext conftest.$ac_ext
2475fi
2476echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2477echo "${ECHO_T}$ac_cv_objext" >&6
2478OBJEXT=$ac_cv_objext
2479ac_objext=$OBJEXT
2480echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2481echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2482if test "${ac_cv_c_compiler_gnu+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
2491
2492int
2493main ()
2494{
2495#ifndef __GNUC__
2496 choke me
2497#endif
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503rm -f conftest.$ac_objext
2504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2506 ac_status=$?
2507 grep -v '^ *+' conftest.er1 >conftest.err
2508 rm -f conftest.er1
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00002512 { ac_try='test -z "$ac_c_werror_flag"
2513 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2525 ac_compiler_gnu=yes
2526else
2527 echo "$as_me: failed program was:" >&5
2528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530ac_compiler_gnu=no
2531fi
2532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2533ac_cv_c_compiler_gnu=$ac_compiler_gnu
2534
2535fi
2536echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2537echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2538GCC=`test $ac_compiler_gnu = yes && echo yes`
2539ac_test_CFLAGS=${CFLAGS+set}
2540ac_save_CFLAGS=$CFLAGS
2541CFLAGS="-g"
2542echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2543echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2544if test "${ac_cv_prog_cc_g+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547 cat >conftest.$ac_ext <<_ACEOF
2548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h. */
2553
2554int
2555main ()
2556{
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562rm -f conftest.$ac_objext
2563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00002571 { ac_try='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_cv_prog_cc_g=yes
2585else
2586 echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589ac_cv_prog_cc_g=no
2590fi
2591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592fi
2593echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2594echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2595if test "$ac_test_CFLAGS" = set; then
2596 CFLAGS=$ac_save_CFLAGS
2597elif test $ac_cv_prog_cc_g = yes; then
2598 if test "$GCC" = yes; then
2599 CFLAGS="-g -O2"
2600 else
2601 CFLAGS="-g"
2602 fi
2603else
2604 if test "$GCC" = yes; then
2605 CFLAGS="-O2"
2606 else
2607 CFLAGS=
2608 fi
2609fi
2610echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2611echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2612if test "${ac_cv_prog_cc_stdc+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615 ac_cv_prog_cc_stdc=no
2616ac_save_CC=$CC
2617cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h. */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h. */
2623#include <stdarg.h>
2624#include <stdio.h>
2625#include <sys/types.h>
2626#include <sys/stat.h>
2627/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2628struct buf { int x; };
2629FILE * (*rcsopen) (struct buf *, struct stat *, int);
2630static char *e (p, i)
2631 char **p;
2632 int i;
2633{
2634 return p[i];
2635}
2636static char *f (char * (*g) (char **, int), char **p, ...)
2637{
2638 char *s;
2639 va_list v;
2640 va_start (v,p);
2641 s = g (p, va_arg (v,int));
2642 va_end (v);
2643 return s;
2644}
2645
2646/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2647 function prototypes and stuff, but not '\xHH' hex character constants.
2648 These don't provoke an error unfortunately, instead are silently treated
2649 as 'x'. The following induces an error, until -std1 is added to get
2650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2651 array size at least. It's necessary to write '\x00'==0 to get something
2652 that's true only with -std1. */
2653int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2654
2655int test (int i, double x);
2656struct s1 {int (*f) (int a);};
2657struct s2 {int (*f) (double a);};
2658int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2659int argc;
2660char **argv;
2661int
2662main ()
2663{
2664return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669# Don't try gcc -ansi; that turns off useful extensions and
2670# breaks some systems' header files.
2671# AIX -qlanglvl=ansi
2672# Ultrix and OSF/1 -std1
2673# HP-UX 10.20 and later -Ae
2674# HP-UX older versions -Aa -D_HPUX_SOURCE
2675# SVR4 -Xc -D__EXTENSIONS__
2676for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2677do
2678 CC="$ac_save_CC $ac_arg"
2679 rm -f conftest.$ac_objext
2680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>conftest.er1
2682 ac_status=$?
2683 grep -v '^ *+' conftest.er1 >conftest.err
2684 rm -f conftest.er1
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00002688 { ac_try='test -z "$ac_c_werror_flag"
2689 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 ac_cv_prog_cc_stdc=$ac_arg
2702break
2703else
2704 echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707fi
2708rm -f conftest.err conftest.$ac_objext
2709done
2710rm -f conftest.$ac_ext conftest.$ac_objext
2711CC=$ac_save_CC
2712
2713fi
2714
2715case "x$ac_cv_prog_cc_stdc" in
2716 x|xno)
2717 echo "$as_me:$LINENO: result: none needed" >&5
2718echo "${ECHO_T}none needed" >&6 ;;
2719 *)
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2721echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2722 CC="$CC $ac_cv_prog_cc_stdc" ;;
2723esac
2724
2725# Some people use a C++ compiler to compile C. Since we use `exit',
2726# in C++ we need to declare it. In case someone uses the same compiler
2727# for both compiling C and C++ we need to have the C++ compiler decide
2728# the declaration of exit, since it's the most demanding environment.
2729cat >conftest.$ac_ext <<_ACEOF
2730#ifndef __cplusplus
2731 choke me
2732#endif
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00002743 { ac_try='test -z "$ac_c_werror_flag"
2744 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 for ac_declaration in \
2757 '' \
2758 'extern "C" void std::exit (int) throw (); using std::exit;' \
2759 'extern "C" void std::exit (int); using std::exit;' \
2760 'extern "C" void exit (int) throw ();' \
2761 'extern "C" void exit (int);' \
2762 'void exit (int);'
2763do
2764 cat >conftest.$ac_ext <<_ACEOF
2765/* confdefs.h. */
2766_ACEOF
2767cat confdefs.h >>conftest.$ac_ext
2768cat >>conftest.$ac_ext <<_ACEOF
2769/* end confdefs.h. */
2770$ac_declaration
2771#include <stdlib.h>
2772int
2773main ()
2774{
2775exit (42);
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780rm -f conftest.$ac_objext
2781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00002789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 :
2803else
2804 echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807continue
2808fi
2809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810 cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h. */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h. */
2816$ac_declaration
2817int
2818main ()
2819{
2820exit (42);
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825rm -f conftest.$ac_objext
2826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00002834 { ac_try='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00002836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 break
2848else
2849 echo "$as_me: failed program was:" >&5
2850sed 's/^/| /' conftest.$ac_ext >&5
2851
2852fi
2853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854done
2855rm -f conftest*
2856if test -n "$ac_declaration"; then
2857 echo '#ifdef __cplusplus' >>confdefs.h
2858 echo $ac_declaration >>confdefs.h
2859 echo '#endif' >>confdefs.h
2860fi
2861
2862else
2863 echo "$as_me: failed program was:" >&5
2864sed 's/^/| /' conftest.$ac_ext >&5
2865
2866fi
2867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868ac_ext=c
2869ac_cpp='$CPP $CPPFLAGS'
2870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873DEPDIR="${am__leading_dot}deps"
2874
2875 ac_config_commands="$ac_config_commands depfiles"
2876
2877
2878am_make=${MAKE-make}
2879cat > confinc << 'END'
2880am__doit:
2881 @echo done
2882.PHONY: am__doit
2883END
2884# If we don't find an include directive, just comment out the code.
2885echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2886echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2887am__include="#"
2888am__quote=
2889_am_result=none
2890# First try GNU make style include.
2891echo "include confinc" > confmf
2892# We grep out `Entering directory' and `Leaving directory'
2893# messages which can occur if `w' ends up in MAKEFLAGS.
2894# In particular we don't look at `^make:' because GNU make might
2895# be invoked under some other name (usually "gmake"), in which
2896# case it prints its new name instead of `make'.
2897if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2898 am__include=include
2899 am__quote=
2900 _am_result=GNU
2901fi
2902# Now try BSD make style include.
2903if test "$am__include" = "#"; then
2904 echo '.include "confinc"' > confmf
2905 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2906 am__include=.include
2907 am__quote="\""
2908 _am_result=BSD
2909 fi
2910fi
2911
2912
2913echo "$as_me:$LINENO: result: $_am_result" >&5
2914echo "${ECHO_T}$_am_result" >&6
2915rm -f confinc confmf
2916
2917# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2918if test "${enable_dependency_tracking+set}" = set; then
2919 enableval="$enable_dependency_tracking"
2920
2921fi;
2922if test "x$enable_dependency_tracking" != xno; then
2923 am_depcomp="$ac_aux_dir/depcomp"
2924 AMDEPBACKSLASH='\'
2925fi
2926
2927
2928if test "x$enable_dependency_tracking" != xno; then
2929 AMDEP_TRUE=
2930 AMDEP_FALSE='#'
2931else
2932 AMDEP_TRUE='#'
2933 AMDEP_FALSE=
2934fi
2935
2936
2937
2938
2939depcc="$CC" am_compiler_list=
2940
2941echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2942echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2943if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2947 # We make a subdir and do the tests there. Otherwise we can end up
2948 # making bogus files that we don't know about and never remove. For
2949 # instance it was reported that on HP-UX the gcc test will end up
2950 # making a dummy file named `D' -- because `-MD' means `put the output
2951 # in D'.
2952 mkdir conftest.dir
2953 # Copy depcomp to subdir because otherwise we won't find it if we're
2954 # using a relative directory.
2955 cp "$am_depcomp" conftest.dir
2956 cd conftest.dir
2957 # We will build objects and dependencies in a subdirectory because
2958 # it helps to detect inapplicable dependency modes. For instance
2959 # both Tru64's cc and ICC support -MD to output dependencies as a
2960 # side effect of compilation, but ICC will put the dependencies in
2961 # the current directory while Tru64 will put them in the object
2962 # directory.
2963 mkdir sub
2964
2965 am_cv_CC_dependencies_compiler_type=none
2966 if test "$am_compiler_list" = ""; then
2967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2968 fi
2969 for depmode in $am_compiler_list; do
2970 # Setup a source with many dependencies, because some compilers
2971 # like to wrap large dependency lists on column 80 (with \), and
2972 # we should not choose a depcomp mode which is confused by this.
2973 #
2974 # We need to recreate these files for each test, as the compiler may
2975 # overwrite some of them when testing with obscure command lines.
2976 # This happens at least with the AIX C compiler.
2977 : > sub/conftest.c
2978 for i in 1 2 3 4 5 6; do
2979 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2980 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2981 # Solaris 8's {/usr,}/bin/sh.
2982 touch sub/conftst$i.h
2983 done
2984 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2985
2986 case $depmode in
2987 nosideeffect)
2988 # after this tag, mechanisms are not by side-effect, so they'll
2989 # only be used when explicitly requested
2990 if test "x$enable_dependency_tracking" = xyes; then
2991 continue
2992 else
2993 break
2994 fi
2995 ;;
2996 none) break ;;
2997 esac
2998 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2999 # mode. It turns out that the SunPro C++ compiler does not properly
3000 # handle `-M -o', and we need to detect this.
3001 if depmode=$depmode \
3002 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3004 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3005 >/dev/null 2>conftest.err &&
3006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3007 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3009 # icc doesn't choke on unknown options, it will just issue warnings
3010 # or remarks (even with -Werror). So we grep stderr for any message
3011 # that says an option was ignored or not supported.
3012 # When given -MP, icc 7.0 and 7.1 complain thusly:
3013 # icc: Command line warning: ignoring option '-M'; no argument required
3014 # The diagnosis changed in icc 8.0:
3015 # icc: Command line remark: option '-MP' not supported
3016 if (grep 'ignoring option' conftest.err ||
3017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3018 am_cv_CC_dependencies_compiler_type=$depmode
3019 break
3020 fi
3021 fi
3022 done
3023
3024 cd ..
3025 rm -rf conftest.dir
3026else
3027 am_cv_CC_dependencies_compiler_type=none
3028fi
3029
3030fi
3031echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3032echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3033CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3034
3035
3036
3037if
3038 test "x$enable_dependency_tracking" != xno \
3039 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3040 am__fastdepCC_TRUE=
3041 am__fastdepCC_FALSE='#'
3042else
3043 am__fastdepCC_TRUE='#'
3044 am__fastdepCC_FALSE=
3045fi
3046
3047
3048ac_ext=c
3049ac_cpp='$CPP $CPPFLAGS'
3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3054echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3055# On Suns, sometimes $CPP names a directory.
3056if test -n "$CPP" && test -d "$CPP"; then
3057 CPP=
3058fi
3059if test -z "$CPP"; then
3060 if test "${ac_cv_prog_CPP+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 # Double quotes because CPP needs to be expanded
3064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3065 do
3066 ac_preproc_ok=false
3067for ac_c_preproc_warn_flag in '' yes
3068do
3069 # Use a header file that comes with gcc, so configuring glibc
3070 # with a fresh cross-compiler works.
3071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072 # <limits.h> exists even on freestanding compilers.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp. "Syntax error" is here to catch this case.
3075 cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h. */
3081#ifdef __STDC__
3082# include <limits.h>
3083#else
3084# include <assert.h>
3085#endif
3086 Syntax error
3087_ACEOF
3088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } >/dev/null; then
3096 if test -s conftest.err; then
3097 ac_cpp_err=$ac_c_preproc_warn_flag
3098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3099 else
3100 ac_cpp_err=
3101 fi
3102else
3103 ac_cpp_err=yes
3104fi
3105if test -z "$ac_cpp_err"; then
3106 :
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 # Broken: fails on valid input.
3112continue
3113fi
3114rm -f conftest.err conftest.$ac_ext
3115
3116 # OK, works on sane cases. Now check whether non-existent headers
3117 # can be detected and how.
3118 cat >conftest.$ac_ext <<_ACEOF
3119/* confdefs.h. */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h. */
3124#include <ac_nonexistent.h>
3125_ACEOF
3126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } >/dev/null; then
3134 if test -s conftest.err; then
3135 ac_cpp_err=$ac_c_preproc_warn_flag
3136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3137 else
3138 ac_cpp_err=
3139 fi
3140else
3141 ac_cpp_err=yes
3142fi
3143if test -z "$ac_cpp_err"; then
3144 # Broken: success on invalid input.
3145continue
3146else
3147 echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 # Passes both tests.
3151ac_preproc_ok=:
3152break
3153fi
3154rm -f conftest.err conftest.$ac_ext
3155
3156done
3157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158rm -f conftest.err conftest.$ac_ext
3159if $ac_preproc_ok; then
3160 break
3161fi
3162
3163 done
3164 ac_cv_prog_CPP=$CPP
3165
3166fi
3167 CPP=$ac_cv_prog_CPP
3168else
3169 ac_cv_prog_CPP=$CPP
3170fi
3171echo "$as_me:$LINENO: result: $CPP" >&5
3172echo "${ECHO_T}$CPP" >&6
3173ac_preproc_ok=false
3174for ac_c_preproc_warn_flag in '' yes
3175do
3176 # Use a header file that comes with gcc, so configuring glibc
3177 # with a fresh cross-compiler works.
3178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3179 # <limits.h> exists even on freestanding compilers.
3180 # On the NeXT, cc -E runs the code through the compiler's parser,
3181 # not just through cpp. "Syntax error" is here to catch this case.
3182 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h. */
3188#ifdef __STDC__
3189# include <limits.h>
3190#else
3191# include <assert.h>
3192#endif
3193 Syntax error
3194_ACEOF
3195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } >/dev/null; then
3203 if test -s conftest.err; then
3204 ac_cpp_err=$ac_c_preproc_warn_flag
3205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3206 else
3207 ac_cpp_err=
3208 fi
3209else
3210 ac_cpp_err=yes
3211fi
3212if test -z "$ac_cpp_err"; then
3213 :
3214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218 # Broken: fails on valid input.
3219continue
3220fi
3221rm -f conftest.err conftest.$ac_ext
3222
3223 # OK, works on sane cases. Now check whether non-existent headers
3224 # can be detected and how.
3225 cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h. */
3231#include <ac_nonexistent.h>
3232_ACEOF
3233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } >/dev/null; then
3241 if test -s conftest.err; then
3242 ac_cpp_err=$ac_c_preproc_warn_flag
3243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3244 else
3245 ac_cpp_err=
3246 fi
3247else
3248 ac_cpp_err=yes
3249fi
3250if test -z "$ac_cpp_err"; then
3251 # Broken: success on invalid input.
3252continue
3253else
3254 echo "$as_me: failed program was:" >&5
3255sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 # Passes both tests.
3258ac_preproc_ok=:
3259break
3260fi
3261rm -f conftest.err conftest.$ac_ext
3262
3263done
3264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3265rm -f conftest.err conftest.$ac_ext
3266if $ac_preproc_ok; then
3267 :
3268else
3269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3270See \`config.log' for more details." >&5
3271echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3272See \`config.log' for more details." >&2;}
3273 { (exit 1); exit 1; }; }
3274fi
3275
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281
3282ac_ext=cc
3283ac_cpp='$CXXCPP $CPPFLAGS'
3284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3287if test -n "$ac_tool_prefix"; then
3288 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3289 do
3290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3292echo "$as_me:$LINENO: checking for $ac_word" >&5
3293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294if test "${ac_cv_prog_CXX+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 if test -n "$CXX"; then
3298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311done
3312done
3313
3314fi
3315fi
3316CXX=$ac_cv_prog_CXX
3317if test -n "$CXX"; then
3318 echo "$as_me:$LINENO: result: $CXX" >&5
3319echo "${ECHO_T}$CXX" >&6
3320else
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
3324
3325 test -n "$CXX" && break
3326 done
3327fi
3328if test -z "$CXX"; then
3329 ac_ct_CXX=$CXX
3330 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3331do
3332 # Extract the first word of "$ac_prog", so it can be a program name with args.
3333set dummy $ac_prog; ac_word=$2
3334echo "$as_me:$LINENO: checking for $ac_word" >&5
3335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3336if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339 if test -n "$ac_ct_CXX"; then
3340 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_ac_ct_CXX="$ac_prog"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353done
3354done
3355
3356fi
3357fi
3358ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3359if test -n "$ac_ct_CXX"; then
3360 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3361echo "${ECHO_T}$ac_ct_CXX" >&6
3362else
3363 echo "$as_me:$LINENO: result: no" >&5
3364echo "${ECHO_T}no" >&6
3365fi
3366
3367 test -n "$ac_ct_CXX" && break
3368done
3369test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3370
3371 CXX=$ac_ct_CXX
3372fi
3373
3374
3375# Provide some information about the compiler.
3376echo "$as_me:$LINENO:" \
3377 "checking for C++ compiler version" >&5
3378ac_compiler=`set X $ac_compile; echo $2`
3379{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3380 (eval $ac_compiler --version </dev/null >&5) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }
3384{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3385 (eval $ac_compiler -v </dev/null >&5) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }
3389{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3390 (eval $ac_compiler -V </dev/null >&5) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }
3394
3395echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3396echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3397if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
3406
3407int
3408main ()
3409{
3410#ifndef __GNUC__
3411 choke me
3412#endif
3413
3414 ;
3415 return 0;
3416}
3417_ACEOF
3418rm -f conftest.$ac_objext
3419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00003427 { ac_try='test -z "$ac_cxx_werror_flag"
3428 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00003429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 ac_compiler_gnu=yes
3441else
3442 echo "$as_me: failed program was:" >&5
3443sed 's/^/| /' conftest.$ac_ext >&5
3444
3445ac_compiler_gnu=no
3446fi
3447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3448ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3449
3450fi
3451echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3452echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3453GXX=`test $ac_compiler_gnu = yes && echo yes`
3454ac_test_CXXFLAGS=${CXXFLAGS+set}
3455ac_save_CXXFLAGS=$CXXFLAGS
3456CXXFLAGS="-g"
3457echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3458echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3459if test "${ac_cv_prog_cxx_g+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
3467/* end confdefs.h. */
3468
3469int
3470main ()
3471{
3472
3473 ;
3474 return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00003486 { ac_try='test -z "$ac_cxx_werror_flag"
3487 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00003488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 (eval $ac_try) 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; } &&
3493 { ac_try='test -s conftest.$ac_objext'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3499 ac_cv_prog_cxx_g=yes
3500else
3501 echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504ac_cv_prog_cxx_g=no
3505fi
3506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507fi
3508echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3509echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3510if test "$ac_test_CXXFLAGS" = set; then
3511 CXXFLAGS=$ac_save_CXXFLAGS
3512elif test $ac_cv_prog_cxx_g = yes; then
3513 if test "$GXX" = yes; then
3514 CXXFLAGS="-g -O2"
3515 else
3516 CXXFLAGS="-g"
3517 fi
3518else
3519 if test "$GXX" = yes; then
3520 CXXFLAGS="-O2"
3521 else
3522 CXXFLAGS=
3523 fi
3524fi
3525for ac_declaration in \
3526 '' \
3527 'extern "C" void std::exit (int) throw (); using std::exit;' \
3528 'extern "C" void std::exit (int); using std::exit;' \
3529 'extern "C" void exit (int) throw ();' \
3530 'extern "C" void exit (int);' \
3531 'void exit (int);'
3532do
3533 cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
3539$ac_declaration
3540#include <stdlib.h>
3541int
3542main ()
3543{
3544exit (42);
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00003558 { ac_try='test -z "$ac_cxx_werror_flag"
3559 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00003560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 :
3572else
3573 echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585$ac_declaration
3586int
3587main ()
3588{
3589exit (42);
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594rm -f conftest.$ac_objext
3595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00003603 { ac_try='test -z "$ac_cxx_werror_flag"
3604 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00003605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 break
3617else
3618 echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621fi
3622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623done
3624rm -f conftest*
3625if test -n "$ac_declaration"; then
3626 echo '#ifdef __cplusplus' >>confdefs.h
3627 echo $ac_declaration >>confdefs.h
3628 echo '#endif' >>confdefs.h
3629fi
3630
3631ac_ext=c
3632ac_cpp='$CPP $CPPFLAGS'
3633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636
3637depcc="$CXX" am_compiler_list=
3638
3639echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3640echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3641if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643else
3644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3645 # We make a subdir and do the tests there. Otherwise we can end up
3646 # making bogus files that we don't know about and never remove. For
3647 # instance it was reported that on HP-UX the gcc test will end up
3648 # making a dummy file named `D' -- because `-MD' means `put the output
3649 # in D'.
3650 mkdir conftest.dir
3651 # Copy depcomp to subdir because otherwise we won't find it if we're
3652 # using a relative directory.
3653 cp "$am_depcomp" conftest.dir
3654 cd conftest.dir
3655 # We will build objects and dependencies in a subdirectory because
3656 # it helps to detect inapplicable dependency modes. For instance
3657 # both Tru64's cc and ICC support -MD to output dependencies as a
3658 # side effect of compilation, but ICC will put the dependencies in
3659 # the current directory while Tru64 will put them in the object
3660 # directory.
3661 mkdir sub
3662
3663 am_cv_CXX_dependencies_compiler_type=none
3664 if test "$am_compiler_list" = ""; then
3665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3666 fi
3667 for depmode in $am_compiler_list; do
3668 # Setup a source with many dependencies, because some compilers
3669 # like to wrap large dependency lists on column 80 (with \), and
3670 # we should not choose a depcomp mode which is confused by this.
3671 #
3672 # We need to recreate these files for each test, as the compiler may
3673 # overwrite some of them when testing with obscure command lines.
3674 # This happens at least with the AIX C compiler.
3675 : > sub/conftest.c
3676 for i in 1 2 3 4 5 6; do
3677 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3678 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3679 # Solaris 8's {/usr,}/bin/sh.
3680 touch sub/conftst$i.h
3681 done
3682 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3683
3684 case $depmode in
3685 nosideeffect)
3686 # after this tag, mechanisms are not by side-effect, so they'll
3687 # only be used when explicitly requested
3688 if test "x$enable_dependency_tracking" = xyes; then
3689 continue
3690 else
3691 break
3692 fi
3693 ;;
3694 none) break ;;
3695 esac
3696 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3697 # mode. It turns out that the SunPro C++ compiler does not properly
3698 # handle `-M -o', and we need to detect this.
3699 if depmode=$depmode \
3700 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3702 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3703 >/dev/null 2>conftest.err &&
3704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3705 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3707 # icc doesn't choke on unknown options, it will just issue warnings
3708 # or remarks (even with -Werror). So we grep stderr for any message
3709 # that says an option was ignored or not supported.
3710 # When given -MP, icc 7.0 and 7.1 complain thusly:
3711 # icc: Command line warning: ignoring option '-M'; no argument required
3712 # The diagnosis changed in icc 8.0:
3713 # icc: Command line remark: option '-MP' not supported
3714 if (grep 'ignoring option' conftest.err ||
3715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3716 am_cv_CXX_dependencies_compiler_type=$depmode
3717 break
3718 fi
3719 fi
3720 done
3721
3722 cd ..
3723 rm -rf conftest.dir
3724else
3725 am_cv_CXX_dependencies_compiler_type=none
3726fi
3727
3728fi
3729echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3730echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3731CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3732
3733
3734
3735if
3736 test "x$enable_dependency_tracking" != xno \
3737 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3738 am__fastdepCXX_TRUE=
3739 am__fastdepCXX_FALSE='#'
3740else
3741 am__fastdepCXX_TRUE='#'
3742 am__fastdepCXX_FALSE=
3743fi
3744
3745
3746
mmentovai425d2562006-08-30 20:05:05 +00003747
brynercb91a2f2006-08-25 21:14:45 +00003748# Check whether --enable-shared or --disable-shared was given.
3749if test "${enable_shared+set}" = set; then
3750 enableval="$enable_shared"
3751 p=${PACKAGE-default}
3752 case $enableval in
3753 yes) enable_shared=yes ;;
3754 no) enable_shared=no ;;
3755 *)
3756 enable_shared=no
3757 # Look at the argument we got. We use all the common list separators.
3758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3759 for pkg in $enableval; do
3760 IFS="$lt_save_ifs"
3761 if test "X$pkg" = "X$p"; then
3762 enable_shared=yes
3763 fi
3764 done
3765 IFS="$lt_save_ifs"
3766 ;;
3767 esac
3768else
3769 enable_shared=yes
3770fi;
3771
3772# Check whether --enable-static or --disable-static was given.
3773if test "${enable_static+set}" = set; then
3774 enableval="$enable_static"
3775 p=${PACKAGE-default}
3776 case $enableval in
3777 yes) enable_static=yes ;;
3778 no) enable_static=no ;;
3779 *)
3780 enable_static=no
3781 # Look at the argument we got. We use all the common list separators.
3782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3783 for pkg in $enableval; do
3784 IFS="$lt_save_ifs"
3785 if test "X$pkg" = "X$p"; then
3786 enable_static=yes
3787 fi
3788 done
3789 IFS="$lt_save_ifs"
3790 ;;
3791 esac
3792else
3793 enable_static=yes
3794fi;
3795
3796# Check whether --enable-fast-install or --disable-fast-install was given.
3797if test "${enable_fast_install+set}" = set; then
3798 enableval="$enable_fast_install"
3799 p=${PACKAGE-default}
3800 case $enableval in
3801 yes) enable_fast_install=yes ;;
3802 no) enable_fast_install=no ;;
3803 *)
3804 enable_fast_install=no
3805 # Look at the argument we got. We use all the common list separators.
3806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3807 for pkg in $enableval; do
3808 IFS="$lt_save_ifs"
3809 if test "X$pkg" = "X$p"; then
3810 enable_fast_install=yes
3811 fi
3812 done
3813 IFS="$lt_save_ifs"
3814 ;;
3815 esac
3816else
3817 enable_fast_install=yes
3818fi;
3819
3820# Make sure we can run config.sub.
3821$ac_config_sub sun4 >/dev/null 2>&1 ||
3822 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3823echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3824 { (exit 1); exit 1; }; }
3825
3826echo "$as_me:$LINENO: checking build system type" >&5
3827echo $ECHO_N "checking build system type... $ECHO_C" >&6
3828if test "${ac_cv_build+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831 ac_cv_build_alias=$build_alias
3832test -z "$ac_cv_build_alias" &&
3833 ac_cv_build_alias=`$ac_config_guess`
3834test -z "$ac_cv_build_alias" &&
3835 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3836echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3837 { (exit 1); exit 1; }; }
3838ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3839 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3840echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3841 { (exit 1); exit 1; }; }
3842
3843fi
3844echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3845echo "${ECHO_T}$ac_cv_build" >&6
3846build=$ac_cv_build
3847build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3848build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3849build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3850
3851
3852echo "$as_me:$LINENO: checking host system type" >&5
3853echo $ECHO_N "checking host system type... $ECHO_C" >&6
3854if test "${ac_cv_host+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857 ac_cv_host_alias=$host_alias
3858test -z "$ac_cv_host_alias" &&
3859 ac_cv_host_alias=$ac_cv_build_alias
3860ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3861 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3862echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3863 { (exit 1); exit 1; }; }
3864
3865fi
3866echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3867echo "${ECHO_T}$ac_cv_host" >&6
3868host=$ac_cv_host
3869host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3870host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3871host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3872
3873
3874echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3875echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3876if test "${lt_cv_path_SED+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 # Loop through the user's path and test for sed and gsed.
3880# Then use that list of sed's as ones to test for truncation.
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for lt_ac_prog in sed gsed; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3889 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3890 fi
3891 done
3892 done
3893done
3894lt_ac_max=0
3895lt_ac_count=0
3896# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3897# along with /bin/sed that truncates output.
3898for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
mmentovai3261e8b2006-09-06 02:56:44 +00003899 test ! -f $lt_ac_sed && continue
brynercb91a2f2006-08-25 21:14:45 +00003900 cat /dev/null > conftest.in
3901 lt_ac_count=0
3902 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3903 # Check for GNU sed and select it if it is found.
3904 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3905 lt_cv_path_SED=$lt_ac_sed
3906 break
3907 fi
3908 while true; do
3909 cat conftest.in conftest.in >conftest.tmp
3910 mv conftest.tmp conftest.in
3911 cp conftest.in conftest.nl
3912 echo >>conftest.nl
3913 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3914 cmp -s conftest.out conftest.nl || break
3915 # 10000 chars as input seems more than enough
3916 test $lt_ac_count -gt 10 && break
3917 lt_ac_count=`expr $lt_ac_count + 1`
3918 if test $lt_ac_count -gt $lt_ac_max; then
3919 lt_ac_max=$lt_ac_count
3920 lt_cv_path_SED=$lt_ac_sed
3921 fi
3922 done
3923done
brynercb91a2f2006-08-25 21:14:45 +00003924
3925fi
3926
mmentovai3261e8b2006-09-06 02:56:44 +00003927SED=$lt_cv_path_SED
brynercb91a2f2006-08-25 21:14:45 +00003928echo "$as_me:$LINENO: result: $SED" >&5
3929echo "${ECHO_T}$SED" >&6
3930
3931echo "$as_me:$LINENO: checking for egrep" >&5
3932echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3933if test "${ac_cv_prog_egrep+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3937 then ac_cv_prog_egrep='grep -E'
3938 else ac_cv_prog_egrep='egrep'
3939 fi
3940fi
3941echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3942echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3943 EGREP=$ac_cv_prog_egrep
3944
3945
3946
3947# Check whether --with-gnu-ld or --without-gnu-ld was given.
3948if test "${with_gnu_ld+set}" = set; then
3949 withval="$with_gnu_ld"
3950 test "$withval" = no || with_gnu_ld=yes
3951else
3952 with_gnu_ld=no
3953fi;
3954ac_prog=ld
3955if test "$GCC" = yes; then
3956 # Check if gcc -print-prog-name=ld gives a path.
3957 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3958echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3959 case $host in
3960 *-*-mingw*)
3961 # gcc leaves a trailing carriage return which upsets mingw
3962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3963 *)
3964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3965 esac
3966 case $ac_prog in
3967 # Accept absolute paths.
3968 [\\/]* | ?:[\\/]*)
3969 re_direlt='/[^/][^/]*/\.\./'
3970 # Canonicalize the pathname of ld
3971 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3972 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3973 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3974 done
3975 test -z "$LD" && LD="$ac_prog"
3976 ;;
3977 "")
3978 # If it fails, then pretend we aren't using GCC.
3979 ac_prog=ld
3980 ;;
3981 *)
3982 # If it is relative, then search for the first ld in PATH.
3983 with_gnu_ld=unknown
3984 ;;
3985 esac
3986elif test "$with_gnu_ld" = yes; then
3987 echo "$as_me:$LINENO: checking for GNU ld" >&5
3988echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3989else
3990 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3991echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3992fi
3993if test "${lt_cv_path_LD+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996 if test -z "$LD"; then
3997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3998 for ac_dir in $PATH; do
3999 IFS="$lt_save_ifs"
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4002 lt_cv_path_LD="$ac_dir/$ac_prog"
4003 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai3261e8b2006-09-06 02:56:44 +00004004 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004005 # Break only if it was the GNU/non-GNU ld that we prefer.
4006 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4007 *GNU* | *'with BFD'*)
4008 test "$with_gnu_ld" != no && break
4009 ;;
4010 *)
4011 test "$with_gnu_ld" != yes && break
4012 ;;
4013 esac
4014 fi
4015 done
4016 IFS="$lt_save_ifs"
4017else
4018 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4019fi
4020fi
4021
4022LD="$lt_cv_path_LD"
4023if test -n "$LD"; then
4024 echo "$as_me:$LINENO: result: $LD" >&5
4025echo "${ECHO_T}$LD" >&6
4026else
4027 echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029fi
4030test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4031echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4032 { (exit 1); exit 1; }; }
4033echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4034echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4035if test "${lt_cv_prog_gnu_ld+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
mmentovai3261e8b2006-09-06 02:56:44 +00004038 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004039case `$LD -v 2>&1 </dev/null` in
4040*GNU* | *'with BFD'*)
4041 lt_cv_prog_gnu_ld=yes
4042 ;;
4043*)
4044 lt_cv_prog_gnu_ld=no
4045 ;;
4046esac
4047fi
4048echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4049echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4050with_gnu_ld=$lt_cv_prog_gnu_ld
4051
4052
4053echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4054echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4055if test "${lt_cv_ld_reload_flag+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 lt_cv_ld_reload_flag='-r'
4059fi
4060echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4061echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4062reload_flag=$lt_cv_ld_reload_flag
4063case $reload_flag in
4064"" | " "*) ;;
4065*) reload_flag=" $reload_flag" ;;
4066esac
4067reload_cmds='$LD$reload_flag -o $output$reload_objs'
mmentovai3261e8b2006-09-06 02:56:44 +00004068case $host_os in
4069 darwin*)
4070 if test "$GCC" = yes; then
4071 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4072 else
4073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4074 fi
4075 ;;
4076esac
brynercb91a2f2006-08-25 21:14:45 +00004077
4078echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4079echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4080if test "${lt_cv_path_NM+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083 if test -n "$NM"; then
4084 # Let the user override the test.
4085 lt_cv_path_NM="$NM"
4086else
mmentovai3261e8b2006-09-06 02:56:44 +00004087 lt_nm_to_check="${ac_tool_prefix}nm"
4088 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4089 lt_nm_to_check="$lt_nm_to_check nm"
4090 fi
4091 for lt_tmp_nm in $lt_nm_to_check; do
4092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4093 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4094 IFS="$lt_save_ifs"
4095 test -z "$ac_dir" && ac_dir=.
4096 tmp_nm="$ac_dir/$lt_tmp_nm"
4097 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4098 # Check to see if the nm accepts a BSD-compat flag.
4099 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4100 # nm: unknown option "B" ignored
4101 # Tru64's nm complains that /dev/null is an invalid object file
4102 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4103 */dev/null* | *'Invalid file or object type'*)
4104 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004105 break
4106 ;;
4107 *)
mmentovai3261e8b2006-09-06 02:56:44 +00004108 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4109 */dev/null*)
4110 lt_cv_path_NM="$tmp_nm -p"
4111 break
4112 ;;
4113 *)
4114 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4115 continue # so that we can try to find one that supports BSD flags
4116 ;;
4117 esac
brynercb91a2f2006-08-25 21:14:45 +00004118 ;;
4119 esac
mmentovai3261e8b2006-09-06 02:56:44 +00004120 fi
4121 done
4122 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004123 done
brynercb91a2f2006-08-25 21:14:45 +00004124 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4125fi
4126fi
4127echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4128echo "${ECHO_T}$lt_cv_path_NM" >&6
4129NM="$lt_cv_path_NM"
4130
4131echo "$as_me:$LINENO: checking whether ln -s works" >&5
4132echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4133LN_S=$as_ln_s
4134if test "$LN_S" = "ln -s"; then
4135 echo "$as_me:$LINENO: result: yes" >&5
4136echo "${ECHO_T}yes" >&6
4137else
4138 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4139echo "${ECHO_T}no, using $LN_S" >&6
4140fi
4141
4142echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4143echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4144if test "${lt_cv_deplibs_check_method+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147 lt_cv_file_magic_cmd='$MAGIC_CMD'
4148lt_cv_file_magic_test_file=
4149lt_cv_deplibs_check_method='unknown'
4150# Need to set the preceding variable on all platforms that support
4151# interlibrary dependencies.
4152# 'none' -- dependencies not supported.
4153# `unknown' -- same as none, but documents that we really don't know.
4154# 'pass_all' -- all dependencies passed with no checks.
4155# 'test_compile' -- check by making test program.
4156# 'file_magic [[regex]]' -- check by looking for files in library path
4157# which responds to the $file_magic_cmd with a given extended regex.
4158# If you have `file' or equivalent on your system and you're not sure
4159# whether `pass_all' will *always* work, you probably want this one.
4160
4161case $host_os in
4162aix4* | aix5*)
4163 lt_cv_deplibs_check_method=pass_all
4164 ;;
4165
4166beos*)
4167 lt_cv_deplibs_check_method=pass_all
4168 ;;
4169
mmentovai3261e8b2006-09-06 02:56:44 +00004170bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00004171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4172 lt_cv_file_magic_cmd='/usr/bin/file -L'
4173 lt_cv_file_magic_test_file=/shlib/libc.so
4174 ;;
4175
4176cygwin*)
4177 # func_win32_libid is a shell function defined in ltmain.sh
4178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4179 lt_cv_file_magic_cmd='func_win32_libid'
4180 ;;
4181
4182mingw* | pw32*)
4183 # Base MSYS/MinGW do not provide the 'file' command needed by
4184 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4185 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4186 lt_cv_file_magic_cmd='$OBJDUMP -f'
4187 ;;
4188
4189darwin* | rhapsody*)
4190 lt_cv_deplibs_check_method=pass_all
4191 ;;
4192
mmentovai3261e8b2006-09-06 02:56:44 +00004193freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00004194 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4195 case $host_cpu in
4196 i*86 )
4197 # Not sure whether the presence of OpenBSD here was a mistake.
4198 # Let's accept both of them until this is cleared up.
mmentovai3261e8b2006-09-06 02:56:44 +00004199 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
brynercb91a2f2006-08-25 21:14:45 +00004200 lt_cv_file_magic_cmd=/usr/bin/file
4201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4202 ;;
4203 esac
4204 else
4205 lt_cv_deplibs_check_method=pass_all
4206 fi
4207 ;;
4208
4209gnu*)
4210 lt_cv_deplibs_check_method=pass_all
4211 ;;
4212
4213hpux10.20* | hpux11*)
4214 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai3261e8b2006-09-06 02:56:44 +00004215 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00004216 ia64*)
4217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4218 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4219 ;;
4220 hppa*64*)
4221 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]'
4222 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4223 ;;
4224 *)
4225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4226 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4227 ;;
4228 esac
4229 ;;
4230
mmentovai3261e8b2006-09-06 02:56:44 +00004231interix3*)
4232 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4234 ;;
4235
brynercb91a2f2006-08-25 21:14:45 +00004236irix5* | irix6* | nonstopux*)
4237 case $LD in
4238 *-32|*"-32 ") libmagic=32-bit;;
4239 *-n32|*"-n32 ") libmagic=N32;;
4240 *-64|*"-64 ") libmagic=64-bit;;
4241 *) libmagic=never-match;;
4242 esac
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
4246# This must be Linux ELF.
4247linux*)
4248 lt_cv_deplibs_check_method=pass_all
4249 ;;
4250
mmentovai3261e8b2006-09-06 02:56:44 +00004251netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00004252 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4254 else
4255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4256 fi
4257 ;;
4258
4259newos6*)
4260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4261 lt_cv_file_magic_cmd=/usr/bin/file
4262 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4263 ;;
4264
4265nto-qnx*)
4266 lt_cv_deplibs_check_method=unknown
4267 ;;
4268
4269openbsd*)
brynercb91a2f2006-08-25 21:14:45 +00004270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai3261e8b2006-09-06 02:56:44 +00004271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00004272 else
mmentovai3261e8b2006-09-06 02:56:44 +00004273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00004274 fi
4275 ;;
4276
4277osf3* | osf4* | osf5*)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
brynercb91a2f2006-08-25 21:14:45 +00004281solaris*)
4282 lt_cv_deplibs_check_method=pass_all
4283 ;;
4284
mmentovai3261e8b2006-09-06 02:56:44 +00004285sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00004286 case $host_vendor in
4287 motorola)
4288 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]'
4289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4290 ;;
4291 ncr)
4292 lt_cv_deplibs_check_method=pass_all
4293 ;;
4294 sequent)
4295 lt_cv_file_magic_cmd='/bin/file'
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4297 ;;
4298 sni)
4299 lt_cv_file_magic_cmd='/bin/file'
4300 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4301 lt_cv_file_magic_test_file=/lib/libc.so
4302 ;;
4303 siemens)
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00004306 pc)
4307 lt_cv_deplibs_check_method=pass_all
4308 ;;
brynercb91a2f2006-08-25 21:14:45 +00004309 esac
4310 ;;
4311
mmentovai3261e8b2006-09-06 02:56:44 +00004312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
brynercb91a2f2006-08-25 21:14:45 +00004313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315esac
4316
4317fi
4318echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4319echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4320file_magic_cmd=$lt_cv_file_magic_cmd
4321deplibs_check_method=$lt_cv_deplibs_check_method
4322test -z "$deplibs_check_method" && deplibs_check_method=unknown
4323
4324
4325
4326
4327# If no C compiler was specified, use CC.
4328LTCC=${LTCC-"$CC"}
4329
mmentovai3261e8b2006-09-06 02:56:44 +00004330# If no C compiler flags were specified, use CFLAGS.
4331LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4332
brynercb91a2f2006-08-25 21:14:45 +00004333# Allow CC to be a program name with arguments.
4334compiler=$CC
4335
4336
4337# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4338if test "${enable_libtool_lock+set}" = set; then
4339 enableval="$enable_libtool_lock"
4340
4341fi;
4342test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4343
4344# Some flags need to be propagated to the compiler or linker for good
4345# libtool support.
4346case $host in
4347ia64-*-hpux*)
4348 # Find out which ABI we are using.
4349 echo 'int i;' > conftest.$ac_ext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; then
4355 case `/usr/bin/file conftest.$ac_objext` in
4356 *ELF-32*)
4357 HPUX_IA64_MODE="32"
4358 ;;
4359 *ELF-64*)
4360 HPUX_IA64_MODE="64"
4361 ;;
4362 esac
4363 fi
4364 rm -rf conftest*
4365 ;;
4366*-*-irix6*)
4367 # Find out which ABI we are using.
mmentovai3261e8b2006-09-06 02:56:44 +00004368 echo '#line 4368 "configure"' > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4370 (eval $ac_compile) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; then
4374 if test "$lt_cv_prog_gnu_ld" = yes; then
4375 case `/usr/bin/file conftest.$ac_objext` in
4376 *32-bit*)
4377 LD="${LD-ld} -melf32bsmip"
4378 ;;
4379 *N32*)
4380 LD="${LD-ld} -melf32bmipn32"
4381 ;;
4382 *64-bit*)
4383 LD="${LD-ld} -melf64bmip"
4384 ;;
4385 esac
4386 else
4387 case `/usr/bin/file conftest.$ac_objext` in
4388 *32-bit*)
4389 LD="${LD-ld} -32"
4390 ;;
4391 *N32*)
4392 LD="${LD-ld} -n32"
4393 ;;
4394 *64-bit*)
4395 LD="${LD-ld} -64"
4396 ;;
4397 esac
4398 fi
4399 fi
4400 rm -rf conftest*
4401 ;;
4402
4403x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4404 # Find out which ABI we are using.
4405 echo 'int i;' > conftest.$ac_ext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; then
mmentovai3261e8b2006-09-06 02:56:44 +00004411 case `/usr/bin/file conftest.o` in
brynercb91a2f2006-08-25 21:14:45 +00004412 *32-bit*)
4413 case $host in
4414 x86_64-*linux*)
4415 LD="${LD-ld} -m elf_i386"
4416 ;;
4417 ppc64-*linux*|powerpc64-*linux*)
4418 LD="${LD-ld} -m elf32ppclinux"
4419 ;;
4420 s390x-*linux*)
4421 LD="${LD-ld} -m elf_s390"
4422 ;;
4423 sparc64-*linux*)
4424 LD="${LD-ld} -m elf32_sparc"
4425 ;;
4426 esac
4427 ;;
4428 *64-bit*)
4429 case $host in
4430 x86_64-*linux*)
4431 LD="${LD-ld} -m elf_x86_64"
4432 ;;
4433 ppc*-*linux*|powerpc*-*linux*)
4434 LD="${LD-ld} -m elf64ppc"
4435 ;;
4436 s390*-*linux*)
4437 LD="${LD-ld} -m elf64_s390"
4438 ;;
4439 sparc*-*linux*)
4440 LD="${LD-ld} -m elf64_sparc"
4441 ;;
4442 esac
4443 ;;
4444 esac
4445 fi
4446 rm -rf conftest*
4447 ;;
4448
4449*-*-sco3.2v5*)
4450 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4451 SAVE_CFLAGS="$CFLAGS"
4452 CFLAGS="$CFLAGS -belf"
4453 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4454echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4455if test "${lt_cv_cc_needs_belf+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458 ac_ext=c
4459ac_cpp='$CPP $CPPFLAGS'
4460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463
4464 cat >conftest.$ac_ext <<_ACEOF
4465/* confdefs.h. */
4466_ACEOF
4467cat confdefs.h >>conftest.$ac_ext
4468cat >>conftest.$ac_ext <<_ACEOF
4469/* end confdefs.h. */
4470
4471int
4472main ()
4473{
4474
4475 ;
4476 return 0;
4477}
4478_ACEOF
4479rm -f conftest.$ac_objext conftest$ac_exeext
4480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481 (eval $ac_link) 2>conftest.er1
4482 ac_status=$?
4483 grep -v '^ *+' conftest.er1 >conftest.err
4484 rm -f conftest.er1
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00004488 { ac_try='test -z "$ac_c_werror_flag"
4489 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00004490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; } &&
4495 { ac_try='test -s conftest$ac_exeext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 lt_cv_cc_needs_belf=yes
4502else
4503 echo "$as_me: failed program was:" >&5
4504sed 's/^/| /' conftest.$ac_ext >&5
4505
4506lt_cv_cc_needs_belf=no
4507fi
4508rm -f conftest.err conftest.$ac_objext \
4509 conftest$ac_exeext conftest.$ac_ext
4510 ac_ext=c
4511ac_cpp='$CPP $CPPFLAGS'
4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515
4516fi
4517echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4518echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4519 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4520 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4521 CFLAGS="$SAVE_CFLAGS"
4522 fi
4523 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00004524sparc*-*solaris*)
4525 # Find out which ABI we are using.
4526 echo 'int i;' > conftest.$ac_ext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; then
4532 case `/usr/bin/file conftest.o` in
4533 *64-bit*)
4534 case $lt_cv_prog_gnu_ld in
4535 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4536 *) LD="${LD-ld} -64" ;;
4537 esac
4538 ;;
4539 esac
4540 fi
4541 rm -rf conftest*
4542 ;;
4543
brynercb91a2f2006-08-25 21:14:45 +00004544
4545esac
4546
4547need_locks="$enable_libtool_lock"
4548
4549
4550
4551echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4552echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4553if test "${ac_cv_header_stdc+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555else
4556 cat >conftest.$ac_ext <<_ACEOF
4557/* confdefs.h. */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
4561/* end confdefs.h. */
4562#include <stdlib.h>
4563#include <stdarg.h>
4564#include <string.h>
4565#include <float.h>
4566
4567int
4568main ()
4569{
4570
4571 ;
4572 return 0;
4573}
4574_ACEOF
4575rm -f conftest.$ac_objext
4576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577 (eval $ac_compile) 2>conftest.er1
4578 ac_status=$?
4579 grep -v '^ *+' conftest.er1 >conftest.err
4580 rm -f conftest.er1
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00004584 { ac_try='test -z "$ac_c_werror_flag"
4585 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00004586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; } &&
4591 { ac_try='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_header_stdc=yes
4598else
4599 echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602ac_cv_header_stdc=no
4603fi
4604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605
4606if test $ac_cv_header_stdc = yes; then
4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608 cat >conftest.$ac_ext <<_ACEOF
4609/* confdefs.h. */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h. */
4614#include <string.h>
4615
4616_ACEOF
4617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "memchr" >/dev/null 2>&1; then
4619 :
4620else
4621 ac_cv_header_stdc=no
4622fi
4623rm -f conftest*
4624
4625fi
4626
4627if test $ac_cv_header_stdc = yes; then
4628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4629 cat >conftest.$ac_ext <<_ACEOF
4630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
4635#include <stdlib.h>
4636
4637_ACEOF
4638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639 $EGREP "free" >/dev/null 2>&1; then
4640 :
4641else
4642 ac_cv_header_stdc=no
4643fi
4644rm -f conftest*
4645
4646fi
4647
4648if test $ac_cv_header_stdc = yes; then
4649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4650 if test "$cross_compiling" = yes; then
4651 :
4652else
4653 cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h. */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h. */
4659#include <ctype.h>
4660#if ((' ' & 0x0FF) == 0x020)
4661# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4662# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4663#else
4664# define ISLOWER(c) \
4665 (('a' <= (c) && (c) <= 'i') \
4666 || ('j' <= (c) && (c) <= 'r') \
4667 || ('s' <= (c) && (c) <= 'z'))
4668# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4669#endif
4670
4671#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4672int
4673main ()
4674{
4675 int i;
4676 for (i = 0; i < 256; i++)
4677 if (XOR (islower (i), ISLOWER (i))
4678 || toupper (i) != TOUPPER (i))
4679 exit(2);
4680 exit (0);
4681}
4682_ACEOF
4683rm -f conftest$ac_exeext
4684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 :
4695else
4696 echo "$as_me: program exited with status $ac_status" >&5
4697echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700( exit $ac_status )
4701ac_cv_header_stdc=no
4702fi
4703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704fi
4705fi
4706fi
4707echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4708echo "${ECHO_T}$ac_cv_header_stdc" >&6
4709if test $ac_cv_header_stdc = yes; then
4710
4711cat >>confdefs.h <<\_ACEOF
4712#define STDC_HEADERS 1
4713_ACEOF
4714
4715fi
4716
4717# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4728 inttypes.h stdint.h unistd.h
4729do
4730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731echo "$as_me:$LINENO: checking for $ac_header" >&5
4732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h. */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h. */
4742$ac_includes_default
4743
4744#include <$ac_header>
4745_ACEOF
4746rm -f conftest.$ac_objext
4747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00004755 { ac_try='test -z "$ac_c_werror_flag"
4756 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00004757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try='test -s conftest.$ac_objext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 eval "$as_ac_Header=yes"
4769else
4770 echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
4773eval "$as_ac_Header=no"
4774fi
4775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4776fi
4777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4779if test `eval echo '${'$as_ac_Header'}'` = yes; then
4780 cat >>confdefs.h <<_ACEOF
4781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782_ACEOF
4783
4784fi
4785
4786done
4787
4788
4789
4790for ac_header in dlfcn.h
4791do
4792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794 echo "$as_me:$LINENO: checking for $ac_header" >&5
4795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4796if eval "test \"\${$as_ac_Header+set}\" = set"; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798fi
4799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4801else
4802 # Is the header compilable?
4803echo "$as_me:$LINENO: checking $ac_header usability" >&5
4804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4805cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h. */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h. */
4811$ac_includes_default
4812#include <$ac_header>
4813_ACEOF
4814rm -f conftest.$ac_objext
4815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00004823 { ac_try='test -z "$ac_c_werror_flag"
4824 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00004825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_header_compiler=yes
4837else
4838 echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841ac_header_compiler=no
4842fi
4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4845echo "${ECHO_T}$ac_header_compiler" >&6
4846
4847# Is the header present?
4848echo "$as_me:$LINENO: checking $ac_header presence" >&5
4849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4850cat >conftest.$ac_ext <<_ACEOF
4851/* confdefs.h. */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h. */
4856#include <$ac_header>
4857_ACEOF
4858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev/null; then
4866 if test -s conftest.err; then
4867 ac_cpp_err=$ac_c_preproc_warn_flag
4868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4869 else
4870 ac_cpp_err=
4871 fi
4872else
4873 ac_cpp_err=yes
4874fi
4875if test -z "$ac_cpp_err"; then
4876 ac_header_preproc=yes
4877else
4878 echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ac_header_preproc=no
4882fi
4883rm -f conftest.err conftest.$ac_ext
4884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4885echo "${ECHO_T}$ac_header_preproc" >&6
4886
4887# So? What about this header?
4888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4889 yes:no: )
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4894 ac_header_preproc=yes
4895 ;;
4896 no:yes:* )
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4909 (
4910 cat <<\_ASBOX
4911## ------------------------------------ ##
4912## Report this to opensource@google.com ##
4913## ------------------------------------ ##
4914_ASBOX
4915 ) |
4916 sed "s/^/$as_me: WARNING: /" >&2
4917 ;;
4918esac
4919echo "$as_me:$LINENO: checking for $ac_header" >&5
4920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4921if eval "test \"\${$as_ac_Header+set}\" = set"; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924 eval "$as_ac_Header=\$ac_header_preproc"
4925fi
4926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4928
4929fi
4930if test `eval echo '${'$as_ac_Header'}'` = yes; then
4931 cat >>confdefs.h <<_ACEOF
4932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4933_ACEOF
4934
4935fi
4936
4937done
4938
mmentovai3261e8b2006-09-06 02:56:44 +00004939
4940
4941if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4942 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4943 (test "X$CXX" != "Xg++"))) ; then
4944 ac_ext=cc
brynercb91a2f2006-08-25 21:14:45 +00004945ac_cpp='$CXXCPP $CPPFLAGS'
4946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4951if test -z "$CXXCPP"; then
4952 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955 # Double quotes because CXXCPP needs to be expanded
4956 for CXXCPP in "$CXX -E" "/lib/cpp"
4957 do
4958 ac_preproc_ok=false
4959for ac_cxx_preproc_warn_flag in '' yes
4960do
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat >conftest.$ac_ext <<_ACEOF
4968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
4973#ifdef __STDC__
4974# include <limits.h>
4975#else
4976# include <assert.h>
4977#endif
4978 Syntax error
4979_ACEOF
4980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null; then
4988 if test -s conftest.err; then
4989 ac_cpp_err=$ac_cxx_preproc_warn_flag
4990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4991 else
4992 ac_cpp_err=
4993 fi
4994else
4995 ac_cpp_err=yes
4996fi
4997if test -z "$ac_cpp_err"; then
4998 :
4999else
5000 echo "$as_me: failed program was:" >&5
5001sed 's/^/| /' conftest.$ac_ext >&5
5002
5003 # Broken: fails on valid input.
5004continue
5005fi
5006rm -f conftest.err conftest.$ac_ext
5007
5008 # OK, works on sane cases. Now check whether non-existent headers
5009 # can be detected and how.
5010 cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
5016#include <ac_nonexistent.h>
5017_ACEOF
5018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_cxx_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5029 else
5030 ac_cpp_err=
5031 fi
5032else
5033 ac_cpp_err=yes
5034fi
5035if test -z "$ac_cpp_err"; then
5036 # Broken: success on invalid input.
5037continue
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 # Passes both tests.
5043ac_preproc_ok=:
5044break
5045fi
5046rm -f conftest.err conftest.$ac_ext
5047
5048done
5049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050rm -f conftest.err conftest.$ac_ext
5051if $ac_preproc_ok; then
5052 break
5053fi
5054
5055 done
5056 ac_cv_prog_CXXCPP=$CXXCPP
5057
5058fi
5059 CXXCPP=$ac_cv_prog_CXXCPP
5060else
5061 ac_cv_prog_CXXCPP=$CXXCPP
5062fi
5063echo "$as_me:$LINENO: result: $CXXCPP" >&5
5064echo "${ECHO_T}$CXXCPP" >&6
5065ac_preproc_ok=false
5066for ac_cxx_preproc_warn_flag in '' yes
5067do
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080#ifdef __STDC__
5081# include <limits.h>
5082#else
5083# include <assert.h>
5084#endif
5085 Syntax error
5086_ACEOF
5087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_cxx_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098 else
5099 ac_cpp_err=
5100 fi
5101else
5102 ac_cpp_err=yes
5103fi
5104if test -z "$ac_cpp_err"; then
5105 :
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 # Broken: fails on valid input.
5111continue
5112fi
5113rm -f conftest.err conftest.$ac_ext
5114
5115 # OK, works on sane cases. Now check whether non-existent headers
5116 # can be detected and how.
5117 cat >conftest.$ac_ext <<_ACEOF
5118/* confdefs.h. */
5119_ACEOF
5120cat confdefs.h >>conftest.$ac_ext
5121cat >>conftest.$ac_ext <<_ACEOF
5122/* end confdefs.h. */
5123#include <ac_nonexistent.h>
5124_ACEOF
5125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_cxx_preproc_warn_flag
5135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5136 else
5137 ac_cpp_err=
5138 fi
5139else
5140 ac_cpp_err=yes
5141fi
5142if test -z "$ac_cpp_err"; then
5143 # Broken: success on invalid input.
5144continue
5145else
5146 echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
5149 # Passes both tests.
5150ac_preproc_ok=:
5151break
5152fi
5153rm -f conftest.err conftest.$ac_ext
5154
5155done
5156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157rm -f conftest.err conftest.$ac_ext
5158if $ac_preproc_ok; then
5159 :
5160else
5161 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162See \`config.log' for more details." >&5
5163echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5166fi
5167
5168ac_ext=cc
5169ac_cpp='$CXXCPP $CPPFLAGS'
5170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173
mmentovai3261e8b2006-09-06 02:56:44 +00005174fi
5175
brynercb91a2f2006-08-25 21:14:45 +00005176
5177
5178
5179# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5180
5181# find the maximum length of command line arguments
5182echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5183echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5184if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187 i=0
5188 teststring="ABCD"
5189
5190 case $build_os in
5191 msdosdjgpp*)
5192 # On DJGPP, this test can blow up pretty badly due to problems in libc
5193 # (any single argument exceeding 2000 bytes causes a buffer overrun
5194 # during glob expansion). Even if it were fixed, the result of this
5195 # check would be larger than it should be.
5196 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5197 ;;
5198
5199 gnu*)
5200 # Under GNU Hurd, this test is not required because there is
5201 # no limit to the length of command line arguments.
5202 # Libtool will interpret -1 as no limit whatsoever
5203 lt_cv_sys_max_cmd_len=-1;
5204 ;;
5205
5206 cygwin* | mingw*)
5207 # On Win9x/ME, this test blows up -- it succeeds, but takes
5208 # about 5 minutes as the teststring grows exponentially.
5209 # Worse, since 9x/ME are not pre-emptively multitasking,
5210 # you end up with a "frozen" computer, even though with patience
5211 # the test eventually succeeds (with a max line length of 256k).
5212 # Instead, let's just punt: use the minimum linelength reported by
5213 # all of the supported platforms: 8192 (on NT/2K/XP).
5214 lt_cv_sys_max_cmd_len=8192;
5215 ;;
5216
5217 amigaos*)
5218 # On AmigaOS with pdksh, this test takes hours, literally.
5219 # So we just punt and use a minimum line length of 8192.
5220 lt_cv_sys_max_cmd_len=8192;
5221 ;;
5222
mmentovai3261e8b2006-09-06 02:56:44 +00005223 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5224 # This has been around since 386BSD, at least. Likely further.
5225 if test -x /sbin/sysctl; then
5226 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5227 elif test -x /usr/sbin/sysctl; then
5228 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5229 else
5230 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5231 fi
5232 # And add a safety zone
5233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5235 ;;
5236
5237 interix*)
5238 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5239 lt_cv_sys_max_cmd_len=196608
5240 ;;
5241
5242 osf*)
5243 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5244 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5245 # nice to cause kernel panics so lets avoid the loop below.
5246 # First set a reasonable default.
5247 lt_cv_sys_max_cmd_len=16384
5248 #
5249 if test -x /sbin/sysconfig; then
5250 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5251 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5252 esac
5253 fi
5254 ;;
5255 sco3.2v5*)
5256 lt_cv_sys_max_cmd_len=102400
5257 ;;
5258 sysv5* | sco5v6* | sysv4.2uw2*)
5259 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5260 if test -n "$kargmax"; then
5261 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5262 else
5263 lt_cv_sys_max_cmd_len=32768
5264 fi
5265 ;;
5266 *)
brynercb91a2f2006-08-25 21:14:45 +00005267 # If test is not a shell built-in, we'll probably end up computing a
5268 # maximum length that is only half of the actual maximum length, but
5269 # we can't tell.
mmentovai3261e8b2006-09-06 02:56:44 +00005270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5271 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
brynercb91a2f2006-08-25 21:14:45 +00005272 = "XX$teststring") >/dev/null 2>&1 &&
5273 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5274 lt_cv_sys_max_cmd_len=$new_result &&
5275 test $i != 17 # 1/2 MB should be enough
5276 do
5277 i=`expr $i + 1`
5278 teststring=$teststring$teststring
5279 done
5280 teststring=
5281 # Add a significant safety factor because C++ compilers can tack on massive
5282 # amounts of additional arguments before passing them to the linker.
5283 # It appears as though 1/2 is a usable value.
5284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5285 ;;
5286 esac
5287
5288fi
5289
5290if test -n $lt_cv_sys_max_cmd_len ; then
5291 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5292echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5293else
5294 echo "$as_me:$LINENO: result: none" >&5
5295echo "${ECHO_T}none" >&6
5296fi
5297
5298
5299
5300
5301# Check for command to grab the raw symbol name followed by C symbol from nm.
5302echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5303echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5304if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307
5308# These are sane defaults that work on at least a few old systems.
5309# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5310
5311# Character class describing NM global symbol codes.
5312symcode='[BCDEGRST]'
5313
5314# Regexp to match symbols that can be accessed directly from C.
5315sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5316
brynercb91a2f2006-08-25 21:14:45 +00005317# Transform an extracted symbol line into a proper C declaration
5318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5319
5320# Transform an extracted symbol line into symbol name and symbol address
5321lt_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'"
5322
5323# Define system-specific variables.
5324case $host_os in
5325aix*)
5326 symcode='[BCDT]'
5327 ;;
5328cygwin* | mingw* | pw32*)
5329 symcode='[ABCDGISTW]'
5330 ;;
5331hpux*) # Its linker distinguishes data from code symbols
5332 if test "$host_cpu" = ia64; then
5333 symcode='[ABCDEGRST]'
5334 fi
5335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336 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'"
5337 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00005338linux*)
5339 if test "$host_cpu" = ia64; then
5340 symcode='[ABCDGIRSTW]'
5341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342 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'"
5343 fi
5344 ;;
brynercb91a2f2006-08-25 21:14:45 +00005345irix* | nonstopux*)
5346 symcode='[BCDEGRST]'
5347 ;;
5348osf*)
5349 symcode='[BCDEGQRST]'
5350 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00005351solaris*)
brynercb91a2f2006-08-25 21:14:45 +00005352 symcode='[BDRT]'
5353 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00005354sco3.2v5*)
5355 symcode='[DT]'
5356 ;;
5357sysv4.2uw2*)
5358 symcode='[DT]'
5359 ;;
5360sysv5* | sco5v6* | unixware* | OpenUNIX*)
5361 symcode='[ABDT]'
5362 ;;
brynercb91a2f2006-08-25 21:14:45 +00005363sysv4)
5364 symcode='[DFNSTU]'
5365 ;;
5366esac
5367
5368# Handle CRLF in mingw tool chain
5369opt_cr=
5370case $build_os in
5371mingw*)
5372 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5373 ;;
5374esac
5375
5376# If we're using GNU nm, then use its standard symbol codes.
5377case `$NM -V 2>&1` in
5378*GNU* | *'with BFD'*)
5379 symcode='[ABCDGIRSTW]' ;;
5380esac
5381
5382# Try without a prefix undercore, then with it.
5383for ac_symprfx in "" "_"; do
5384
mmentovai3261e8b2006-09-06 02:56:44 +00005385 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5386 symxfrm="\\1 $ac_symprfx\\2 \\2"
5387
brynercb91a2f2006-08-25 21:14:45 +00005388 # Write the raw and C identifiers.
mmentovai3261e8b2006-09-06 02:56:44 +00005389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
brynercb91a2f2006-08-25 21:14:45 +00005390
5391 # Check to see that the pipe works correctly.
5392 pipe_works=no
5393
5394 rm -f conftest*
5395 cat > conftest.$ac_ext <<EOF
5396#ifdef __cplusplus
5397extern "C" {
5398#endif
5399char nm_test_var;
5400void nm_test_func(){}
5401#ifdef __cplusplus
5402}
5403#endif
5404int main(){nm_test_var='a';nm_test_func();return(0);}
5405EOF
5406
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; then
5412 # Now try to grab the symbols.
5413 nlist=conftest.nm
5414 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5415 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && test -s "$nlist"; then
5419 # Try sorting and uniquifying the output.
5420 if sort "$nlist" | uniq > "$nlist"T; then
5421 mv -f "$nlist"T "$nlist"
5422 else
5423 rm -f "$nlist"T
5424 fi
5425
5426 # Make sure that we snagged all the symbols we need.
5427 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5428 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5429 cat <<EOF > conftest.$ac_ext
5430#ifdef __cplusplus
5431extern "C" {
5432#endif
5433
5434EOF
5435 # Now generate the symbol file.
5436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5437
5438 cat <<EOF >> conftest.$ac_ext
5439#if defined (__STDC__) && __STDC__
5440# define lt_ptr_t void *
5441#else
5442# define lt_ptr_t char *
5443# define const
5444#endif
5445
5446/* The mapping between symbol names and symbols. */
5447const struct {
5448 const char *name;
5449 lt_ptr_t address;
5450}
5451lt_preloaded_symbols[] =
5452{
5453EOF
5454 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5455 cat <<\EOF >> conftest.$ac_ext
5456 {0, (lt_ptr_t) 0}
5457};
5458
5459#ifdef __cplusplus
5460}
5461#endif
5462EOF
5463 # Now try linking the two files.
5464 mv conftest.$ac_objext conftstm.$ac_objext
5465 lt_save_LIBS="$LIBS"
5466 lt_save_CFLAGS="$CFLAGS"
5467 LIBS="conftstm.$ac_objext"
5468 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470 (eval $ac_link) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5474 pipe_works=yes
5475 fi
5476 LIBS="$lt_save_LIBS"
5477 CFLAGS="$lt_save_CFLAGS"
5478 else
5479 echo "cannot find nm_test_func in $nlist" >&5
5480 fi
5481 else
5482 echo "cannot find nm_test_var in $nlist" >&5
5483 fi
5484 else
5485 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5486 fi
5487 else
5488 echo "$progname: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5490 fi
5491 rm -f conftest* conftst*
5492
5493 # Do not use the global_symbol_pipe unless it works.
5494 if test "$pipe_works" = yes; then
5495 break
5496 else
5497 lt_cv_sys_global_symbol_pipe=
5498 fi
5499done
5500
5501fi
5502
5503if test -z "$lt_cv_sys_global_symbol_pipe"; then
5504 lt_cv_sys_global_symbol_to_cdecl=
5505fi
5506if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5507 echo "$as_me:$LINENO: result: failed" >&5
5508echo "${ECHO_T}failed" >&6
5509else
5510 echo "$as_me:$LINENO: result: ok" >&5
5511echo "${ECHO_T}ok" >&6
5512fi
5513
5514echo "$as_me:$LINENO: checking for objdir" >&5
5515echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5516if test "${lt_cv_objdir+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519 rm -f .libs 2>/dev/null
5520mkdir .libs 2>/dev/null
5521if test -d .libs; then
5522 lt_cv_objdir=.libs
5523else
5524 # MS-DOS does not allow filenames that begin with a dot.
5525 lt_cv_objdir=_libs
5526fi
5527rmdir .libs 2>/dev/null
5528fi
5529echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5530echo "${ECHO_T}$lt_cv_objdir" >&6
5531objdir=$lt_cv_objdir
5532
5533
5534
5535
5536
5537case $host_os in
5538aix3*)
5539 # AIX sometimes has problems with the GCC collect2 program. For some
5540 # reason, if we set the COLLECT_NAMES environment variable, the problems
5541 # vanish in a puff of smoke.
5542 if test "X${COLLECT_NAMES+set}" != Xset; then
5543 COLLECT_NAMES=
5544 export COLLECT_NAMES
5545 fi
5546 ;;
5547esac
5548
5549# Sed substitution that helps us do robust quoting. It backslashifies
5550# metacharacters that are still active within double-quoted strings.
mmentovai3261e8b2006-09-06 02:56:44 +00005551Xsed='sed -e 1s/^X//'
brynercb91a2f2006-08-25 21:14:45 +00005552sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5553
5554# Same as above, but do not quote variable references.
5555double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5556
5557# Sed substitution to delay expansion of an escaped shell variable in a
5558# double_quote_subst'ed string.
5559delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5560
5561# Sed substitution to avoid accidental globbing in evaled expressions
5562no_glob_subst='s/\*/\\\*/g'
5563
5564# Constants:
5565rm="rm -f"
5566
5567# Global variables:
5568default_ofile=libtool
5569can_build_shared=yes
5570
mmentovai3261e8b2006-09-06 02:56:44 +00005571# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00005572# which needs '.lib').
5573libext=a
5574ltmain="$ac_aux_dir/ltmain.sh"
5575ofile="$default_ofile"
5576with_gnu_ld="$lt_cv_prog_gnu_ld"
5577
5578if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5580set dummy ${ac_tool_prefix}ar; ac_word=$2
5581echo "$as_me:$LINENO: checking for $ac_word" >&5
5582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583if test "${ac_cv_prog_AR+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586 if test -n "$AR"; then
5587 ac_cv_prog_AR="$AR" # Let the user override the test.
5588else
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_AR="${ac_tool_prefix}ar"
5597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600done
5601done
5602
5603fi
5604fi
5605AR=$ac_cv_prog_AR
5606if test -n "$AR"; then
5607 echo "$as_me:$LINENO: result: $AR" >&5
5608echo "${ECHO_T}$AR" >&6
5609else
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
5612fi
5613
5614fi
5615if test -z "$ac_cv_prog_AR"; then
5616 ac_ct_AR=$AR
5617 # Extract the first word of "ar", so it can be a program name with args.
5618set dummy ar; ac_word=$2
5619echo "$as_me:$LINENO: checking for $ac_word" >&5
5620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 if test -n "$ac_ct_AR"; then
5625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_AR="ar"
5635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638done
5639done
5640
5641 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5642fi
5643fi
5644ac_ct_AR=$ac_cv_prog_ac_ct_AR
5645if test -n "$ac_ct_AR"; then
5646 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5647echo "${ECHO_T}$ac_ct_AR" >&6
5648else
5649 echo "$as_me:$LINENO: result: no" >&5
5650echo "${ECHO_T}no" >&6
5651fi
5652
5653 AR=$ac_ct_AR
5654else
5655 AR="$ac_cv_prog_AR"
5656fi
5657
5658if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5660set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5661echo "$as_me:$LINENO: checking for $ac_word" >&5
5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5663if test "${ac_cv_prog_RANLIB+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666 if test -n "$RANLIB"; then
5667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680done
5681done
5682
5683fi
5684fi
5685RANLIB=$ac_cv_prog_RANLIB
5686if test -n "$RANLIB"; then
5687 echo "$as_me:$LINENO: result: $RANLIB" >&5
5688echo "${ECHO_T}$RANLIB" >&6
5689else
5690 echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6
5692fi
5693
5694fi
5695if test -z "$ac_cv_prog_RANLIB"; then
5696 ac_ct_RANLIB=$RANLIB
5697 # Extract the first word of "ranlib", so it can be a program name with args.
5698set dummy ranlib; ac_word=$2
5699echo "$as_me:$LINENO: checking for $ac_word" >&5
5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704 if test -n "$ac_ct_RANLIB"; then
5705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_ac_ct_RANLIB="ranlib"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718done
5719done
5720
5721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5722fi
5723fi
5724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5725if test -n "$ac_ct_RANLIB"; then
5726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5727echo "${ECHO_T}$ac_ct_RANLIB" >&6
5728else
5729 echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6
5731fi
5732
5733 RANLIB=$ac_ct_RANLIB
5734else
5735 RANLIB="$ac_cv_prog_RANLIB"
5736fi
5737
5738if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5740set dummy ${ac_tool_prefix}strip; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_prog_STRIP+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 if test -n "$STRIP"; then
5747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761done
5762
5763fi
5764fi
5765STRIP=$ac_cv_prog_STRIP
5766if test -n "$STRIP"; then
5767 echo "$as_me:$LINENO: result: $STRIP" >&5
5768echo "${ECHO_T}$STRIP" >&6
5769else
5770 echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774fi
5775if test -z "$ac_cv_prog_STRIP"; then
5776 ac_ct_STRIP=$STRIP
5777 # Extract the first word of "strip", so it can be a program name with args.
5778set dummy strip; ac_word=$2
5779echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 if test -n "$ac_ct_STRIP"; then
5785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_STRIP="strip"
5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798done
5799done
5800
5801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5802fi
5803fi
5804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5805if test -n "$ac_ct_STRIP"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5807echo "${ECHO_T}$ac_ct_STRIP" >&6
5808else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813 STRIP=$ac_ct_STRIP
5814else
5815 STRIP="$ac_cv_prog_STRIP"
5816fi
5817
5818
5819old_CC="$CC"
5820old_CFLAGS="$CFLAGS"
5821
5822# Set sane defaults for various variables
5823test -z "$AR" && AR=ar
5824test -z "$AR_FLAGS" && AR_FLAGS=cru
5825test -z "$AS" && AS=as
5826test -z "$CC" && CC=cc
5827test -z "$LTCC" && LTCC=$CC
mmentovai3261e8b2006-09-06 02:56:44 +00005828test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00005829test -z "$DLLTOOL" && DLLTOOL=dlltool
5830test -z "$LD" && LD=ld
5831test -z "$LN_S" && LN_S="ln -s"
5832test -z "$MAGIC_CMD" && MAGIC_CMD=file
5833test -z "$NM" && NM=nm
5834test -z "$SED" && SED=sed
5835test -z "$OBJDUMP" && OBJDUMP=objdump
5836test -z "$RANLIB" && RANLIB=:
5837test -z "$STRIP" && STRIP=:
5838test -z "$ac_objext" && ac_objext=o
5839
5840# Determine commands to create old-style static archives.
5841old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5842old_postinstall_cmds='chmod 644 $oldlib'
5843old_postuninstall_cmds=
5844
5845if test -n "$RANLIB"; then
5846 case $host_os in
5847 openbsd*)
mmentovai3261e8b2006-09-06 02:56:44 +00005848 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00005849 ;;
5850 *)
mmentovai3261e8b2006-09-06 02:56:44 +00005851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00005852 ;;
5853 esac
5854 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5855fi
5856
mmentovai3261e8b2006-09-06 02:56:44 +00005857for cc_temp in $compiler""; do
5858 case $cc_temp in
5859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5861 \-*) ;;
5862 *) break;;
5863 esac
5864done
5865cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5866
5867
brynercb91a2f2006-08-25 21:14:45 +00005868# Only perform the check for file, if the check method requires it
5869case $deplibs_check_method in
5870file_magic*)
5871 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5872 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5873echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5874if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877 case $MAGIC_CMD in
5878[\\/*] | ?:[\\/]*)
5879 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5880 ;;
5881*)
5882 lt_save_MAGIC_CMD="$MAGIC_CMD"
5883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5884 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5885 for ac_dir in $ac_dummy; do
5886 IFS="$lt_save_ifs"
5887 test -z "$ac_dir" && ac_dir=.
5888 if test -f $ac_dir/${ac_tool_prefix}file; then
5889 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5890 if test -n "$file_magic_test_file"; then
5891 case $deplibs_check_method in
5892 "file_magic "*)
mmentovai3261e8b2006-09-06 02:56:44 +00005893 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00005894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5896 $EGREP "$file_magic_regex" > /dev/null; then
5897 :
5898 else
5899 cat <<EOF 1>&2
5900
5901*** Warning: the command libtool uses to detect shared libraries,
5902*** $file_magic_cmd, produces output that libtool cannot recognize.
5903*** The result is that libtool may fail to recognize shared libraries
5904*** as such. This will affect the creation of libtool libraries that
5905*** depend on shared libraries, but programs linked with such libtool
5906*** libraries will work regardless of this problem. Nevertheless, you
5907*** may want to report the problem to your system manager and/or to
5908*** bug-libtool@gnu.org
5909
5910EOF
5911 fi ;;
5912 esac
5913 fi
5914 break
5915 fi
5916 done
5917 IFS="$lt_save_ifs"
5918 MAGIC_CMD="$lt_save_MAGIC_CMD"
5919 ;;
5920esac
5921fi
5922
5923MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5924if test -n "$MAGIC_CMD"; then
5925 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5926echo "${ECHO_T}$MAGIC_CMD" >&6
5927else
5928 echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6
5930fi
5931
5932if test -z "$lt_cv_path_MAGIC_CMD"; then
5933 if test -n "$ac_tool_prefix"; then
5934 echo "$as_me:$LINENO: checking for file" >&5
5935echo $ECHO_N "checking for file... $ECHO_C" >&6
5936if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938else
5939 case $MAGIC_CMD in
5940[\\/*] | ?:[\\/]*)
5941 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5942 ;;
5943*)
5944 lt_save_MAGIC_CMD="$MAGIC_CMD"
5945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5947 for ac_dir in $ac_dummy; do
5948 IFS="$lt_save_ifs"
5949 test -z "$ac_dir" && ac_dir=.
5950 if test -f $ac_dir/file; then
5951 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5952 if test -n "$file_magic_test_file"; then
5953 case $deplibs_check_method in
5954 "file_magic "*)
mmentovai3261e8b2006-09-06 02:56:44 +00005955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00005956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5958 $EGREP "$file_magic_regex" > /dev/null; then
5959 :
5960 else
5961 cat <<EOF 1>&2
5962
5963*** Warning: the command libtool uses to detect shared libraries,
5964*** $file_magic_cmd, produces output that libtool cannot recognize.
5965*** The result is that libtool may fail to recognize shared libraries
5966*** as such. This will affect the creation of libtool libraries that
5967*** depend on shared libraries, but programs linked with such libtool
5968*** libraries will work regardless of this problem. Nevertheless, you
5969*** may want to report the problem to your system manager and/or to
5970*** bug-libtool@gnu.org
5971
5972EOF
5973 fi ;;
5974 esac
5975 fi
5976 break
5977 fi
5978 done
5979 IFS="$lt_save_ifs"
5980 MAGIC_CMD="$lt_save_MAGIC_CMD"
5981 ;;
5982esac
5983fi
5984
5985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5986if test -n "$MAGIC_CMD"; then
5987 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5988echo "${ECHO_T}$MAGIC_CMD" >&6
5989else
5990 echo "$as_me:$LINENO: result: no" >&5
5991echo "${ECHO_T}no" >&6
5992fi
5993
5994 else
5995 MAGIC_CMD=:
5996 fi
5997fi
5998
5999 fi
6000 ;;
6001esac
6002
6003enable_dlopen=no
6004enable_win32_dll=no
6005
6006# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6007if test "${enable_libtool_lock+set}" = set; then
6008 enableval="$enable_libtool_lock"
6009
6010fi;
6011test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6012
6013
6014# Check whether --with-pic or --without-pic was given.
6015if test "${with_pic+set}" = set; then
6016 withval="$with_pic"
6017 pic_mode="$withval"
6018else
6019 pic_mode=default
6020fi;
6021test -z "$pic_mode" && pic_mode=default
6022
6023# Use C for the default configuration in the libtool script
6024tagname=
6025lt_save_CC="$CC"
6026ac_ext=c
6027ac_cpp='$CPP $CPPFLAGS'
6028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031
6032
6033# Source file extension for C test sources.
6034ac_ext=c
6035
6036# Object file extension for compiled C test sources.
6037objext=o
6038objext=$objext
6039
6040# Code to be used in simple compile tests
6041lt_simple_compile_test_code="int some_variable = 0;\n"
6042
6043# Code to be used in simple link tests
6044lt_simple_link_test_code='int main(){return(0);}\n'
6045
6046
6047# If no C compiler was specified, use CC.
6048LTCC=${LTCC-"$CC"}
6049
mmentovai3261e8b2006-09-06 02:56:44 +00006050# If no C compiler flags were specified, use CFLAGS.
6051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6052
brynercb91a2f2006-08-25 21:14:45 +00006053# Allow CC to be a program name with arguments.
6054compiler=$CC
6055
6056
mmentovai3261e8b2006-09-06 02:56:44 +00006057# save warnings/boilerplate of simple test code
6058ac_outfile=conftest.$ac_objext
6059printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6060eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6061_lt_compiler_boilerplate=`cat conftest.err`
6062$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00006063
mmentovai3261e8b2006-09-06 02:56:44 +00006064ac_outfile=conftest.$ac_objext
6065printf "$lt_simple_link_test_code" >conftest.$ac_ext
6066eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6067_lt_linker_boilerplate=`cat conftest.err`
6068$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00006069
6070
6071
6072lt_prog_compiler_no_builtin_flag=
6073
6074if test "$GCC" = yes; then
6075 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6076
6077
6078echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6079echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6080if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082else
6083 lt_cv_prog_compiler_rtti_exceptions=no
6084 ac_outfile=conftest.$ac_objext
6085 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6086 lt_compiler_flag="-fno-rtti -fno-exceptions"
6087 # Insert the option either (1) after the last *FLAGS variable, or
6088 # (2) before a word containing "conftest.", or (3) at the end.
6089 # Note that $ac_compile itself does not contain backslashes and begins
6090 # with a dollar sign (not a hyphen), so the echo should work correctly.
6091 # The option is referenced via a variable to avoid confusing sed.
6092 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +00006093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00006094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6095 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +00006096 (eval echo "\"\$as_me:6096: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00006097 (eval "$lt_compile" 2>conftest.err)
6098 ac_status=$?
6099 cat conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +00006100 echo "$as_me:6100: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00006101 if (exit $ac_status) && test -s "$ac_outfile"; then
6102 # The compiler can only warn and ignore the option if not recognized
mmentovai3261e8b2006-09-06 02:56:44 +00006103 # So say no if there are warnings other than the usual output.
6104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00006107 lt_cv_prog_compiler_rtti_exceptions=yes
6108 fi
6109 fi
6110 $rm conftest*
6111
6112fi
6113echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6114echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6115
6116if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6117 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6118else
6119 :
6120fi
6121
6122fi
6123
6124lt_prog_compiler_wl=
6125lt_prog_compiler_pic=
6126lt_prog_compiler_static=
6127
6128echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6129echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6130
6131 if test "$GCC" = yes; then
6132 lt_prog_compiler_wl='-Wl,'
6133 lt_prog_compiler_static='-static'
6134
6135 case $host_os in
6136 aix*)
6137 # All AIX code is PIC.
6138 if test "$host_cpu" = ia64; then
6139 # AIX 5 now supports IA64 processor
6140 lt_prog_compiler_static='-Bstatic'
6141 fi
6142 ;;
6143
6144 amigaos*)
6145 # FIXME: we need at least 68020 code to build shared libraries, but
6146 # adding the `-m68020' flag to GCC prevents building anything better,
6147 # like `-m68040'.
6148 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6149 ;;
6150
6151 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6152 # PIC is the default for these OSes.
6153 ;;
6154
6155 mingw* | pw32* | os2*)
6156 # This hack is so that the source file can tell whether it is being
6157 # built for inclusion in a dll (and should export symbols for example).
6158 lt_prog_compiler_pic='-DDLL_EXPORT'
6159 ;;
6160
6161 darwin* | rhapsody*)
6162 # PIC is the default on this platform
6163 # Common symbols not allowed in MH_DYLIB files
6164 lt_prog_compiler_pic='-fno-common'
6165 ;;
6166
mmentovai3261e8b2006-09-06 02:56:44 +00006167 interix3*)
6168 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6169 # Instead, we relocate shared libraries at runtime.
6170 ;;
6171
brynercb91a2f2006-08-25 21:14:45 +00006172 msdosdjgpp*)
6173 # Just because we use GCC doesn't mean we suddenly get shared libraries
6174 # on systems that don't support them.
6175 lt_prog_compiler_can_build_shared=no
6176 enable_shared=no
6177 ;;
6178
6179 sysv4*MP*)
6180 if test -d /usr/nec; then
6181 lt_prog_compiler_pic=-Kconform_pic
6182 fi
6183 ;;
6184
6185 hpux*)
6186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6187 # not for PA HP-UX.
mmentovai3261e8b2006-09-06 02:56:44 +00006188 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00006189 hppa*64*|ia64*)
6190 # +Z the default
6191 ;;
6192 *)
6193 lt_prog_compiler_pic='-fPIC'
6194 ;;
6195 esac
6196 ;;
6197
6198 *)
6199 lt_prog_compiler_pic='-fPIC'
6200 ;;
6201 esac
6202 else
6203 # PORTME Check for flag to pass linker flags through the system compiler.
6204 case $host_os in
6205 aix*)
6206 lt_prog_compiler_wl='-Wl,'
6207 if test "$host_cpu" = ia64; then
6208 # AIX 5 now supports IA64 processor
6209 lt_prog_compiler_static='-Bstatic'
6210 else
6211 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6212 fi
6213 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00006214 darwin*)
6215 # PIC is the default on this platform
6216 # Common symbols not allowed in MH_DYLIB files
6217 case $cc_basename in
6218 xlc*)
6219 lt_prog_compiler_pic='-qnocommon'
6220 lt_prog_compiler_wl='-Wl,'
6221 ;;
6222 esac
6223 ;;
brynercb91a2f2006-08-25 21:14:45 +00006224
6225 mingw* | pw32* | os2*)
6226 # This hack is so that the source file can tell whether it is being
6227 # built for inclusion in a dll (and should export symbols for example).
6228 lt_prog_compiler_pic='-DDLL_EXPORT'
6229 ;;
6230
6231 hpux9* | hpux10* | hpux11*)
6232 lt_prog_compiler_wl='-Wl,'
6233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6234 # not for PA HP-UX.
mmentovai3261e8b2006-09-06 02:56:44 +00006235 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00006236 hppa*64*|ia64*)
6237 # +Z the default
6238 ;;
6239 *)
6240 lt_prog_compiler_pic='+Z'
6241 ;;
6242 esac
6243 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6244 lt_prog_compiler_static='${wl}-a ${wl}archive'
6245 ;;
6246
6247 irix5* | irix6* | nonstopux*)
6248 lt_prog_compiler_wl='-Wl,'
6249 # PIC (with -KPIC) is the default.
6250 lt_prog_compiler_static='-non_shared'
6251 ;;
6252
6253 newsos6)
6254 lt_prog_compiler_pic='-KPIC'
6255 lt_prog_compiler_static='-Bstatic'
6256 ;;
6257
6258 linux*)
mmentovai3261e8b2006-09-06 02:56:44 +00006259 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +00006260 icc* | ecc*)
6261 lt_prog_compiler_wl='-Wl,'
6262 lt_prog_compiler_pic='-KPIC'
6263 lt_prog_compiler_static='-static'
6264 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00006265 pgcc* | pgf77* | pgf90* | pgf95*)
6266 # Portland Group compilers (*not* the Pentium gcc compiler,
6267 # which looks to be a dead project)
6268 lt_prog_compiler_wl='-Wl,'
6269 lt_prog_compiler_pic='-fpic'
6270 lt_prog_compiler_static='-Bstatic'
6271 ;;
brynercb91a2f2006-08-25 21:14:45 +00006272 ccc*)
6273 lt_prog_compiler_wl='-Wl,'
6274 # All Alpha code is PIC.
6275 lt_prog_compiler_static='-non_shared'
6276 ;;
6277 esac
6278 ;;
6279
6280 osf3* | osf4* | osf5*)
6281 lt_prog_compiler_wl='-Wl,'
6282 # All OSF/1 code is PIC.
6283 lt_prog_compiler_static='-non_shared'
6284 ;;
6285
brynercb91a2f2006-08-25 21:14:45 +00006286 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006287 lt_prog_compiler_pic='-KPIC'
6288 lt_prog_compiler_static='-Bstatic'
mmentovai3261e8b2006-09-06 02:56:44 +00006289 case $cc_basename in
6290 f77* | f90* | f95*)
6291 lt_prog_compiler_wl='-Qoption ld ';;
6292 *)
6293 lt_prog_compiler_wl='-Wl,';;
6294 esac
brynercb91a2f2006-08-25 21:14:45 +00006295 ;;
6296
6297 sunos4*)
6298 lt_prog_compiler_wl='-Qoption ld '
6299 lt_prog_compiler_pic='-PIC'
6300 lt_prog_compiler_static='-Bstatic'
6301 ;;
6302
mmentovai3261e8b2006-09-06 02:56:44 +00006303 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00006304 lt_prog_compiler_wl='-Wl,'
6305 lt_prog_compiler_pic='-KPIC'
6306 lt_prog_compiler_static='-Bstatic'
6307 ;;
6308
6309 sysv4*MP*)
6310 if test -d /usr/nec ;then
6311 lt_prog_compiler_pic='-Kconform_pic'
6312 lt_prog_compiler_static='-Bstatic'
6313 fi
6314 ;;
6315
mmentovai3261e8b2006-09-06 02:56:44 +00006316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6317 lt_prog_compiler_wl='-Wl,'
6318 lt_prog_compiler_pic='-KPIC'
6319 lt_prog_compiler_static='-Bstatic'
6320 ;;
6321
6322 unicos*)
6323 lt_prog_compiler_wl='-Wl,'
6324 lt_prog_compiler_can_build_shared=no
6325 ;;
6326
brynercb91a2f2006-08-25 21:14:45 +00006327 uts4*)
6328 lt_prog_compiler_pic='-pic'
6329 lt_prog_compiler_static='-Bstatic'
6330 ;;
6331
6332 *)
6333 lt_prog_compiler_can_build_shared=no
6334 ;;
6335 esac
6336 fi
6337
6338echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6339echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6340
6341#
6342# Check to make sure the PIC flag actually works.
6343#
6344if test -n "$lt_prog_compiler_pic"; then
6345
6346echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6347echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6348if test "${lt_prog_compiler_pic_works+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351 lt_prog_compiler_pic_works=no
6352 ac_outfile=conftest.$ac_objext
6353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6354 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6355 # Insert the option either (1) after the last *FLAGS variable, or
6356 # (2) before a word containing "conftest.", or (3) at the end.
6357 # Note that $ac_compile itself does not contain backslashes and begins
6358 # with a dollar sign (not a hyphen), so the echo should work correctly.
6359 # The option is referenced via a variable to avoid confusing sed.
6360 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +00006361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00006362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6363 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +00006364 (eval echo "\"\$as_me:6364: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00006365 (eval "$lt_compile" 2>conftest.err)
6366 ac_status=$?
6367 cat conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +00006368 echo "$as_me:6368: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00006369 if (exit $ac_status) && test -s "$ac_outfile"; then
6370 # The compiler can only warn and ignore the option if not recognized
mmentovai3261e8b2006-09-06 02:56:44 +00006371 # So say no if there are warnings other than the usual output.
6372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00006375 lt_prog_compiler_pic_works=yes
6376 fi
6377 fi
6378 $rm conftest*
6379
6380fi
6381echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6382echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6383
6384if test x"$lt_prog_compiler_pic_works" = xyes; then
6385 case $lt_prog_compiler_pic in
6386 "" | " "*) ;;
6387 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6388 esac
6389else
6390 lt_prog_compiler_pic=
6391 lt_prog_compiler_can_build_shared=no
6392fi
6393
6394fi
mmentovai3261e8b2006-09-06 02:56:44 +00006395case $host_os in
brynercb91a2f2006-08-25 21:14:45 +00006396 # For platforms which do not support PIC, -DPIC is meaningless:
6397 *djgpp*)
6398 lt_prog_compiler_pic=
6399 ;;
6400 *)
6401 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6402 ;;
6403esac
6404
mmentovai3261e8b2006-09-06 02:56:44 +00006405#
6406# Check to make sure the static flag actually works.
6407#
6408wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6409echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6410echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6411if test "${lt_prog_compiler_static_works+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414 lt_prog_compiler_static_works=no
6415 save_LDFLAGS="$LDFLAGS"
6416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6417 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6419 # The linker can only warn and ignore the option if not recognized
6420 # So say no if there are warnings
6421 if test -s conftest.err; then
6422 # Append any errors to the config.log.
6423 cat conftest.err 1>&5
6424 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6426 if diff conftest.exp conftest.er2 >/dev/null; then
6427 lt_prog_compiler_static_works=yes
6428 fi
6429 else
6430 lt_prog_compiler_static_works=yes
6431 fi
6432 fi
6433 $rm conftest*
6434 LDFLAGS="$save_LDFLAGS"
6435
6436fi
6437echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6438echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6439
6440if test x"$lt_prog_compiler_static_works" = xyes; then
6441 :
6442else
6443 lt_prog_compiler_static=
6444fi
6445
6446
brynercb91a2f2006-08-25 21:14:45 +00006447echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6448echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6449if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452 lt_cv_prog_compiler_c_o=no
6453 $rm -r conftest 2>/dev/null
6454 mkdir conftest
6455 cd conftest
6456 mkdir out
6457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6458
6459 lt_compiler_flag="-o out/conftest2.$ac_objext"
6460 # Insert the option either (1) after the last *FLAGS variable, or
6461 # (2) before a word containing "conftest.", or (3) at the end.
6462 # Note that $ac_compile itself does not contain backslashes and begins
6463 # with a dollar sign (not a hyphen), so the echo should work correctly.
6464 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +00006465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00006466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6467 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +00006468 (eval echo "\"\$as_me:6468: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00006469 (eval "$lt_compile" 2>out/conftest.err)
6470 ac_status=$?
6471 cat out/conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +00006472 echo "$as_me:6472: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00006473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6474 then
6475 # The compiler can only warn and ignore the option if not recognized
6476 # So say no if there are warnings
mmentovai3261e8b2006-09-06 02:56:44 +00006477 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00006480 lt_cv_prog_compiler_c_o=yes
6481 fi
6482 fi
mmentovai3261e8b2006-09-06 02:56:44 +00006483 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +00006484 $rm conftest*
6485 # SGI C++ compiler will create directory out/ii_files/ for
6486 # template instantiation
6487 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6488 $rm out/* && rmdir out
6489 cd ..
6490 rmdir conftest
6491 $rm conftest*
6492
6493fi
6494echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6495echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6496
6497
6498hard_links="nottested"
6499if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6500 # do not overwrite the value of need_locks provided by the user
6501 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6502echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6503 hard_links=yes
6504 $rm conftest*
6505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6506 touch conftest.a
6507 ln conftest.a conftest.b 2>&5 || hard_links=no
6508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6509 echo "$as_me:$LINENO: result: $hard_links" >&5
6510echo "${ECHO_T}$hard_links" >&6
6511 if test "$hard_links" = no; then
6512 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6513echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6514 need_locks=warn
6515 fi
6516else
6517 need_locks=no
6518fi
6519
6520echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6521echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6522
6523 runpath_var=
6524 allow_undefined_flag=
6525 enable_shared_with_static_runtimes=no
6526 archive_cmds=
6527 archive_expsym_cmds=
6528 old_archive_From_new_cmds=
6529 old_archive_from_expsyms_cmds=
6530 export_dynamic_flag_spec=
6531 whole_archive_flag_spec=
6532 thread_safe_flag_spec=
6533 hardcode_libdir_flag_spec=
6534 hardcode_libdir_flag_spec_ld=
6535 hardcode_libdir_separator=
6536 hardcode_direct=no
6537 hardcode_minus_L=no
6538 hardcode_shlibpath_var=unsupported
6539 link_all_deplibs=unknown
6540 hardcode_automatic=no
6541 module_cmds=
6542 module_expsym_cmds=
6543 always_export_symbols=no
6544 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6545 # include_expsyms should be a list of space-separated symbols to be *always*
6546 # included in the symbol list
6547 include_expsyms=
6548 # exclude_expsyms can be an extended regexp of symbols to exclude
6549 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6550 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6551 # as well as any symbol that contains `d'.
6552 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6553 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6554 # platforms (ab)use it in PIC code, but their linkers get confused if
6555 # the symbol is explicitly referenced. Since portable code cannot
6556 # rely on this symbol name, it's probably fine to never include it in
6557 # preloaded symbol tables.
6558 extract_expsyms_cmds=
mmentovai3261e8b2006-09-06 02:56:44 +00006559 # Just being paranoid about ensuring that cc_basename is set.
6560 for cc_temp in $compiler""; do
6561 case $cc_temp in
6562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6564 \-*) ;;
6565 *) break;;
6566 esac
6567done
6568cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +00006569
6570 case $host_os in
6571 cygwin* | mingw* | pw32*)
6572 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6573 # When not using gcc, we currently assume that we are using
6574 # Microsoft Visual C++.
6575 if test "$GCC" != yes; then
6576 with_gnu_ld=no
6577 fi
6578 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00006579 interix*)
6580 # we just hope/assume this is gcc and not c89 (= MSVC++)
6581 with_gnu_ld=yes
6582 ;;
brynercb91a2f2006-08-25 21:14:45 +00006583 openbsd*)
6584 with_gnu_ld=no
6585 ;;
6586 esac
6587
6588 ld_shlibs=yes
6589 if test "$with_gnu_ld" = yes; then
6590 # If archive_cmds runs LD, not CC, wlarc should be empty
6591 wlarc='${wl}'
6592
mmentovai3261e8b2006-09-06 02:56:44 +00006593 # Set some defaults for GNU ld with shared library support. These
6594 # are reset later if shared libraries are not supported. Putting them
6595 # here allows them to be overridden if necessary.
6596 runpath_var=LD_RUN_PATH
6597 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6598 export_dynamic_flag_spec='${wl}--export-dynamic'
6599 # ancient GNU ld didn't support --whole-archive et. al.
6600 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6601 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6602 else
6603 whole_archive_flag_spec=
6604 fi
6605 supports_anon_versioning=no
6606 case `$LD -v 2>/dev/null` in
6607 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6610 *\ 2.11.*) ;; # other 2.11 versions
6611 *) supports_anon_versioning=yes ;;
6612 esac
6613
brynercb91a2f2006-08-25 21:14:45 +00006614 # See if GNU ld supports shared libraries.
6615 case $host_os in
6616 aix3* | aix4* | aix5*)
6617 # On AIX/PPC, the GNU linker is very broken
6618 if test "$host_cpu" != ia64; then
6619 ld_shlibs=no
6620 cat <<EOF 1>&2
6621
6622*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6623*** to be unable to reliably create shared libraries on AIX.
6624*** Therefore, libtool is disabling shared libraries support. If you
6625*** really care for shared libraries, you may want to modify your PATH
6626*** so that a non-GNU linker is found, and then restart.
6627
6628EOF
6629 fi
6630 ;;
6631
6632 amigaos*)
6633 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)'
6634 hardcode_libdir_flag_spec='-L$libdir'
6635 hardcode_minus_L=yes
6636
6637 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6638 # that the semantics of dynamic libraries on AmigaOS, at least up
6639 # to version 4, is to share data among multiple programs linked
6640 # with the same dynamic library. Since this doesn't match the
6641 # behavior of shared libraries on other platforms, we can't use
6642 # them.
6643 ld_shlibs=no
6644 ;;
6645
6646 beos*)
6647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6648 allow_undefined_flag=unsupported
6649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6650 # support --undefined. This deserves some investigation. FIXME
6651 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6652 else
6653 ld_shlibs=no
6654 fi
6655 ;;
6656
6657 cygwin* | mingw* | pw32*)
6658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6659 # as there is no search path for DLLs.
6660 hardcode_libdir_flag_spec='-L$libdir'
6661 allow_undefined_flag=unsupported
6662 always_export_symbols=no
6663 enable_shared_with_static_runtimes=yes
mmentovai3261e8b2006-09-06 02:56:44 +00006664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00006665
6666 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai3261e8b2006-09-06 02:56:44 +00006667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00006668 # If the export-symbols file already is a .def file (1st line
6669 # is EXPORTS), use it as is; otherwise, prepend...
6670 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6671 cp $export_symbols $output_objdir/$soname.def;
6672 else
6673 echo EXPORTS > $output_objdir/$soname.def;
6674 cat $export_symbols >> $output_objdir/$soname.def;
6675 fi~
mmentovai3261e8b2006-09-06 02:56:44 +00006676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00006677 else
6678 ld_shlibs=no
6679 fi
6680 ;;
6681
mmentovai3261e8b2006-09-06 02:56:44 +00006682 interix3*)
6683 hardcode_direct=no
6684 hardcode_shlibpath_var=no
6685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6686 export_dynamic_flag_spec='${wl}-E'
6687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6688 # Instead, shared libraries are loaded at an image base (0x10000000 by
6689 # default) and relocated if they conflict, which is a slow very memory
6690 # consuming and fragmenting process. To avoid this, we pick a random,
6691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6694 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6695 ;;
6696
6697 linux*)
6698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6699 tmp_addflag=
6700 case $cc_basename,$host_cpu in
6701 pgcc*) # Portland Group C compiler
6702 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6703 tmp_addflag=' $pic_flag'
6704 ;;
6705 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6706 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6707 tmp_addflag=' $pic_flag -Mnomain' ;;
6708 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6709 tmp_addflag=' -i_dynamic' ;;
6710 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6711 tmp_addflag=' -i_dynamic -nofor_main' ;;
6712 ifc* | ifort*) # Intel Fortran compiler
6713 tmp_addflag=' -nofor_main' ;;
6714 esac
6715 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6716
6717 if test $supports_anon_versioning = yes; then
6718 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6720 $echo "local: *; };" >> $output_objdir/$libname.ver~
6721 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6722 fi
6723 else
6724 ld_shlibs=no
6725 fi
6726 ;;
6727
6728 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00006729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6730 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6731 wlarc=
6732 else
6733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6735 fi
6736 ;;
6737
mmentovai3261e8b2006-09-06 02:56:44 +00006738 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006739 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6740 ld_shlibs=no
6741 cat <<EOF 1>&2
6742
6743*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6744*** create shared libraries on Solaris systems. Therefore, libtool
6745*** is disabling shared libraries support. We urge you to upgrade GNU
6746*** binutils to release 2.9.1 or newer. Another option is to modify
6747*** your PATH or compiler configuration so that the native linker is
6748*** used, and then restart.
6749
6750EOF
6751 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6754 else
6755 ld_shlibs=no
6756 fi
6757 ;;
6758
mmentovai3261e8b2006-09-06 02:56:44 +00006759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6760 case `$LD -v 2>&1` in
6761 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6762 ld_shlibs=no
6763 cat <<_LT_EOF 1>&2
6764
6765*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6766*** reliably create shared libraries on SCO systems. Therefore, libtool
6767*** is disabling shared libraries support. We urge you to upgrade GNU
6768*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6769*** your PATH or compiler configuration so that the native linker is
6770*** used, and then restart.
6771
6772_LT_EOF
6773 ;;
6774 *)
6775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6779 else
6780 ld_shlibs=no
6781 fi
6782 ;;
6783 esac
6784 ;;
6785
brynercb91a2f2006-08-25 21:14:45 +00006786 sunos4*)
6787 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6788 wlarc=
6789 hardcode_direct=yes
6790 hardcode_shlibpath_var=no
6791 ;;
6792
brynercb91a2f2006-08-25 21:14:45 +00006793 *)
6794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6797 else
6798 ld_shlibs=no
6799 fi
6800 ;;
6801 esac
6802
mmentovai3261e8b2006-09-06 02:56:44 +00006803 if test "$ld_shlibs" = no; then
6804 runpath_var=
6805 hardcode_libdir_flag_spec=
6806 export_dynamic_flag_spec=
6807 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00006808 fi
6809 else
6810 # PORTME fill in a description of your system's linker (not GNU ld)
6811 case $host_os in
6812 aix3*)
6813 allow_undefined_flag=unsupported
6814 always_export_symbols=yes
6815 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'
6816 # Note: this linker hardcodes the directories in LIBPATH if there
6817 # are no directories specified by -L.
6818 hardcode_minus_L=yes
mmentovai3261e8b2006-09-06 02:56:44 +00006819 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00006820 # Neither direct hardcoding nor static linking is supported with a
6821 # broken collect2.
6822 hardcode_direct=unsupported
6823 fi
6824 ;;
6825
6826 aix4* | aix5*)
6827 if test "$host_cpu" = ia64; then
6828 # On IA64, the linker does run time linking by default, so we don't
6829 # have to do anything special.
6830 aix_use_runtimelinking=no
6831 exp_sym_flag='-Bexport'
6832 no_entry_flag=""
6833 else
6834 # If we're using GNU nm, then we don't want the "-C" option.
6835 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6836 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6837 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'
6838 else
6839 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'
6840 fi
6841 aix_use_runtimelinking=no
6842
6843 # Test if we are trying to use run time linking or normal
6844 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6845 # need to do runtime linking.
6846 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6847 for ld_flag in $LDFLAGS; do
6848 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6849 aix_use_runtimelinking=yes
6850 break
6851 fi
6852 done
mmentovai3261e8b2006-09-06 02:56:44 +00006853 ;;
brynercb91a2f2006-08-25 21:14:45 +00006854 esac
6855
6856 exp_sym_flag='-bexport'
6857 no_entry_flag='-bnoentry'
6858 fi
6859
6860 # When large executables or shared objects are built, AIX ld can
6861 # have problems creating the table of contents. If linking a library
6862 # or program results in "error TOC overflow" add -mminimal-toc to
6863 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6864 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6865
6866 archive_cmds=''
6867 hardcode_direct=yes
6868 hardcode_libdir_separator=':'
6869 link_all_deplibs=yes
6870
6871 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +00006872 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00006873 # We only want to do this on AIX 4.2 and lower, the check
6874 # below for broken collect2 doesn't work under 4.3+
6875 collect2name=`${CC} -print-prog-name=collect2`
6876 if test -f "$collect2name" && \
6877 strings "$collect2name" | grep resolve_lib_name >/dev/null
6878 then
6879 # We have reworked collect2
6880 hardcode_direct=yes
6881 else
6882 # We have old collect2
6883 hardcode_direct=unsupported
6884 # It fails to find uninstalled libraries when the uninstalled
6885 # path is not listed in the libpath. Setting hardcode_minus_L
6886 # to unsupported forces relinking
6887 hardcode_minus_L=yes
6888 hardcode_libdir_flag_spec='-L$libdir'
6889 hardcode_libdir_separator=
6890 fi
mmentovai3261e8b2006-09-06 02:56:44 +00006891 ;;
brynercb91a2f2006-08-25 21:14:45 +00006892 esac
6893 shared_flag='-shared'
mmentovai3261e8b2006-09-06 02:56:44 +00006894 if test "$aix_use_runtimelinking" = yes; then
6895 shared_flag="$shared_flag "'${wl}-G'
6896 fi
brynercb91a2f2006-08-25 21:14:45 +00006897 else
6898 # not using gcc
6899 if test "$host_cpu" = ia64; then
6900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6901 # chokes on -Wl,-G. The following line is correct:
6902 shared_flag='-G'
6903 else
mmentovai3261e8b2006-09-06 02:56:44 +00006904 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00006905 shared_flag='${wl}-G'
6906 else
6907 shared_flag='${wl}-bM:SRE'
mmentovai3261e8b2006-09-06 02:56:44 +00006908 fi
brynercb91a2f2006-08-25 21:14:45 +00006909 fi
6910 fi
6911
6912 # It seems that -bexpall does not export symbols beginning with
6913 # underscore (_), so it is better to generate a list of symbols to export.
6914 always_export_symbols=yes
6915 if test "$aix_use_runtimelinking" = yes; then
6916 # Warning - without using the other runtime loading flags (-brtl),
6917 # -berok will link without error, but may produce a broken library.
6918 allow_undefined_flag='-berok'
6919 # Determine the default libpath from the value encoded in an empty executable.
6920 cat >conftest.$ac_ext <<_ACEOF
6921/* confdefs.h. */
6922_ACEOF
6923cat confdefs.h >>conftest.$ac_ext
6924cat >>conftest.$ac_ext <<_ACEOF
6925/* end confdefs.h. */
6926
6927int
6928main ()
6929{
6930
6931 ;
6932 return 0;
6933}
6934_ACEOF
6935rm -f conftest.$ac_objext conftest$ac_exeext
6936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 (eval $ac_link) 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00006944 { ac_try='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00006946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest$ac_exeext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957
6958aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6959}'`
6960# Check for a 64-bit object if we didn't find anything.
6961if 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; }
6962}'`; fi
6963else
6964 echo "$as_me: failed program was:" >&5
6965sed 's/^/| /' conftest.$ac_ext >&5
6966
6967fi
6968rm -f conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6970if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6971
6972 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai3261e8b2006-09-06 02:56:44 +00006973 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
brynercb91a2f2006-08-25 21:14:45 +00006974 else
6975 if test "$host_cpu" = ia64; then
6976 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6977 allow_undefined_flag="-z nodefs"
mmentovai3261e8b2006-09-06 02:56:44 +00006978 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
brynercb91a2f2006-08-25 21:14:45 +00006979 else
6980 # Determine the default libpath from the value encoded in an empty executable.
6981 cat >conftest.$ac_ext <<_ACEOF
6982/* confdefs.h. */
6983_ACEOF
6984cat confdefs.h >>conftest.$ac_ext
6985cat >>conftest.$ac_ext <<_ACEOF
6986/* end confdefs.h. */
6987
6988int
6989main ()
6990{
6991
6992 ;
6993 return 0;
6994}
6995_ACEOF
6996rm -f conftest.$ac_objext conftest$ac_exeext
6997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998 (eval $ac_link) 2>conftest.er1
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00007005 { ac_try='test -z "$ac_c_werror_flag"
7006 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00007007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; } &&
7012 { ac_try='test -s conftest$ac_exeext'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 (eval $ac_try) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018
7019aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7020}'`
7021# Check for a 64-bit object if we didn't find anything.
7022if 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; }
7023}'`; fi
7024else
7025 echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028fi
7029rm -f conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7032
7033 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7034 # Warning - without using the other run time loading flags,
7035 # -berok will link without error, but may produce a broken library.
7036 no_undefined_flag=' ${wl}-bernotok'
7037 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00007038 # Exported symbols can be pulled into shared objects from archives
mmentovai3261e8b2006-09-06 02:56:44 +00007039 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00007040 archive_cmds_need_lc=yes
mmentovai3261e8b2006-09-06 02:56:44 +00007041 # This is similar to how AIX traditionally builds its shared libraries.
7042 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
brynercb91a2f2006-08-25 21:14:45 +00007043 fi
7044 fi
7045 ;;
7046
7047 amigaos*)
7048 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)'
7049 hardcode_libdir_flag_spec='-L$libdir'
7050 hardcode_minus_L=yes
7051 # see comment about different semantics on the GNU ld section
7052 ld_shlibs=no
7053 ;;
7054
mmentovai3261e8b2006-09-06 02:56:44 +00007055 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00007056 export_dynamic_flag_spec=-rdynamic
7057 ;;
7058
7059 cygwin* | mingw* | pw32*)
7060 # When not using gcc, we currently assume that we are using
7061 # Microsoft Visual C++.
7062 # hardcode_libdir_flag_spec is actually meaningless, as there is
7063 # no search path for DLLs.
7064 hardcode_libdir_flag_spec=' '
7065 allow_undefined_flag=unsupported
7066 # Tell ltmain to make .lib files, not .a files.
7067 libext=lib
7068 # Tell ltmain to make .dll files, not .so files.
7069 shrext_cmds=".dll"
7070 # FIXME: Setting linknames here is a bad hack.
7071 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7072 # The linker will automatically build a .lib file if we build a DLL.
7073 old_archive_From_new_cmds='true'
7074 # FIXME: Should let the user specify the lib program.
7075 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7076 fix_srcfile_path='`cygpath -w "$srcfile"`'
7077 enable_shared_with_static_runtimes=yes
7078 ;;
7079
7080 darwin* | rhapsody*)
mmentovai3261e8b2006-09-06 02:56:44 +00007081 case $host_os in
7082 rhapsody* | darwin1.[012])
7083 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7084 ;;
7085 *) # Darwin 1.3 on
7086 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7087 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7088 else
7089 case ${MACOSX_DEPLOYMENT_TARGET} in
7090 10.[012])
7091 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7092 ;;
7093 10.*)
7094 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7095 ;;
7096 esac
7097 fi
7098 ;;
bryner07f8ef52006-09-05 19:42:57 +00007099 esac
mmentovai3261e8b2006-09-06 02:56:44 +00007100 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00007101 hardcode_direct=no
7102 hardcode_automatic=yes
7103 hardcode_shlibpath_var=unsupported
mmentovai3261e8b2006-09-06 02:56:44 +00007104 whole_archive_flag_spec=''
brynercb91a2f2006-08-25 21:14:45 +00007105 link_all_deplibs=yes
mmentovai3261e8b2006-09-06 02:56:44 +00007106 if test "$GCC" = yes ; then
7107 output_verbose_link_cmd='echo'
7108 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7109 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7110 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7111 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}'
7112 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +00007113 else
mmentovai3261e8b2006-09-06 02:56:44 +00007114 case $cc_basename in
7115 xlc*)
7116 output_verbose_link_cmd='echo'
7117 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7118 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7120 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7121 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7122 ;;
7123 *)
7124 ld_shlibs=no
7125 ;;
7126 esac
brynercb91a2f2006-08-25 21:14:45 +00007127 fi
7128 ;;
7129
7130 dgux*)
7131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7132 hardcode_libdir_flag_spec='-L$libdir'
7133 hardcode_shlibpath_var=no
7134 ;;
7135
7136 freebsd1*)
7137 ld_shlibs=no
7138 ;;
7139
7140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7141 # support. Future versions do this automatically, but an explicit c++rt0.o
7142 # does not break anything, and helps significantly (at the cost of a little
7143 # extra space).
7144 freebsd2.2*)
7145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7146 hardcode_libdir_flag_spec='-R$libdir'
7147 hardcode_direct=yes
7148 hardcode_shlibpath_var=no
7149 ;;
7150
7151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7152 freebsd2*)
7153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7154 hardcode_direct=yes
7155 hardcode_minus_L=yes
7156 hardcode_shlibpath_var=no
7157 ;;
7158
7159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai3261e8b2006-09-06 02:56:44 +00007160 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00007161 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7162 hardcode_libdir_flag_spec='-R$libdir'
7163 hardcode_direct=yes
7164 hardcode_shlibpath_var=no
7165 ;;
7166
7167 hpux9*)
7168 if test "$GCC" = yes; then
7169 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'
7170 else
7171 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'
7172 fi
7173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7174 hardcode_libdir_separator=:
7175 hardcode_direct=yes
7176
7177 # hardcode_minus_L: Not really in the search PATH,
7178 # but as the default location of the library.
7179 hardcode_minus_L=yes
7180 export_dynamic_flag_spec='${wl}-E'
7181 ;;
7182
mmentovai3261e8b2006-09-06 02:56:44 +00007183 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00007184 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai3261e8b2006-09-06 02:56:44 +00007185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7186 else
7187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7188 fi
7189 if test "$with_gnu_ld" = no; then
7190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7191 hardcode_libdir_separator=:
7192
7193 hardcode_direct=yes
7194 export_dynamic_flag_spec='${wl}-E'
7195
7196 # hardcode_minus_L: Not really in the search PATH,
7197 # but as the default location of the library.
7198 hardcode_minus_L=yes
7199 fi
7200 ;;
7201
7202 hpux11*)
7203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7204 case $host_cpu in
7205 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00007206 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7207 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00007208 ia64*)
7209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7210 ;;
brynercb91a2f2006-08-25 21:14:45 +00007211 *)
7212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7213 ;;
7214 esac
7215 else
mmentovai3261e8b2006-09-06 02:56:44 +00007216 case $host_cpu in
7217 hppa*64*)
7218 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7219 ;;
7220 ia64*)
7221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00007222 ;;
7223 *)
mmentovai3261e8b2006-09-06 02:56:44 +00007224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00007225 ;;
7226 esac
7227 fi
7228 if test "$with_gnu_ld" = no; then
mmentovai3261e8b2006-09-06 02:56:44 +00007229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7230 hardcode_libdir_separator=:
bryner07f8ef52006-09-05 19:42:57 +00007231
mmentovai3261e8b2006-09-06 02:56:44 +00007232 case $host_cpu in
7233 hppa*64*|ia64*)
7234 hardcode_libdir_flag_spec_ld='+b $libdir'
7235 hardcode_direct=no
7236 hardcode_shlibpath_var=no
bryner07f8ef52006-09-05 19:42:57 +00007237 ;;
brynercb91a2f2006-08-25 21:14:45 +00007238 *)
brynercb91a2f2006-08-25 21:14:45 +00007239 hardcode_direct=yes
7240 export_dynamic_flag_spec='${wl}-E'
7241
7242 # hardcode_minus_L: Not really in the search PATH,
7243 # but as the default location of the library.
7244 hardcode_minus_L=yes
7245 ;;
7246 esac
7247 fi
7248 ;;
7249
7250 irix5* | irix6* | nonstopux*)
7251 if test "$GCC" = yes; then
7252 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'
7253 else
7254 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'
7255 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7256 fi
7257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258 hardcode_libdir_separator=:
7259 link_all_deplibs=yes
7260 ;;
7261
mmentovai3261e8b2006-09-06 02:56:44 +00007262 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00007263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7265 else
7266 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7267 fi
7268 hardcode_libdir_flag_spec='-R$libdir'
7269 hardcode_direct=yes
7270 hardcode_shlibpath_var=no
7271 ;;
7272
7273 newsos6)
7274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275 hardcode_direct=yes
7276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277 hardcode_libdir_separator=:
7278 hardcode_shlibpath_var=no
7279 ;;
7280
7281 openbsd*)
7282 hardcode_direct=yes
7283 hardcode_shlibpath_var=no
7284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00007286 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00007287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7288 export_dynamic_flag_spec='${wl}-E'
7289 else
7290 case $host_os in
7291 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7293 hardcode_libdir_flag_spec='-R$libdir'
7294 ;;
7295 *)
7296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7298 ;;
7299 esac
7300 fi
7301 ;;
7302
7303 os2*)
7304 hardcode_libdir_flag_spec='-L$libdir'
7305 hardcode_minus_L=yes
7306 allow_undefined_flag=unsupported
7307 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'
7308 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7309 ;;
7310
7311 osf3*)
7312 if test "$GCC" = yes; then
7313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7314 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'
7315 else
7316 allow_undefined_flag=' -expect_unresolved \*'
7317 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'
7318 fi
7319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7320 hardcode_libdir_separator=:
7321 ;;
7322
7323 osf4* | osf5*) # as osf3* with the addition of -msym flag
7324 if test "$GCC" = yes; then
7325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7326 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'
7327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7328 else
7329 allow_undefined_flag=' -expect_unresolved \*'
7330 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'
7331 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
mmentovai3261e8b2006-09-06 02:56:44 +00007332 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +00007333
7334 # Both c and cxx compiler support -rpath directly
7335 hardcode_libdir_flag_spec='-rpath $libdir'
7336 fi
7337 hardcode_libdir_separator=:
7338 ;;
7339
brynercb91a2f2006-08-25 21:14:45 +00007340 solaris*)
7341 no_undefined_flag=' -z text'
7342 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +00007343 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +00007344 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7345 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7346 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7347 else
mmentovai3261e8b2006-09-06 02:56:44 +00007348 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +00007349 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7350 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7351 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7352 fi
7353 hardcode_libdir_flag_spec='-R$libdir'
7354 hardcode_shlibpath_var=no
7355 case $host_os in
7356 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai3261e8b2006-09-06 02:56:44 +00007357 *)
7358 # The compiler driver will combine linker options so we
7359 # cannot just pass the convience library names through
7360 # without $wl, iff we do not link with $LD.
7361 # Luckily, gcc supports the same syntax we need for Sun Studio.
7362 # Supported since Solaris 2.6 (maybe 2.5.1?)
7363 case $wlarc in
7364 '')
7365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7366 *)
7367 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7368 esac ;;
brynercb91a2f2006-08-25 21:14:45 +00007369 esac
7370 link_all_deplibs=yes
7371 ;;
7372
7373 sunos4*)
7374 if test "x$host_vendor" = xsequent; then
7375 # Use $CC to link under sequent, because it throws in some extra .o
7376 # files that make .init and .fini sections work.
7377 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7378 else
7379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7380 fi
7381 hardcode_libdir_flag_spec='-L$libdir'
7382 hardcode_direct=yes
7383 hardcode_minus_L=yes
7384 hardcode_shlibpath_var=no
7385 ;;
7386
7387 sysv4)
7388 case $host_vendor in
7389 sni)
7390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391 hardcode_direct=yes # is this really true???
7392 ;;
7393 siemens)
7394 ## LD is ld it makes a PLAMLIB
7395 ## CC just makes a GrossModule.
7396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7397 reload_cmds='$CC -r -o $output$reload_objs'
7398 hardcode_direct=no
7399 ;;
7400 motorola)
7401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7403 ;;
7404 esac
7405 runpath_var='LD_RUN_PATH'
7406 hardcode_shlibpath_var=no
7407 ;;
7408
7409 sysv4.3*)
7410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_shlibpath_var=no
7412 export_dynamic_flag_spec='-Bexport'
7413 ;;
7414
7415 sysv4*MP*)
7416 if test -d /usr/nec; then
7417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_shlibpath_var=no
7419 runpath_var=LD_RUN_PATH
7420 hardcode_runpath_var=yes
7421 ld_shlibs=yes
7422 fi
7423 ;;
7424
mmentovai3261e8b2006-09-06 02:56:44 +00007425 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7426 no_undefined_flag='${wl}-z,text'
7427 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00007428 hardcode_shlibpath_var=no
mmentovai3261e8b2006-09-06 02:56:44 +00007429 runpath_var='LD_RUN_PATH'
brynercb91a2f2006-08-25 21:14:45 +00007430
mmentovai425d2562006-08-30 20:05:05 +00007431 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +00007432 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7433 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai425d2562006-08-30 20:05:05 +00007434 else
mmentovai3261e8b2006-09-06 02:56:44 +00007435 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7436 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai425d2562006-08-30 20:05:05 +00007437 fi
bryner07f8ef52006-09-05 19:42:57 +00007438 ;;
7439
mmentovai3261e8b2006-09-06 02:56:44 +00007440 sysv5* | sco3.2v5* | sco5v6*)
7441 # Note: We can NOT use -z defs as we might desire, because we do not
7442 # link with -lc, and that would cause any symbols used from libc to
7443 # always be unresolved, which means just about no library would
7444 # ever link correctly. If we're not using GNU ld we use -z text
7445 # though, which does catch some bad symbols but isn't as heavy-handed
7446 # as -z defs.
7447 no_undefined_flag='${wl}-z,text'
7448 allow_undefined_flag='${wl}-z,nodefs'
7449 archive_cmds_need_lc=no
bryner07f8ef52006-09-05 19:42:57 +00007450 hardcode_shlibpath_var=no
mmentovai3261e8b2006-09-06 02:56:44 +00007451 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7452 hardcode_libdir_separator=':'
7453 link_all_deplibs=yes
7454 export_dynamic_flag_spec='${wl}-Bexport'
bryner07f8ef52006-09-05 19:42:57 +00007455 runpath_var='LD_RUN_PATH'
mmentovai3261e8b2006-09-06 02:56:44 +00007456
7457 if test "$GCC" = yes; then
7458 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7459 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7460 else
7461 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7462 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463 fi
brynercb91a2f2006-08-25 21:14:45 +00007464 ;;
7465
7466 uts4*)
7467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468 hardcode_libdir_flag_spec='-L$libdir'
7469 hardcode_shlibpath_var=no
7470 ;;
7471
7472 *)
7473 ld_shlibs=no
7474 ;;
7475 esac
7476 fi
7477
7478echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7479echo "${ECHO_T}$ld_shlibs" >&6
7480test "$ld_shlibs" = no && can_build_shared=no
7481
brynercb91a2f2006-08-25 21:14:45 +00007482#
7483# Do we need to explicitly link libc?
7484#
7485case "x$archive_cmds_need_lc" in
7486x|xyes)
7487 # Assume -lc should be added
7488 archive_cmds_need_lc=yes
7489
7490 if test "$enable_shared" = yes && test "$GCC" = yes; then
7491 case $archive_cmds in
7492 *'~'*)
7493 # FIXME: we may have to deal with multi-command sequences.
7494 ;;
7495 '$CC '*)
7496 # Test whether the compiler implicitly links with -lc since on some
7497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7498 # to ld, don't add -lc before -lgcc.
7499 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7500echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7501 $rm conftest*
7502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7503
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } 2>conftest.err; then
7509 soname=conftest
7510 lib=conftest
7511 libobjs=conftest.$ac_objext
7512 deplibs=
7513 wl=$lt_prog_compiler_wl
mmentovai3261e8b2006-09-06 02:56:44 +00007514 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00007515 compiler_flags=-v
7516 linker_flags=-v
7517 verstring=
7518 output_objdir=.
7519 libname=conftest
7520 lt_save_allow_undefined_flag=$allow_undefined_flag
7521 allow_undefined_flag=
7522 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7523 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }
7527 then
7528 archive_cmds_need_lc=no
7529 else
7530 archive_cmds_need_lc=yes
7531 fi
7532 allow_undefined_flag=$lt_save_allow_undefined_flag
7533 else
7534 cat conftest.err 1>&5
7535 fi
7536 $rm conftest*
7537 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7538echo "${ECHO_T}$archive_cmds_need_lc" >&6
7539 ;;
7540 esac
7541 fi
7542 ;;
7543esac
7544
7545echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7546echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7547library_names_spec=
7548libname_spec='lib$name'
7549soname_spec=
7550shrext_cmds=".so"
7551postinstall_cmds=
7552postuninstall_cmds=
7553finish_cmds=
7554finish_eval=
7555shlibpath_var=
7556shlibpath_overrides_runpath=unknown
7557version_type=none
7558dynamic_linker="$host_os ld.so"
7559sys_lib_dlsearch_path_spec="/lib /usr/lib"
7560if test "$GCC" = yes; then
7561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7562 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7563 # if the path contains ";" then we assume it to be the separator
7564 # otherwise default to the standard path separator (i.e. ":") - it is
7565 # assumed that no part of a normal pathname contains ";" but that should
7566 # okay in the real world where ";" in dirpaths is itself problematic.
7567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7568 else
7569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7570 fi
7571else
7572 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7573fi
7574need_lib_prefix=unknown
7575hardcode_into_libs=no
7576
7577# when you set need_version to no, make sure it does not cause -set_version
7578# flags to be left without arguments
7579need_version=unknown
7580
7581case $host_os in
7582aix3*)
7583 version_type=linux
7584 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7585 shlibpath_var=LIBPATH
7586
7587 # AIX 3 has no versioning support, so we append a major version to the name.
7588 soname_spec='${libname}${release}${shared_ext}$major'
7589 ;;
7590
7591aix4* | aix5*)
7592 version_type=linux
7593 need_lib_prefix=no
7594 need_version=no
7595 hardcode_into_libs=yes
7596 if test "$host_cpu" = ia64; then
7597 # AIX 5 supports IA64
7598 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7599 shlibpath_var=LD_LIBRARY_PATH
7600 else
7601 # With GCC up to 2.95.x, collect2 would create an import file
7602 # for dependence libraries. The import file would start with
7603 # the line `#! .'. This would cause the generated library to
7604 # depend on `.', always an invalid library. This was fixed in
7605 # development snapshots of GCC prior to 3.0.
7606 case $host_os in
7607 aix4 | aix4.[01] | aix4.[01].*)
7608 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7609 echo ' yes '
7610 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7611 :
7612 else
7613 can_build_shared=no
7614 fi
7615 ;;
7616 esac
7617 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7618 # soname into executable. Probably we can add versioning support to
7619 # collect2, so additional links can be useful in future.
7620 if test "$aix_use_runtimelinking" = yes; then
7621 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7622 # instead of lib<name>.a to let people know that these are not
7623 # typical AIX shared libraries.
7624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625 else
7626 # We preserve .a as extension for shared libraries through AIX4.2
7627 # and later when we are not doing run time linking.
7628 library_names_spec='${libname}${release}.a $libname.a'
7629 soname_spec='${libname}${release}${shared_ext}$major'
7630 fi
7631 shlibpath_var=LIBPATH
7632 fi
7633 ;;
7634
7635amigaos*)
7636 library_names_spec='$libname.ixlibrary $libname.a'
7637 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7638 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'
7639 ;;
7640
7641beos*)
7642 library_names_spec='${libname}${shared_ext}'
7643 dynamic_linker="$host_os ld.so"
7644 shlibpath_var=LIBRARY_PATH
7645 ;;
7646
mmentovai3261e8b2006-09-06 02:56:44 +00007647bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00007648 version_type=linux
7649 need_version=no
7650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7651 soname_spec='${libname}${release}${shared_ext}$major'
7652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7653 shlibpath_var=LD_LIBRARY_PATH
7654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7656 # the default ld.so.conf also contains /usr/contrib/lib and
7657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7658 # libtool to hard-code these into programs
7659 ;;
7660
7661cygwin* | mingw* | pw32*)
7662 version_type=windows
7663 shrext_cmds=".dll"
7664 need_version=no
7665 need_lib_prefix=no
7666
7667 case $GCC,$host_os in
7668 yes,cygwin* | yes,mingw* | yes,pw32*)
7669 library_names_spec='$libname.dll.a'
7670 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7671 postinstall_cmds='base_file=`basename \${file}`~
7672 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7673 dldir=$destdir/`dirname \$dlpath`~
7674 test -d \$dldir || mkdir -p \$dldir~
mmentovai3261e8b2006-09-06 02:56:44 +00007675 $install_prog $dir/$dlname \$dldir/$dlname~
7676 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +00007677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7678 dlpath=$dir/\$dldll~
7679 $rm \$dlpath'
7680 shlibpath_overrides_runpath=yes
7681
7682 case $host_os in
7683 cygwin*)
7684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7687 ;;
7688 mingw*)
7689 # MinGW DLLs use traditional 'lib' prefix
7690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7693 # It is most probably a Windows format PATH printed by
7694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7695 # path with ; separators, and with drive letters. We can handle the
7696 # drive letters (cygwin fileutils understands them), so leave them,
7697 # especially as we might pass files found there to a mingw objdump,
7698 # which wouldn't understand a cygwinified path. Ahh.
7699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7700 else
7701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7702 fi
7703 ;;
7704 pw32*)
7705 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai3261e8b2006-09-06 02:56:44 +00007706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +00007707 ;;
7708 esac
7709 ;;
7710
7711 *)
7712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7713 ;;
7714 esac
7715 dynamic_linker='Win32 ld.exe'
7716 # FIXME: first we should search . and the directory the executable is in
7717 shlibpath_var=PATH
7718 ;;
7719
7720darwin* | rhapsody*)
7721 dynamic_linker="$host_os dyld"
7722 version_type=darwin
7723 need_lib_prefix=no
7724 need_version=no
7725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7726 soname_spec='${libname}${release}${major}$shared_ext'
7727 shlibpath_overrides_runpath=yes
7728 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai3261e8b2006-09-06 02:56:44 +00007729 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +00007730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7731 if test "$GCC" = yes; then
7732 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"`
7733 else
7734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7735 fi
7736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7737 ;;
7738
7739dgux*)
7740 version_type=linux
7741 need_lib_prefix=no
7742 need_version=no
7743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7744 soname_spec='${libname}${release}${shared_ext}$major'
7745 shlibpath_var=LD_LIBRARY_PATH
7746 ;;
7747
7748freebsd1*)
7749 dynamic_linker=no
7750 ;;
7751
7752kfreebsd*-gnu)
7753 version_type=linux
7754 need_lib_prefix=no
7755 need_version=no
7756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7757 soname_spec='${libname}${release}${shared_ext}$major'
7758 shlibpath_var=LD_LIBRARY_PATH
7759 shlibpath_overrides_runpath=no
7760 hardcode_into_libs=yes
7761 dynamic_linker='GNU ld.so'
7762 ;;
7763
mmentovai3261e8b2006-09-06 02:56:44 +00007764freebsd* | dragonfly*)
7765 # DragonFly does not have aout. When/if they implement a new
7766 # versioning mechanism, adjust this.
7767 if test -x /usr/bin/objformat; then
7768 objformat=`/usr/bin/objformat`
7769 else
7770 case $host_os in
7771 freebsd[123]*) objformat=aout ;;
7772 *) objformat=elf ;;
7773 esac
7774 fi
brynercb91a2f2006-08-25 21:14:45 +00007775 version_type=freebsd-$objformat
7776 case $version_type in
7777 freebsd-elf*)
7778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7779 need_version=no
7780 need_lib_prefix=no
7781 ;;
7782 freebsd-*)
7783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7784 need_version=yes
7785 ;;
7786 esac
7787 shlibpath_var=LD_LIBRARY_PATH
7788 case $host_os in
7789 freebsd2*)
7790 shlibpath_overrides_runpath=yes
7791 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00007792 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +00007793 shlibpath_overrides_runpath=yes
7794 hardcode_into_libs=yes
7795 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00007796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +00007798 shlibpath_overrides_runpath=no
7799 hardcode_into_libs=yes
7800 ;;
mmentovai3261e8b2006-09-06 02:56:44 +00007801 freebsd*) # from 4.6 on
7802 shlibpath_overrides_runpath=yes
7803 hardcode_into_libs=yes
7804 ;;
brynercb91a2f2006-08-25 21:14:45 +00007805 esac
7806 ;;
7807
7808gnu*)
7809 version_type=linux
7810 need_lib_prefix=no
7811 need_version=no
7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7813 soname_spec='${libname}${release}${shared_ext}$major'
7814 shlibpath_var=LD_LIBRARY_PATH
7815 hardcode_into_libs=yes
7816 ;;
7817
7818hpux9* | hpux10* | hpux11*)
7819 # Give a soname corresponding to the major version so that dld.sl refuses to
7820 # link against other versions.
7821 version_type=sunos
7822 need_lib_prefix=no
7823 need_version=no
mmentovai3261e8b2006-09-06 02:56:44 +00007824 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007825 ia64*)
7826 shrext_cmds='.so'
7827 hardcode_into_libs=yes
7828 dynamic_linker="$host_os dld.so"
7829 shlibpath_var=LD_LIBRARY_PATH
7830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7832 soname_spec='${libname}${release}${shared_ext}$major'
7833 if test "X$HPUX_IA64_MODE" = X32; then
7834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7835 else
7836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7837 fi
7838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7839 ;;
7840 hppa*64*)
7841 shrext_cmds='.sl'
7842 hardcode_into_libs=yes
7843 dynamic_linker="$host_os dld.sl"
7844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7847 soname_spec='${libname}${release}${shared_ext}$major'
7848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7850 ;;
7851 *)
7852 shrext_cmds='.sl'
7853 dynamic_linker="$host_os dld.sl"
7854 shlibpath_var=SHLIB_PATH
7855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857 soname_spec='${libname}${release}${shared_ext}$major'
7858 ;;
7859 esac
7860 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7861 postinstall_cmds='chmod 555 $lib'
7862 ;;
7863
mmentovai3261e8b2006-09-06 02:56:44 +00007864interix3*)
7865 version_type=linux
7866 need_lib_prefix=no
7867 need_version=no
7868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7869 soname_spec='${libname}${release}${shared_ext}$major'
7870 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7871 shlibpath_var=LD_LIBRARY_PATH
7872 shlibpath_overrides_runpath=no
7873 hardcode_into_libs=yes
7874 ;;
7875
brynercb91a2f2006-08-25 21:14:45 +00007876irix5* | irix6* | nonstopux*)
7877 case $host_os in
7878 nonstopux*) version_type=nonstopux ;;
7879 *)
7880 if test "$lt_cv_prog_gnu_ld" = yes; then
7881 version_type=linux
7882 else
7883 version_type=irix
7884 fi ;;
7885 esac
7886 need_lib_prefix=no
7887 need_version=no
7888 soname_spec='${libname}${release}${shared_ext}$major'
7889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7890 case $host_os in
7891 irix5* | nonstopux*)
7892 libsuff= shlibsuff=
7893 ;;
7894 *)
7895 case $LD in # libtool.m4 will add one of these switches to LD
7896 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7897 libsuff= shlibsuff= libmagic=32-bit;;
7898 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7899 libsuff=32 shlibsuff=N32 libmagic=N32;;
7900 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7901 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7902 *) libsuff= shlibsuff= libmagic=never-match;;
7903 esac
7904 ;;
7905 esac
7906 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7907 shlibpath_overrides_runpath=no
7908 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7909 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7910 hardcode_into_libs=yes
7911 ;;
7912
7913# No shared lib support for Linux oldld, aout, or coff.
7914linux*oldld* | linux*aout* | linux*coff*)
7915 dynamic_linker=no
7916 ;;
7917
7918# This must be Linux ELF.
7919linux*)
7920 version_type=linux
7921 need_lib_prefix=no
7922 need_version=no
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 soname_spec='${libname}${release}${shared_ext}$major'
7925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7926 shlibpath_var=LD_LIBRARY_PATH
7927 shlibpath_overrides_runpath=no
7928 # This implies no fast_install, which is unacceptable.
7929 # Some rework will be needed to allow for fast_install
7930 # before this can be enabled.
7931 hardcode_into_libs=yes
7932
7933 # Append ld.so.conf contents to the search path
7934 if test -f /etc/ld.so.conf; then
mmentovai3261e8b2006-09-06 02:56:44 +00007935 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +00007936 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7937 fi
7938
7939 # We used to test for /lib/ld.so.1 and disable shared libraries on
7940 # powerpc, because MkLinux only supported shared libraries with the
7941 # GNU dynamic linker. Since this was broken with cross compilers,
7942 # most powerpc-linux boxes support dynamic linking these days and
7943 # people can always --disable-shared, the test was removed, and we
7944 # assume the GNU/Linux dynamic linker is in use.
7945 dynamic_linker='GNU/Linux ld.so'
7946 ;;
7947
brynercb91a2f2006-08-25 21:14:45 +00007948knetbsd*-gnu)
7949 version_type=linux
7950 need_lib_prefix=no
7951 need_version=no
7952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7953 soname_spec='${libname}${release}${shared_ext}$major'
7954 shlibpath_var=LD_LIBRARY_PATH
7955 shlibpath_overrides_runpath=no
7956 hardcode_into_libs=yes
7957 dynamic_linker='GNU ld.so'
7958 ;;
7959
7960netbsd*)
7961 version_type=sunos
7962 need_lib_prefix=no
7963 need_version=no
7964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7967 dynamic_linker='NetBSD (a.out) ld.so'
7968 else
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7970 soname_spec='${libname}${release}${shared_ext}$major'
7971 dynamic_linker='NetBSD ld.elf_so'
7972 fi
7973 shlibpath_var=LD_LIBRARY_PATH
7974 shlibpath_overrides_runpath=yes
7975 hardcode_into_libs=yes
7976 ;;
7977
7978newsos6)
7979 version_type=linux
7980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 shlibpath_overrides_runpath=yes
7983 ;;
7984
7985nto-qnx*)
7986 version_type=linux
7987 need_lib_prefix=no
7988 need_version=no
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 soname_spec='${libname}${release}${shared_ext}$major'
7991 shlibpath_var=LD_LIBRARY_PATH
7992 shlibpath_overrides_runpath=yes
7993 ;;
7994
7995openbsd*)
7996 version_type=sunos
mmentovai3261e8b2006-09-06 02:56:44 +00007997 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +00007998 need_lib_prefix=no
mmentovai3261e8b2006-09-06 02:56:44 +00007999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8000 case $host_os in
8001 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8002 *) need_version=no ;;
8003 esac
brynercb91a2f2006-08-25 21:14:45 +00008004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8006 shlibpath_var=LD_LIBRARY_PATH
8007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8008 case $host_os in
8009 openbsd2.[89] | openbsd2.[89].*)
8010 shlibpath_overrides_runpath=no
8011 ;;
8012 *)
8013 shlibpath_overrides_runpath=yes
8014 ;;
8015 esac
8016 else
8017 shlibpath_overrides_runpath=yes
8018 fi
8019 ;;
8020
8021os2*)
8022 libname_spec='$name'
8023 shrext_cmds=".dll"
8024 need_lib_prefix=no
8025 library_names_spec='$libname${shared_ext} $libname.a'
8026 dynamic_linker='OS/2 ld.exe'
8027 shlibpath_var=LIBPATH
8028 ;;
8029
8030osf3* | osf4* | osf5*)
8031 version_type=osf
8032 need_lib_prefix=no
8033 need_version=no
8034 soname_spec='${libname}${release}${shared_ext}$major'
8035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8036 shlibpath_var=LD_LIBRARY_PATH
8037 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8038 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8039 ;;
8040
brynercb91a2f2006-08-25 21:14:45 +00008041solaris*)
8042 version_type=linux
8043 need_lib_prefix=no
8044 need_version=no
8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046 soname_spec='${libname}${release}${shared_ext}$major'
8047 shlibpath_var=LD_LIBRARY_PATH
8048 shlibpath_overrides_runpath=yes
8049 hardcode_into_libs=yes
8050 # ldd complains unless libraries are executable
8051 postinstall_cmds='chmod +x $lib'
8052 ;;
8053
8054sunos4*)
8055 version_type=sunos
8056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8057 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8058 shlibpath_var=LD_LIBRARY_PATH
8059 shlibpath_overrides_runpath=yes
8060 if test "$with_gnu_ld" = yes; then
8061 need_lib_prefix=no
8062 fi
8063 need_version=yes
8064 ;;
8065
mmentovai3261e8b2006-09-06 02:56:44 +00008066sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00008067 version_type=linux
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 shlibpath_var=LD_LIBRARY_PATH
8071 case $host_vendor in
8072 sni)
8073 shlibpath_overrides_runpath=no
8074 need_lib_prefix=no
8075 export_dynamic_flag_spec='${wl}-Blargedynsym'
8076 runpath_var=LD_RUN_PATH
8077 ;;
8078 siemens)
8079 need_lib_prefix=no
8080 ;;
8081 motorola)
8082 need_lib_prefix=no
8083 need_version=no
8084 shlibpath_overrides_runpath=no
8085 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8086 ;;
8087 esac
8088 ;;
8089
8090sysv4*MP*)
8091 if test -d /usr/nec ;then
8092 version_type=linux
8093 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8094 soname_spec='$libname${shared_ext}.$major'
8095 shlibpath_var=LD_LIBRARY_PATH
8096 fi
8097 ;;
8098
mmentovai3261e8b2006-09-06 02:56:44 +00008099sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8100 version_type=freebsd-elf
8101 need_lib_prefix=no
8102 need_version=no
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8104 soname_spec='${libname}${release}${shared_ext}$major'
8105 shlibpath_var=LD_LIBRARY_PATH
8106 hardcode_into_libs=yes
8107 if test "$with_gnu_ld" = yes; then
8108 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8109 shlibpath_overrides_runpath=no
8110 else
8111 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8112 shlibpath_overrides_runpath=yes
8113 case $host_os in
8114 sco3.2v5*)
8115 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8116 ;;
8117 esac
8118 fi
8119 sys_lib_dlsearch_path_spec='/usr/lib'
8120 ;;
8121
brynercb91a2f2006-08-25 21:14:45 +00008122uts4*)
8123 version_type=linux
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8125 soname_spec='${libname}${release}${shared_ext}$major'
8126 shlibpath_var=LD_LIBRARY_PATH
8127 ;;
8128
8129*)
8130 dynamic_linker=no
8131 ;;
8132esac
8133echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8134echo "${ECHO_T}$dynamic_linker" >&6
8135test "$dynamic_linker" = no && can_build_shared=no
8136
mmentovai3261e8b2006-09-06 02:56:44 +00008137variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8138if test "$GCC" = yes; then
8139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8140fi
8141
brynercb91a2f2006-08-25 21:14:45 +00008142echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8143echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8144hardcode_action=
8145if test -n "$hardcode_libdir_flag_spec" || \
mmentovai3261e8b2006-09-06 02:56:44 +00008146 test -n "$runpath_var" || \
8147 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +00008148
8149 # We can hardcode non-existant directories.
8150 if test "$hardcode_direct" != no &&
8151 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8152 # have to relink, otherwise we might link with an installed library
8153 # when we should be linking with a yet-to-be-installed one
8154 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8155 test "$hardcode_minus_L" != no; then
8156 # Linking always hardcodes the temporary library directory.
8157 hardcode_action=relink
8158 else
8159 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8160 hardcode_action=immediate
8161 fi
8162else
8163 # We cannot hardcode anything, or else we can only hardcode existing
8164 # directories.
8165 hardcode_action=unsupported
8166fi
8167echo "$as_me:$LINENO: result: $hardcode_action" >&5
8168echo "${ECHO_T}$hardcode_action" >&6
8169
8170if test "$hardcode_action" = relink; then
8171 # Fast installation is not supported
8172 enable_fast_install=no
8173elif test "$shlibpath_overrides_runpath" = yes ||
8174 test "$enable_shared" = no; then
8175 # Fast installation is not necessary
8176 enable_fast_install=needless
8177fi
8178
8179striplib=
8180old_striplib=
8181echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8182echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8183if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8185 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8186 echo "$as_me:$LINENO: result: yes" >&5
8187echo "${ECHO_T}yes" >&6
8188else
8189# FIXME - insert some real tests, host_os isn't really good enough
8190 case $host_os in
8191 darwin*)
8192 if test -n "$STRIP" ; then
8193 striplib="$STRIP -x"
8194 echo "$as_me:$LINENO: result: yes" >&5
8195echo "${ECHO_T}yes" >&6
8196 else
8197 echo "$as_me:$LINENO: result: no" >&5
8198echo "${ECHO_T}no" >&6
8199fi
8200 ;;
8201 *)
8202 echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
8204 ;;
8205 esac
8206fi
8207
8208if test "x$enable_dlopen" != xyes; then
8209 enable_dlopen=unknown
8210 enable_dlopen_self=unknown
8211 enable_dlopen_self_static=unknown
8212else
8213 lt_cv_dlopen=no
8214 lt_cv_dlopen_libs=
8215
8216 case $host_os in
8217 beos*)
8218 lt_cv_dlopen="load_add_on"
8219 lt_cv_dlopen_libs=
8220 lt_cv_dlopen_self=yes
8221 ;;
8222
8223 mingw* | pw32*)
8224 lt_cv_dlopen="LoadLibrary"
8225 lt_cv_dlopen_libs=
8226 ;;
8227
8228 cygwin*)
8229 lt_cv_dlopen="dlopen"
8230 lt_cv_dlopen_libs=
8231 ;;
8232
8233 darwin*)
8234 # if libdl is installed we need to link against it
8235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8236echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8237if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239else
8240 ac_check_lib_save_LIBS=$LIBS
8241LIBS="-ldl $LIBS"
8242cat >conftest.$ac_ext <<_ACEOF
8243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
8248
8249/* Override any gcc2 internal prototype to avoid an error. */
8250#ifdef __cplusplus
8251extern "C"
8252#endif
8253/* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8255char dlopen ();
8256int
8257main ()
8258{
8259dlopen ();
8260 ;
8261 return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00008273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_lib_dl_dlopen=yes
8287else
8288 echo "$as_me: failed program was:" >&5
8289sed 's/^/| /' conftest.$ac_ext >&5
8290
8291ac_cv_lib_dl_dlopen=no
8292fi
8293rm -f conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295LIBS=$ac_check_lib_save_LIBS
8296fi
8297echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8298echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8299if test $ac_cv_lib_dl_dlopen = yes; then
8300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8301else
8302
8303 lt_cv_dlopen="dyld"
8304 lt_cv_dlopen_libs=
8305 lt_cv_dlopen_self=yes
8306
8307fi
8308
8309 ;;
8310
8311 *)
8312 echo "$as_me:$LINENO: checking for shl_load" >&5
8313echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8314if test "${ac_cv_func_shl_load+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317 cat >conftest.$ac_ext <<_ACEOF
8318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h. */
8323/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8325#define shl_load innocuous_shl_load
8326
8327/* System header to define __stub macros and hopefully few prototypes,
8328 which can conflict with char shl_load (); below.
8329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8330 <limits.h> exists even on freestanding compilers. */
8331
8332#ifdef __STDC__
8333# include <limits.h>
8334#else
8335# include <assert.h>
8336#endif
8337
8338#undef shl_load
8339
8340/* Override any gcc2 internal prototype to avoid an error. */
8341#ifdef __cplusplus
8342extern "C"
8343{
8344#endif
8345/* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8347char shl_load ();
8348/* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351#if defined (__stub_shl_load) || defined (__stub___shl_load)
8352choke me
8353#else
8354char (*f) () = shl_load;
8355#endif
8356#ifdef __cplusplus
8357}
8358#endif
8359
8360int
8361main ()
8362{
8363return f != shl_load;
8364 ;
8365 return 0;
8366}
8367_ACEOF
8368rm -f conftest.$ac_objext conftest$ac_exeext
8369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00008377 { ac_try='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_func_shl_load=yes
8391else
8392 echo "$as_me: failed program was:" >&5
8393sed 's/^/| /' conftest.$ac_ext >&5
8394
8395ac_cv_func_shl_load=no
8396fi
8397rm -f conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
8399fi
8400echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8401echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8402if test $ac_cv_func_shl_load = yes; then
8403 lt_cv_dlopen="shl_load"
8404else
8405 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8406echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8407if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409else
8410 ac_check_lib_save_LIBS=$LIBS
8411LIBS="-ldld $LIBS"
8412cat >conftest.$ac_ext <<_ACEOF
8413/* confdefs.h. */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h. */
8418
8419/* Override any gcc2 internal prototype to avoid an error. */
8420#ifdef __cplusplus
8421extern "C"
8422#endif
8423/* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425char shl_load ();
8426int
8427main ()
8428{
8429shl_load ();
8430 ;
8431 return 0;
8432}
8433_ACEOF
8434rm -f conftest.$ac_objext conftest$ac_exeext
8435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00008443 { ac_try='test -z "$ac_c_werror_flag"
8444 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 (eval $ac_try) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_lib_dld_shl_load=yes
8457else
8458 echo "$as_me: failed program was:" >&5
8459sed 's/^/| /' conftest.$ac_ext >&5
8460
8461ac_cv_lib_dld_shl_load=no
8462fi
8463rm -f conftest.err conftest.$ac_objext \
8464 conftest$ac_exeext conftest.$ac_ext
8465LIBS=$ac_check_lib_save_LIBS
8466fi
8467echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8468echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8469if test $ac_cv_lib_dld_shl_load = yes; then
8470 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8471else
8472 echo "$as_me:$LINENO: checking for dlopen" >&5
8473echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8474if test "${ac_cv_func_dlopen+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476else
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8485#define dlopen innocuous_dlopen
8486
8487/* System header to define __stub macros and hopefully few prototypes,
8488 which can conflict with char dlopen (); below.
8489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8490 <limits.h> exists even on freestanding compilers. */
8491
8492#ifdef __STDC__
8493# include <limits.h>
8494#else
8495# include <assert.h>
8496#endif
8497
8498#undef dlopen
8499
8500/* Override any gcc2 internal prototype to avoid an error. */
8501#ifdef __cplusplus
8502extern "C"
8503{
8504#endif
8505/* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507char dlopen ();
8508/* The GNU C library defines this for functions which it implements
8509 to always fail with ENOSYS. Some functions are actually named
8510 something starting with __ and the normal name is an alias. */
8511#if defined (__stub_dlopen) || defined (__stub___dlopen)
8512choke me
8513#else
8514char (*f) () = dlopen;
8515#endif
8516#ifdef __cplusplus
8517}
8518#endif
8519
8520int
8521main ()
8522{
8523return f != dlopen;
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00008537 { ac_try='test -z "$ac_c_werror_flag"
8538 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 ac_cv_func_dlopen=yes
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
8555ac_cv_func_dlopen=no
8556fi
8557rm -f conftest.err conftest.$ac_objext \
8558 conftest$ac_exeext conftest.$ac_ext
8559fi
8560echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8561echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8562if test $ac_cv_func_dlopen = yes; then
8563 lt_cv_dlopen="dlopen"
8564else
8565 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8566echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8567if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569else
8570 ac_check_lib_save_LIBS=$LIBS
8571LIBS="-ldl $LIBS"
8572cat >conftest.$ac_ext <<_ACEOF
8573/* confdefs.h. */
8574_ACEOF
8575cat confdefs.h >>conftest.$ac_ext
8576cat >>conftest.$ac_ext <<_ACEOF
8577/* end confdefs.h. */
8578
8579/* Override any gcc2 internal prototype to avoid an error. */
8580#ifdef __cplusplus
8581extern "C"
8582#endif
8583/* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585char dlopen ();
8586int
8587main ()
8588{
8589dlopen ();
8590 ;
8591 return 0;
8592}
8593_ACEOF
8594rm -f conftest.$ac_objext conftest$ac_exeext
8595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00008603 { ac_try='test -z "$ac_c_werror_flag"
8604 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; } &&
8610 { ac_try='test -s conftest$ac_exeext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 ac_cv_lib_dl_dlopen=yes
8617else
8618 echo "$as_me: failed program was:" >&5
8619sed 's/^/| /' conftest.$ac_ext >&5
8620
8621ac_cv_lib_dl_dlopen=no
8622fi
8623rm -f conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625LIBS=$ac_check_lib_save_LIBS
8626fi
8627echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8628echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8629if test $ac_cv_lib_dl_dlopen = yes; then
8630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8631else
8632 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8633echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8634if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8636else
8637 ac_check_lib_save_LIBS=$LIBS
8638LIBS="-lsvld $LIBS"
8639cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h. */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h. */
8645
8646/* Override any gcc2 internal prototype to avoid an error. */
8647#ifdef __cplusplus
8648extern "C"
8649#endif
8650/* We use char because int might match the return type of a gcc2
8651 builtin and then its argument prototype would still apply. */
8652char dlopen ();
8653int
8654main ()
8655{
8656dlopen ();
8657 ;
8658 return 0;
8659}
8660_ACEOF
8661rm -f conftest.$ac_objext conftest$ac_exeext
8662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00008670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_cv_lib_svld_dlopen=yes
8684else
8685 echo "$as_me: failed program was:" >&5
8686sed 's/^/| /' conftest.$ac_ext >&5
8687
8688ac_cv_lib_svld_dlopen=no
8689fi
8690rm -f conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692LIBS=$ac_check_lib_save_LIBS
8693fi
8694echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8695echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8696if test $ac_cv_lib_svld_dlopen = yes; then
8697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8698else
8699 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8700echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8701if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704 ac_check_lib_save_LIBS=$LIBS
8705LIBS="-ldld $LIBS"
8706cat >conftest.$ac_ext <<_ACEOF
8707/* confdefs.h. */
8708_ACEOF
8709cat confdefs.h >>conftest.$ac_ext
8710cat >>conftest.$ac_ext <<_ACEOF
8711/* end confdefs.h. */
8712
8713/* Override any gcc2 internal prototype to avoid an error. */
8714#ifdef __cplusplus
8715extern "C"
8716#endif
8717/* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */
8719char dld_link ();
8720int
8721main ()
8722{
8723dld_link ();
8724 ;
8725 return 0;
8726}
8727_ACEOF
8728rm -f conftest.$ac_objext conftest$ac_exeext
8729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730 (eval $ac_link) 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00008737 { ac_try='test -z "$ac_c_werror_flag"
8738 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00008739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest$ac_exeext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 (eval $ac_try) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_cv_lib_dld_dld_link=yes
8751else
8752 echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755ac_cv_lib_dld_dld_link=no
8756fi
8757rm -f conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759LIBS=$ac_check_lib_save_LIBS
8760fi
8761echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8762echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8763if test $ac_cv_lib_dld_dld_link = yes; then
8764 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8765fi
8766
8767
8768fi
8769
8770
8771fi
8772
8773
8774fi
8775
8776
8777fi
8778
8779
8780fi
8781
8782 ;;
8783 esac
8784
8785 if test "x$lt_cv_dlopen" != xno; then
8786 enable_dlopen=yes
8787 else
8788 enable_dlopen=no
8789 fi
8790
8791 case $lt_cv_dlopen in
8792 dlopen)
8793 save_CPPFLAGS="$CPPFLAGS"
8794 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8795
8796 save_LDFLAGS="$LDFLAGS"
mmentovai3261e8b2006-09-06 02:56:44 +00008797 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +00008798
8799 save_LIBS="$LIBS"
8800 LIBS="$lt_cv_dlopen_libs $LIBS"
8801
8802 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8803echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8804if test "${lt_cv_dlopen_self+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807 if test "$cross_compiling" = yes; then :
8808 lt_cv_dlopen_self=cross
8809else
8810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8811 lt_status=$lt_dlunknown
8812 cat > conftest.$ac_ext <<EOF
mmentovai3261e8b2006-09-06 02:56:44 +00008813#line 8813 "configure"
brynercb91a2f2006-08-25 21:14:45 +00008814#include "confdefs.h"
8815
8816#if HAVE_DLFCN_H
8817#include <dlfcn.h>
8818#endif
8819
8820#include <stdio.h>
8821
8822#ifdef RTLD_GLOBAL
8823# define LT_DLGLOBAL RTLD_GLOBAL
8824#else
8825# ifdef DL_GLOBAL
8826# define LT_DLGLOBAL DL_GLOBAL
8827# else
8828# define LT_DLGLOBAL 0
8829# endif
8830#endif
8831
8832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8833 find out it does not work in some platform. */
8834#ifndef LT_DLLAZY_OR_NOW
8835# ifdef RTLD_LAZY
8836# define LT_DLLAZY_OR_NOW RTLD_LAZY
8837# else
8838# ifdef DL_LAZY
8839# define LT_DLLAZY_OR_NOW DL_LAZY
8840# else
8841# ifdef RTLD_NOW
8842# define LT_DLLAZY_OR_NOW RTLD_NOW
8843# else
8844# ifdef DL_NOW
8845# define LT_DLLAZY_OR_NOW DL_NOW
8846# else
8847# define LT_DLLAZY_OR_NOW 0
8848# endif
8849# endif
8850# endif
8851# endif
8852#endif
8853
8854#ifdef __cplusplus
8855extern "C" void exit (int);
8856#endif
8857
8858void fnord() { int i=42;}
8859int main ()
8860{
8861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8862 int status = $lt_dlunknown;
8863
8864 if (self)
8865 {
8866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8868 /* dlclose (self); */
8869 }
mmentovai3261e8b2006-09-06 02:56:44 +00008870 else
8871 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +00008872
8873 exit (status);
8874}
8875EOF
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877 (eval $ac_link) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai3261e8b2006-09-06 02:56:44 +00008881 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008882 lt_status=$?
8883 case x$lt_status in
8884 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8885 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai3261e8b2006-09-06 02:56:44 +00008886 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +00008887 esac
8888 else :
8889 # compilation failed
8890 lt_cv_dlopen_self=no
8891 fi
8892fi
8893rm -fr conftest*
8894
8895
8896fi
8897echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8898echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8899
8900 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai3261e8b2006-09-06 02:56:44 +00008901 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
brynercb91a2f2006-08-25 21:14:45 +00008902 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8903echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8904if test "${lt_cv_dlopen_self_static+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907 if test "$cross_compiling" = yes; then :
8908 lt_cv_dlopen_self_static=cross
8909else
8910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8911 lt_status=$lt_dlunknown
8912 cat > conftest.$ac_ext <<EOF
mmentovai3261e8b2006-09-06 02:56:44 +00008913#line 8913 "configure"
brynercb91a2f2006-08-25 21:14:45 +00008914#include "confdefs.h"
8915
8916#if HAVE_DLFCN_H
8917#include <dlfcn.h>
8918#endif
8919
8920#include <stdio.h>
8921
8922#ifdef RTLD_GLOBAL
8923# define LT_DLGLOBAL RTLD_GLOBAL
8924#else
8925# ifdef DL_GLOBAL
8926# define LT_DLGLOBAL DL_GLOBAL
8927# else
8928# define LT_DLGLOBAL 0
8929# endif
8930#endif
8931
8932/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8933 find out it does not work in some platform. */
8934#ifndef LT_DLLAZY_OR_NOW
8935# ifdef RTLD_LAZY
8936# define LT_DLLAZY_OR_NOW RTLD_LAZY
8937# else
8938# ifdef DL_LAZY
8939# define LT_DLLAZY_OR_NOW DL_LAZY
8940# else
8941# ifdef RTLD_NOW
8942# define LT_DLLAZY_OR_NOW RTLD_NOW
8943# else
8944# ifdef DL_NOW
8945# define LT_DLLAZY_OR_NOW DL_NOW
8946# else
8947# define LT_DLLAZY_OR_NOW 0
8948# endif
8949# endif
8950# endif
8951# endif
8952#endif
8953
8954#ifdef __cplusplus
8955extern "C" void exit (int);
8956#endif
8957
8958void fnord() { int i=42;}
8959int main ()
8960{
8961 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8962 int status = $lt_dlunknown;
8963
8964 if (self)
8965 {
8966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8967 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8968 /* dlclose (self); */
8969 }
mmentovai3261e8b2006-09-06 02:56:44 +00008970 else
8971 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +00008972
8973 exit (status);
8974}
8975EOF
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977 (eval $ac_link) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai3261e8b2006-09-06 02:56:44 +00008981 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008982 lt_status=$?
8983 case x$lt_status in
8984 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8985 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai3261e8b2006-09-06 02:56:44 +00008986 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +00008987 esac
8988 else :
8989 # compilation failed
8990 lt_cv_dlopen_self_static=no
8991 fi
8992fi
8993rm -fr conftest*
8994
8995
8996fi
8997echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8998echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8999 fi
9000
9001 CPPFLAGS="$save_CPPFLAGS"
9002 LDFLAGS="$save_LDFLAGS"
9003 LIBS="$save_LIBS"
9004 ;;
9005 esac
9006
9007 case $lt_cv_dlopen_self in
9008 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9009 *) enable_dlopen_self=unknown ;;
9010 esac
9011
9012 case $lt_cv_dlopen_self_static in
9013 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9014 *) enable_dlopen_self_static=unknown ;;
9015 esac
9016fi
9017
9018
mmentovai3261e8b2006-09-06 02:56:44 +00009019# Report which library types will actually be built
brynercb91a2f2006-08-25 21:14:45 +00009020echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9021echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9022echo "$as_me:$LINENO: result: $can_build_shared" >&5
9023echo "${ECHO_T}$can_build_shared" >&6
9024
9025echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9026echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9027test "$can_build_shared" = "no" && enable_shared=no
9028
9029# On AIX, shared libraries and static libraries use the same namespace, and
9030# are all built from PIC.
mmentovai3261e8b2006-09-06 02:56:44 +00009031case $host_os in
brynercb91a2f2006-08-25 21:14:45 +00009032aix3*)
9033 test "$enable_shared" = yes && enable_static=no
9034 if test -n "$RANLIB"; then
9035 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9036 postinstall_cmds='$RANLIB $lib'
9037 fi
9038 ;;
9039
9040aix4* | aix5*)
9041 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9042 test "$enable_shared" = yes && enable_static=no
9043 fi
brynercb91a2f2006-08-25 21:14:45 +00009044 ;;
9045esac
9046echo "$as_me:$LINENO: result: $enable_shared" >&5
9047echo "${ECHO_T}$enable_shared" >&6
9048
9049echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9050echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9051# Make sure either enable_shared or enable_static is yes.
9052test "$enable_shared" = yes || enable_static=yes
9053echo "$as_me:$LINENO: result: $enable_static" >&5
9054echo "${ECHO_T}$enable_static" >&6
9055
9056# The else clause should only fire when bootstrapping the
9057# libtool distribution, otherwise you forgot to ship ltmain.sh
9058# with your package, and you will get complaints that there are
9059# no rules to generate ltmain.sh.
9060if test -f "$ltmain"; then
9061 # See if we are running on zsh, and set the options which allow our commands through
9062 # without removal of \ escapes.
9063 if test -n "${ZSH_VERSION+set}" ; then
9064 setopt NO_GLOB_SUBST
9065 fi
9066 # Now quote all the things that may contain metacharacters while being
9067 # careful not to overquote the AC_SUBSTed values. We take copies of the
9068 # variables and quote the copies for generation of the libtool script.
mmentovai3261e8b2006-09-06 02:56:44 +00009069 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +00009070 SED SHELL STRIP \
9071 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9072 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9073 deplibs_check_method reload_flag reload_cmds need_locks \
9074 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9075 lt_cv_sys_global_symbol_to_c_name_address \
9076 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9077 old_postinstall_cmds old_postuninstall_cmds \
9078 compiler \
9079 CC \
9080 LD \
9081 lt_prog_compiler_wl \
9082 lt_prog_compiler_pic \
9083 lt_prog_compiler_static \
9084 lt_prog_compiler_no_builtin_flag \
9085 export_dynamic_flag_spec \
9086 thread_safe_flag_spec \
9087 whole_archive_flag_spec \
9088 enable_shared_with_static_runtimes \
9089 old_archive_cmds \
9090 old_archive_from_new_cmds \
9091 predep_objects \
9092 postdep_objects \
9093 predeps \
9094 postdeps \
9095 compiler_lib_search_path \
9096 archive_cmds \
9097 archive_expsym_cmds \
9098 postinstall_cmds \
9099 postuninstall_cmds \
9100 old_archive_from_expsyms_cmds \
9101 allow_undefined_flag \
9102 no_undefined_flag \
9103 export_symbols_cmds \
9104 hardcode_libdir_flag_spec \
9105 hardcode_libdir_flag_spec_ld \
9106 hardcode_libdir_separator \
9107 hardcode_automatic \
9108 module_cmds \
9109 module_expsym_cmds \
9110 lt_cv_prog_compiler_c_o \
9111 exclude_expsyms \
9112 include_expsyms; do
9113
9114 case $var in
9115 old_archive_cmds | \
9116 old_archive_from_new_cmds | \
9117 archive_cmds | \
9118 archive_expsym_cmds | \
9119 module_cmds | \
9120 module_expsym_cmds | \
9121 old_archive_from_expsyms_cmds | \
9122 export_symbols_cmds | \
9123 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9124 postinstall_cmds | postuninstall_cmds | \
9125 old_postinstall_cmds | old_postuninstall_cmds | \
9126 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9127 # Double-quote double-evaled strings.
9128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9129 ;;
9130 *)
9131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9132 ;;
9133 esac
9134 done
9135
9136 case $lt_echo in
9137 *'\$0 --fallback-echo"')
9138 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9139 ;;
9140 esac
9141
9142cfgfile="${ofile}T"
9143 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9144 $rm -f "$cfgfile"
9145 { echo "$as_me:$LINENO: creating $ofile" >&5
9146echo "$as_me: creating $ofile" >&6;}
9147
9148 cat <<__EOF__ >> "$cfgfile"
9149#! $SHELL
9150
9151# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9152# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9153# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9154#
9155# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9156# Free Software Foundation, Inc.
9157#
9158# This file is part of GNU Libtool:
9159# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9160#
9161# This program is free software; you can redistribute it and/or modify
9162# it under the terms of the GNU General Public License as published by
9163# the Free Software Foundation; either version 2 of the License, or
9164# (at your option) any later version.
9165#
9166# This program is distributed in the hope that it will be useful, but
9167# WITHOUT ANY WARRANTY; without even the implied warranty of
9168# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9169# General Public License for more details.
9170#
9171# You should have received a copy of the GNU General Public License
9172# along with this program; if not, write to the Free Software
mmentovai3261e8b2006-09-06 02:56:44 +00009173# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
brynercb91a2f2006-08-25 21:14:45 +00009174#
9175# As a special exception to the GNU General Public License, if you
9176# distribute this file as part of a program that contains a
9177# configuration script generated by Autoconf, you may include it under
9178# the same distribution terms that you use for the rest of that program.
9179
9180# A sed program that does not truncate output.
9181SED=$lt_SED
9182
9183# Sed that helps us avoid accidentally triggering echo(1) options like -n.
mmentovai3261e8b2006-09-06 02:56:44 +00009184Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00009185
9186# The HP-UX ksh and POSIX shell print the target directory to stdout
9187# if CDPATH is set.
mmentovai3261e8b2006-09-06 02:56:44 +00009188(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +00009189
9190# The names of the tagged configurations supported by this script.
9191available_tags=
9192
9193# ### BEGIN LIBTOOL CONFIG
9194
9195# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9196
9197# Shell to use when invoking shell scripts.
9198SHELL=$lt_SHELL
9199
9200# Whether or not to build shared libraries.
9201build_libtool_libs=$enable_shared
9202
9203# Whether or not to build static libraries.
9204build_old_libs=$enable_static
9205
9206# Whether or not to add -lc for building shared libraries.
9207build_libtool_need_lc=$archive_cmds_need_lc
9208
9209# Whether or not to disallow shared libs when runtime libs are static
9210allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9211
9212# Whether or not to optimize for fast installation.
9213fast_install=$enable_fast_install
9214
9215# The host system.
9216host_alias=$host_alias
9217host=$host
mmentovai3261e8b2006-09-06 02:56:44 +00009218host_os=$host_os
9219
9220# The build system.
9221build_alias=$build_alias
9222build=$build
9223build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +00009224
9225# An echo program that does not interpret backslashes.
9226echo=$lt_echo
9227
9228# The archiver.
9229AR=$lt_AR
9230AR_FLAGS=$lt_AR_FLAGS
9231
9232# A C compiler.
9233LTCC=$lt_LTCC
9234
mmentovai3261e8b2006-09-06 02:56:44 +00009235# LTCC compiler flags.
9236LTCFLAGS=$lt_LTCFLAGS
9237
brynercb91a2f2006-08-25 21:14:45 +00009238# A language-specific compiler.
9239CC=$lt_compiler
9240
9241# Is the compiler the GNU C compiler?
9242with_gcc=$GCC
9243
9244# An ERE matcher.
9245EGREP=$lt_EGREP
9246
9247# The linker used to build libraries.
9248LD=$lt_LD
9249
9250# Whether we need hard or soft links.
9251LN_S=$lt_LN_S
9252
9253# A BSD-compatible nm program.
9254NM=$lt_NM
9255
9256# A symbol stripping program
9257STRIP=$lt_STRIP
9258
9259# Used to examine libraries when file_magic_cmd begins "file"
9260MAGIC_CMD=$MAGIC_CMD
9261
9262# Used on cygwin: DLL creation program.
9263DLLTOOL="$DLLTOOL"
9264
9265# Used on cygwin: object dumper.
9266OBJDUMP="$OBJDUMP"
9267
9268# Used on cygwin: assembler.
9269AS="$AS"
9270
9271# The name of the directory that contains temporary libtool files.
9272objdir=$objdir
9273
9274# How to create reloadable object files.
9275reload_flag=$lt_reload_flag
9276reload_cmds=$lt_reload_cmds
9277
9278# How to pass a linker flag through the compiler.
9279wl=$lt_lt_prog_compiler_wl
9280
9281# Object file suffix (normally "o").
9282objext="$ac_objext"
9283
9284# Old archive suffix (normally "a").
9285libext="$libext"
9286
9287# Shared library suffix (normally ".so").
9288shrext_cmds='$shrext_cmds'
9289
9290# Executable file suffix (normally "").
9291exeext="$exeext"
9292
9293# Additional compiler flags for building library objects.
9294pic_flag=$lt_lt_prog_compiler_pic
9295pic_mode=$pic_mode
9296
9297# What is the maximum length of a command?
9298max_cmd_len=$lt_cv_sys_max_cmd_len
9299
9300# Does compiler simultaneously support -c and -o options?
9301compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9302
mmentovai3261e8b2006-09-06 02:56:44 +00009303# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +00009304need_locks=$lt_need_locks
9305
9306# Do we need the lib prefix for modules?
9307need_lib_prefix=$need_lib_prefix
9308
9309# Do we need a version for libraries?
9310need_version=$need_version
9311
9312# Whether dlopen is supported.
9313dlopen_support=$enable_dlopen
9314
9315# Whether dlopen of programs is supported.
9316dlopen_self=$enable_dlopen_self
9317
9318# Whether dlopen of statically linked programs is supported.
9319dlopen_self_static=$enable_dlopen_self_static
9320
9321# Compiler flag to prevent dynamic linking.
9322link_static_flag=$lt_lt_prog_compiler_static
9323
9324# Compiler flag to turn off builtin functions.
9325no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9326
9327# Compiler flag to allow reflexive dlopens.
9328export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9329
9330# Compiler flag to generate shared objects directly from archives.
9331whole_archive_flag_spec=$lt_whole_archive_flag_spec
9332
9333# Compiler flag to generate thread-safe objects.
9334thread_safe_flag_spec=$lt_thread_safe_flag_spec
9335
9336# Library versioning type.
9337version_type=$version_type
9338
9339# Format of library name prefix.
9340libname_spec=$lt_libname_spec
9341
9342# List of archive names. First name is the real one, the rest are links.
9343# The last name is the one that the linker finds with -lNAME.
9344library_names_spec=$lt_library_names_spec
9345
9346# The coded name of the library, if different from the real name.
9347soname_spec=$lt_soname_spec
9348
9349# Commands used to build and install an old-style archive.
9350RANLIB=$lt_RANLIB
9351old_archive_cmds=$lt_old_archive_cmds
9352old_postinstall_cmds=$lt_old_postinstall_cmds
9353old_postuninstall_cmds=$lt_old_postuninstall_cmds
9354
9355# Create an old-style archive from a shared archive.
9356old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9357
9358# Create a temporary old-style archive to link instead of a shared archive.
9359old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9360
9361# Commands used to build and install a shared archive.
9362archive_cmds=$lt_archive_cmds
9363archive_expsym_cmds=$lt_archive_expsym_cmds
9364postinstall_cmds=$lt_postinstall_cmds
9365postuninstall_cmds=$lt_postuninstall_cmds
9366
9367# Commands used to build a loadable module (assumed same as above if empty)
9368module_cmds=$lt_module_cmds
9369module_expsym_cmds=$lt_module_expsym_cmds
9370
9371# Commands to strip libraries.
9372old_striplib=$lt_old_striplib
9373striplib=$lt_striplib
9374
9375# Dependencies to place before the objects being linked to create a
9376# shared library.
9377predep_objects=$lt_predep_objects
9378
9379# Dependencies to place after the objects being linked to create a
9380# shared library.
9381postdep_objects=$lt_postdep_objects
9382
9383# Dependencies to place before the objects being linked to create a
9384# shared library.
9385predeps=$lt_predeps
9386
9387# Dependencies to place after the objects being linked to create a
9388# shared library.
9389postdeps=$lt_postdeps
9390
9391# The library search path used internally by the compiler when linking
9392# a shared library.
9393compiler_lib_search_path=$lt_compiler_lib_search_path
9394
9395# Method to check whether dependent libraries are shared objects.
9396deplibs_check_method=$lt_deplibs_check_method
9397
9398# Command to use when deplibs_check_method == file_magic.
9399file_magic_cmd=$lt_file_magic_cmd
9400
9401# Flag that allows shared libraries with undefined symbols to be built.
9402allow_undefined_flag=$lt_allow_undefined_flag
9403
9404# Flag that forces no undefined symbols.
9405no_undefined_flag=$lt_no_undefined_flag
9406
9407# Commands used to finish a libtool library installation in a directory.
9408finish_cmds=$lt_finish_cmds
9409
9410# Same as above, but a single script fragment to be evaled but not shown.
9411finish_eval=$lt_finish_eval
9412
9413# Take the output of nm and produce a listing of raw symbols and C names.
9414global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9415
9416# Transform the output of nm in a proper C declaration
9417global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9418
9419# Transform the output of nm in a C name address pair
9420global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9421
9422# This is the shared library runtime path variable.
9423runpath_var=$runpath_var
9424
9425# This is the shared library path variable.
9426shlibpath_var=$shlibpath_var
9427
9428# Is shlibpath searched before the hard-coded library search path?
9429shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9430
9431# How to hardcode a shared library path into an executable.
9432hardcode_action=$hardcode_action
9433
9434# Whether we should hardcode library paths into libraries.
9435hardcode_into_libs=$hardcode_into_libs
9436
9437# Flag to hardcode \$libdir into a binary during linking.
9438# This must work even if \$libdir does not exist.
9439hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9440
9441# If ld is used when linking, flag to hardcode \$libdir into
9442# a binary during linking. This must work even if \$libdir does
9443# not exist.
9444hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9445
9446# Whether we need a single -rpath flag with a separated argument.
9447hardcode_libdir_separator=$lt_hardcode_libdir_separator
9448
9449# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9450# resulting binary.
9451hardcode_direct=$hardcode_direct
9452
9453# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9454# resulting binary.
9455hardcode_minus_L=$hardcode_minus_L
9456
9457# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9458# the resulting binary.
9459hardcode_shlibpath_var=$hardcode_shlibpath_var
9460
9461# Set to yes if building a shared library automatically hardcodes DIR into the library
9462# and all subsequent libraries and executables linked against it.
9463hardcode_automatic=$hardcode_automatic
9464
9465# Variables whose values should be saved in libtool wrapper scripts and
9466# restored at relink time.
9467variables_saved_for_relink="$variables_saved_for_relink"
9468
9469# Whether libtool must link a program against all its dependency libraries.
9470link_all_deplibs=$link_all_deplibs
9471
9472# Compile-time system search path for libraries
9473sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9474
9475# Run-time system search path for libraries
9476sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9477
9478# Fix the shell variable \$srcfile for the compiler.
9479fix_srcfile_path="$fix_srcfile_path"
9480
9481# Set to yes if exported symbols are required.
9482always_export_symbols=$always_export_symbols
9483
9484# The commands to list exported symbols.
9485export_symbols_cmds=$lt_export_symbols_cmds
9486
9487# The commands to extract the exported symbol list from a shared archive.
9488extract_expsyms_cmds=$lt_extract_expsyms_cmds
9489
9490# Symbols that should not be listed in the preloaded symbols.
9491exclude_expsyms=$lt_exclude_expsyms
9492
9493# Symbols that must always be exported.
9494include_expsyms=$lt_include_expsyms
9495
9496# ### END LIBTOOL CONFIG
9497
9498__EOF__
9499
9500
9501 case $host_os in
9502 aix3*)
9503 cat <<\EOF >> "$cfgfile"
9504
9505# AIX sometimes has problems with the GCC collect2 program. For some
9506# reason, if we set the COLLECT_NAMES environment variable, the problems
9507# vanish in a puff of smoke.
9508if test "X${COLLECT_NAMES+set}" != Xset; then
9509 COLLECT_NAMES=
9510 export COLLECT_NAMES
9511fi
9512EOF
9513 ;;
9514 esac
9515
9516 # We use sed instead of cat because bash on DJGPP gets confused if
9517 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9518 # text mode, it properly converts lines to CR/LF. This bash problem
9519 # is reportedly fixed, but why not run on old versions too?
9520 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9521
9522 mv -f "$cfgfile" "$ofile" || \
9523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9524 chmod +x "$ofile"
9525
9526else
9527 # If there is no Makefile yet, we rely on a make rule to execute
9528 # `config.status --recheck' to rerun these tests and create the
9529 # libtool script then.
9530 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9531 if test -f "$ltmain_in"; then
9532 test -f Makefile && make "$ltmain"
9533 fi
9534fi
9535
9536
9537ac_ext=c
9538ac_cpp='$CPP $CPPFLAGS'
9539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542
9543CC="$lt_save_CC"
9544
9545
9546# Check whether --with-tags or --without-tags was given.
9547if test "${with_tags+set}" = set; then
9548 withval="$with_tags"
9549 tagnames="$withval"
9550fi;
9551
9552if test -f "$ltmain" && test -n "$tagnames"; then
9553 if test ! -f "${ofile}"; then
9554 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9555echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9556 fi
9557
9558 if test -z "$LTCC"; then
9559 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9560 if test -z "$LTCC"; then
9561 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9562echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9563 else
9564 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9565echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9566 fi
9567 fi
mmentovai3261e8b2006-09-06 02:56:44 +00009568 if test -z "$LTCFLAGS"; then
9569 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9570 fi
brynercb91a2f2006-08-25 21:14:45 +00009571
9572 # Extract list of available tagged configurations in $ofile.
9573 # Note that this assumes the entire list is on one line.
9574 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9575
9576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9577 for tagname in $tagnames; do
9578 IFS="$lt_save_ifs"
9579 # Check whether tagname contains only valid characters
9580 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9581 "") ;;
9582 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9583echo "$as_me: error: invalid tag name: $tagname" >&2;}
9584 { (exit 1); exit 1; }; }
9585 ;;
9586 esac
9587
9588 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9589 then
9590 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9591echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9592 { (exit 1); exit 1; }; }
9593 fi
9594
9595 # Update the list of available tags.
9596 if test -n "$tagname"; then
9597 echo appending configuration tag \"$tagname\" to $ofile
9598
9599 case $tagname in
9600 CXX)
mmentovai3261e8b2006-09-06 02:56:44 +00009601 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9602 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9603 (test "X$CXX" != "Xg++"))) ; then
brynercb91a2f2006-08-25 21:14:45 +00009604 ac_ext=cc
9605ac_cpp='$CXXCPP $CPPFLAGS'
9606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9609
9610
9611
9612
9613archive_cmds_need_lc_CXX=no
9614allow_undefined_flag_CXX=
9615always_export_symbols_CXX=no
9616archive_expsym_cmds_CXX=
9617export_dynamic_flag_spec_CXX=
9618hardcode_direct_CXX=no
9619hardcode_libdir_flag_spec_CXX=
9620hardcode_libdir_flag_spec_ld_CXX=
9621hardcode_libdir_separator_CXX=
9622hardcode_minus_L_CXX=no
mmentovai3261e8b2006-09-06 02:56:44 +00009623hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +00009624hardcode_automatic_CXX=no
9625module_cmds_CXX=
9626module_expsym_cmds_CXX=
9627link_all_deplibs_CXX=unknown
9628old_archive_cmds_CXX=$old_archive_cmds
9629no_undefined_flag_CXX=
9630whole_archive_flag_spec_CXX=
9631enable_shared_with_static_runtimes_CXX=no
9632
9633# Dependencies to place before and after the object being linked:
9634predep_objects_CXX=
9635postdep_objects_CXX=
9636predeps_CXX=
9637postdeps_CXX=
9638compiler_lib_search_path_CXX=
9639
9640# Source file extension for C++ test sources.
mmentovai3261e8b2006-09-06 02:56:44 +00009641ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00009642
9643# Object file extension for compiled C++ test sources.
9644objext=o
9645objext_CXX=$objext
9646
9647# Code to be used in simple compile tests
9648lt_simple_compile_test_code="int some_variable = 0;\n"
9649
9650# Code to be used in simple link tests
mmentovai3261e8b2006-09-06 02:56:44 +00009651lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
brynercb91a2f2006-08-25 21:14:45 +00009652
9653# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9654
9655# If no C compiler was specified, use CC.
9656LTCC=${LTCC-"$CC"}
9657
mmentovai3261e8b2006-09-06 02:56:44 +00009658# If no C compiler flags were specified, use CFLAGS.
9659LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9660
brynercb91a2f2006-08-25 21:14:45 +00009661# Allow CC to be a program name with arguments.
9662compiler=$CC
9663
9664
mmentovai3261e8b2006-09-06 02:56:44 +00009665# save warnings/boilerplate of simple test code
9666ac_outfile=conftest.$ac_objext
9667printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9669_lt_compiler_boilerplate=`cat conftest.err`
9670$rm conftest*
9671
9672ac_outfile=conftest.$ac_objext
9673printf "$lt_simple_link_test_code" >conftest.$ac_ext
9674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9675_lt_linker_boilerplate=`cat conftest.err`
9676$rm conftest*
9677
9678
brynercb91a2f2006-08-25 21:14:45 +00009679# Allow CC to be a program name with arguments.
9680lt_save_CC=$CC
9681lt_save_LD=$LD
9682lt_save_GCC=$GCC
9683GCC=$GXX
9684lt_save_with_gnu_ld=$with_gnu_ld
9685lt_save_path_LD=$lt_cv_path_LD
9686if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9687 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9688else
mmentovai3261e8b2006-09-06 02:56:44 +00009689 $as_unset lt_cv_prog_gnu_ld
brynercb91a2f2006-08-25 21:14:45 +00009690fi
9691if test -n "${lt_cv_path_LDCXX+set}"; then
9692 lt_cv_path_LD=$lt_cv_path_LDCXX
9693else
mmentovai3261e8b2006-09-06 02:56:44 +00009694 $as_unset lt_cv_path_LD
brynercb91a2f2006-08-25 21:14:45 +00009695fi
9696test -z "${LDCXX+set}" || LD=$LDCXX
9697CC=${CXX-"c++"}
9698compiler=$CC
9699compiler_CXX=$CC
mmentovai3261e8b2006-09-06 02:56:44 +00009700for cc_temp in $compiler""; do
9701 case $cc_temp in
9702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9704 \-*) ;;
9705 *) break;;
9706 esac
9707done
9708cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9709
brynercb91a2f2006-08-25 21:14:45 +00009710
9711# We don't want -fno-exception wen compiling C++ code, so set the
9712# no_builtin_flag separately
9713if test "$GXX" = yes; then
9714 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9715else
9716 lt_prog_compiler_no_builtin_flag_CXX=
9717fi
9718
9719if test "$GXX" = yes; then
9720 # Set up default GNU C++ configuration
9721
9722
9723# Check whether --with-gnu-ld or --without-gnu-ld was given.
9724if test "${with_gnu_ld+set}" = set; then
9725 withval="$with_gnu_ld"
9726 test "$withval" = no || with_gnu_ld=yes
9727else
9728 with_gnu_ld=no
9729fi;
9730ac_prog=ld
9731if test "$GCC" = yes; then
9732 # Check if gcc -print-prog-name=ld gives a path.
9733 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9734echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9735 case $host in
9736 *-*-mingw*)
9737 # gcc leaves a trailing carriage return which upsets mingw
9738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9739 *)
9740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9741 esac
9742 case $ac_prog in
9743 # Accept absolute paths.
9744 [\\/]* | ?:[\\/]*)
9745 re_direlt='/[^/][^/]*/\.\./'
9746 # Canonicalize the pathname of ld
9747 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9748 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9749 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9750 done
9751 test -z "$LD" && LD="$ac_prog"
9752 ;;
9753 "")
9754 # If it fails, then pretend we aren't using GCC.
9755 ac_prog=ld
9756 ;;
9757 *)
9758 # If it is relative, then search for the first ld in PATH.
9759 with_gnu_ld=unknown
9760 ;;
9761 esac
9762elif test "$with_gnu_ld" = yes; then
9763 echo "$as_me:$LINENO: checking for GNU ld" >&5
9764echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9765else
9766 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9767echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9768fi
9769if test "${lt_cv_path_LD+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772 if test -z "$LD"; then
9773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9774 for ac_dir in $PATH; do
9775 IFS="$lt_save_ifs"
9776 test -z "$ac_dir" && ac_dir=.
9777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9778 lt_cv_path_LD="$ac_dir/$ac_prog"
9779 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai3261e8b2006-09-06 02:56:44 +00009780 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00009781 # Break only if it was the GNU/non-GNU ld that we prefer.
9782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9783 *GNU* | *'with BFD'*)
9784 test "$with_gnu_ld" != no && break
9785 ;;
9786 *)
9787 test "$with_gnu_ld" != yes && break
9788 ;;
9789 esac
9790 fi
9791 done
9792 IFS="$lt_save_ifs"
9793else
9794 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9795fi
9796fi
9797
9798LD="$lt_cv_path_LD"
9799if test -n "$LD"; then
9800 echo "$as_me:$LINENO: result: $LD" >&5
9801echo "${ECHO_T}$LD" >&6
9802else
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
9805fi
9806test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9807echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9808 { (exit 1); exit 1; }; }
9809echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9810echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9811if test "${lt_cv_prog_gnu_ld+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
mmentovai3261e8b2006-09-06 02:56:44 +00009814 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00009815case `$LD -v 2>&1 </dev/null` in
9816*GNU* | *'with BFD'*)
9817 lt_cv_prog_gnu_ld=yes
9818 ;;
9819*)
9820 lt_cv_prog_gnu_ld=no
9821 ;;
9822esac
9823fi
9824echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9825echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9826with_gnu_ld=$lt_cv_prog_gnu_ld
9827
9828
9829
9830 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9831 # archiving commands below assume that GNU ld is being used.
9832 if test "$with_gnu_ld" = yes; then
9833 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 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'
9835
9836 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9838
9839 # If archive_cmds runs LD, not CC, wlarc should be empty
9840 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9841 # investigate it a little bit more. (MM)
9842 wlarc='${wl}'
9843
9844 # ancient GNU ld didn't support --whole-archive et. al.
9845 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9846 grep 'no-whole-archive' > /dev/null; then
9847 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9848 else
9849 whole_archive_flag_spec_CXX=
9850 fi
9851 else
9852 with_gnu_ld=no
9853 wlarc=
9854
9855 # A generic and very simple default shared library creation
9856 # command for GNU C++ for the case where it uses the native
9857 # linker, instead of GNU ld. If possible, this setting should
9858 # overridden to take advantage of the native linker features on
9859 # the platform it is being used on.
9860 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9861 fi
9862
9863 # Commands to make compiler produce verbose output that lists
9864 # what "hidden" libraries, object files and flags are used when
9865 # linking a shared library.
9866 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9867
9868else
9869 GXX=no
9870 with_gnu_ld=no
9871 wlarc=
9872fi
9873
9874# PORTME: fill in a description of your system's C++ link characteristics
9875echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9876echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9877ld_shlibs_CXX=yes
9878case $host_os in
9879 aix3*)
9880 # FIXME: insert proper C++ library support
9881 ld_shlibs_CXX=no
9882 ;;
9883 aix4* | aix5*)
9884 if test "$host_cpu" = ia64; then
9885 # On IA64, the linker does run time linking by default, so we don't
9886 # have to do anything special.
9887 aix_use_runtimelinking=no
9888 exp_sym_flag='-Bexport'
9889 no_entry_flag=""
9890 else
9891 aix_use_runtimelinking=no
9892
9893 # Test if we are trying to use run time linking or normal
9894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9895 # need to do runtime linking.
9896 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9897 for ld_flag in $LDFLAGS; do
9898 case $ld_flag in
9899 *-brtl*)
9900 aix_use_runtimelinking=yes
9901 break
9902 ;;
9903 esac
9904 done
mmentovai3261e8b2006-09-06 02:56:44 +00009905 ;;
brynercb91a2f2006-08-25 21:14:45 +00009906 esac
9907
9908 exp_sym_flag='-bexport'
9909 no_entry_flag='-bnoentry'
9910 fi
9911
9912 # When large executables or shared objects are built, AIX ld can
9913 # have problems creating the table of contents. If linking a library
9914 # or program results in "error TOC overflow" add -mminimal-toc to
9915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9917
9918 archive_cmds_CXX=''
9919 hardcode_direct_CXX=yes
9920 hardcode_libdir_separator_CXX=':'
9921 link_all_deplibs_CXX=yes
9922
9923 if test "$GXX" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +00009924 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00009925 # We only want to do this on AIX 4.2 and lower, the check
9926 # below for broken collect2 doesn't work under 4.3+
9927 collect2name=`${CC} -print-prog-name=collect2`
9928 if test -f "$collect2name" && \
9929 strings "$collect2name" | grep resolve_lib_name >/dev/null
9930 then
9931 # We have reworked collect2
9932 hardcode_direct_CXX=yes
9933 else
9934 # We have old collect2
9935 hardcode_direct_CXX=unsupported
9936 # It fails to find uninstalled libraries when the uninstalled
9937 # path is not listed in the libpath. Setting hardcode_minus_L
9938 # to unsupported forces relinking
9939 hardcode_minus_L_CXX=yes
9940 hardcode_libdir_flag_spec_CXX='-L$libdir'
9941 hardcode_libdir_separator_CXX=
9942 fi
mmentovai3261e8b2006-09-06 02:56:44 +00009943 ;;
brynercb91a2f2006-08-25 21:14:45 +00009944 esac
9945 shared_flag='-shared'
mmentovai3261e8b2006-09-06 02:56:44 +00009946 if test "$aix_use_runtimelinking" = yes; then
9947 shared_flag="$shared_flag "'${wl}-G'
9948 fi
brynercb91a2f2006-08-25 21:14:45 +00009949 else
9950 # not using gcc
9951 if test "$host_cpu" = ia64; then
9952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9953 # chokes on -Wl,-G. The following line is correct:
9954 shared_flag='-G'
9955 else
9956 if test "$aix_use_runtimelinking" = yes; then
9957 shared_flag='${wl}-G'
9958 else
9959 shared_flag='${wl}-bM:SRE'
9960 fi
9961 fi
9962 fi
9963
9964 # It seems that -bexpall does not export symbols beginning with
9965 # underscore (_), so it is better to generate a list of symbols to export.
9966 always_export_symbols_CXX=yes
9967 if test "$aix_use_runtimelinking" = yes; then
9968 # Warning - without using the other runtime loading flags (-brtl),
9969 # -berok will link without error, but may produce a broken library.
9970 allow_undefined_flag_CXX='-berok'
9971 # Determine the default libpath from the value encoded in an empty executable.
9972 cat >conftest.$ac_ext <<_ACEOF
9973/* confdefs.h. */
9974_ACEOF
9975cat confdefs.h >>conftest.$ac_ext
9976cat >>conftest.$ac_ext <<_ACEOF
9977/* end confdefs.h. */
9978
9979int
9980main ()
9981{
9982
9983 ;
9984 return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
9988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +00009996 { ac_try='test -z "$ac_cxx_werror_flag"
9997 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +00009998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009
10010aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10011}'`
10012# Check for a 64-bit object if we didn't find anything.
10013if 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; }
10014}'`; fi
10015else
10016 echo "$as_me: failed program was:" >&5
10017sed 's/^/| /' conftest.$ac_ext >&5
10018
10019fi
10020rm -f conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10023
10024 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10025
mmentovai3261e8b2006-09-06 02:56:44 +000010026 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
brynercb91a2f2006-08-25 21:14:45 +000010027 else
10028 if test "$host_cpu" = ia64; then
10029 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10030 allow_undefined_flag_CXX="-z nodefs"
mmentovai3261e8b2006-09-06 02:56:44 +000010031 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
brynercb91a2f2006-08-25 21:14:45 +000010032 else
10033 # Determine the default libpath from the value encoded in an empty executable.
10034 cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h. */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h. */
10040
10041int
10042main ()
10043{
10044
10045 ;
10046 return 0;
10047}
10048_ACEOF
10049rm -f conftest.$ac_objext conftest$ac_exeext
10050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +000010058 { ac_try='test -z "$ac_cxx_werror_flag"
10059 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000010060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest$ac_exeext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071
10072aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10073}'`
10074# Check for a 64-bit object if we didn't find anything.
10075if 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; }
10076}'`; fi
10077else
10078 echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
10081fi
10082rm -f conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10085
10086 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10087 # Warning - without using the other run time loading flags,
10088 # -berok will link without error, but may produce a broken library.
10089 no_undefined_flag_CXX=' ${wl}-bernotok'
10090 allow_undefined_flag_CXX=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000010091 # Exported symbols can be pulled into shared objects from archives
mmentovai3261e8b2006-09-06 02:56:44 +000010092 whole_archive_flag_spec_CXX='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000010093 archive_cmds_need_lc_CXX=yes
mmentovai3261e8b2006-09-06 02:56:44 +000010094 # This is similar to how AIX traditionally builds its shared libraries.
10095 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
brynercb91a2f2006-08-25 21:14:45 +000010096 fi
10097 fi
10098 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010099
10100 beos*)
10101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10102 allow_undefined_flag_CXX=unsupported
10103 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10104 # support --undefined. This deserves some investigation. FIXME
10105 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 else
10107 ld_shlibs_CXX=no
10108 fi
10109 ;;
10110
brynercb91a2f2006-08-25 21:14:45 +000010111 chorus*)
10112 case $cc_basename in
10113 *)
10114 # FIXME: insert proper C++ library support
10115 ld_shlibs_CXX=no
10116 ;;
10117 esac
10118 ;;
10119
10120 cygwin* | mingw* | pw32*)
10121 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10122 # as there is no search path for DLLs.
10123 hardcode_libdir_flag_spec_CXX='-L$libdir'
10124 allow_undefined_flag_CXX=unsupported
10125 always_export_symbols_CXX=no
10126 enable_shared_with_static_runtimes_CXX=yes
10127
10128 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai3261e8b2006-09-06 02:56:44 +000010129 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000010130 # If the export-symbols file already is a .def file (1st line
10131 # is EXPORTS), use it as is; otherwise, prepend...
10132 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10133 cp $export_symbols $output_objdir/$soname.def;
10134 else
10135 echo EXPORTS > $output_objdir/$soname.def;
10136 cat $export_symbols >> $output_objdir/$soname.def;
10137 fi~
mmentovai3261e8b2006-09-06 02:56:44 +000010138 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000010139 else
10140 ld_shlibs_CXX=no
10141 fi
10142 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010143 darwin* | rhapsody*)
10144 case $host_os in
10145 rhapsody* | darwin1.[012])
10146 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10147 ;;
10148 *) # Darwin 1.3 on
10149 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10150 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10151 else
10152 case ${MACOSX_DEPLOYMENT_TARGET} in
10153 10.[012])
10154 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10155 ;;
10156 10.*)
10157 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10158 ;;
10159 esac
10160 fi
10161 ;;
bryner07f8ef52006-09-05 19:42:57 +000010162 esac
mmentovai3261e8b2006-09-06 02:56:44 +000010163 archive_cmds_need_lc_CXX=no
10164 hardcode_direct_CXX=no
10165 hardcode_automatic_CXX=yes
10166 hardcode_shlibpath_var_CXX=unsupported
10167 whole_archive_flag_spec_CXX=''
10168 link_all_deplibs_CXX=yes
bryner07f8ef52006-09-05 19:42:57 +000010169
mmentovai3261e8b2006-09-06 02:56:44 +000010170 if test "$GXX" = yes ; then
10171 lt_int_apple_cc_single_mod=no
10172 output_verbose_link_cmd='echo'
10173 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10174 lt_int_apple_cc_single_mod=yes
10175 fi
10176 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10177 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10178 else
10179 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10180 fi
10181 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10183 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10184 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}'
10185 else
10186 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10187 fi
10188 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10189 else
10190 case $cc_basename in
10191 xlc*)
10192 output_verbose_link_cmd='echo'
10193 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10194 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10195 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10196 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10197 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10198 ;;
10199 *)
10200 ld_shlibs_CXX=no
10201 ;;
10202 esac
10203 fi
10204 ;;
brynercb91a2f2006-08-25 21:14:45 +000010205
10206 dgux*)
10207 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010208 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000010209 # FIXME: insert proper C++ library support
10210 ld_shlibs_CXX=no
10211 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010212 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000010213 # Green Hills C++ Compiler
10214 # FIXME: insert proper C++ library support
10215 ld_shlibs_CXX=no
10216 ;;
10217 *)
10218 # FIXME: insert proper C++ library support
10219 ld_shlibs_CXX=no
10220 ;;
10221 esac
10222 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010223 freebsd[12]*)
brynercb91a2f2006-08-25 21:14:45 +000010224 # C++ shared libraries reported to be fairly broken before switch to ELF
10225 ld_shlibs_CXX=no
10226 ;;
10227 freebsd-elf*)
10228 archive_cmds_need_lc_CXX=no
10229 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010230 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000010231 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10232 # conventions
10233 ld_shlibs_CXX=yes
10234 ;;
10235 gnu*)
10236 ;;
10237 hpux9*)
10238 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10239 hardcode_libdir_separator_CXX=:
10240 export_dynamic_flag_spec_CXX='${wl}-E'
10241 hardcode_direct_CXX=yes
10242 hardcode_minus_L_CXX=yes # Not in the search PATH,
10243 # but as the default
10244 # location of the library.
10245
10246 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010247 CC*)
brynercb91a2f2006-08-25 21:14:45 +000010248 # FIXME: insert proper C++ library support
10249 ld_shlibs_CXX=no
10250 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010251 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000010252 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'
10253 # Commands to make compiler produce verbose output that lists
10254 # what "hidden" libraries, object files and flags are used when
10255 # linking a shared library.
10256 #
10257 # There doesn't appear to be a way to prevent this compiler from
10258 # explicitly linking system object files so we need to strip them
10259 # from the output so that they don't get included in the library
10260 # dependencies.
mmentovai3261e8b2006-09-06 02:56:44 +000010261 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'
brynercb91a2f2006-08-25 21:14:45 +000010262 ;;
10263 *)
10264 if test "$GXX" = yes; then
10265 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'
10266 else
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 fi
10270 ;;
10271 esac
10272 ;;
10273 hpux10*|hpux11*)
10274 if test $with_gnu_ld = no; then
mmentovai3261e8b2006-09-06 02:56:44 +000010275 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10276 hardcode_libdir_separator_CXX=:
10277
10278 case $host_cpu in
10279 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000010280 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
brynercb91a2f2006-08-25 21:14:45 +000010281 ;;
10282 *)
brynercb91a2f2006-08-25 21:14:45 +000010283 export_dynamic_flag_spec_CXX='${wl}-E'
10284 ;;
10285 esac
10286 fi
mmentovai3261e8b2006-09-06 02:56:44 +000010287 case $host_cpu in
10288 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000010289 hardcode_direct_CXX=no
10290 hardcode_shlibpath_var_CXX=no
10291 ;;
brynercb91a2f2006-08-25 21:14:45 +000010292 *)
10293 hardcode_direct_CXX=yes
10294 hardcode_minus_L_CXX=yes # Not in the search PATH,
10295 # but as the default
10296 # location of the library.
10297 ;;
10298 esac
10299
10300 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010301 CC*)
brynercb91a2f2006-08-25 21:14:45 +000010302 # FIXME: insert proper C++ library support
10303 ld_shlibs_CXX=no
10304 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010305 aCC*)
10306 case $host_cpu in
10307 hppa*64*)
10308 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10309 ;;
10310 ia64*)
10311 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000010312 ;;
10313 *)
10314 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10315 ;;
10316 esac
10317 # Commands to make compiler produce verbose output that lists
10318 # what "hidden" libraries, object files and flags are used when
10319 # linking a shared library.
10320 #
10321 # There doesn't appear to be a way to prevent this compiler from
10322 # explicitly linking system object files so we need to strip them
10323 # from the output so that they don't get included in the library
10324 # dependencies.
10325 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'
10326 ;;
10327 *)
10328 if test "$GXX" = yes; then
10329 if test $with_gnu_ld = no; then
mmentovai3261e8b2006-09-06 02:56:44 +000010330 case $host_cpu in
10331 hppa*64*)
10332 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10333 ;;
10334 ia64*)
10335 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000010336 ;;
10337 *)
10338 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'
10339 ;;
10340 esac
10341 fi
10342 else
10343 # FIXME: insert proper C++ library support
10344 ld_shlibs_CXX=no
10345 fi
10346 ;;
10347 esac
10348 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010349 interix3*)
10350 hardcode_direct_CXX=no
10351 hardcode_shlibpath_var_CXX=no
10352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10353 export_dynamic_flag_spec_CXX='${wl}-E'
10354 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10355 # Instead, shared libraries are loaded at an image base (0x10000000 by
10356 # default) and relocated if they conflict, which is a slow very memory
10357 # consuming and fragmenting process. To avoid this, we pick a random,
10358 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10359 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10360 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10361 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10362 ;;
brynercb91a2f2006-08-25 21:14:45 +000010363 irix5* | irix6*)
10364 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010365 CC*)
brynercb91a2f2006-08-25 21:14:45 +000010366 # SGI C++
mmentovai3261e8b2006-09-06 02:56:44 +000010367 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000010368
10369 # Archives containing C++ object files must be created using
10370 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10371 # necessary to make sure instantiated templates are included
10372 # in the archive.
10373 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10374 ;;
10375 *)
10376 if test "$GXX" = yes; then
10377 if test "$with_gnu_ld" = no; then
mmentovai3261e8b2006-09-06 02:56:44 +000010378 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000010379 else
10380 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'
10381 fi
10382 fi
10383 link_all_deplibs_CXX=yes
10384 ;;
10385 esac
10386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10387 hardcode_libdir_separator_CXX=:
10388 ;;
10389 linux*)
10390 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010391 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000010392 # Kuck and Associates, Inc. (KAI) C++ Compiler
10393
10394 # KCC will only create a shared library if the output file
10395 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10396 # to its proper name (with version) after linking.
10397 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'
10398 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'
10399 # Commands to make compiler produce verbose output that lists
10400 # what "hidden" libraries, object files and flags are used when
10401 # linking a shared library.
10402 #
10403 # There doesn't appear to be a way to prevent this compiler from
10404 # explicitly linking system object files so we need to strip them
10405 # from the output so that they don't get included in the library
10406 # dependencies.
10407 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'
10408
10409 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10411
10412 # Archives containing C++ object files must be created using
10413 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10414 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10415 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010416 icpc*)
brynercb91a2f2006-08-25 21:14:45 +000010417 # Intel C++
10418 with_gnu_ld=yes
mmentovai3261e8b2006-09-06 02:56:44 +000010419 # version 8.0 and above of icpc choke on multiply defined symbols
10420 # if we add $predep_objects and $postdep_objects, however 7.1 and
10421 # earlier do not add the objects themselves.
10422 case `$CC -V 2>&1` in
10423 *"Version 7."*)
10424 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10425 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'
10426 ;;
10427 *) # Version 8.0 or newer
10428 tmp_idyn=
10429 case $host_cpu in
10430 ia64*) tmp_idyn=' -i_dynamic';;
10431 esac
10432 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10433 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10434 ;;
10435 esac
brynercb91a2f2006-08-25 21:14:45 +000010436 archive_cmds_need_lc_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000010437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10439 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10440 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010441 pgCC*)
10442 # Portland Group C++ compiler
10443 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10444 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10445
10446 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10448 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10449 ;;
10450 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000010451 # Compaq C++
10452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10453 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'
10454
10455 runpath_var=LD_RUN_PATH
10456 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10457 hardcode_libdir_separator_CXX=:
10458
10459 # Commands to make compiler produce verbose output that lists
10460 # what "hidden" libraries, object files and flags are used when
10461 # linking a shared library.
10462 #
10463 # There doesn't appear to be a way to prevent this compiler from
10464 # explicitly linking system object files so we need to strip them
10465 # from the output so that they don't get included in the library
10466 # dependencies.
10467 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'
10468 ;;
10469 esac
10470 ;;
10471 lynxos*)
10472 # FIXME: insert proper C++ library support
10473 ld_shlibs_CXX=no
10474 ;;
10475 m88k*)
10476 # FIXME: insert proper C++ library support
10477 ld_shlibs_CXX=no
10478 ;;
10479 mvs*)
10480 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010481 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000010482 # FIXME: insert proper C++ library support
10483 ld_shlibs_CXX=no
10484 ;;
10485 *)
10486 # FIXME: insert proper C++ library support
10487 ld_shlibs_CXX=no
10488 ;;
10489 esac
10490 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010491 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000010492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10493 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10494 wlarc=
10495 hardcode_libdir_flag_spec_CXX='-R$libdir'
10496 hardcode_direct_CXX=yes
10497 hardcode_shlibpath_var_CXX=no
10498 fi
10499 # Workaround some broken pre-1.5 toolchains
10500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10501 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010502 openbsd2*)
10503 # C++ shared libraries are fairly broken
10504 ld_shlibs_CXX=no
10505 ;;
10506 openbsd*)
10507 hardcode_direct_CXX=yes
10508 hardcode_shlibpath_var_CXX=no
10509 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10510 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10512 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10513 export_dynamic_flag_spec_CXX='${wl}-E'
10514 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10515 fi
10516 output_verbose_link_cmd='echo'
10517 ;;
brynercb91a2f2006-08-25 21:14:45 +000010518 osf3*)
10519 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010520 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000010521 # Kuck and Associates, Inc. (KAI) C++ Compiler
10522
10523 # KCC will only create a shared library if the output file
10524 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10525 # to its proper name (with version) after linking.
10526 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10527
10528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10529 hardcode_libdir_separator_CXX=:
10530
10531 # Archives containing C++ object files must be created using
10532 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10533 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10534
10535 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010536 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000010537 # Rational C++ 2.4.1
10538 # FIXME: insert proper C++ library support
10539 ld_shlibs_CXX=no
10540 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010541 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000010542 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai3261e8b2006-09-06 02:56:44 +000010543 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000010544
10545 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10546 hardcode_libdir_separator_CXX=:
10547
10548 # Commands to make compiler produce verbose output that lists
10549 # what "hidden" libraries, object files and flags are used when
10550 # linking a shared library.
10551 #
10552 # There doesn't appear to be a way to prevent this compiler from
10553 # explicitly linking system object files so we need to strip them
10554 # from the output so that they don't get included in the library
10555 # dependencies.
10556 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'
10557 ;;
10558 *)
10559 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10560 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai3261e8b2006-09-06 02:56:44 +000010561 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000010562
10563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10564 hardcode_libdir_separator_CXX=:
10565
10566 # Commands to make compiler produce verbose output that lists
10567 # what "hidden" libraries, object files and flags are used when
10568 # linking a shared library.
10569 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10570
10571 else
10572 # FIXME: insert proper C++ library support
10573 ld_shlibs_CXX=no
10574 fi
10575 ;;
10576 esac
10577 ;;
10578 osf4* | osf5*)
10579 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010580 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000010581 # Kuck and Associates, Inc. (KAI) C++ Compiler
10582
10583 # KCC will only create a shared library if the output file
10584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10585 # to its proper name (with version) after linking.
10586 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'
10587
10588 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10589 hardcode_libdir_separator_CXX=:
10590
10591 # Archives containing C++ object files must be created using
10592 # the KAI C++ compiler.
10593 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10594 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010595 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000010596 # Rational C++ 2.4.1
10597 # FIXME: insert proper C++ library support
10598 ld_shlibs_CXX=no
10599 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010600 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000010601 allow_undefined_flag_CXX=' -expect_unresolved \*'
mmentovai3261e8b2006-09-06 02:56:44 +000010602 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000010603 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10604 echo "-hidden">> $lib.exp~
mmentovai3261e8b2006-09-06 02:56:44 +000010605 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
brynercb91a2f2006-08-25 21:14:45 +000010606 $rm $lib.exp'
10607
10608 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10609 hardcode_libdir_separator_CXX=:
10610
10611 # Commands to make compiler produce verbose output that lists
10612 # what "hidden" libraries, object files and flags are used when
10613 # linking a shared library.
10614 #
10615 # There doesn't appear to be a way to prevent this compiler from
10616 # explicitly linking system object files so we need to strip them
10617 # from the output so that they don't get included in the library
10618 # dependencies.
10619 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'
10620 ;;
10621 *)
10622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10623 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai3261e8b2006-09-06 02:56:44 +000010624 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000010625
10626 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10627 hardcode_libdir_separator_CXX=:
10628
10629 # Commands to make compiler produce verbose output that lists
10630 # what "hidden" libraries, object files and flags are used when
10631 # linking a shared library.
10632 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10633
10634 else
10635 # FIXME: insert proper C++ library support
10636 ld_shlibs_CXX=no
10637 fi
10638 ;;
10639 esac
10640 ;;
10641 psos*)
10642 # FIXME: insert proper C++ library support
10643 ld_shlibs_CXX=no
10644 ;;
brynercb91a2f2006-08-25 21:14:45 +000010645 sunos4*)
10646 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010647 CC*)
brynercb91a2f2006-08-25 21:14:45 +000010648 # Sun C++ 4.x
10649 # FIXME: insert proper C++ library support
10650 ld_shlibs_CXX=no
10651 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010652 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000010653 # Lucid
10654 # FIXME: insert proper C++ library support
10655 ld_shlibs_CXX=no
10656 ;;
10657 *)
10658 # FIXME: insert proper C++ library support
10659 ld_shlibs_CXX=no
10660 ;;
10661 esac
10662 ;;
10663 solaris*)
10664 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010665 CC*)
brynercb91a2f2006-08-25 21:14:45 +000010666 # Sun C++ 4.2, 5.x and Centerline C++
mmentovai3261e8b2006-09-06 02:56:44 +000010667 archive_cmds_need_lc_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000010668 no_undefined_flag_CXX=' -zdefs'
mmentovai3261e8b2006-09-06 02:56:44 +000010669 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000010670 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
mmentovai3261e8b2006-09-06 02:56:44 +000010671 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +000010672
10673 hardcode_libdir_flag_spec_CXX='-R$libdir'
10674 hardcode_shlibpath_var_CXX=no
10675 case $host_os in
mmentovai3261e8b2006-09-06 02:56:44 +000010676 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynercb91a2f2006-08-25 21:14:45 +000010677 *)
10678 # The C++ compiler is used as linker so we must use $wl
10679 # flag to pass the commands to the underlying system
mmentovai3261e8b2006-09-06 02:56:44 +000010680 # linker. We must also pass each convience library through
10681 # to the system linker between allextract/defaultextract.
10682 # The C++ compiler will combine linker options so we
10683 # cannot just pass the convience library names through
10684 # without $wl.
brynercb91a2f2006-08-25 21:14:45 +000010685 # Supported since Solaris 2.6 (maybe 2.5.1?)
mmentovai3261e8b2006-09-06 02:56:44 +000010686 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
brynercb91a2f2006-08-25 21:14:45 +000010687 ;;
10688 esac
10689 link_all_deplibs_CXX=yes
10690
mmentovai3261e8b2006-09-06 02:56:44 +000010691 output_verbose_link_cmd='echo'
brynercb91a2f2006-08-25 21:14:45 +000010692
10693 # Archives containing C++ object files must be created using
10694 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10695 # necessary to make sure instantiated templates are included
10696 # in the archive.
10697 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10698 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010699 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000010700 # Green Hills C++ Compiler
10701 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10702
10703 # The C++ compiler must be used to create the archive.
10704 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10705 ;;
10706 *)
10707 # GNU C++ compiler with Solaris linker
10708 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10709 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10710 if $CC --version | grep -v '^2\.7' > /dev/null; then
10711 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10712 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10713 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10714
10715 # Commands to make compiler produce verbose output that lists
10716 # what "hidden" libraries, object files and flags are used when
10717 # linking a shared library.
10718 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10719 else
10720 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10721 # platform.
10722 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10723 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10724 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10725
10726 # Commands to make compiler produce verbose output that lists
10727 # what "hidden" libraries, object files and flags are used when
10728 # linking a shared library.
10729 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10730 fi
10731
10732 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10733 fi
10734 ;;
10735 esac
10736 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010737 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10738 no_undefined_flag_CXX='${wl}-z,text'
brynercb91a2f2006-08-25 21:14:45 +000010739 archive_cmds_need_lc_CXX=no
mmentovai3261e8b2006-09-06 02:56:44 +000010740 hardcode_shlibpath_var_CXX=no
10741 runpath_var='LD_RUN_PATH'
10742
10743 case $cc_basename in
10744 CC*)
10745 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10746 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 ;;
10748 *)
10749 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 ;;
10752 esac
10753 ;;
10754 sysv5* | sco3.2v5* | sco5v6*)
10755 # Note: We can NOT use -z defs as we might desire, because we do not
10756 # link with -lc, and that would cause any symbols used from libc to
10757 # always be unresolved, which means just about no library would
10758 # ever link correctly. If we're not using GNU ld we use -z text
10759 # though, which does catch some bad symbols but isn't as heavy-handed
10760 # as -z defs.
10761 # For security reasons, it is highly recommended that you always
10762 # use absolute paths for naming shared libraries, and exclude the
10763 # DT_RUNPATH tag from executables and libraries. But doing so
10764 # requires that you compile everything twice, which is a pain.
10765 # So that behaviour is only enabled if SCOABSPATH is set to a
10766 # non-empty value in the environment. Most likely only useful for
10767 # creating official distributions of packages.
10768 # This is a hack until libtool officially supports absolute path
10769 # names for shared libraries.
10770 no_undefined_flag_CXX='${wl}-z,text'
10771 allow_undefined_flag_CXX='${wl}-z,nodefs'
10772 archive_cmds_need_lc_CXX=no
10773 hardcode_shlibpath_var_CXX=no
10774 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10775 hardcode_libdir_separator_CXX=':'
10776 link_all_deplibs_CXX=yes
10777 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10778 runpath_var='LD_RUN_PATH'
10779
10780 case $cc_basename in
10781 CC*)
10782 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 ;;
10785 *)
10786 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 ;;
10789 esac
brynercb91a2f2006-08-25 21:14:45 +000010790 ;;
10791 tandem*)
10792 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000010793 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000010794 # NonStop-UX NCC 3.20
10795 # FIXME: insert proper C++ library support
10796 ld_shlibs_CXX=no
10797 ;;
10798 *)
10799 # FIXME: insert proper C++ library support
10800 ld_shlibs_CXX=no
10801 ;;
10802 esac
10803 ;;
10804 vxworks*)
10805 # FIXME: insert proper C++ library support
10806 ld_shlibs_CXX=no
10807 ;;
10808 *)
10809 # FIXME: insert proper C++ library support
10810 ld_shlibs_CXX=no
10811 ;;
10812esac
10813echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10814echo "${ECHO_T}$ld_shlibs_CXX" >&6
10815test "$ld_shlibs_CXX" = no && can_build_shared=no
10816
10817GCC_CXX="$GXX"
10818LD_CXX="$LD"
10819
10820
10821cat > conftest.$ac_ext <<EOF
10822class Foo
10823{
10824public:
10825 Foo (void) { a = 0; }
10826private:
10827 int a;
10828};
10829EOF
10830
10831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; then
10836 # Parse the compiler output and extract the necessary
10837 # objects, libraries and library flags.
10838
10839 # Sentinel used to keep track of whether or not we are before
10840 # the conftest object file.
10841 pre_test_object_deps_done=no
10842
10843 # The `*' in the case matches for architectures that use `case' in
10844 # $output_verbose_cmd can trigger glob expansion during the loop
10845 # eval without this substitution.
mmentovai3261e8b2006-09-06 02:56:44 +000010846 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
brynercb91a2f2006-08-25 21:14:45 +000010847
10848 for p in `eval $output_verbose_link_cmd`; do
10849 case $p in
10850
10851 -L* | -R* | -l*)
10852 # Some compilers place space between "-{L,R}" and the path.
10853 # Remove the space.
10854 if test $p = "-L" \
10855 || test $p = "-R"; then
10856 prev=$p
10857 continue
10858 else
10859 prev=
10860 fi
10861
10862 if test "$pre_test_object_deps_done" = no; then
10863 case $p in
10864 -L* | -R*)
10865 # Internal compiler library paths should come after those
10866 # provided the user. The postdeps already come after the
10867 # user supplied libs so there is no need to process them.
10868 if test -z "$compiler_lib_search_path_CXX"; then
10869 compiler_lib_search_path_CXX="${prev}${p}"
10870 else
10871 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10872 fi
10873 ;;
10874 # The "-l" case would never come before the object being
10875 # linked, so don't bother handling this case.
10876 esac
10877 else
10878 if test -z "$postdeps_CXX"; then
10879 postdeps_CXX="${prev}${p}"
10880 else
10881 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10882 fi
10883 fi
10884 ;;
10885
10886 *.$objext)
10887 # This assumes that the test object file only shows up
10888 # once in the compiler output.
10889 if test "$p" = "conftest.$objext"; then
10890 pre_test_object_deps_done=yes
10891 continue
10892 fi
10893
10894 if test "$pre_test_object_deps_done" = no; then
10895 if test -z "$predep_objects_CXX"; then
10896 predep_objects_CXX="$p"
10897 else
10898 predep_objects_CXX="$predep_objects_CXX $p"
10899 fi
10900 else
10901 if test -z "$postdep_objects_CXX"; then
10902 postdep_objects_CXX="$p"
10903 else
10904 postdep_objects_CXX="$postdep_objects_CXX $p"
10905 fi
10906 fi
10907 ;;
10908
10909 *) ;; # Ignore the rest.
10910
10911 esac
10912 done
10913
10914 # Clean up.
10915 rm -f a.out a.exe
10916else
10917 echo "libtool.m4: error: problem compiling CXX test program"
10918fi
10919
10920$rm -f confest.$objext
10921
mmentovai3261e8b2006-09-06 02:56:44 +000010922# PORTME: override above test on systems where it is broken
10923case $host_os in
10924interix3*)
10925 # Interix 3.5 installs completely hosed .la files for C++, so rather than
10926 # hack all around it, let's just trust "g++" to DTRT.
10927 predep_objects_CXX=
10928 postdep_objects_CXX=
10929 postdeps_CXX=
10930 ;;
10931
10932solaris*)
10933 case $cc_basename in
10934 CC*)
10935 # Adding this requires a known-good setup of shared libraries for
10936 # Sun compiler versions before 5.6, else PIC objects from an old
10937 # archive will be linked into the output, leading to subtle bugs.
10938 postdeps_CXX='-lCstd -lCrun'
10939 ;;
10940 esac
10941 ;;
10942esac
10943
10944
brynercb91a2f2006-08-25 21:14:45 +000010945case " $postdeps_CXX " in
10946*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10947esac
10948
10949lt_prog_compiler_wl_CXX=
10950lt_prog_compiler_pic_CXX=
10951lt_prog_compiler_static_CXX=
10952
10953echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10954echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10955
10956 # C++ specific cases for pic, static, wl, etc.
10957 if test "$GXX" = yes; then
10958 lt_prog_compiler_wl_CXX='-Wl,'
10959 lt_prog_compiler_static_CXX='-static'
10960
10961 case $host_os in
10962 aix*)
10963 # All AIX code is PIC.
10964 if test "$host_cpu" = ia64; then
10965 # AIX 5 now supports IA64 processor
10966 lt_prog_compiler_static_CXX='-Bstatic'
10967 fi
10968 ;;
10969 amigaos*)
10970 # FIXME: we need at least 68020 code to build shared libraries, but
10971 # adding the `-m68020' flag to GCC prevents building anything better,
10972 # like `-m68040'.
10973 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10974 ;;
10975 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10976 # PIC is the default for these OSes.
10977 ;;
10978 mingw* | os2* | pw32*)
10979 # This hack is so that the source file can tell whether it is being
10980 # built for inclusion in a dll (and should export symbols for example).
10981 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10982 ;;
10983 darwin* | rhapsody*)
10984 # PIC is the default on this platform
10985 # Common symbols not allowed in MH_DYLIB files
10986 lt_prog_compiler_pic_CXX='-fno-common'
10987 ;;
10988 *djgpp*)
10989 # DJGPP does not support shared libraries at all
10990 lt_prog_compiler_pic_CXX=
10991 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000010992 interix3*)
10993 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10994 # Instead, we relocate shared libraries at runtime.
10995 ;;
brynercb91a2f2006-08-25 21:14:45 +000010996 sysv4*MP*)
10997 if test -d /usr/nec; then
10998 lt_prog_compiler_pic_CXX=-Kconform_pic
10999 fi
11000 ;;
11001 hpux*)
11002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11003 # not for PA HP-UX.
mmentovai3261e8b2006-09-06 02:56:44 +000011004 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000011005 hppa*64*|ia64*)
11006 ;;
11007 *)
11008 lt_prog_compiler_pic_CXX='-fPIC'
11009 ;;
11010 esac
11011 ;;
11012 *)
11013 lt_prog_compiler_pic_CXX='-fPIC'
11014 ;;
11015 esac
11016 else
11017 case $host_os in
11018 aix4* | aix5*)
11019 # All AIX code is PIC.
11020 if test "$host_cpu" = ia64; then
11021 # AIX 5 now supports IA64 processor
11022 lt_prog_compiler_static_CXX='-Bstatic'
11023 else
11024 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11025 fi
11026 ;;
11027 chorus*)
11028 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011029 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000011030 # Green Hills C++ Compiler
11031 # _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"
11032 ;;
11033 esac
11034 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011035 darwin*)
11036 # PIC is the default on this platform
11037 # Common symbols not allowed in MH_DYLIB files
11038 case $cc_basename in
11039 xlc*)
11040 lt_prog_compiler_pic_CXX='-qnocommon'
11041 lt_prog_compiler_wl_CXX='-Wl,'
11042 ;;
11043 esac
11044 ;;
brynercb91a2f2006-08-25 21:14:45 +000011045 dgux*)
11046 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011047 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000011048 lt_prog_compiler_pic_CXX='-KPIC'
11049 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011050 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000011051 # Green Hills C++ Compiler
11052 lt_prog_compiler_pic_CXX='-pic'
11053 ;;
11054 *)
11055 ;;
11056 esac
11057 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011058 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000011059 # FreeBSD uses GNU C++
11060 ;;
11061 hpux9* | hpux10* | hpux11*)
11062 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011063 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011064 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai3261e8b2006-09-06 02:56:44 +000011065 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000011066 if test "$host_cpu" != ia64; then
11067 lt_prog_compiler_pic_CXX='+Z'
11068 fi
11069 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011070 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000011071 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai3261e8b2006-09-06 02:56:44 +000011072 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11073 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000011074 hppa*64*|ia64*)
11075 # +Z the default
11076 ;;
11077 *)
11078 lt_prog_compiler_pic_CXX='+Z'
11079 ;;
11080 esac
11081 ;;
11082 *)
11083 ;;
11084 esac
11085 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011086 interix*)
11087 # This is c89, which is MS Visual C++ (no shared libs)
11088 # Anyone wants to do a port?
11089 ;;
brynercb91a2f2006-08-25 21:14:45 +000011090 irix5* | irix6* | nonstopux*)
11091 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011092 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011093 lt_prog_compiler_wl_CXX='-Wl,'
11094 lt_prog_compiler_static_CXX='-non_shared'
11095 # CC pic flag -KPIC is the default.
11096 ;;
11097 *)
11098 ;;
11099 esac
11100 ;;
11101 linux*)
11102 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011103 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011104 # KAI C++ Compiler
11105 lt_prog_compiler_wl_CXX='--backend -Wl,'
11106 lt_prog_compiler_pic_CXX='-fPIC'
11107 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011108 icpc* | ecpc*)
brynercb91a2f2006-08-25 21:14:45 +000011109 # Intel C++
11110 lt_prog_compiler_wl_CXX='-Wl,'
11111 lt_prog_compiler_pic_CXX='-KPIC'
11112 lt_prog_compiler_static_CXX='-static'
11113 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011114 pgCC*)
11115 # Portland Group C++ compiler.
11116 lt_prog_compiler_wl_CXX='-Wl,'
11117 lt_prog_compiler_pic_CXX='-fpic'
11118 lt_prog_compiler_static_CXX='-Bstatic'
11119 ;;
11120 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011121 # Compaq C++
11122 # Make sure the PIC flag is empty. It appears that all Alpha
11123 # Linux and Compaq Tru64 Unix objects are PIC.
11124 lt_prog_compiler_pic_CXX=
11125 lt_prog_compiler_static_CXX='-non_shared'
11126 ;;
11127 *)
11128 ;;
11129 esac
11130 ;;
11131 lynxos*)
11132 ;;
11133 m88k*)
11134 ;;
11135 mvs*)
11136 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011137 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011138 lt_prog_compiler_pic_CXX='-W c,exportall'
11139 ;;
11140 *)
11141 ;;
11142 esac
11143 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011144 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000011145 ;;
11146 osf3* | osf4* | osf5*)
11147 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011148 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011149 lt_prog_compiler_wl_CXX='--backend -Wl,'
11150 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011151 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011152 # Rational C++ 2.4.1
11153 lt_prog_compiler_pic_CXX='-pic'
11154 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011155 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011156 # Digital/Compaq C++
11157 lt_prog_compiler_wl_CXX='-Wl,'
11158 # Make sure the PIC flag is empty. It appears that all Alpha
11159 # Linux and Compaq Tru64 Unix objects are PIC.
11160 lt_prog_compiler_pic_CXX=
11161 lt_prog_compiler_static_CXX='-non_shared'
11162 ;;
11163 *)
11164 ;;
11165 esac
11166 ;;
11167 psos*)
11168 ;;
brynercb91a2f2006-08-25 21:14:45 +000011169 solaris*)
11170 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011171 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011172 # Sun C++ 4.2, 5.x and Centerline C++
11173 lt_prog_compiler_pic_CXX='-KPIC'
11174 lt_prog_compiler_static_CXX='-Bstatic'
11175 lt_prog_compiler_wl_CXX='-Qoption ld '
11176 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011177 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000011178 # Green Hills C++ Compiler
11179 lt_prog_compiler_pic_CXX='-PIC'
11180 ;;
11181 *)
11182 ;;
11183 esac
11184 ;;
11185 sunos4*)
11186 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011187 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011188 # Sun C++ 4.x
11189 lt_prog_compiler_pic_CXX='-pic'
11190 lt_prog_compiler_static_CXX='-Bstatic'
11191 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011192 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000011193 # Lucid
11194 lt_prog_compiler_pic_CXX='-pic'
11195 ;;
11196 *)
11197 ;;
11198 esac
11199 ;;
11200 tandem*)
11201 case $cc_basename in
mmentovai3261e8b2006-09-06 02:56:44 +000011202 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000011203 # NonStop-UX NCC 3.20
11204 lt_prog_compiler_pic_CXX='-KPIC'
11205 ;;
11206 *)
11207 ;;
11208 esac
11209 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11211 case $cc_basename in
11212 CC*)
11213 lt_prog_compiler_wl_CXX='-Wl,'
11214 lt_prog_compiler_pic_CXX='-KPIC'
11215 lt_prog_compiler_static_CXX='-Bstatic'
11216 ;;
11217 esac
brynercb91a2f2006-08-25 21:14:45 +000011218 ;;
11219 vxworks*)
11220 ;;
11221 *)
11222 lt_prog_compiler_can_build_shared_CXX=no
11223 ;;
11224 esac
11225 fi
11226
11227echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11228echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11229
11230#
11231# Check to make sure the PIC flag actually works.
11232#
11233if test -n "$lt_prog_compiler_pic_CXX"; then
11234
11235echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11236echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11237if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239else
11240 lt_prog_compiler_pic_works_CXX=no
11241 ac_outfile=conftest.$ac_objext
11242 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11243 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11244 # Insert the option either (1) after the last *FLAGS variable, or
11245 # (2) before a word containing "conftest.", or (3) at the end.
11246 # Note that $ac_compile itself does not contain backslashes and begins
11247 # with a dollar sign (not a hyphen), so the echo should work correctly.
11248 # The option is referenced via a variable to avoid confusing sed.
11249 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +000011250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000011251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11252 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +000011253 (eval echo "\"\$as_me:11253: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000011254 (eval "$lt_compile" 2>conftest.err)
11255 ac_status=$?
11256 cat conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +000011257 echo "$as_me:11257: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000011258 if (exit $ac_status) && test -s "$ac_outfile"; then
11259 # The compiler can only warn and ignore the option if not recognized
mmentovai3261e8b2006-09-06 02:56:44 +000011260 # So say no if there are warnings other than the usual output.
11261 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000011264 lt_prog_compiler_pic_works_CXX=yes
11265 fi
11266 fi
11267 $rm conftest*
11268
11269fi
11270echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11271echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11272
11273if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11274 case $lt_prog_compiler_pic_CXX in
11275 "" | " "*) ;;
11276 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11277 esac
11278else
11279 lt_prog_compiler_pic_CXX=
11280 lt_prog_compiler_can_build_shared_CXX=no
11281fi
11282
11283fi
mmentovai3261e8b2006-09-06 02:56:44 +000011284case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000011285 # For platforms which do not support PIC, -DPIC is meaningless:
11286 *djgpp*)
11287 lt_prog_compiler_pic_CXX=
11288 ;;
11289 *)
11290 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11291 ;;
11292esac
11293
mmentovai3261e8b2006-09-06 02:56:44 +000011294#
11295# Check to make sure the static flag actually works.
11296#
11297wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11298echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11299echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11300if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303 lt_prog_compiler_static_works_CXX=no
11304 save_LDFLAGS="$LDFLAGS"
11305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11306 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11308 # The linker can only warn and ignore the option if not recognized
11309 # So say no if there are warnings
11310 if test -s conftest.err; then
11311 # Append any errors to the config.log.
11312 cat conftest.err 1>&5
11313 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11315 if diff conftest.exp conftest.er2 >/dev/null; then
11316 lt_prog_compiler_static_works_CXX=yes
11317 fi
11318 else
11319 lt_prog_compiler_static_works_CXX=yes
11320 fi
11321 fi
11322 $rm conftest*
11323 LDFLAGS="$save_LDFLAGS"
11324
11325fi
11326echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11327echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11328
11329if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11330 :
11331else
11332 lt_prog_compiler_static_CXX=
11333fi
11334
11335
brynercb91a2f2006-08-25 21:14:45 +000011336echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11337echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11338if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340else
11341 lt_cv_prog_compiler_c_o_CXX=no
11342 $rm -r conftest 2>/dev/null
11343 mkdir conftest
11344 cd conftest
11345 mkdir out
11346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11347
11348 lt_compiler_flag="-o out/conftest2.$ac_objext"
11349 # Insert the option either (1) after the last *FLAGS variable, or
11350 # (2) before a word containing "conftest.", or (3) at the end.
11351 # Note that $ac_compile itself does not contain backslashes and begins
11352 # with a dollar sign (not a hyphen), so the echo should work correctly.
11353 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +000011354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000011355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11356 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +000011357 (eval echo "\"\$as_me:11357: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000011358 (eval "$lt_compile" 2>out/conftest.err)
11359 ac_status=$?
11360 cat out/conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +000011361 echo "$as_me:11361: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000011362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11363 then
11364 # The compiler can only warn and ignore the option if not recognized
11365 # So say no if there are warnings
mmentovai3261e8b2006-09-06 02:56:44 +000011366 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000011369 lt_cv_prog_compiler_c_o_CXX=yes
11370 fi
11371 fi
mmentovai3261e8b2006-09-06 02:56:44 +000011372 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011373 $rm conftest*
11374 # SGI C++ compiler will create directory out/ii_files/ for
11375 # template instantiation
11376 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11377 $rm out/* && rmdir out
11378 cd ..
11379 rmdir conftest
11380 $rm conftest*
11381
11382fi
11383echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11384echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11385
11386
11387hard_links="nottested"
11388if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11389 # do not overwrite the value of need_locks provided by the user
11390 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11391echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11392 hard_links=yes
11393 $rm conftest*
11394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11395 touch conftest.a
11396 ln conftest.a conftest.b 2>&5 || hard_links=no
11397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11398 echo "$as_me:$LINENO: result: $hard_links" >&5
11399echo "${ECHO_T}$hard_links" >&6
11400 if test "$hard_links" = no; then
11401 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11402echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11403 need_locks=warn
11404 fi
11405else
11406 need_locks=no
11407fi
11408
11409echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11410echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11411
11412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11413 case $host_os in
11414 aix4* | aix5*)
11415 # If we're using GNU nm, then we don't want the "-C" option.
11416 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11417 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11418 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'
11419 else
11420 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'
11421 fi
11422 ;;
11423 pw32*)
11424 export_symbols_cmds_CXX="$ltdll_cmds"
11425 ;;
11426 cygwin* | mingw*)
mmentovai3261e8b2006-09-06 02:56:44 +000011427 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000011428 ;;
11429 *)
11430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11431 ;;
11432 esac
11433
11434echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11435echo "${ECHO_T}$ld_shlibs_CXX" >&6
11436test "$ld_shlibs_CXX" = no && can_build_shared=no
11437
brynercb91a2f2006-08-25 21:14:45 +000011438#
11439# Do we need to explicitly link libc?
11440#
11441case "x$archive_cmds_need_lc_CXX" in
11442x|xyes)
11443 # Assume -lc should be added
11444 archive_cmds_need_lc_CXX=yes
11445
11446 if test "$enable_shared" = yes && test "$GCC" = yes; then
11447 case $archive_cmds_CXX in
11448 *'~'*)
11449 # FIXME: we may have to deal with multi-command sequences.
11450 ;;
11451 '$CC '*)
11452 # Test whether the compiler implicitly links with -lc since on some
11453 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11454 # to ld, don't add -lc before -lgcc.
11455 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11456echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11457 $rm conftest*
11458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11459
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } 2>conftest.err; then
11465 soname=conftest
11466 lib=conftest
11467 libobjs=conftest.$ac_objext
11468 deplibs=
11469 wl=$lt_prog_compiler_wl_CXX
mmentovai3261e8b2006-09-06 02:56:44 +000011470 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000011471 compiler_flags=-v
11472 linker_flags=-v
11473 verstring=
11474 output_objdir=.
11475 libname=conftest
11476 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11477 allow_undefined_flag_CXX=
11478 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11479 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }
11483 then
11484 archive_cmds_need_lc_CXX=no
11485 else
11486 archive_cmds_need_lc_CXX=yes
11487 fi
11488 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11489 else
11490 cat conftest.err 1>&5
11491 fi
11492 $rm conftest*
11493 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11494echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11495 ;;
11496 esac
11497 fi
11498 ;;
11499esac
11500
11501echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11502echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11503library_names_spec=
11504libname_spec='lib$name'
11505soname_spec=
11506shrext_cmds=".so"
11507postinstall_cmds=
11508postuninstall_cmds=
11509finish_cmds=
11510finish_eval=
11511shlibpath_var=
11512shlibpath_overrides_runpath=unknown
11513version_type=none
11514dynamic_linker="$host_os ld.so"
11515sys_lib_dlsearch_path_spec="/lib /usr/lib"
11516if test "$GCC" = yes; then
11517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11518 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11519 # if the path contains ";" then we assume it to be the separator
11520 # otherwise default to the standard path separator (i.e. ":") - it is
11521 # assumed that no part of a normal pathname contains ";" but that should
11522 # okay in the real world where ";" in dirpaths is itself problematic.
11523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11524 else
11525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11526 fi
11527else
11528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11529fi
11530need_lib_prefix=unknown
11531hardcode_into_libs=no
11532
11533# when you set need_version to no, make sure it does not cause -set_version
11534# flags to be left without arguments
11535need_version=unknown
11536
11537case $host_os in
11538aix3*)
11539 version_type=linux
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11541 shlibpath_var=LIBPATH
11542
11543 # AIX 3 has no versioning support, so we append a major version to the name.
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 ;;
11546
11547aix4* | aix5*)
11548 version_type=linux
11549 need_lib_prefix=no
11550 need_version=no
11551 hardcode_into_libs=yes
11552 if test "$host_cpu" = ia64; then
11553 # AIX 5 supports IA64
11554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 else
11557 # With GCC up to 2.95.x, collect2 would create an import file
11558 # for dependence libraries. The import file would start with
11559 # the line `#! .'. This would cause the generated library to
11560 # depend on `.', always an invalid library. This was fixed in
11561 # development snapshots of GCC prior to 3.0.
11562 case $host_os in
11563 aix4 | aix4.[01] | aix4.[01].*)
11564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11565 echo ' yes '
11566 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11567 :
11568 else
11569 can_build_shared=no
11570 fi
11571 ;;
11572 esac
11573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11574 # soname into executable. Probably we can add versioning support to
11575 # collect2, so additional links can be useful in future.
11576 if test "$aix_use_runtimelinking" = yes; then
11577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11578 # instead of lib<name>.a to let people know that these are not
11579 # typical AIX shared libraries.
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 else
11582 # We preserve .a as extension for shared libraries through AIX4.2
11583 # and later when we are not doing run time linking.
11584 library_names_spec='${libname}${release}.a $libname.a'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 fi
11587 shlibpath_var=LIBPATH
11588 fi
11589 ;;
11590
11591amigaos*)
11592 library_names_spec='$libname.ixlibrary $libname.a'
11593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11594 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'
11595 ;;
11596
11597beos*)
11598 library_names_spec='${libname}${shared_ext}'
11599 dynamic_linker="$host_os ld.so"
11600 shlibpath_var=LIBRARY_PATH
11601 ;;
11602
mmentovai3261e8b2006-09-06 02:56:44 +000011603bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000011604 version_type=linux
11605 need_version=no
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607 soname_spec='${libname}${release}${shared_ext}$major'
11608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11612 # the default ld.so.conf also contains /usr/contrib/lib and
11613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11614 # libtool to hard-code these into programs
11615 ;;
11616
11617cygwin* | mingw* | pw32*)
11618 version_type=windows
11619 shrext_cmds=".dll"
11620 need_version=no
11621 need_lib_prefix=no
11622
11623 case $GCC,$host_os in
11624 yes,cygwin* | yes,mingw* | yes,pw32*)
11625 library_names_spec='$libname.dll.a'
11626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11627 postinstall_cmds='base_file=`basename \${file}`~
11628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11629 dldir=$destdir/`dirname \$dlpath`~
11630 test -d \$dldir || mkdir -p \$dldir~
mmentovai3261e8b2006-09-06 02:56:44 +000011631 $install_prog $dir/$dlname \$dldir/$dlname~
11632 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000011633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11634 dlpath=$dir/\$dldll~
11635 $rm \$dlpath'
11636 shlibpath_overrides_runpath=yes
11637
11638 case $host_os in
11639 cygwin*)
11640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11642 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11643 ;;
11644 mingw*)
11645 # MinGW DLLs use traditional 'lib' prefix
11646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11648 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11649 # It is most probably a Windows format PATH printed by
11650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11651 # path with ; separators, and with drive letters. We can handle the
11652 # drive letters (cygwin fileutils understands them), so leave them,
11653 # especially as we might pass files found there to a mingw objdump,
11654 # which wouldn't understand a cygwinified path. Ahh.
11655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11656 else
11657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11658 fi
11659 ;;
11660 pw32*)
11661 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai3261e8b2006-09-06 02:56:44 +000011662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000011663 ;;
11664 esac
11665 ;;
11666
11667 *)
11668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11669 ;;
11670 esac
11671 dynamic_linker='Win32 ld.exe'
11672 # FIXME: first we should search . and the directory the executable is in
11673 shlibpath_var=PATH
11674 ;;
11675
11676darwin* | rhapsody*)
11677 dynamic_linker="$host_os dyld"
11678 version_type=darwin
11679 need_lib_prefix=no
11680 need_version=no
11681 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11682 soname_spec='${libname}${release}${major}$shared_ext'
11683 shlibpath_overrides_runpath=yes
11684 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai3261e8b2006-09-06 02:56:44 +000011685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000011686 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11687 if test "$GCC" = yes; then
11688 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"`
11689 else
11690 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11691 fi
11692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11693 ;;
11694
11695dgux*)
11696 version_type=linux
11697 need_lib_prefix=no
11698 need_version=no
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 ;;
11703
11704freebsd1*)
11705 dynamic_linker=no
11706 ;;
11707
11708kfreebsd*-gnu)
11709 version_type=linux
11710 need_lib_prefix=no
11711 need_version=no
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11713 soname_spec='${libname}${release}${shared_ext}$major'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=no
11716 hardcode_into_libs=yes
11717 dynamic_linker='GNU ld.so'
11718 ;;
11719
mmentovai3261e8b2006-09-06 02:56:44 +000011720freebsd* | dragonfly*)
11721 # DragonFly does not have aout. When/if they implement a new
11722 # versioning mechanism, adjust this.
11723 if test -x /usr/bin/objformat; then
11724 objformat=`/usr/bin/objformat`
11725 else
11726 case $host_os in
11727 freebsd[123]*) objformat=aout ;;
11728 *) objformat=elf ;;
11729 esac
11730 fi
brynercb91a2f2006-08-25 21:14:45 +000011731 version_type=freebsd-$objformat
11732 case $version_type in
11733 freebsd-elf*)
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11735 need_version=no
11736 need_lib_prefix=no
11737 ;;
11738 freebsd-*)
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11740 need_version=yes
11741 ;;
11742 esac
11743 shlibpath_var=LD_LIBRARY_PATH
11744 case $host_os in
11745 freebsd2*)
11746 shlibpath_overrides_runpath=yes
11747 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011748 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000011749 shlibpath_overrides_runpath=yes
11750 hardcode_into_libs=yes
11751 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011752 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11753 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000011754 shlibpath_overrides_runpath=no
11755 hardcode_into_libs=yes
11756 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000011757 freebsd*) # from 4.6 on
11758 shlibpath_overrides_runpath=yes
11759 hardcode_into_libs=yes
11760 ;;
brynercb91a2f2006-08-25 21:14:45 +000011761 esac
11762 ;;
11763
11764gnu*)
11765 version_type=linux
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 hardcode_into_libs=yes
11772 ;;
11773
11774hpux9* | hpux10* | hpux11*)
11775 # Give a soname corresponding to the major version so that dld.sl refuses to
11776 # link against other versions.
11777 version_type=sunos
11778 need_lib_prefix=no
11779 need_version=no
mmentovai3261e8b2006-09-06 02:56:44 +000011780 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000011781 ia64*)
11782 shrext_cmds='.so'
11783 hardcode_into_libs=yes
11784 dynamic_linker="$host_os dld.so"
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 if test "X$HPUX_IA64_MODE" = X32; then
11790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11791 else
11792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11793 fi
11794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11795 ;;
11796 hppa*64*)
11797 shrext_cmds='.sl'
11798 hardcode_into_libs=yes
11799 dynamic_linker="$host_os dld.sl"
11800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11803 soname_spec='${libname}${release}${shared_ext}$major'
11804 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11806 ;;
11807 *)
11808 shrext_cmds='.sl'
11809 dynamic_linker="$host_os dld.sl"
11810 shlibpath_var=SHLIB_PATH
11811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813 soname_spec='${libname}${release}${shared_ext}$major'
11814 ;;
11815 esac
11816 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11817 postinstall_cmds='chmod 555 $lib'
11818 ;;
11819
mmentovai3261e8b2006-09-06 02:56:44 +000011820interix3*)
11821 version_type=linux
11822 need_lib_prefix=no
11823 need_version=no
11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11825 soname_spec='${libname}${release}${shared_ext}$major'
11826 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=no
11829 hardcode_into_libs=yes
11830 ;;
11831
brynercb91a2f2006-08-25 21:14:45 +000011832irix5* | irix6* | nonstopux*)
11833 case $host_os in
11834 nonstopux*) version_type=nonstopux ;;
11835 *)
11836 if test "$lt_cv_prog_gnu_ld" = yes; then
11837 version_type=linux
11838 else
11839 version_type=irix
11840 fi ;;
11841 esac
11842 need_lib_prefix=no
11843 need_version=no
11844 soname_spec='${libname}${release}${shared_ext}$major'
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11846 case $host_os in
11847 irix5* | nonstopux*)
11848 libsuff= shlibsuff=
11849 ;;
11850 *)
11851 case $LD in # libtool.m4 will add one of these switches to LD
11852 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11853 libsuff= shlibsuff= libmagic=32-bit;;
11854 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11855 libsuff=32 shlibsuff=N32 libmagic=N32;;
11856 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11857 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11858 *) libsuff= shlibsuff= libmagic=never-match;;
11859 esac
11860 ;;
11861 esac
11862 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11863 shlibpath_overrides_runpath=no
11864 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11865 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11866 hardcode_into_libs=yes
11867 ;;
11868
11869# No shared lib support for Linux oldld, aout, or coff.
11870linux*oldld* | linux*aout* | linux*coff*)
11871 dynamic_linker=no
11872 ;;
11873
11874# This must be Linux ELF.
11875linux*)
11876 version_type=linux
11877 need_lib_prefix=no
11878 need_version=no
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11880 soname_spec='${libname}${release}${shared_ext}$major'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=no
11884 # This implies no fast_install, which is unacceptable.
11885 # Some rework will be needed to allow for fast_install
11886 # before this can be enabled.
11887 hardcode_into_libs=yes
11888
11889 # Append ld.so.conf contents to the search path
11890 if test -f /etc/ld.so.conf; then
mmentovai3261e8b2006-09-06 02:56:44 +000011891 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000011892 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11893 fi
11894
11895 # We used to test for /lib/ld.so.1 and disable shared libraries on
11896 # powerpc, because MkLinux only supported shared libraries with the
11897 # GNU dynamic linker. Since this was broken with cross compilers,
11898 # most powerpc-linux boxes support dynamic linking these days and
11899 # people can always --disable-shared, the test was removed, and we
11900 # assume the GNU/Linux dynamic linker is in use.
11901 dynamic_linker='GNU/Linux ld.so'
11902 ;;
11903
brynercb91a2f2006-08-25 21:14:45 +000011904knetbsd*-gnu)
11905 version_type=linux
11906 need_lib_prefix=no
11907 need_version=no
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=no
11912 hardcode_into_libs=yes
11913 dynamic_linker='GNU ld.so'
11914 ;;
11915
11916netbsd*)
11917 version_type=sunos
11918 need_lib_prefix=no
11919 need_version=no
11920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11923 dynamic_linker='NetBSD (a.out) ld.so'
11924 else
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11926 soname_spec='${libname}${release}${shared_ext}$major'
11927 dynamic_linker='NetBSD ld.elf_so'
11928 fi
11929 shlibpath_var=LD_LIBRARY_PATH
11930 shlibpath_overrides_runpath=yes
11931 hardcode_into_libs=yes
11932 ;;
11933
11934newsos6)
11935 version_type=linux
11936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 ;;
11940
11941nto-qnx*)
11942 version_type=linux
11943 need_lib_prefix=no
11944 need_version=no
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 shlibpath_var=LD_LIBRARY_PATH
11948 shlibpath_overrides_runpath=yes
11949 ;;
11950
11951openbsd*)
11952 version_type=sunos
mmentovai3261e8b2006-09-06 02:56:44 +000011953 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000011954 need_lib_prefix=no
mmentovai3261e8b2006-09-06 02:56:44 +000011955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11956 case $host_os in
11957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11958 *) need_version=no ;;
11959 esac
brynercb91a2f2006-08-25 21:14:45 +000011960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11964 case $host_os in
11965 openbsd2.[89] | openbsd2.[89].*)
11966 shlibpath_overrides_runpath=no
11967 ;;
11968 *)
11969 shlibpath_overrides_runpath=yes
11970 ;;
11971 esac
11972 else
11973 shlibpath_overrides_runpath=yes
11974 fi
11975 ;;
11976
11977os2*)
11978 libname_spec='$name'
11979 shrext_cmds=".dll"
11980 need_lib_prefix=no
11981 library_names_spec='$libname${shared_ext} $libname.a'
11982 dynamic_linker='OS/2 ld.exe'
11983 shlibpath_var=LIBPATH
11984 ;;
11985
11986osf3* | osf4* | osf5*)
11987 version_type=osf
11988 need_lib_prefix=no
11989 need_version=no
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11995 ;;
11996
brynercb91a2f2006-08-25 21:14:45 +000011997solaris*)
11998 version_type=linux
11999 need_lib_prefix=no
12000 need_version=no
12001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12002 soname_spec='${libname}${release}${shared_ext}$major'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12005 hardcode_into_libs=yes
12006 # ldd complains unless libraries are executable
12007 postinstall_cmds='chmod +x $lib'
12008 ;;
12009
12010sunos4*)
12011 version_type=sunos
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12014 shlibpath_var=LD_LIBRARY_PATH
12015 shlibpath_overrides_runpath=yes
12016 if test "$with_gnu_ld" = yes; then
12017 need_lib_prefix=no
12018 fi
12019 need_version=yes
12020 ;;
12021
mmentovai3261e8b2006-09-06 02:56:44 +000012022sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000012023 version_type=linux
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 case $host_vendor in
12028 sni)
12029 shlibpath_overrides_runpath=no
12030 need_lib_prefix=no
12031 export_dynamic_flag_spec='${wl}-Blargedynsym'
12032 runpath_var=LD_RUN_PATH
12033 ;;
12034 siemens)
12035 need_lib_prefix=no
12036 ;;
12037 motorola)
12038 need_lib_prefix=no
12039 need_version=no
12040 shlibpath_overrides_runpath=no
12041 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12042 ;;
12043 esac
12044 ;;
12045
12046sysv4*MP*)
12047 if test -d /usr/nec ;then
12048 version_type=linux
12049 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12050 soname_spec='$libname${shared_ext}.$major'
12051 shlibpath_var=LD_LIBRARY_PATH
12052 fi
12053 ;;
12054
mmentovai3261e8b2006-09-06 02:56:44 +000012055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12056 version_type=freebsd-elf
12057 need_lib_prefix=no
12058 need_version=no
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12060 soname_spec='${libname}${release}${shared_ext}$major'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 hardcode_into_libs=yes
12063 if test "$with_gnu_ld" = yes; then
12064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12065 shlibpath_overrides_runpath=no
12066 else
12067 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12068 shlibpath_overrides_runpath=yes
12069 case $host_os in
12070 sco3.2v5*)
12071 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12072 ;;
12073 esac
12074 fi
12075 sys_lib_dlsearch_path_spec='/usr/lib'
12076 ;;
12077
brynercb91a2f2006-08-25 21:14:45 +000012078uts4*)
12079 version_type=linux
12080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081 soname_spec='${libname}${release}${shared_ext}$major'
12082 shlibpath_var=LD_LIBRARY_PATH
12083 ;;
12084
12085*)
12086 dynamic_linker=no
12087 ;;
12088esac
12089echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12090echo "${ECHO_T}$dynamic_linker" >&6
12091test "$dynamic_linker" = no && can_build_shared=no
12092
mmentovai3261e8b2006-09-06 02:56:44 +000012093variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12094if test "$GCC" = yes; then
12095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12096fi
12097
brynercb91a2f2006-08-25 21:14:45 +000012098echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12099echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12100hardcode_action_CXX=
12101if test -n "$hardcode_libdir_flag_spec_CXX" || \
mmentovai3261e8b2006-09-06 02:56:44 +000012102 test -n "$runpath_var_CXX" || \
12103 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000012104
12105 # We can hardcode non-existant directories.
12106 if test "$hardcode_direct_CXX" != no &&
12107 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12108 # have to relink, otherwise we might link with an installed library
12109 # when we should be linking with a yet-to-be-installed one
12110 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12111 test "$hardcode_minus_L_CXX" != no; then
12112 # Linking always hardcodes the temporary library directory.
12113 hardcode_action_CXX=relink
12114 else
12115 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12116 hardcode_action_CXX=immediate
12117 fi
12118else
12119 # We cannot hardcode anything, or else we can only hardcode existing
12120 # directories.
12121 hardcode_action_CXX=unsupported
12122fi
12123echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12124echo "${ECHO_T}$hardcode_action_CXX" >&6
12125
12126if test "$hardcode_action_CXX" = relink; then
12127 # Fast installation is not supported
12128 enable_fast_install=no
12129elif test "$shlibpath_overrides_runpath" = yes ||
12130 test "$enable_shared" = no; then
12131 # Fast installation is not necessary
12132 enable_fast_install=needless
12133fi
12134
brynercb91a2f2006-08-25 21:14:45 +000012135
12136# The else clause should only fire when bootstrapping the
12137# libtool distribution, otherwise you forgot to ship ltmain.sh
12138# with your package, and you will get complaints that there are
12139# no rules to generate ltmain.sh.
12140if test -f "$ltmain"; then
12141 # See if we are running on zsh, and set the options which allow our commands through
12142 # without removal of \ escapes.
12143 if test -n "${ZSH_VERSION+set}" ; then
12144 setopt NO_GLOB_SUBST
12145 fi
12146 # Now quote all the things that may contain metacharacters while being
12147 # careful not to overquote the AC_SUBSTed values. We take copies of the
12148 # variables and quote the copies for generation of the libtool script.
mmentovai3261e8b2006-09-06 02:56:44 +000012149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000012150 SED SHELL STRIP \
12151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12153 deplibs_check_method reload_flag reload_cmds need_locks \
12154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12155 lt_cv_sys_global_symbol_to_c_name_address \
12156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12157 old_postinstall_cmds old_postuninstall_cmds \
12158 compiler_CXX \
12159 CC_CXX \
12160 LD_CXX \
12161 lt_prog_compiler_wl_CXX \
12162 lt_prog_compiler_pic_CXX \
12163 lt_prog_compiler_static_CXX \
12164 lt_prog_compiler_no_builtin_flag_CXX \
12165 export_dynamic_flag_spec_CXX \
12166 thread_safe_flag_spec_CXX \
12167 whole_archive_flag_spec_CXX \
12168 enable_shared_with_static_runtimes_CXX \
12169 old_archive_cmds_CXX \
12170 old_archive_from_new_cmds_CXX \
12171 predep_objects_CXX \
12172 postdep_objects_CXX \
12173 predeps_CXX \
12174 postdeps_CXX \
12175 compiler_lib_search_path_CXX \
12176 archive_cmds_CXX \
12177 archive_expsym_cmds_CXX \
12178 postinstall_cmds_CXX \
12179 postuninstall_cmds_CXX \
12180 old_archive_from_expsyms_cmds_CXX \
12181 allow_undefined_flag_CXX \
12182 no_undefined_flag_CXX \
12183 export_symbols_cmds_CXX \
12184 hardcode_libdir_flag_spec_CXX \
12185 hardcode_libdir_flag_spec_ld_CXX \
12186 hardcode_libdir_separator_CXX \
12187 hardcode_automatic_CXX \
12188 module_cmds_CXX \
12189 module_expsym_cmds_CXX \
12190 lt_cv_prog_compiler_c_o_CXX \
12191 exclude_expsyms_CXX \
12192 include_expsyms_CXX; do
12193
12194 case $var in
12195 old_archive_cmds_CXX | \
12196 old_archive_from_new_cmds_CXX | \
12197 archive_cmds_CXX | \
12198 archive_expsym_cmds_CXX | \
12199 module_cmds_CXX | \
12200 module_expsym_cmds_CXX | \
12201 old_archive_from_expsyms_cmds_CXX | \
12202 export_symbols_cmds_CXX | \
12203 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12204 postinstall_cmds | postuninstall_cmds | \
12205 old_postinstall_cmds | old_postuninstall_cmds | \
12206 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12207 # Double-quote double-evaled strings.
12208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12209 ;;
12210 *)
12211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12212 ;;
12213 esac
12214 done
12215
12216 case $lt_echo in
12217 *'\$0 --fallback-echo"')
12218 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12219 ;;
12220 esac
12221
12222cfgfile="$ofile"
12223
12224 cat <<__EOF__ >> "$cfgfile"
12225# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12226
12227# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12228
12229# Shell to use when invoking shell scripts.
12230SHELL=$lt_SHELL
12231
12232# Whether or not to build shared libraries.
12233build_libtool_libs=$enable_shared
12234
12235# Whether or not to build static libraries.
12236build_old_libs=$enable_static
12237
12238# Whether or not to add -lc for building shared libraries.
12239build_libtool_need_lc=$archive_cmds_need_lc_CXX
12240
12241# Whether or not to disallow shared libs when runtime libs are static
12242allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12243
12244# Whether or not to optimize for fast installation.
12245fast_install=$enable_fast_install
12246
12247# The host system.
12248host_alias=$host_alias
12249host=$host
mmentovai3261e8b2006-09-06 02:56:44 +000012250host_os=$host_os
12251
12252# The build system.
12253build_alias=$build_alias
12254build=$build
12255build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000012256
12257# An echo program that does not interpret backslashes.
12258echo=$lt_echo
12259
12260# The archiver.
12261AR=$lt_AR
12262AR_FLAGS=$lt_AR_FLAGS
12263
12264# A C compiler.
12265LTCC=$lt_LTCC
12266
mmentovai3261e8b2006-09-06 02:56:44 +000012267# LTCC compiler flags.
12268LTCFLAGS=$lt_LTCFLAGS
12269
brynercb91a2f2006-08-25 21:14:45 +000012270# A language-specific compiler.
12271CC=$lt_compiler_CXX
12272
12273# Is the compiler the GNU C compiler?
12274with_gcc=$GCC_CXX
12275
12276# An ERE matcher.
12277EGREP=$lt_EGREP
12278
12279# The linker used to build libraries.
12280LD=$lt_LD_CXX
12281
12282# Whether we need hard or soft links.
12283LN_S=$lt_LN_S
12284
12285# A BSD-compatible nm program.
12286NM=$lt_NM
12287
12288# A symbol stripping program
12289STRIP=$lt_STRIP
12290
12291# Used to examine libraries when file_magic_cmd begins "file"
12292MAGIC_CMD=$MAGIC_CMD
12293
12294# Used on cygwin: DLL creation program.
12295DLLTOOL="$DLLTOOL"
12296
12297# Used on cygwin: object dumper.
12298OBJDUMP="$OBJDUMP"
12299
12300# Used on cygwin: assembler.
12301AS="$AS"
12302
12303# The name of the directory that contains temporary libtool files.
12304objdir=$objdir
12305
12306# How to create reloadable object files.
12307reload_flag=$lt_reload_flag
12308reload_cmds=$lt_reload_cmds
12309
12310# How to pass a linker flag through the compiler.
12311wl=$lt_lt_prog_compiler_wl_CXX
12312
12313# Object file suffix (normally "o").
12314objext="$ac_objext"
12315
12316# Old archive suffix (normally "a").
12317libext="$libext"
12318
12319# Shared library suffix (normally ".so").
12320shrext_cmds='$shrext_cmds'
12321
12322# Executable file suffix (normally "").
12323exeext="$exeext"
12324
12325# Additional compiler flags for building library objects.
12326pic_flag=$lt_lt_prog_compiler_pic_CXX
12327pic_mode=$pic_mode
12328
12329# What is the maximum length of a command?
12330max_cmd_len=$lt_cv_sys_max_cmd_len
12331
12332# Does compiler simultaneously support -c and -o options?
12333compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12334
mmentovai3261e8b2006-09-06 02:56:44 +000012335# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000012336need_locks=$lt_need_locks
12337
12338# Do we need the lib prefix for modules?
12339need_lib_prefix=$need_lib_prefix
12340
12341# Do we need a version for libraries?
12342need_version=$need_version
12343
12344# Whether dlopen is supported.
12345dlopen_support=$enable_dlopen
12346
12347# Whether dlopen of programs is supported.
12348dlopen_self=$enable_dlopen_self
12349
12350# Whether dlopen of statically linked programs is supported.
12351dlopen_self_static=$enable_dlopen_self_static
12352
12353# Compiler flag to prevent dynamic linking.
12354link_static_flag=$lt_lt_prog_compiler_static_CXX
12355
12356# Compiler flag to turn off builtin functions.
12357no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12358
12359# Compiler flag to allow reflexive dlopens.
12360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12361
12362# Compiler flag to generate shared objects directly from archives.
12363whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12364
12365# Compiler flag to generate thread-safe objects.
12366thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12367
12368# Library versioning type.
12369version_type=$version_type
12370
12371# Format of library name prefix.
12372libname_spec=$lt_libname_spec
12373
12374# List of archive names. First name is the real one, the rest are links.
12375# The last name is the one that the linker finds with -lNAME.
12376library_names_spec=$lt_library_names_spec
12377
12378# The coded name of the library, if different from the real name.
12379soname_spec=$lt_soname_spec
12380
12381# Commands used to build and install an old-style archive.
12382RANLIB=$lt_RANLIB
12383old_archive_cmds=$lt_old_archive_cmds_CXX
12384old_postinstall_cmds=$lt_old_postinstall_cmds
12385old_postuninstall_cmds=$lt_old_postuninstall_cmds
12386
12387# Create an old-style archive from a shared archive.
12388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12389
12390# Create a temporary old-style archive to link instead of a shared archive.
12391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12392
12393# Commands used to build and install a shared archive.
12394archive_cmds=$lt_archive_cmds_CXX
12395archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12396postinstall_cmds=$lt_postinstall_cmds
12397postuninstall_cmds=$lt_postuninstall_cmds
12398
12399# Commands used to build a loadable module (assumed same as above if empty)
12400module_cmds=$lt_module_cmds_CXX
12401module_expsym_cmds=$lt_module_expsym_cmds_CXX
12402
12403# Commands to strip libraries.
12404old_striplib=$lt_old_striplib
12405striplib=$lt_striplib
12406
12407# Dependencies to place before the objects being linked to create a
12408# shared library.
12409predep_objects=$lt_predep_objects_CXX
12410
12411# Dependencies to place after the objects being linked to create a
12412# shared library.
12413postdep_objects=$lt_postdep_objects_CXX
12414
12415# Dependencies to place before the objects being linked to create a
12416# shared library.
12417predeps=$lt_predeps_CXX
12418
12419# Dependencies to place after the objects being linked to create a
12420# shared library.
12421postdeps=$lt_postdeps_CXX
12422
12423# The library search path used internally by the compiler when linking
12424# a shared library.
12425compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12426
12427# Method to check whether dependent libraries are shared objects.
12428deplibs_check_method=$lt_deplibs_check_method
12429
12430# Command to use when deplibs_check_method == file_magic.
12431file_magic_cmd=$lt_file_magic_cmd
12432
12433# Flag that allows shared libraries with undefined symbols to be built.
12434allow_undefined_flag=$lt_allow_undefined_flag_CXX
12435
12436# Flag that forces no undefined symbols.
12437no_undefined_flag=$lt_no_undefined_flag_CXX
12438
12439# Commands used to finish a libtool library installation in a directory.
12440finish_cmds=$lt_finish_cmds
12441
12442# Same as above, but a single script fragment to be evaled but not shown.
12443finish_eval=$lt_finish_eval
12444
12445# Take the output of nm and produce a listing of raw symbols and C names.
12446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12447
12448# Transform the output of nm in a proper C declaration
12449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12450
12451# Transform the output of nm in a C name address pair
12452global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12453
12454# This is the shared library runtime path variable.
12455runpath_var=$runpath_var
12456
12457# This is the shared library path variable.
12458shlibpath_var=$shlibpath_var
12459
12460# Is shlibpath searched before the hard-coded library search path?
12461shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12462
12463# How to hardcode a shared library path into an executable.
12464hardcode_action=$hardcode_action_CXX
12465
12466# Whether we should hardcode library paths into libraries.
12467hardcode_into_libs=$hardcode_into_libs
12468
12469# Flag to hardcode \$libdir into a binary during linking.
12470# This must work even if \$libdir does not exist.
12471hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12472
12473# If ld is used when linking, flag to hardcode \$libdir into
12474# a binary during linking. This must work even if \$libdir does
12475# not exist.
12476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12477
12478# Whether we need a single -rpath flag with a separated argument.
12479hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12480
12481# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12482# resulting binary.
12483hardcode_direct=$hardcode_direct_CXX
12484
12485# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12486# resulting binary.
12487hardcode_minus_L=$hardcode_minus_L_CXX
12488
12489# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12490# the resulting binary.
12491hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12492
12493# Set to yes if building a shared library automatically hardcodes DIR into the library
12494# and all subsequent libraries and executables linked against it.
12495hardcode_automatic=$hardcode_automatic_CXX
12496
12497# Variables whose values should be saved in libtool wrapper scripts and
12498# restored at relink time.
12499variables_saved_for_relink="$variables_saved_for_relink"
12500
12501# Whether libtool must link a program against all its dependency libraries.
12502link_all_deplibs=$link_all_deplibs_CXX
12503
12504# Compile-time system search path for libraries
12505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12506
12507# Run-time system search path for libraries
12508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12509
12510# Fix the shell variable \$srcfile for the compiler.
12511fix_srcfile_path="$fix_srcfile_path_CXX"
12512
12513# Set to yes if exported symbols are required.
12514always_export_symbols=$always_export_symbols_CXX
12515
12516# The commands to list exported symbols.
12517export_symbols_cmds=$lt_export_symbols_cmds_CXX
12518
12519# The commands to extract the exported symbol list from a shared archive.
12520extract_expsyms_cmds=$lt_extract_expsyms_cmds
12521
12522# Symbols that should not be listed in the preloaded symbols.
12523exclude_expsyms=$lt_exclude_expsyms_CXX
12524
12525# Symbols that must always be exported.
12526include_expsyms=$lt_include_expsyms_CXX
12527
12528# ### END LIBTOOL TAG CONFIG: $tagname
12529
12530__EOF__
12531
12532
12533else
12534 # If there is no Makefile yet, we rely on a make rule to execute
12535 # `config.status --recheck' to rerun these tests and create the
12536 # libtool script then.
12537 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12538 if test -f "$ltmain_in"; then
12539 test -f Makefile && make "$ltmain"
12540 fi
12541fi
12542
12543
12544ac_ext=c
12545ac_cpp='$CPP $CPPFLAGS'
12546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548ac_compiler_gnu=$ac_cv_c_compiler_gnu
12549
12550CC=$lt_save_CC
12551LDCXX=$LD
12552LD=$lt_save_LD
12553GCC=$lt_save_GCC
12554with_gnu_ldcxx=$with_gnu_ld
12555with_gnu_ld=$lt_save_with_gnu_ld
12556lt_cv_path_LDCXX=$lt_cv_path_LD
12557lt_cv_path_LD=$lt_save_path_LD
12558lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12559lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12560
12561 else
12562 tagname=""
12563 fi
12564 ;;
12565
12566 F77)
12567 if test -n "$F77" && test "X$F77" != "Xno"; then
12568
12569ac_ext=f
12570ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12571ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12572ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12573
12574
12575archive_cmds_need_lc_F77=no
12576allow_undefined_flag_F77=
12577always_export_symbols_F77=no
12578archive_expsym_cmds_F77=
12579export_dynamic_flag_spec_F77=
12580hardcode_direct_F77=no
12581hardcode_libdir_flag_spec_F77=
12582hardcode_libdir_flag_spec_ld_F77=
12583hardcode_libdir_separator_F77=
12584hardcode_minus_L_F77=no
12585hardcode_automatic_F77=no
12586module_cmds_F77=
12587module_expsym_cmds_F77=
12588link_all_deplibs_F77=unknown
12589old_archive_cmds_F77=$old_archive_cmds
12590no_undefined_flag_F77=
12591whole_archive_flag_spec_F77=
12592enable_shared_with_static_runtimes_F77=no
12593
12594# Source file extension for f77 test sources.
12595ac_ext=f
12596
12597# Object file extension for compiled f77 test sources.
12598objext=o
12599objext_F77=$objext
12600
12601# Code to be used in simple compile tests
12602lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12603
12604# Code to be used in simple link tests
12605lt_simple_link_test_code=" program t\n end\n"
12606
12607# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12608
12609# If no C compiler was specified, use CC.
12610LTCC=${LTCC-"$CC"}
12611
mmentovai3261e8b2006-09-06 02:56:44 +000012612# If no C compiler flags were specified, use CFLAGS.
12613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12614
brynercb91a2f2006-08-25 21:14:45 +000012615# Allow CC to be a program name with arguments.
12616compiler=$CC
12617
12618
mmentovai3261e8b2006-09-06 02:56:44 +000012619# save warnings/boilerplate of simple test code
12620ac_outfile=conftest.$ac_objext
12621printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12622eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12623_lt_compiler_boilerplate=`cat conftest.err`
12624$rm conftest*
12625
12626ac_outfile=conftest.$ac_objext
12627printf "$lt_simple_link_test_code" >conftest.$ac_ext
12628eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12629_lt_linker_boilerplate=`cat conftest.err`
12630$rm conftest*
12631
12632
brynercb91a2f2006-08-25 21:14:45 +000012633# Allow CC to be a program name with arguments.
12634lt_save_CC="$CC"
12635CC=${F77-"f77"}
12636compiler=$CC
12637compiler_F77=$CC
mmentovai3261e8b2006-09-06 02:56:44 +000012638for cc_temp in $compiler""; do
12639 case $cc_temp in
12640 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12641 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12642 \-*) ;;
12643 *) break;;
12644 esac
12645done
12646cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12647
brynercb91a2f2006-08-25 21:14:45 +000012648
12649echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12650echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12651echo "$as_me:$LINENO: result: $can_build_shared" >&5
12652echo "${ECHO_T}$can_build_shared" >&6
12653
12654echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12655echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12656test "$can_build_shared" = "no" && enable_shared=no
12657
12658# On AIX, shared libraries and static libraries use the same namespace, and
12659# are all built from PIC.
mmentovai3261e8b2006-09-06 02:56:44 +000012660case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000012661aix3*)
12662 test "$enable_shared" = yes && enable_static=no
12663 if test -n "$RANLIB"; then
12664 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12665 postinstall_cmds='$RANLIB $lib'
12666 fi
12667 ;;
12668aix4* | aix5*)
mmentovai3261e8b2006-09-06 02:56:44 +000012669 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12670 test "$enable_shared" = yes && enable_static=no
12671 fi
brynercb91a2f2006-08-25 21:14:45 +000012672 ;;
12673esac
12674echo "$as_me:$LINENO: result: $enable_shared" >&5
12675echo "${ECHO_T}$enable_shared" >&6
12676
12677echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12678echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12679# Make sure either enable_shared or enable_static is yes.
12680test "$enable_shared" = yes || enable_static=yes
12681echo "$as_me:$LINENO: result: $enable_static" >&5
12682echo "${ECHO_T}$enable_static" >&6
12683
brynercb91a2f2006-08-25 21:14:45 +000012684GCC_F77="$G77"
12685LD_F77="$LD"
12686
12687lt_prog_compiler_wl_F77=
12688lt_prog_compiler_pic_F77=
12689lt_prog_compiler_static_F77=
12690
12691echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12692echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12693
12694 if test "$GCC" = yes; then
12695 lt_prog_compiler_wl_F77='-Wl,'
12696 lt_prog_compiler_static_F77='-static'
12697
12698 case $host_os in
12699 aix*)
12700 # All AIX code is PIC.
12701 if test "$host_cpu" = ia64; then
12702 # AIX 5 now supports IA64 processor
12703 lt_prog_compiler_static_F77='-Bstatic'
12704 fi
12705 ;;
12706
12707 amigaos*)
12708 # FIXME: we need at least 68020 code to build shared libraries, but
12709 # adding the `-m68020' flag to GCC prevents building anything better,
12710 # like `-m68040'.
12711 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12712 ;;
12713
12714 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12715 # PIC is the default for these OSes.
12716 ;;
12717
12718 mingw* | pw32* | os2*)
12719 # This hack is so that the source file can tell whether it is being
12720 # built for inclusion in a dll (and should export symbols for example).
12721 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12722 ;;
12723
12724 darwin* | rhapsody*)
12725 # PIC is the default on this platform
12726 # Common symbols not allowed in MH_DYLIB files
12727 lt_prog_compiler_pic_F77='-fno-common'
12728 ;;
12729
mmentovai3261e8b2006-09-06 02:56:44 +000012730 interix3*)
12731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12732 # Instead, we relocate shared libraries at runtime.
12733 ;;
12734
brynercb91a2f2006-08-25 21:14:45 +000012735 msdosdjgpp*)
12736 # Just because we use GCC doesn't mean we suddenly get shared libraries
12737 # on systems that don't support them.
12738 lt_prog_compiler_can_build_shared_F77=no
12739 enable_shared=no
12740 ;;
12741
12742 sysv4*MP*)
12743 if test -d /usr/nec; then
12744 lt_prog_compiler_pic_F77=-Kconform_pic
12745 fi
12746 ;;
12747
12748 hpux*)
12749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12750 # not for PA HP-UX.
mmentovai3261e8b2006-09-06 02:56:44 +000012751 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012752 hppa*64*|ia64*)
12753 # +Z the default
12754 ;;
12755 *)
12756 lt_prog_compiler_pic_F77='-fPIC'
12757 ;;
12758 esac
12759 ;;
12760
12761 *)
12762 lt_prog_compiler_pic_F77='-fPIC'
12763 ;;
12764 esac
12765 else
12766 # PORTME Check for flag to pass linker flags through the system compiler.
12767 case $host_os in
12768 aix*)
12769 lt_prog_compiler_wl_F77='-Wl,'
12770 if test "$host_cpu" = ia64; then
12771 # AIX 5 now supports IA64 processor
12772 lt_prog_compiler_static_F77='-Bstatic'
12773 else
12774 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12775 fi
12776 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000012777 darwin*)
12778 # PIC is the default on this platform
12779 # Common symbols not allowed in MH_DYLIB files
12780 case $cc_basename in
12781 xlc*)
12782 lt_prog_compiler_pic_F77='-qnocommon'
12783 lt_prog_compiler_wl_F77='-Wl,'
12784 ;;
12785 esac
12786 ;;
brynercb91a2f2006-08-25 21:14:45 +000012787
12788 mingw* | pw32* | os2*)
12789 # This hack is so that the source file can tell whether it is being
12790 # built for inclusion in a dll (and should export symbols for example).
12791 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12792 ;;
12793
12794 hpux9* | hpux10* | hpux11*)
12795 lt_prog_compiler_wl_F77='-Wl,'
12796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12797 # not for PA HP-UX.
mmentovai3261e8b2006-09-06 02:56:44 +000012798 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012799 hppa*64*|ia64*)
12800 # +Z the default
12801 ;;
12802 *)
12803 lt_prog_compiler_pic_F77='+Z'
12804 ;;
12805 esac
12806 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12807 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12808 ;;
12809
12810 irix5* | irix6* | nonstopux*)
12811 lt_prog_compiler_wl_F77='-Wl,'
12812 # PIC (with -KPIC) is the default.
12813 lt_prog_compiler_static_F77='-non_shared'
12814 ;;
12815
12816 newsos6)
12817 lt_prog_compiler_pic_F77='-KPIC'
12818 lt_prog_compiler_static_F77='-Bstatic'
12819 ;;
12820
12821 linux*)
mmentovai3261e8b2006-09-06 02:56:44 +000012822 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000012823 icc* | ecc*)
12824 lt_prog_compiler_wl_F77='-Wl,'
12825 lt_prog_compiler_pic_F77='-KPIC'
12826 lt_prog_compiler_static_F77='-static'
12827 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000012828 pgcc* | pgf77* | pgf90* | pgf95*)
12829 # Portland Group compilers (*not* the Pentium gcc compiler,
12830 # which looks to be a dead project)
12831 lt_prog_compiler_wl_F77='-Wl,'
12832 lt_prog_compiler_pic_F77='-fpic'
12833 lt_prog_compiler_static_F77='-Bstatic'
12834 ;;
brynercb91a2f2006-08-25 21:14:45 +000012835 ccc*)
12836 lt_prog_compiler_wl_F77='-Wl,'
12837 # All Alpha code is PIC.
12838 lt_prog_compiler_static_F77='-non_shared'
12839 ;;
12840 esac
12841 ;;
12842
12843 osf3* | osf4* | osf5*)
12844 lt_prog_compiler_wl_F77='-Wl,'
12845 # All OSF/1 code is PIC.
12846 lt_prog_compiler_static_F77='-non_shared'
12847 ;;
12848
brynercb91a2f2006-08-25 21:14:45 +000012849 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000012850 lt_prog_compiler_pic_F77='-KPIC'
12851 lt_prog_compiler_static_F77='-Bstatic'
mmentovai3261e8b2006-09-06 02:56:44 +000012852 case $cc_basename in
12853 f77* | f90* | f95*)
12854 lt_prog_compiler_wl_F77='-Qoption ld ';;
12855 *)
12856 lt_prog_compiler_wl_F77='-Wl,';;
12857 esac
brynercb91a2f2006-08-25 21:14:45 +000012858 ;;
12859
12860 sunos4*)
12861 lt_prog_compiler_wl_F77='-Qoption ld '
12862 lt_prog_compiler_pic_F77='-PIC'
12863 lt_prog_compiler_static_F77='-Bstatic'
12864 ;;
12865
mmentovai3261e8b2006-09-06 02:56:44 +000012866 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000012867 lt_prog_compiler_wl_F77='-Wl,'
12868 lt_prog_compiler_pic_F77='-KPIC'
12869 lt_prog_compiler_static_F77='-Bstatic'
12870 ;;
12871
12872 sysv4*MP*)
12873 if test -d /usr/nec ;then
12874 lt_prog_compiler_pic_F77='-Kconform_pic'
12875 lt_prog_compiler_static_F77='-Bstatic'
12876 fi
12877 ;;
12878
mmentovai3261e8b2006-09-06 02:56:44 +000012879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12880 lt_prog_compiler_wl_F77='-Wl,'
12881 lt_prog_compiler_pic_F77='-KPIC'
12882 lt_prog_compiler_static_F77='-Bstatic'
12883 ;;
12884
12885 unicos*)
12886 lt_prog_compiler_wl_F77='-Wl,'
12887 lt_prog_compiler_can_build_shared_F77=no
12888 ;;
12889
brynercb91a2f2006-08-25 21:14:45 +000012890 uts4*)
12891 lt_prog_compiler_pic_F77='-pic'
12892 lt_prog_compiler_static_F77='-Bstatic'
12893 ;;
12894
12895 *)
12896 lt_prog_compiler_can_build_shared_F77=no
12897 ;;
12898 esac
12899 fi
12900
12901echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12902echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12903
12904#
12905# Check to make sure the PIC flag actually works.
12906#
12907if test -n "$lt_prog_compiler_pic_F77"; then
12908
12909echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12910echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12911if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913else
12914 lt_prog_compiler_pic_works_F77=no
12915 ac_outfile=conftest.$ac_objext
12916 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12917 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12918 # Insert the option either (1) after the last *FLAGS variable, or
12919 # (2) before a word containing "conftest.", or (3) at the end.
12920 # Note that $ac_compile itself does not contain backslashes and begins
12921 # with a dollar sign (not a hyphen), so the echo should work correctly.
12922 # The option is referenced via a variable to avoid confusing sed.
12923 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +000012924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12926 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +000012927 (eval echo "\"\$as_me:12927: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012928 (eval "$lt_compile" 2>conftest.err)
12929 ac_status=$?
12930 cat conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +000012931 echo "$as_me:12931: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012932 if (exit $ac_status) && test -s "$ac_outfile"; then
12933 # The compiler can only warn and ignore the option if not recognized
mmentovai3261e8b2006-09-06 02:56:44 +000012934 # So say no if there are warnings other than the usual output.
12935 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012938 lt_prog_compiler_pic_works_F77=yes
12939 fi
12940 fi
12941 $rm conftest*
12942
12943fi
12944echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12945echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12946
12947if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12948 case $lt_prog_compiler_pic_F77 in
12949 "" | " "*) ;;
12950 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12951 esac
12952else
12953 lt_prog_compiler_pic_F77=
12954 lt_prog_compiler_can_build_shared_F77=no
12955fi
12956
12957fi
mmentovai3261e8b2006-09-06 02:56:44 +000012958case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000012959 # For platforms which do not support PIC, -DPIC is meaningless:
12960 *djgpp*)
12961 lt_prog_compiler_pic_F77=
12962 ;;
12963 *)
12964 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12965 ;;
12966esac
12967
mmentovai3261e8b2006-09-06 02:56:44 +000012968#
12969# Check to make sure the static flag actually works.
12970#
12971wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12972echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12973echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12974if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976else
12977 lt_prog_compiler_static_works_F77=no
12978 save_LDFLAGS="$LDFLAGS"
12979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12980 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12982 # The linker can only warn and ignore the option if not recognized
12983 # So say no if there are warnings
12984 if test -s conftest.err; then
12985 # Append any errors to the config.log.
12986 cat conftest.err 1>&5
12987 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12989 if diff conftest.exp conftest.er2 >/dev/null; then
12990 lt_prog_compiler_static_works_F77=yes
12991 fi
12992 else
12993 lt_prog_compiler_static_works_F77=yes
12994 fi
12995 fi
12996 $rm conftest*
12997 LDFLAGS="$save_LDFLAGS"
12998
12999fi
13000echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13001echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13002
13003if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13004 :
13005else
13006 lt_prog_compiler_static_F77=
13007fi
13008
13009
brynercb91a2f2006-08-25 21:14:45 +000013010echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13011echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13012if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13014else
13015 lt_cv_prog_compiler_c_o_F77=no
13016 $rm -r conftest 2>/dev/null
13017 mkdir conftest
13018 cd conftest
13019 mkdir out
13020 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13021
13022 lt_compiler_flag="-o out/conftest2.$ac_objext"
13023 # Insert the option either (1) after the last *FLAGS variable, or
13024 # (2) before a word containing "conftest.", or (3) at the end.
13025 # Note that $ac_compile itself does not contain backslashes and begins
13026 # with a dollar sign (not a hyphen), so the echo should work correctly.
13027 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +000013028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13030 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +000013031 (eval echo "\"\$as_me:13031: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013032 (eval "$lt_compile" 2>out/conftest.err)
13033 ac_status=$?
13034 cat out/conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +000013035 echo "$as_me:13035: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13037 then
13038 # The compiler can only warn and ignore the option if not recognized
13039 # So say no if there are warnings
mmentovai3261e8b2006-09-06 02:56:44 +000013040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013043 lt_cv_prog_compiler_c_o_F77=yes
13044 fi
13045 fi
mmentovai3261e8b2006-09-06 02:56:44 +000013046 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000013047 $rm conftest*
13048 # SGI C++ compiler will create directory out/ii_files/ for
13049 # template instantiation
13050 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13051 $rm out/* && rmdir out
13052 cd ..
13053 rmdir conftest
13054 $rm conftest*
13055
13056fi
13057echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13058echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13059
13060
13061hard_links="nottested"
13062if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13063 # do not overwrite the value of need_locks provided by the user
13064 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13065echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13066 hard_links=yes
13067 $rm conftest*
13068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13069 touch conftest.a
13070 ln conftest.a conftest.b 2>&5 || hard_links=no
13071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13072 echo "$as_me:$LINENO: result: $hard_links" >&5
13073echo "${ECHO_T}$hard_links" >&6
13074 if test "$hard_links" = no; then
13075 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13076echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13077 need_locks=warn
13078 fi
13079else
13080 need_locks=no
13081fi
13082
13083echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13084echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13085
13086 runpath_var=
13087 allow_undefined_flag_F77=
13088 enable_shared_with_static_runtimes_F77=no
13089 archive_cmds_F77=
13090 archive_expsym_cmds_F77=
13091 old_archive_From_new_cmds_F77=
13092 old_archive_from_expsyms_cmds_F77=
13093 export_dynamic_flag_spec_F77=
13094 whole_archive_flag_spec_F77=
13095 thread_safe_flag_spec_F77=
13096 hardcode_libdir_flag_spec_F77=
13097 hardcode_libdir_flag_spec_ld_F77=
13098 hardcode_libdir_separator_F77=
13099 hardcode_direct_F77=no
13100 hardcode_minus_L_F77=no
13101 hardcode_shlibpath_var_F77=unsupported
13102 link_all_deplibs_F77=unknown
13103 hardcode_automatic_F77=no
13104 module_cmds_F77=
13105 module_expsym_cmds_F77=
13106 always_export_symbols_F77=no
13107 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13108 # include_expsyms should be a list of space-separated symbols to be *always*
13109 # included in the symbol list
13110 include_expsyms_F77=
13111 # exclude_expsyms can be an extended regexp of symbols to exclude
13112 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13113 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13114 # as well as any symbol that contains `d'.
13115 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13116 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13117 # platforms (ab)use it in PIC code, but their linkers get confused if
13118 # the symbol is explicitly referenced. Since portable code cannot
13119 # rely on this symbol name, it's probably fine to never include it in
13120 # preloaded symbol tables.
13121 extract_expsyms_cmds=
mmentovai3261e8b2006-09-06 02:56:44 +000013122 # Just being paranoid about ensuring that cc_basename is set.
13123 for cc_temp in $compiler""; do
13124 case $cc_temp in
13125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13127 \-*) ;;
13128 *) break;;
13129 esac
13130done
13131cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000013132
13133 case $host_os in
13134 cygwin* | mingw* | pw32*)
13135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13136 # When not using gcc, we currently assume that we are using
13137 # Microsoft Visual C++.
13138 if test "$GCC" != yes; then
13139 with_gnu_ld=no
13140 fi
13141 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000013142 interix*)
13143 # we just hope/assume this is gcc and not c89 (= MSVC++)
13144 with_gnu_ld=yes
13145 ;;
brynercb91a2f2006-08-25 21:14:45 +000013146 openbsd*)
13147 with_gnu_ld=no
13148 ;;
13149 esac
13150
13151 ld_shlibs_F77=yes
13152 if test "$with_gnu_ld" = yes; then
13153 # If archive_cmds runs LD, not CC, wlarc should be empty
13154 wlarc='${wl}'
13155
mmentovai3261e8b2006-09-06 02:56:44 +000013156 # Set some defaults for GNU ld with shared library support. These
13157 # are reset later if shared libraries are not supported. Putting them
13158 # here allows them to be overridden if necessary.
13159 runpath_var=LD_RUN_PATH
13160 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13161 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13162 # ancient GNU ld didn't support --whole-archive et. al.
13163 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13164 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13165 else
13166 whole_archive_flag_spec_F77=
13167 fi
13168 supports_anon_versioning=no
13169 case `$LD -v 2>/dev/null` in
13170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13173 *\ 2.11.*) ;; # other 2.11 versions
13174 *) supports_anon_versioning=yes ;;
13175 esac
13176
brynercb91a2f2006-08-25 21:14:45 +000013177 # See if GNU ld supports shared libraries.
13178 case $host_os in
13179 aix3* | aix4* | aix5*)
13180 # On AIX/PPC, the GNU linker is very broken
13181 if test "$host_cpu" != ia64; then
13182 ld_shlibs_F77=no
13183 cat <<EOF 1>&2
13184
13185*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13186*** to be unable to reliably create shared libraries on AIX.
13187*** Therefore, libtool is disabling shared libraries support. If you
13188*** really care for shared libraries, you may want to modify your PATH
13189*** so that a non-GNU linker is found, and then restart.
13190
13191EOF
13192 fi
13193 ;;
13194
13195 amigaos*)
13196 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)'
13197 hardcode_libdir_flag_spec_F77='-L$libdir'
13198 hardcode_minus_L_F77=yes
13199
13200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13201 # that the semantics of dynamic libraries on AmigaOS, at least up
13202 # to version 4, is to share data among multiple programs linked
13203 # with the same dynamic library. Since this doesn't match the
13204 # behavior of shared libraries on other platforms, we can't use
13205 # them.
13206 ld_shlibs_F77=no
13207 ;;
13208
13209 beos*)
13210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13211 allow_undefined_flag_F77=unsupported
13212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13213 # support --undefined. This deserves some investigation. FIXME
13214 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13215 else
13216 ld_shlibs_F77=no
13217 fi
13218 ;;
13219
13220 cygwin* | mingw* | pw32*)
13221 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13222 # as there is no search path for DLLs.
13223 hardcode_libdir_flag_spec_F77='-L$libdir'
13224 allow_undefined_flag_F77=unsupported
13225 always_export_symbols_F77=no
13226 enable_shared_with_static_runtimes_F77=yes
mmentovai3261e8b2006-09-06 02:56:44 +000013227 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000013228
13229 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai3261e8b2006-09-06 02:56:44 +000013230 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000013231 # If the export-symbols file already is a .def file (1st line
13232 # is EXPORTS), use it as is; otherwise, prepend...
13233 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13234 cp $export_symbols $output_objdir/$soname.def;
13235 else
13236 echo EXPORTS > $output_objdir/$soname.def;
13237 cat $export_symbols >> $output_objdir/$soname.def;
13238 fi~
mmentovai3261e8b2006-09-06 02:56:44 +000013239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000013240 else
mmentovai3261e8b2006-09-06 02:56:44 +000013241 ld_shlibs_F77=no
brynercb91a2f2006-08-25 21:14:45 +000013242 fi
13243 ;;
13244
mmentovai3261e8b2006-09-06 02:56:44 +000013245 interix3*)
13246 hardcode_direct_F77=no
13247 hardcode_shlibpath_var_F77=no
13248 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13249 export_dynamic_flag_spec_F77='${wl}-E'
13250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13251 # Instead, shared libraries are loaded at an image base (0x10000000 by
13252 # default) and relocated if they conflict, which is a slow very memory
13253 # consuming and fragmenting process. To avoid this, we pick a random,
13254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13256 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13257 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13258 ;;
13259
13260 linux*)
13261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13262 tmp_addflag=
13263 case $cc_basename,$host_cpu in
13264 pgcc*) # Portland Group C compiler
13265 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13266 tmp_addflag=' $pic_flag'
13267 ;;
13268 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13269 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13270 tmp_addflag=' $pic_flag -Mnomain' ;;
13271 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13272 tmp_addflag=' -i_dynamic' ;;
13273 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13274 tmp_addflag=' -i_dynamic -nofor_main' ;;
13275 ifc* | ifort*) # Intel Fortran compiler
13276 tmp_addflag=' -nofor_main' ;;
13277 esac
13278 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279
13280 if test $supports_anon_versioning = yes; then
13281 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13283 $echo "local: *; };" >> $output_objdir/$libname.ver~
13284 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13285 fi
13286 else
13287 ld_shlibs_F77=no
13288 fi
13289 ;;
13290
13291 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000013292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13293 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13294 wlarc=
13295 else
13296 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13298 fi
13299 ;;
13300
mmentovai3261e8b2006-09-06 02:56:44 +000013301 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000013302 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13303 ld_shlibs_F77=no
13304 cat <<EOF 1>&2
13305
13306*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13307*** create shared libraries on Solaris systems. Therefore, libtool
13308*** is disabling shared libraries support. We urge you to upgrade GNU
13309*** binutils to release 2.9.1 or newer. Another option is to modify
13310*** your PATH or compiler configuration so that the native linker is
13311*** used, and then restart.
13312
13313EOF
13314 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13315 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13316 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13317 else
13318 ld_shlibs_F77=no
13319 fi
13320 ;;
13321
mmentovai3261e8b2006-09-06 02:56:44 +000013322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13323 case `$LD -v 2>&1` in
13324 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13325 ld_shlibs_F77=no
13326 cat <<_LT_EOF 1>&2
13327
13328*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13329*** reliably create shared libraries on SCO systems. Therefore, libtool
13330*** is disabling shared libraries support. We urge you to upgrade GNU
13331*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13332*** your PATH or compiler configuration so that the native linker is
13333*** used, and then restart.
13334
13335_LT_EOF
13336 ;;
13337 *)
13338 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13339 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13340 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13341 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13342 else
13343 ld_shlibs_F77=no
13344 fi
13345 ;;
13346 esac
13347 ;;
13348
brynercb91a2f2006-08-25 21:14:45 +000013349 sunos4*)
13350 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13351 wlarc=
13352 hardcode_direct_F77=yes
13353 hardcode_shlibpath_var_F77=no
13354 ;;
13355
brynercb91a2f2006-08-25 21:14:45 +000013356 *)
13357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13359 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13360 else
13361 ld_shlibs_F77=no
13362 fi
13363 ;;
13364 esac
13365
mmentovai3261e8b2006-09-06 02:56:44 +000013366 if test "$ld_shlibs_F77" = no; then
13367 runpath_var=
13368 hardcode_libdir_flag_spec_F77=
13369 export_dynamic_flag_spec_F77=
13370 whole_archive_flag_spec_F77=
brynercb91a2f2006-08-25 21:14:45 +000013371 fi
13372 else
13373 # PORTME fill in a description of your system's linker (not GNU ld)
13374 case $host_os in
13375 aix3*)
13376 allow_undefined_flag_F77=unsupported
13377 always_export_symbols_F77=yes
13378 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'
13379 # Note: this linker hardcodes the directories in LIBPATH if there
13380 # are no directories specified by -L.
13381 hardcode_minus_L_F77=yes
mmentovai3261e8b2006-09-06 02:56:44 +000013382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000013383 # Neither direct hardcoding nor static linking is supported with a
13384 # broken collect2.
13385 hardcode_direct_F77=unsupported
13386 fi
13387 ;;
13388
13389 aix4* | aix5*)
13390 if test "$host_cpu" = ia64; then
13391 # On IA64, the linker does run time linking by default, so we don't
13392 # have to do anything special.
13393 aix_use_runtimelinking=no
13394 exp_sym_flag='-Bexport'
13395 no_entry_flag=""
13396 else
13397 # If we're using GNU nm, then we don't want the "-C" option.
13398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13399 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13400 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'
13401 else
13402 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'
13403 fi
13404 aix_use_runtimelinking=no
13405
13406 # Test if we are trying to use run time linking or normal
13407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13408 # need to do runtime linking.
13409 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13410 for ld_flag in $LDFLAGS; do
13411 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13412 aix_use_runtimelinking=yes
13413 break
13414 fi
13415 done
mmentovai3261e8b2006-09-06 02:56:44 +000013416 ;;
brynercb91a2f2006-08-25 21:14:45 +000013417 esac
13418
13419 exp_sym_flag='-bexport'
13420 no_entry_flag='-bnoentry'
13421 fi
13422
13423 # When large executables or shared objects are built, AIX ld can
13424 # have problems creating the table of contents. If linking a library
13425 # or program results in "error TOC overflow" add -mminimal-toc to
13426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13428
13429 archive_cmds_F77=''
13430 hardcode_direct_F77=yes
13431 hardcode_libdir_separator_F77=':'
13432 link_all_deplibs_F77=yes
13433
13434 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +000013435 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000013436 # We only want to do this on AIX 4.2 and lower, the check
13437 # below for broken collect2 doesn't work under 4.3+
13438 collect2name=`${CC} -print-prog-name=collect2`
13439 if test -f "$collect2name" && \
13440 strings "$collect2name" | grep resolve_lib_name >/dev/null
13441 then
13442 # We have reworked collect2
13443 hardcode_direct_F77=yes
13444 else
13445 # We have old collect2
13446 hardcode_direct_F77=unsupported
13447 # It fails to find uninstalled libraries when the uninstalled
13448 # path is not listed in the libpath. Setting hardcode_minus_L
13449 # to unsupported forces relinking
13450 hardcode_minus_L_F77=yes
13451 hardcode_libdir_flag_spec_F77='-L$libdir'
13452 hardcode_libdir_separator_F77=
13453 fi
mmentovai3261e8b2006-09-06 02:56:44 +000013454 ;;
brynercb91a2f2006-08-25 21:14:45 +000013455 esac
13456 shared_flag='-shared'
mmentovai3261e8b2006-09-06 02:56:44 +000013457 if test "$aix_use_runtimelinking" = yes; then
13458 shared_flag="$shared_flag "'${wl}-G'
13459 fi
brynercb91a2f2006-08-25 21:14:45 +000013460 else
13461 # not using gcc
13462 if test "$host_cpu" = ia64; then
13463 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13464 # chokes on -Wl,-G. The following line is correct:
13465 shared_flag='-G'
13466 else
mmentovai3261e8b2006-09-06 02:56:44 +000013467 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000013468 shared_flag='${wl}-G'
13469 else
13470 shared_flag='${wl}-bM:SRE'
mmentovai3261e8b2006-09-06 02:56:44 +000013471 fi
brynercb91a2f2006-08-25 21:14:45 +000013472 fi
13473 fi
13474
13475 # It seems that -bexpall does not export symbols beginning with
13476 # underscore (_), so it is better to generate a list of symbols to export.
13477 always_export_symbols_F77=yes
13478 if test "$aix_use_runtimelinking" = yes; then
13479 # Warning - without using the other runtime loading flags (-brtl),
13480 # -berok will link without error, but may produce a broken library.
13481 allow_undefined_flag_F77='-berok'
13482 # Determine the default libpath from the value encoded in an empty executable.
13483 cat >conftest.$ac_ext <<_ACEOF
13484 program main
13485
13486 end
13487_ACEOF
13488rm -f conftest.$ac_objext conftest$ac_exeext
13489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490 (eval $ac_link) 2>conftest.er1
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +000013497 { ac_try='test -z "$ac_f77_werror_flag"
13498 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000013499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; } &&
13504 { ac_try='test -s conftest$ac_exeext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510
13511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13512}'`
13513# Check for a 64-bit object if we didn't find anything.
13514if 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; }
13515}'`; fi
13516else
13517 echo "$as_me: failed program was:" >&5
13518sed 's/^/| /' conftest.$ac_ext >&5
13519
13520fi
13521rm -f conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13524
13525 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai3261e8b2006-09-06 02:56:44 +000013526 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
brynercb91a2f2006-08-25 21:14:45 +000013527 else
13528 if test "$host_cpu" = ia64; then
13529 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13530 allow_undefined_flag_F77="-z nodefs"
mmentovai3261e8b2006-09-06 02:56:44 +000013531 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
brynercb91a2f2006-08-25 21:14:45 +000013532 else
13533 # Determine the default libpath from the value encoded in an empty executable.
13534 cat >conftest.$ac_ext <<_ACEOF
13535 program main
13536
13537 end
13538_ACEOF
13539rm -f conftest.$ac_objext conftest$ac_exeext
13540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541 (eval $ac_link) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +000013548 { ac_try='test -z "$ac_f77_werror_flag"
13549 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000013550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest$ac_exeext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561
13562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13563}'`
13564# Check for a 64-bit object if we didn't find anything.
13565if 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; }
13566}'`; fi
13567else
13568 echo "$as_me: failed program was:" >&5
13569sed 's/^/| /' conftest.$ac_ext >&5
13570
13571fi
13572rm -f conftest.err conftest.$ac_objext \
13573 conftest$ac_exeext conftest.$ac_ext
13574if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13575
13576 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13577 # Warning - without using the other run time loading flags,
13578 # -berok will link without error, but may produce a broken library.
13579 no_undefined_flag_F77=' ${wl}-bernotok'
13580 allow_undefined_flag_F77=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000013581 # Exported symbols can be pulled into shared objects from archives
mmentovai3261e8b2006-09-06 02:56:44 +000013582 whole_archive_flag_spec_F77='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000013583 archive_cmds_need_lc_F77=yes
mmentovai3261e8b2006-09-06 02:56:44 +000013584 # This is similar to how AIX traditionally builds its shared libraries.
13585 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
brynercb91a2f2006-08-25 21:14:45 +000013586 fi
13587 fi
13588 ;;
13589
13590 amigaos*)
13591 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)'
13592 hardcode_libdir_flag_spec_F77='-L$libdir'
13593 hardcode_minus_L_F77=yes
13594 # see comment about different semantics on the GNU ld section
13595 ld_shlibs_F77=no
13596 ;;
13597
mmentovai3261e8b2006-09-06 02:56:44 +000013598 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013599 export_dynamic_flag_spec_F77=-rdynamic
13600 ;;
13601
13602 cygwin* | mingw* | pw32*)
13603 # When not using gcc, we currently assume that we are using
13604 # Microsoft Visual C++.
13605 # hardcode_libdir_flag_spec is actually meaningless, as there is
13606 # no search path for DLLs.
13607 hardcode_libdir_flag_spec_F77=' '
13608 allow_undefined_flag_F77=unsupported
13609 # Tell ltmain to make .lib files, not .a files.
13610 libext=lib
13611 # Tell ltmain to make .dll files, not .so files.
13612 shrext_cmds=".dll"
13613 # FIXME: Setting linknames here is a bad hack.
13614 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13615 # The linker will automatically build a .lib file if we build a DLL.
13616 old_archive_From_new_cmds_F77='true'
13617 # FIXME: Should let the user specify the lib program.
13618 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai3261e8b2006-09-06 02:56:44 +000013619 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000013620 enable_shared_with_static_runtimes_F77=yes
13621 ;;
13622
13623 darwin* | rhapsody*)
mmentovai3261e8b2006-09-06 02:56:44 +000013624 case $host_os in
13625 rhapsody* | darwin1.[012])
13626 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13627 ;;
13628 *) # Darwin 1.3 on
13629 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13630 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13631 else
13632 case ${MACOSX_DEPLOYMENT_TARGET} in
13633 10.[012])
13634 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13635 ;;
13636 10.*)
13637 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13638 ;;
13639 esac
13640 fi
13641 ;;
bryner07f8ef52006-09-05 19:42:57 +000013642 esac
mmentovai3261e8b2006-09-06 02:56:44 +000013643 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000013644 hardcode_direct_F77=no
13645 hardcode_automatic_F77=yes
13646 hardcode_shlibpath_var_F77=unsupported
mmentovai3261e8b2006-09-06 02:56:44 +000013647 whole_archive_flag_spec_F77=''
brynercb91a2f2006-08-25 21:14:45 +000013648 link_all_deplibs_F77=yes
mmentovai3261e8b2006-09-06 02:56:44 +000013649 if test "$GCC" = yes ; then
13650 output_verbose_link_cmd='echo'
13651 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13652 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13653 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13654 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13655 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +000013656 else
mmentovai3261e8b2006-09-06 02:56:44 +000013657 case $cc_basename in
13658 xlc*)
13659 output_verbose_link_cmd='echo'
13660 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13661 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13662 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13663 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13664 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13665 ;;
13666 *)
13667 ld_shlibs_F77=no
13668 ;;
13669 esac
brynercb91a2f2006-08-25 21:14:45 +000013670 fi
13671 ;;
13672
13673 dgux*)
13674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13675 hardcode_libdir_flag_spec_F77='-L$libdir'
13676 hardcode_shlibpath_var_F77=no
13677 ;;
13678
13679 freebsd1*)
13680 ld_shlibs_F77=no
13681 ;;
13682
13683 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13684 # support. Future versions do this automatically, but an explicit c++rt0.o
13685 # does not break anything, and helps significantly (at the cost of a little
13686 # extra space).
13687 freebsd2.2*)
13688 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13689 hardcode_libdir_flag_spec_F77='-R$libdir'
13690 hardcode_direct_F77=yes
13691 hardcode_shlibpath_var_F77=no
13692 ;;
13693
13694 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13695 freebsd2*)
13696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13697 hardcode_direct_F77=yes
13698 hardcode_minus_L_F77=yes
13699 hardcode_shlibpath_var_F77=no
13700 ;;
13701
13702 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai3261e8b2006-09-06 02:56:44 +000013703 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000013704 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13705 hardcode_libdir_flag_spec_F77='-R$libdir'
13706 hardcode_direct_F77=yes
13707 hardcode_shlibpath_var_F77=no
13708 ;;
13709
13710 hpux9*)
13711 if test "$GCC" = yes; then
13712 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'
13713 else
13714 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'
13715 fi
13716 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13717 hardcode_libdir_separator_F77=:
13718 hardcode_direct_F77=yes
13719
13720 # hardcode_minus_L: Not really in the search PATH,
13721 # but as the default location of the library.
13722 hardcode_minus_L_F77=yes
13723 export_dynamic_flag_spec_F77='${wl}-E'
13724 ;;
13725
mmentovai3261e8b2006-09-06 02:56:44 +000013726 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000013727 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai3261e8b2006-09-06 02:56:44 +000013728 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13729 else
13730 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13731 fi
13732 if test "$with_gnu_ld" = no; then
13733 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13734 hardcode_libdir_separator_F77=:
13735
13736 hardcode_direct_F77=yes
13737 export_dynamic_flag_spec_F77='${wl}-E'
13738
13739 # hardcode_minus_L: Not really in the search PATH,
13740 # but as the default location of the library.
13741 hardcode_minus_L_F77=yes
13742 fi
13743 ;;
13744
13745 hpux11*)
13746 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13747 case $host_cpu in
13748 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000013749 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000013751 ia64*)
13752 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13753 ;;
brynercb91a2f2006-08-25 21:14:45 +000013754 *)
13755 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13756 ;;
13757 esac
13758 else
mmentovai3261e8b2006-09-06 02:56:44 +000013759 case $host_cpu in
13760 hppa*64*)
13761 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 ;;
13763 ia64*)
13764 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000013765 ;;
13766 *)
mmentovai3261e8b2006-09-06 02:56:44 +000013767 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000013768 ;;
13769 esac
13770 fi
13771 if test "$with_gnu_ld" = no; then
mmentovai3261e8b2006-09-06 02:56:44 +000013772 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13773 hardcode_libdir_separator_F77=:
bryner07f8ef52006-09-05 19:42:57 +000013774
mmentovai3261e8b2006-09-06 02:56:44 +000013775 case $host_cpu in
13776 hppa*64*|ia64*)
13777 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13778 hardcode_direct_F77=no
13779 hardcode_shlibpath_var_F77=no
bryner07f8ef52006-09-05 19:42:57 +000013780 ;;
brynercb91a2f2006-08-25 21:14:45 +000013781 *)
brynercb91a2f2006-08-25 21:14:45 +000013782 hardcode_direct_F77=yes
13783 export_dynamic_flag_spec_F77='${wl}-E'
13784
13785 # hardcode_minus_L: Not really in the search PATH,
13786 # but as the default location of the library.
13787 hardcode_minus_L_F77=yes
13788 ;;
13789 esac
13790 fi
13791 ;;
13792
13793 irix5* | irix6* | nonstopux*)
13794 if test "$GCC" = yes; then
13795 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'
13796 else
13797 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'
13798 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13799 fi
13800 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13801 hardcode_libdir_separator_F77=:
13802 link_all_deplibs_F77=yes
13803 ;;
13804
mmentovai3261e8b2006-09-06 02:56:44 +000013805 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000013806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13807 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13808 else
13809 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13810 fi
13811 hardcode_libdir_flag_spec_F77='-R$libdir'
13812 hardcode_direct_F77=yes
13813 hardcode_shlibpath_var_F77=no
13814 ;;
13815
13816 newsos6)
13817 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13818 hardcode_direct_F77=yes
13819 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13820 hardcode_libdir_separator_F77=:
13821 hardcode_shlibpath_var_F77=no
13822 ;;
13823
13824 openbsd*)
13825 hardcode_direct_F77=yes
13826 hardcode_shlibpath_var_F77=no
13827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13828 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000013829 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000013830 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13831 export_dynamic_flag_spec_F77='${wl}-E'
13832 else
13833 case $host_os in
13834 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13835 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13836 hardcode_libdir_flag_spec_F77='-R$libdir'
13837 ;;
13838 *)
13839 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13840 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13841 ;;
13842 esac
13843 fi
13844 ;;
13845
13846 os2*)
13847 hardcode_libdir_flag_spec_F77='-L$libdir'
13848 hardcode_minus_L_F77=yes
13849 allow_undefined_flag_F77=unsupported
13850 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'
13851 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13852 ;;
13853
13854 osf3*)
13855 if test "$GCC" = yes; then
13856 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13857 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'
13858 else
13859 allow_undefined_flag_F77=' -expect_unresolved \*'
13860 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'
13861 fi
13862 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13863 hardcode_libdir_separator_F77=:
13864 ;;
13865
13866 osf4* | osf5*) # as osf3* with the addition of -msym flag
13867 if test "$GCC" = yes; then
13868 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13869 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'
13870 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13871 else
13872 allow_undefined_flag_F77=' -expect_unresolved \*'
13873 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'
13874 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~
mmentovai3261e8b2006-09-06 02:56:44 +000013875 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +000013876
13877 # Both c and cxx compiler support -rpath directly
13878 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13879 fi
13880 hardcode_libdir_separator_F77=:
13881 ;;
13882
brynercb91a2f2006-08-25 21:14:45 +000013883 solaris*)
13884 no_undefined_flag_F77=' -z text'
13885 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +000013886 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000013887 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13888 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13889 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13890 else
mmentovai3261e8b2006-09-06 02:56:44 +000013891 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000013892 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13893 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13895 fi
13896 hardcode_libdir_flag_spec_F77='-R$libdir'
13897 hardcode_shlibpath_var_F77=no
13898 case $host_os in
13899 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai3261e8b2006-09-06 02:56:44 +000013900 *)
13901 # The compiler driver will combine linker options so we
13902 # cannot just pass the convience library names through
13903 # without $wl, iff we do not link with $LD.
13904 # Luckily, gcc supports the same syntax we need for Sun Studio.
13905 # Supported since Solaris 2.6 (maybe 2.5.1?)
13906 case $wlarc in
13907 '')
13908 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13909 *)
13910 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13911 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000013912 esac
13913 link_all_deplibs_F77=yes
13914 ;;
13915
13916 sunos4*)
13917 if test "x$host_vendor" = xsequent; then
13918 # Use $CC to link under sequent, because it throws in some extra .o
13919 # files that make .init and .fini sections work.
13920 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13921 else
13922 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13923 fi
13924 hardcode_libdir_flag_spec_F77='-L$libdir'
13925 hardcode_direct_F77=yes
13926 hardcode_minus_L_F77=yes
13927 hardcode_shlibpath_var_F77=no
13928 ;;
13929
13930 sysv4)
13931 case $host_vendor in
13932 sni)
13933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934 hardcode_direct_F77=yes # is this really true???
13935 ;;
13936 siemens)
13937 ## LD is ld it makes a PLAMLIB
13938 ## CC just makes a GrossModule.
13939 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13940 reload_cmds_F77='$CC -r -o $output$reload_objs'
13941 hardcode_direct_F77=no
13942 ;;
13943 motorola)
13944 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13945 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13946 ;;
13947 esac
13948 runpath_var='LD_RUN_PATH'
13949 hardcode_shlibpath_var_F77=no
13950 ;;
13951
13952 sysv4.3*)
13953 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13954 hardcode_shlibpath_var_F77=no
13955 export_dynamic_flag_spec_F77='-Bexport'
13956 ;;
13957
13958 sysv4*MP*)
13959 if test -d /usr/nec; then
13960 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13961 hardcode_shlibpath_var_F77=no
13962 runpath_var=LD_RUN_PATH
13963 hardcode_runpath_var=yes
13964 ld_shlibs_F77=yes
13965 fi
13966 ;;
13967
mmentovai3261e8b2006-09-06 02:56:44 +000013968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13969 no_undefined_flag_F77='${wl}-z,text'
13970 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000013971 hardcode_shlibpath_var_F77=no
mmentovai3261e8b2006-09-06 02:56:44 +000013972 runpath_var='LD_RUN_PATH'
brynercb91a2f2006-08-25 21:14:45 +000013973
mmentovai425d2562006-08-30 20:05:05 +000013974 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +000013975 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13976 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai425d2562006-08-30 20:05:05 +000013977 else
mmentovai3261e8b2006-09-06 02:56:44 +000013978 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai425d2562006-08-30 20:05:05 +000013980 fi
bryner07f8ef52006-09-05 19:42:57 +000013981 ;;
13982
mmentovai3261e8b2006-09-06 02:56:44 +000013983 sysv5* | sco3.2v5* | sco5v6*)
13984 # Note: We can NOT use -z defs as we might desire, because we do not
13985 # link with -lc, and that would cause any symbols used from libc to
13986 # always be unresolved, which means just about no library would
13987 # ever link correctly. If we're not using GNU ld we use -z text
13988 # though, which does catch some bad symbols but isn't as heavy-handed
13989 # as -z defs.
13990 no_undefined_flag_F77='${wl}-z,text'
13991 allow_undefined_flag_F77='${wl}-z,nodefs'
13992 archive_cmds_need_lc_F77=no
bryner07f8ef52006-09-05 19:42:57 +000013993 hardcode_shlibpath_var_F77=no
mmentovai3261e8b2006-09-06 02:56:44 +000013994 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13995 hardcode_libdir_separator_F77=':'
13996 link_all_deplibs_F77=yes
13997 export_dynamic_flag_spec_F77='${wl}-Bexport'
bryner07f8ef52006-09-05 19:42:57 +000013998 runpath_var='LD_RUN_PATH'
mmentovai3261e8b2006-09-06 02:56:44 +000013999
14000 if test "$GCC" = yes; then
14001 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14002 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14003 else
14004 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14005 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14006 fi
brynercb91a2f2006-08-25 21:14:45 +000014007 ;;
14008
14009 uts4*)
14010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011 hardcode_libdir_flag_spec_F77='-L$libdir'
14012 hardcode_shlibpath_var_F77=no
14013 ;;
14014
14015 *)
14016 ld_shlibs_F77=no
14017 ;;
14018 esac
14019 fi
14020
14021echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14022echo "${ECHO_T}$ld_shlibs_F77" >&6
14023test "$ld_shlibs_F77" = no && can_build_shared=no
14024
brynercb91a2f2006-08-25 21:14:45 +000014025#
14026# Do we need to explicitly link libc?
14027#
14028case "x$archive_cmds_need_lc_F77" in
14029x|xyes)
14030 # Assume -lc should be added
14031 archive_cmds_need_lc_F77=yes
14032
14033 if test "$enable_shared" = yes && test "$GCC" = yes; then
14034 case $archive_cmds_F77 in
14035 *'~'*)
14036 # FIXME: we may have to deal with multi-command sequences.
14037 ;;
14038 '$CC '*)
14039 # Test whether the compiler implicitly links with -lc since on some
14040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14041 # to ld, don't add -lc before -lgcc.
14042 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14043echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14044 $rm conftest*
14045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14046
14047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14048 (eval $ac_compile) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } 2>conftest.err; then
14052 soname=conftest
14053 lib=conftest
14054 libobjs=conftest.$ac_objext
14055 deplibs=
14056 wl=$lt_prog_compiler_wl_F77
mmentovai3261e8b2006-09-06 02:56:44 +000014057 pic_flag=$lt_prog_compiler_pic_F77
brynercb91a2f2006-08-25 21:14:45 +000014058 compiler_flags=-v
14059 linker_flags=-v
14060 verstring=
14061 output_objdir=.
14062 libname=conftest
14063 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14064 allow_undefined_flag_F77=
14065 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14066 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }
14070 then
14071 archive_cmds_need_lc_F77=no
14072 else
14073 archive_cmds_need_lc_F77=yes
14074 fi
14075 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14076 else
14077 cat conftest.err 1>&5
14078 fi
14079 $rm conftest*
14080 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14081echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14082 ;;
14083 esac
14084 fi
14085 ;;
14086esac
14087
14088echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14089echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14090library_names_spec=
14091libname_spec='lib$name'
14092soname_spec=
14093shrext_cmds=".so"
14094postinstall_cmds=
14095postuninstall_cmds=
14096finish_cmds=
14097finish_eval=
14098shlibpath_var=
14099shlibpath_overrides_runpath=unknown
14100version_type=none
14101dynamic_linker="$host_os ld.so"
14102sys_lib_dlsearch_path_spec="/lib /usr/lib"
14103if test "$GCC" = yes; then
14104 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14105 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14106 # if the path contains ";" then we assume it to be the separator
14107 # otherwise default to the standard path separator (i.e. ":") - it is
14108 # assumed that no part of a normal pathname contains ";" but that should
14109 # okay in the real world where ";" in dirpaths is itself problematic.
14110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14111 else
14112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14113 fi
14114else
14115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14116fi
14117need_lib_prefix=unknown
14118hardcode_into_libs=no
14119
14120# when you set need_version to no, make sure it does not cause -set_version
14121# flags to be left without arguments
14122need_version=unknown
14123
14124case $host_os in
14125aix3*)
14126 version_type=linux
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14128 shlibpath_var=LIBPATH
14129
14130 # AIX 3 has no versioning support, so we append a major version to the name.
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 ;;
14133
14134aix4* | aix5*)
14135 version_type=linux
14136 need_lib_prefix=no
14137 need_version=no
14138 hardcode_into_libs=yes
14139 if test "$host_cpu" = ia64; then
14140 # AIX 5 supports IA64
14141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 else
14144 # With GCC up to 2.95.x, collect2 would create an import file
14145 # for dependence libraries. The import file would start with
14146 # the line `#! .'. This would cause the generated library to
14147 # depend on `.', always an invalid library. This was fixed in
14148 # development snapshots of GCC prior to 3.0.
14149 case $host_os in
14150 aix4 | aix4.[01] | aix4.[01].*)
14151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14152 echo ' yes '
14153 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14154 :
14155 else
14156 can_build_shared=no
14157 fi
14158 ;;
14159 esac
14160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14161 # soname into executable. Probably we can add versioning support to
14162 # collect2, so additional links can be useful in future.
14163 if test "$aix_use_runtimelinking" = yes; then
14164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14165 # instead of lib<name>.a to let people know that these are not
14166 # typical AIX shared libraries.
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 else
14169 # We preserve .a as extension for shared libraries through AIX4.2
14170 # and later when we are not doing run time linking.
14171 library_names_spec='${libname}${release}.a $libname.a'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 fi
14174 shlibpath_var=LIBPATH
14175 fi
14176 ;;
14177
14178amigaos*)
14179 library_names_spec='$libname.ixlibrary $libname.a'
14180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14181 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'
14182 ;;
14183
14184beos*)
14185 library_names_spec='${libname}${shared_ext}'
14186 dynamic_linker="$host_os ld.so"
14187 shlibpath_var=LIBRARY_PATH
14188 ;;
14189
mmentovai3261e8b2006-09-06 02:56:44 +000014190bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000014191 version_type=linux
14192 need_version=no
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14194 soname_spec='${libname}${release}${shared_ext}$major'
14195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14199 # the default ld.so.conf also contains /usr/contrib/lib and
14200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14201 # libtool to hard-code these into programs
14202 ;;
14203
14204cygwin* | mingw* | pw32*)
14205 version_type=windows
14206 shrext_cmds=".dll"
14207 need_version=no
14208 need_lib_prefix=no
14209
14210 case $GCC,$host_os in
14211 yes,cygwin* | yes,mingw* | yes,pw32*)
14212 library_names_spec='$libname.dll.a'
14213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14214 postinstall_cmds='base_file=`basename \${file}`~
14215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14216 dldir=$destdir/`dirname \$dlpath`~
14217 test -d \$dldir || mkdir -p \$dldir~
mmentovai3261e8b2006-09-06 02:56:44 +000014218 $install_prog $dir/$dlname \$dldir/$dlname~
14219 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000014220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14221 dlpath=$dir/\$dldll~
14222 $rm \$dlpath'
14223 shlibpath_overrides_runpath=yes
14224
14225 case $host_os in
14226 cygwin*)
14227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14229 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14230 ;;
14231 mingw*)
14232 # MinGW DLLs use traditional 'lib' prefix
14233 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14234 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14235 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14236 # It is most probably a Windows format PATH printed by
14237 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14238 # path with ; separators, and with drive letters. We can handle the
14239 # drive letters (cygwin fileutils understands them), so leave them,
14240 # especially as we might pass files found there to a mingw objdump,
14241 # which wouldn't understand a cygwinified path. Ahh.
14242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14243 else
14244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14245 fi
14246 ;;
14247 pw32*)
14248 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai3261e8b2006-09-06 02:56:44 +000014249 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000014250 ;;
14251 esac
14252 ;;
14253
14254 *)
14255 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14256 ;;
14257 esac
14258 dynamic_linker='Win32 ld.exe'
14259 # FIXME: first we should search . and the directory the executable is in
14260 shlibpath_var=PATH
14261 ;;
14262
14263darwin* | rhapsody*)
14264 dynamic_linker="$host_os dyld"
14265 version_type=darwin
14266 need_lib_prefix=no
14267 need_version=no
14268 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14269 soname_spec='${libname}${release}${major}$shared_ext'
14270 shlibpath_overrides_runpath=yes
14271 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai3261e8b2006-09-06 02:56:44 +000014272 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000014273 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14274 if test "$GCC" = yes; then
14275 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"`
14276 else
14277 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14278 fi
14279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14280 ;;
14281
14282dgux*)
14283 version_type=linux
14284 need_lib_prefix=no
14285 need_version=no
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14287 soname_spec='${libname}${release}${shared_ext}$major'
14288 shlibpath_var=LD_LIBRARY_PATH
14289 ;;
14290
14291freebsd1*)
14292 dynamic_linker=no
14293 ;;
14294
14295kfreebsd*-gnu)
14296 version_type=linux
14297 need_lib_prefix=no
14298 need_version=no
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 shlibpath_overrides_runpath=no
14303 hardcode_into_libs=yes
14304 dynamic_linker='GNU ld.so'
14305 ;;
14306
mmentovai3261e8b2006-09-06 02:56:44 +000014307freebsd* | dragonfly*)
14308 # DragonFly does not have aout. When/if they implement a new
14309 # versioning mechanism, adjust this.
14310 if test -x /usr/bin/objformat; then
14311 objformat=`/usr/bin/objformat`
14312 else
14313 case $host_os in
14314 freebsd[123]*) objformat=aout ;;
14315 *) objformat=elf ;;
14316 esac
14317 fi
brynercb91a2f2006-08-25 21:14:45 +000014318 version_type=freebsd-$objformat
14319 case $version_type in
14320 freebsd-elf*)
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14322 need_version=no
14323 need_lib_prefix=no
14324 ;;
14325 freebsd-*)
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14327 need_version=yes
14328 ;;
14329 esac
14330 shlibpath_var=LD_LIBRARY_PATH
14331 case $host_os in
14332 freebsd2*)
14333 shlibpath_overrides_runpath=yes
14334 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000014335 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000014336 shlibpath_overrides_runpath=yes
14337 hardcode_into_libs=yes
14338 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000014339 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14340 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000014341 shlibpath_overrides_runpath=no
14342 hardcode_into_libs=yes
14343 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000014344 freebsd*) # from 4.6 on
14345 shlibpath_overrides_runpath=yes
14346 hardcode_into_libs=yes
14347 ;;
brynercb91a2f2006-08-25 21:14:45 +000014348 esac
14349 ;;
14350
14351gnu*)
14352 version_type=linux
14353 need_lib_prefix=no
14354 need_version=no
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 shlibpath_var=LD_LIBRARY_PATH
14358 hardcode_into_libs=yes
14359 ;;
14360
14361hpux9* | hpux10* | hpux11*)
14362 # Give a soname corresponding to the major version so that dld.sl refuses to
14363 # link against other versions.
14364 version_type=sunos
14365 need_lib_prefix=no
14366 need_version=no
mmentovai3261e8b2006-09-06 02:56:44 +000014367 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014368 ia64*)
14369 shrext_cmds='.so'
14370 hardcode_into_libs=yes
14371 dynamic_linker="$host_os dld.so"
14372 shlibpath_var=LD_LIBRARY_PATH
14373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14376 if test "X$HPUX_IA64_MODE" = X32; then
14377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14378 else
14379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14380 fi
14381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14382 ;;
14383 hppa*64*)
14384 shrext_cmds='.sl'
14385 hardcode_into_libs=yes
14386 dynamic_linker="$host_os dld.sl"
14387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14393 ;;
14394 *)
14395 shrext_cmds='.sl'
14396 dynamic_linker="$host_os dld.sl"
14397 shlibpath_var=SHLIB_PATH
14398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400 soname_spec='${libname}${release}${shared_ext}$major'
14401 ;;
14402 esac
14403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14404 postinstall_cmds='chmod 555 $lib'
14405 ;;
14406
mmentovai3261e8b2006-09-06 02:56:44 +000014407interix3*)
14408 version_type=linux
14409 need_lib_prefix=no
14410 need_version=no
14411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14412 soname_spec='${libname}${release}${shared_ext}$major'
14413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath=no
14416 hardcode_into_libs=yes
14417 ;;
14418
brynercb91a2f2006-08-25 21:14:45 +000014419irix5* | irix6* | nonstopux*)
14420 case $host_os in
14421 nonstopux*) version_type=nonstopux ;;
14422 *)
14423 if test "$lt_cv_prog_gnu_ld" = yes; then
14424 version_type=linux
14425 else
14426 version_type=irix
14427 fi ;;
14428 esac
14429 need_lib_prefix=no
14430 need_version=no
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14433 case $host_os in
14434 irix5* | nonstopux*)
14435 libsuff= shlibsuff=
14436 ;;
14437 *)
14438 case $LD in # libtool.m4 will add one of these switches to LD
14439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14440 libsuff= shlibsuff= libmagic=32-bit;;
14441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14442 libsuff=32 shlibsuff=N32 libmagic=N32;;
14443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14445 *) libsuff= shlibsuff= libmagic=never-match;;
14446 esac
14447 ;;
14448 esac
14449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14450 shlibpath_overrides_runpath=no
14451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14453 hardcode_into_libs=yes
14454 ;;
14455
14456# No shared lib support for Linux oldld, aout, or coff.
14457linux*oldld* | linux*aout* | linux*coff*)
14458 dynamic_linker=no
14459 ;;
14460
14461# This must be Linux ELF.
14462linux*)
14463 version_type=linux
14464 need_lib_prefix=no
14465 need_version=no
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=no
14471 # This implies no fast_install, which is unacceptable.
14472 # Some rework will be needed to allow for fast_install
14473 # before this can be enabled.
14474 hardcode_into_libs=yes
14475
14476 # Append ld.so.conf contents to the search path
14477 if test -f /etc/ld.so.conf; then
mmentovai3261e8b2006-09-06 02:56:44 +000014478 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000014479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14480 fi
14481
14482 # We used to test for /lib/ld.so.1 and disable shared libraries on
14483 # powerpc, because MkLinux only supported shared libraries with the
14484 # GNU dynamic linker. Since this was broken with cross compilers,
14485 # most powerpc-linux boxes support dynamic linking these days and
14486 # people can always --disable-shared, the test was removed, and we
14487 # assume the GNU/Linux dynamic linker is in use.
14488 dynamic_linker='GNU/Linux ld.so'
14489 ;;
14490
brynercb91a2f2006-08-25 21:14:45 +000014491knetbsd*-gnu)
14492 version_type=linux
14493 need_lib_prefix=no
14494 need_version=no
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 shlibpath_overrides_runpath=no
14499 hardcode_into_libs=yes
14500 dynamic_linker='GNU ld.so'
14501 ;;
14502
14503netbsd*)
14504 version_type=sunos
14505 need_lib_prefix=no
14506 need_version=no
14507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14510 dynamic_linker='NetBSD (a.out) ld.so'
14511 else
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14513 soname_spec='${libname}${release}${shared_ext}$major'
14514 dynamic_linker='NetBSD ld.elf_so'
14515 fi
14516 shlibpath_var=LD_LIBRARY_PATH
14517 shlibpath_overrides_runpath=yes
14518 hardcode_into_libs=yes
14519 ;;
14520
14521newsos6)
14522 version_type=linux
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 shlibpath_overrides_runpath=yes
14526 ;;
14527
14528nto-qnx*)
14529 version_type=linux
14530 need_lib_prefix=no
14531 need_version=no
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 shlibpath_overrides_runpath=yes
14536 ;;
14537
14538openbsd*)
14539 version_type=sunos
mmentovai3261e8b2006-09-06 02:56:44 +000014540 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000014541 need_lib_prefix=no
mmentovai3261e8b2006-09-06 02:56:44 +000014542 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14543 case $host_os in
14544 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14545 *) need_version=no ;;
14546 esac
brynercb91a2f2006-08-25 21:14:45 +000014547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14551 case $host_os in
14552 openbsd2.[89] | openbsd2.[89].*)
14553 shlibpath_overrides_runpath=no
14554 ;;
14555 *)
14556 shlibpath_overrides_runpath=yes
14557 ;;
14558 esac
14559 else
14560 shlibpath_overrides_runpath=yes
14561 fi
14562 ;;
14563
14564os2*)
14565 libname_spec='$name'
14566 shrext_cmds=".dll"
14567 need_lib_prefix=no
14568 library_names_spec='$libname${shared_ext} $libname.a'
14569 dynamic_linker='OS/2 ld.exe'
14570 shlibpath_var=LIBPATH
14571 ;;
14572
14573osf3* | osf4* | osf5*)
14574 version_type=osf
14575 need_lib_prefix=no
14576 need_version=no
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 shlibpath_var=LD_LIBRARY_PATH
14580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14582 ;;
14583
brynercb91a2f2006-08-25 21:14:45 +000014584solaris*)
14585 version_type=linux
14586 need_lib_prefix=no
14587 need_version=no
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 shlibpath_overrides_runpath=yes
14592 hardcode_into_libs=yes
14593 # ldd complains unless libraries are executable
14594 postinstall_cmds='chmod +x $lib'
14595 ;;
14596
14597sunos4*)
14598 version_type=sunos
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14600 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14601 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes
14603 if test "$with_gnu_ld" = yes; then
14604 need_lib_prefix=no
14605 fi
14606 need_version=yes
14607 ;;
14608
mmentovai3261e8b2006-09-06 02:56:44 +000014609sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014610 version_type=linux
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 case $host_vendor in
14615 sni)
14616 shlibpath_overrides_runpath=no
14617 need_lib_prefix=no
14618 export_dynamic_flag_spec='${wl}-Blargedynsym'
14619 runpath_var=LD_RUN_PATH
14620 ;;
14621 siemens)
14622 need_lib_prefix=no
14623 ;;
14624 motorola)
14625 need_lib_prefix=no
14626 need_version=no
14627 shlibpath_overrides_runpath=no
14628 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14629 ;;
14630 esac
14631 ;;
14632
14633sysv4*MP*)
14634 if test -d /usr/nec ;then
14635 version_type=linux
14636 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14637 soname_spec='$libname${shared_ext}.$major'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 fi
14640 ;;
14641
mmentovai3261e8b2006-09-06 02:56:44 +000014642sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14643 version_type=freebsd-elf
14644 need_lib_prefix=no
14645 need_version=no
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 hardcode_into_libs=yes
14650 if test "$with_gnu_ld" = yes; then
14651 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14652 shlibpath_overrides_runpath=no
14653 else
14654 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14655 shlibpath_overrides_runpath=yes
14656 case $host_os in
14657 sco3.2v5*)
14658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14659 ;;
14660 esac
14661 fi
14662 sys_lib_dlsearch_path_spec='/usr/lib'
14663 ;;
14664
brynercb91a2f2006-08-25 21:14:45 +000014665uts4*)
14666 version_type=linux
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 ;;
14671
14672*)
14673 dynamic_linker=no
14674 ;;
14675esac
14676echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14677echo "${ECHO_T}$dynamic_linker" >&6
14678test "$dynamic_linker" = no && can_build_shared=no
14679
mmentovai3261e8b2006-09-06 02:56:44 +000014680variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14681if test "$GCC" = yes; then
14682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14683fi
14684
brynercb91a2f2006-08-25 21:14:45 +000014685echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14686echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14687hardcode_action_F77=
14688if test -n "$hardcode_libdir_flag_spec_F77" || \
mmentovai3261e8b2006-09-06 02:56:44 +000014689 test -n "$runpath_var_F77" || \
14690 test "X$hardcode_automatic_F77" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014691
14692 # We can hardcode non-existant directories.
14693 if test "$hardcode_direct_F77" != no &&
14694 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14695 # have to relink, otherwise we might link with an installed library
14696 # when we should be linking with a yet-to-be-installed one
14697 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14698 test "$hardcode_minus_L_F77" != no; then
14699 # Linking always hardcodes the temporary library directory.
14700 hardcode_action_F77=relink
14701 else
14702 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14703 hardcode_action_F77=immediate
14704 fi
14705else
14706 # We cannot hardcode anything, or else we can only hardcode existing
14707 # directories.
14708 hardcode_action_F77=unsupported
14709fi
14710echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14711echo "${ECHO_T}$hardcode_action_F77" >&6
14712
14713if test "$hardcode_action_F77" = relink; then
14714 # Fast installation is not supported
14715 enable_fast_install=no
14716elif test "$shlibpath_overrides_runpath" = yes ||
14717 test "$enable_shared" = no; then
14718 # Fast installation is not necessary
14719 enable_fast_install=needless
14720fi
14721
brynercb91a2f2006-08-25 21:14:45 +000014722
14723# The else clause should only fire when bootstrapping the
14724# libtool distribution, otherwise you forgot to ship ltmain.sh
14725# with your package, and you will get complaints that there are
14726# no rules to generate ltmain.sh.
14727if test -f "$ltmain"; then
14728 # See if we are running on zsh, and set the options which allow our commands through
14729 # without removal of \ escapes.
14730 if test -n "${ZSH_VERSION+set}" ; then
14731 setopt NO_GLOB_SUBST
14732 fi
14733 # Now quote all the things that may contain metacharacters while being
14734 # careful not to overquote the AC_SUBSTed values. We take copies of the
14735 # variables and quote the copies for generation of the libtool script.
mmentovai3261e8b2006-09-06 02:56:44 +000014736 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000014737 SED SHELL STRIP \
14738 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14739 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14740 deplibs_check_method reload_flag reload_cmds need_locks \
14741 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14742 lt_cv_sys_global_symbol_to_c_name_address \
14743 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14744 old_postinstall_cmds old_postuninstall_cmds \
14745 compiler_F77 \
14746 CC_F77 \
14747 LD_F77 \
14748 lt_prog_compiler_wl_F77 \
14749 lt_prog_compiler_pic_F77 \
14750 lt_prog_compiler_static_F77 \
14751 lt_prog_compiler_no_builtin_flag_F77 \
14752 export_dynamic_flag_spec_F77 \
14753 thread_safe_flag_spec_F77 \
14754 whole_archive_flag_spec_F77 \
14755 enable_shared_with_static_runtimes_F77 \
14756 old_archive_cmds_F77 \
14757 old_archive_from_new_cmds_F77 \
14758 predep_objects_F77 \
14759 postdep_objects_F77 \
14760 predeps_F77 \
14761 postdeps_F77 \
14762 compiler_lib_search_path_F77 \
14763 archive_cmds_F77 \
14764 archive_expsym_cmds_F77 \
14765 postinstall_cmds_F77 \
14766 postuninstall_cmds_F77 \
14767 old_archive_from_expsyms_cmds_F77 \
14768 allow_undefined_flag_F77 \
14769 no_undefined_flag_F77 \
14770 export_symbols_cmds_F77 \
14771 hardcode_libdir_flag_spec_F77 \
14772 hardcode_libdir_flag_spec_ld_F77 \
14773 hardcode_libdir_separator_F77 \
14774 hardcode_automatic_F77 \
14775 module_cmds_F77 \
14776 module_expsym_cmds_F77 \
14777 lt_cv_prog_compiler_c_o_F77 \
14778 exclude_expsyms_F77 \
14779 include_expsyms_F77; do
14780
14781 case $var in
14782 old_archive_cmds_F77 | \
14783 old_archive_from_new_cmds_F77 | \
14784 archive_cmds_F77 | \
14785 archive_expsym_cmds_F77 | \
14786 module_cmds_F77 | \
14787 module_expsym_cmds_F77 | \
14788 old_archive_from_expsyms_cmds_F77 | \
14789 export_symbols_cmds_F77 | \
14790 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14791 postinstall_cmds | postuninstall_cmds | \
14792 old_postinstall_cmds | old_postuninstall_cmds | \
14793 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14794 # Double-quote double-evaled strings.
14795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14796 ;;
14797 *)
14798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14799 ;;
14800 esac
14801 done
14802
14803 case $lt_echo in
14804 *'\$0 --fallback-echo"')
14805 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14806 ;;
14807 esac
14808
14809cfgfile="$ofile"
14810
14811 cat <<__EOF__ >> "$cfgfile"
14812# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14813
14814# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14815
14816# Shell to use when invoking shell scripts.
14817SHELL=$lt_SHELL
14818
14819# Whether or not to build shared libraries.
14820build_libtool_libs=$enable_shared
14821
14822# Whether or not to build static libraries.
14823build_old_libs=$enable_static
14824
14825# Whether or not to add -lc for building shared libraries.
14826build_libtool_need_lc=$archive_cmds_need_lc_F77
14827
14828# Whether or not to disallow shared libs when runtime libs are static
14829allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14830
14831# Whether or not to optimize for fast installation.
14832fast_install=$enable_fast_install
14833
14834# The host system.
14835host_alias=$host_alias
14836host=$host
mmentovai3261e8b2006-09-06 02:56:44 +000014837host_os=$host_os
14838
14839# The build system.
14840build_alias=$build_alias
14841build=$build
14842build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000014843
14844# An echo program that does not interpret backslashes.
14845echo=$lt_echo
14846
14847# The archiver.
14848AR=$lt_AR
14849AR_FLAGS=$lt_AR_FLAGS
14850
14851# A C compiler.
14852LTCC=$lt_LTCC
14853
mmentovai3261e8b2006-09-06 02:56:44 +000014854# LTCC compiler flags.
14855LTCFLAGS=$lt_LTCFLAGS
14856
brynercb91a2f2006-08-25 21:14:45 +000014857# A language-specific compiler.
14858CC=$lt_compiler_F77
14859
14860# Is the compiler the GNU C compiler?
14861with_gcc=$GCC_F77
14862
14863# An ERE matcher.
14864EGREP=$lt_EGREP
14865
14866# The linker used to build libraries.
14867LD=$lt_LD_F77
14868
14869# Whether we need hard or soft links.
14870LN_S=$lt_LN_S
14871
14872# A BSD-compatible nm program.
14873NM=$lt_NM
14874
14875# A symbol stripping program
14876STRIP=$lt_STRIP
14877
14878# Used to examine libraries when file_magic_cmd begins "file"
14879MAGIC_CMD=$MAGIC_CMD
14880
14881# Used on cygwin: DLL creation program.
14882DLLTOOL="$DLLTOOL"
14883
14884# Used on cygwin: object dumper.
14885OBJDUMP="$OBJDUMP"
14886
14887# Used on cygwin: assembler.
14888AS="$AS"
14889
14890# The name of the directory that contains temporary libtool files.
14891objdir=$objdir
14892
14893# How to create reloadable object files.
14894reload_flag=$lt_reload_flag
14895reload_cmds=$lt_reload_cmds
14896
14897# How to pass a linker flag through the compiler.
14898wl=$lt_lt_prog_compiler_wl_F77
14899
14900# Object file suffix (normally "o").
14901objext="$ac_objext"
14902
14903# Old archive suffix (normally "a").
14904libext="$libext"
14905
14906# Shared library suffix (normally ".so").
14907shrext_cmds='$shrext_cmds'
14908
14909# Executable file suffix (normally "").
14910exeext="$exeext"
14911
14912# Additional compiler flags for building library objects.
14913pic_flag=$lt_lt_prog_compiler_pic_F77
14914pic_mode=$pic_mode
14915
14916# What is the maximum length of a command?
14917max_cmd_len=$lt_cv_sys_max_cmd_len
14918
14919# Does compiler simultaneously support -c and -o options?
14920compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14921
mmentovai3261e8b2006-09-06 02:56:44 +000014922# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000014923need_locks=$lt_need_locks
14924
14925# Do we need the lib prefix for modules?
14926need_lib_prefix=$need_lib_prefix
14927
14928# Do we need a version for libraries?
14929need_version=$need_version
14930
14931# Whether dlopen is supported.
14932dlopen_support=$enable_dlopen
14933
14934# Whether dlopen of programs is supported.
14935dlopen_self=$enable_dlopen_self
14936
14937# Whether dlopen of statically linked programs is supported.
14938dlopen_self_static=$enable_dlopen_self_static
14939
14940# Compiler flag to prevent dynamic linking.
14941link_static_flag=$lt_lt_prog_compiler_static_F77
14942
14943# Compiler flag to turn off builtin functions.
14944no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14945
14946# Compiler flag to allow reflexive dlopens.
14947export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14948
14949# Compiler flag to generate shared objects directly from archives.
14950whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14951
14952# Compiler flag to generate thread-safe objects.
14953thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14954
14955# Library versioning type.
14956version_type=$version_type
14957
14958# Format of library name prefix.
14959libname_spec=$lt_libname_spec
14960
14961# List of archive names. First name is the real one, the rest are links.
14962# The last name is the one that the linker finds with -lNAME.
14963library_names_spec=$lt_library_names_spec
14964
14965# The coded name of the library, if different from the real name.
14966soname_spec=$lt_soname_spec
14967
14968# Commands used to build and install an old-style archive.
14969RANLIB=$lt_RANLIB
14970old_archive_cmds=$lt_old_archive_cmds_F77
14971old_postinstall_cmds=$lt_old_postinstall_cmds
14972old_postuninstall_cmds=$lt_old_postuninstall_cmds
14973
14974# Create an old-style archive from a shared archive.
14975old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14976
14977# Create a temporary old-style archive to link instead of a shared archive.
14978old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14979
14980# Commands used to build and install a shared archive.
14981archive_cmds=$lt_archive_cmds_F77
14982archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14983postinstall_cmds=$lt_postinstall_cmds
14984postuninstall_cmds=$lt_postuninstall_cmds
14985
14986# Commands used to build a loadable module (assumed same as above if empty)
14987module_cmds=$lt_module_cmds_F77
14988module_expsym_cmds=$lt_module_expsym_cmds_F77
14989
14990# Commands to strip libraries.
14991old_striplib=$lt_old_striplib
14992striplib=$lt_striplib
14993
14994# Dependencies to place before the objects being linked to create a
14995# shared library.
14996predep_objects=$lt_predep_objects_F77
14997
14998# Dependencies to place after the objects being linked to create a
14999# shared library.
15000postdep_objects=$lt_postdep_objects_F77
15001
15002# Dependencies to place before the objects being linked to create a
15003# shared library.
15004predeps=$lt_predeps_F77
15005
15006# Dependencies to place after the objects being linked to create a
15007# shared library.
15008postdeps=$lt_postdeps_F77
15009
15010# The library search path used internally by the compiler when linking
15011# a shared library.
15012compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15013
15014# Method to check whether dependent libraries are shared objects.
15015deplibs_check_method=$lt_deplibs_check_method
15016
15017# Command to use when deplibs_check_method == file_magic.
15018file_magic_cmd=$lt_file_magic_cmd
15019
15020# Flag that allows shared libraries with undefined symbols to be built.
15021allow_undefined_flag=$lt_allow_undefined_flag_F77
15022
15023# Flag that forces no undefined symbols.
15024no_undefined_flag=$lt_no_undefined_flag_F77
15025
15026# Commands used to finish a libtool library installation in a directory.
15027finish_cmds=$lt_finish_cmds
15028
15029# Same as above, but a single script fragment to be evaled but not shown.
15030finish_eval=$lt_finish_eval
15031
15032# Take the output of nm and produce a listing of raw symbols and C names.
15033global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15034
15035# Transform the output of nm in a proper C declaration
15036global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15037
15038# Transform the output of nm in a C name address pair
15039global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15040
15041# This is the shared library runtime path variable.
15042runpath_var=$runpath_var
15043
15044# This is the shared library path variable.
15045shlibpath_var=$shlibpath_var
15046
15047# Is shlibpath searched before the hard-coded library search path?
15048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15049
15050# How to hardcode a shared library path into an executable.
15051hardcode_action=$hardcode_action_F77
15052
15053# Whether we should hardcode library paths into libraries.
15054hardcode_into_libs=$hardcode_into_libs
15055
15056# Flag to hardcode \$libdir into a binary during linking.
15057# This must work even if \$libdir does not exist.
15058hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15059
15060# If ld is used when linking, flag to hardcode \$libdir into
15061# a binary during linking. This must work even if \$libdir does
15062# not exist.
15063hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15064
15065# Whether we need a single -rpath flag with a separated argument.
15066hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15067
15068# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15069# resulting binary.
15070hardcode_direct=$hardcode_direct_F77
15071
15072# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15073# resulting binary.
15074hardcode_minus_L=$hardcode_minus_L_F77
15075
15076# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15077# the resulting binary.
15078hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15079
15080# Set to yes if building a shared library automatically hardcodes DIR into the library
15081# and all subsequent libraries and executables linked against it.
15082hardcode_automatic=$hardcode_automatic_F77
15083
15084# Variables whose values should be saved in libtool wrapper scripts and
15085# restored at relink time.
15086variables_saved_for_relink="$variables_saved_for_relink"
15087
15088# Whether libtool must link a program against all its dependency libraries.
15089link_all_deplibs=$link_all_deplibs_F77
15090
15091# Compile-time system search path for libraries
15092sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15093
15094# Run-time system search path for libraries
15095sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15096
15097# Fix the shell variable \$srcfile for the compiler.
15098fix_srcfile_path="$fix_srcfile_path_F77"
15099
15100# Set to yes if exported symbols are required.
15101always_export_symbols=$always_export_symbols_F77
15102
15103# The commands to list exported symbols.
15104export_symbols_cmds=$lt_export_symbols_cmds_F77
15105
15106# The commands to extract the exported symbol list from a shared archive.
15107extract_expsyms_cmds=$lt_extract_expsyms_cmds
15108
15109# Symbols that should not be listed in the preloaded symbols.
15110exclude_expsyms=$lt_exclude_expsyms_F77
15111
15112# Symbols that must always be exported.
15113include_expsyms=$lt_include_expsyms_F77
15114
15115# ### END LIBTOOL TAG CONFIG: $tagname
15116
15117__EOF__
15118
15119
15120else
15121 # If there is no Makefile yet, we rely on a make rule to execute
15122 # `config.status --recheck' to rerun these tests and create the
15123 # libtool script then.
15124 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15125 if test -f "$ltmain_in"; then
15126 test -f Makefile && make "$ltmain"
15127 fi
15128fi
15129
15130
15131ac_ext=c
15132ac_cpp='$CPP $CPPFLAGS'
15133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15135ac_compiler_gnu=$ac_cv_c_compiler_gnu
15136
15137CC="$lt_save_CC"
15138
15139 else
15140 tagname=""
15141 fi
15142 ;;
15143
15144 GCJ)
15145 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15146
15147
15148
15149# Source file extension for Java test sources.
15150ac_ext=java
15151
15152# Object file extension for compiled Java test sources.
15153objext=o
15154objext_GCJ=$objext
15155
15156# Code to be used in simple compile tests
15157lt_simple_compile_test_code="class foo {}\n"
15158
15159# Code to be used in simple link tests
mmentovai3261e8b2006-09-06 02:56:44 +000015160lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
brynercb91a2f2006-08-25 21:14:45 +000015161
15162# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15163
15164# If no C compiler was specified, use CC.
15165LTCC=${LTCC-"$CC"}
15166
mmentovai3261e8b2006-09-06 02:56:44 +000015167# If no C compiler flags were specified, use CFLAGS.
15168LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15169
brynercb91a2f2006-08-25 21:14:45 +000015170# Allow CC to be a program name with arguments.
15171compiler=$CC
15172
15173
mmentovai3261e8b2006-09-06 02:56:44 +000015174# save warnings/boilerplate of simple test code
15175ac_outfile=conftest.$ac_objext
15176printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15178_lt_compiler_boilerplate=`cat conftest.err`
15179$rm conftest*
15180
15181ac_outfile=conftest.$ac_objext
15182printf "$lt_simple_link_test_code" >conftest.$ac_ext
15183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15184_lt_linker_boilerplate=`cat conftest.err`
15185$rm conftest*
15186
15187
brynercb91a2f2006-08-25 21:14:45 +000015188# Allow CC to be a program name with arguments.
15189lt_save_CC="$CC"
15190CC=${GCJ-"gcj"}
15191compiler=$CC
15192compiler_GCJ=$CC
mmentovai3261e8b2006-09-06 02:56:44 +000015193for cc_temp in $compiler""; do
15194 case $cc_temp in
15195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15197 \-*) ;;
15198 *) break;;
15199 esac
15200done
15201cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15202
brynercb91a2f2006-08-25 21:14:45 +000015203
15204# GCJ did not exist at the time GCC didn't implicitly link libc in.
15205archive_cmds_need_lc_GCJ=no
15206
mmentovai3261e8b2006-09-06 02:56:44 +000015207old_archive_cmds_GCJ=$old_archive_cmds
15208
brynercb91a2f2006-08-25 21:14:45 +000015209
15210lt_prog_compiler_no_builtin_flag_GCJ=
15211
15212if test "$GCC" = yes; then
15213 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15214
15215
15216echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15217echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15218if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220else
15221 lt_cv_prog_compiler_rtti_exceptions=no
15222 ac_outfile=conftest.$ac_objext
15223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15224 lt_compiler_flag="-fno-rtti -fno-exceptions"
15225 # Insert the option either (1) after the last *FLAGS variable, or
15226 # (2) before a word containing "conftest.", or (3) at the end.
15227 # Note that $ac_compile itself does not contain backslashes and begins
15228 # with a dollar sign (not a hyphen), so the echo should work correctly.
15229 # The option is referenced via a variable to avoid confusing sed.
15230 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +000015231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000015232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15233 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +000015234 (eval echo "\"\$as_me:15234: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000015235 (eval "$lt_compile" 2>conftest.err)
15236 ac_status=$?
15237 cat conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +000015238 echo "$as_me:15238: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000015239 if (exit $ac_status) && test -s "$ac_outfile"; then
15240 # The compiler can only warn and ignore the option if not recognized
mmentovai3261e8b2006-09-06 02:56:44 +000015241 # So say no if there are warnings other than the usual output.
15242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000015245 lt_cv_prog_compiler_rtti_exceptions=yes
15246 fi
15247 fi
15248 $rm conftest*
15249
15250fi
15251echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15252echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15253
15254if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15255 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15256else
15257 :
15258fi
15259
15260fi
15261
15262lt_prog_compiler_wl_GCJ=
15263lt_prog_compiler_pic_GCJ=
15264lt_prog_compiler_static_GCJ=
15265
15266echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15267echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15268
15269 if test "$GCC" = yes; then
15270 lt_prog_compiler_wl_GCJ='-Wl,'
15271 lt_prog_compiler_static_GCJ='-static'
15272
15273 case $host_os in
15274 aix*)
15275 # All AIX code is PIC.
15276 if test "$host_cpu" = ia64; then
15277 # AIX 5 now supports IA64 processor
15278 lt_prog_compiler_static_GCJ='-Bstatic'
15279 fi
15280 ;;
15281
15282 amigaos*)
15283 # FIXME: we need at least 68020 code to build shared libraries, but
15284 # adding the `-m68020' flag to GCC prevents building anything better,
15285 # like `-m68040'.
15286 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15287 ;;
15288
15289 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15290 # PIC is the default for these OSes.
15291 ;;
15292
15293 mingw* | pw32* | os2*)
15294 # This hack is so that the source file can tell whether it is being
15295 # built for inclusion in a dll (and should export symbols for example).
15296 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15297 ;;
15298
15299 darwin* | rhapsody*)
15300 # PIC is the default on this platform
15301 # Common symbols not allowed in MH_DYLIB files
15302 lt_prog_compiler_pic_GCJ='-fno-common'
15303 ;;
15304
mmentovai3261e8b2006-09-06 02:56:44 +000015305 interix3*)
15306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15307 # Instead, we relocate shared libraries at runtime.
15308 ;;
15309
brynercb91a2f2006-08-25 21:14:45 +000015310 msdosdjgpp*)
15311 # Just because we use GCC doesn't mean we suddenly get shared libraries
15312 # on systems that don't support them.
15313 lt_prog_compiler_can_build_shared_GCJ=no
15314 enable_shared=no
15315 ;;
15316
15317 sysv4*MP*)
15318 if test -d /usr/nec; then
15319 lt_prog_compiler_pic_GCJ=-Kconform_pic
15320 fi
15321 ;;
15322
15323 hpux*)
15324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15325 # not for PA HP-UX.
mmentovai3261e8b2006-09-06 02:56:44 +000015326 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000015327 hppa*64*|ia64*)
15328 # +Z the default
15329 ;;
15330 *)
15331 lt_prog_compiler_pic_GCJ='-fPIC'
15332 ;;
15333 esac
15334 ;;
15335
15336 *)
15337 lt_prog_compiler_pic_GCJ='-fPIC'
15338 ;;
15339 esac
15340 else
15341 # PORTME Check for flag to pass linker flags through the system compiler.
15342 case $host_os in
15343 aix*)
15344 lt_prog_compiler_wl_GCJ='-Wl,'
15345 if test "$host_cpu" = ia64; then
15346 # AIX 5 now supports IA64 processor
15347 lt_prog_compiler_static_GCJ='-Bstatic'
15348 else
15349 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15350 fi
15351 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000015352 darwin*)
15353 # PIC is the default on this platform
15354 # Common symbols not allowed in MH_DYLIB files
15355 case $cc_basename in
15356 xlc*)
15357 lt_prog_compiler_pic_GCJ='-qnocommon'
15358 lt_prog_compiler_wl_GCJ='-Wl,'
15359 ;;
15360 esac
15361 ;;
brynercb91a2f2006-08-25 21:14:45 +000015362
15363 mingw* | pw32* | os2*)
15364 # This hack is so that the source file can tell whether it is being
15365 # built for inclusion in a dll (and should export symbols for example).
15366 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15367 ;;
15368
15369 hpux9* | hpux10* | hpux11*)
15370 lt_prog_compiler_wl_GCJ='-Wl,'
15371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15372 # not for PA HP-UX.
mmentovai3261e8b2006-09-06 02:56:44 +000015373 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000015374 hppa*64*|ia64*)
15375 # +Z the default
15376 ;;
15377 *)
15378 lt_prog_compiler_pic_GCJ='+Z'
15379 ;;
15380 esac
15381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15382 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15383 ;;
15384
15385 irix5* | irix6* | nonstopux*)
15386 lt_prog_compiler_wl_GCJ='-Wl,'
15387 # PIC (with -KPIC) is the default.
15388 lt_prog_compiler_static_GCJ='-non_shared'
15389 ;;
15390
15391 newsos6)
15392 lt_prog_compiler_pic_GCJ='-KPIC'
15393 lt_prog_compiler_static_GCJ='-Bstatic'
15394 ;;
15395
15396 linux*)
mmentovai3261e8b2006-09-06 02:56:44 +000015397 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000015398 icc* | ecc*)
15399 lt_prog_compiler_wl_GCJ='-Wl,'
15400 lt_prog_compiler_pic_GCJ='-KPIC'
15401 lt_prog_compiler_static_GCJ='-static'
15402 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000015403 pgcc* | pgf77* | pgf90* | pgf95*)
15404 # Portland Group compilers (*not* the Pentium gcc compiler,
15405 # which looks to be a dead project)
15406 lt_prog_compiler_wl_GCJ='-Wl,'
15407 lt_prog_compiler_pic_GCJ='-fpic'
15408 lt_prog_compiler_static_GCJ='-Bstatic'
15409 ;;
brynercb91a2f2006-08-25 21:14:45 +000015410 ccc*)
15411 lt_prog_compiler_wl_GCJ='-Wl,'
15412 # All Alpha code is PIC.
15413 lt_prog_compiler_static_GCJ='-non_shared'
15414 ;;
15415 esac
15416 ;;
15417
15418 osf3* | osf4* | osf5*)
15419 lt_prog_compiler_wl_GCJ='-Wl,'
15420 # All OSF/1 code is PIC.
15421 lt_prog_compiler_static_GCJ='-non_shared'
15422 ;;
15423
brynercb91a2f2006-08-25 21:14:45 +000015424 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000015425 lt_prog_compiler_pic_GCJ='-KPIC'
15426 lt_prog_compiler_static_GCJ='-Bstatic'
mmentovai3261e8b2006-09-06 02:56:44 +000015427 case $cc_basename in
15428 f77* | f90* | f95*)
15429 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15430 *)
15431 lt_prog_compiler_wl_GCJ='-Wl,';;
15432 esac
brynercb91a2f2006-08-25 21:14:45 +000015433 ;;
15434
15435 sunos4*)
15436 lt_prog_compiler_wl_GCJ='-Qoption ld '
15437 lt_prog_compiler_pic_GCJ='-PIC'
15438 lt_prog_compiler_static_GCJ='-Bstatic'
15439 ;;
15440
mmentovai3261e8b2006-09-06 02:56:44 +000015441 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000015442 lt_prog_compiler_wl_GCJ='-Wl,'
15443 lt_prog_compiler_pic_GCJ='-KPIC'
15444 lt_prog_compiler_static_GCJ='-Bstatic'
15445 ;;
15446
15447 sysv4*MP*)
15448 if test -d /usr/nec ;then
15449 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15450 lt_prog_compiler_static_GCJ='-Bstatic'
15451 fi
15452 ;;
15453
mmentovai3261e8b2006-09-06 02:56:44 +000015454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15455 lt_prog_compiler_wl_GCJ='-Wl,'
15456 lt_prog_compiler_pic_GCJ='-KPIC'
15457 lt_prog_compiler_static_GCJ='-Bstatic'
15458 ;;
15459
15460 unicos*)
15461 lt_prog_compiler_wl_GCJ='-Wl,'
15462 lt_prog_compiler_can_build_shared_GCJ=no
15463 ;;
15464
brynercb91a2f2006-08-25 21:14:45 +000015465 uts4*)
15466 lt_prog_compiler_pic_GCJ='-pic'
15467 lt_prog_compiler_static_GCJ='-Bstatic'
15468 ;;
15469
15470 *)
15471 lt_prog_compiler_can_build_shared_GCJ=no
15472 ;;
15473 esac
15474 fi
15475
15476echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15477echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15478
15479#
15480# Check to make sure the PIC flag actually works.
15481#
15482if test -n "$lt_prog_compiler_pic_GCJ"; then
15483
15484echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15485echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15486if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488else
15489 lt_prog_compiler_pic_works_GCJ=no
15490 ac_outfile=conftest.$ac_objext
15491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15492 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15493 # Insert the option either (1) after the last *FLAGS variable, or
15494 # (2) before a word containing "conftest.", or (3) at the end.
15495 # Note that $ac_compile itself does not contain backslashes and begins
15496 # with a dollar sign (not a hyphen), so the echo should work correctly.
15497 # The option is referenced via a variable to avoid confusing sed.
15498 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +000015499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000015500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15501 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +000015502 (eval echo "\"\$as_me:15502: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000015503 (eval "$lt_compile" 2>conftest.err)
15504 ac_status=$?
15505 cat conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +000015506 echo "$as_me:15506: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000015507 if (exit $ac_status) && test -s "$ac_outfile"; then
15508 # The compiler can only warn and ignore the option if not recognized
mmentovai3261e8b2006-09-06 02:56:44 +000015509 # So say no if there are warnings other than the usual output.
15510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000015513 lt_prog_compiler_pic_works_GCJ=yes
15514 fi
15515 fi
15516 $rm conftest*
15517
15518fi
15519echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15520echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15521
15522if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15523 case $lt_prog_compiler_pic_GCJ in
15524 "" | " "*) ;;
15525 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15526 esac
15527else
15528 lt_prog_compiler_pic_GCJ=
15529 lt_prog_compiler_can_build_shared_GCJ=no
15530fi
15531
15532fi
mmentovai3261e8b2006-09-06 02:56:44 +000015533case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000015534 # For platforms which do not support PIC, -DPIC is meaningless:
15535 *djgpp*)
15536 lt_prog_compiler_pic_GCJ=
15537 ;;
15538 *)
15539 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15540 ;;
15541esac
15542
mmentovai3261e8b2006-09-06 02:56:44 +000015543#
15544# Check to make sure the static flag actually works.
15545#
15546wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15547echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15548echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15549if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551else
15552 lt_prog_compiler_static_works_GCJ=no
15553 save_LDFLAGS="$LDFLAGS"
15554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15555 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15557 # The linker can only warn and ignore the option if not recognized
15558 # So say no if there are warnings
15559 if test -s conftest.err; then
15560 # Append any errors to the config.log.
15561 cat conftest.err 1>&5
15562 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15564 if diff conftest.exp conftest.er2 >/dev/null; then
15565 lt_prog_compiler_static_works_GCJ=yes
15566 fi
15567 else
15568 lt_prog_compiler_static_works_GCJ=yes
15569 fi
15570 fi
15571 $rm conftest*
15572 LDFLAGS="$save_LDFLAGS"
15573
15574fi
15575echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15576echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15577
15578if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15579 :
15580else
15581 lt_prog_compiler_static_GCJ=
15582fi
15583
15584
brynercb91a2f2006-08-25 21:14:45 +000015585echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15586echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15587if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589else
15590 lt_cv_prog_compiler_c_o_GCJ=no
15591 $rm -r conftest 2>/dev/null
15592 mkdir conftest
15593 cd conftest
15594 mkdir out
15595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15596
15597 lt_compiler_flag="-o out/conftest2.$ac_objext"
15598 # Insert the option either (1) after the last *FLAGS variable, or
15599 # (2) before a word containing "conftest.", or (3) at the end.
15600 # Note that $ac_compile itself does not contain backslashes and begins
15601 # with a dollar sign (not a hyphen), so the echo should work correctly.
15602 lt_compile=`echo "$ac_compile" | $SED \
mmentovai3261e8b2006-09-06 02:56:44 +000015603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000015604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15605 -e 's:$: $lt_compiler_flag:'`
mmentovai3261e8b2006-09-06 02:56:44 +000015606 (eval echo "\"\$as_me:15606: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000015607 (eval "$lt_compile" 2>out/conftest.err)
15608 ac_status=$?
15609 cat out/conftest.err >&5
mmentovai3261e8b2006-09-06 02:56:44 +000015610 echo "$as_me:15610: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000015611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15612 then
15613 # The compiler can only warn and ignore the option if not recognized
15614 # So say no if there are warnings
mmentovai3261e8b2006-09-06 02:56:44 +000015615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000015618 lt_cv_prog_compiler_c_o_GCJ=yes
15619 fi
15620 fi
mmentovai3261e8b2006-09-06 02:56:44 +000015621 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000015622 $rm conftest*
15623 # SGI C++ compiler will create directory out/ii_files/ for
15624 # template instantiation
15625 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15626 $rm out/* && rmdir out
15627 cd ..
15628 rmdir conftest
15629 $rm conftest*
15630
15631fi
15632echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15633echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15634
15635
15636hard_links="nottested"
15637if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15638 # do not overwrite the value of need_locks provided by the user
15639 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15640echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15641 hard_links=yes
15642 $rm conftest*
15643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15644 touch conftest.a
15645 ln conftest.a conftest.b 2>&5 || hard_links=no
15646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15647 echo "$as_me:$LINENO: result: $hard_links" >&5
15648echo "${ECHO_T}$hard_links" >&6
15649 if test "$hard_links" = no; then
15650 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15651echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15652 need_locks=warn
15653 fi
15654else
15655 need_locks=no
15656fi
15657
15658echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15659echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15660
15661 runpath_var=
15662 allow_undefined_flag_GCJ=
15663 enable_shared_with_static_runtimes_GCJ=no
15664 archive_cmds_GCJ=
15665 archive_expsym_cmds_GCJ=
15666 old_archive_From_new_cmds_GCJ=
15667 old_archive_from_expsyms_cmds_GCJ=
15668 export_dynamic_flag_spec_GCJ=
15669 whole_archive_flag_spec_GCJ=
15670 thread_safe_flag_spec_GCJ=
15671 hardcode_libdir_flag_spec_GCJ=
15672 hardcode_libdir_flag_spec_ld_GCJ=
15673 hardcode_libdir_separator_GCJ=
15674 hardcode_direct_GCJ=no
15675 hardcode_minus_L_GCJ=no
15676 hardcode_shlibpath_var_GCJ=unsupported
15677 link_all_deplibs_GCJ=unknown
15678 hardcode_automatic_GCJ=no
15679 module_cmds_GCJ=
15680 module_expsym_cmds_GCJ=
15681 always_export_symbols_GCJ=no
15682 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15683 # include_expsyms should be a list of space-separated symbols to be *always*
15684 # included in the symbol list
15685 include_expsyms_GCJ=
15686 # exclude_expsyms can be an extended regexp of symbols to exclude
15687 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15689 # as well as any symbol that contains `d'.
15690 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15692 # platforms (ab)use it in PIC code, but their linkers get confused if
15693 # the symbol is explicitly referenced. Since portable code cannot
15694 # rely on this symbol name, it's probably fine to never include it in
15695 # preloaded symbol tables.
15696 extract_expsyms_cmds=
mmentovai3261e8b2006-09-06 02:56:44 +000015697 # Just being paranoid about ensuring that cc_basename is set.
15698 for cc_temp in $compiler""; do
15699 case $cc_temp in
15700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15702 \-*) ;;
15703 *) break;;
15704 esac
15705done
15706cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000015707
15708 case $host_os in
15709 cygwin* | mingw* | pw32*)
15710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15711 # When not using gcc, we currently assume that we are using
15712 # Microsoft Visual C++.
15713 if test "$GCC" != yes; then
15714 with_gnu_ld=no
15715 fi
15716 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000015717 interix*)
15718 # we just hope/assume this is gcc and not c89 (= MSVC++)
15719 with_gnu_ld=yes
15720 ;;
brynercb91a2f2006-08-25 21:14:45 +000015721 openbsd*)
15722 with_gnu_ld=no
15723 ;;
15724 esac
15725
15726 ld_shlibs_GCJ=yes
15727 if test "$with_gnu_ld" = yes; then
15728 # If archive_cmds runs LD, not CC, wlarc should be empty
15729 wlarc='${wl}'
15730
mmentovai3261e8b2006-09-06 02:56:44 +000015731 # Set some defaults for GNU ld with shared library support. These
15732 # are reset later if shared libraries are not supported. Putting them
15733 # here allows them to be overridden if necessary.
15734 runpath_var=LD_RUN_PATH
15735 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15736 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15737 # ancient GNU ld didn't support --whole-archive et. al.
15738 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15739 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15740 else
15741 whole_archive_flag_spec_GCJ=
15742 fi
15743 supports_anon_versioning=no
15744 case `$LD -v 2>/dev/null` in
15745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15748 *\ 2.11.*) ;; # other 2.11 versions
15749 *) supports_anon_versioning=yes ;;
15750 esac
15751
brynercb91a2f2006-08-25 21:14:45 +000015752 # See if GNU ld supports shared libraries.
15753 case $host_os in
15754 aix3* | aix4* | aix5*)
15755 # On AIX/PPC, the GNU linker is very broken
15756 if test "$host_cpu" != ia64; then
15757 ld_shlibs_GCJ=no
15758 cat <<EOF 1>&2
15759
15760*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15761*** to be unable to reliably create shared libraries on AIX.
15762*** Therefore, libtool is disabling shared libraries support. If you
15763*** really care for shared libraries, you may want to modify your PATH
15764*** so that a non-GNU linker is found, and then restart.
15765
15766EOF
15767 fi
15768 ;;
15769
15770 amigaos*)
15771 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)'
15772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15773 hardcode_minus_L_GCJ=yes
15774
15775 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15776 # that the semantics of dynamic libraries on AmigaOS, at least up
15777 # to version 4, is to share data among multiple programs linked
15778 # with the same dynamic library. Since this doesn't match the
15779 # behavior of shared libraries on other platforms, we can't use
15780 # them.
15781 ld_shlibs_GCJ=no
15782 ;;
15783
15784 beos*)
15785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15786 allow_undefined_flag_GCJ=unsupported
15787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15788 # support --undefined. This deserves some investigation. FIXME
15789 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15790 else
15791 ld_shlibs_GCJ=no
15792 fi
15793 ;;
15794
15795 cygwin* | mingw* | pw32*)
15796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15797 # as there is no search path for DLLs.
15798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15799 allow_undefined_flag_GCJ=unsupported
15800 always_export_symbols_GCJ=no
15801 enable_shared_with_static_runtimes_GCJ=yes
mmentovai3261e8b2006-09-06 02:56:44 +000015802 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000015803
15804 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai3261e8b2006-09-06 02:56:44 +000015805 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000015806 # If the export-symbols file already is a .def file (1st line
15807 # is EXPORTS), use it as is; otherwise, prepend...
15808 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15809 cp $export_symbols $output_objdir/$soname.def;
15810 else
15811 echo EXPORTS > $output_objdir/$soname.def;
15812 cat $export_symbols >> $output_objdir/$soname.def;
15813 fi~
mmentovai3261e8b2006-09-06 02:56:44 +000015814 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000015815 else
mmentovai3261e8b2006-09-06 02:56:44 +000015816 ld_shlibs_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000015817 fi
15818 ;;
15819
mmentovai3261e8b2006-09-06 02:56:44 +000015820 interix3*)
15821 hardcode_direct_GCJ=no
15822 hardcode_shlibpath_var_GCJ=no
15823 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15824 export_dynamic_flag_spec_GCJ='${wl}-E'
15825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15826 # Instead, shared libraries are loaded at an image base (0x10000000 by
15827 # default) and relocated if they conflict, which is a slow very memory
15828 # consuming and fragmenting process. To avoid this, we pick a random,
15829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15831 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15832 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15833 ;;
15834
15835 linux*)
15836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15837 tmp_addflag=
15838 case $cc_basename,$host_cpu in
15839 pgcc*) # Portland Group C compiler
15840 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15841 tmp_addflag=' $pic_flag'
15842 ;;
15843 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15844 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15845 tmp_addflag=' $pic_flag -Mnomain' ;;
15846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15847 tmp_addflag=' -i_dynamic' ;;
15848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15849 tmp_addflag=' -i_dynamic -nofor_main' ;;
15850 ifc* | ifort*) # Intel Fortran compiler
15851 tmp_addflag=' -nofor_main' ;;
15852 esac
15853 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15854
15855 if test $supports_anon_versioning = yes; then
15856 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15858 $echo "local: *; };" >> $output_objdir/$libname.ver~
15859 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15860 fi
15861 else
15862 ld_shlibs_GCJ=no
15863 fi
15864 ;;
15865
15866 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000015867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15868 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15869 wlarc=
15870 else
15871 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15873 fi
15874 ;;
15875
mmentovai3261e8b2006-09-06 02:56:44 +000015876 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000015877 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15878 ld_shlibs_GCJ=no
15879 cat <<EOF 1>&2
15880
15881*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15882*** create shared libraries on Solaris systems. Therefore, libtool
15883*** is disabling shared libraries support. We urge you to upgrade GNU
15884*** binutils to release 2.9.1 or newer. Another option is to modify
15885*** your PATH or compiler configuration so that the native linker is
15886*** used, and then restart.
15887
15888EOF
15889 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15890 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15891 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15892 else
15893 ld_shlibs_GCJ=no
15894 fi
15895 ;;
15896
mmentovai3261e8b2006-09-06 02:56:44 +000015897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15898 case `$LD -v 2>&1` in
15899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15900 ld_shlibs_GCJ=no
15901 cat <<_LT_EOF 1>&2
15902
15903*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15904*** reliably create shared libraries on SCO systems. Therefore, libtool
15905*** is disabling shared libraries support. We urge you to upgrade GNU
15906*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15907*** your PATH or compiler configuration so that the native linker is
15908*** used, and then restart.
15909
15910_LT_EOF
15911 ;;
15912 *)
15913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15914 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15915 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15916 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15917 else
15918 ld_shlibs_GCJ=no
15919 fi
15920 ;;
15921 esac
15922 ;;
15923
brynercb91a2f2006-08-25 21:14:45 +000015924 sunos4*)
15925 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15926 wlarc=
15927 hardcode_direct_GCJ=yes
15928 hardcode_shlibpath_var_GCJ=no
15929 ;;
15930
brynercb91a2f2006-08-25 21:14:45 +000015931 *)
15932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15933 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15934 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15935 else
15936 ld_shlibs_GCJ=no
15937 fi
15938 ;;
15939 esac
15940
mmentovai3261e8b2006-09-06 02:56:44 +000015941 if test "$ld_shlibs_GCJ" = no; then
15942 runpath_var=
15943 hardcode_libdir_flag_spec_GCJ=
15944 export_dynamic_flag_spec_GCJ=
15945 whole_archive_flag_spec_GCJ=
brynercb91a2f2006-08-25 21:14:45 +000015946 fi
15947 else
15948 # PORTME fill in a description of your system's linker (not GNU ld)
15949 case $host_os in
15950 aix3*)
15951 allow_undefined_flag_GCJ=unsupported
15952 always_export_symbols_GCJ=yes
15953 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'
15954 # Note: this linker hardcodes the directories in LIBPATH if there
15955 # are no directories specified by -L.
15956 hardcode_minus_L_GCJ=yes
mmentovai3261e8b2006-09-06 02:56:44 +000015957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000015958 # Neither direct hardcoding nor static linking is supported with a
15959 # broken collect2.
15960 hardcode_direct_GCJ=unsupported
15961 fi
15962 ;;
15963
15964 aix4* | aix5*)
15965 if test "$host_cpu" = ia64; then
15966 # On IA64, the linker does run time linking by default, so we don't
15967 # have to do anything special.
15968 aix_use_runtimelinking=no
15969 exp_sym_flag='-Bexport'
15970 no_entry_flag=""
15971 else
15972 # If we're using GNU nm, then we don't want the "-C" option.
15973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15975 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'
15976 else
15977 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'
15978 fi
15979 aix_use_runtimelinking=no
15980
15981 # Test if we are trying to use run time linking or normal
15982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15983 # need to do runtime linking.
15984 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15985 for ld_flag in $LDFLAGS; do
15986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15987 aix_use_runtimelinking=yes
15988 break
15989 fi
15990 done
mmentovai3261e8b2006-09-06 02:56:44 +000015991 ;;
brynercb91a2f2006-08-25 21:14:45 +000015992 esac
15993
15994 exp_sym_flag='-bexport'
15995 no_entry_flag='-bnoentry'
15996 fi
15997
15998 # When large executables or shared objects are built, AIX ld can
15999 # have problems creating the table of contents. If linking a library
16000 # or program results in "error TOC overflow" add -mminimal-toc to
16001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16003
16004 archive_cmds_GCJ=''
16005 hardcode_direct_GCJ=yes
16006 hardcode_libdir_separator_GCJ=':'
16007 link_all_deplibs_GCJ=yes
16008
16009 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +000016010 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000016011 # We only want to do this on AIX 4.2 and lower, the check
16012 # below for broken collect2 doesn't work under 4.3+
16013 collect2name=`${CC} -print-prog-name=collect2`
16014 if test -f "$collect2name" && \
16015 strings "$collect2name" | grep resolve_lib_name >/dev/null
16016 then
16017 # We have reworked collect2
16018 hardcode_direct_GCJ=yes
16019 else
16020 # We have old collect2
16021 hardcode_direct_GCJ=unsupported
16022 # It fails to find uninstalled libraries when the uninstalled
16023 # path is not listed in the libpath. Setting hardcode_minus_L
16024 # to unsupported forces relinking
16025 hardcode_minus_L_GCJ=yes
16026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16027 hardcode_libdir_separator_GCJ=
16028 fi
mmentovai3261e8b2006-09-06 02:56:44 +000016029 ;;
brynercb91a2f2006-08-25 21:14:45 +000016030 esac
16031 shared_flag='-shared'
mmentovai3261e8b2006-09-06 02:56:44 +000016032 if test "$aix_use_runtimelinking" = yes; then
16033 shared_flag="$shared_flag "'${wl}-G'
16034 fi
brynercb91a2f2006-08-25 21:14:45 +000016035 else
16036 # not using gcc
16037 if test "$host_cpu" = ia64; then
16038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16039 # chokes on -Wl,-G. The following line is correct:
16040 shared_flag='-G'
16041 else
mmentovai3261e8b2006-09-06 02:56:44 +000016042 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000016043 shared_flag='${wl}-G'
16044 else
16045 shared_flag='${wl}-bM:SRE'
mmentovai3261e8b2006-09-06 02:56:44 +000016046 fi
brynercb91a2f2006-08-25 21:14:45 +000016047 fi
16048 fi
16049
16050 # It seems that -bexpall does not export symbols beginning with
16051 # underscore (_), so it is better to generate a list of symbols to export.
16052 always_export_symbols_GCJ=yes
16053 if test "$aix_use_runtimelinking" = yes; then
16054 # Warning - without using the other runtime loading flags (-brtl),
16055 # -berok will link without error, but may produce a broken library.
16056 allow_undefined_flag_GCJ='-berok'
16057 # Determine the default libpath from the value encoded in an empty executable.
16058 cat >conftest.$ac_ext <<_ACEOF
16059/* confdefs.h. */
16060_ACEOF
16061cat confdefs.h >>conftest.$ac_ext
16062cat >>conftest.$ac_ext <<_ACEOF
16063/* end confdefs.h. */
16064
16065int
16066main ()
16067{
16068
16069 ;
16070 return 0;
16071}
16072_ACEOF
16073rm -f conftest.$ac_objext conftest$ac_exeext
16074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16075 (eval $ac_link) 2>conftest.er1
16076 ac_status=$?
16077 grep -v '^ *+' conftest.er1 >conftest.err
16078 rm -f conftest.er1
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +000016082 { ac_try='test -z "$ac_c_werror_flag"
16083 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000016084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095
16096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16097}'`
16098# Check for a 64-bit object if we didn't find anything.
16099if 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; }
16100}'`; fi
16101else
16102 echo "$as_me: failed program was:" >&5
16103sed 's/^/| /' conftest.$ac_ext >&5
16104
16105fi
16106rm -f conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16109
16110 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai3261e8b2006-09-06 02:56:44 +000016111 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
brynercb91a2f2006-08-25 21:14:45 +000016112 else
16113 if test "$host_cpu" = ia64; then
16114 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16115 allow_undefined_flag_GCJ="-z nodefs"
mmentovai3261e8b2006-09-06 02:56:44 +000016116 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
brynercb91a2f2006-08-25 21:14:45 +000016117 else
16118 # Determine the default libpath from the value encoded in an empty executable.
16119 cat >conftest.$ac_ext <<_ACEOF
16120/* confdefs.h. */
16121_ACEOF
16122cat confdefs.h >>conftest.$ac_ext
16123cat >>conftest.$ac_ext <<_ACEOF
16124/* end confdefs.h. */
16125
16126int
16127main ()
16128{
16129
16130 ;
16131 return 0;
16132}
16133_ACEOF
16134rm -f conftest.$ac_objext conftest$ac_exeext
16135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16136 (eval $ac_link) 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +000016143 { ac_try='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000016145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest$ac_exeext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156
16157aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16158}'`
16159# Check for a 64-bit object if we didn't find anything.
16160if 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; }
16161}'`; fi
16162else
16163 echo "$as_me: failed program was:" >&5
16164sed 's/^/| /' conftest.$ac_ext >&5
16165
16166fi
16167rm -f conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16169if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16170
16171 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16172 # Warning - without using the other run time loading flags,
16173 # -berok will link without error, but may produce a broken library.
16174 no_undefined_flag_GCJ=' ${wl}-bernotok'
16175 allow_undefined_flag_GCJ=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000016176 # Exported symbols can be pulled into shared objects from archives
mmentovai3261e8b2006-09-06 02:56:44 +000016177 whole_archive_flag_spec_GCJ='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000016178 archive_cmds_need_lc_GCJ=yes
mmentovai3261e8b2006-09-06 02:56:44 +000016179 # This is similar to how AIX traditionally builds its shared libraries.
16180 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
brynercb91a2f2006-08-25 21:14:45 +000016181 fi
16182 fi
16183 ;;
16184
16185 amigaos*)
16186 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)'
16187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188 hardcode_minus_L_GCJ=yes
16189 # see comment about different semantics on the GNU ld section
16190 ld_shlibs_GCJ=no
16191 ;;
16192
mmentovai3261e8b2006-09-06 02:56:44 +000016193 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000016194 export_dynamic_flag_spec_GCJ=-rdynamic
16195 ;;
16196
16197 cygwin* | mingw* | pw32*)
16198 # When not using gcc, we currently assume that we are using
16199 # Microsoft Visual C++.
16200 # hardcode_libdir_flag_spec is actually meaningless, as there is
16201 # no search path for DLLs.
16202 hardcode_libdir_flag_spec_GCJ=' '
16203 allow_undefined_flag_GCJ=unsupported
16204 # Tell ltmain to make .lib files, not .a files.
16205 libext=lib
16206 # Tell ltmain to make .dll files, not .so files.
16207 shrext_cmds=".dll"
16208 # FIXME: Setting linknames here is a bad hack.
16209 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16210 # The linker will automatically build a .lib file if we build a DLL.
16211 old_archive_From_new_cmds_GCJ='true'
16212 # FIXME: Should let the user specify the lib program.
16213 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai3261e8b2006-09-06 02:56:44 +000016214 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000016215 enable_shared_with_static_runtimes_GCJ=yes
16216 ;;
16217
16218 darwin* | rhapsody*)
mmentovai3261e8b2006-09-06 02:56:44 +000016219 case $host_os in
16220 rhapsody* | darwin1.[012])
16221 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16222 ;;
16223 *) # Darwin 1.3 on
16224 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16225 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16226 else
16227 case ${MACOSX_DEPLOYMENT_TARGET} in
16228 10.[012])
16229 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16230 ;;
16231 10.*)
16232 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16233 ;;
16234 esac
16235 fi
16236 ;;
bryner07f8ef52006-09-05 19:42:57 +000016237 esac
mmentovai3261e8b2006-09-06 02:56:44 +000016238 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000016239 hardcode_direct_GCJ=no
16240 hardcode_automatic_GCJ=yes
16241 hardcode_shlibpath_var_GCJ=unsupported
mmentovai3261e8b2006-09-06 02:56:44 +000016242 whole_archive_flag_spec_GCJ=''
brynercb91a2f2006-08-25 21:14:45 +000016243 link_all_deplibs_GCJ=yes
mmentovai3261e8b2006-09-06 02:56:44 +000016244 if test "$GCC" = yes ; then
16245 output_verbose_link_cmd='echo'
16246 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16247 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16249 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16250 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +000016251 else
mmentovai3261e8b2006-09-06 02:56:44 +000016252 case $cc_basename in
16253 xlc*)
16254 output_verbose_link_cmd='echo'
16255 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16256 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16258 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16259 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16260 ;;
16261 *)
16262 ld_shlibs_GCJ=no
16263 ;;
16264 esac
brynercb91a2f2006-08-25 21:14:45 +000016265 fi
16266 ;;
16267
16268 dgux*)
16269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16271 hardcode_shlibpath_var_GCJ=no
16272 ;;
16273
16274 freebsd1*)
16275 ld_shlibs_GCJ=no
16276 ;;
16277
16278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16279 # support. Future versions do this automatically, but an explicit c++rt0.o
16280 # does not break anything, and helps significantly (at the cost of a little
16281 # extra space).
16282 freebsd2.2*)
16283 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16284 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16285 hardcode_direct_GCJ=yes
16286 hardcode_shlibpath_var_GCJ=no
16287 ;;
16288
16289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16290 freebsd2*)
16291 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16292 hardcode_direct_GCJ=yes
16293 hardcode_minus_L_GCJ=yes
16294 hardcode_shlibpath_var_GCJ=no
16295 ;;
16296
16297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai3261e8b2006-09-06 02:56:44 +000016298 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000016299 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16300 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16301 hardcode_direct_GCJ=yes
16302 hardcode_shlibpath_var_GCJ=no
16303 ;;
16304
16305 hpux9*)
16306 if test "$GCC" = yes; then
16307 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'
16308 else
16309 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'
16310 fi
16311 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16312 hardcode_libdir_separator_GCJ=:
16313 hardcode_direct_GCJ=yes
16314
16315 # hardcode_minus_L: Not really in the search PATH,
16316 # but as the default location of the library.
16317 hardcode_minus_L_GCJ=yes
16318 export_dynamic_flag_spec_GCJ='${wl}-E'
16319 ;;
16320
mmentovai3261e8b2006-09-06 02:56:44 +000016321 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000016322 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai3261e8b2006-09-06 02:56:44 +000016323 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16324 else
16325 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16326 fi
16327 if test "$with_gnu_ld" = no; then
16328 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16329 hardcode_libdir_separator_GCJ=:
16330
16331 hardcode_direct_GCJ=yes
16332 export_dynamic_flag_spec_GCJ='${wl}-E'
16333
16334 # hardcode_minus_L: Not really in the search PATH,
16335 # but as the default location of the library.
16336 hardcode_minus_L_GCJ=yes
16337 fi
16338 ;;
16339
16340 hpux11*)
16341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16342 case $host_cpu in
16343 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000016344 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16345 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000016346 ia64*)
16347 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16348 ;;
brynercb91a2f2006-08-25 21:14:45 +000016349 *)
16350 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16351 ;;
16352 esac
16353 else
mmentovai3261e8b2006-09-06 02:56:44 +000016354 case $host_cpu in
16355 hppa*64*)
16356 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16357 ;;
16358 ia64*)
16359 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000016360 ;;
16361 *)
mmentovai3261e8b2006-09-06 02:56:44 +000016362 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000016363 ;;
16364 esac
16365 fi
16366 if test "$with_gnu_ld" = no; then
mmentovai3261e8b2006-09-06 02:56:44 +000016367 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16368 hardcode_libdir_separator_GCJ=:
bryner07f8ef52006-09-05 19:42:57 +000016369
mmentovai3261e8b2006-09-06 02:56:44 +000016370 case $host_cpu in
16371 hppa*64*|ia64*)
16372 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16373 hardcode_direct_GCJ=no
16374 hardcode_shlibpath_var_GCJ=no
bryner07f8ef52006-09-05 19:42:57 +000016375 ;;
brynercb91a2f2006-08-25 21:14:45 +000016376 *)
brynercb91a2f2006-08-25 21:14:45 +000016377 hardcode_direct_GCJ=yes
16378 export_dynamic_flag_spec_GCJ='${wl}-E'
16379
16380 # hardcode_minus_L: Not really in the search PATH,
16381 # but as the default location of the library.
16382 hardcode_minus_L_GCJ=yes
16383 ;;
16384 esac
16385 fi
16386 ;;
16387
16388 irix5* | irix6* | nonstopux*)
16389 if test "$GCC" = yes; then
16390 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'
16391 else
16392 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'
16393 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16394 fi
16395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16396 hardcode_libdir_separator_GCJ=:
16397 link_all_deplibs_GCJ=yes
16398 ;;
16399
mmentovai3261e8b2006-09-06 02:56:44 +000016400 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000016401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16403 else
16404 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16405 fi
16406 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16407 hardcode_direct_GCJ=yes
16408 hardcode_shlibpath_var_GCJ=no
16409 ;;
16410
16411 newsos6)
16412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16413 hardcode_direct_GCJ=yes
16414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16415 hardcode_libdir_separator_GCJ=:
16416 hardcode_shlibpath_var_GCJ=no
16417 ;;
16418
16419 openbsd*)
16420 hardcode_direct_GCJ=yes
16421 hardcode_shlibpath_var_GCJ=no
16422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16423 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000016424 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000016425 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16426 export_dynamic_flag_spec_GCJ='${wl}-E'
16427 else
16428 case $host_os in
16429 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16430 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16431 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16432 ;;
16433 *)
16434 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16435 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16436 ;;
16437 esac
16438 fi
16439 ;;
16440
16441 os2*)
16442 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16443 hardcode_minus_L_GCJ=yes
16444 allow_undefined_flag_GCJ=unsupported
16445 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'
16446 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16447 ;;
16448
16449 osf3*)
16450 if test "$GCC" = yes; then
16451 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16452 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'
16453 else
16454 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16455 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'
16456 fi
16457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16458 hardcode_libdir_separator_GCJ=:
16459 ;;
16460
16461 osf4* | osf5*) # as osf3* with the addition of -msym flag
16462 if test "$GCC" = yes; then
16463 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16464 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'
16465 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16466 else
16467 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16468 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'
16469 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~
mmentovai3261e8b2006-09-06 02:56:44 +000016470 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +000016471
16472 # Both c and cxx compiler support -rpath directly
16473 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16474 fi
16475 hardcode_libdir_separator_GCJ=:
16476 ;;
16477
brynercb91a2f2006-08-25 21:14:45 +000016478 solaris*)
16479 no_undefined_flag_GCJ=' -z text'
16480 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +000016481 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000016482 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16483 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16484 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16485 else
mmentovai3261e8b2006-09-06 02:56:44 +000016486 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000016487 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16488 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16490 fi
16491 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16492 hardcode_shlibpath_var_GCJ=no
16493 case $host_os in
16494 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai3261e8b2006-09-06 02:56:44 +000016495 *)
16496 # The compiler driver will combine linker options so we
16497 # cannot just pass the convience library names through
16498 # without $wl, iff we do not link with $LD.
16499 # Luckily, gcc supports the same syntax we need for Sun Studio.
16500 # Supported since Solaris 2.6 (maybe 2.5.1?)
16501 case $wlarc in
16502 '')
16503 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16504 *)
16505 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16506 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000016507 esac
16508 link_all_deplibs_GCJ=yes
16509 ;;
16510
16511 sunos4*)
16512 if test "x$host_vendor" = xsequent; then
16513 # Use $CC to link under sequent, because it throws in some extra .o
16514 # files that make .init and .fini sections work.
16515 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16516 else
16517 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16518 fi
16519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16520 hardcode_direct_GCJ=yes
16521 hardcode_minus_L_GCJ=yes
16522 hardcode_shlibpath_var_GCJ=no
16523 ;;
16524
16525 sysv4)
16526 case $host_vendor in
16527 sni)
16528 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16529 hardcode_direct_GCJ=yes # is this really true???
16530 ;;
16531 siemens)
16532 ## LD is ld it makes a PLAMLIB
16533 ## CC just makes a GrossModule.
16534 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16535 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16536 hardcode_direct_GCJ=no
16537 ;;
16538 motorola)
16539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16541 ;;
16542 esac
16543 runpath_var='LD_RUN_PATH'
16544 hardcode_shlibpath_var_GCJ=no
16545 ;;
16546
16547 sysv4.3*)
16548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549 hardcode_shlibpath_var_GCJ=no
16550 export_dynamic_flag_spec_GCJ='-Bexport'
16551 ;;
16552
16553 sysv4*MP*)
16554 if test -d /usr/nec; then
16555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_shlibpath_var_GCJ=no
16557 runpath_var=LD_RUN_PATH
16558 hardcode_runpath_var=yes
16559 ld_shlibs_GCJ=yes
16560 fi
16561 ;;
16562
mmentovai3261e8b2006-09-06 02:56:44 +000016563 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16564 no_undefined_flag_GCJ='${wl}-z,text'
16565 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000016566 hardcode_shlibpath_var_GCJ=no
mmentovai3261e8b2006-09-06 02:56:44 +000016567 runpath_var='LD_RUN_PATH'
brynercb91a2f2006-08-25 21:14:45 +000016568
mmentovai425d2562006-08-30 20:05:05 +000016569 if test "$GCC" = yes; then
mmentovai3261e8b2006-09-06 02:56:44 +000016570 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai425d2562006-08-30 20:05:05 +000016572 else
mmentovai3261e8b2006-09-06 02:56:44 +000016573 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16574 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai425d2562006-08-30 20:05:05 +000016575 fi
bryner07f8ef52006-09-05 19:42:57 +000016576 ;;
16577
mmentovai3261e8b2006-09-06 02:56:44 +000016578 sysv5* | sco3.2v5* | sco5v6*)
16579 # Note: We can NOT use -z defs as we might desire, because we do not
16580 # link with -lc, and that would cause any symbols used from libc to
16581 # always be unresolved, which means just about no library would
16582 # ever link correctly. If we're not using GNU ld we use -z text
16583 # though, which does catch some bad symbols but isn't as heavy-handed
16584 # as -z defs.
16585 no_undefined_flag_GCJ='${wl}-z,text'
16586 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16587 archive_cmds_need_lc_GCJ=no
bryner07f8ef52006-09-05 19:42:57 +000016588 hardcode_shlibpath_var_GCJ=no
mmentovai3261e8b2006-09-06 02:56:44 +000016589 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16590 hardcode_libdir_separator_GCJ=':'
16591 link_all_deplibs_GCJ=yes
16592 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
bryner07f8ef52006-09-05 19:42:57 +000016593 runpath_var='LD_RUN_PATH'
mmentovai3261e8b2006-09-06 02:56:44 +000016594
16595 if test "$GCC" = yes; then
16596 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16598 else
16599 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16601 fi
brynercb91a2f2006-08-25 21:14:45 +000016602 ;;
16603
16604 uts4*)
16605 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16607 hardcode_shlibpath_var_GCJ=no
16608 ;;
16609
16610 *)
16611 ld_shlibs_GCJ=no
16612 ;;
16613 esac
16614 fi
16615
16616echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16617echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16618test "$ld_shlibs_GCJ" = no && can_build_shared=no
16619
brynercb91a2f2006-08-25 21:14:45 +000016620#
16621# Do we need to explicitly link libc?
16622#
16623case "x$archive_cmds_need_lc_GCJ" in
16624x|xyes)
16625 # Assume -lc should be added
16626 archive_cmds_need_lc_GCJ=yes
16627
16628 if test "$enable_shared" = yes && test "$GCC" = yes; then
16629 case $archive_cmds_GCJ in
16630 *'~'*)
16631 # FIXME: we may have to deal with multi-command sequences.
16632 ;;
16633 '$CC '*)
16634 # Test whether the compiler implicitly links with -lc since on some
16635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16636 # to ld, don't add -lc before -lgcc.
16637 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16638echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16639 $rm conftest*
16640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16641
16642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16643 (eval $ac_compile) 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } 2>conftest.err; then
16647 soname=conftest
16648 lib=conftest
16649 libobjs=conftest.$ac_objext
16650 deplibs=
16651 wl=$lt_prog_compiler_wl_GCJ
mmentovai3261e8b2006-09-06 02:56:44 +000016652 pic_flag=$lt_prog_compiler_pic_GCJ
brynercb91a2f2006-08-25 21:14:45 +000016653 compiler_flags=-v
16654 linker_flags=-v
16655 verstring=
16656 output_objdir=.
16657 libname=conftest
16658 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16659 allow_undefined_flag_GCJ=
16660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16661 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }
16665 then
16666 archive_cmds_need_lc_GCJ=no
16667 else
16668 archive_cmds_need_lc_GCJ=yes
16669 fi
16670 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16671 else
16672 cat conftest.err 1>&5
16673 fi
16674 $rm conftest*
16675 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16676echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16677 ;;
16678 esac
16679 fi
16680 ;;
16681esac
16682
16683echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16684echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16685library_names_spec=
16686libname_spec='lib$name'
16687soname_spec=
16688shrext_cmds=".so"
16689postinstall_cmds=
16690postuninstall_cmds=
16691finish_cmds=
16692finish_eval=
16693shlibpath_var=
16694shlibpath_overrides_runpath=unknown
16695version_type=none
16696dynamic_linker="$host_os ld.so"
16697sys_lib_dlsearch_path_spec="/lib /usr/lib"
16698if test "$GCC" = yes; then
16699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16700 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16701 # if the path contains ";" then we assume it to be the separator
16702 # otherwise default to the standard path separator (i.e. ":") - it is
16703 # assumed that no part of a normal pathname contains ";" but that should
16704 # okay in the real world where ";" in dirpaths is itself problematic.
16705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16706 else
16707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16708 fi
16709else
16710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16711fi
16712need_lib_prefix=unknown
16713hardcode_into_libs=no
16714
16715# when you set need_version to no, make sure it does not cause -set_version
16716# flags to be left without arguments
16717need_version=unknown
16718
16719case $host_os in
16720aix3*)
16721 version_type=linux
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16723 shlibpath_var=LIBPATH
16724
16725 # AIX 3 has no versioning support, so we append a major version to the name.
16726 soname_spec='${libname}${release}${shared_ext}$major'
16727 ;;
16728
16729aix4* | aix5*)
16730 version_type=linux
16731 need_lib_prefix=no
16732 need_version=no
16733 hardcode_into_libs=yes
16734 if test "$host_cpu" = ia64; then
16735 # AIX 5 supports IA64
16736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 else
16739 # With GCC up to 2.95.x, collect2 would create an import file
16740 # for dependence libraries. The import file would start with
16741 # the line `#! .'. This would cause the generated library to
16742 # depend on `.', always an invalid library. This was fixed in
16743 # development snapshots of GCC prior to 3.0.
16744 case $host_os in
16745 aix4 | aix4.[01] | aix4.[01].*)
16746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16747 echo ' yes '
16748 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16749 :
16750 else
16751 can_build_shared=no
16752 fi
16753 ;;
16754 esac
16755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16756 # soname into executable. Probably we can add versioning support to
16757 # collect2, so additional links can be useful in future.
16758 if test "$aix_use_runtimelinking" = yes; then
16759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16760 # instead of lib<name>.a to let people know that these are not
16761 # typical AIX shared libraries.
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16763 else
16764 # We preserve .a as extension for shared libraries through AIX4.2
16765 # and later when we are not doing run time linking.
16766 library_names_spec='${libname}${release}.a $libname.a'
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 fi
16769 shlibpath_var=LIBPATH
16770 fi
16771 ;;
16772
16773amigaos*)
16774 library_names_spec='$libname.ixlibrary $libname.a'
16775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16776 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'
16777 ;;
16778
16779beos*)
16780 library_names_spec='${libname}${shared_ext}'
16781 dynamic_linker="$host_os ld.so"
16782 shlibpath_var=LIBRARY_PATH
16783 ;;
16784
mmentovai3261e8b2006-09-06 02:56:44 +000016785bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000016786 version_type=linux
16787 need_version=no
16788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16794 # the default ld.so.conf also contains /usr/contrib/lib and
16795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16796 # libtool to hard-code these into programs
16797 ;;
16798
16799cygwin* | mingw* | pw32*)
16800 version_type=windows
16801 shrext_cmds=".dll"
16802 need_version=no
16803 need_lib_prefix=no
16804
16805 case $GCC,$host_os in
16806 yes,cygwin* | yes,mingw* | yes,pw32*)
16807 library_names_spec='$libname.dll.a'
16808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16809 postinstall_cmds='base_file=`basename \${file}`~
16810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16811 dldir=$destdir/`dirname \$dlpath`~
16812 test -d \$dldir || mkdir -p \$dldir~
mmentovai3261e8b2006-09-06 02:56:44 +000016813 $install_prog $dir/$dlname \$dldir/$dlname~
16814 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000016815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16816 dlpath=$dir/\$dldll~
16817 $rm \$dlpath'
16818 shlibpath_overrides_runpath=yes
16819
16820 case $host_os in
16821 cygwin*)
16822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16823 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16824 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16825 ;;
16826 mingw*)
16827 # MinGW DLLs use traditional 'lib' prefix
16828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16830 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16831 # It is most probably a Windows format PATH printed by
16832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16833 # path with ; separators, and with drive letters. We can handle the
16834 # drive letters (cygwin fileutils understands them), so leave them,
16835 # especially as we might pass files found there to a mingw objdump,
16836 # which wouldn't understand a cygwinified path. Ahh.
16837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16838 else
16839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16840 fi
16841 ;;
16842 pw32*)
16843 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai3261e8b2006-09-06 02:56:44 +000016844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000016845 ;;
16846 esac
16847 ;;
16848
16849 *)
16850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16851 ;;
16852 esac
16853 dynamic_linker='Win32 ld.exe'
16854 # FIXME: first we should search . and the directory the executable is in
16855 shlibpath_var=PATH
16856 ;;
16857
16858darwin* | rhapsody*)
16859 dynamic_linker="$host_os dyld"
16860 version_type=darwin
16861 need_lib_prefix=no
16862 need_version=no
16863 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16864 soname_spec='${libname}${release}${major}$shared_ext'
16865 shlibpath_overrides_runpath=yes
16866 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai3261e8b2006-09-06 02:56:44 +000016867 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000016868 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16869 if test "$GCC" = yes; then
16870 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"`
16871 else
16872 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16873 fi
16874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16875 ;;
16876
16877dgux*)
16878 version_type=linux
16879 need_lib_prefix=no
16880 need_version=no
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 ;;
16885
16886freebsd1*)
16887 dynamic_linker=no
16888 ;;
16889
16890kfreebsd*-gnu)
16891 version_type=linux
16892 need_lib_prefix=no
16893 need_version=no
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 shlibpath_overrides_runpath=no
16898 hardcode_into_libs=yes
16899 dynamic_linker='GNU ld.so'
16900 ;;
16901
mmentovai3261e8b2006-09-06 02:56:44 +000016902freebsd* | dragonfly*)
16903 # DragonFly does not have aout. When/if they implement a new
16904 # versioning mechanism, adjust this.
16905 if test -x /usr/bin/objformat; then
16906 objformat=`/usr/bin/objformat`
16907 else
16908 case $host_os in
16909 freebsd[123]*) objformat=aout ;;
16910 *) objformat=elf ;;
16911 esac
16912 fi
brynercb91a2f2006-08-25 21:14:45 +000016913 version_type=freebsd-$objformat
16914 case $version_type in
16915 freebsd-elf*)
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16917 need_version=no
16918 need_lib_prefix=no
16919 ;;
16920 freebsd-*)
16921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16922 need_version=yes
16923 ;;
16924 esac
16925 shlibpath_var=LD_LIBRARY_PATH
16926 case $host_os in
16927 freebsd2*)
16928 shlibpath_overrides_runpath=yes
16929 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000016930 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000016931 shlibpath_overrides_runpath=yes
16932 hardcode_into_libs=yes
16933 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000016934 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16935 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000016936 shlibpath_overrides_runpath=no
16937 hardcode_into_libs=yes
16938 ;;
mmentovai3261e8b2006-09-06 02:56:44 +000016939 freebsd*) # from 4.6 on
16940 shlibpath_overrides_runpath=yes
16941 hardcode_into_libs=yes
16942 ;;
brynercb91a2f2006-08-25 21:14:45 +000016943 esac
16944 ;;
16945
16946gnu*)
16947 version_type=linux
16948 need_lib_prefix=no
16949 need_version=no
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 shlibpath_var=LD_LIBRARY_PATH
16953 hardcode_into_libs=yes
16954 ;;
16955
16956hpux9* | hpux10* | hpux11*)
16957 # Give a soname corresponding to the major version so that dld.sl refuses to
16958 # link against other versions.
16959 version_type=sunos
16960 need_lib_prefix=no
16961 need_version=no
mmentovai3261e8b2006-09-06 02:56:44 +000016962 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016963 ia64*)
16964 shrext_cmds='.so'
16965 hardcode_into_libs=yes
16966 dynamic_linker="$host_os dld.so"
16967 shlibpath_var=LD_LIBRARY_PATH
16968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970 soname_spec='${libname}${release}${shared_ext}$major'
16971 if test "X$HPUX_IA64_MODE" = X32; then
16972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16973 else
16974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16975 fi
16976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16977 ;;
16978 hppa*64*)
16979 shrext_cmds='.sl'
16980 hardcode_into_libs=yes
16981 dynamic_linker="$host_os dld.sl"
16982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16985 soname_spec='${libname}${release}${shared_ext}$major'
16986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16988 ;;
16989 *)
16990 shrext_cmds='.sl'
16991 dynamic_linker="$host_os dld.sl"
16992 shlibpath_var=SHLIB_PATH
16993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 ;;
16997 esac
16998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16999 postinstall_cmds='chmod 555 $lib'
17000 ;;
17001
mmentovai3261e8b2006-09-06 02:56:44 +000017002interix3*)
17003 version_type=linux
17004 need_lib_prefix=no
17005 need_version=no
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17009 shlibpath_var=LD_LIBRARY_PATH
17010 shlibpath_overrides_runpath=no
17011 hardcode_into_libs=yes
17012 ;;
17013
brynercb91a2f2006-08-25 21:14:45 +000017014irix5* | irix6* | nonstopux*)
17015 case $host_os in
17016 nonstopux*) version_type=nonstopux ;;
17017 *)
17018 if test "$lt_cv_prog_gnu_ld" = yes; then
17019 version_type=linux
17020 else
17021 version_type=irix
17022 fi ;;
17023 esac
17024 need_lib_prefix=no
17025 need_version=no
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17028 case $host_os in
17029 irix5* | nonstopux*)
17030 libsuff= shlibsuff=
17031 ;;
17032 *)
17033 case $LD in # libtool.m4 will add one of these switches to LD
17034 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17035 libsuff= shlibsuff= libmagic=32-bit;;
17036 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17037 libsuff=32 shlibsuff=N32 libmagic=N32;;
17038 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17039 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17040 *) libsuff= shlibsuff= libmagic=never-match;;
17041 esac
17042 ;;
17043 esac
17044 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17045 shlibpath_overrides_runpath=no
17046 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17047 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17048 hardcode_into_libs=yes
17049 ;;
17050
17051# No shared lib support for Linux oldld, aout, or coff.
17052linux*oldld* | linux*aout* | linux*coff*)
17053 dynamic_linker=no
17054 ;;
17055
17056# This must be Linux ELF.
17057linux*)
17058 version_type=linux
17059 need_lib_prefix=no
17060 need_version=no
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 soname_spec='${libname}${release}${shared_ext}$major'
17063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17064 shlibpath_var=LD_LIBRARY_PATH
17065 shlibpath_overrides_runpath=no
17066 # This implies no fast_install, which is unacceptable.
17067 # Some rework will be needed to allow for fast_install
17068 # before this can be enabled.
17069 hardcode_into_libs=yes
17070
17071 # Append ld.so.conf contents to the search path
17072 if test -f /etc/ld.so.conf; then
mmentovai3261e8b2006-09-06 02:56:44 +000017073 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000017074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17075 fi
17076
17077 # We used to test for /lib/ld.so.1 and disable shared libraries on
17078 # powerpc, because MkLinux only supported shared libraries with the
17079 # GNU dynamic linker. Since this was broken with cross compilers,
17080 # most powerpc-linux boxes support dynamic linking these days and
17081 # people can always --disable-shared, the test was removed, and we
17082 # assume the GNU/Linux dynamic linker is in use.
17083 dynamic_linker='GNU/Linux ld.so'
17084 ;;
17085
brynercb91a2f2006-08-25 21:14:45 +000017086knetbsd*-gnu)
17087 version_type=linux
17088 need_lib_prefix=no
17089 need_version=no
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17091 soname_spec='${libname}${release}${shared_ext}$major'
17092 shlibpath_var=LD_LIBRARY_PATH
17093 shlibpath_overrides_runpath=no
17094 hardcode_into_libs=yes
17095 dynamic_linker='GNU ld.so'
17096 ;;
17097
17098netbsd*)
17099 version_type=sunos
17100 need_lib_prefix=no
17101 need_version=no
17102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17105 dynamic_linker='NetBSD (a.out) ld.so'
17106 else
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 dynamic_linker='NetBSD ld.elf_so'
17110 fi
17111 shlibpath_var=LD_LIBRARY_PATH
17112 shlibpath_overrides_runpath=yes
17113 hardcode_into_libs=yes
17114 ;;
17115
17116newsos6)
17117 version_type=linux
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes
17121 ;;
17122
17123nto-qnx*)
17124 version_type=linux
17125 need_lib_prefix=no
17126 need_version=no
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17130 shlibpath_overrides_runpath=yes
17131 ;;
17132
17133openbsd*)
17134 version_type=sunos
mmentovai3261e8b2006-09-06 02:56:44 +000017135 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000017136 need_lib_prefix=no
mmentovai3261e8b2006-09-06 02:56:44 +000017137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17138 case $host_os in
17139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17140 *) need_version=no ;;
17141 esac
brynercb91a2f2006-08-25 21:14:45 +000017142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17144 shlibpath_var=LD_LIBRARY_PATH
17145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17146 case $host_os in
17147 openbsd2.[89] | openbsd2.[89].*)
17148 shlibpath_overrides_runpath=no
17149 ;;
17150 *)
17151 shlibpath_overrides_runpath=yes
17152 ;;
17153 esac
17154 else
17155 shlibpath_overrides_runpath=yes
17156 fi
17157 ;;
17158
17159os2*)
17160 libname_spec='$name'
17161 shrext_cmds=".dll"
17162 need_lib_prefix=no
17163 library_names_spec='$libname${shared_ext} $libname.a'
17164 dynamic_linker='OS/2 ld.exe'
17165 shlibpath_var=LIBPATH
17166 ;;
17167
17168osf3* | osf4* | osf5*)
17169 version_type=osf
17170 need_lib_prefix=no
17171 need_version=no
17172 soname_spec='${libname}${release}${shared_ext}$major'
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174 shlibpath_var=LD_LIBRARY_PATH
17175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17177 ;;
17178
brynercb91a2f2006-08-25 21:14:45 +000017179solaris*)
17180 version_type=linux
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 shlibpath_overrides_runpath=yes
17187 hardcode_into_libs=yes
17188 # ldd complains unless libraries are executable
17189 postinstall_cmds='chmod +x $lib'
17190 ;;
17191
17192sunos4*)
17193 version_type=sunos
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17195 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=yes
17198 if test "$with_gnu_ld" = yes; then
17199 need_lib_prefix=no
17200 fi
17201 need_version=yes
17202 ;;
17203
mmentovai3261e8b2006-09-06 02:56:44 +000017204sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000017205 version_type=linux
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 shlibpath_var=LD_LIBRARY_PATH
17209 case $host_vendor in
17210 sni)
17211 shlibpath_overrides_runpath=no
17212 need_lib_prefix=no
17213 export_dynamic_flag_spec='${wl}-Blargedynsym'
17214 runpath_var=LD_RUN_PATH
17215 ;;
17216 siemens)
17217 need_lib_prefix=no
17218 ;;
17219 motorola)
17220 need_lib_prefix=no
17221 need_version=no
17222 shlibpath_overrides_runpath=no
17223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17224 ;;
17225 esac
17226 ;;
17227
17228sysv4*MP*)
17229 if test -d /usr/nec ;then
17230 version_type=linux
17231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17232 soname_spec='$libname${shared_ext}.$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 fi
17235 ;;
17236
mmentovai3261e8b2006-09-06 02:56:44 +000017237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17238 version_type=freebsd-elf
17239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 hardcode_into_libs=yes
17245 if test "$with_gnu_ld" = yes; then
17246 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17247 shlibpath_overrides_runpath=no
17248 else
17249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17250 shlibpath_overrides_runpath=yes
17251 case $host_os in
17252 sco3.2v5*)
17253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17254 ;;
17255 esac
17256 fi
17257 sys_lib_dlsearch_path_spec='/usr/lib'
17258 ;;
17259
brynercb91a2f2006-08-25 21:14:45 +000017260uts4*)
17261 version_type=linux
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 ;;
17266
17267*)
17268 dynamic_linker=no
17269 ;;
17270esac
17271echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17272echo "${ECHO_T}$dynamic_linker" >&6
17273test "$dynamic_linker" = no && can_build_shared=no
17274
mmentovai3261e8b2006-09-06 02:56:44 +000017275variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17276if test "$GCC" = yes; then
17277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17278fi
17279
brynercb91a2f2006-08-25 21:14:45 +000017280echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17281echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17282hardcode_action_GCJ=
17283if test -n "$hardcode_libdir_flag_spec_GCJ" || \
mmentovai3261e8b2006-09-06 02:56:44 +000017284 test -n "$runpath_var_GCJ" || \
17285 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000017286
17287 # We can hardcode non-existant directories.
17288 if test "$hardcode_direct_GCJ" != no &&
17289 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17290 # have to relink, otherwise we might link with an installed library
17291 # when we should be linking with a yet-to-be-installed one
17292 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17293 test "$hardcode_minus_L_GCJ" != no; then
17294 # Linking always hardcodes the temporary library directory.
17295 hardcode_action_GCJ=relink
17296 else
17297 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17298 hardcode_action_GCJ=immediate
17299 fi
17300else
17301 # We cannot hardcode anything, or else we can only hardcode existing
17302 # directories.
17303 hardcode_action_GCJ=unsupported
17304fi
17305echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17306echo "${ECHO_T}$hardcode_action_GCJ" >&6
17307
17308if test "$hardcode_action_GCJ" = relink; then
17309 # Fast installation is not supported
17310 enable_fast_install=no
17311elif test "$shlibpath_overrides_runpath" = yes ||
17312 test "$enable_shared" = no; then
17313 # Fast installation is not necessary
17314 enable_fast_install=needless
17315fi
17316
brynercb91a2f2006-08-25 21:14:45 +000017317
17318# The else clause should only fire when bootstrapping the
17319# libtool distribution, otherwise you forgot to ship ltmain.sh
17320# with your package, and you will get complaints that there are
17321# no rules to generate ltmain.sh.
17322if test -f "$ltmain"; then
17323 # See if we are running on zsh, and set the options which allow our commands through
17324 # without removal of \ escapes.
17325 if test -n "${ZSH_VERSION+set}" ; then
17326 setopt NO_GLOB_SUBST
17327 fi
17328 # Now quote all the things that may contain metacharacters while being
17329 # careful not to overquote the AC_SUBSTed values. We take copies of the
17330 # variables and quote the copies for generation of the libtool script.
mmentovai3261e8b2006-09-06 02:56:44 +000017331 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000017332 SED SHELL STRIP \
17333 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17334 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17335 deplibs_check_method reload_flag reload_cmds need_locks \
17336 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17337 lt_cv_sys_global_symbol_to_c_name_address \
17338 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17339 old_postinstall_cmds old_postuninstall_cmds \
17340 compiler_GCJ \
17341 CC_GCJ \
17342 LD_GCJ \
17343 lt_prog_compiler_wl_GCJ \
17344 lt_prog_compiler_pic_GCJ \
17345 lt_prog_compiler_static_GCJ \
17346 lt_prog_compiler_no_builtin_flag_GCJ \
17347 export_dynamic_flag_spec_GCJ \
17348 thread_safe_flag_spec_GCJ \
17349 whole_archive_flag_spec_GCJ \
17350 enable_shared_with_static_runtimes_GCJ \
17351 old_archive_cmds_GCJ \
17352 old_archive_from_new_cmds_GCJ \
17353 predep_objects_GCJ \
17354 postdep_objects_GCJ \
17355 predeps_GCJ \
17356 postdeps_GCJ \
17357 compiler_lib_search_path_GCJ \
17358 archive_cmds_GCJ \
17359 archive_expsym_cmds_GCJ \
17360 postinstall_cmds_GCJ \
17361 postuninstall_cmds_GCJ \
17362 old_archive_from_expsyms_cmds_GCJ \
17363 allow_undefined_flag_GCJ \
17364 no_undefined_flag_GCJ \
17365 export_symbols_cmds_GCJ \
17366 hardcode_libdir_flag_spec_GCJ \
17367 hardcode_libdir_flag_spec_ld_GCJ \
17368 hardcode_libdir_separator_GCJ \
17369 hardcode_automatic_GCJ \
17370 module_cmds_GCJ \
17371 module_expsym_cmds_GCJ \
17372 lt_cv_prog_compiler_c_o_GCJ \
17373 exclude_expsyms_GCJ \
17374 include_expsyms_GCJ; do
17375
17376 case $var in
17377 old_archive_cmds_GCJ | \
17378 old_archive_from_new_cmds_GCJ | \
17379 archive_cmds_GCJ | \
17380 archive_expsym_cmds_GCJ | \
17381 module_cmds_GCJ | \
17382 module_expsym_cmds_GCJ | \
17383 old_archive_from_expsyms_cmds_GCJ | \
17384 export_symbols_cmds_GCJ | \
17385 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17386 postinstall_cmds | postuninstall_cmds | \
17387 old_postinstall_cmds | old_postuninstall_cmds | \
17388 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17389 # Double-quote double-evaled strings.
17390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17391 ;;
17392 *)
17393 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17394 ;;
17395 esac
17396 done
17397
17398 case $lt_echo in
17399 *'\$0 --fallback-echo"')
17400 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17401 ;;
17402 esac
17403
17404cfgfile="$ofile"
17405
17406 cat <<__EOF__ >> "$cfgfile"
17407# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17408
17409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17410
17411# Shell to use when invoking shell scripts.
17412SHELL=$lt_SHELL
17413
17414# Whether or not to build shared libraries.
17415build_libtool_libs=$enable_shared
17416
17417# Whether or not to build static libraries.
17418build_old_libs=$enable_static
17419
17420# Whether or not to add -lc for building shared libraries.
17421build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17422
17423# Whether or not to disallow shared libs when runtime libs are static
17424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17425
17426# Whether or not to optimize for fast installation.
17427fast_install=$enable_fast_install
17428
17429# The host system.
17430host_alias=$host_alias
17431host=$host
mmentovai3261e8b2006-09-06 02:56:44 +000017432host_os=$host_os
17433
17434# The build system.
17435build_alias=$build_alias
17436build=$build
17437build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000017438
17439# An echo program that does not interpret backslashes.
17440echo=$lt_echo
17441
17442# The archiver.
17443AR=$lt_AR
17444AR_FLAGS=$lt_AR_FLAGS
17445
17446# A C compiler.
17447LTCC=$lt_LTCC
17448
mmentovai3261e8b2006-09-06 02:56:44 +000017449# LTCC compiler flags.
17450LTCFLAGS=$lt_LTCFLAGS
17451
brynercb91a2f2006-08-25 21:14:45 +000017452# A language-specific compiler.
17453CC=$lt_compiler_GCJ
17454
17455# Is the compiler the GNU C compiler?
17456with_gcc=$GCC_GCJ
17457
17458# An ERE matcher.
17459EGREP=$lt_EGREP
17460
17461# The linker used to build libraries.
17462LD=$lt_LD_GCJ
17463
17464# Whether we need hard or soft links.
17465LN_S=$lt_LN_S
17466
17467# A BSD-compatible nm program.
17468NM=$lt_NM
17469
17470# A symbol stripping program
17471STRIP=$lt_STRIP
17472
17473# Used to examine libraries when file_magic_cmd begins "file"
17474MAGIC_CMD=$MAGIC_CMD
17475
17476# Used on cygwin: DLL creation program.
17477DLLTOOL="$DLLTOOL"
17478
17479# Used on cygwin: object dumper.
17480OBJDUMP="$OBJDUMP"
17481
17482# Used on cygwin: assembler.
17483AS="$AS"
17484
17485# The name of the directory that contains temporary libtool files.
17486objdir=$objdir
17487
17488# How to create reloadable object files.
17489reload_flag=$lt_reload_flag
17490reload_cmds=$lt_reload_cmds
17491
17492# How to pass a linker flag through the compiler.
17493wl=$lt_lt_prog_compiler_wl_GCJ
17494
17495# Object file suffix (normally "o").
17496objext="$ac_objext"
17497
17498# Old archive suffix (normally "a").
17499libext="$libext"
17500
17501# Shared library suffix (normally ".so").
17502shrext_cmds='$shrext_cmds'
17503
17504# Executable file suffix (normally "").
17505exeext="$exeext"
17506
17507# Additional compiler flags for building library objects.
17508pic_flag=$lt_lt_prog_compiler_pic_GCJ
17509pic_mode=$pic_mode
17510
17511# What is the maximum length of a command?
17512max_cmd_len=$lt_cv_sys_max_cmd_len
17513
17514# Does compiler simultaneously support -c and -o options?
17515compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17516
mmentovai3261e8b2006-09-06 02:56:44 +000017517# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000017518need_locks=$lt_need_locks
17519
17520# Do we need the lib prefix for modules?
17521need_lib_prefix=$need_lib_prefix
17522
17523# Do we need a version for libraries?
17524need_version=$need_version
17525
17526# Whether dlopen is supported.
17527dlopen_support=$enable_dlopen
17528
17529# Whether dlopen of programs is supported.
17530dlopen_self=$enable_dlopen_self
17531
17532# Whether dlopen of statically linked programs is supported.
17533dlopen_self_static=$enable_dlopen_self_static
17534
17535# Compiler flag to prevent dynamic linking.
17536link_static_flag=$lt_lt_prog_compiler_static_GCJ
17537
17538# Compiler flag to turn off builtin functions.
17539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17540
17541# Compiler flag to allow reflexive dlopens.
17542export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17543
17544# Compiler flag to generate shared objects directly from archives.
17545whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17546
17547# Compiler flag to generate thread-safe objects.
17548thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17549
17550# Library versioning type.
17551version_type=$version_type
17552
17553# Format of library name prefix.
17554libname_spec=$lt_libname_spec
17555
17556# List of archive names. First name is the real one, the rest are links.
17557# The last name is the one that the linker finds with -lNAME.
17558library_names_spec=$lt_library_names_spec
17559
17560# The coded name of the library, if different from the real name.
17561soname_spec=$lt_soname_spec
17562
17563# Commands used to build and install an old-style archive.
17564RANLIB=$lt_RANLIB
17565old_archive_cmds=$lt_old_archive_cmds_GCJ
17566old_postinstall_cmds=$lt_old_postinstall_cmds
17567old_postuninstall_cmds=$lt_old_postuninstall_cmds
17568
17569# Create an old-style archive from a shared archive.
17570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17571
17572# Create a temporary old-style archive to link instead of a shared archive.
17573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17574
17575# Commands used to build and install a shared archive.
17576archive_cmds=$lt_archive_cmds_GCJ
17577archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17578postinstall_cmds=$lt_postinstall_cmds
17579postuninstall_cmds=$lt_postuninstall_cmds
17580
17581# Commands used to build a loadable module (assumed same as above if empty)
17582module_cmds=$lt_module_cmds_GCJ
17583module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17584
17585# Commands to strip libraries.
17586old_striplib=$lt_old_striplib
17587striplib=$lt_striplib
17588
17589# Dependencies to place before the objects being linked to create a
17590# shared library.
17591predep_objects=$lt_predep_objects_GCJ
17592
17593# Dependencies to place after the objects being linked to create a
17594# shared library.
17595postdep_objects=$lt_postdep_objects_GCJ
17596
17597# Dependencies to place before the objects being linked to create a
17598# shared library.
17599predeps=$lt_predeps_GCJ
17600
17601# Dependencies to place after the objects being linked to create a
17602# shared library.
17603postdeps=$lt_postdeps_GCJ
17604
17605# The library search path used internally by the compiler when linking
17606# a shared library.
17607compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17608
17609# Method to check whether dependent libraries are shared objects.
17610deplibs_check_method=$lt_deplibs_check_method
17611
17612# Command to use when deplibs_check_method == file_magic.
17613file_magic_cmd=$lt_file_magic_cmd
17614
17615# Flag that allows shared libraries with undefined symbols to be built.
17616allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17617
17618# Flag that forces no undefined symbols.
17619no_undefined_flag=$lt_no_undefined_flag_GCJ
17620
17621# Commands used to finish a libtool library installation in a directory.
17622finish_cmds=$lt_finish_cmds
17623
17624# Same as above, but a single script fragment to be evaled but not shown.
17625finish_eval=$lt_finish_eval
17626
17627# Take the output of nm and produce a listing of raw symbols and C names.
17628global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17629
17630# Transform the output of nm in a proper C declaration
17631global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17632
17633# Transform the output of nm in a C name address pair
17634global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17635
17636# This is the shared library runtime path variable.
17637runpath_var=$runpath_var
17638
17639# This is the shared library path variable.
17640shlibpath_var=$shlibpath_var
17641
17642# Is shlibpath searched before the hard-coded library search path?
17643shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17644
17645# How to hardcode a shared library path into an executable.
17646hardcode_action=$hardcode_action_GCJ
17647
17648# Whether we should hardcode library paths into libraries.
17649hardcode_into_libs=$hardcode_into_libs
17650
17651# Flag to hardcode \$libdir into a binary during linking.
17652# This must work even if \$libdir does not exist.
17653hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17654
17655# If ld is used when linking, flag to hardcode \$libdir into
17656# a binary during linking. This must work even if \$libdir does
17657# not exist.
17658hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17659
17660# Whether we need a single -rpath flag with a separated argument.
17661hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17662
17663# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17664# resulting binary.
17665hardcode_direct=$hardcode_direct_GCJ
17666
17667# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17668# resulting binary.
17669hardcode_minus_L=$hardcode_minus_L_GCJ
17670
17671# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17672# the resulting binary.
17673hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17674
17675# Set to yes if building a shared library automatically hardcodes DIR into the library
17676# and all subsequent libraries and executables linked against it.
17677hardcode_automatic=$hardcode_automatic_GCJ
17678
17679# Variables whose values should be saved in libtool wrapper scripts and
17680# restored at relink time.
17681variables_saved_for_relink="$variables_saved_for_relink"
17682
17683# Whether libtool must link a program against all its dependency libraries.
17684link_all_deplibs=$link_all_deplibs_GCJ
17685
17686# Compile-time system search path for libraries
17687sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17688
17689# Run-time system search path for libraries
17690sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17691
17692# Fix the shell variable \$srcfile for the compiler.
17693fix_srcfile_path="$fix_srcfile_path_GCJ"
17694
17695# Set to yes if exported symbols are required.
17696always_export_symbols=$always_export_symbols_GCJ
17697
17698# The commands to list exported symbols.
17699export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17700
17701# The commands to extract the exported symbol list from a shared archive.
17702extract_expsyms_cmds=$lt_extract_expsyms_cmds
17703
17704# Symbols that should not be listed in the preloaded symbols.
17705exclude_expsyms=$lt_exclude_expsyms_GCJ
17706
17707# Symbols that must always be exported.
17708include_expsyms=$lt_include_expsyms_GCJ
17709
17710# ### END LIBTOOL TAG CONFIG: $tagname
17711
17712__EOF__
17713
17714
17715else
17716 # If there is no Makefile yet, we rely on a make rule to execute
17717 # `config.status --recheck' to rerun these tests and create the
17718 # libtool script then.
17719 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17720 if test -f "$ltmain_in"; then
17721 test -f Makefile && make "$ltmain"
17722 fi
17723fi
17724
17725
17726ac_ext=c
17727ac_cpp='$CPP $CPPFLAGS'
17728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17730ac_compiler_gnu=$ac_cv_c_compiler_gnu
17731
17732CC="$lt_save_CC"
17733
17734 else
17735 tagname=""
17736 fi
17737 ;;
17738
17739 RC)
17740
17741
17742
17743# Source file extension for RC test sources.
17744ac_ext=rc
17745
17746# Object file extension for compiled RC test sources.
17747objext=o
17748objext_RC=$objext
17749
17750# Code to be used in simple compile tests
17751lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17752
17753# Code to be used in simple link tests
17754lt_simple_link_test_code="$lt_simple_compile_test_code"
17755
17756# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17757
17758# If no C compiler was specified, use CC.
17759LTCC=${LTCC-"$CC"}
17760
mmentovai3261e8b2006-09-06 02:56:44 +000017761# If no C compiler flags were specified, use CFLAGS.
17762LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17763
brynercb91a2f2006-08-25 21:14:45 +000017764# Allow CC to be a program name with arguments.
17765compiler=$CC
17766
17767
mmentovai3261e8b2006-09-06 02:56:44 +000017768# save warnings/boilerplate of simple test code
17769ac_outfile=conftest.$ac_objext
17770printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17771eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17772_lt_compiler_boilerplate=`cat conftest.err`
17773$rm conftest*
17774
17775ac_outfile=conftest.$ac_objext
17776printf "$lt_simple_link_test_code" >conftest.$ac_ext
17777eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17778_lt_linker_boilerplate=`cat conftest.err`
17779$rm conftest*
17780
17781
brynercb91a2f2006-08-25 21:14:45 +000017782# Allow CC to be a program name with arguments.
17783lt_save_CC="$CC"
17784CC=${RC-"windres"}
17785compiler=$CC
17786compiler_RC=$CC
mmentovai3261e8b2006-09-06 02:56:44 +000017787for cc_temp in $compiler""; do
17788 case $cc_temp in
17789 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17790 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17791 \-*) ;;
17792 *) break;;
17793 esac
17794done
17795cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17796
brynercb91a2f2006-08-25 21:14:45 +000017797lt_cv_prog_compiler_c_o_RC=yes
17798
17799# The else clause should only fire when bootstrapping the
17800# libtool distribution, otherwise you forgot to ship ltmain.sh
17801# with your package, and you will get complaints that there are
17802# no rules to generate ltmain.sh.
17803if test -f "$ltmain"; then
17804 # See if we are running on zsh, and set the options which allow our commands through
17805 # without removal of \ escapes.
17806 if test -n "${ZSH_VERSION+set}" ; then
17807 setopt NO_GLOB_SUBST
17808 fi
17809 # Now quote all the things that may contain metacharacters while being
17810 # careful not to overquote the AC_SUBSTed values. We take copies of the
17811 # variables and quote the copies for generation of the libtool script.
mmentovai3261e8b2006-09-06 02:56:44 +000017812 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000017813 SED SHELL STRIP \
17814 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17815 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17816 deplibs_check_method reload_flag reload_cmds need_locks \
17817 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17818 lt_cv_sys_global_symbol_to_c_name_address \
17819 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17820 old_postinstall_cmds old_postuninstall_cmds \
17821 compiler_RC \
17822 CC_RC \
17823 LD_RC \
17824 lt_prog_compiler_wl_RC \
17825 lt_prog_compiler_pic_RC \
17826 lt_prog_compiler_static_RC \
17827 lt_prog_compiler_no_builtin_flag_RC \
17828 export_dynamic_flag_spec_RC \
17829 thread_safe_flag_spec_RC \
17830 whole_archive_flag_spec_RC \
17831 enable_shared_with_static_runtimes_RC \
17832 old_archive_cmds_RC \
17833 old_archive_from_new_cmds_RC \
17834 predep_objects_RC \
17835 postdep_objects_RC \
17836 predeps_RC \
17837 postdeps_RC \
17838 compiler_lib_search_path_RC \
17839 archive_cmds_RC \
17840 archive_expsym_cmds_RC \
17841 postinstall_cmds_RC \
17842 postuninstall_cmds_RC \
17843 old_archive_from_expsyms_cmds_RC \
17844 allow_undefined_flag_RC \
17845 no_undefined_flag_RC \
17846 export_symbols_cmds_RC \
17847 hardcode_libdir_flag_spec_RC \
17848 hardcode_libdir_flag_spec_ld_RC \
17849 hardcode_libdir_separator_RC \
17850 hardcode_automatic_RC \
17851 module_cmds_RC \
17852 module_expsym_cmds_RC \
17853 lt_cv_prog_compiler_c_o_RC \
17854 exclude_expsyms_RC \
17855 include_expsyms_RC; do
17856
17857 case $var in
17858 old_archive_cmds_RC | \
17859 old_archive_from_new_cmds_RC | \
17860 archive_cmds_RC | \
17861 archive_expsym_cmds_RC | \
17862 module_cmds_RC | \
17863 module_expsym_cmds_RC | \
17864 old_archive_from_expsyms_cmds_RC | \
17865 export_symbols_cmds_RC | \
17866 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17867 postinstall_cmds | postuninstall_cmds | \
17868 old_postinstall_cmds | old_postuninstall_cmds | \
17869 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17870 # Double-quote double-evaled strings.
17871 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17872 ;;
17873 *)
17874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17875 ;;
17876 esac
17877 done
17878
17879 case $lt_echo in
17880 *'\$0 --fallback-echo"')
17881 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17882 ;;
17883 esac
17884
17885cfgfile="$ofile"
17886
17887 cat <<__EOF__ >> "$cfgfile"
17888# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17889
17890# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17891
17892# Shell to use when invoking shell scripts.
17893SHELL=$lt_SHELL
17894
17895# Whether or not to build shared libraries.
17896build_libtool_libs=$enable_shared
17897
17898# Whether or not to build static libraries.
17899build_old_libs=$enable_static
17900
17901# Whether or not to add -lc for building shared libraries.
17902build_libtool_need_lc=$archive_cmds_need_lc_RC
17903
17904# Whether or not to disallow shared libs when runtime libs are static
17905allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17906
17907# Whether or not to optimize for fast installation.
17908fast_install=$enable_fast_install
17909
17910# The host system.
17911host_alias=$host_alias
17912host=$host
mmentovai3261e8b2006-09-06 02:56:44 +000017913host_os=$host_os
17914
17915# The build system.
17916build_alias=$build_alias
17917build=$build
17918build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000017919
17920# An echo program that does not interpret backslashes.
17921echo=$lt_echo
17922
17923# The archiver.
17924AR=$lt_AR
17925AR_FLAGS=$lt_AR_FLAGS
17926
17927# A C compiler.
17928LTCC=$lt_LTCC
17929
mmentovai3261e8b2006-09-06 02:56:44 +000017930# LTCC compiler flags.
17931LTCFLAGS=$lt_LTCFLAGS
17932
brynercb91a2f2006-08-25 21:14:45 +000017933# A language-specific compiler.
17934CC=$lt_compiler_RC
17935
17936# Is the compiler the GNU C compiler?
17937with_gcc=$GCC_RC
17938
17939# An ERE matcher.
17940EGREP=$lt_EGREP
17941
17942# The linker used to build libraries.
17943LD=$lt_LD_RC
17944
17945# Whether we need hard or soft links.
17946LN_S=$lt_LN_S
17947
17948# A BSD-compatible nm program.
17949NM=$lt_NM
17950
17951# A symbol stripping program
17952STRIP=$lt_STRIP
17953
17954# Used to examine libraries when file_magic_cmd begins "file"
17955MAGIC_CMD=$MAGIC_CMD
17956
17957# Used on cygwin: DLL creation program.
17958DLLTOOL="$DLLTOOL"
17959
17960# Used on cygwin: object dumper.
17961OBJDUMP="$OBJDUMP"
17962
17963# Used on cygwin: assembler.
17964AS="$AS"
17965
17966# The name of the directory that contains temporary libtool files.
17967objdir=$objdir
17968
17969# How to create reloadable object files.
17970reload_flag=$lt_reload_flag
17971reload_cmds=$lt_reload_cmds
17972
17973# How to pass a linker flag through the compiler.
17974wl=$lt_lt_prog_compiler_wl_RC
17975
17976# Object file suffix (normally "o").
17977objext="$ac_objext"
17978
17979# Old archive suffix (normally "a").
17980libext="$libext"
17981
17982# Shared library suffix (normally ".so").
17983shrext_cmds='$shrext_cmds'
17984
17985# Executable file suffix (normally "").
17986exeext="$exeext"
17987
17988# Additional compiler flags for building library objects.
17989pic_flag=$lt_lt_prog_compiler_pic_RC
17990pic_mode=$pic_mode
17991
17992# What is the maximum length of a command?
17993max_cmd_len=$lt_cv_sys_max_cmd_len
17994
17995# Does compiler simultaneously support -c and -o options?
17996compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17997
mmentovai3261e8b2006-09-06 02:56:44 +000017998# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000017999need_locks=$lt_need_locks
18000
18001# Do we need the lib prefix for modules?
18002need_lib_prefix=$need_lib_prefix
18003
18004# Do we need a version for libraries?
18005need_version=$need_version
18006
18007# Whether dlopen is supported.
18008dlopen_support=$enable_dlopen
18009
18010# Whether dlopen of programs is supported.
18011dlopen_self=$enable_dlopen_self
18012
18013# Whether dlopen of statically linked programs is supported.
18014dlopen_self_static=$enable_dlopen_self_static
18015
18016# Compiler flag to prevent dynamic linking.
18017link_static_flag=$lt_lt_prog_compiler_static_RC
18018
18019# Compiler flag to turn off builtin functions.
18020no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18021
18022# Compiler flag to allow reflexive dlopens.
18023export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18024
18025# Compiler flag to generate shared objects directly from archives.
18026whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18027
18028# Compiler flag to generate thread-safe objects.
18029thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18030
18031# Library versioning type.
18032version_type=$version_type
18033
18034# Format of library name prefix.
18035libname_spec=$lt_libname_spec
18036
18037# List of archive names. First name is the real one, the rest are links.
18038# The last name is the one that the linker finds with -lNAME.
18039library_names_spec=$lt_library_names_spec
18040
18041# The coded name of the library, if different from the real name.
18042soname_spec=$lt_soname_spec
18043
18044# Commands used to build and install an old-style archive.
18045RANLIB=$lt_RANLIB
18046old_archive_cmds=$lt_old_archive_cmds_RC
18047old_postinstall_cmds=$lt_old_postinstall_cmds
18048old_postuninstall_cmds=$lt_old_postuninstall_cmds
18049
18050# Create an old-style archive from a shared archive.
18051old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18052
18053# Create a temporary old-style archive to link instead of a shared archive.
18054old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18055
18056# Commands used to build and install a shared archive.
18057archive_cmds=$lt_archive_cmds_RC
18058archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18059postinstall_cmds=$lt_postinstall_cmds
18060postuninstall_cmds=$lt_postuninstall_cmds
18061
18062# Commands used to build a loadable module (assumed same as above if empty)
18063module_cmds=$lt_module_cmds_RC
18064module_expsym_cmds=$lt_module_expsym_cmds_RC
18065
18066# Commands to strip libraries.
18067old_striplib=$lt_old_striplib
18068striplib=$lt_striplib
18069
18070# Dependencies to place before the objects being linked to create a
18071# shared library.
18072predep_objects=$lt_predep_objects_RC
18073
18074# Dependencies to place after the objects being linked to create a
18075# shared library.
18076postdep_objects=$lt_postdep_objects_RC
18077
18078# Dependencies to place before the objects being linked to create a
18079# shared library.
18080predeps=$lt_predeps_RC
18081
18082# Dependencies to place after the objects being linked to create a
18083# shared library.
18084postdeps=$lt_postdeps_RC
18085
18086# The library search path used internally by the compiler when linking
18087# a shared library.
18088compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18089
18090# Method to check whether dependent libraries are shared objects.
18091deplibs_check_method=$lt_deplibs_check_method
18092
18093# Command to use when deplibs_check_method == file_magic.
18094file_magic_cmd=$lt_file_magic_cmd
18095
18096# Flag that allows shared libraries with undefined symbols to be built.
18097allow_undefined_flag=$lt_allow_undefined_flag_RC
18098
18099# Flag that forces no undefined symbols.
18100no_undefined_flag=$lt_no_undefined_flag_RC
18101
18102# Commands used to finish a libtool library installation in a directory.
18103finish_cmds=$lt_finish_cmds
18104
18105# Same as above, but a single script fragment to be evaled but not shown.
18106finish_eval=$lt_finish_eval
18107
18108# Take the output of nm and produce a listing of raw symbols and C names.
18109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18110
18111# Transform the output of nm in a proper C declaration
18112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18113
18114# Transform the output of nm in a C name address pair
18115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18116
18117# This is the shared library runtime path variable.
18118runpath_var=$runpath_var
18119
18120# This is the shared library path variable.
18121shlibpath_var=$shlibpath_var
18122
18123# Is shlibpath searched before the hard-coded library search path?
18124shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18125
18126# How to hardcode a shared library path into an executable.
18127hardcode_action=$hardcode_action_RC
18128
18129# Whether we should hardcode library paths into libraries.
18130hardcode_into_libs=$hardcode_into_libs
18131
18132# Flag to hardcode \$libdir into a binary during linking.
18133# This must work even if \$libdir does not exist.
18134hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18135
18136# If ld is used when linking, flag to hardcode \$libdir into
18137# a binary during linking. This must work even if \$libdir does
18138# not exist.
18139hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18140
18141# Whether we need a single -rpath flag with a separated argument.
18142hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18143
18144# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18145# resulting binary.
18146hardcode_direct=$hardcode_direct_RC
18147
18148# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18149# resulting binary.
18150hardcode_minus_L=$hardcode_minus_L_RC
18151
18152# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18153# the resulting binary.
18154hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18155
18156# Set to yes if building a shared library automatically hardcodes DIR into the library
18157# and all subsequent libraries and executables linked against it.
18158hardcode_automatic=$hardcode_automatic_RC
18159
18160# Variables whose values should be saved in libtool wrapper scripts and
18161# restored at relink time.
18162variables_saved_for_relink="$variables_saved_for_relink"
18163
18164# Whether libtool must link a program against all its dependency libraries.
18165link_all_deplibs=$link_all_deplibs_RC
18166
18167# Compile-time system search path for libraries
18168sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18169
18170# Run-time system search path for libraries
18171sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18172
18173# Fix the shell variable \$srcfile for the compiler.
18174fix_srcfile_path="$fix_srcfile_path_RC"
18175
18176# Set to yes if exported symbols are required.
18177always_export_symbols=$always_export_symbols_RC
18178
18179# The commands to list exported symbols.
18180export_symbols_cmds=$lt_export_symbols_cmds_RC
18181
18182# The commands to extract the exported symbol list from a shared archive.
18183extract_expsyms_cmds=$lt_extract_expsyms_cmds
18184
18185# Symbols that should not be listed in the preloaded symbols.
18186exclude_expsyms=$lt_exclude_expsyms_RC
18187
18188# Symbols that must always be exported.
18189include_expsyms=$lt_include_expsyms_RC
18190
18191# ### END LIBTOOL TAG CONFIG: $tagname
18192
18193__EOF__
18194
18195
18196else
18197 # If there is no Makefile yet, we rely on a make rule to execute
18198 # `config.status --recheck' to rerun these tests and create the
18199 # libtool script then.
18200 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18201 if test -f "$ltmain_in"; then
18202 test -f Makefile && make "$ltmain"
18203 fi
18204fi
18205
18206
18207ac_ext=c
18208ac_cpp='$CPP $CPPFLAGS'
18209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18211ac_compiler_gnu=$ac_cv_c_compiler_gnu
18212
18213CC="$lt_save_CC"
18214
18215 ;;
18216
18217 *)
18218 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18219echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18220 { (exit 1); exit 1; }; }
18221 ;;
18222 esac
18223
18224 # Append the new tag name to the list of available tags.
18225 if test -n "$tagname" ; then
18226 available_tags="$available_tags $tagname"
18227 fi
18228 fi
18229 done
18230 IFS="$lt_save_ifs"
18231
18232 # Now substitute the updated list of available tags.
18233 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18234 mv "${ofile}T" "$ofile"
18235 chmod +x "$ofile"
18236 else
18237 rm -f "${ofile}T"
18238 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18239echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18240 { (exit 1); exit 1; }; }
18241 fi
18242fi
18243
18244
18245
18246# This can be used to rebuild libtool when needed
18247LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18248
18249# Always use our own libtool.
18250LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18251
18252# Prevent multiple expansion
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
brynercb91a2f2006-08-25 21:14:45 +000018275echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18276echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18277if test "${ac_cv_header_stdc+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279else
18280 cat >conftest.$ac_ext <<_ACEOF
18281/* confdefs.h. */
18282_ACEOF
18283cat confdefs.h >>conftest.$ac_ext
18284cat >>conftest.$ac_ext <<_ACEOF
18285/* end confdefs.h. */
18286#include <stdlib.h>
18287#include <stdarg.h>
18288#include <string.h>
18289#include <float.h>
18290
18291int
18292main ()
18293{
18294
18295 ;
18296 return 0;
18297}
18298_ACEOF
18299rm -f conftest.$ac_objext
18300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18301 (eval $ac_compile) 2>conftest.er1
18302 ac_status=$?
18303 grep -v '^ *+' conftest.er1 >conftest.err
18304 rm -f conftest.er1
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
mmentovai3261e8b2006-09-06 02:56:44 +000018308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
brynercb91a2f2006-08-25 21:14:45 +000018310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest.$ac_objext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_header_stdc=yes
18322else
18323 echo "$as_me: failed program was:" >&5
18324sed 's/^/| /' conftest.$ac_ext >&5
18325
18326ac_cv_header_stdc=no
18327fi
18328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18329
18330if test $ac_cv_header_stdc = yes; then
18331 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18332 cat >conftest.$ac_ext <<_ACEOF
18333/* confdefs.h. */
18334_ACEOF
18335cat confdefs.h >>conftest.$ac_ext
18336cat >>conftest.$ac_ext <<_ACEOF
18337/* end confdefs.h. */
18338#include <string.h>
18339
18340_ACEOF
18341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18342 $EGREP "memchr" >/dev/null 2>&1; then
18343 :
18344else
18345 ac_cv_header_stdc=no
18346fi
18347rm -f conftest*
18348
18349fi
18350
18351if test $ac_cv_header_stdc = yes; then
18352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18353 cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
18359#include <stdlib.h>
18360
18361_ACEOF
18362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18363 $EGREP "free" >/dev/null 2>&1; then
18364 :
18365else
18366 ac_cv_header_stdc=no
18367fi
18368rm -f conftest*
18369
18370fi
18371
18372if test $ac_cv_header_stdc = yes; then
18373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18374 if test "$cross_compiling" = yes; then
18375 :
18376else
18377 cat >conftest.$ac_ext <<_ACEOF
18378/* confdefs.h. */
18379_ACEOF
18380cat confdefs.h >>conftest.$ac_ext
18381cat >>conftest.$ac_ext <<_ACEOF
18382/* end confdefs.h. */
18383#include <ctype.h>
18384#if ((' ' & 0x0FF) == 0x020)
18385# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18386# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18387#else
18388# define ISLOWER(c) \
18389 (('a' <= (c) && (c) <= 'i') \
18390 || ('j' <= (c) && (c) <= 'r') \
18391 || ('s' <= (c) && (c) <= 'z'))
18392# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18393#endif
18394
18395#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18396int
18397main ()
18398{
18399 int i;
18400 for (i = 0; i < 256; i++)
18401 if (XOR (islower (i), ISLOWER (i))
18402 || toupper (i) != TOUPPER (i))
18403 exit(2);
18404 exit (0);
18405}
18406_ACEOF
18407rm -f conftest$ac_exeext
18408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18409 (eval $ac_link) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 :
18419else
18420 echo "$as_me: program exited with status $ac_status" >&5
18421echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424( exit $ac_status )
18425ac_cv_header_stdc=no
18426fi
18427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18428fi
18429fi
18430fi
18431echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18432echo "${ECHO_T}$ac_cv_header_stdc" >&6
18433if test $ac_cv_header_stdc = yes; then
18434
18435cat >>confdefs.h <<\_ACEOF
18436#define STDC_HEADERS 1
18437_ACEOF
18438
18439fi
18440
18441
brynercb91a2f2006-08-25 21:14:45 +000018442 ac_config_files="$ac_config_files Makefile"
18443
18444cat >confcache <<\_ACEOF
18445# This file is a shell script that caches the results of configure
18446# tests run on this system so they can be shared between configure
18447# scripts and configure runs, see configure's option --config-cache.
18448# It is not useful on other systems. If it contains results you don't
18449# want to keep, you may remove or edit it.
18450#
18451# config.status only pays attention to the cache file if you give it
18452# the --recheck option to rerun configure.
18453#
18454# `ac_cv_env_foo' variables (set or unset) will be overridden when
18455# loading this file, other *unset* `ac_cv_foo' will be assigned the
18456# following values.
18457
18458_ACEOF
18459
18460# The following way of writing the cache mishandles newlines in values,
18461# but we know of no workaround that is simple, portable, and efficient.
18462# So, don't put newlines in cache variables' values.
18463# Ultrix sh set writes to stderr and can't be redirected directly,
18464# and sets the high bit in the cache file unless we assign to the vars.
18465{
18466 (set) 2>&1 |
18467 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18468 *ac_space=\ *)
18469 # `set' does not quote correctly, so add quotes (double-quote
18470 # substitution turns \\\\ into \\, and sed turns \\ into \).
18471 sed -n \
18472 "s/'/'\\\\''/g;
18473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18474 ;;
18475 *)
18476 # `set' quotes correctly as required by POSIX, so do not add quotes.
18477 sed -n \
18478 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18479 ;;
18480 esac;
18481} |
18482 sed '
18483 t clear
18484 : clear
18485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18486 t end
18487 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18488 : end' >>confcache
18489if diff $cache_file confcache >/dev/null 2>&1; then :; else
18490 if test -w $cache_file; then
18491 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18492 cat confcache >$cache_file
18493 else
18494 echo "not updating unwritable cache $cache_file"
18495 fi
18496fi
18497rm -f confcache
18498
18499test "x$prefix" = xNONE && prefix=$ac_default_prefix
18500# Let make expand exec_prefix.
18501test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18502
18503# VPATH may cause trouble with some makes, so we remove $(srcdir),
18504# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18505# trailing colons and then remove the whole line if VPATH becomes empty
18506# (actually we leave an empty line to preserve line numbers).
18507if test "x$srcdir" = x.; then
18508 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18509s/:*\$(srcdir):*/:/;
18510s/:*\${srcdir}:*/:/;
18511s/:*@srcdir@:*/:/;
18512s/^\([^=]*=[ ]*\):*/\1/;
18513s/:*$//;
18514s/^[^=]*=[ ]*$//;
18515}'
18516fi
18517
18518DEFS=-DHAVE_CONFIG_H
18519
18520ac_libobjs=
18521ac_ltlibobjs=
18522for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18523 # 1. Remove the extension, and $U if already installed.
18524 ac_i=`echo "$ac_i" |
18525 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18526 # 2. Add them.
18527 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18528 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18529done
18530LIBOBJS=$ac_libobjs
18531
18532LTLIBOBJS=$ac_ltlibobjs
18533
18534
18535if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18536 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18537Usually this means the macro was only invoked conditionally." >&5
18538echo "$as_me: error: conditional \"AMDEP\" was never defined.
18539Usually this means the macro was only invoked conditionally." >&2;}
18540 { (exit 1); exit 1; }; }
18541fi
18542if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18543 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18544Usually this means the macro was only invoked conditionally." >&5
18545echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18546Usually this means the macro was only invoked conditionally." >&2;}
18547 { (exit 1); exit 1; }; }
18548fi
18549if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18550 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18551Usually this means the macro was only invoked conditionally." >&5
18552echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18553Usually this means the macro was only invoked conditionally." >&2;}
18554 { (exit 1); exit 1; }; }
18555fi
18556
18557: ${CONFIG_STATUS=./config.status}
18558ac_clean_files_save=$ac_clean_files
18559ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18560{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18561echo "$as_me: creating $CONFIG_STATUS" >&6;}
18562cat >$CONFIG_STATUS <<_ACEOF
18563#! $SHELL
18564# Generated by $as_me.
18565# Run this file to recreate the current configuration.
18566# Compiler output produced by configure, useful for debugging
18567# configure, is in config.log if it exists.
18568
18569debug=false
18570ac_cs_recheck=false
18571ac_cs_silent=false
18572SHELL=\${CONFIG_SHELL-$SHELL}
18573_ACEOF
18574
18575cat >>$CONFIG_STATUS <<\_ACEOF
18576## --------------------- ##
18577## M4sh Initialization. ##
18578## --------------------- ##
18579
18580# Be Bourne compatible
18581if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18582 emulate sh
18583 NULLCMD=:
18584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18585 # is contrary to our usage. Disable this feature.
18586 alias -g '${1+"$@"}'='"$@"'
18587elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18588 set -o posix
18589fi
18590DUALCASE=1; export DUALCASE # for MKS sh
18591
18592# Support unset when possible.
18593if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18594 as_unset=unset
18595else
18596 as_unset=false
18597fi
18598
18599
18600# Work around bugs in pre-3.0 UWIN ksh.
18601$as_unset ENV MAIL MAILPATH
18602PS1='$ '
18603PS2='> '
18604PS4='+ '
18605
18606# NLS nuisances.
18607for as_var in \
18608 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18609 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18610 LC_TELEPHONE LC_TIME
18611do
18612 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18613 eval $as_var=C; export $as_var
18614 else
18615 $as_unset $as_var
18616 fi
18617done
18618
18619# Required to use basename.
18620if expr a : '\(a\)' >/dev/null 2>&1; then
18621 as_expr=expr
18622else
18623 as_expr=false
18624fi
18625
18626if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18627 as_basename=basename
18628else
18629 as_basename=false
18630fi
18631
18632
18633# Name of the executable.
18634as_me=`$as_basename "$0" ||
18635$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18636 X"$0" : 'X\(//\)$' \| \
18637 X"$0" : 'X\(/\)$' \| \
18638 . : '\(.\)' 2>/dev/null ||
18639echo X/"$0" |
18640 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18641 /^X\/\(\/\/\)$/{ s//\1/; q; }
18642 /^X\/\(\/\).*/{ s//\1/; q; }
18643 s/.*/./; q'`
18644
18645
18646# PATH needs CR, and LINENO needs CR and PATH.
18647# Avoid depending upon Character Ranges.
18648as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18649as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18650as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18651as_cr_digits='0123456789'
18652as_cr_alnum=$as_cr_Letters$as_cr_digits
18653
18654# The user is always right.
18655if test "${PATH_SEPARATOR+set}" != set; then
18656 echo "#! /bin/sh" >conf$$.sh
18657 echo "exit 0" >>conf$$.sh
18658 chmod +x conf$$.sh
18659 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18660 PATH_SEPARATOR=';'
18661 else
18662 PATH_SEPARATOR=:
18663 fi
18664 rm -f conf$$.sh
18665fi
18666
18667
18668 as_lineno_1=$LINENO
18669 as_lineno_2=$LINENO
18670 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18671 test "x$as_lineno_1" != "x$as_lineno_2" &&
18672 test "x$as_lineno_3" = "x$as_lineno_2" || {
18673 # Find who we are. Look in the path if we contain no path at all
18674 # relative or not.
18675 case $0 in
18676 *[\\/]* ) as_myself=$0 ;;
18677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18678for as_dir in $PATH
18679do
18680 IFS=$as_save_IFS
18681 test -z "$as_dir" && as_dir=.
18682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18683done
18684
18685 ;;
18686 esac
18687 # We did not find ourselves, most probably we were run as `sh COMMAND'
18688 # in which case we are not to be found in the path.
18689 if test "x$as_myself" = x; then
18690 as_myself=$0
18691 fi
18692 if test ! -f "$as_myself"; then
18693 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18694echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18695 { (exit 1); exit 1; }; }
18696 fi
18697 case $CONFIG_SHELL in
18698 '')
18699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18701do
18702 IFS=$as_save_IFS
18703 test -z "$as_dir" && as_dir=.
18704 for as_base in sh bash ksh sh5; do
18705 case $as_dir in
18706 /*)
18707 if ("$as_dir/$as_base" -c '
18708 as_lineno_1=$LINENO
18709 as_lineno_2=$LINENO
18710 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18711 test "x$as_lineno_1" != "x$as_lineno_2" &&
18712 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18713 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18714 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18715 CONFIG_SHELL=$as_dir/$as_base
18716 export CONFIG_SHELL
18717 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18718 fi;;
18719 esac
18720 done
18721done
18722;;
18723 esac
18724
18725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18726 # uniformly replaced by the line number. The first 'sed' inserts a
18727 # line-number line before each line; the second 'sed' does the real
18728 # work. The second script uses 'N' to pair each line-number line
18729 # with the numbered line, and appends trailing '-' during
18730 # substitution so that $LINENO is not a special case at line end.
18731 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18732 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18733 sed '=' <$as_myself |
18734 sed '
18735 N
18736 s,$,-,
18737 : loop
18738 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18739 t loop
18740 s,-$,,
18741 s,^['$as_cr_digits']*\n,,
18742 ' >$as_me.lineno &&
18743 chmod +x $as_me.lineno ||
18744 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18745echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18746 { (exit 1); exit 1; }; }
18747
18748 # Don't try to exec as it changes $[0], causing all sort of problems
18749 # (the dirname of $[0] is not the place where we might find the
18750 # original and so on. Autoconf is especially sensible to this).
18751 . ./$as_me.lineno
18752 # Exit status is that of the last command.
18753 exit
18754}
18755
18756
18757case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18758 *c*,-n*) ECHO_N= ECHO_C='
18759' ECHO_T=' ' ;;
18760 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18761 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18762esac
18763
18764if expr a : '\(a\)' >/dev/null 2>&1; then
18765 as_expr=expr
18766else
18767 as_expr=false
18768fi
18769
18770rm -f conf$$ conf$$.exe conf$$.file
18771echo >conf$$.file
18772if ln -s conf$$.file conf$$ 2>/dev/null; then
18773 # We could just check for DJGPP; but this test a) works b) is more generic
18774 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18775 if test -f conf$$.exe; then
18776 # Don't use ln at all; we don't have any links
18777 as_ln_s='cp -p'
18778 else
18779 as_ln_s='ln -s'
18780 fi
18781elif ln conf$$.file conf$$ 2>/dev/null; then
18782 as_ln_s=ln
18783else
18784 as_ln_s='cp -p'
18785fi
18786rm -f conf$$ conf$$.exe conf$$.file
18787
18788if mkdir -p . 2>/dev/null; then
18789 as_mkdir_p=:
18790else
18791 test -d ./-p && rmdir ./-p
18792 as_mkdir_p=false
18793fi
18794
18795as_executable_p="test -f"
18796
18797# Sed expression to map a string onto a valid CPP name.
18798as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18799
18800# Sed expression to map a string onto a valid variable name.
18801as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18802
18803
18804# IFS
18805# We need space, tab and new line, in precisely that order.
18806as_nl='
18807'
18808IFS=" $as_nl"
18809
18810# CDPATH.
18811$as_unset CDPATH
18812
18813exec 6>&1
18814
18815# Open the log real soon, to keep \$[0] and so on meaningful, and to
18816# report actual input values of CONFIG_FILES etc. instead of their
18817# values after options handling. Logging --version etc. is OK.
18818exec 5>>config.log
18819{
18820 echo
18821 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18822## Running $as_me. ##
18823_ASBOX
18824} >&5
18825cat >&5 <<_CSEOF
18826
18827This file was extended by airbag $as_me 0.1, which was
18828generated by GNU Autoconf 2.59. Invocation command line was
18829
18830 CONFIG_FILES = $CONFIG_FILES
18831 CONFIG_HEADERS = $CONFIG_HEADERS
18832 CONFIG_LINKS = $CONFIG_LINKS
18833 CONFIG_COMMANDS = $CONFIG_COMMANDS
18834 $ $0 $@
18835
18836_CSEOF
18837echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18838echo >&5
18839_ACEOF
18840
18841# Files that config.status was made for.
18842if test -n "$ac_config_files"; then
18843 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18844fi
18845
18846if test -n "$ac_config_headers"; then
18847 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18848fi
18849
18850if test -n "$ac_config_links"; then
18851 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18852fi
18853
18854if test -n "$ac_config_commands"; then
18855 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18856fi
18857
18858cat >>$CONFIG_STATUS <<\_ACEOF
18859
18860ac_cs_usage="\
18861\`$as_me' instantiates files from templates according to the
18862current configuration.
18863
18864Usage: $0 [OPTIONS] [FILE]...
18865
18866 -h, --help print this help, then exit
18867 -V, --version print version number, then exit
18868 -q, --quiet do not print progress messages
18869 -d, --debug don't remove temporary files
18870 --recheck update $as_me by reconfiguring in the same conditions
18871 --file=FILE[:TEMPLATE]
18872 instantiate the configuration file FILE
18873 --header=FILE[:TEMPLATE]
18874 instantiate the configuration header FILE
18875
18876Configuration files:
18877$config_files
18878
18879Configuration headers:
18880$config_headers
18881
18882Configuration commands:
18883$config_commands
18884
18885Report bugs to <bug-autoconf@gnu.org>."
18886_ACEOF
18887
18888cat >>$CONFIG_STATUS <<_ACEOF
18889ac_cs_version="\\
18890airbag config.status 0.1
18891configured by $0, generated by GNU Autoconf 2.59,
18892 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18893
18894Copyright (C) 2003 Free Software Foundation, Inc.
18895This config.status script is free software; the Free Software Foundation
18896gives unlimited permission to copy, distribute and modify it."
18897srcdir=$srcdir
18898INSTALL="$INSTALL"
18899_ACEOF
18900
18901cat >>$CONFIG_STATUS <<\_ACEOF
18902# If no file are specified by the user, then we need to provide default
18903# value. By we need to know if files were specified by the user.
18904ac_need_defaults=:
18905while test $# != 0
18906do
18907 case $1 in
18908 --*=*)
18909 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18910 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18911 ac_shift=:
18912 ;;
18913 -*)
18914 ac_option=$1
18915 ac_optarg=$2
18916 ac_shift=shift
18917 ;;
18918 *) # This is not an option, so the user has probably given explicit
18919 # arguments.
18920 ac_option=$1
18921 ac_need_defaults=false;;
18922 esac
18923
18924 case $ac_option in
18925 # Handling of the options.
18926_ACEOF
18927cat >>$CONFIG_STATUS <<\_ACEOF
18928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18929 ac_cs_recheck=: ;;
18930 --version | --vers* | -V )
18931 echo "$ac_cs_version"; exit 0 ;;
18932 --he | --h)
18933 # Conflict between --help and --header
18934 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18935Try \`$0 --help' for more information." >&5
18936echo "$as_me: error: ambiguous option: $1
18937Try \`$0 --help' for more information." >&2;}
18938 { (exit 1); exit 1; }; };;
18939 --help | --hel | -h )
18940 echo "$ac_cs_usage"; exit 0 ;;
18941 --debug | --d* | -d )
18942 debug=: ;;
18943 --file | --fil | --fi | --f )
18944 $ac_shift
18945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18946 ac_need_defaults=false;;
18947 --header | --heade | --head | --hea )
18948 $ac_shift
18949 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18950 ac_need_defaults=false;;
18951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18953 ac_cs_silent=: ;;
18954
18955 # This is an error.
18956 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18957Try \`$0 --help' for more information." >&5
18958echo "$as_me: error: unrecognized option: $1
18959Try \`$0 --help' for more information." >&2;}
18960 { (exit 1); exit 1; }; } ;;
18961
18962 *) ac_config_targets="$ac_config_targets $1" ;;
18963
18964 esac
18965 shift
18966done
18967
18968ac_configure_extra_args=
18969
18970if $ac_cs_silent; then
18971 exec 6>/dev/null
18972 ac_configure_extra_args="$ac_configure_extra_args --silent"
18973fi
18974
18975_ACEOF
18976cat >>$CONFIG_STATUS <<_ACEOF
18977if \$ac_cs_recheck; then
18978 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18979 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18980fi
18981
18982_ACEOF
18983
18984cat >>$CONFIG_STATUS <<_ACEOF
18985#
18986# INIT-COMMANDS section.
18987#
18988
18989AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18990
18991_ACEOF
18992
18993
18994
18995cat >>$CONFIG_STATUS <<\_ACEOF
18996for ac_config_target in $ac_config_targets
18997do
18998 case "$ac_config_target" in
18999 # Handling of arguments.
19000 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19001 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19002 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19003 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19004echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19005 { (exit 1); exit 1; }; };;
19006 esac
19007done
19008
19009# If the user did not use the arguments to specify the items to instantiate,
19010# then the envvar interface is used. Set only those that are not.
19011# We use the long form for the default assignment because of an extremely
19012# bizarre bug on SunOS 4.1.3.
19013if $ac_need_defaults; then
19014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19017fi
19018
19019# Have a temporary directory for convenience. Make it in the build tree
19020# simply because there is no reason to put it here, and in addition,
19021# creating and moving files from /tmp can sometimes cause problems.
19022# Create a temporary directory, and hook for its removal unless debugging.
19023$debug ||
19024{
19025 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19026 trap '{ (exit 1); exit 1; }' 1 2 13 15
19027}
19028
19029# Create a (secure) tmp directory for tmp files.
19030
19031{
19032 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19033 test -n "$tmp" && test -d "$tmp"
19034} ||
19035{
19036 tmp=./confstat$$-$RANDOM
19037 (umask 077 && mkdir $tmp)
19038} ||
19039{
19040 echo "$me: cannot create a temporary directory in ." >&2
19041 { (exit 1); exit 1; }
19042}
19043
19044_ACEOF
19045
19046cat >>$CONFIG_STATUS <<_ACEOF
19047
19048#
19049# CONFIG_FILES section.
19050#
19051
19052# No need to generate the scripts if there are no CONFIG_FILES.
19053# This happens for instance when ./config.status config.h
19054if test -n "\$CONFIG_FILES"; then
19055 # Protect against being on the right side of a sed subst in config.status.
19056 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19057 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19058s,@SHELL@,$SHELL,;t t
19059s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19060s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19061s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19062s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19063s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19064s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19065s,@exec_prefix@,$exec_prefix,;t t
19066s,@prefix@,$prefix,;t t
19067s,@program_transform_name@,$program_transform_name,;t t
19068s,@bindir@,$bindir,;t t
19069s,@sbindir@,$sbindir,;t t
19070s,@libexecdir@,$libexecdir,;t t
19071s,@datadir@,$datadir,;t t
19072s,@sysconfdir@,$sysconfdir,;t t
19073s,@sharedstatedir@,$sharedstatedir,;t t
19074s,@localstatedir@,$localstatedir,;t t
19075s,@libdir@,$libdir,;t t
19076s,@includedir@,$includedir,;t t
19077s,@oldincludedir@,$oldincludedir,;t t
19078s,@infodir@,$infodir,;t t
19079s,@mandir@,$mandir,;t t
19080s,@build_alias@,$build_alias,;t t
19081s,@host_alias@,$host_alias,;t t
19082s,@target_alias@,$target_alias,;t t
19083s,@DEFS@,$DEFS,;t t
19084s,@ECHO_C@,$ECHO_C,;t t
19085s,@ECHO_N@,$ECHO_N,;t t
19086s,@ECHO_T@,$ECHO_T,;t t
19087s,@LIBS@,$LIBS,;t t
19088s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19089s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19090s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19091s,@CYGPATH_W@,$CYGPATH_W,;t t
19092s,@PACKAGE@,$PACKAGE,;t t
19093s,@VERSION@,$VERSION,;t t
19094s,@ACLOCAL@,$ACLOCAL,;t t
19095s,@AUTOCONF@,$AUTOCONF,;t t
19096s,@AUTOMAKE@,$AUTOMAKE,;t t
19097s,@AUTOHEADER@,$AUTOHEADER,;t t
19098s,@MAKEINFO@,$MAKEINFO,;t t
19099s,@install_sh@,$install_sh,;t t
19100s,@STRIP@,$STRIP,;t t
19101s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19102s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19103s,@mkdir_p@,$mkdir_p,;t t
19104s,@AWK@,$AWK,;t t
19105s,@SET_MAKE@,$SET_MAKE,;t t
19106s,@am__leading_dot@,$am__leading_dot,;t t
19107s,@AMTAR@,$AMTAR,;t t
19108s,@am__tar@,$am__tar,;t t
19109s,@am__untar@,$am__untar,;t t
19110s,@CC@,$CC,;t t
19111s,@CFLAGS@,$CFLAGS,;t t
19112s,@LDFLAGS@,$LDFLAGS,;t t
19113s,@CPPFLAGS@,$CPPFLAGS,;t t
19114s,@ac_ct_CC@,$ac_ct_CC,;t t
19115s,@EXEEXT@,$EXEEXT,;t t
19116s,@OBJEXT@,$OBJEXT,;t t
19117s,@DEPDIR@,$DEPDIR,;t t
19118s,@am__include@,$am__include,;t t
19119s,@am__quote@,$am__quote,;t t
19120s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19121s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19122s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19123s,@CCDEPMODE@,$CCDEPMODE,;t t
19124s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19125s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19126s,@CPP@,$CPP,;t t
19127s,@CXX@,$CXX,;t t
19128s,@CXXFLAGS@,$CXXFLAGS,;t t
19129s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19130s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19131s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19132s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
mmentovai425d2562006-08-30 20:05:05 +000019133s,@F77@,$F77,;t t
19134s,@FFLAGS@,$FFLAGS,;t t
19135s,@ac_ct_F77@,$ac_ct_F77,;t t
brynercb91a2f2006-08-25 21:14:45 +000019136s,@build@,$build,;t t
19137s,@build_cpu@,$build_cpu,;t t
19138s,@build_vendor@,$build_vendor,;t t
19139s,@build_os@,$build_os,;t t
19140s,@host@,$host,;t t
19141s,@host_cpu@,$host_cpu,;t t
19142s,@host_vendor@,$host_vendor,;t t
19143s,@host_os@,$host_os,;t t
19144s,@EGREP@,$EGREP,;t t
19145s,@LN_S@,$LN_S,;t t
19146s,@ECHO@,$ECHO,;t t
19147s,@AR@,$AR,;t t
19148s,@ac_ct_AR@,$ac_ct_AR,;t t
19149s,@RANLIB@,$RANLIB,;t t
19150s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19151s,@CXXCPP@,$CXXCPP,;t t
brynercb91a2f2006-08-25 21:14:45 +000019152s,@LIBTOOL@,$LIBTOOL,;t t
19153s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
19154s,@LIBOBJS@,$LIBOBJS,;t t
19155s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19156CEOF
19157
19158_ACEOF
19159
19160 cat >>$CONFIG_STATUS <<\_ACEOF
19161 # Split the substitutions into bite-sized pieces for seds with
19162 # small command number limits, like on Digital OSF/1 and HP-UX.
19163 ac_max_sed_lines=48
19164 ac_sed_frag=1 # Number of current file.
19165 ac_beg=1 # First line for current file.
19166 ac_end=$ac_max_sed_lines # Line after last line for current file.
19167 ac_more_lines=:
19168 ac_sed_cmds=
19169 while $ac_more_lines; do
19170 if test $ac_beg -gt 1; then
19171 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19172 else
19173 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19174 fi
19175 if test ! -s $tmp/subs.frag; then
19176 ac_more_lines=false
19177 else
19178 # The purpose of the label and of the branching condition is to
19179 # speed up the sed processing (if there are no `@' at all, there
19180 # is no need to browse any of the substitutions).
19181 # These are the two extra sed commands mentioned above.
19182 (echo ':t
19183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19184 if test -z "$ac_sed_cmds"; then
19185 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19186 else
19187 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19188 fi
19189 ac_sed_frag=`expr $ac_sed_frag + 1`
19190 ac_beg=$ac_end
19191 ac_end=`expr $ac_end + $ac_max_sed_lines`
19192 fi
19193 done
19194 if test -z "$ac_sed_cmds"; then
19195 ac_sed_cmds=cat
19196 fi
19197fi # test -n "$CONFIG_FILES"
19198
19199_ACEOF
19200cat >>$CONFIG_STATUS <<\_ACEOF
19201for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19203 case $ac_file in
19204 - | *:- | *:-:* ) # input from stdin
19205 cat >$tmp/stdin
19206 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19208 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19210 * ) ac_file_in=$ac_file.in ;;
19211 esac
19212
19213 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19214 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19215$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19216 X"$ac_file" : 'X\(//\)[^/]' \| \
19217 X"$ac_file" : 'X\(//\)$' \| \
19218 X"$ac_file" : 'X\(/\)' \| \
19219 . : '\(.\)' 2>/dev/null ||
19220echo X"$ac_file" |
19221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19223 /^X\(\/\/\)$/{ s//\1/; q; }
19224 /^X\(\/\).*/{ s//\1/; q; }
19225 s/.*/./; q'`
19226 { if $as_mkdir_p; then
19227 mkdir -p "$ac_dir"
19228 else
19229 as_dir="$ac_dir"
19230 as_dirs=
19231 while test ! -d "$as_dir"; do
19232 as_dirs="$as_dir $as_dirs"
19233 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19235 X"$as_dir" : 'X\(//\)[^/]' \| \
19236 X"$as_dir" : 'X\(//\)$' \| \
19237 X"$as_dir" : 'X\(/\)' \| \
19238 . : '\(.\)' 2>/dev/null ||
19239echo X"$as_dir" |
19240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19242 /^X\(\/\/\)$/{ s//\1/; q; }
19243 /^X\(\/\).*/{ s//\1/; q; }
19244 s/.*/./; q'`
19245 done
19246 test ! -n "$as_dirs" || mkdir $as_dirs
19247 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19248echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19249 { (exit 1); exit 1; }; }; }
19250
19251 ac_builddir=.
19252
19253if test "$ac_dir" != .; then
19254 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19255 # A "../" for each directory in $ac_dir_suffix.
19256 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19257else
19258 ac_dir_suffix= ac_top_builddir=
19259fi
19260
19261case $srcdir in
19262 .) # No --srcdir option. We are building in place.
19263 ac_srcdir=.
19264 if test -z "$ac_top_builddir"; then
19265 ac_top_srcdir=.
19266 else
19267 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19268 fi ;;
19269 [\\/]* | ?:[\\/]* ) # Absolute path.
19270 ac_srcdir=$srcdir$ac_dir_suffix;
19271 ac_top_srcdir=$srcdir ;;
19272 *) # Relative path.
19273 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19274 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19275esac
19276
19277# Do not use `cd foo && pwd` to compute absolute paths, because
19278# the directories may not exist.
19279case `pwd` in
19280.) ac_abs_builddir="$ac_dir";;
19281*)
19282 case "$ac_dir" in
19283 .) ac_abs_builddir=`pwd`;;
19284 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19285 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19286 esac;;
19287esac
19288case $ac_abs_builddir in
19289.) ac_abs_top_builddir=${ac_top_builddir}.;;
19290*)
19291 case ${ac_top_builddir}. in
19292 .) ac_abs_top_builddir=$ac_abs_builddir;;
19293 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19294 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19295 esac;;
19296esac
19297case $ac_abs_builddir in
19298.) ac_abs_srcdir=$ac_srcdir;;
19299*)
19300 case $ac_srcdir in
19301 .) ac_abs_srcdir=$ac_abs_builddir;;
19302 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19303 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19304 esac;;
19305esac
19306case $ac_abs_builddir in
19307.) ac_abs_top_srcdir=$ac_top_srcdir;;
19308*)
19309 case $ac_top_srcdir in
19310 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19311 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19312 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19313 esac;;
19314esac
19315
19316
19317 case $INSTALL in
19318 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19319 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19320 esac
19321
mmentovai3261e8b2006-09-06 02:56:44 +000019322 if test x"$ac_file" != x-; then
19323 { echo "$as_me:$LINENO: creating $ac_file" >&5
19324echo "$as_me: creating $ac_file" >&6;}
19325 rm -f "$ac_file"
19326 fi
brynercb91a2f2006-08-25 21:14:45 +000019327 # Let's still pretend it is `configure' which instantiates (i.e., don't
19328 # use $as_me), people would be surprised to read:
19329 # /* config.h. Generated by config.status. */
19330 if test x"$ac_file" = x-; then
19331 configure_input=
19332 else
19333 configure_input="$ac_file. "
19334 fi
19335 configure_input=$configure_input"Generated from `echo $ac_file_in |
19336 sed 's,.*/,,'` by configure."
19337
19338 # First look for the input files in the build tree, otherwise in the
19339 # src tree.
19340 ac_file_inputs=`IFS=:
19341 for f in $ac_file_in; do
19342 case $f in
19343 -) echo $tmp/stdin ;;
19344 [\\/$]*)
19345 # Absolute (can't be DOS-style, as IFS=:)
19346 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19347echo "$as_me: error: cannot find input file: $f" >&2;}
19348 { (exit 1); exit 1; }; }
19349 echo "$f";;
19350 *) # Relative
19351 if test -f "$f"; then
19352 # Build tree
19353 echo "$f"
19354 elif test -f "$srcdir/$f"; then
19355 # Source tree
19356 echo "$srcdir/$f"
19357 else
19358 # /dev/null tree
19359 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19360echo "$as_me: error: cannot find input file: $f" >&2;}
19361 { (exit 1); exit 1; }; }
19362 fi;;
19363 esac
19364 done` || { (exit 1); exit 1; }
brynercb91a2f2006-08-25 21:14:45 +000019365_ACEOF
19366cat >>$CONFIG_STATUS <<_ACEOF
19367 sed "$ac_vpsub
19368$extrasub
19369_ACEOF
19370cat >>$CONFIG_STATUS <<\_ACEOF
19371:t
19372/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19373s,@configure_input@,$configure_input,;t t
19374s,@srcdir@,$ac_srcdir,;t t
19375s,@abs_srcdir@,$ac_abs_srcdir,;t t
19376s,@top_srcdir@,$ac_top_srcdir,;t t
19377s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19378s,@builddir@,$ac_builddir,;t t
19379s,@abs_builddir@,$ac_abs_builddir,;t t
19380s,@top_builddir@,$ac_top_builddir,;t t
19381s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19382s,@INSTALL@,$ac_INSTALL,;t t
19383" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19384 rm -f $tmp/stdin
19385 if test x"$ac_file" != x-; then
19386 mv $tmp/out $ac_file
19387 else
19388 cat $tmp/out
19389 rm -f $tmp/out
19390 fi
19391
19392done
19393_ACEOF
19394cat >>$CONFIG_STATUS <<\_ACEOF
19395
19396#
19397# CONFIG_HEADER section.
19398#
19399
19400# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19401# NAME is the cpp macro being defined and VALUE is the value it is being given.
19402#
19403# ac_d sets the value in "#define NAME VALUE" lines.
19404ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19405ac_dB='[ ].*$,\1#\2'
19406ac_dC=' '
19407ac_dD=',;t'
19408# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19409ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19410ac_uB='$,\1#\2define\3'
19411ac_uC=' '
19412ac_uD=',;t'
19413
19414for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19415 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19416 case $ac_file in
19417 - | *:- | *:-:* ) # input from stdin
19418 cat >$tmp/stdin
19419 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19420 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19421 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19422 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19423 * ) ac_file_in=$ac_file.in ;;
19424 esac
19425
19426 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19427echo "$as_me: creating $ac_file" >&6;}
19428
19429 # First look for the input files in the build tree, otherwise in the
19430 # src tree.
19431 ac_file_inputs=`IFS=:
19432 for f in $ac_file_in; do
19433 case $f in
19434 -) echo $tmp/stdin ;;
19435 [\\/$]*)
19436 # Absolute (can't be DOS-style, as IFS=:)
19437 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19438echo "$as_me: error: cannot find input file: $f" >&2;}
19439 { (exit 1); exit 1; }; }
19440 # Do quote $f, to prevent DOS paths from being IFS'd.
19441 echo "$f";;
19442 *) # Relative
19443 if test -f "$f"; then
19444 # Build tree
19445 echo "$f"
19446 elif test -f "$srcdir/$f"; then
19447 # Source tree
19448 echo "$srcdir/$f"
19449 else
19450 # /dev/null tree
19451 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19452echo "$as_me: error: cannot find input file: $f" >&2;}
19453 { (exit 1); exit 1; }; }
19454 fi;;
19455 esac
19456 done` || { (exit 1); exit 1; }
19457 # Remove the trailing spaces.
19458 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19459
19460_ACEOF
19461
19462# Transform confdefs.h into two sed scripts, `conftest.defines' and
19463# `conftest.undefs', that substitutes the proper values into
19464# config.h.in to produce config.h. The first handles `#define'
19465# templates, and the second `#undef' templates.
19466# And first: Protect against being on the right side of a sed subst in
19467# config.status. Protect against being in an unquoted here document
19468# in config.status.
19469rm -f conftest.defines conftest.undefs
19470# Using a here document instead of a string reduces the quoting nightmare.
19471# Putting comments in sed scripts is not portable.
19472#
19473# `end' is used to avoid that the second main sed command (meant for
19474# 0-ary CPP macros) applies to n-ary macro definitions.
19475# See the Autoconf documentation for `clear'.
19476cat >confdef2sed.sed <<\_ACEOF
19477s/[\\&,]/\\&/g
19478s,[\\$`],\\&,g
19479t clear
19480: clear
19481s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19482t end
19483s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19484: end
19485_ACEOF
19486# If some macros were called several times there might be several times
19487# the same #defines, which is useless. Nevertheless, we may not want to
19488# sort them, since we want the *last* AC-DEFINE to be honored.
19489uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19490sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19491rm -f confdef2sed.sed
19492
19493# This sed command replaces #undef with comments. This is necessary, for
19494# example, in the case of _POSIX_SOURCE, which is predefined and required
19495# on some systems where configure will not decide to define it.
19496cat >>conftest.undefs <<\_ACEOF
19497s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19498_ACEOF
19499
19500# Break up conftest.defines because some shells have a limit on the size
19501# of here documents, and old seds have small limits too (100 cmds).
19502echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19503echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19504echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19505echo ' :' >>$CONFIG_STATUS
19506rm -f conftest.tail
19507while grep . conftest.defines >/dev/null
19508do
19509 # Write a limited-size here document to $tmp/defines.sed.
19510 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19511 # Speed up: don't consider the non `#define' lines.
19512 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19513 # Work around the forget-to-reset-the-flag bug.
19514 echo 't clr' >>$CONFIG_STATUS
19515 echo ': clr' >>$CONFIG_STATUS
19516 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19517 echo 'CEOF
19518 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19519 rm -f $tmp/in
19520 mv $tmp/out $tmp/in
19521' >>$CONFIG_STATUS
19522 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19523 rm -f conftest.defines
19524 mv conftest.tail conftest.defines
19525done
19526rm -f conftest.defines
19527echo ' fi # grep' >>$CONFIG_STATUS
19528echo >>$CONFIG_STATUS
19529
19530# Break up conftest.undefs because some shells have a limit on the size
19531# of here documents, and old seds have small limits too (100 cmds).
19532echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19533rm -f conftest.tail
19534while grep . conftest.undefs >/dev/null
19535do
19536 # Write a limited-size here document to $tmp/undefs.sed.
19537 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19538 # Speed up: don't consider the non `#undef'
19539 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19540 # Work around the forget-to-reset-the-flag bug.
19541 echo 't clr' >>$CONFIG_STATUS
19542 echo ': clr' >>$CONFIG_STATUS
19543 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19544 echo 'CEOF
19545 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19546 rm -f $tmp/in
19547 mv $tmp/out $tmp/in
19548' >>$CONFIG_STATUS
19549 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19550 rm -f conftest.undefs
19551 mv conftest.tail conftest.undefs
19552done
19553rm -f conftest.undefs
19554
19555cat >>$CONFIG_STATUS <<\_ACEOF
19556 # Let's still pretend it is `configure' which instantiates (i.e., don't
19557 # use $as_me), people would be surprised to read:
19558 # /* config.h. Generated by config.status. */
19559 if test x"$ac_file" = x-; then
19560 echo "/* Generated by configure. */" >$tmp/config.h
19561 else
19562 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19563 fi
19564 cat $tmp/in >>$tmp/config.h
19565 rm -f $tmp/in
19566 if test x"$ac_file" != x-; then
19567 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19568 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19569echo "$as_me: $ac_file is unchanged" >&6;}
19570 else
19571 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19572$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19573 X"$ac_file" : 'X\(//\)[^/]' \| \
19574 X"$ac_file" : 'X\(//\)$' \| \
19575 X"$ac_file" : 'X\(/\)' \| \
19576 . : '\(.\)' 2>/dev/null ||
19577echo X"$ac_file" |
19578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19580 /^X\(\/\/\)$/{ s//\1/; q; }
19581 /^X\(\/\).*/{ s//\1/; q; }
19582 s/.*/./; q'`
19583 { if $as_mkdir_p; then
19584 mkdir -p "$ac_dir"
19585 else
19586 as_dir="$ac_dir"
19587 as_dirs=
19588 while test ! -d "$as_dir"; do
19589 as_dirs="$as_dir $as_dirs"
19590 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19591$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19592 X"$as_dir" : 'X\(//\)[^/]' \| \
19593 X"$as_dir" : 'X\(//\)$' \| \
19594 X"$as_dir" : 'X\(/\)' \| \
19595 . : '\(.\)' 2>/dev/null ||
19596echo X"$as_dir" |
19597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19598 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19599 /^X\(\/\/\)$/{ s//\1/; q; }
19600 /^X\(\/\).*/{ s//\1/; q; }
19601 s/.*/./; q'`
19602 done
19603 test ! -n "$as_dirs" || mkdir $as_dirs
19604 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19605echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19606 { (exit 1); exit 1; }; }; }
19607
19608 rm -f $ac_file
19609 mv $tmp/config.h $ac_file
19610 fi
19611 else
19612 cat $tmp/config.h
19613 rm -f $tmp/config.h
19614 fi
19615# Compute $ac_file's index in $config_headers.
19616_am_stamp_count=1
19617for _am_header in $config_headers :; do
19618 case $_am_header in
19619 $ac_file | $ac_file:* )
19620 break ;;
19621 * )
19622 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19623 esac
19624done
19625echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19626$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19627 X$ac_file : 'X\(//\)[^/]' \| \
19628 X$ac_file : 'X\(//\)$' \| \
19629 X$ac_file : 'X\(/\)' \| \
19630 . : '\(.\)' 2>/dev/null ||
19631echo X$ac_file |
19632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19634 /^X\(\/\/\)$/{ s//\1/; q; }
19635 /^X\(\/\).*/{ s//\1/; q; }
19636 s/.*/./; q'`/stamp-h$_am_stamp_count
19637done
19638_ACEOF
19639cat >>$CONFIG_STATUS <<\_ACEOF
19640
19641#
19642# CONFIG_COMMANDS section.
19643#
19644for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19645 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19646 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19647 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19648$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19649 X"$ac_dest" : 'X\(//\)[^/]' \| \
19650 X"$ac_dest" : 'X\(//\)$' \| \
19651 X"$ac_dest" : 'X\(/\)' \| \
19652 . : '\(.\)' 2>/dev/null ||
19653echo X"$ac_dest" |
19654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19656 /^X\(\/\/\)$/{ s//\1/; q; }
19657 /^X\(\/\).*/{ s//\1/; q; }
19658 s/.*/./; q'`
19659 { if $as_mkdir_p; then
19660 mkdir -p "$ac_dir"
19661 else
19662 as_dir="$ac_dir"
19663 as_dirs=
19664 while test ! -d "$as_dir"; do
19665 as_dirs="$as_dir $as_dirs"
19666 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19667$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19668 X"$as_dir" : 'X\(//\)[^/]' \| \
19669 X"$as_dir" : 'X\(//\)$' \| \
19670 X"$as_dir" : 'X\(/\)' \| \
19671 . : '\(.\)' 2>/dev/null ||
19672echo X"$as_dir" |
19673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19675 /^X\(\/\/\)$/{ s//\1/; q; }
19676 /^X\(\/\).*/{ s//\1/; q; }
19677 s/.*/./; q'`
19678 done
19679 test ! -n "$as_dirs" || mkdir $as_dirs
19680 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19681echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19682 { (exit 1); exit 1; }; }; }
19683
19684 ac_builddir=.
19685
19686if test "$ac_dir" != .; then
19687 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19688 # A "../" for each directory in $ac_dir_suffix.
19689 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19690else
19691 ac_dir_suffix= ac_top_builddir=
19692fi
19693
19694case $srcdir in
19695 .) # No --srcdir option. We are building in place.
19696 ac_srcdir=.
19697 if test -z "$ac_top_builddir"; then
19698 ac_top_srcdir=.
19699 else
19700 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19701 fi ;;
19702 [\\/]* | ?:[\\/]* ) # Absolute path.
19703 ac_srcdir=$srcdir$ac_dir_suffix;
19704 ac_top_srcdir=$srcdir ;;
19705 *) # Relative path.
19706 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19707 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19708esac
19709
19710# Do not use `cd foo && pwd` to compute absolute paths, because
19711# the directories may not exist.
19712case `pwd` in
19713.) ac_abs_builddir="$ac_dir";;
19714*)
19715 case "$ac_dir" in
19716 .) ac_abs_builddir=`pwd`;;
19717 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19718 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19719 esac;;
19720esac
19721case $ac_abs_builddir in
19722.) ac_abs_top_builddir=${ac_top_builddir}.;;
19723*)
19724 case ${ac_top_builddir}. in
19725 .) ac_abs_top_builddir=$ac_abs_builddir;;
19726 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19727 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19728 esac;;
19729esac
19730case $ac_abs_builddir in
19731.) ac_abs_srcdir=$ac_srcdir;;
19732*)
19733 case $ac_srcdir in
19734 .) ac_abs_srcdir=$ac_abs_builddir;;
19735 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19736 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19737 esac;;
19738esac
19739case $ac_abs_builddir in
19740.) ac_abs_top_srcdir=$ac_top_srcdir;;
19741*)
19742 case $ac_top_srcdir in
19743 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19744 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19745 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19746 esac;;
19747esac
19748
19749
19750 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19751echo "$as_me: executing $ac_dest commands" >&6;}
19752 case $ac_dest in
19753 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19754 # Strip MF so we end up with the name of the file.
19755 mf=`echo "$mf" | sed -e 's/:.*$//'`
19756 # Check whether this is an Automake generated Makefile or not.
19757 # We used to match only the files named `Makefile.in', but
19758 # some people rename them; so instead we look at the file content.
19759 # Grep'ing the first line is not enough: some people post-process
19760 # each Makefile.in and add a new line on top of each file to say so.
19761 # So let's grep whole file.
19762 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19763 dirpart=`(dirname "$mf") 2>/dev/null ||
19764$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19765 X"$mf" : 'X\(//\)[^/]' \| \
19766 X"$mf" : 'X\(//\)$' \| \
19767 X"$mf" : 'X\(/\)' \| \
19768 . : '\(.\)' 2>/dev/null ||
19769echo X"$mf" |
19770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19772 /^X\(\/\/\)$/{ s//\1/; q; }
19773 /^X\(\/\).*/{ s//\1/; q; }
19774 s/.*/./; q'`
19775 else
19776 continue
19777 fi
19778 # Extract the definition of DEPDIR, am__include, and am__quote
19779 # from the Makefile without running `make'.
19780 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19781 test -z "$DEPDIR" && continue
19782 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19783 test -z "am__include" && continue
19784 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19785 # When using ansi2knr, U may be empty or an underscore; expand it
19786 U=`sed -n 's/^U = //p' < "$mf"`
19787 # Find all dependency output files, they are included files with
19788 # $(DEPDIR) in their names. We invoke sed twice because it is the
19789 # simplest approach to changing $(DEPDIR) to its actual value in the
19790 # expansion.
19791 for file in `sed -n "
19792 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19793 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19794 # Make sure the directory exists.
19795 test -f "$dirpart/$file" && continue
19796 fdir=`(dirname "$file") 2>/dev/null ||
19797$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19798 X"$file" : 'X\(//\)[^/]' \| \
19799 X"$file" : 'X\(//\)$' \| \
19800 X"$file" : 'X\(/\)' \| \
19801 . : '\(.\)' 2>/dev/null ||
19802echo X"$file" |
19803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19805 /^X\(\/\/\)$/{ s//\1/; q; }
19806 /^X\(\/\).*/{ s//\1/; q; }
19807 s/.*/./; q'`
19808 { if $as_mkdir_p; then
19809 mkdir -p $dirpart/$fdir
19810 else
19811 as_dir=$dirpart/$fdir
19812 as_dirs=
19813 while test ! -d "$as_dir"; do
19814 as_dirs="$as_dir $as_dirs"
19815 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19816$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19817 X"$as_dir" : 'X\(//\)[^/]' \| \
19818 X"$as_dir" : 'X\(//\)$' \| \
19819 X"$as_dir" : 'X\(/\)' \| \
19820 . : '\(.\)' 2>/dev/null ||
19821echo X"$as_dir" |
19822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19824 /^X\(\/\/\)$/{ s//\1/; q; }
19825 /^X\(\/\).*/{ s//\1/; q; }
19826 s/.*/./; q'`
19827 done
19828 test ! -n "$as_dirs" || mkdir $as_dirs
19829 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19830echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19831 { (exit 1); exit 1; }; }; }
19832
19833 # echo "creating $dirpart/$file"
19834 echo '# dummy' > "$dirpart/$file"
19835 done
19836done
19837 ;;
19838 esac
19839done
19840_ACEOF
19841
19842cat >>$CONFIG_STATUS <<\_ACEOF
19843
19844{ (exit 0); exit 0; }
19845_ACEOF
19846chmod +x $CONFIG_STATUS
19847ac_clean_files=$ac_clean_files_save
19848
19849
19850# configure is writing to config.log, and then calls config.status.
19851# config.status does its own redirection, appending to config.log.
19852# Unfortunately, on DOS this fails, as config.log is still kept open
19853# by configure, so config.status won't be able to write to it; its
19854# output is simply discarded. So we exec the FD to /dev/null,
19855# effectively closing config.log, so it can be properly (re)opened and
19856# appended to by config.status. When coming back to configure, we
19857# need to make the FD available again.
19858if test "$no_create" != yes; then
19859 ac_cs_success=:
19860 ac_config_status_args=
19861 test "$silent" = yes &&
19862 ac_config_status_args="$ac_config_status_args --quiet"
19863 exec 5>/dev/null
19864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19865 exec 5>>config.log
19866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19867 # would make configure fail if this is the last instruction.
19868 $ac_cs_success || { (exit 1); exit 1; }
19869fi
19870